the_ocr_bot icon indicating copy to clipboard operation
the_ocr_bot copied to clipboard

help me

Open sholoomail opened this issue 3 years ago • 5 comments
trafficstars

hi. in ocr.space i see this platform support persian language but in bot persian language is not exist.

sholoomail avatar Apr 25 '22 13:04 sholoomail

Yeah, the Persian language is supported when you use ocr engine 3, I have used ocr engine 1 because it is faster than other ocr engines. You can change it if you want you just have to change OCREngine = 1 to OCREngine = 3 https://github.com/amit-y11/the_ocr_bot/blob/f84abc4893800190ae5d788bbaf423fbdc942d8b/ocrbot/handlers/callbackquery_handler.py#L20

amit-y11 avatar Apr 25 '22 13:04 amit-y11

i change it but in bot when i upload image, persian language button not display.

sholoomail avatar Apr 25 '22 17:04 sholoomail

You will have to add the Persian Language here https://github.com/amit-y11/the_ocr_bot/blob/f84abc4893800190ae5d788bbaf423fbdc942d8b/ocrbot/handlers/extract_image.py#L16 with callback_data = 'per'

amit-y11 avatar Apr 25 '22 17:04 amit-y11

thanks a lot. is possible you create a branch for engine 3?

sholoomail avatar Apr 26 '22 13:04 sholoomail

Okay, I will make a separate branch for engine 3

amit-y11 avatar Apr 27 '22 10:04 amit-y11