You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2024/03/26 07:26:09] ppocr INFO: **********./C017.pdf**********
Traceback (most recent call last):
File "/usr/local/bin/paddleocr", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/paddleocr/paddleocr.py", line 807, in main
img, flag_gif, flag_pdf = check_and_read(img_path)
File "/usr/local/lib/python3.10/dist-packages/paddleocr/ppocr/utils/utility.py", line 114, in check_and_read
with fitz.open(img_path) as pdf:
NameError: name 'fitz' is not defined
The text was updated successfully, but these errors were encountered:
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
请尽量不要包含图片在问题中/Please try to not include the image in the issue.
如题,例如
PaddleOCR/ppocr/utils/utility.py
Line 111 in 89e0a15
又如
PaddleOCR/ppstructure/pdf2word/pdf2word.py
Line 26 in 89e0a15
而
try_import
的源码应该在https://github.com/PaddlePaddle/Paddle/blob/89a60d773893640b7cec91d4857d634a61b02304/python/paddle/utils/lazy_import.py#L21
根据我的理解,应该要这样写:
我确实也在实际使用的时候看到了错误:
The text was updated successfully, but these errors were encountered: