Comparing version 1.0.10 to 1.0.11
@@ -458,2 +458,72 @@ 'use strict'; | ||
} | ||
} else if(visualizer_data.label_key == 'pose') { | ||
const named_segments = [ | ||
[ | ||
"nose", | ||
"right_eye" | ||
], | ||
[ | ||
"nose", | ||
"left_eye" | ||
], | ||
[ | ||
"right_eye", | ||
"right_ear" | ||
], | ||
[ | ||
"left_eye", | ||
"left_ear" | ||
], | ||
[ | ||
"right_shoulder", | ||
"right_elbow" | ||
], | ||
[ | ||
"left_shoulder", | ||
"left_elbow" | ||
], | ||
[ | ||
"right_elbow", | ||
"right_hand" | ||
], | ||
[ | ||
"left_elbow", | ||
"left_hand" | ||
], | ||
[ | ||
"right_hip", | ||
"right_knee" | ||
], | ||
[ | ||
"left_hip", | ||
"left_knee" | ||
], | ||
[ | ||
"right_knee", | ||
"right_foot" | ||
], | ||
[ | ||
"left_knee", | ||
"left_foot" | ||
] | ||
]; | ||
caption = ''; // no caption for pose parts | ||
var mask_vertices = []; | ||
for(var pair of named_segments){ | ||
var p1 = detection[visualizer_data.label_key][pair[0]]; | ||
var p2 = detection[visualizer_data.label_key][pair[1]]; | ||
if(p1 && p2){ | ||
p1[0] *= scale_applied; | ||
p1[1] *= scale_applied; | ||
p2[0] *= scale_applied; | ||
p2[1] *= scale_applied; | ||
var polygon_part = [p1, p2]; | ||
mask_vertices.push(polygon_part); | ||
} | ||
} | ||
detection.mask_vertices = mask_vertices; | ||
} else { | ||
@@ -460,0 +530,0 @@ caption = detection[visualizer_data.label_key]; // non demographic mode |
{ | ||
"name": "deepai", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"license": "BSD-2-Clause", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1949592
13150