NeutrinosPlatform / cordova-plugin-mobile-ocr

A cordova plugin that can accept image URI or Base64 data and returns the text present in the image as string without need for network. You can also try :- https://github.com/NeutrinosPlatform/cordova-plugin-ml-text
MIT License
49 stars 30 forks source link

foundText: false issue with base64 image #35

Closed dzungcao closed 4 years ago

dzungcao commented 4 years ago

I am facing this issue with below base64 image. Hope someone can help to look into this.

Thank you very much

Input:

iVBORw0KGgoAAAANSUhEUgAAAGcAAABnCAYAAAAdQVz5AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZ6ADAAQAAAABAAAAZwAAAAA7gf8VAAAIXElEQVR4Ae2dbWwURRjHn9ltD8qbgEUx+MJrIggoWGivkIgviaKUNL1eAhERNEqI4hdU/CCmEdRgFImhkaBRBBQCLRRRUT4AEui1UFACKIFg8IMxKApYpIX2bnym9dre9Zm9q925u/aeSa63+8zsPDO//+7O7NzsFIADE2ACTIAJMAEmwASYABNgAkyACTABJsAEmAATYAJMgAkwASbABEB0OwYn/R64eC0bMjKzQVjZEAoOAiGyAcRAkCE7/vpadWCJ/TAZDoHYGoz/OPdSZriXVZJyqvQPAVvmg4R8LEE+1IYmojDN9ZIh1CR8/sk22/GUFdNL/FSLrzDvAjyNcSexIVzyxHrtrLeagl7Q6JmD4BciwHs6m13M46V4FLxlu2KmczlB17pyKv1ZYIcWQhBeQQ6Dms5sl4GQ2Uk5Ce0sDglHGQPF00GESvHmMkybxlSEEIdNZe2Ub+pfOXsL+0NPexUI+aRTRczFYZuTV/aNufz1Oae2OAFfLjbEm7H4Q/VVIGMuofU8fn5v+kj8FvICXnXYQ4g3tO2tJb4zoEqZuuJU+p5CYT7AMnriwHkau2J7sXt1AGTwAHgrzsVxTMonSb3emkRJqotfR9CvxqQnYD+meRNyy7+NmbYLJkgtcdQD5BX5IfbC5jqzlOfwAXMR5JZ96Zyua8d24InZcEVrCrKh3lKwZzp4UtfVGq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5ErkJggg==


Result: {"foundText":false}

ChrisTomAlx commented 4 years ago

Is this your image?

This looks like handwritten text. Although this plugin could work with really neatly written text it is meant for machine generated text. The model has been trained with those. To test this you can click a pic of a page in a printed book or a business card and then get the text.

Closing this issue for now as it does not seem to need anymore clarification. Let me know if you need more help

Cheers, Chris Neutrinos

dzungcao commented 4 years ago

Hi Chris,

Yes, I am trying to detect single handwritten characters.

Thanks for your quick response.