Removed clearing of options

This commit is contained in:
Prianka Liz Kariat 2023-05-29 19:42:22 +05:30
parent 41d0f89fd1
commit f5fbfae5aa

View File

@ -46,13 +46,11 @@ using HandLandmarksDetectorGraphOptionsProto =
HandDetectorGraphOptionsProto *handDetectorGraphOptionsProto =
handLandmarkerGraphOptionsProto->mutable_hand_detector_graph_options();
handDetectorGraphOptionsProto->Clear();
handDetectorGraphOptionsProto->set_num_hands(self.numHands);
handDetectorGraphOptionsProto->set_min_detection_confidence(self.minHandDetectionConfidence);
HandLandmarksDetectorGraphOptionsProto *handLandmarksDetectorGraphOptionsProto =
handLandmarkerGraphOptionsProto->mutable_hand_landmarks_detector_graph_options();
handLandmarksDetectorGraphOptionsProto->Clear();
handLandmarksDetectorGraphOptionsProto->set_min_detection_confidence(
self.minHandPresenceConfidence);
}