Scenarios

This page covers the description of available scenarios

Scenario is the main setting for Document Reader SDK. It controls all scanning process of Core framework. Depending on the selected scenario, Core works in different ways. The set of available scenarios is different for each Core type. The following part of code allows to get all available scenarios (should be used after initialization is completed):

// getting current processing scenario
String currentScenario = DocumentReader.Instance().processParams.scenario;

// list of available scenarios
ArrayList<String> scenarios = new ArrayList<>();
for(DocumentReaderScenario scenario : DocumentReader.Instance().availableScenarios){
    scenarios.add(scenario.name);
}

DocumentReaderScenario class contains two main properties:

  • name - name of a scenario, use this value to set scenario for Document Reader SDK.

  • description - brief description of the scenario functionality and usage.

After initialization is completed, the processing scenario should be set, like so:

// set the scenario value
DocumentReader.Instance().processParams.scenario = "Mrz"

Comparison table of available scenarios vs results is below:

A - the option is available for this scenario.

Empty - the result type is not included in processing list and won't be available

O - the result type is not mandatory to reach COMPLETED state. Might be available, when processing is finished.

X - the result type is mandatory to reach COMPLETED state and will always be available when processing is finished.

Comparison table of available scenarios vs Cores is below:

Last updated