You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 reset_canvas();
does the trick
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.
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.
The text was updated successfully, but these errors were encountered: