PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Apache License 2.0
38.99k stars 7.32k forks source link

is version 2.7.5 usable, and how? #12035

Closed vlavorini closed 1 week ago

vlavorini commented 2 weeks ago

Hello,

I tried to force the installation of the 2.7.5 version, but while importing it I get an error:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[6], line 3
      1 import os
      2 import cv2
----> 3 from paddleocr import PPStructure,draw_structure_result,save_structure_res
      4 from pdf2image import convert_from_path
      5 import numpy as np

File [~\devel_dir\paddle\lib\site-packages\paddleocr\paddleocr.py:575](http://localhost:8888/lab/tree/~/devel_dir/paddle/lib/site-packages/paddleocr/paddleocr.py#line=574)
    571         img = alpha_to_color(img, alpha_color)
    572     return img
--> 575 class PaddleOCR(predict_system.TextSystem):
    576     def __init__(self, **kwargs):
    577         """
    578         paddleocr package
    579         args:
    580             **kwargs: other params show in paddleocr --help
    581         """

NameError: name 'predict_system' is not defined

How can I make it work?

Thank you!

jzhang533 commented 1 week ago

version 2.7.5 has been yanked. please use other versions.