Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, January 7, 2020 2:31:36 PM(UTC)
Marcus Andra

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.html
Marcus Andra
Developer Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.043 seconds.