Nick's Blog

Scanning Drivers License Barcodes on Webforms in Javascript

This weekend I wrote a Javascript AAMVA Driver License/Identification Card Parser for use with USB 2D Barcode Scanners.  The result was an interesting reading through specs for the PDF 417 and DMV websites, but I did get a rough proof of concept together to at least show it works.  I spent a fair amount of time searching the interwebs for something out there to do this, but most all the libraries I did find were more about scanning/decoding the image of the barcode itself (like with a webcam).  I didn't need any of that as I was using a hardware USB scanner that appears to the computer as a keyboard.

continue reading