Skip to content

Processing Scenario

When the initialization is completed successfully, you can start the document recognition processing. But before, you need to choose and set up the processing scenario.

A scenario is the main setting for Document Reader SDK. It controls all scanning processes of the Core framework and defines the way Core works. The set of available scenarios is different for each Core type. To see which scenarios are supported by certain Core types, visit the Core page.

Features

Different scenarios support different sets of features, below is the full list of available features.

Feature Description
Visual zone OCR Optical character recognition of the document visual zone text fields based on document templates included in the database.
Document type identification Automatic recognition of the document type: no need to manually select a country, document type, and series for processing.
MRZ OCR Reading and parsing the machine readable zone lines into separate fields.
Barcode recognition Reading the 1D and 2D (PDF417, QR, Aztec, Datamatrix) barcodes and automatic parsing into text fields using included document template specifications if the template database is available and the document type is identified.
Document location Detecting the document boundaries and cropping out the document from the supplied picture.
Graphics cropping Cropping graphic fields, such as a photo portrait and signature, based on templates included in the database.
Checking security features For each document type, certain secutiry checks can be performed. For example, UV dull paper check, image patterns (VIS), IR transparency, etc. You can find the security checks by document types in the Documents list.
Hologram detection Automatically determining the location of a hologram and checking the hologram authenticity.
Multipage processing Processing child documents (second page, back side) if they are identified for the detected document type or if an ID1-sized document is processed.

SCENARIO_FULL_PROCESS

This scenario detects an identity document, identifies its document type, recognizes MRZ & Visual zone & barcodes, and parses data in text fields.

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • Checking security features
  • Hologram detection
  • Multipage processing

 

SCENARIO_OCR

This scenario detects an identity document, identifies its document type, recognizes MRZ & Visual zone, and parses data in text fields.

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • Checking security features
  • Hologram detection
  • Multipage processing

 

SCENARIO_DOCTYPE

This scenario detects an identity document, identifies its document type, recognizes MRZ, if any, and parses data in text fields.

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • Checking security features
  • Hologram detection
  • Multipage processing

 

SCENARIO_MRZ_AND_LOCATE

This scenario detects an identity document, crops it, recognizes MRZ, and parses data in text fields.

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • Checking security features
  • Hologram detection
  • Multipage processing

 

SCENARIO_BARCODE_AND_LOCATE

This scenario detects document boundaries and obtains the barcode data.

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • Checking security features
  • Hologram detection
  • Multipage processing

 

SCENARIO_MRZ

This scenario detects MRZ, recognizes it, and parses data in text fields.

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • Checking security features
  • Hologram detection
  • Multipage processing

 

SCENARIO_BARCODE

This scenario detects barcode, recognizes it, and parses data in text fields.

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • Checking security features
  • Hologram detection
  • Multipage processing

 

SCENARIO_CREDIT_CARD

This scenario detects credit card, recognizes Visual zone, and parses data in text fields.

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • Checking security features
  • Hologram detection
  • Multipage processing

 

SCENARIO_FULL_AUTH

This scenario detects an identity document, identifies its document type, recognizes MRZ & Visual zone & barcodes, performs checking of security features, if any, and parses data in text fields.

  • Visual zone OCR
  • Document type identification
  • MRZ OCR
  • Barcode recognition
  • Document location
  • Graphics cropping
  • Checking security features
  • Hologram detection
  • Multipage processing

List of All Scenarios

All the other available scenarios and their descriptions can be found on the Complete List of Scenarios page.

Setting up

To set the processing scenario, use:

DocumentReader.setConfig({
    processParams: {
        scenario: ScenarioIdentifier.SCENARIO_FULL_PROCESS
    }
});

The list of returned scenarios is based on the Core capabilities and your license. The license has the priority. To get the list of all available scenarios, invoke:

DocumentReader.getAvailableScenarios().then(scenarios =>
    console.log(scenarios)
);

Next Steps