FaceDetector class

Provides face detection using the Qualcomm Lightweight Face Detection ONNX model.

Constructors

FaceDetector()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

isInitialized bool
no setter

Static Methods

detectFaces(Uint8List imageBytes, {double scoreThreshold = 0.55, double nmsThreshold = -1}) Future<FaceDetectionResult>
Runs face detection on the provided imageBytes.
dispose() Future<void>
Disposes the underlying session. Call during app shutdown if desired.
initialize() Future<void>
Loads the ONNX model into an OrtSession. Safe to call multiple times.