New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only showing (dash) during recognition #18

roobandev opened this Issue Mar 1, 2015 · 3 comments


None yet
4 participants
Copy link

roobandev commented Mar 1, 2015

When i browse an image it is showing (-) dash as detected string


After clicking on the image or near to it (clicked a dot), i am getting the actual recognized string


I am having this problem of detection as dash (-) when i use the ocrad.js code as well. It is shown in the alert in javascript. Please refer the attachment for more info.


Kindly let me know what is causing this problem and how this can be resolved.


This comment has been minimized.

Copy link

tasahara commented Apr 9, 2015


That's Canvas only I was also fillText, "-" was investigated because it is recognized as .

When the background is transparent but , unfortunately characters are not recognized .

In this case , when you hit the dot , because the background is filled white , has come to be recognized .

Does this problem , would be possible to correspond OCRAD.js?

Clumsy I'm sorry in English .


This comment has been minimized.

Copy link

bboyairwreck commented May 15, 2015

I, too, kept getting this hyphen dash error. I was working on this for hours. I finally figured out that I needed to call reset_canvas() on load. This sets the fillStyle of the canvas. This is the method from the demo.html:

function reset_canvas(){
o.fillStyle = 'white';
o.fillRect(0, 0, c.width, c.height)
o.fillStyle = 'black';

You want to make sure you call this. Don't just import it. So a simple call of
does the trick


This comment has been minimized.

Copy link

stolenfusion commented Nov 24, 2015

Hi bboyairwreck,

Nice to hear that you got a workaround. It would be nice if you can tell me from which function reset_canvas() needs to be called. I'm stuck since a long time. really frustrated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment