How to use Recognition Only in Paddle OCR #7600
-
Hi, I do not want my OCR to do detection, I want it to do recognition only, but it only returns a single character. How can I only run recognizer only, and not detector. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
First initialize your model with:
Then call the recognition only by setting the flags as follows:
In the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
@ahmadmustafaanis
First initialize your model with:
Paddle = paddleocr.PaddleOCR(use_angle_cls=True, lang=your_language, use_gpu=if_gpu_available)
Then call the recognition only by setting the flags as follows:
result = Paddle.ocr(image, cls=False, det=False, rec=True)
In the
result
variable you can find all your text OCR predictions.