Face Detector C++ API

PiperOrigin-RevId: 513959349
This commit is contained in:
MediaPipe Team
2023-03-06 07:17:46 -08:00
committed by Copybara-Service
parent 5b2678a49f
commit 3d41eabc2e
9 changed files with 753 additions and 14 deletions
+4
View File
@@ -64,6 +64,7 @@ mediapipe_files(srcs = [
"pointing_up.jpg",
"pointing_up_rotated.jpg",
"portrait.jpg",
"portrait_rotated.jpg",
"right_hands.jpg",
"right_hands_rotated.jpg",
"segmentation_golden_rotation0.png",
@@ -86,6 +87,7 @@ exports_files(
"expected_right_up_hand_landmarks.prototxt",
"gesture_recognizer.task",
"portrait_expected_detection.pbtxt",
"portrait_rotated_expected_detection.pbtxt",
],
)
@@ -114,6 +116,7 @@ filegroup(
"pointing_up.jpg",
"pointing_up_rotated.jpg",
"portrait.jpg",
"portrait_rotated.jpg",
"right_hands.jpg",
"right_hands_rotated.jpg",
"segmentation_golden_rotation0.png",
@@ -178,6 +181,7 @@ filegroup(
"portrait_expected_detection.pbtxt",
"portrait_expected_face_landmarks.pbtxt",
"portrait_expected_face_landmarks_with_attention.pbtxt",
"portrait_rotated_expected_detection.pbtxt",
"thumb_up_landmarks.pbtxt",
"thumb_up_rotated_landmarks.pbtxt",
"victory_landmarks.pbtxt",
@@ -0,0 +1,35 @@
# proto-file: mediapipe/framework/formats/detection.proto
# proto-message: Detection
location_data {
format: BOUNDING_BOX
bounding_box {
xmin: 674
ymin: 283
width: 236
height: 236
}
relative_keypoints {
x: 0.8207535
y: 0.44679973
}
relative_keypoints {
x: 0.8196571
y: 0.56261915
}
relative_keypoints {
x: 0.76194185
y: 0.5171923
}
relative_keypoints {
x: 0.7199387
y: 0.5136067
}
relative_keypoints {
x: 0.8070089
y: 0.36298043
}
relative_keypoints {
x: 0.8088217
y: 0.61204016
}
}