SubhamTyagi / android-ocr

Tesseract based OCR for android
Apache License 2.0
416 stars 68 forks source link

Sharing an image to the app doesn't work #134

Open asereze opened 3 weeks ago

asereze commented 3 weeks ago

Sharing an image to the app opens the app, and a dialogue with a list of languages to select, but after selecting a language nothing happens. There is no way to make the OCR analysis start. Also, the image only gets opened if there was not an old one saved, otherwise I see that one.

pixel2user commented 3 weeks ago

I can use the "pull to refresh" gesture (tap + hold + pull down + release) to start the recognition process.

asereze commented 3 weeks ago

@pixel2user Thank you, I tried it now and saw that it works! Unfortunately, though, only using the language already selected. For example, if I had previously selected Japanese as the language from the text recognition options, and then I share an image with English text with the app and try to select English as the language, the language is not changed. I can pull to refresh and the image is parsed, but using the Japanese data. Also, if the "Save data" option in the settings is enabled, even while pulling to refresh I don't get the text of the image I shared to the app but it keeps giving me the text from the last image that I opened through the app itself.

SubhamTyagi commented 3 weeks ago

This feature is not fully implemented yet. I will implement this as soon as I got some time.