edufolly / flutter_mobile_vision

Flutter implementation of Google Mobile Vision.
MIT License
455 stars 168 forks source link

Equal sign " = " not recognized by OCR on android #28

Open ibaiC opened 5 years ago

ibaiC commented 5 years ago

When recognizing text using the OCR function equal signs seem to not be detected at all. On rare occasions when the equal signs are in between alphanumeric characters the equal signs are recognized as " - " characters which is wrong.

edufolly commented 5 years ago

Hi @ibaiC,

could you provide an image to do OCR tests?

XYUnknown commented 5 years ago

Hi @edufolly , I have an example of this issue. It took place in live ocr recognition. The testing documents contains the string h4QJJPSXjPfaCnivEuYdRQDZ5aBBJS5QpA== the == at the end of this string is not recognised or recognised as something else. The results are attached.

screenshot_20190205_173808_com example mobileapp screenshot_20190205_173758_com example mobileapp screenshot_20190205_173632_com example mobileapp

ibaiC commented 5 years ago

@edufolly It appears as though any instance of an equal sign in any image is simply not recognized. You can test it out with the following string.

foo = bar , and bar = foo. Two signs == also don't work ==+=++++====

This could possibly come from a problem with the resolution of the frames being processed ? Perhaps the resolution is not clear enough and the equal signs are being rendered into a shape that the model believes is a dash " - " instead of an equal sign as we have noticed through some tests.

I have looked through your code but was unable to fix the issue on a local copy of the package.