DocScanLiteBindings class
Bindings for src/doc_scan_lite.h.
Regenerate bindings with dart run ffigen --config ffigen.yaml.
Constructors
- DocScanLiteBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
DocScanLiteBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detect_quad(
Pointer< Uint8> frame, int width, int height, Pointer<Quad> out) → bool - 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.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
warp_perspective(
Pointer< Uint8> frame, int width, int height, Quad quad, Pointer<Uint8> out_buffer, int out_width, int out_height) → bool -
Warps the region of
framebounded byquadintoout_buffer, producing a straightened, cropped single-channel image of size out_width x out_height. Returns false if the homography could not be solved.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited