pigoutil

package
v0.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathCascadeFacefinder = "cascade/facefinder"
	PathCascadePupil      = "cascade/puploc"
)
View Source
const (
	ExtensionPNG  = ".png"
	ExtensionJPG  = ".jpg"
	ExtensionJPEG = ".jpeg"
)

Variables

This section is empty.

Functions

func FileExtensionSupported

func FileExtensionSupported() []string

func ReadCascade

func ReadCascade(cascadeType string) ([]byte, error)

func ReadCascadeFaceFinder

func ReadCascadeFaceFinder() []byte

func ReadCascadePupilFinder

func ReadCascadePupilFinder() []byte

Types

type FaceDetector

type FaceDetector struct {
	Angle        float64
	CascadeFile  string
	Destination  string
	MinSize      int
	MaxSize      int
	ShiftFactor  float64
	ScaleFactor  float64
	IouThreshold float64
	Puploc       string
	Flploc       string
	MarkDetEyes  bool
	// contains filtered or unexported fields
}

func (*FaceDetector) DetectFaces

func (fd *FaceDetector) DetectFaces(source string) ([]pigo.Detection, error)

DetectFaces run the detection algorithm over the provided source image.

func (*FaceDetector) DrawFaces

func (fd *FaceDetector) DrawFaces(faces []pigo.Detection, marker string) ([]detection, error)

DrawFaces marks the detected faces with the marker type defined as parameter (rectangle|circle|ellipse).

func (*FaceDetector) EncodeImage

func (fd *FaceDetector) EncodeImage(dst io.Writer) error

type FaceDetectorVars

type FaceDetectorVars struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL