Creating a barcode reader program.?
Creating a barcode reader program.?
Hey I want to create a program where I can assign a barcode to say an image or an envelope and when it’s scanned that item will either print or be shown on the screen. Where would I start with something like this and what would the best language be for something like this. I need it to run on xp. I know a little objective c but I’m basically starting from square 1. Thank you
Tags: Barcode, creating, program, reader
Under Forum

1 Comment for Creating a barcode reader program.?
1. Lee | February 15th, 2011 at 8:41 am
The current standard for barcode serialization algorithms that can embed large volumes of data (large in the sense of over 100 bytes/characters) is to use QR Code: http://en.wikipedia.org/wiki/QR_Code
Various academic papers have been written that goes into details about the implementations and the edge cases for scanning + processing QR code (Google Scholar’s a great place to start) but here’s a simple outline:
1. Have your scanner program buffer the image data into your processing program(preferably a 2 dimensional array of bytes or even bits if you can get the alignment correct, this will both decrease the memory footprint and speed up the process as atomically bit-wise calculations are faster on a magnitude of 3)
2. QR Codes have 4 characteristic regions that are ubiquitous. You may scan your image array for 3 large square followed by a smaller one, calculate the perspective distortion based on the disparity between the dimensions of these squares to the actual image when viewed orthogonally, and not only align the barcode correctly but also to restore the correct dimensions of the barcode.
3. Iteratively scan every single ‘pixel’ (pixel in the sense that they are atomic) and calculate its offset from the nearest alignment square, then follow the QR specification for its intended behavior/data
Leave a Comment for Creating a barcode reader program.?
You must be logged in to post a comment.
Trackback this post | Subscribe to the comments via RSS Feed