allgood / OpenNoteScanner

Android application for scanning and manipulating handwritten notes and documents.
Other
1.36k stars 283 forks source link

Possibility to use from other apps #118

Open uzumakinaruto123 opened 6 years ago

uzumakinaruto123 commented 6 years ago

Hi, I am implementing an OCR application to recognize text in the image. I am already done with extracting and reading text from the image.

However, I can't extract only the document from the image. So the output of the recognized text is too random as that region/block of text can be anywhere in the clicked image.

If I could get only the document then I can be sure that certain block will have a specific text on every scan.

So I wanted to know if I can use OpenNoteScanner as a library?

This can be closed!

Thank you!

allgood commented 6 years ago

The code wasn't wrote with this in mind, but you can transplant it into your application.

Another solution is that you can write your application to get the image through camera intent, this way the user will be able to select the OpenNoteScanner app to take the picture (if s/he didn't select another one as default).

All this said, if anybody contributes a patch where ONS can be called directly from another application (maybe declaring an specific intent), I will gladly accept it.

Best regards,

uzumakinaruto123 commented 6 years ago

Hi! Thank you for your response! I think building the same project as library project should work. And then adding it as a dependency in other. I will try. :) Currently, I am struggling with doc quality issue. None of the scanned docs are readable. The device on which I am testing is Xiaomi Mi A1. I am aware that the quality is device specific. I will test on more devices. 👍

allgood commented 6 years ago

This model have 12MP camera, I think that any >=10mp should be ok.

Em seg, 14 de mai de 2018 às 16:23, Sumeet Darade notifications@github.com escreveu:

Hi! Thank you for your response! I think building the same project as library project should work. And then adding it as a dependency in other. I will try. :) Currently, I am struggling with doc quality issue. None of the scanned docs are readable. The device on which I am testing is Xiaomi Mi A1. I am aware that the quality is device specific. I will test on more devices. 👍

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ctodobom/OpenNoteScanner/issues/118#issuecomment-388933169, or mute the thread https://github.com/notifications/unsubscribe-auth/AFyh0APxrkXh3jG_Hy3YBPWoNi1uoAoXks5tydnLgaJpZM4T84TU .