detect_quad method

bool detect_quad(
  1. Pointer<Uint8> frame,
  2. int width,
  3. int height,
  4. Pointer<Quad> out,
)

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);
}