News for hackers. Stuff that matters.
Re:Optical character recognition web app in JS and HTML5 by cessor on Friday March 28, 2014 @10:00PM (#7491109)
I tried it with 10 writings from documents, books, printed ads, papers and so on. Even crystal clear text with only one character yielded only /"////,,,// gibberish. I found that it doesn't work very well...
Re:Optical character recognition web app in JS and HTML5 by konradzikusek on Friday March 28, 2014 @10:13PM (#7491133)
That's strange, I never got that bad results. Check out my video where I'm demonstrating the app ( https://www.youtube.com/watch?v=ttn437BlEbo ), you'll see what texts I've worked on.
Re:Optical character recognition web app in JS and HTML5 by palakchokshi on Friday March 28, 2014 @06:56PM (#7490494)
Is there functionality to train the algorithm? Improve the answer by using Levenshtein distance between OCRed text and set of words or something? Or maybe that is something the dev who uses this library can implement themselves. :)
Re:Optical character recognition web app in JS and HTML5 by konradzikusek on Friday March 28, 2014 @07:44PM (#7490690)
Using simple text correction algorithm should work just fine. However, this goes beyond this simple experiment. I just wanted to demonstrate capabilities of ocrad.js . Feel free to implement it yourself! It seems that there are multiple JS auto-correction libs, e.g. https://code.google.com/p/careti/ .
Re:Optical character recognition web app in JS and HTML5 by grannyg00se on Friday March 28, 2014 @11:43PM (#7491323)
Could use a bit of tweaking. Maybe my camera image isn't good enough?

http://www.tiikoni.com/tis/view/?id=e6fe518

Re:Optical character recognition web app in JS and HTML5 by stockmania on Friday March 28, 2014 @11:53PM (#7491346)
I took a picture of text on the side of a mug and got it to work. Just had to play with the brightness and contrast. Pretty cool, thanks for sharing.
Re:Optical character recognition web app in JS and HTML5 by IvanK_net on Friday March 28, 2014 @06:09PM (#7490265)
Nice, but you should make it work automatically and "online" just from camera image, without setting additional parameters.
Re:Optical character recognition web app in JS and HTML5 by konradzikusek on Friday March 28, 2014 @06:15PM (#7490303)
That would be great! Any idea how to locate the text on the image? Since face recognition can be done "online" ( http://auduno.github.io/clmtrackr/examples/facesubstitution.... ), finding text should also be possible.
Re:Optical character recognition web app in JS and HTML5 by bikamonki on Friday March 28, 2014 @09:59PM (#7491107)
Works dandy nice job! Why does it have to be a 'huge' image? Can't the cropped area be zoomed before running the OCR?
Re:Optical character recognition web app in JS and HTML5 by konradzikusek on Friday March 28, 2014 @10:25PM (#7491163)
Thanks! It doesn't have to be 'huge' image, I just recommended it as it gives better results. Small text tends to be more distorted.
Re:Optical character recognition web app in JS and HTML5 by vtempest on Friday March 28, 2014 @07:51PM (#7490728)
Doesn't work very well for me in terms of recognition. I took a picture of a few logos and big text and it only recognized 80%
Re:Optical character recognition web app in JS and HTML5 by konradzikusek on Friday March 28, 2014 @08:09PM (#7490792)
Recognition algorithm is provided by ocrad.js which is a JavaScript version of the OCRAD project ( http://www.gnu.org/software/ocrad/ ). It's not perfect, but IMO it's very good - just make sure to use huge, printed, black-on-white text.
Re:Optical character recognition web app in JS and HTML5 by mrfusion on Friday March 28, 2014 @06:32PM (#7490375)
Could this be made to work on the iPhone ?
Re:Optical character recognition web app in JS and HTML5 by konradzikusek on Friday March 28, 2014 @07:38PM (#7490667)
It should probably work on Chrome for iPhone. It won't work on Safari since it doesn't support getUserMedia and WebGL.
Re:Optical character recognition web app in JS and HTML5 by Vekz on Friday March 28, 2014 @07:52PM (#7490730)
You could use trigger.io or another phone frame work that gives you JS api access to the camera and pipe it to this library
Re:Optical character recognition web app in JS and HTML5 by robgibbons on Saturday March 29, 2014 @12:17AM (#7491394)
Got it to recognize 3 out of 6 letters on my beer bottle. Not bad!
Re:Optical character recognition web app in JS and HTML5 by NaNaN on Saturday March 29, 2014 @09:03PM (#7494686)
Only minified JS? Open source? So disappointing.
Re:Optical character recognition web app in JS and HTML5 by konradzikusek on Sunday March 30, 2014 @05:16AM (#7495654)
I'm not sure what do you mean. Only code that I wrote for this demo is in index.html and main.js. These two files are not minified. Ocrad.js, jquery, modernizr, bootstrap are minified because these are libraries that I'm importing. Everything is explained under the app, please read the description.
Re:Optical character recognition web app in JS and HTML5 by NaNaN on Monday April 07, 2014 @07:03AM (#7545753)
Sorry, I misunderstood it. :( I browsed too fast.