MethodChannelLocalFaceDetection class
An implementation of LocalFaceDetectionPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- LocalFaceDetectionPlatform
- MethodChannelLocalFaceDetection
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detectFaces(
Uint8List imageBytes, {double scoreThreshold = 0.55, double nmsThreshold = -1}) → Future< FaceDetectionResult> -
Run face detection against raw image bytes (e.g. PNG/JPEG encoded).
Returns a FaceDetectionResult describing any faces found.
override
-
disposeFaceDetection(
) → Future< void> -
Dispose any resources associated with face detection.
override
-
getPlatformVersion(
) → Future< String?> -
override
-
initializeFaceDetection(
) → Future< void> -
Initialize the underlying face detection model/session.
override
-
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