Versions in this module Expand all Collapse all v1 v1.0.1 Nov 11, 2022 Changes in this version + 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 DetectMarkers(input gocv.Mat, dictionary ArucoDictionary, params ArucoDetectorParameters) (markerCorners [][]gocv.Point2f, markerIds []int, ...) + func DetectMarkersWithDictID(input gocv.Mat, dictionaryId ArucoDictionaryCode, ...) (markerCorners [][]gocv.Point2f, markerIds []int, ...) + func DrawDetectedMarkers(img gocv.Mat, markerCorners [][]gocv.Point2f, markerIds []int, ...) + func DrawMarker(dictionaryId ArucoDictionaryCode, id int, sidePixels int, img gocv.Mat, ...) + 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 ArucoDetectorParameters struct + func NewArucoDetectorParameters() ArucoDetectorParameters + func (p *ArucoDetectorParameters) GetAdaptiveThreshConstant() float64 + func (p *ArucoDetectorParameters) GetAdaptiveThreshWinSizeMax() int + func (p *ArucoDetectorParameters) GetAdaptiveThreshWinSizeMin() int + func (p *ArucoDetectorParameters) GetAdaptiveThreshWinSizeStep() int + func (p *ArucoDetectorParameters) GetAprilTagCriticalRad() float32 + func (p *ArucoDetectorParameters) GetAprilTagDeglitch() int + func (p *ArucoDetectorParameters) GetAprilTagMaxLineFitMse() float32 + func (p *ArucoDetectorParameters) GetAprilTagMaxNmaxima() int + func (p *ArucoDetectorParameters) GetAprilTagMinClusterPixels() int + func (p *ArucoDetectorParameters) GetAprilTagMinWhiteBlackDiff() int + func (p *ArucoDetectorParameters) GetAprilTagQuadDecimate() float32 + func (p *ArucoDetectorParameters) GetAprilTagQuadSigma() float32 + func (p *ArucoDetectorParameters) GetCornerRefinementMaxIterations() int + func (p *ArucoDetectorParameters) GetCornerRefinementMethod() int + func (p *ArucoDetectorParameters) GetCornerRefinementMinAccuracy() float64 + func (p *ArucoDetectorParameters) GetCornerRefinementWinSize() int + func (p *ArucoDetectorParameters) GetDetectInvertedMarker() bool + func (p *ArucoDetectorParameters) GetErrorCorrectionRate() float64 + func (p *ArucoDetectorParameters) GetMarkerBorderBits() int + func (p *ArucoDetectorParameters) GetMaxErroneousBitsInBorderRate() float64 + func (p *ArucoDetectorParameters) GetMaxMarkerPerimeterRate() float64 + func (p *ArucoDetectorParameters) GetMinCornerDistanceRate() float64 + func (p *ArucoDetectorParameters) GetMinDistanceToBorder() int + func (p *ArucoDetectorParameters) GetMinMarkerDistanceRate() float64 + func (p *ArucoDetectorParameters) GetMinMarkerPerimeterRate() float64 + func (p *ArucoDetectorParameters) GetMinOtsuStdDev() float64 + func (p *ArucoDetectorParameters) GetPerspectiveRemoveIgnoredMarginPerCell() float64 + func (p *ArucoDetectorParameters) GetPerspectiveRemovePixelPerCell() int + func (p *ArucoDetectorParameters) GetPolygonalApproxAccuracyRate() float64 + func (p *ArucoDetectorParameters) SetAdaptiveThreshConstant(adaptiveThreshConstant float64) + func (p *ArucoDetectorParameters) SetAdaptiveThreshWinSizeMax(adaptiveThreshWinSizeMax int) + func (p *ArucoDetectorParameters) SetAdaptiveThreshWinSizeMin(adaptiveThreshWinSizeMin int) + func (p *ArucoDetectorParameters) SetAdaptiveThreshWinSizeStep(adaptiveThreshWinSizeStep int) + func (p *ArucoDetectorParameters) SetAprilTagCriticalRad(aprilTagCriticalRad float32) + func (p *ArucoDetectorParameters) SetAprilTagDeglitch(aprilTagDeglitch int) + func (p *ArucoDetectorParameters) SetAprilTagMaxLineFitMse(aprilTagMaxLineFitMse float32) + func (p *ArucoDetectorParameters) SetAprilTagMaxNmaxima(aprilTagMaxNmaxima int) + func (p *ArucoDetectorParameters) SetAprilTagMinClusterPixels(aprilTagMinClusterPixels int) + func (p *ArucoDetectorParameters) SetAprilTagMinWhiteBlackDiff(aprilTagMinWhiteBlackDiff int) + func (p *ArucoDetectorParameters) SetAprilTagQuadDecimate(aprilTagQuadDecimate float32) + func (p *ArucoDetectorParameters) SetAprilTagQuadSigma(aprilTagQuadSigma float32) + func (p *ArucoDetectorParameters) SetCornerRefinementMaxIterations(cornerRefinementMaxIterations int) + func (p *ArucoDetectorParameters) SetCornerRefinementMethod(cornerRefinementMethod int) + func (p *ArucoDetectorParameters) SetCornerRefinementMinAccuracy(cornerRefinementMinAccuracy float64) + func (p *ArucoDetectorParameters) SetCornerRefinementWinSize(cornerRefinementWinSize int) + func (p *ArucoDetectorParameters) SetDetectInvertedMarker(detectInvertedMarker bool) + func (p *ArucoDetectorParameters) SetErrorCorrectionRate(errorCorrectionRate float64) + func (p *ArucoDetectorParameters) SetMarkerBorderBits(markerBorderBits int) + func (p *ArucoDetectorParameters) SetMaxErroneousBitsInBorderRate(maxErroneousBitsInBorderRate float64) + func (p *ArucoDetectorParameters) SetMaxMarkerPerimeterRate(maxMarkerPerimeterRate float64) + func (p *ArucoDetectorParameters) SetMinCornerDistanceRate(minCornerDistanceRate float64) + func (p *ArucoDetectorParameters) SetMinDistanceToBorder(minDistanceToBorder int) + func (p *ArucoDetectorParameters) SetMinMarkerDistanceRate(minMarkerDistanceRate float64) + func (p *ArucoDetectorParameters) SetMinMarkerPerimeterRate(minMarkerPerimeterRate float64) + func (p *ArucoDetectorParameters) SetMinOtsuStdDev(minOtsuStdDev float64) + func (p *ArucoDetectorParameters) SetPerspectiveRemoveIgnoredMarginPerCell(perspectiveRemoveIgnoredMarginPerCell float64) + func (p *ArucoDetectorParameters) SetPerspectiveRemovePixelPerCell(perspectiveRemovePixelPerCell int) + func (p *ArucoDetectorParameters) SetPolygonalApproxAccuracyRate(polygonalApproxAccuracyRate float64) + type ArucoDictionary struct + func GetPredefinedDictionary(dictionaryId ArucoDictionaryCode) ArucoDictionary + type ArucoDictionaryCode int + const ArucoDict4x4_100 + const ArucoDict4x4_1000 + const ArucoDict4x4_250 + const ArucoDict4x4_50 + const ArucoDict5x5_100 + const ArucoDict5x5_1000 + const ArucoDict5x5_250 + const ArucoDict5x5_50 + const ArucoDict6x6_100 + const ArucoDict6x6_1000 + const ArucoDict6x6_250 + const ArucoDict6x6_50 + const ArucoDict7x7_100 + const ArucoDict7x7_1000 + const ArucoDict7x7_250 + const ArucoDict7x7_50 + const ArucoDictAprilTag_16h5 + const ArucoDictAprilTag_25h9 + const ArucoDictAprilTag_36h10 + const ArucoDictAprilTag_36h11 + const ArucoDictArucoOriginal + type AverageHash struct + func (hash AverageHash) Compare(a, b gocv.Mat) float64 + func (hash AverageHash) Compute(input gocv.Mat, output *gocv.Mat) + type BackgroundSubtractorCNT struct + func NewBackgroundSubtractorCNT() BackgroundSubtractorCNT + func (b *BackgroundSubtractorCNT) Apply(src gocv.Mat, dst *gocv.Mat) + func (b *BackgroundSubtractorCNT) Close() error + type BinarizationMethod int + const BinarizationNICK + const BinarizationNiblack + const BinarizationSauvola + const BinarizationWolf + type BlockMeanHash struct + Mode BlockMeanHashMode + func (hash BlockMeanHash) Compare(a, b gocv.Mat) float64 + func (hash BlockMeanHash) Compute(input gocv.Mat, output *gocv.Mat) + type BlockMeanHashMode int + const BlockMeanHashMode0 + const BlockMeanHashMode1 + const BlockMeanHashModeDefault + func (c BlockMeanHashMode) String() string + type Bm3dSteps int + const Bm3dAlgoSte1 + const Bm3dAlgoSte2 + const Bm3dAlgoStepAll + type ColorMomentHash struct + func (hash ColorMomentHash) Compare(a, b gocv.Mat) float64 + func (hash ColorMomentHash) Compute(input gocv.Mat, output *gocv.Mat) + type GrayworldWB struct + func NewGrayworldWB() GrayworldWB + func (b *GrayworldWB) BalanceWhite(src gocv.Mat, dst *gocv.Mat) + func (b *GrayworldWB) Close() error + func (b *GrayworldWB) GetSaturationThreshold() float32 + func (b *GrayworldWB) SetSaturationThreshold(saturationThreshold float32) + type ImgHashBase interface + Compare func(a, b gocv.Mat) float64 + Compute func(inputArr gocv.Mat, outputArr *gocv.Mat) + type InpaintTypes int + const FsrBest + const FsrFast + const ShitMap + type LBPHFaceRecognizer struct + func NewLBPHFaceRecognizer() *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 LearningBasedWB struct + func NewLearningBasedWB() LearningBasedWB + func NewLearningBasedWBWithParams(pathmodel string) 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 struct + Alpha float32 + Scale float32 + func NewMarrHildrethHash() MarrHildrethHash + func (hash MarrHildrethHash) Compare(a, b gocv.Mat) float64 + func (hash MarrHildrethHash) Compute(input gocv.Mat, output *gocv.Mat) + type PHash struct + func (hash PHash) Compare(a, b gocv.Mat) float64 + func (hash PHash) Compute(input gocv.Mat, output *gocv.Mat) + type PredictResponse struct + Confidence float32 + Label int32 + type RadialVarianceHash struct + NumOfAngleLine int + Sigma float64 + func NewRadialVarianceHash() RadialVarianceHash + func (hash RadialVarianceHash) Compare(a, b gocv.Mat) float64 + func (hash RadialVarianceHash) Compute(input gocv.Mat, output *gocv.Mat) + type SURF struct + func NewSURF() SURF + func (d *SURF) Close() error + func (d *SURF) Detect(src gocv.Mat) []gocv.KeyPoint + func (d *SURF) DetectAndCompute(src gocv.Mat, mask gocv.Mat) ([]gocv.KeyPoint, gocv.Mat) + type SimpleWB struct + func NewSimpleWB() 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 int + const ThinningGuoHall + const ThinningZhangSuen + type TonemapDurand struct + func NewTonemapDurand() TonemapDurand + func NewTonemapDurandWithParams(gamma float32, contrast float32, saturation float32, sigma_color float32, ...) 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 struct + func (trk TrackerCSRT) Close() error + func (trk TrackerCSRT) Init(img gocv.Mat, boundingBox image.Rectangle) bool + func (trk TrackerCSRT) Update(img gocv.Mat) (image.Rectangle, bool) + type TrackerKCF struct + func (trk TrackerKCF) Close() error + func (trk TrackerKCF) Init(img gocv.Mat, boundingBox image.Rectangle) bool + func (trk TrackerKCF) Update(img gocv.Mat) (image.Rectangle, bool) + type TransformTypes int + const Bm3dTypeHaar + type WeChatQRCode struct + func NewWeChatQRCode(detectProtoTxt, detectCaffe, superProtoTxt, superCaffe string) *WeChatQRCode + func (wq *WeChatQRCode) DetectAndDecode(img gocv.Mat, point *[]gocv.Mat) []string