BodyParts
- class hybrid_learning.datasets.custom.coco.body_parts.BodyParts(value)[source]
-
Mapping of a visual concept description (body part) to COCO keypoint ID collections approximating it. A body part is considered to be a connected part of a person. E.g. a
"face"
can be approximated by("left_eye", "right_eye", "nose")
. An arm is either the connection between("left_wrist, left_elbow, left_shoulder)
or between("right_wrist, right_elbow, right_shoulder)
.Available keypoints:
"nose", "left_eye", "right_eye", "left_ear", "right_ear", "left_shoulder", "right_shoulder", "left_elbow", "right_elbow", "left_wrist", "right_wrist", "left_hip", "right_hip", "left_knee", "right_knee", "left_ankle", "right_ankle"
Public Data Attributes:
Inherited from : py: class:Enum
Public Methods:
Inherited from : py: class:tuple
index
(value[, start, stop])Return first index of value.
count
(value, /)Return number of occurrences of value.
Special Methods:
__repr__
()Return repr(self).
__new__
(value)Inherited from : py: class:tuple
__repr__
()Return repr(self).
__hash__
()Return hash(self).
__getattribute__
(name, /)Return getattr(self, name).
__lt__
(value, /)Return self<value.
__le__
(value, /)Return self<=value.
__eq__
(value, /)Return self==value.
__ne__
(value, /)Return self!=value.
__gt__
(value, /)Return self>value.
__ge__
(value, /)Return self>=value.
__iter__
()Implement iter(self).
__len__
()Return len(self).
__getitem__
(key, /)Return self[key].
__add__
(value, /)Return self+value.
__mul__
(value, /)Return self*value.
__rmul__
(value, /)Return value*self.
__contains__
(key, /)Return key in self.
__new__
(value)__getnewargs__
()Inherited from : py: class:Enum
__repr__
()Return repr(self).
__str__
()Return str(self).
__dir__
()Returns all members and all public methods
__format__
(format_spec)Returns format using actual value type unless __str__ has been overridden.
__hash__
()Return hash(self).
__reduce_ex__
(proto)Helper for pickle.
- FACE = ('left_eye', 'right_eye', 'nose')
- HEAD = ('left_eye', 'right_eye', 'nose', 'left_ear', 'right_ear')
- HIP = ('left_hip', 'right_hip')
- LEFT_ANKLE = ('left_ankle',)
- LEFT_ARM = ('left_shoulder', 'left_elbow', 'left_elbow', 'left_wrist')
- LEFT_EAR = ('left_ear',)
- LEFT_ELBOW = ('left_elbow',)
- LEFT_EYE = ('left_eye',)
- LEFT_FOOT = ('left_ankle',)
- LEFT_HAND = ('left_wrist',)
- LEFT_HIP = ('left_hip',)
- LEFT_KNEE = ('left_knee',)
- LEFT_LEG = ('left_hip', 'left_knee', 'left_knee', 'left_ankle')
- LEFT_LOWER_ARM = ('left_elbow', 'left_wrist')
- LEFT_LOWER_LEG = ('left_knee', 'left_ankle')
- LEFT_SHOULDER = ('left_shoulder',)
- LEFT_UPPER_ARM = ('left_shoulder', 'left_elbow')
- LEFT_UPPER_LEG = ('left_hip', 'left_knee')
- LEFT_WRIST = ('left_wrist',)
- NOSE = ('nose',)
- RIGHT_ANKLE = ('right_ankle',)
- RIGHT_ARM = ('right_shoulder', 'right_elbow', 'right_elbow', 'right_wrist')
- RIGHT_EAR = ('right_ear',)
- RIGHT_ELBOW = ('right_elbow',)
- RIGHT_EYE = ('right_eye',)
- RIGHT_FOOT = ('right_ankle',)
- RIGHT_HAND = ('right_wrist',)
- RIGHT_HIP = ('right_hip',)
- RIGHT_KNEE = ('right_knee',)
- RIGHT_LEG = ('right_hip', 'right_knee', 'right_knee', 'right_ankle')
- RIGHT_LOWER_ARM = ('right_elbow', 'right_wrist')
- RIGHT_LOWER_LEG = ('right_knee', 'right_ankle')
- RIGHT_SHOULDER = ('right_shoulder',)
- RIGHT_UPPER_ARM = ('right_shoulder', 'right_elbow')
- RIGHT_UPPER_LEG = ('right_hip', 'right_knee')
- RIGHT_WRIST = ('right_wrist',)
- SHOULDER = ('left_shoulder', 'right_shoulder')
- TORSO = ('left_shoulder', 'right_shoulder', 'left_hip', 'right_hip')