Documentation ¶
Overview ¶
Package contrib is the GoCV wrapper around OpenCV Contrib.
For further details, please see: https://github.com/opencv/opencv_contrib
Index ¶
- func AnisotropicDiffusion(src gocv.Mat, dst *gocv.Mat, alpha float32, k float32, niters int)
- func ApplyChannelGains(src gocv.Mat, dst *gocv.Mat, gainB float32, gainG float32, gainR float32)
- func Bm3dDenoising(src gocv.Mat, dst *gocv.Mat)
- func Bm3dDenoisingStep(src gocv.Mat, dststep1 *gocv.Mat, dststep2 *gocv.Mat)
- func Bm3dDenoisingStepWithParams(src gocv.Mat, dststep1 *gocv.Mat, dststep2 *gocv.Mat, h float32, ...)
- func Bm3dDenoisingWithParams(src gocv.Mat, dst *gocv.Mat, h float32, templateWindowSize int, ...)
- func EdgePreservingFilter(src gocv.Mat, dst *gocv.Mat, d int, threshold float32)
- func Inpaint(src *gocv.Mat, mask *gocv.Mat, dst *gocv.Mat, algorithmType InpaintTypes)
- func NewTrackerCSRT() gocv.Tracker
- func NewTrackerKCF() gocv.Tracker
- func NiblackThreshold(src gocv.Mat, dst *gocv.Mat, maxValue float32, typ gocv.ThresholdType, ...)
- func OilPainting(src gocv.Mat, dst *gocv.Mat, size int, dynRatio int)
- func OilPaintingWithParams(src gocv.Mat, dst gocv.Mat, size int, dynRatio int, ...)
- func PeiLinNormalization(src gocv.Mat, dst *gocv.Mat)
- func Thinning(src gocv.Mat, dst *gocv.Mat, typ ThinningType)
- type AverageHash
- type BackgroundSubtractorCNT
- type BasicFaceRecognizer
- type BinarizationMethod
- type BlockMeanHash
- type BlockMeanHashMode
- type Bm3dSteps
- type BriefDescriptorExtractor
- type ColorMomentHash
- type EigenFaceRecognizer
- func (fr *EigenFaceRecognizer) Close() error
- func (fr *EigenFaceRecognizer) Empty() bool
- func (fr *EigenFaceRecognizer) GetEigenValues() gocv.Mat
- func (fr *EigenFaceRecognizer) GetEigenVectors() gocv.Mat
- func (fr *EigenFaceRecognizer) GetLabels() gocv.Mat
- func (fr *EigenFaceRecognizer) GetMean() gocv.Mat
- func (fr *EigenFaceRecognizer) GetNumComponents() int
- func (fr *EigenFaceRecognizer) GetProjections() []gocv.Mat
- func (fr *EigenFaceRecognizer) GetThreshold() float32
- func (fr *EigenFaceRecognizer) LoadFile(filename string)
- func (fr *EigenFaceRecognizer) Predict(sample gocv.Mat) int
- func (fr *EigenFaceRecognizer) PredictExtendedResponse(sample gocv.Mat) PredictResponse
- func (fr *EigenFaceRecognizer) SaveFile(filename string)
- func (fr *EigenFaceRecognizer) SetNumComponents(val int)
- func (fr *EigenFaceRecognizer) SetThreshold(threshold float32)
- func (fr *EigenFaceRecognizer) Train(images []gocv.Mat, labels []int)
- func (fr *EigenFaceRecognizer) Update(newImages []gocv.Mat, newLabels []int)
- type FaceRecognizer
- type FisherFaceRecognizer
- func (fr *FisherFaceRecognizer) Close() error
- func (fr *FisherFaceRecognizer) Empty() bool
- func (fr *FisherFaceRecognizer) GetEigenValues() gocv.Mat
- func (fr *FisherFaceRecognizer) GetEigenVectors() gocv.Mat
- func (fr *FisherFaceRecognizer) GetLabels() gocv.Mat
- func (fr *FisherFaceRecognizer) GetMean() gocv.Mat
- func (fr *FisherFaceRecognizer) GetNumComponents() int
- func (fr *FisherFaceRecognizer) GetProjections() []gocv.Mat
- func (fr *FisherFaceRecognizer) GetThreshold() float32
- func (fr *FisherFaceRecognizer) LoadFile(filename string)
- func (fr *FisherFaceRecognizer) Predict(sample gocv.Mat) int
- func (fr *FisherFaceRecognizer) PredictExtendedResponse(sample gocv.Mat) PredictResponse
- func (fr *FisherFaceRecognizer) SaveFile(filename string)
- func (fr *FisherFaceRecognizer) SetNumComponents(val int)
- func (fr *FisherFaceRecognizer) SetThreshold(threshold float32)
- func (fr *FisherFaceRecognizer) Train(images []gocv.Mat, labels []int)
- func (fr *FisherFaceRecognizer) Update(newImages []gocv.Mat, newLabels []int)
- type FreeType2
- func (f *FreeType2) Close() error
- func (f *FreeType2) GetTextSize(text string, fontHeight int, thickness int) (image.Point, int)
- func (f *FreeType2) LoadFontData(fontFileName string, id int)
- func (f *FreeType2) PutText(img *gocv.Mat, text string, org image.Point, fontHeight int, c color.RGBA, ...)
- func (f *FreeType2) SetSplitNumber(num int)
- type GrayworldWB
- type ImgHashBase
- type InpaintTypes
- type LBPHFaceRecognizer
- func (fr *LBPHFaceRecognizer) Close() error
- func (fr *LBPHFaceRecognizer) Empty() bool
- func (fr *LBPHFaceRecognizer) GetGrid() image.Point
- func (fr *LBPHFaceRecognizer) GetGridX() int
- func (fr *LBPHFaceRecognizer) GetGridY() int
- func (fr *LBPHFaceRecognizer) GetNeighbors() int
- func (fr *LBPHFaceRecognizer) GetThreshold() float32
- 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) SetGrid(p image.Point)
- func (fr *LBPHFaceRecognizer) SetGridX(x int)
- func (fr *LBPHFaceRecognizer) SetGridY(y int)
- 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 LearningBasedWB
- func (b *LearningBasedWB) BalanceWhite(src gocv.Mat, dst *gocv.Mat)
- func (b *LearningBasedWB) Close() error
- func (b *LearningBasedWB) ExtractSimpleFeatures(src gocv.Mat, dst *gocv.Mat)
- func (b *LearningBasedWB) GetHistBinNum() int
- func (b *LearningBasedWB) GetRangeMaxVal() int
- func (b *LearningBasedWB) GetSaturationThreshold() float32
- func (b *LearningBasedWB) SetHistBinNum(val int)
- func (b *LearningBasedWB) SetRangeMaxVal(val int)
- func (b *LearningBasedWB) SetSaturationThreshold(val float32)
- type MarrHildrethHash
- type PHash
- type PredictResponse
- type RadialVarianceHash
- type SURF
- type SimpleWB
- func (b *SimpleWB) BalanceWhite(src gocv.Mat, dst *gocv.Mat)
- func (b *SimpleWB) Close() error
- func (b *SimpleWB) GetInputMax() float32
- func (b *SimpleWB) GetInputMin() float32
- func (b *SimpleWB) GetOutputMax() float32
- func (b *SimpleWB) GetOutputMin() float32
- func (b *SimpleWB) GetP() float32
- func (b *SimpleWB) SetInputMax(val float32)
- func (b *SimpleWB) SetInputMin(val float32)
- func (b *SimpleWB) SetOutputMax(val float32)
- func (b *SimpleWB) SetOutputMin(val float32)
- func (b *SimpleWB) SetP(val float32)
- type ThinningType
- type TonemapDurand
- func (b *TonemapDurand) Close() error
- func (b *TonemapDurand) GetContrast() float32
- func (b *TonemapDurand) GetGamma() float32
- func (b *TonemapDurand) GetSaturation() float32
- func (b *TonemapDurand) GetSigmaColor() float32
- func (b *TonemapDurand) GetSigmaSpace() float32
- func (b *TonemapDurand) Process(src gocv.Mat, dst *gocv.Mat)
- func (b *TonemapDurand) SetContrast(val float32)
- func (b *TonemapDurand) SetGamma(val float32)
- func (b *TonemapDurand) SetSaturation(val float32)
- func (b *TonemapDurand) SetSigmaColor(val float32)
- func (b *TonemapDurand) SetSigmaSpace(val float32)
- type TrackerCSRT
- type TrackerKCF
- type TransformTypes
- type WeChatQRCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnisotropicDiffusion ¶ added in v0.31.0
AnisotropicDiffusion performs anisotropic diffusion on an image.
The function applies Perona-Malik anisotropic diffusion to an image.
For further details, please see: https://docs.opencv.org/4.x/df/d2d/group__ximgproc.html#gaffedd976e0a8efb5938107acab185ec2
func ApplyChannelGains ¶ added in v0.28.0
func Bm3dDenoising ¶ added in v0.28.0
src = Input 8-bit or 16-bit 1-channel image.
func Bm3dDenoisingStep ¶ added in v0.28.0
src = Input 8-bit or 16-bit 1-channel image.
func Bm3dDenoisingStepWithParams ¶ added in v0.28.0
func Bm3dDenoisingStepWithParams(src gocv.Mat, dststep1 *gocv.Mat, dststep2 *gocv.Mat, h float32, templateWindowSize int, searchWindowSize int, blockMatchingStep1 int, blockMatchingStep2 int, groupSize int, slidingStep int, beta float32, normType gocv.NormType, step Bm3dSteps, transformType TransformTypes)
src = Input 8-bit or 16-bit 1-channel image.
func Bm3dDenoisingWithParams ¶ added in v0.28.0
func Bm3dDenoisingWithParams(src gocv.Mat, dst *gocv.Mat, h float32, templateWindowSize int, searchWindowSize int, blockMatchingStep1 int, blockMatchingStep2 int, groupSize int, slidingStep int, beta float32, normType gocv.NormType, step Bm3dSteps, transformType TransformTypes)
src = Input 8-bit or 16-bit 1-channel image.
func EdgePreservingFilter ¶ added in v0.31.0
EdgePreservingFilter smoothes an image using the Edge-Preserving filter.
For further details, please see: https://docs.opencv.org/4.x/df/d2d/group__ximgproc.html#ga86fcda65ced0aafa2741088d82e9161c
func Inpaint ¶ added in v0.28.0
The function implements different single-image inpainting algorithms.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#gab4febba6be53e5fddc480b8cedf51eee
func NewTrackerCSRT ¶ added in v0.16.0
NewTrackerCSRT returns a new TrackerCSRT.
func NewTrackerKCF ¶ added in v0.16.0
NewTrackerKCF returns a new TrackerKCF.
func NiblackThreshold ¶ added in v0.31.0
func NiblackThreshold(src gocv.Mat, dst *gocv.Mat, maxValue float32, typ gocv.ThresholdType, blockSize int, k float32, binarizationMethod BinarizationMethod, r float32)
NiblackThreshold performs thresholding on input images using Niblack's technique or some of the popular variations it inspired.
For further details, please see: https://docs.opencv.org/4.x/df/d2d/group__ximgproc.html#gab042a5032bbb85275f1fd3e04e7c7660
func OilPainting ¶ added in v0.28.0
oilPainting, See the book for details : GerPublished by ard J. Holzmann. Beyond Photography: The Digital Darkroom. Prentice Hall in 1988.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#gac18ef93a7b1e65f703f7dc3b1e8e5235
func OilPaintingWithParams ¶ added in v0.28.0
func OilPaintingWithParams(src gocv.Mat, dst gocv.Mat, size int, dynRatio int, code gocv.ColorConversionCode)
oilPainting, See the book for details : GerPublished by ard J. Holzmann. Beyond Photography: The Digital Darkroom. Prentice Hall in 1988.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#gac050a6e876298cb9713cd2c09db9a027
func PeiLinNormalization ¶ added in v0.31.0
PeiLinNormalization calculates an affine transformation that normalize given image using Pei&Lin Normalization.
For further details, please see: https://docs.opencv.org/4.x/df/d2d/group__ximgproc.html#ga50d064b92f63916f4162474eea22d656
func Thinning ¶ added in v0.31.0
func Thinning(src gocv.Mat, dst *gocv.Mat, typ ThinningType)
Thinning applies a binary blob thinning operation, to achieve a skeletization of the input image.
The function transforms a binary blob image into a skeletized form using the technique of Zhang-Suen.
For further details, please see: https://docs.opencv.org/4.x/df/d2d/group__ximgproc.html#ga37002c6ca80c978edb6ead5d6b39740c
Types ¶
type AverageHash ¶ added in v0.16.0
type AverageHash struct{}
AverageHash is implementation of the AverageHash algorithm.
func (AverageHash) Compare ¶ added in v0.16.0
func (hash AverageHash) Compare(a, b gocv.Mat) float64
Compare compares the hash value between a and b using AverageHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
func (AverageHash) Compute ¶ added in v0.16.0
func (hash AverageHash) Compute(input gocv.Mat, output *gocv.Mat)
Compute computes hash of the input image using AverageHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
type BackgroundSubtractorCNT ¶ added in v0.22.0
type BackgroundSubtractorCNT struct {
// contains filtered or unexported fields
}
BackgroundSubtractorCNT is a wrapper around the cv::BackgroundSubtractorCNT.
func NewBackgroundSubtractorCNT ¶ added in v0.22.0
func NewBackgroundSubtractorCNT() BackgroundSubtractorCNT
NewBackgroundSubtractorCNT returns a new BackgroundSubtractor algorithm of type CNT. CNT is Background subtraction algorithm based on counting. About as fast as MOG2 on a high end system. More than twice faster than MOG2 on cheap hardware (benchmarked on Raspberry Pi3). Algorithm by Sagi Zeevi
For further details, please see: https://docs.opencv.org/3.4/de/dca/classcv_1_1bgsegm_1_1BackgroundSubtractorCNT.html
func (*BackgroundSubtractorCNT) Apply ¶ added in v0.22.0
func (b *BackgroundSubtractorCNT) Apply(src gocv.Mat, dst *gocv.Mat)
Apply computes a foreground mask using the current BackgroundSubtractorCNT.
For further details, please see: https://docs.opencv.org/3.4/de/dca/classcv_1_1bgsegm_1_1BackgroundSubtractorCNT.html
func (*BackgroundSubtractorCNT) Close ¶ added in v0.22.0
func (b *BackgroundSubtractorCNT) Close() error
Close BackgroundSubtractorCNT.
type BasicFaceRecognizer ¶ added in v0.38.0
type BinarizationMethod ¶ added in v0.31.0
type BinarizationMethod int
const ( BinarizationNiblack BinarizationMethod = iota BinarizationSauvola BinarizationWolf BinarizationNICK )
type BlockMeanHash ¶ added in v0.16.0
type BlockMeanHash struct {
Mode BlockMeanHashMode
}
BlockMeanHash is implementation of the BlockMeanHash algorithm.
func (BlockMeanHash) Compare ¶ added in v0.16.0
func (hash BlockMeanHash) Compare(a, b gocv.Mat) float64
Compare compares the hash value between a and b using BlockMeanHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
func (BlockMeanHash) Compute ¶ added in v0.16.0
func (hash BlockMeanHash) Compute(input gocv.Mat, output *gocv.Mat)
Compute computes hash of the input image using BlockMeanHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
type BlockMeanHashMode ¶ added in v0.16.0
type BlockMeanHashMode int
const ( BlockMeanHashMode0 BlockMeanHashMode = iota BlockMeanHashMode1 BlockMeanHashModeDefault = BlockMeanHashMode0 )
func (BlockMeanHashMode) String ¶ added in v0.22.0
func (c BlockMeanHashMode) String() string
type Bm3dSteps ¶ added in v0.28.0
type Bm3dSteps int
Bm3dSteps is the type for the various BM3D algorithm steps
type BriefDescriptorExtractor ¶ added in v0.36.0
type BriefDescriptorExtractor struct {
// contains filtered or unexported fields
}
BriefDescriptorExtractor is a wrapper around the cv::BriefDescriptorExtractor algorithm.
func NewBriefDescriptorExtractor ¶ added in v0.36.0
func NewBriefDescriptorExtractor() BriefDescriptorExtractor
NewBriefDescriptorExtractor returns a new BriefDescriptorExtractor algorithm.
For further details, please see: https://docs.opencv.org/master/d1/d93/classcv_1_1xfeatures2d_1_1BriefDescriptorExtractor.html
func NewBriefDescriptorExtractorWithParams ¶ added in v0.36.0
func NewBriefDescriptorExtractorWithParams(bytes int, useOrientation bool) BriefDescriptorExtractor
NewBriefDescriptorExtractorWithParams returns a new BriefDescriptorExtractor algorithm algorithm with parameters
For further details, please see: https://docs.opencv.org/master/d1/d93/classcv_1_1xfeatures2d_1_1BriefDescriptorExtractor.html#ae3bc52666010fb137ab6f0d32de51f60
func (*BriefDescriptorExtractor) Close ¶ added in v0.36.0
func (d *BriefDescriptorExtractor) Close() error
Close BriefDescriptorExtractor.
func (*BriefDescriptorExtractor) Compute ¶ added in v0.36.0
Compute descriptors with given keypoints using BriefDescriptorExtractor
For further details, please see: https://docs.opencv.org/master/d0/d13/classcv_1_1Feature2D.html#ab3cce8d56f4fc5e1d530b5931e1e8dc0
type ColorMomentHash ¶ added in v0.16.0
type ColorMomentHash struct{}
ColorMomentHash is implementation of the ColorMomentHash algorithm.
func (ColorMomentHash) Compare ¶ added in v0.16.0
func (hash ColorMomentHash) Compare(a, b gocv.Mat) float64
Compare compares the hash value between a and b using ColorMomentHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
func (ColorMomentHash) Compute ¶ added in v0.16.0
func (hash ColorMomentHash) Compute(input gocv.Mat, output *gocv.Mat)
Compute computes hash of the input image using ColorMomentHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
type EigenFaceRecognizer ¶ added in v0.38.0
type EigenFaceRecognizer struct {
// contains filtered or unexported fields
}
func NewEigenFaceRecognizer ¶ added in v0.38.0
func NewEigenFaceRecognizer() *EigenFaceRecognizer
NewEigenFaceRecognizer creates a new Eigen Recognizer model.
For further information, see: https://docs.opencv.org/4.x/dd/d7c/classcv_1_1face_1_1EigenFaceRecognizer.html#a22c8392f27a20b24d04351b675e7b6db
func NewEigenFaceRecognizerWithParams ¶ added in v0.38.0
func NewEigenFaceRecognizerWithParams(numComponents int, threshold float32) *EigenFaceRecognizer
NewEigenFaceRecognizerWithParams creates a new Eigen Recognizer model.
[num_components] The number of components (read: Eigenfaces) kept for this Principal Component Analysis. [threshold] The threshold applied in the prediction.
For further information, see: https://docs.opencv.org/4.x/dd/d7c/classcv_1_1face_1_1EigenFaceRecognizer.html#a22c8392f27a20b24d04351b675e7b6db
func (*EigenFaceRecognizer) Close ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) Close() error
func (*EigenFaceRecognizer) Empty ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) Empty() bool
Empty returns true if the model is empty.
func (*EigenFaceRecognizer) GetEigenValues ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) GetEigenValues() gocv.Mat
func (*EigenFaceRecognizer) GetEigenVectors ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) GetEigenVectors() gocv.Mat
func (*EigenFaceRecognizer) GetLabels ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) GetLabels() gocv.Mat
func (*EigenFaceRecognizer) GetMean ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) GetMean() gocv.Mat
func (*EigenFaceRecognizer) GetNumComponents ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) GetNumComponents() int
func (*EigenFaceRecognizer) GetProjections ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) GetProjections() []gocv.Mat
func (*EigenFaceRecognizer) GetThreshold ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) GetThreshold() float32
GetThreshold gets the threshold value of the model, i.e. the threshold applied in the prediction.
For further information, see: https://docs.opencv.org/4.x/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#acf2a6993eb4347b3f89009da693a3f70
func (*EigenFaceRecognizer) LoadFile ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) LoadFile(filename string)
LoadFile loads a trained model data from file.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#acc42e5b04595dba71f0777c7179af8c3
func (*EigenFaceRecognizer) Predict ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) Predict(sample gocv.Mat) int
Predict predicts a label for a given input image. It returns the label for correctly predicted image or -1 if not found.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#aa2d2f02faffab1bf01317ae6502fb631
func (*EigenFaceRecognizer) PredictExtendedResponse ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) PredictExtendedResponse(sample gocv.Mat) PredictResponse
PredictExtendedResponse returns a label and associated confidence (e.g. distance) for a given input image. It is the extended version of `Predict()`.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#ab0d593e53ebd9a0f350c989fcac7f251
func (*EigenFaceRecognizer) SaveFile ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) SaveFile(filename string)
SaveFile saves the trained model data to file.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#a2adf2d555550194244b05c91fefcb4d6
func (*EigenFaceRecognizer) SetNumComponents ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) SetNumComponents(val int)
func (*EigenFaceRecognizer) SetThreshold ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) SetThreshold(threshold float32)
SetThreshold sets the threshold value of the model, i.e. the threshold applied in the prediction.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#a3182081e5f8023e658ad8ab96656dd63
func (*EigenFaceRecognizer) Train ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) Train(images []gocv.Mat, labels []int)
Train loaded model with images and their labels
func (*EigenFaceRecognizer) Update ¶ added in v0.38.0
func (fr *EigenFaceRecognizer) Update(newImages []gocv.Mat, newLabels []int)
Update This model does not support updating.
For further information, see: https://docs.opencv.org/4.x/dd/d7c/classcv_1_1face_1_1EigenFaceRecognizer.html#a22c8392f27a20b24d04351b675e7b6db
type FaceRecognizer ¶ added in v0.38.0
type FaceRecognizer interface { Empty() bool Train(images []gocv.Mat, labels []int) Update(newImages []gocv.Mat, newLabels []int) Predict(sample gocv.Mat) int PredictExtendedResponse(sample gocv.Mat) PredictResponse GetThreshold() float32 SetThreshold(threshold float32) SaveFile(fname string) LoadFile(fname string) Close() error }
type FisherFaceRecognizer ¶ added in v0.38.0
type FisherFaceRecognizer struct {
// contains filtered or unexported fields
}
func NewFisherFaceRecognizer ¶ added in v0.38.0
func NewFisherFaceRecognizer() *FisherFaceRecognizer
NewFisherFaceRecognizer creates a new Fisher Recognizer model.
For further information, see: https://docs.opencv.org/4.x/d2/de9/classcv_1_1face_1_1FisherFaceRecognizer.html#ac6e204df6d7e526f4c77d3e0389dfbaa
func NewFisherFaceRecognizerWithParams ¶ added in v0.38.0
func NewFisherFaceRecognizerWithParams(numComponents int, threshold float32) *FisherFaceRecognizer
NewFisherFaceRecognizerWithParams creates a new Fisher Recognizer model.
[num_components] The number of components (read: Fisherfaces) kept for this Linear Discriminant Analysis with the Fisherfaces criterion. It's useful to keep all components, that means the number of your classes c (read: subjects, persons you want to recognize). If you leave this at the default (0) or set it to a value less-equal 0 or greater (c-1), it will be set to the correct number (c-1) automatically.
[threshold] The threshold applied in the prediction. If the distance to the nearest neighbor is larger than the threshold, this method returns -1.
For further information, see: https://docs.opencv.org/4.x/d2/de9/classcv_1_1face_1_1FisherFaceRecognizer.html#ac6e204df6d7e526f4c77d3e0389dfbaa
func (*FisherFaceRecognizer) Close ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) Close() error
func (*FisherFaceRecognizer) Empty ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) Empty() bool
Empty returns true if the model is empty.
func (*FisherFaceRecognizer) GetEigenValues ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) GetEigenValues() gocv.Mat
func (*FisherFaceRecognizer) GetEigenVectors ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) GetEigenVectors() gocv.Mat
func (*FisherFaceRecognizer) GetLabels ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) GetLabels() gocv.Mat
func (*FisherFaceRecognizer) GetMean ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) GetMean() gocv.Mat
func (*FisherFaceRecognizer) GetNumComponents ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) GetNumComponents() int
func (*FisherFaceRecognizer) GetProjections ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) GetProjections() []gocv.Mat
func (*FisherFaceRecognizer) GetThreshold ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) GetThreshold() float32
GetThreshold gets the threshold value of the model, i.e. the threshold applied in the prediction.
For further information, see: https://docs.opencv.org/4.x/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#acf2a6993eb4347b3f89009da693a3f70
func (*FisherFaceRecognizer) LoadFile ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) LoadFile(filename string)
LoadFile loads a trained model data from file.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#acc42e5b04595dba71f0777c7179af8c3
func (*FisherFaceRecognizer) Predict ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) Predict(sample gocv.Mat) int
Predict predicts a label for a given input image. It returns the label for correctly predicted image or -1 if not found.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#aa2d2f02faffab1bf01317ae6502fb631
func (*FisherFaceRecognizer) PredictExtendedResponse ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) PredictExtendedResponse(sample gocv.Mat) PredictResponse
PredictExtendedResponse returns a label and associated confidence (e.g. distance) for a given input image. It is the extended version of `Predict()`.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#ab0d593e53ebd9a0f350c989fcac7f251
func (*FisherFaceRecognizer) SaveFile ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) SaveFile(filename string)
SaveFile saves the trained model data to file.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#a2adf2d555550194244b05c91fefcb4d6
func (*FisherFaceRecognizer) SetNumComponents ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) SetNumComponents(val int)
func (*FisherFaceRecognizer) SetThreshold ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) SetThreshold(threshold float32)
SetThreshold sets the threshold value of the model, i.e. the threshold applied in the prediction.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#a3182081e5f8023e658ad8ab96656dd63
func (*FisherFaceRecognizer) Train ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) Train(images []gocv.Mat, labels []int)
Train loaded model with images and their labels
func (*FisherFaceRecognizer) Update ¶ added in v0.38.0
func (fr *FisherFaceRecognizer) Update(newImages []gocv.Mat, newLabels []int)
Update This model does not support updating.
For further information, see: https://docs.opencv.org/4.x/d2/de9/classcv_1_1face_1_1FisherFaceRecognizer.html#ac6e204df6d7e526f4c77d3e0389dfbaa
type FreeType2 ¶ added in v0.38.0
type FreeType2 struct {
// contains filtered or unexported fields
}
func NewFreeType2 ¶ added in v0.38.0
func NewFreeType2() FreeType2
NewFreeType2 create instance to draw UTF-8 strings.
For further details, please see: https://docs.opencv.org/master/d4/dfc/group__freetype.html#ga0fd8f9c0ae69bb4d95c41af79473a756
func (*FreeType2) GetTextSize ¶ added in v0.38.0
GetTextSize calculates the width and height of a text string. The function getTextSize calculates and returns the approximate size of a box that contains the specified text. That is, the following code renders some text, the tight box surrounding it, and the baseline.
For further details, please see: https://docs.opencv.org/master/d9/dfa/classcv_1_1freetype_1_1FreeType2.html#af135a132505125bdea74b378dda3bb5d
func (*FreeType2) LoadFontData ¶ added in v0.38.0
LoadFontData loads font data.
For further details, please see: https://docs.opencv.org/master/d9/dfa/classcv_1_1freetype_1_1FreeType2.html#af059d49b806b916ffdd6380b9eb2f59a
func (*FreeType2) PutText ¶ added in v0.38.0
func (f *FreeType2) PutText(img *gocv.Mat, text string, org image.Point, fontHeight int, c color.RGBA, thickness int, lineType gocv.LineType, bottomLeftOrigin bool)
PutText draws a text string. It renders the specified text string in the image. Symbols that cannot be rendered using the specified font are replaced by "Tofu" or non-drawn.
For further details, please see: https://docs.opencv.org/master/d9/dfa/classcv_1_1freetype_1_1FreeType2.html#aba641f774c47a70eaeb76bf7aa865915
func (*FreeType2) SetSplitNumber ¶ added in v0.38.0
SetSplitNumber set the number of split points from bezier-curve to line. If you want to draw large glyph, large is better. If you want to draw small glyph, small is better.
For further details, please see: https://docs.opencv.org/master/d9/dfa/classcv_1_1freetype_1_1FreeType2.html#a572143e6c68eab181387d9f4b3366f8b
type GrayworldWB ¶ added in v0.28.0
type GrayworldWB struct {
// contains filtered or unexported fields
}
GrayworldWB is a wrapper around the cv::xphoto::GrayworldWB.
func NewGrayworldWB ¶ added in v0.28.0
func NewGrayworldWB() GrayworldWB
NewGrayworldWBWithParams returns a new Gray-world white balance algorithm. of type GrayworldWB with customized parameters. GrayworldWB algorithm scales the values of pixels based on a gray-world assumption which states that the average of all channels should result in a gray image.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html https://docs.opencv.org/master/d7/d71/classcv_1_1xphoto_1_1GrayworldWB.html
func (*GrayworldWB) BalanceWhite ¶ added in v0.28.0
func (b *GrayworldWB) BalanceWhite(src gocv.Mat, dst *gocv.Mat)
BalanceWhite computes a Gray-world white balance using the current GrayworldWB.
For further details, please see: https://docs.opencv.org/master/d7/d71/classcv_1_1xphoto_1_1GrayworldWB.html#details
func (*GrayworldWB) GetSaturationThreshold ¶ added in v0.28.0
func (b *GrayworldWB) GetSaturationThreshold() float32
GetSaturationThreshold return the Maximum saturation for a pixel to be included in the gray-world assumption.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html https://docs.opencv.org/master/d7/d71/classcv_1_1xphoto_1_1GrayworldWB.html https://docs.opencv.org/master/d7/d71/classcv_1_1xphoto_1_1GrayworldWB.html#ac6e17766e394adc15588b8522202cc71
func (*GrayworldWB) SetSaturationThreshold ¶ added in v0.28.0
func (b *GrayworldWB) SetSaturationThreshold(saturationThreshold float32)
SetSaturationThreshold set a Maximum saturation for a pixel to be included in the gray-world assumption.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html https://docs.opencv.org/master/d7/d71/classcv_1_1xphoto_1_1GrayworldWB.html https://docs.opencv.org/master/d7/d71/classcv_1_1xphoto_1_1GrayworldWB.html#ac6e17766e394adc15588b8522202cc71
type ImgHashBase ¶ added in v0.16.0
type ImgHashBase interface { Compare(a, b gocv.Mat) float64 Compute(inputArr gocv.Mat, outputArr *gocv.Mat) }
ImgHashBase defines the interface used for all of the img_hash algorithms.
type InpaintTypes ¶ added in v0.28.0
type InpaintTypes int
const ( ShitMap InpaintTypes = 0 FsrBest InpaintTypes = 1 FsrFast InpaintTypes = 2 )
type LBPHFaceRecognizer ¶
type LBPHFaceRecognizer struct {
// contains filtered or unexported fields
}
LBPHFaceRecognizer is a wrapper for the OpenCV Local Binary Patterns Histograms face recognizer.
func NewLBPHFaceRecognizer ¶
func NewLBPHFaceRecognizer() *LBPHFaceRecognizer
NewLBPHFaceRecognizer creates a new LBPH Recognizer model.
For further information, see: https://docs.opencv.org/master/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html
func (*LBPHFaceRecognizer) Close ¶ added in v0.38.0
func (fr *LBPHFaceRecognizer) Close() error
func (*LBPHFaceRecognizer) Empty ¶ added in v0.38.0
func (fr *LBPHFaceRecognizer) Empty() bool
Empty returns true if the model is empty.
func (*LBPHFaceRecognizer) GetGrid ¶ added in v0.38.0
func (fr *LBPHFaceRecognizer) GetGrid() image.Point
GetGrid helper for GetGrid* functions
func (*LBPHFaceRecognizer) GetGridX ¶ added in v0.38.0
func (fr *LBPHFaceRecognizer) GetGridX() int
GetGridX gets grid's X value
For further information, see: https://docs.opencv.org/4.x/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#ada6839bed931a8f68c5127e1af7a8b83
func (*LBPHFaceRecognizer) GetGridY ¶ added in v0.38.0
func (fr *LBPHFaceRecognizer) GetGridY() int
GetGridY gets grid's Y value
For further information, see: https://docs.opencv.org/4.x/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#a22c68c0baf3eb9e852f47ae9241dbf15
func (*LBPHFaceRecognizer) GetNeighbors ¶
func (fr *LBPHFaceRecognizer) GetNeighbors() int
GetNeighbors returns the neighbors value of the model.
For further information, see: https://docs.opencv.org/master/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#a50a3e2ca6e8464166e153c9df84b0a77
func (*LBPHFaceRecognizer) GetThreshold ¶ added in v0.38.0
func (fr *LBPHFaceRecognizer) GetThreshold() float32
GetThreshold gets the threshold value of the model, i.e. the threshold applied in the prediction.
For further information, see: https://docs.opencv.org/4.x/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#acf2a6993eb4347b3f89009da693a3f70
func (*LBPHFaceRecognizer) LoadFile ¶
func (fr *LBPHFaceRecognizer) LoadFile(fname string)
LoadFile loads a trained model data from file.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#acc42e5b04595dba71f0777c7179af8c3
func (*LBPHFaceRecognizer) Predict ¶
func (fr *LBPHFaceRecognizer) Predict(sample gocv.Mat) int
Predict predicts a label for a given input image. It returns the label for correctly predicted image or -1 if not found.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#aa2d2f02faffab1bf01317ae6502fb631
func (*LBPHFaceRecognizer) PredictExtendedResponse ¶
func (fr *LBPHFaceRecognizer) PredictExtendedResponse(sample gocv.Mat) PredictResponse
PredictExtendedResponse returns a label and associated confidence (e.g. distance) for a given input image. It is the extended version of `Predict()`.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#ab0d593e53ebd9a0f350c989fcac7f251
func (*LBPHFaceRecognizer) SaveFile ¶
func (fr *LBPHFaceRecognizer) SaveFile(fname string)
SaveFile saves the trained model data to file.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#a2adf2d555550194244b05c91fefcb4d6
func (*LBPHFaceRecognizer) SetGrid ¶ added in v0.38.0
func (fr *LBPHFaceRecognizer) SetGrid(p image.Point)
SetGrid helper for SetGrid* functions
func (*LBPHFaceRecognizer) SetGridX ¶ added in v0.38.0
func (fr *LBPHFaceRecognizer) SetGridX(x int)
SetGridX sets grid's X value
For further information, see: https://docs.opencv.org/4.x/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#ad65975baee31dbf3bd2a750feef74831
func (*LBPHFaceRecognizer) SetGridY ¶ added in v0.38.0
func (fr *LBPHFaceRecognizer) SetGridY(y int)
SetGridY sets grid's Y value
For further information, see: https://docs.opencv.org/4.x/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#a9cebb0138dbb3553b27beb2df3924ae6
func (*LBPHFaceRecognizer) SetNeighbors ¶
func (fr *LBPHFaceRecognizer) SetNeighbors(neighbors int)
SetNeighbors sets the neighbors value of the model, i.e. the number of sample points to build a Circular Local Binary Pattern from. Note that wrong neighbors can raise OpenCV exception!
For further information, see: https://docs.opencv.org/master/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#ab225f7bf353ce8697a506eda10124a92
func (*LBPHFaceRecognizer) SetRadius ¶
func (fr *LBPHFaceRecognizer) SetRadius(radius int)
SetRadius sets the radius used for building the Circular Local Binary Pattern.
For further information, see: https://docs.opencv.org/master/df/d25/classcv_1_1face_1_1LBPHFaceRecognizer.html#a62d94c75cade902fd3b487b1ef9883fc
func (*LBPHFaceRecognizer) SetThreshold ¶
func (fr *LBPHFaceRecognizer) SetThreshold(threshold float32)
SetThreshold sets the threshold value of the model, i.e. the threshold applied in the prediction.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#a3182081e5f8023e658ad8ab96656dd63
func (*LBPHFaceRecognizer) Train ¶
func (fr *LBPHFaceRecognizer) Train(images []gocv.Mat, labels []int)
Train loaded model with images and their labels
func (*LBPHFaceRecognizer) Update ¶
func (fr *LBPHFaceRecognizer) Update(newImages []gocv.Mat, newLabels []int)
Update updates the existing trained model with new images and labels.
For further information, see: https://docs.opencv.org/master/dd/d65/classcv_1_1face_1_1FaceRecognizer.html#a8a4e73ea878dcd0c235d0487189d25f3
type LearningBasedWB ¶ added in v0.28.0
type LearningBasedWB struct {
// contains filtered or unexported fields
}
LearningBasedWB is a wrapper around the cv::xphoto::LearningBasedWB.
func NewLearningBasedWB ¶ added in v0.28.0
func NewLearningBasedWB() LearningBasedWB
NewLearningBasedWB returns more sophisticated learning-based automatic white balance algorithm.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html https://docs.opencv.org/master/d4/d3b/classcv_1_1xphoto_1_1LearningBasedWB.html https://docs.opencv.org/master/de/daa/group__xphoto.html#gac8fb5636b27eac575f4a4c9c54dd1c7c
func NewLearningBasedWBWithParams ¶ added in v0.28.0
func NewLearningBasedWBWithParams(pathmodel string) LearningBasedWB
NewLearningBasedWBWithParams returns more sophisticated learning-based automatic white balance algorithm. A type LearningBasedWB algorithm with path model parameters.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html https://docs.opencv.org/master/d4/d3b/classcv_1_1xphoto_1_1LearningBasedWB.html https://docs.opencv.org/master/de/daa/group__xphoto.html#gac8fb5636b27eac575f4a4c9c54dd1c7c
func (*LearningBasedWB) BalanceWhite ¶ added in v0.28.0
func (b *LearningBasedWB) BalanceWhite(src gocv.Mat, dst *gocv.Mat)
BalanceWhite computes a learning-based white balance using the current LearningBasedWB.
For further details, please see: https://docs.opencv.org/master/d9/d7a/classcv_1_1xphoto_1_1WhiteBalancer.html#ae23838a1a54f101b255bca1a97418aa3
func (*LearningBasedWB) Close ¶ added in v0.28.0
func (b *LearningBasedWB) Close() error
Close LearningBasedWB.
func (*LearningBasedWB) ExtractSimpleFeatures ¶ added in v0.28.0
func (b *LearningBasedWB) ExtractSimpleFeatures(src gocv.Mat, dst *gocv.Mat)
ExtractSimpleFeatures Implements the feature extraction part of the algorithm.
For further details, please see: https://docs.opencv.org/master/d4/d3b/classcv_1_1xphoto_1_1LearningBasedWB.html#aeeaca052262a01d0feed6312ccb9a76e
func (*LearningBasedWB) GetHistBinNum ¶ added in v0.28.0
func (b *LearningBasedWB) GetHistBinNum() int
GetHistBinNum Defines the size of one dimension of a three-dimensional RGB histogram that is used internally by the algorithm.
For further details, please see: https://docs.opencv.org/master/d4/d3b/classcv_1_1xphoto_1_1LearningBasedWB.html#abfe7d3983f8245a7eba0a7f9de40e3e1
func (*LearningBasedWB) GetRangeMaxVal ¶ added in v0.28.0
func (b *LearningBasedWB) GetRangeMaxVal() int
GetRangeMaxVal Maximum possible value of the input image (e.g. 255 for 8 bit images, 4095 for 12 bit images)
For further details, please see: https://docs.opencv.org/master/d4/d3b/classcv_1_1xphoto_1_1LearningBasedWB.html#a764b51265b5a1bd7bd11ce9d14d6f75f
func (*LearningBasedWB) GetSaturationThreshold ¶ added in v0.28.0
func (b *LearningBasedWB) GetSaturationThreshold() float32
GetSaturationThreshold Threshold that is used to determine saturated pixels
For further details, please see: https://docs.opencv.org/master/d4/d3b/classcv_1_1xphoto_1_1LearningBasedWB.html#ae7eb310249709c2aef41d6399ebd7660
func (*LearningBasedWB) SetHistBinNum ¶ added in v0.28.0
func (b *LearningBasedWB) SetHistBinNum(val int)
SetHistBinNum Defines the size of one dimension of a three-dimensional RGB histogram that is used internally by the algorithm.
For further details, please see: https://docs.opencv.org/master/d4/d3b/classcv_1_1xphoto_1_1LearningBasedWB.html#a3381bd425bc4201133c9669071908e7f
func (*LearningBasedWB) SetRangeMaxVal ¶ added in v0.28.0
func (b *LearningBasedWB) SetRangeMaxVal(val int)
SetRangeMaxVal Maximum possible value of the input image (e.g. 255 for 8 bit images, 4095 for 12 bit images)
For further details, please see: https://docs.opencv.org/master/d4/d3b/classcv_1_1xphoto_1_1LearningBasedWB.html#a3d9395274be8053b2f09e46d11a24a65
func (*LearningBasedWB) SetSaturationThreshold ¶ added in v0.28.0
func (b *LearningBasedWB) SetSaturationThreshold(val float32)
SetSaturationThreshold Threshold that is used to determine saturated pixels
For further details, please see: https://docs.opencv.org/master/d4/d3b/classcv_1_1xphoto_1_1LearningBasedWB.html#a9bff5a507d4dffc58e16d85b1d07f35f
type MarrHildrethHash ¶ added in v0.16.0
MarrHildrethHash is implementation of the MarrHildrethHash algorithm.
func NewMarrHildrethHash ¶ added in v0.16.0
func NewMarrHildrethHash() MarrHildrethHash
func (MarrHildrethHash) Compare ¶ added in v0.16.0
func (hash MarrHildrethHash) Compare(a, b gocv.Mat) float64
Compare compares the hash value between a and b using MarrHildrethHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
func (MarrHildrethHash) Compute ¶ added in v0.16.0
func (hash MarrHildrethHash) Compute(input gocv.Mat, output *gocv.Mat)
Compute computes hash of the input image using MarrHildrethHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
type PHash ¶ added in v0.16.0
type PHash struct{}
PHash is implementation of the PHash algorithm.
func (PHash) Compare ¶ added in v0.16.0
Compare compares the hash value between a and b using PHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
type PredictResponse ¶
PredictResponse represents a predicted label and associated confidence.
type RadialVarianceHash ¶ added in v0.16.0
RadialVarianceHash is implementation of the RadialVarianceHash algorithm.
func NewRadialVarianceHash ¶ added in v0.16.0
func NewRadialVarianceHash() RadialVarianceHash
func (RadialVarianceHash) Compare ¶ added in v0.16.0
func (hash RadialVarianceHash) Compare(a, b gocv.Mat) float64
Compare compares the hash value between a and b using RadialVarianceHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
func (RadialVarianceHash) Compute ¶ added in v0.16.0
func (hash RadialVarianceHash) Compute(input gocv.Mat, output *gocv.Mat)
Compute computes hash of the input image using RadialVarianceHash.
For further information, see: https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
type SURF ¶
type SURF struct {
// contains filtered or unexported fields
}
SURF is a wrapper around the cv::SURF algorithm. Due to being a patented algorithm you must set the OpenCV contrib build flag OPENCV_ENABLE_NONFREE=1 in order to use it.
func NewSURF ¶
func NewSURF() SURF
NewSURF returns a new SURF algorithm.
For further details, please see: https://docs.opencv.org/master/d5/df7/classcv_1_1xfeatures2d_1_1SURF.html
func NewSURFWithParams ¶ added in v0.36.0
func NewSURFWithParams(hessianThreshold float64, nOctaves int, nOctaveLayers int, extended bool, upright bool) SURF
NewSURFWithParams returns a new SURF algorithm algorithm with parameters
For further details, please see: https://docs.opencv.org/master/d5/df7/classcv_1_1xfeatures2d_1_1SURF.html#a436553ca44d9a2238761ddbee5b395e5
func (*SURF) Compute ¶ added in v0.36.0
func (d *SURF) Compute(src gocv.Mat, mask gocv.Mat, kps []gocv.KeyPoint) ([]gocv.KeyPoint, gocv.Mat)
Compute keypoints in an image using SURF.
For further details, please see: https://docs.opencv.org/4.x/d0/d13/classcv_1_1Feature2D.html#ab3cce8d56f4fc5e1d530b5931e1e8dc0
func (*SURF) Detect ¶
Detect keypoints in an image using SURF.
For further details, please see: https://docs.opencv.org/master/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/master/d0/d13/classcv_1_1Feature2D.html#a8be0d1c20b08eb867184b8d74c15a677
type SimpleWB ¶ added in v0.28.0
type SimpleWB struct {
// contains filtered or unexported fields
}
SimpleWB is a wrapper around the cv::xphoto::SimpleWB.
func NewSimpleWB ¶ added in v0.28.0
func NewSimpleWB() SimpleWB
NewSimpleWBWithParams returns more sophisticated learning-based automatic white balance algorithm. A type SimpleWB algorithm with path model parameters.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html https://docs.opencv.org/master/de/daa/group__xphoto.html#ga2b48b3b384b5c5ee1b15a2a01c26d5f1
func (*SimpleWB) BalanceWhite ¶ added in v0.28.0
BalanceWhite computes a learning-based white balance using the current LearningBasedWB.
For further details, please see: https://docs.opencv.org/master/d9/d7a/classcv_1_1xphoto_1_1WhiteBalancer.html#ae23838a1a54f101b255bca1a97418aa3
func (*SimpleWB) GetInputMax ¶ added in v0.28.0
GetInputMax Input image range maximum value.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#a45fef780842168cba868212c71ad8318
func (*SimpleWB) GetInputMin ¶ added in v0.28.0
GetInputMin Input image range minimum value.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#a69ee7c05e5ca45cac60040371a4a648c
func (*SimpleWB) GetOutputMax ¶ added in v0.28.0
GetOutputMax Output image range maximum value.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#af8b051a0b2d3e8ad0aa323c195d966c1
func (*SimpleWB) GetOutputMin ¶ added in v0.28.0
GetOutputMin Output image range minimum value.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#ada11ef4159bd6354a98d371f5be68b44
func (*SimpleWB) GetP ¶ added in v0.28.0
GetP Percent of top/bottom values to ignore.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#a49d63fd73572fc88c944f5ffbcb085a3
func (*SimpleWB) SetInputMax ¶ added in v0.28.0
SetInputMax Input image range maximum value.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#a6b2523a8740b353ef50e136d0399bf3a
func (*SimpleWB) SetInputMin ¶ added in v0.28.0
SetInputMin Input image range minimum value.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#a1b08a24a8589aae886fbf96ba27691a0
func (*SimpleWB) SetOutputMax ¶ added in v0.28.0
SetOutputMax Output image range maximum value.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#a06962b042d9089366bc6347e608481b6
func (*SimpleWB) SetOutputMin ¶ added in v0.28.0
SetOutputMin Output image range minimum value.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#a60d1e06b122747d416c4f1563167c740
func (*SimpleWB) SetP ¶ added in v0.28.0
SetP Percent of top/bottom values to ignore.
For further details, please see: https://docs.opencv.org/master/d1/d8b/classcv_1_1xphoto_1_1SimpleWB.html#a31b6bb5452afdb5a444920013417f018
type ThinningType ¶ added in v0.31.0
type ThinningType int
const ( ThinningZhangSuen ThinningType = iota ThinningGuoHall )
type TonemapDurand ¶ added in v0.28.0
type TonemapDurand struct {
// contains filtered or unexported fields
}
TonemapDurand is a wrapper around the cv::xphoto::TonemapDurand.
func NewTonemapDurand ¶ added in v0.28.0
func NewTonemapDurand() TonemapDurand
NewTonemapDurand returns more sophisticated learning-based automatic white balance algorithm. A type TonemapDurand algorithm with path model parameters.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html https://docs.opencv.org/master/d1/db3/classcv_1_1xphoto_1_1TonemapDurand.html https://docs.opencv.org/master/de/daa/group__xphoto.html#ga51a091aa54e26b3546316ce2c1df190b
func NewTonemapDurandWithParams ¶ added in v0.28.0
func NewTonemapDurandWithParams(gamma float32, contrast float32, saturation float32, sigma_color float32, sigma_space float32) TonemapDurand
NewTonemapDurandWithParams returns more sophisticated learning-based automatic white balance algorithm. A type TonemapDurand algorithm with path model parameters.
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html https://docs.opencv.org/master/d1/db3/classcv_1_1xphoto_1_1TonemapDurand.html https://docs.opencv.org/master/de/daa/group__xphoto.html#ga51a091aa54e26b3546316ce2c1df190b
func (*TonemapDurand) Close ¶ added in v0.28.0
func (b *TonemapDurand) Close() error
Close TonemapDurand.
func (*TonemapDurand) GetContrast ¶ added in v0.28.0
func (b *TonemapDurand) GetContrast() float32
GetContrast
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#ga2df693dd285a7e7fd3b4fc8a8a750cce
func (*TonemapDurand) GetGamma ¶ added in v0.28.0
func (b *TonemapDurand) GetGamma() float32
GetGamma
For further details, please see: https://docs.opencv.org/master/d8/d5e/classcv_1_1Tonemap.html#a147c2b57ed5a5a0566001f4db2ddc0dd
func (*TonemapDurand) GetSaturation ¶ added in v0.28.0
func (b *TonemapDurand) GetSaturation() float32
GetSaturation
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#gad8ab5850af6fdb3f6bc51d5c9371bbfe
func (*TonemapDurand) GetSigmaColor ¶ added in v0.28.0
func (b *TonemapDurand) GetSigmaColor() float32
GetSigmaColor
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#ga31d7588db7e47fb81890cba7ff014edb
func (*TonemapDurand) GetSigmaSpace ¶ added in v0.28.0
func (b *TonemapDurand) GetSigmaSpace() float32
GetSigmaSpace
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#ga078b11014d8a41920f50cab57fce9515
func (*TonemapDurand) Process ¶ added in v0.28.0
func (b *TonemapDurand) Process(src gocv.Mat, dst *gocv.Mat)
Process Tonemaps image with gocv.MatTypeCV32FC3 type image For further details, please see: https://docs.opencv.org/master/d8/d5e/classcv_1_1Tonemap.html#aa705c3b7226f7028a5c117dffab60fe4
func (*TonemapDurand) SetContrast ¶ added in v0.28.0
func (b *TonemapDurand) SetContrast(val float32)
SetContrast
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#ga99eaaa24dc25ba387093e957bfca1cad
func (*TonemapDurand) SetGamma ¶ added in v0.28.0
func (b *TonemapDurand) SetGamma(val float32)
SetGamma
For further details, please see: https://docs.opencv.org/master/d8/d5e/classcv_1_1Tonemap.html#ac809d2967f942b038b4bf21c97f8b1b7
func (*TonemapDurand) SetSaturation ¶ added in v0.28.0
func (b *TonemapDurand) SetSaturation(val float32)
SetSaturation
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#ga9c7de9517f95fd046910fc818e256d55
func (*TonemapDurand) SetSigmaColor ¶ added in v0.28.0
func (b *TonemapDurand) SetSigmaColor(val float32)
SetSigmaColor
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#ga7dec866735ecbae9e05224958d4585fd
func (*TonemapDurand) SetSigmaSpace ¶ added in v0.28.0
func (b *TonemapDurand) SetSigmaSpace(val float32)
SetSigmaSpace
For further details, please see: https://docs.opencv.org/master/de/daa/group__xphoto.html#ga8869068912fae078699ce931bdc17fc4
type TrackerCSRT ¶ added in v0.16.0
type TrackerCSRT struct {
// contains filtered or unexported fields
}
TrackerCSRT is an implementation of Discriminative Correlation Filter Tracker with Channel and Spatial Reliability.
For further details, please see: https://docs.opencv.org/master/d2/da2/classcv_1_1TrackerCSRT.html
func (TrackerCSRT) Close ¶ added in v0.16.0
func (trk TrackerCSRT) Close() error
Close closes this Tracker.
type TrackerKCF ¶ added in v0.16.0
type TrackerKCF struct {
// contains filtered or unexported fields
}
TrackerKCF is a Tracker based on KCF, which is a novel tracking framework that utilizes properties of circulant matrix to enhance the processing speed.
For further details, please see: https://docs.opencv.org/master/d2/dff/classcv_1_1TrackerKCF.html
func (TrackerKCF) Close ¶ added in v0.16.0
func (trk TrackerKCF) Close() error
Close closes this Tracker.
type TransformTypes ¶ added in v0.28.0
type TransformTypes int
const (
Bm3dTypeHaar TransformTypes = 0
)
type WeChatQRCode ¶ added in v0.30.0
type WeChatQRCode struct {
// contains filtered or unexported fields
}
func NewWeChatQRCode ¶ added in v0.30.0
func NewWeChatQRCode(detectProtoTxt, detectCaffe, superProtoTxt, superCaffe string) *WeChatQRCode