diff --git a/mediapipe/tasks/cc/vision/gesture_recognizer/gesture_recognizer.h b/mediapipe/tasks/cc/vision/gesture_recognizer/gesture_recognizer.h index 892b3c16a..750a99797 100644 --- a/mediapipe/tasks/cc/vision/gesture_recognizer/gesture_recognizer.h +++ b/mediapipe/tasks/cc/vision/gesture_recognizer/gesture_recognizer.h @@ -59,7 +59,7 @@ struct GestureRecognizerOptions { int num_hands = 1; // The minimum confidence score for the hand detection to be considered - // successfully. + // successful. float min_hand_detection_confidence = 0.5; // The minimum confidence score of hand presence score in the hand landmark @@ -67,11 +67,11 @@ struct GestureRecognizerOptions { float min_hand_presence_confidence = 0.5; // The minimum confidence score for the hand tracking to be considered - // successfully. + // successful. float min_tracking_confidence = 0.5; // The minimum confidence score for the gestures to be considered - // successfully. If < 0, the gesture confidence thresholds in the model + // successful. If < 0, the gesture confidence thresholds in the model // metadata are used. // TODO Note this option is subject to change, after scoring // merging calculator is implemented. diff --git a/mediapipe/tasks/java/com/google/mediapipe/tasks/vision/gesturerecognizer/GestureRecognizer.java b/mediapipe/tasks/java/com/google/mediapipe/tasks/vision/gesturerecognizer/GestureRecognizer.java index 32473b299..660645d9c 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/vision/gesturerecognizer/GestureRecognizer.java +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/vision/gesturerecognizer/GestureRecognizer.java @@ -310,18 +310,18 @@ public final class GestureRecognizer extends BaseVisionTaskApi { /** Sets the maximum number of hands can be detected by the GestureRecognizer. */ public abstract Builder setNumHands(Integer value); - /** Sets minimum confidence score for the hand detection to be considered successfully */ + /** Sets minimum confidence score for the hand detection to be considered successful */ public abstract Builder setMinHandDetectionConfidence(Float value); /** Sets minimum confidence score of hand presence score in the hand landmark detection. */ public abstract Builder setMinHandPresenceConfidence(Float value); - /** Sets the minimum confidence score for the hand tracking to be considered successfully. */ + /** Sets the minimum confidence score for the hand tracking to be considered successful. */ public abstract Builder setMinTrackingConfidence(Float value); /** - * Sets the minimum confidence score for the gestures to be considered successfully. If < 0, - * the gesture confidence threshold=0.5 for the model is used. + * Sets the minimum confidence score for the gestures to be considered successful. If < 0, the + * gesture confidence threshold=0.5 for the model is used. * *

TODO Note this option is subject to change, after scoring merging * calculator is implemented.