Type alias DrawOptions

DrawOptions: { alpha: number; color: string; drawAttention: boolean; drawBoxes: boolean; drawGaze: boolean; drawGestures: boolean; drawLabels: boolean; drawPoints: boolean; drawPolygons: boolean; fillPolygons: boolean; font: string; labelColor: string; lineHeight: number; lineWidth: number; pointSize: number; roundRect: number; shadowColor: string; useCurves: boolean; useDepth: boolean }

Draw Options

  • Accessed via human.draw.options or provided per each draw method as the drawOptions optional parameter

Type declaration

  • alpha: number

    alpha value used for lines

  • color: string

    draw line color

  • drawAttention: boolean

    should face attention keypoints be highlighted

  • drawBoxes: boolean

    should draw boxes around detection results?

  • drawGaze: boolean

    should draw gaze arrows?

  • drawGestures: boolean

    should detected gestures be drawn?

  • drawLabels: boolean

    should labels be drawn?

  • drawPoints: boolean

    should points be drawn?

  • drawPolygons: boolean

    should draw polygons from detection points?

  • fillPolygons: boolean

    should fill polygons?

  • font: string

    label font

  • labelColor: string

    label color

  • lineHeight: number

    line spacing between labels

  • lineWidth: number

    line width for drawn lines

  • pointSize: number

    size of drawn points

  • roundRect: number

    draw rounded boxes by n pixels

  • shadowColor: string

    label shadow color

  • useCurves: boolean

    should lines be curved?

  • useDepth: boolean

    use z-coordinate when available