Added support for 30 point tracking to OpenSeeShowPoints and OpenSeeVRMDriver.
This commit is contained in:
parent
082732b991
commit
bde32b7213
3 changed files with 39 additions and 13 deletions
|
|
@ -731,6 +731,10 @@ class Tracker():
|
|||
lms[np.isnan(lms).any(axis=1)] = np.array([0.,0.,0.], dtype=np.float32)
|
||||
if self.model_type < 0:
|
||||
lms = lms[[0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,6,7,7,8,8,9,10,10,11,11,12,21,21,21,22,23,23,23,23,23,13,14,14,15,16,16,17,18,18,19,20,20,24,25,25,25,26,26,27,27,27,24,24,28,28,28,26,29,29,29]]
|
||||
#lms[[1,3,4,6,7,9,10,12,13,15,18,20,23,25,38,40,44,46]] += lms[[2,2,5,5,8,8,11,11,14,16,19,21,24,26,39,39,45,45]]
|
||||
#lms[[3,4,6,7,9,10,12,13]] += lms[[5,5,8,8,11,11,14,14]]
|
||||
#lms[[1,15,18,20,23,25,38,40,44,46]] /= 2.0
|
||||
#lms[[3,4,6,7,9,10,12,13]] /= 3.0
|
||||
part_avg = np.mean(np.partition(lms[:,2],3)[0:3])
|
||||
if part_avg < 0.65:
|
||||
avg_conf = part_avg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue