onNextFrame method
Callback function, that returns coordinates of the detected at a separate frame document and information about the front-end status.
onNextFrame: (edges: Int32Array,
feedback: WasmEdgesDetectionResultFlags
status: number)
=> void;
Parameters
- edges
- [output] Detected document coordinates, represented by 8 integers separated by whitespaces.
- feedback
- [output] A wasm status for assurance of a document boundary detection. The status is represented by one of the WasmEdgesDetectionResultFlags enumeration constants.
- status
- [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.
03.04.2023 17:06:08