Documentation ¶
Overview ¶
Package contrib is the GoCV wrapper around OpenCV Contrib.
For further details, please see: https://github.com/opencv/opencv_contrib
Index ¶
- type LBPHFaceRecognizer
- func (fr *LBPHFaceRecognizer) GetNeighbors() int
- func (fr *LBPHFaceRecognizer) LoadFile(fname string)
- func (fr *LBPHFaceRecognizer) Predict(sample gocv.Mat) int
- func (fr *LBPHFaceRecognizer) PredictExtendedResponse(sample gocv.Mat) PredictResponse
- func (fr *LBPHFaceRecognizer) SaveFile(fname string)
- func (fr *LBPHFaceRecognizer) SetNeighbors(neighbors int)
- func (fr *LBPHFaceRecognizer) SetRadius(radius int)
- func (fr *LBPHFaceRecognizer) SetThreshold(threshold float32)
- func (fr *LBPHFaceRecognizer) Train(images []gocv.Mat, labels []int)
- func (fr *LBPHFaceRecognizer) Update(newImages []gocv.Mat, newLabels []int)
- type PredictResponse
- type SIFT
- type SURF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LBPHFaceRecognizer ¶
type LBPHFaceRecognizer struct {
// contains filtered or unexported fields
}
func NewLBPHFaceRecognizer ¶
func NewLBPHFaceRecognizer() *LBPHFaceRecognizer
Create new LBPH Recognizer model
see https://docs.opencv.org/3.4.0/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html
func (*LBPHFaceRecognizer) GetNeighbors ¶
func (fr *LBPHFaceRecognizer) GetNeighbors() int
get Neighbors
func (*LBPHFaceRecognizer) LoadFile ¶
func (fr *LBPHFaceRecognizer) LoadFile(fname string)
load traned model data from file
func (*LBPHFaceRecognizer) Predict ¶
func (fr *LBPHFaceRecognizer) Predict(sample gocv.Mat) int
predict image for trained model, retun label for correctly predicted image, return -1 if not found
func (*LBPHFaceRecognizer) PredictExtendedResponse ¶
func (fr *LBPHFaceRecognizer) PredictExtendedResponse(sample gocv.Mat) PredictResponse
the same as above but returns some more info
func (*LBPHFaceRecognizer) SaveFile ¶
func (fr *LBPHFaceRecognizer) SaveFile(fname string)
save trained model data to file
func (*LBPHFaceRecognizer) SetNeighbors ¶
func (fr *LBPHFaceRecognizer) SetNeighbors(neighbors int)
set Neighbors
see https://docs.opencv.org/3.4.0/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#ab225f7bf353ce8697a506eda10124a92 wrong neighbors can raise opencv exception!
func (*LBPHFaceRecognizer) SetRadius ¶
func (fr *LBPHFaceRecognizer) SetRadius(radius int)
set Radius
func (*LBPHFaceRecognizer) SetThreshold ¶
func (fr *LBPHFaceRecognizer) SetThreshold(threshold float32)
set Threshold value
func (*LBPHFaceRecognizer) Train ¶
func (fr *LBPHFaceRecognizer) Train(images []gocv.Mat, labels []int)
Train loaded model with images and their labels
type PredictResponse ¶
type SIFT ¶
type SIFT struct {
// contains filtered or unexported fields
}
SIFT is a wrapper around the cv::SIFT algorithm.
func NewSIFT ¶
func NewSIFT() SIFT
NewSIFT returns a new SIFT algorithm.
For further details, please see: https://docs.opencv.org/3.4.0/d5/d3c/classcv_1_1xfeatures2d_1_1SIFT.html
func (*SIFT) Detect ¶
Detect keypoints in an image using SIFT.
For further details, please see: https://docs.opencv.org/3.4.0/d0/d13/classcv_1_1Feature2D.html#aa4e9a7082ec61ebc108806704fbd7887
func (*SIFT) DetectAndCompute ¶
DetectAndCompute detects and computes keypoints in an image using SIFT.
For further details, please see: https://docs.opencv.org/3.4.0/d0/d13/classcv_1_1Feature2D.html#a8be0d1c20b08eb867184b8d74c15a677
type SURF ¶
type SURF struct {
// contains filtered or unexported fields
}
SURF is a wrapper around the cv::SURF algorithm.
func NewSURF ¶
func NewSURF() SURF
NewSURF returns a new SURF algorithm.
For further details, please see: https://docs.opencv.org/3.4.0/d5/df7/classcv_1_1xfeatures2d_1_1SURF.html
func (*SURF) Detect ¶
Detect keypoints in an image using SURF.
For further details, please see: https://docs.opencv.org/3.4.0/d0/d13/classcv_1_1Feature2D.html#aa4e9a7082ec61ebc108806704fbd7887
func (*SURF) DetectAndCompute ¶
DetectAndCompute detects and computes keypoints in an image using SURF.
For further details, please see: https://docs.opencv.org/3.4.0/d0/d13/classcv_1_1Feature2D.html#a8be0d1c20b08eb867184b8d74c15a677