@@ -11,6 +11,7 @@ import ThreeDRotation from "@material-ui/icons/ThreeDRotation"
1111import OndemandVideoIcon from "@material-ui/icons/OndemandVideo"
1212import ContactSupport from "@material-ui/icons/ContactSupport"
1313import LowPriority from "@material-ui/icons/LowPriority"
14+ import AccessibilityNewIcon from "@material-ui/icons/AccessibilityNew"
1415
1516export const templates = [
1617 {
@@ -291,6 +292,136 @@ export const templates = [
291292 ] ,
292293 } ,
293294 } ,
295+ {
296+ name : "Image Landmark Annotation" ,
297+ Icon : AccessibilityNewIcon ,
298+ dataset : {
299+ interface : {
300+ type : "image_landmark_annotation" ,
301+ keypointDefinitions : {
302+ human : {
303+ landmarks : {
304+ nose : {
305+ label : "Nose" ,
306+ color : "#f00" ,
307+ defaultPosition : [ 0 , 0 ] ,
308+ } ,
309+ leftEye : {
310+ label : "Left Eye" ,
311+ color : "#00f" ,
312+ defaultPosition : [ - 0.05 , - 0.05 ] ,
313+ } ,
314+ leftEar : {
315+ label : "Left Ear" ,
316+ color : "#0ff" ,
317+ defaultPosition : [ - 0.1 , - 0.05 ] ,
318+ } ,
319+ rightEye : {
320+ label : "Left Eye" ,
321+ color : "#f0f" ,
322+ defaultPosition : [ 0.05 , - 0.05 ] ,
323+ } ,
324+ rightEar : {
325+ label : "Left Ear" ,
326+ color : "#00f" ,
327+ defaultPosition : [ 0.1 , - 0.05 ] ,
328+ } ,
329+ sternum : {
330+ label : "Sternum" ,
331+ color : "#0f0" ,
332+ defaultPosition : [ 0 , 0.1 ] ,
333+ } ,
334+ leftShoulder : {
335+ label : "Left Shoulder" ,
336+ color : "#0ff" ,
337+ defaultPosition : [ - 0.2 , 0.1 ] ,
338+ } ,
339+ rightShoulder : {
340+ label : "Right Shoulder" ,
341+ color : "#00f" ,
342+ defaultPosition : [ 0.2 , 0.1 ] ,
343+ } ,
344+ leftElbow : {
345+ label : "Left Elbow" ,
346+ color : "#0f0" ,
347+ defaultPosition : [ - 0.2 , 0.2 ] ,
348+ } ,
349+ rightElbow : {
350+ label : "Right Elbow" ,
351+ color : "#f00" ,
352+ defaultPosition : [ 0.2 , 0.2 ] ,
353+ } ,
354+ leftHand : {
355+ label : "Left Hand" ,
356+ color : "#00f" ,
357+ defaultPosition : [ - 0.2 , 0.3 ] ,
358+ } ,
359+ rightHand : {
360+ label : "Right Hand" ,
361+ color : "#f0f" ,
362+ defaultPosition : [ 0.2 , 0.3 ] ,
363+ } ,
364+ leftThigh : {
365+ label : "Left Thigh" ,
366+ color : "#f00" ,
367+ defaultPosition : [ - 0.1 , 0.35 ] ,
368+ } ,
369+ rightThigh : {
370+ label : "Right Thigh" ,
371+ color : "#0ff" ,
372+ defaultPosition : [ 0.1 , 0.35 ] ,
373+ } ,
374+ leftKnee : {
375+ label : "Left Thigh" ,
376+ color : "#ff0" ,
377+ defaultPosition : [ - 0.15 , 0.45 ] ,
378+ } ,
379+ rightKnee : {
380+ label : "Right Thigh" ,
381+ color : "#0f0" ,
382+ defaultPosition : [ 0.15 , 0.45 ] ,
383+ } ,
384+ leftFoot : {
385+ label : "Left Foot" ,
386+ color : "#00f" ,
387+ defaultPosition : [ - 0.15 , 0.55 ] ,
388+ } ,
389+ rightFoot : {
390+ label : "Right Foot" ,
391+ color : "#f00" ,
392+ defaultPosition : [ 0.15 , 0.55 ] ,
393+ } ,
394+ } ,
395+ connections : [
396+ [ "sternum" , "nose" ] ,
397+ [ "nose" , "leftEye" ] ,
398+ [ "leftEye" , "leftEar" ] ,
399+ [ "nose" , "rightEye" ] ,
400+ [ "rightEye" , "rightEar" ] ,
401+ [ "sternum" , "leftShoulder" ] ,
402+ [ "leftShoulder" , "leftElbow" ] ,
403+ [ "leftElbow" , "leftHand" ] ,
404+ [ "sternum" , "leftThigh" ] ,
405+ [ "leftThigh" , "leftKnee" ] ,
406+ [ "leftKnee" , "leftFoot" ] ,
407+ [ "sternum" , "rightShoulder" ] ,
408+ [ "rightShoulder" , "rightElbow" ] ,
409+ [ "rightElbow" , "rightHand" ] ,
410+ [ "sternum" , "rightThigh" ] ,
411+ [ "rightThigh" , "rightKnee" ] ,
412+ [ "rightKnee" , "rightFoot" ] ,
413+ ] ,
414+ } ,
415+ } ,
416+ } ,
417+ samples : [
418+ {
419+ imageUrl :
420+ "https://media.istockphoto.com/photos/businesswoman-picture-id918002786" ,
421+ } ,
422+ ] ,
423+ } ,
424+ } ,
294425 {
295426 name : "3D Bounding Box" ,
296427 Icon : ThreeDRotation ,
0 commit comments