Reply
Thread Tools
Posts: 178 | Thanked: 40 times | Joined on Aug 2007 @ UK
#11
Re barcodes: this may interest someone: http://en.barcodepedia.com/

I just had a quick try but flash can't see the camera on my N810
 

The Following User Says Thank You to muki For This Useful Post:
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#12
That's a well known limitation of Flash on the N8x0; this is the first time it's bothered me, though. Thanks for pointing out a flash webcam app I care about!
 
cashless's Avatar
Posts: 159 | Thanked: 21 times | Joined on Jan 2008 @ Houston, texas
#13
Wow!!!! This is HUGE for me. Time to start converting all the shoddily scanned e-books that i have.
 
Posts: 42 | Thanked: 24 times | Joined on Nov 2007
#14
i am trying to add support for jpeg files. has anyone built djpeg tools ?
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#15
Say, can't we use the crap camera with this library to get some nifty bacode reader?

http://www.libdmtx.org/
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#16
I have tried netpbm from Debian lenny; seems to work (although it has libc version incompatibility).
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#17
The .m code is here: http://people.bath.ac.uk/enpsgp/bar_code_reader2.m

It's pretty rough and ready (read development code). It doesn't do any filtering, so the image needs to be pretty clean. Also note that the image should be reasonably upright (and has to be the right way up, otherwise the code will come out backward and it probably won't like it )

It should be straight forward to turn into Python (which has the added advantage that the camera can be manipulated simply using it too), I've just been a bit busy lately. Do let me know how you get on.

Mike, I'll be interested to see what other options the OCR reader has to offer too when I have a bit of time.

Cheers,


Simon
 

The Following User Says Thank You to lardman For This Useful Post:
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#18
Originally Posted by lardman View Post
The .m code is here: http://people.bath.ac.uk/enpsgp/bar_code_reader2.m

It's pretty rough and ready (read development code). It doesn't do any filtering, so the image needs to be pretty clean. Also note that the image should be reasonably upright (and has to be the right way up, otherwise the code will come out backward and it probably won't like it )

It should be straight forward to turn into Python (which has the added advantage that the camera can be manipulated simply using it too), I've just been a bit busy lately. Do let me know how you get on.

Mike, I'll be interested to see what other options the OCR reader has to offer too when I have a bit of time.

Cheers,


Simon
Well, cleaning up the image doesn't really belong in the bar-code scanning program, anyway (IMHO). We can use netpbm; something like what we want may be gotten with pamtilt & pnmrotate (to auto-straighten), maybe pnmnlfilt (to clean up noise), and pnmnorm & pamdepth (crank up the contrast and squash to one bpp).

Then you've got a pretty good image, but maybe you still don't trust just one row out of the middle, but would rather an average? OK, pamcut out an arbitrary chunk, say the center 1/2 vertically, or maybe try to guess heuristically. Then pamscale -nomix can be used to squash it down to a single row; it'll take the more common color for each column.

Now you've got a single row of pixels, ready to apply that algorithm as it stands. That's what I'm thinking, anyway; if that's too slow, then the slow parts of the image processing can be converted to dedicated C code.

But I think scripting it together should give decent performance. I'll play around with it some; it'll probably be a couple weeks before I can look into porting it, but I'll play with the pbm pipeline, and with your code in Octave.
 
Posts: 28 | Thanked: 14 times | Joined on Jan 2008
#19
Another Avenue - ZXing Online Decoder - IF you have a good net connection, you can use zxing.org/w/decode.jspx and upload an image you snapped with the camera - it does not seem reliable, however, and I don't think it will be with the camera quality. The source code for this is available, however (I believe it is Java) on their website if you want to have a look.

I am not affiliated with this in any way - just found it while googling for barcode software.

For me, barcode software is cool but not really useful, but I will play with whatever you all come up with!

Patrick
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#20
Did you ever notice that the Gutenberg Project does NOT have a copy of Das Kapital?? Amazing but true, last I checked.
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:46.