Windows OCR engine fails to recognize the text in canvas (converted to bitmap)

前端 未结 1 861
暖寄归人
暖寄归人 2021-01-28 03:38

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

相关标签:
1条回答
  • 2021-01-28 04:13

    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:

    Not recognized

    Not recognized:

    Not recognized:

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

    0 讨论(0)
提交回复
热议问题