Skip to content Skip to sidebar Skip to footer

Windows Ocr Engine Fails To Recognize The Text In Canvas (converted To Bitmap)

I have a cordova project where I have a 'scribble pad' where the user can scribble their notes. This is a simple canvas object, and I'd like to get the OCR Engine to convert it int

Solution 1:

well, that was rather embarrassing to realize that the reason why the OCR failed to read anything, even a system written text was that the resulting, generated image had a transparent background. Once I've included a rectangle with the white fill it all started to work correctly.

Unfortunately, the OCR is struggling to recognize anything I scribble on the canvas, so e.g. handwritten numbers or multiline text in canvas are not being recognized, see below

Recognized: Recognized

Not recognized Not recognized

Not recognized: Not recognized

Not recognized: Not recognized neither

Then I've found Windows.UI.Input.Inking namespace and I reckon that's the only way to go.

Post a Comment for "Windows Ocr Engine Fails To Recognize The Text In Canvas (converted To Bitmap)"