Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PigoFaceDetector ¶
type PigoFaceDetector struct {
// contains filtered or unexported fields
}
PigoFaceDetector is face detector implementation based on pigo.
func NewPigoFaceDetector ¶
func NewPigoFaceDetector() *PigoFaceDetector
NewPigoFaceDetector creates a new instance of PigoFaceDetector, a pigo based implementation of FaceDetector.
func (PigoFaceDetector) DetectFaces ¶
func (pfd PigoFaceDetector) DetectFaces(ctx context.Context, img io.Reader) ([]facedetect.Face, error)
DetectFaces analyzes image provided by img parameter and returns slice of detected faces with facial features.
func (*PigoFaceDetector) LoadCascades ¶
func (pfd *PigoFaceDetector) LoadCascades(cascadeDir string) error
LoadCascades loads binary cascade files required by pigo.
Click to show internal directories.
Click to hide internal directories.