在做时pip install paddleocr,我在为 PyMuPDF 构建轮子时遇到错误。
Building wheels for collected packages: PyMuPDF\nBuilding wheel for PyMuPDF (setup.py) ... error\nerror: subprocess-exited-with-error\n\n \xc3\x97 python setup.py bdist_wheel did not run successfully.\n \xe2\x94\x82 exit code: 1\n \xe2\x95\xb0\xe2\x94\x80> [70 lines of output]\n\n\n\nTraceback (most recent call last):\n File "<string>", line 2, in <module>\n File "<pip-setuptools-caller>", line 34, in <module>\n File "C:\\Users\\3551\\AppData\\Local\\Temp\\pip-install-ip72hta1\\pymupdf_f7a2c6bc313a492fa6c66ad0817a4616\\setup.py", line 487, in <module>\n mupdf_local = get_mupdf()\n ^^^^^^^^^^^\n File "C:\\Users\\3551\\AppData\\Local\\Temp\\pip-install-ip72hta1\\pymupdf_f7a2c6bc313a492fa6c66ad0817a4616\\setup.py", line 450, in get_mupdf\n return tar_extract( mupdf_tgz, exists='return')\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "C:\\Users\\3551\\AppData\\Local\\Temp\\pip-install-ip72hta1\\pymupdf_f7a2c6bc313a492fa6c66ad0817a4616\\setup.py", line 183, in …Run Code Online (Sandbox Code Playgroud) 我正在尝试实施 paddleocr。我已经使用以下方式安装了它:
#Github repo installation for paddle
! python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
#install paddle ocr
!pip install paddleocr
!git clone https://github.com/PaddlePaddle/PaddleOCR.git
Run Code Online (Sandbox Code Playgroud)
但在导入时
from paddleocr import PaddleOCR,draw_ocr
Run Code Online (Sandbox Code Playgroud)
我收到此错误:ImportError:无法从“paddle”导入名称“inference”
我正在使用 Paddle OCR,我想知道 bbx off paddle OCR 的输出格式是什么。我在Paddle的github上找不到。这是我的代码。
from paddleocr import PaddleOCR,draw_ocr
ocr = PaddleOCR(use_angle_cls=False, lang='en', rec=False) # need to run only once to download and load model into memory
result = ocr.ocr(img, cls=False)
Run Code Online (Sandbox Code Playgroud)
输出
[[[[8.0, 12.0], [89.0, 12.0], [89.0, 25.0], [8.0, 25.0]],
('@kheengz_yfk', 0.9460259079933167)],
[[[6.0, 31.0], [227.0, 29.0], [227.0, 44.0], [6.0, 46.0]],
('EBIT is a week old today. and', 0.847086489200592)],
[[[4.0, 47.0], [225.0, 49.0], [225.0, 64.0], [4.0, 62.0]],
('the homebors came together...Seemore', 0.942597508430481)],
[[[7.0, 70.0], [183.0, 70.0], [183.0, 83.0], …Run Code Online (Sandbox Code Playgroud)