Internal change
PiperOrigin-RevId: 572121726
This commit is contained in:
		
							parent
							
								
									3adc068e97
								
							
						
					
					
						commit
						ac954215cf
					
				|  | @ -54,12 +54,6 @@ cc_library( | ||||||
|     ], |     ], | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| cc_library( |  | ||||||
|     name = "hand_landmark", |  | ||||||
|     hdrs = ["hand_landmark.h"], |  | ||||||
|     visibility = ["//visibility:public"], |  | ||||||
| ) |  | ||||||
| 
 |  | ||||||
| cc_library( | cc_library( | ||||||
|     name = "hand_landmarks_detector_graph", |     name = "hand_landmarks_detector_graph", | ||||||
|     srcs = ["hand_landmarks_detector_graph.cc"], |     srcs = ["hand_landmarks_detector_graph.cc"], | ||||||
|  | @ -175,3 +169,8 @@ cc_library( | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| # TODO: Enable this test | # TODO: Enable this test | ||||||
|  | 
 | ||||||
|  | cc_library( | ||||||
|  |     name = "hand_topology", | ||||||
|  |     hdrs = ["hand_topology.h"], | ||||||
|  | ) | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| /* Copyright 2022 The MediaPipe Authors.
 | /* Copyright 2023 The MediaPipe Authors.
 | ||||||
| 
 | 
 | ||||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||||
|  | @ -13,36 +13,36 @@ See the License for the specific language governing permissions and | ||||||
| limitations under the License. | limitations under the License. | ||||||
| ==============================================================================*/ | ==============================================================================*/ | ||||||
| 
 | 
 | ||||||
| #ifndef MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_LANDMARK_H_ | #ifndef MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_TOPOLOGY_H_ | ||||||
| #define MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_LANDMARK_H_ | #define MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_TOPOLOGY_H_ | ||||||
| 
 | 
 | ||||||
| namespace mediapipe::tasks::vision::hand_landmarker { | namespace mediapipe::tasks::vision::hand_landmarker { | ||||||
| 
 | 
 | ||||||
| // The 21 hand landmarks.
 | // Hand model 21 landmark names.
 | ||||||
| enum HandLandmark { | enum class HandLandmarkName { | ||||||
|   WRIST = 0, |   kWrist = 0, | ||||||
|   THUMB_CMC = 1, |   kThumb1, | ||||||
|   THUMB_MCP = 2, |   kThumb2, | ||||||
|   THUMB_IP = 3, |   kThumb3, | ||||||
|   THUMB_TIP = 4, |   kThumb4, | ||||||
|   INDEX_FINGER_MCP = 5, |   kIndex1, | ||||||
|   INDEX_FINGER_PIP = 6, |   kIndex2, | ||||||
|   INDEX_FINGER_DIP = 7, |   kIndex3, | ||||||
|   INDEX_FINGER_TIP = 8, |   kIndex4, | ||||||
|   MIDDLE_FINGER_MCP = 9, |   kMiddle1, | ||||||
|   MIDDLE_FINGER_PIP = 10, |   kMiddle2, | ||||||
|   MIDDLE_FINGER_DIP = 11, |   kMiddle3, | ||||||
|   MIDDLE_FINGER_TIP = 12, |   kMiddle4, | ||||||
|   RING_FINGER_MCP = 13, |   kRing1, | ||||||
|   RING_FINGER_PIP = 14, |   kRing2, | ||||||
|   RING_FINGER_DIP = 15, |   kRing3, | ||||||
|   RING_FINGER_TIP = 16, |   kRing4, | ||||||
|   PINKY_MCP = 17, |   kPinky1, | ||||||
|   PINKY_PIP = 18, |   kPinky2, | ||||||
|   PINKY_DIP = 19, |   kPinky3, | ||||||
|   PINKY_TIP = 20 |   kPinky4, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| }  // namespace mediapipe::tasks::vision::hand_landmarker
 | }  // namespace mediapipe::tasks::vision::hand_landmarker
 | ||||||
| 
 | 
 | ||||||
| #endif  // MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_LANDMARK_H_
 | #endif  // MEDIAPIPE_TASKS_CC_VISION_HAND_LANDMARKER_HAND_TOPOLOGY_H_
 | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user