Skip to content
Discussion options

You must be logged in to vote

Hello, the PaddleOCR method uses the OCR pipeline, which first performs detection and then recognition. It seems that the issue might be with the detection part. If you want to recognize text from an already cropped image, it might be better to use the text recognition module https://paddlepaddle.github.io/PaddleOCR/main/en/version3.x/module_usage/text_recognition.html directly. Here is a sample code:

from paddleocr import TextRecognition
model = TextRecognition(model_name="PP-OCRv5_server_rec", model_dir=r"C:\Users\Andrew\anaconda3\envs\v5train\Lib\site-packages\PaddleOCR\train_modelv5\inference")
output = model.predict(input=img_path, batch_size=1)
for res in output:
    res.print()
    r…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@liuhongen1234567
Comment options

Answer selected by KhankhaevAndrey
@liuhongen1234567
Comment options

@KhankhaevAndrey
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants