PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

is version 2.7.5 usable, and how?

Open vlavorini opened this issue 1 year ago • 0 comments

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!

vlavorini avatar Apr 30 '24 11:04 vlavorini