in many application generating a mapping between body parts and their coords is very useful , so in this pull request i propose that extract_parts function in file processing.py may return extra dictionary body_parts it is a mapping between parts and their x,y coords
for example :
{'nose': (547, 338), 'neck': (577, 482), 'right_shoulder': (486, 469), ' right_elbow': (339, 275), 'right_wrist': (222, 132), 'left_shoulder': (672, 491), 'left_elbow': (845, 299), 'left_wrist': (1020, 134), 'right_hip': (411, 835), 'right_knee': (None, None), 'right_ankle': (None, None), 'left_hip': (565, 862), 'left_knee': (None, None), 'left_ankle': (None, None), 'right_eye': (522, 313), 'left_eye': (574, 310), 'right_ear': (499, 335), 'left_ear': (627, 328)}
The idea to return extra dictionary body_parts is good, but the code should be fixed, because it only return one person body part even if there exists many people.
in many application generating a mapping between body parts and their coords is very useful , so in this pull request i propose that extract_parts function in file processing.py may return extra dictionary body_parts it is a mapping between parts and their x,y coords for example :
{'nose': (547, 338), 'neck': (577, 482), 'right_shoulder': (486, 469), ' right_elbow': (339, 275), 'right_wrist': (222, 132), 'left_shoulder': (672, 491), 'left_elbow': (845, 299), 'left_wrist': (1020, 134), 'right_hip': (411, 835), 'right_knee': (None, None), 'right_ankle': (None, None), 'left_hip': (565, 862), 'left_knee': (None, None), 'left_ankle': (None, None), 'right_eye': (522, 313), 'left_eye': (574, 310), 'right_ear': (499, 335), 'left_ear': (627, 328)}