Use custom gesture options in GestureRecognizer

PiperOrigin-RevId: 498567432
This commit is contained in:
Sebastian Schmidt 2022-12-30 04:56:57 -08:00 committed by Copybara-Service
parent 60c6b155f6
commit 9252a025e5

View File

@ -151,11 +151,11 @@ ConvertGestureRecognizerGraphOptionsProto(GestureRecognizerOptions* options) {
auto custom_gestures_classifier_options_proto =
std::make_unique<components::processors::proto::ClassifierOptions>(
components::processors::ConvertClassifierOptionsToProto(
&(options->canned_gestures_classifier_options)));
&(options->custom_gestures_classifier_options)));
hand_gesture_recognizer_graph_options
->mutable_custom_gesture_classifier_graph_options()
->mutable_classifier_options()
->Swap(canned_gestures_classifier_options_proto.get());
->Swap(custom_gestures_classifier_options_proto.get());
return options_proto;
}