Versions in this module Expand all Collapse all v1 v1.0.1 Feb 7, 2022 Changes in this version + const DefaultLabelColor type Drawer + Font *common.Font + LabelColor string type Option + func WithFont(font *common.Font) Option + func WithLabelColor(color string) Option v1.0.0 Nov 11, 2021 Changes in this version + const DefaultBorderColor + const DefaultBorderStrokeWidth + const DefaultInvalidBorderColor + const DefaultKeypointColor + const DefaultKeypointRadius + const DefaultKeypointStrokeWidth + func EulrToAxisPoints(yaw float64, pitch float64, roll float64, distance float64) [3][2]float64 + type Drawer struct + BorderColor string + BorderStrokeWidth float64 + InvalidBorderColor string + KeypointColor string + KeypointRadius float64 + KeypointStrokeWidth float64 + MaskColor string + func New(options ...Option) *Drawer + func (d *Drawer) Draw(img image.Image, faces []face.FaceInfo) image.Image + func (d *Drawer) DrawHeadPose(img image.Image, pose face.HeadPose, rect common.Rectangle) image.Image + func (d *Drawer) DrawLandmark(img image.Image, points []common.Point) image.Image + type Option interface + func WithBorderColor(color string) Option + func WithBorderStrokeWidth(w float64) Option + func WithInvalidBorderColor(color string) Option + func WithKeypointColor(color string) Option + func WithKeypointRadius(r float64) Option + func WithKeypointStrokeWidth(w float64) Option + func WithMaskColor(color string) Option