HandDetectorIsolate class
Deprecated: Use HandDetector instead.
HandDetector now runs inference in a background isolate by default. This class is kept for backward compatibility and delegates all operations to a HandDetector instance internally.
- Annotations
-
- @Deprecated('Use HandDetector instead. HandDetector now runs inference in a background ' 'isolate by default. Will be removed in a future release.')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isReady → bool
-
Returns true when the underlying HandDetector is initialized and ready.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detectHands(
List< int> imageBytes) → Future<List< Hand> > - Detects hands in the given encoded image in the background isolate.
-
detectHandsFromMat(
Mat image) → Future< List< Hand> > -
Detects hands in a pre-decoded
cv.Matimage in the background isolate. -
detectHandsFromMatBytes(
Uint8List bytes, {required int width, required int height, int matType = 16}) → Future< List< Hand> > - Detects hands from raw pixel bytes in the background isolate.
-
dispose(
) → Future< void> - Disposes the background isolate and releases all resources.
-
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 Methods
-
spawn(
{HandMode mode = HandMode.boxesAndLandmarks, HandLandmarkModel landmarkModel = HandLandmarkModel.full, double detectorConf = 0.45, int maxDetections = 10, double minLandmarkScore = 0.5, int interpreterPoolSize = 1, PerformanceConfig performanceConfig = const PerformanceConfig(), bool enableGestures = false, double gestureMinConfidence = 0.5}) → Future< HandDetectorIsolate> - Spawns a new isolate with an initialized HandDetector.