You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have set the langs to 'zh' when i using the OCR,but the recognize result appear japanese word or other language word。how can i fix it or limit the ocr result in my word dict.
thx
The text was updated successfully, but these errors were encountered:
from PIL import Image
from surya.ocr import run_ocr
from surya.model.detection.model import load_model as load_det_model, load_processor as load_det_processor
from surya.model.recognition.model import load_model as load_rec_model
from surya.model.recognition.processor import load_processor as load_rec_processor
from surya.recognition import batch_recognition
image = Image.open('text.png')
langs = ["en"] # Replace with your languages - optional but recommended
det_processor, det_model = load_det_processor(), load_det_model()
rec_model, rec_processor = load_rec_model(), load_rec_processor()
Well, I actually came here to say the same but with english. I deal with financial reports and it often changes the £ with "છ" or "רא" or "મ" or "દ".
I must say in all fairness that the rest is great.
Hi
i have set the langs to 'zh' when i using the OCR,but the recognize result appear japanese word or other language word。how can i fix it or limit the ocr result in my word dict.
thx
The text was updated successfully, but these errors were encountered: