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 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
}
Click to show internal directories.
Click to hide internal directories.