Documentation ¶
Index ¶
- func ConvertToRGBA(in image.Image) *image.RGBA
- func DrawRect(x1, y1, x2, y2, thickness int, img *image.RGBA)
- type ConfigHaarcascade
- type FaceDetector
- type Feature
- type FoundRect
- type HaarcascadeFrontalfaceDefault
- type OpenCVFile
- type OpenCVStorage
- type Rect
- type RectValue
- type RootNode
- type Stage
- type Stages
- type Tree
- type Trees
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigHaarcascade ¶
type ConfigHaarcascade struct {
Stages []*Stage
}
var Config *ConfigHaarcascade = &ConfigHaarcascade{}
type FaceDetector ¶
type FaceDetector struct { ClassifiedSize []int Width int Height int FoundRects []*FoundRect Image image.Image FinalImage image.Image }
func NewFaceDetector ¶
func NewFaceDetector(in interface{}, opencvfile string) *FaceDetector
func NewFaceDetectorFromImage ¶
func NewFaceDetectorFromImage(imgData image.Image, opencvfile string) *FaceDetector
func NewFaceDetectorImagePath ¶
func NewFaceDetectorImagePath(imagePath string, opencvfile string) *FaceDetector
func (*FaceDetector) DrawFaces ¶
func (f *FaceDetector) DrawFaces() *image.RGBA
func (*FaceDetector) DrawImageInDirectory ¶
func (face *FaceDetector) DrawImageInDirectory(directory string) []string
func (*FaceDetector) DrawOnImage ¶
func (face *FaceDetector) DrawOnImage()
func (*FaceDetector) GetFaces ¶
func (f *FaceDetector) GetFaces() []*FoundRect
type HaarcascadeFrontalfaceDefault ¶
type HaarcascadeFrontalfaceDefault struct {
Stages *Stages `xml:"stages"`
}
type OpenCVFile ¶
type OpenCVFile struct {
OpenCVStorage *OpenCVStorage `xml:"opencv_storage"`
}
type OpenCVStorage ¶
type OpenCVStorage struct {
Haarcascade *HaarcascadeFrontalfaceDefault `xml:"haarcascade_frontalface_default"`
}
type RootNode ¶
Click to show internal directories.
Click to hide internal directories.