Barcode scanner in Processing

posted Sep 22nd 2009 10:00am by
filed under: peripherals hacks

barcode_sc

Reader [Nikolaus] decided that instead of using an existing image based bar code decoder, he would write his own. Using the Processing language he created a scanner that parsed the black and white pattern when a bar code was centered on the image. His code then parsed that data and compared it with the initializing character to provide a reference. Currently his scanner supports three character sets of the Code 128 encoding, and provided his complete code so that others could add as they see fit. He admits that the code is a bit messy due to the lengthy character tables, but very straight forward.



3 Responses to Barcode scanner in Processing

  • Taek says:

    What hardware does this use to do the scanning?.

  • offy says:

    I believe this uses webcam. From the code that is what it looks like.

  • Drone says:

    The “Processing” “language” (quotes intentional) should not be confused with Arduino (which I usually hate; but sometimes-not [0.16" header spacing]). I kind of like Processing, and this is a nice example.

  • Leave a Reply

    XHTML: You can use these tags: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

    Send us your hacks










         




    Hacks

    Resources