Fix comments in GestureRecognizer

PiperOrigin-RevId: 482854253
This commit is contained in:
Sebastian Schmidt 2022-10-21 12:05:47 -07:00 committed by Copybara-Service
parent ed938a9214
commit fe77c5489f
2 changed files with 7 additions and 7 deletions

View File

@ -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.

View File

@ -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.
*
* <p>TODO Note this option is subject to change, after scoring merging
* calculator is implemented.