Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help me #1

Closed
sholoomail opened this issue Apr 25, 2022 · 5 comments
Closed

help me #1

sholoomail opened this issue Apr 25, 2022 · 5 comments

Comments

@sholoomail
Copy link

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

@amit-y11
Copy link
Owner

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

data=requests.get(f"https://api.ocr.space/parse/imageurl?apikey={API_KEY}&url={filepath}&language={query.data}&detectOrientation=True&filetype=JPG&OCREngine=1&isTable=True&scale=True")

@sholoomail
Copy link
Author

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

@amit-y11
Copy link
Owner

You will have to add the Persian Language here

keyboard = [[InlineKeyboardButton("English ", callback_data='eng'), InlineKeyboardButton("Russian", callback_data='rus'),InlineKeyboardButton("Czech", callback_data='cze')],
with callback_data = 'per'

@sholoomail
Copy link
Author

sholoomail commented Apr 26, 2022

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

@amit-y11
Copy link
Owner

Okay, I will make a separate branch for engine 3

@amit-y11 amit-y11 closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants