ID Parser can be used to parse AAMVA-compliant driver's licenses and ID cards into objects that you can work with. More information on the versions of the AAMVA standard.
var idCard = IdParser.Parse(barcode);
Console.WriteLine(idCard.StreetLine1); // "123 NORTH STATE ST."
Console.WriteLine(idCard.IssuerIdentificationNumber.GetDescription()); // "New York"
if (idCard is DriversLicense) {
var license = (DriversLicense)idCard;
Console.WriteLine(license.Jurisdiction.VehicleClass); // "C"
}
Take a look at the unit test project for more examples and usage.
The IdParser.Client
project is a handy GUI application to help test and verify that an ID will be parsed correctly. The app works with both OPOS and HID keyboard emulation scanners.
-
I can't build
IdParser.Client
. It's missing a required dependency. You need to have Microsoft POS for .NET installed. TheMicrosoft.PointOfService
dll is GAC'd and will allow you to build and run the client app. If you have POS for .NET version 1.12 installed, only the .NET 2.0 and 3.5 versions of the client will work with OPOS. You can still use the HID keyboard emulation in any .NET version of the client. -
The
Height
class has the wrongTotalInches
orCentimeters
. The AAMVA standard has no decimal places in the height subfile record. As a result, the conversion between inches and centimeters will be off.