【发布时间】:2021-11-07 09:16:17
【问题描述】:
我正在尝试在 python 中使用 textract。我从这个网址得到了代码:https://github.com/aws-samples/amazon-textract-code-samples/blob/c8f34ca25113100730e0f4db3f6f316b0cff44d6/python/02-detect-text-s3.py.
我只更改了代码中的s3BucketName 和documentName。但是当我运行代码时,我得到了这个错误:
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://textract.USA.amazonaws.com/"
我应该手动更改网址吗?如果是这样,我该怎么做?
【问题讨论】: