Callback function, that returns coordinates of the detected at a separate frame document and information about the front-end status.
onNextFrame: (edges: Int32Array,
- [output] Detected document coordinates, represented by 8 integers separated by whitespaces.
- [output] A wasm status for assurance of a document boundary detection. The status is represented by one of the WasmEdgesDetectionResultFlags enumeration constants.
- [output] Front-end status, returned as a number:
'0' - no processing is performed at the front-end.
'1' - capture process is performed.
'2' - image is being captured.