I am attempting to read the back of a driver's license to decode the pdf417 barcode on the back. I tried using zxing.net with the following code:
var reader = new BarcodeReader();
reader.Options.PossibleFormats = new List<BarcodeFormat>() { BarcodeFormat.PDF_417 };
var barcodeBitmap = (Bitmap)Image.FromFile("bc.png");
var result = reader.Decode(barcodeBitmap);
The image is a test image I grabbed from the internet:
I am able to parse out the PDF417 barcode but how do I get the actual driver's license data from this?
@
ANSI 6360050101DL00300203DLDAQ3265188
DAALOTT,ERIC,B,
DAG763 TEST STREET
DAINEW YORK CITY
DAJSC
DAK10005
DARD
DAS
DAT
DAU601
DAW170
DAYBRO
DAZBRO
DBA20241004
DBB19911004
DBC1
DBD20140101
DBG2
DBH1
You can use LEADTOOLS Forms SDK technology in your application. https://www.leadtools.com/sdk/ocr/forms/recognition-processing You can leverage the BarcodeEngine and AAMVAID classes, which will allow you to recognize the PDF417 AAMVA barcode and extract the encoded information. Do note that I am an employee of this toolkit.
DISCLOSURE: I am an employee of the company offering this toolkit.
Here is some sample code:
I tried the barcode in your image and this is what I received.
AAMVA Extraction Result