首先让我说,我不确定我是否正确地使用了这个库。在
我要离开this page(这是Github)。我用的是这个代码:
from ABBYY import CloudOCR
ocr = CloudOCR(application_id='ApplicationID', password='SuperSecretPasswordFromAbbyy')
pdf = open('blah.pdf', 'rb')
file = {pdf.name: pdf}
result = ocr.process_and_download(
file,
exportFormat='xml,pdfTextAndImages',
language='English'
)
print(result)
我得到的错误是:
^{pr2}$如果按照错误回溯中的链接,我会看到以下文本:
404 HTTP method GET not supported for /processImage, only method POST supported
我正在尝试发送一个本地PDF到云OCR平台。我成功地使用了here找到的包,如下所示:
$ export ABBYY_APPID='ApplicationID'
$ export ABBYY_PWD='SuperSecretPasswordFromAbbyy'
...
$ python process.py -pdf blah.pdf result.txt
我想用方法1实现一个系统。我只是想知道该怎么做才能实现。方法2有效的事实表明身份验证不是问题。在
目前没有回答
相关问题 更多 >
编程相关推荐