Documentation ¶
Index ¶
- Constants
- func EulrToAxisPoints(yaw float64, pitch float64, roll float64, distance float64) [3][2]float64
- type Drawer
- type Option
- func WithBorderColor(color string) Option
- func WithBorderStrokeWidth(w float64) Option
- func WithFont(font *common.Font) Option
- func WithInvalidBorderColor(color string) Option
- func WithKeypointColor(color string) Option
- func WithKeypointRadius(r float64) Option
- func WithKeypointStrokeWidth(w float64) Option
- func WithLabelColor(color string) Option
- func WithMaskColor(color string) Option
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 = 2 // DefaultKeypointStrokeWidth default drawer keypoint stroke width DefaultKeypointStrokeWidth = 2 // DefaultInvalidBorderColor default drawer invalid border color DefaultInvalidBorderColor = common.Red // DefaultLabelColor default label color DefaultLabelColor = common.White )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Drawer ¶
type Drawer struct { // BorderColor represents face rect border color BorderColor string // KeypointColor represents keypoint color KeypointColor string // BorderStrokeWidth represents face rect stroke width BorderStrokeWidth float64 // KeypointRadius represents keypoints circle radius KeypointRadius float64 // KeypointStrokeWidth represents keypoints stroke width KeypointStrokeWidth float64 // MaskColor represents border color which mask is true MaskColor string // InvalidBorderColor InvalidBorderColor string // LabelColor string LabelColor string // Font Font *common.Font }
Drawer represents a face drawer
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 WithInvalidBorderColor ¶
WithInvalidBorderColor set Drawer InvalidBorderColor
func WithKeypointColor ¶
WithKeypointColor set Drawer KeypointColor
func WithKeypointRadius ¶
WithKeypointRadius set Drawer KeypointRadius
func WithKeypointStrokeWidth ¶
WithKeypointStrokeWidth set Drawer KeypointStrokeWidth
func WithLabelColor ¶ added in v1.0.1
WithLabelColor set Drawer LabelColor
Click to show internal directories.
Click to hide internal directories.