[~] Refactor
This commit is contained in:
parent
318747bd20
commit
491f0ad465
@ -1347,13 +1347,45 @@ def kernel_20(o_18):
|
|||||||
(17, 11), (17, 12), # Body
|
(17, 11), (17, 12), # Body
|
||||||
(11, 13), (12, 14), (13, 15), (14, 16)
|
(11, 13), (12, 14), (13, 15), (14, 16)
|
||||||
]
|
]
|
||||||
p_color = [(0, 255, 255), (0, 191, 255), (0, 255, 102), (0, 77, 255), (0, 255, 0), # Nose, LEye, REye, LEar, REar
|
p_color = [
|
||||||
(77, 255, 255), (77, 255, 204), (77, 204, 255), (191, 255, 77), (77, 191, 255), (191, 255, 77), # LShoulder, RShoulder, LElbow, RElbow, LWrist, RWrist
|
# Nose, LEye, REye, LEar, REar
|
||||||
(204, 77, 255), (77, 255, 204), (191, 77, 255), (77, 255, 191), (127, 77, 255), (77, 255, 127), (0, 255, 255)] # LHip, RHip, LKnee, Rknee, LAnkle, RAnkle, Neck
|
(0, 255, 255), (0, 191, 255), (0, 255, 102), (0, 77, 255), (0, 255, 0),
|
||||||
|
# LShoulder, RShoulder, LElbow, RElbow, LWrist, RWrist
|
||||||
|
(77, 255, 255), (77, 255, 204), (77, 204, 255), (191, 255, 77), (77, 191, 255), (191, 255, 77),
|
||||||
|
# LHip, RHip, LKnee, Rknee, LAnkle, RAnkle
|
||||||
|
(204, 77, 255), (77, 255, 204), (191, 77, 255), (77, 255, 191), (127, 77, 255), (77, 255, 127),
|
||||||
|
# Not Present
|
||||||
|
## Neck
|
||||||
|
#(0, 255, 255),
|
||||||
|
]
|
||||||
|
|
||||||
line_color = [(0, 215, 255), (0, 255, 204), (0, 134, 255), (0, 255, 50),
|
line_color = [(0, 215, 255), (0, 255, 204), (0, 134, 255), (0, 255, 50),
|
||||||
(77, 255, 222), (77, 196, 255), (77, 135, 255), (191, 255, 77), (77, 255, 77),
|
(77, 255, 222), (77, 196, 255), (77, 135, 255), (191, 255, 77), (77, 255, 77),
|
||||||
(77, 222, 255), (255, 156, 127),
|
(77, 222, 255), (255, 156, 127),
|
||||||
(0, 127, 255), (255, 127, 77), (0, 77, 255), (255, 77, 36)]
|
(0, 127, 255), (255, 127, 77), (0, 77, 255), (255, 77, 36)]
|
||||||
|
#https://debuggercafe.com/wp-content/uploads/2020/10/keypoint_exmp.jpg
|
||||||
|
# Seems like No Neck actually
|
||||||
|
title = [
|
||||||
|
'Nose',
|
||||||
|
'LEye',
|
||||||
|
'REye',
|
||||||
|
'LEar',
|
||||||
|
'REar',
|
||||||
|
'LShoulder',
|
||||||
|
'RShoulder',
|
||||||
|
'LElbow',
|
||||||
|
'RElbow',
|
||||||
|
'LWrist',
|
||||||
|
'RWrist',
|
||||||
|
'LHip'.
|
||||||
|
'RHip',
|
||||||
|
'LKnee',
|
||||||
|
'RKnee',
|
||||||
|
'LAnkle',
|
||||||
|
'RAnkle',
|
||||||
|
#'Neck',
|
||||||
|
]
|
||||||
|
|
||||||
t1 = numpy.array(o_18['t2']['t7'][0]['keypoints']).reshape(17, -1)
|
t1 = numpy.array(o_18['t2']['t7'][0]['keypoints']).reshape(17, -1)
|
||||||
t2 = o_18['t2']['t6'][0]
|
t2 = o_18['t2']['t6'][0]
|
||||||
t3 = o_18['t2']['t1'][0]['image_canvas'].copy()
|
t3 = o_18['t2']['t1'][0]['image_canvas'].copy()
|
||||||
|
Loading…
Reference in New Issue
Block a user