detect_quad method
Detects the largest quadrilateral document-like contour in a single-channel frame (e.g. the Y-plane of a YUV420 camera frame). Returns false if no suitable quad was found.
Implementation
bool detect_quad(
ffi.Pointer<ffi.Uint8> frame,
int width,
int height,
ffi.Pointer<Quad> out,
) {
return _detect_quad(frame, width, height, out);
}