FlutterYoloOpenKitBindings class
Bindings for YOLO object detection native library.
Regenerate bindings with dart run ffigen --config ffigen.yaml.
Constructors
- FlutterYoloOpenKitBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
FlutterYoloOpenKitBindings.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
-
free_string(
Pointer< Char> str) → void - Free allocated string
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
yolo_detect_buffer(
Pointer< Uint8> image_data, int width, int height, int stride, double conf_threshold, double iou_threshold) → Pointer<Char> - Run detection on image buffer (BGRA format from camera) Returns JSON string with detection results (caller must free with free_string)
-
yolo_detect_path(
Pointer< Char> image_path, double conf_threshold, double iou_threshold) → Pointer<Char> - Run detection on image file path Returns JSON string with detection results (caller must free with free_string)
-
yolo_detect_yuv(
Pointer< Uint8> y_data, Pointer<Uint8> u_data, Pointer<Uint8> v_data, int width, int height, int y_row_stride, int uv_row_stride, int uv_pixel_stride, int rotation, double conf_threshold, double iou_threshold) → Pointer<Char> - Run detection on YUV420 buffer (Android camera format) rotation: 0, 90, 180, 270 degrees clockwise Returns JSON string with detection results (caller must free with free_string)
-
yolo_get_version(
) → Pointer< Char> - Get version info
-
yolo_init(
Pointer< Char> model_path) → int - Initialize YOLO detector with model path Returns 1 on success, 0 on failure
-
yolo_is_initialized(
) → int - Check if detector is initialized Returns 1 if initialized, 0 otherwise
-
yolo_release(
) → void - Release detector resources
-
yolo_set_classes(
Pointer< Char> class_names_json) → void - Set custom class names (JSON array string)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited