johnasad09 / wordsnap-ocr

Automatically exported from code.google.com/p/wordsnap-ocr
0 stars 0 forks source link

native gocr for android #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've found your app while trying to find a OCR for android. Here is a little 
something that might help implementing running OCR on the handheld. In the 
attachment there is a NDK project and a built executable of GOCR. I've 
tested it on a few files and the performance is acceptable on ~200k pixel 
images... but there are some warning messages in the output. to test it just 
adb push apps/gocr/project/libs/armeabi/gocr /data/local
djpeg -pnm -gray SomeSmallImage.jpg > someimage.pnm
adb push someimage.pnm /data/local
adb shell /data/local/gocr /data/local/someimage.pnm

Original issue reported on code.google.com by lukass...@gmail.com on 22 Mar 2010 at 11:47

Attachments:

GoogleCodeExporter commented 8 years ago
I've tested your GOCR executable on Android, and it works. One problem for 
using it -- it requires a bitmap image input, and as far as I can tell, 
Android's bitmap class is incapable of saving such an image. How would we 
handle converting from an internal Bitmap object to a PNM or similar image 
format?

Perhaps a version of DJPEG could be found for Android?

Original comment by pcmst...@gmail.com on 23 Jul 2010 at 3:04