Optional
Called when an error is reported.
Called whenever the document frame detection status changes.
Called when a document is snapped. Provides the original image and, when enabled, the detected document crop and detection result.
Called when an error is reported.