Slice argument deprecated ? #17774
Unanswered
dimitri009
asked this question in
Q&A
Replies: 1 comment
-
|
Hello, slice has been removed in Paddle 3.0. You can refer to the code PaddleOCR/tools/infer/predict_system.py Line 77 in 149cdaf |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently working with large document (9,922*7016) and I wanted to use the key argument 'slice' as explained here, but I got this error
TypeError: PaddleOCR.predict() got an unexpected keyword argument 'slice'.I am using PaddleOCR 3.2.0
Here a piece of my script
result = ocr.ocr(image5, slice=slice, cls=False)and the Error` 229 @deprecated("Please use "predict" instead.")
230 def ocr(self, img, **kwargs):
--> 231 return self.predict(img, **kwargs)
TypeError: PaddleOCR.predict() got an unexpected keyword argument "slice"`
Is there any other solution to handle this ?
Beta Was this translation helpful? Give feedback.
All reactions