Removed clearing of options
This commit is contained in:
parent
41d0f89fd1
commit
f5fbfae5aa
|
@ -46,13 +46,11 @@ using HandLandmarksDetectorGraphOptionsProto =
|
||||||
|
|
||||||
HandDetectorGraphOptionsProto *handDetectorGraphOptionsProto =
|
HandDetectorGraphOptionsProto *handDetectorGraphOptionsProto =
|
||||||
handLandmarkerGraphOptionsProto->mutable_hand_detector_graph_options();
|
handLandmarkerGraphOptionsProto->mutable_hand_detector_graph_options();
|
||||||
handDetectorGraphOptionsProto->Clear();
|
|
||||||
handDetectorGraphOptionsProto->set_num_hands(self.numHands);
|
handDetectorGraphOptionsProto->set_num_hands(self.numHands);
|
||||||
handDetectorGraphOptionsProto->set_min_detection_confidence(self.minHandDetectionConfidence);
|
handDetectorGraphOptionsProto->set_min_detection_confidence(self.minHandDetectionConfidence);
|
||||||
|
|
||||||
HandLandmarksDetectorGraphOptionsProto *handLandmarksDetectorGraphOptionsProto =
|
HandLandmarksDetectorGraphOptionsProto *handLandmarksDetectorGraphOptionsProto =
|
||||||
handLandmarkerGraphOptionsProto->mutable_hand_landmarks_detector_graph_options();
|
handLandmarkerGraphOptionsProto->mutable_hand_landmarks_detector_graph_options();
|
||||||
handLandmarksDetectorGraphOptionsProto->Clear();
|
|
||||||
handLandmarksDetectorGraphOptionsProto->set_min_detection_confidence(
|
handLandmarksDetectorGraphOptionsProto->set_min_detection_confidence(
|
||||||
self.minHandPresenceConfidence);
|
self.minHandPresenceConfidence);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user