Skip to main content

DocumentDetectorStep

The document capture flow that the user will be subjected to is defined through an array of objects of type DocumentRecognitionStep (available in the SDK), where each element is one of the capture steps performed by the user.

DocumentSteps = new DocumentRecognitionStep[]{
new DocumentRecognitionStep(Document.cnh_front),
new DocumentRecognitionStep(Document.cnh_back)
};

Above, a flow is implemented that will collect from the user first the front of their CNH (cnh_front) and, after validating the collection of a quality photo, the back of the CNH.

The DocumentRecognitionStep object can assume the following values:

public enum Document {
cnh, // Complete Brazilian Driver's License
cnh_front, // Brazilian Driver's License front (Photo side)
cnh_back, // Brazilian Driver's License back (Signature side)
cnh_digital, // PDF of Brazilian digital Driver's License
rg_front, // Brazilian Identity Card front (Photo side)
rg_back, // Brazilian Identity Card back (Data side)
proof_of_address, // Proof of Address
other // Other identification documents
}