Skip to content
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

Open
roobann opened this issue Mar 1, 2015 · 3 comments
Open

Only showing (dash) during recognition #18

roobann opened this issue Mar 1, 2015 · 3 comments

Comments

@roobann
Copy link

roobann commented Mar 1, 2015

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

image

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

image

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.

image

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

@tasahara
Copy link

tasahara commented Apr 9, 2015

Hello.

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 .

@bboyairwreck
Copy link

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

@tamal-biswas
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants