[英]FileNotFoundError: [Errno 2] No such file or directory Azure Python error
I'm attempting to make the callout as per this: https://docs.microsoft.com/en-us/azure/cognitive-services/form-recognizer/quickstarts/python-receipts?tabs=v2-0我正在尝试按照以下方式进行标注: https : //docs.microsoft.com/en-us/azure/cognitive-services/form-recognizer/quickstarts/python-receipts? tabs =v2-0
And I'm defining the source as this:我将源定义为:
source = r"https://ocrstoragebeta.blob.core.windows.net/files1/download_token=0991878f8063e-1e5e-4859-`enter code here`9505-2d2fd6f097f945969-00P4J000000qXMlUAM (1).png"
And keep seeing the following error:并不断看到以下错误:
FileNotFoundError: [Errno 2] No such file or directory: 'https://ocrstoragebeta.blob.core.windows.net/files1/download_token=0991878f8063e-1e5e-4859-9505-2d2fd6f097f945969-00P4J000000qXMlUAM (1).png'
I'm hosting the file in a blob storage.我将文件托管在 blob 存储中。 What's going wrong here?
这里出了什么问题?
I'm afraid you can only use local path like the document descriped:恐怕您只能使用本地路径,如描述的文档:
Replace
<path to your receipt>
with the path to your local form document.将
<path to your receipt>
替换为本地表单文档的路径。
If you want use the file stored in azure file share, you should connect it to your local computer first and make sure the path is correct.如果要使用azure文件共享中存储的文件,需要先将其连接到本地计算机,并确保路径正确。
Form Recognizer can accept a URL as the input document.表单识别器可以接受一个 URL 作为输入文档。
Discard this answer if you plan on using the REST API, but I wanted to point out that there is an SDK here and a sample that demonstrates how to analyze a receipt using a URL.如果您打算使用 REST API,请放弃此答案,但我想指出这里有一个 SDK 和一个演示如何使用 URL 分析收据的示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.