Detect and scan a PDF417
Some documents, like the Colombian or the Peruvian, includes a PDF417 code with extra information that can be extracted. For those cases, you can choose readding this code separately from the rest of the document data in order to achieve a better accuracy.
Extra configuration
Before scanning the document, you have to include a dependency to your build.gradle
file:
...
dependencies {
...
implementation 'com.google.zxing:core:3.3.2'
...
}
...
PDF417 scan
Once you have the dependency added, you just need to use the next method to add the PDF417 step in the scan process:
MobbScanAPI.getInstance().configurePDF417DetectionStep(true);
Modify timeout
By default, PDF417 detection tries the detection for 10 seconds (maximum) and then pass to document detection step even if PDF417 decoding was not succesful. You can setup your own timeout by calling:
MobbScanAPI.getInstance().configurePDF417DetectionStep(true, 20);