Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DrawOptions

Draw Options Accessed via human.draw.options or provided per each draw method as the drawOptions optional parameter -color: draw color -labelColor: color for labels -shadowColor: optional shadow color for labels -font: font for labels -lineHeight: line height for labels, used for multi-line labels, -lineWidth: width of any lines, -pointSize: size of any point, -roundRect: for boxes, round corners by this many pixels, -drawPoints: should points be drawn, -drawLabels: should labels be drawn, -drawBoxes: should boxes be drawn, -drawPolygons: should polygons be drawn, -fillPolygons: should drawn polygons be filled, -useDepth: use z-axis coordinate as color shade, -useCurves: draw polygons as cures or as lines, -bufferedOutput: experimental: allows to call draw methods multiple times for each detection and interpolate results between results thus achieving smoother animations -bufferedFactor: speed of interpolation convergence where 1 means 100% immediately, 2 means 50% at each interpolation, etc. -useRawBoxes: Boolean: internal: use non-normalized coordinates when performing draw methods,

Hierarchy

  • DrawOptions

Index

Properties

bufferedFactor

bufferedFactor: number

bufferedOutput

bufferedOutput: boolean

calculateHandBox

calculateHandBox: boolean

color

color: string

drawBoxes

drawBoxes: boolean

drawLabels

drawLabels: boolean

drawPoints

drawPoints: boolean

drawPolygons

drawPolygons: boolean

fillPolygons

fillPolygons: boolean

font

font: string

labelColor

labelColor: string

lineHeight

lineHeight: number

lineWidth

lineWidth: number

pointSize

pointSize: number

roundRect

roundRect: number

shadowColor

shadowColor: string

useCurves

useCurves: boolean

useDepth

useDepth: boolean

useRawBoxes

useRawBoxes: boolean