GestureRecognizerOptions
class GestureRecognizerOptions : TaskOptions, NSCopyingOptions for setting up a GestureRecognizer.
- 
                  
                  Running mode of the gesture recognizer task. Defaults to .video.GestureRecognizercan be created with one of the following running modes:- image: The mode for performing gesture recognition on single image inputs.
- video: The mode for performing gesture recognition on the decoded frames of a video.
- liveStream: The mode for performing gesture recognition on a live stream of input data, such as from the camera.
 DeclarationSwift var runningMode: RunningMode { get set }
- 
                  
                  An object that confirms to GestureRecognizerLiveStreamDelegateprotocol. This object must implementgestureRecognizer(_:didFinishRecognitionWithResult:timestampInMilliseconds:error:)to receive the results of performing asynchronous gesture recognition on images (i.e, whenrunningMode=.liveStream).DeclarationSwift weak var gestureRecognizerLiveStreamDelegate: GestureRecognizerLiveStreamDelegate? { get set }
- 
                  
                  Sets the maximum number of hands can be detected by the GestureRecognizer. DeclarationSwift var numHands: Int { get set }
- 
                  
                  Sets minimum confidence score for the hand detection to be considered successful DeclarationSwift var minHandDetectionConfidence: Float { get set }
- 
                  
                  Sets minimum confidence score of hand presence score in the hand landmark detection. DeclarationSwift var minHandPresenceConfidence: Float { get set }
- 
                  
                  Sets the minimum confidence score for the hand tracking to be considered successful. DeclarationSwift var minTrackingConfidence: Float { get set }
- 
                  
                  Sets the optional ClassifierOptionscontrolling the canned gestures classifier, such as score threshold, allow list and deny list of gestures. The categories for canned gesture classifiers are: [“None”, “Closed_Fist”, “Open_Palm”, “Pointing_Up”, “Thumb_Down”, “Thumb_Up”, “Victory”, “ILoveYou”].TODO: Note this option is subject to change, after scoring merging calculator is implemented. DeclarationSwift @NSCopying var cannedGesturesClassifierOptions: ClassifierOptions? { get set }
- 
                  
                  Sets the optional ClassifierOptionscontrolling the custom gestures classifier, such as score threshold, allow list and deny list of gestures.TODO: Note this option is subject to change, after scoring merging calculator is implemented. DeclarationSwift @NSCopying var customGesturesClassifierOptions: ClassifierOptions? { get set }