From fe77c5489fe8a08e4411ec65f3668a48cbabd6a9 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 21 Oct 2022 12:05:47 -0700 Subject: [PATCH] Fix comments in GestureRecognizer PiperOrigin-RevId: 482854253 --- .../cc/vision/gesture_recognizer/gesture_recognizer.h | 6 +++--- .../tasks/vision/gesturerecognizer/GestureRecognizer.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mediapipe/tasks/cc/vision/gesture_recognizer/gesture_recognizer.h b/mediapipe/tasks/cc/vision/gesture_recognizer/gesture_recognizer.h index 892b3c16..750a9979 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 32473b29..660645d9 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.