LEADTOOLS Support
General
LEADTOOLS SDK Examples
HOW TO: Read the data in PDF417 AAMVA Barcodes using Java(Android)
#1
Posted
:
Tuesday, January 7, 2020 2:31:36 PM(UTC)
Groups: Registered, Manager, Tech Support, Administrators
Posts: 107
Was thanked: 9 time(s) in 9 post(s)
The following directions will allow you to access the data in the PDF417 barcodes that follow the AAMVA specification. You will be able to read the data contained within it - Download the LEADTOOLS Android installation here: https://www.leadtools.co...category=android#android
- Open the Barcode demo located in Android Studio ...\LEADTOOLS20_Android\Examples\Android\BarcodeDemo
- Modify the following code located in the BarcodeDemoActivity.java file in the readBarcodeFromLiveCapture method
Code:mElapsedTime = (System.currentTimeMillis() - startTime) / 1000.0; // *Add code after here*
if(mResultsData != null && mResultsData.getSymbology() == BarcodeSymbology.PDF417) { // When a barcode is detected in live capture
AAMVAID id = BarcodeData.parseAAMVAData(mResultsData.getData(), false); // Parse barcode data located in mResultsData
Log.d("firstname", id.getFirstName().getValue()); //Output value contained in field
Log.d("lastname", id.getLastName().getValue());
Log.d("address", id.getAddressCity());
Log.d("postalcode", id.getAddressPostalCode());
}
When the barcode is recognized using live capture, you are taking the recognized byte data contained within mResultsData, and passing it into the
ParseAAMVAData method.You can then use one of the available properties, such as getFirstName, to pull the information that was detected.
For a full list of all the properties contained in the AAMVA specification, you can find this here:
https://www.leadtools.co...ba/aamvaid--members.htmlMarcus Andra
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
General
LEADTOOLS SDK Examples
HOW TO: Read the data in PDF417 AAMVA Barcodes using Java(Android)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.