73 lines
3.2 KiB
Python
73 lines
3.2 KiB
Python
openpose18 = dict(
|
|
name='openpose18',
|
|
keypoint_info={
|
|
0:
|
|
dict(name='nose', id=0, color=[255, 0, 0], swap=''),
|
|
1:
|
|
dict(name='neck', id=1, color=[255, 85, 0], swap=''),
|
|
2:
|
|
dict(name='right_shoulder',
|
|
id=2,
|
|
color=[255, 170, 0],
|
|
swap='left_shoulder'),
|
|
3:
|
|
dict(name='right_elbow', id=3, color=[255, 255, 0], swap='left_elbow'),
|
|
4:
|
|
dict(name='right_wrist', id=4, color=[170, 255, 0], swap='left_wrist'),
|
|
5:
|
|
dict(name='left_shoulder',
|
|
id=5,
|
|
color=[85, 255, 0],
|
|
swap='right_shoulder'),
|
|
6:
|
|
dict(name='left_elbow', id=6, color=[0, 255, 0], swap='right_elbow'),
|
|
7:
|
|
dict(name='left_wrist', id=7, color=[0, 255, 85], swap='right_wrist'),
|
|
8:
|
|
dict(name='right_hip', id=8, color=[0, 255, 170], swap='left_hip'),
|
|
9:
|
|
dict(name='right_knee', id=9, color=[0, 255, 255], swap='left_knee'),
|
|
10:
|
|
dict(name='right_ankle', id=10, color=[0, 170, 255],
|
|
swap='left_ankle'),
|
|
11:
|
|
dict(name='left_hip', id=11, color=[0, 85, 255], swap='right_hip'),
|
|
12:
|
|
dict(name='left_knee', id=12, color=[0, 0, 255], swap='right_knee'),
|
|
13:
|
|
dict(name='left_ankle', id=13, color=[85, 0, 255], swap='right_ankle'),
|
|
14:
|
|
dict(name='right_eye', id=14, color=[170, 0, 255], swap='left_eye'),
|
|
15:
|
|
dict(name='left_eye', id=15, color=[255, 0, 255], swap='right_eye'),
|
|
16:
|
|
dict(name='right_ear', id=16, color=[255, 0, 170], swap='left_ear'),
|
|
17:
|
|
dict(name='left_ear', id=17, color=[255, 0, 85], swap='right_ear'),
|
|
},
|
|
skeleton_info={
|
|
0: dict(link=('neck', 'right_shoulder'), id=0, color=[255, 0, 0]),
|
|
1: dict(link=('neck', 'left_shoulder'), id=1, color=[255, 85, 0]),
|
|
2: dict(link=('right_shoulder', 'right_elbow'),
|
|
id=2,
|
|
color=[255, 170, 0]),
|
|
3: dict(link=('right_elbow', 'right_wrist'), id=3, color=[255, 255,
|
|
0]),
|
|
4: dict(link=('left_shoulder', 'left_elbow'),
|
|
id=4,
|
|
color=[170, 255, 0]),
|
|
5: dict(link=('left_elbow', 'left_wrist'), id=5, color=[85, 255, 0]),
|
|
6: dict(link=('neck', 'right_hip'), id=6, color=[0, 255, 0]),
|
|
7: dict(link=('right_hip', 'right_knee'), id=7, color=[0, 255, 85]),
|
|
8: dict(link=('right_knee', 'right_ankle'), id=8, color=[0, 255, 170]),
|
|
9: dict(link=('neck', 'left_hip'), id=9, color=[0, 255, 225]),
|
|
10: dict(link=('left_hip', 'left_knee'), id=10, color=[0, 170, 255]),
|
|
11: dict(link=('left_knee', 'left_ankle'), id=11, color=[0, 85, 255]),
|
|
12: dict(link=('neck', 'nose'), id=12, color=[0, 0, 255]),
|
|
13: dict(link=('nose', 'right_eye'), id=13, color=[255, 0, 170]),
|
|
14: dict(link=('right_eye', 'right_ear'), id=14, color=[170, 0, 255]),
|
|
15: dict(link=('nose', 'left_eye'), id=15, color=[255, 0, 255]),
|
|
16: dict(link=('left_eye', 'left_ear'), id=16, color=[255, 0, 170]),
|
|
},
|
|
)
|