Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultBorderColor default drawer border color DefaultBorderColor = common.Green // DefaultKeypointColor default drawer keypoint color DefaultKeypointColor = common.Pink // DefaultBorderStrokeWidth default drawer border stroke width DefaultBorderStrokeWidth = 3 // DefaultKeypointRadius default drawer keypoint radius DefaultKeypointRadius = 3 // DefaultKeypointStrokeWidth default drawer keypoint stroke width DefaultKeypointStrokeWidth = 1 // DefaultLabelColor default label color DefaultLabelColor = common.White )
Variables ¶
View Source
var ( // PoseColors represents color for hand pose PoseColors = [6]string{ "#0ad7ff", "#ff7337", "#05ff37", "#190fff", "#ff0f37", "#aa00ff", } )
Functions ¶
This section is empty.
Types ¶
type Drawer ¶
type Drawer struct { // BorderColor represents hand rect border color BorderColor string // BorderStrokeWidth represents hand rect stroke width BorderStrokeWidth float64 // KeypointStrokeWidth represents keypoints stroke width KeypointStrokeWidth float64 // KeypointRadius represents keypoints circle radius KeypointRadius float64 // KeypointColor represents keypoint color KeypointColor string // LabelColor string LabelColor string // Font Font *common.Font }
Drawer represents a hand drawer
func (*Drawer) DrawPalm3D ¶ added in v1.0.1
DrawPalm3D draw 3d PalmObject
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option represents Drawer option interface
func WithBorderColor ¶
WithBorderColor set Drawer BorderColor
func WithBorderStrokeWidth ¶
WithBorderStrokeWidth set Drawer BorderStrokeWidth
func WithKeypointColor ¶ added in v1.0.1
WithKeypointColor set Drawer KeypointColor
func WithKeypointRadius ¶
WithKeypointRadius set Drawer KeypointRadius
func WithKeypointStrokeWidth ¶
WithKeypointStrokeWidth set Drawer KeypointStrokeWidth
Click to show internal directories.
Click to hide internal directories.