Documentation ¶
Index ¶
- func Crop(img gocv.Mat, rect image.Rectangle) gocv.Mat
- func Fill(iGray gocv.Mat, rect Rect)
- func FindAllX(imgSearch, imgSource image.Image, args ...interface{}) (x, y []int)
- func FindImg(subImg, imgSource image.Image) (float32, float32, image.Point, image.Point)
- func FindImgByte(subImg, imgSource []byte) (float32, float32, image.Point, image.Point)
- func FindImgFile(tempFile, file string, flag ...int) (float32, float32, image.Point, image.Point)
- func FindImgMat(imgSource, temp gocv.Mat) (float32, float32, image.Point, image.Point)
- func FindImgMatC(imgSource, temp gocv.Mat) (float32, float32, image.Point, image.Point)
- func FindImgX(subImg, imgSource image.Image) (int, int)
- func FindMultiAllImg(imgSearch []image.Image, imgSource image.Image, args ...interface{}) [][]Result
- func FindMultiAllImgFile(fileSearh []string, file string, args ...interface{}) [][]Result
- func FindMultiAllTemplate(imgSource gocv.Mat, imgSearch []gocv.Mat, args ...interface{}) (r [][]Result)
- func FindMultiAllTemplateC(imgSource gocv.Mat, imgSearch []gocv.Mat, args ...interface{}) (r [][]Result)
- func FindX(imgSearch, imgSource image.Image, args ...interface{}) (x, y int)
- func FlannbasedMatch(query, train gocv.Mat, k int) [][]gocv.DMatch
- func GetSize(img gocv.Mat) (int, int)
- func IMRead(file string, flag ...int) gocv.Mat
- func IMWrite(name string, img gocv.Mat) bool
- func ImgToMat(img image.Image) (gocv.Mat, error)
- func ImgToMatA(img image.Image) (gocv.Mat, error)
- func ImgWrite(name string, img image.Image) bool
- func MarkPoint(img gocv.Mat, point image.Point, args ...interface{}) gocv.Mat
- func MaskImg(img *gocv.Mat, mark image.Rectangle, args ...interface{})
- func MatToImg(m1 gocv.Mat) (image.Image, error)
- func Rectangle(iGray gocv.Mat, maxLoc image.Point, w, h int)
- func Resize(img gocv.Mat, sz image.Point, w, h float64) gocv.Mat
- func Rotate(img gocv.Mat, args ...interface{}) gocv.Mat
- func Show(img gocv.Mat, args ...interface{})
- type Point
- type Rect
- type Result
- func Find(imgSearch, imgSource image.Image, args ...interface{}) (r Result)
- func FindAll(imgSearch, imgSource image.Image, args ...interface{}) []Result
- func FindAllImg(imgSearch, imgSource image.Image, args ...interface{}) []Result
- func FindAllImgFile(fileSearh, file string, args ...interface{}) []Result
- func FindAllSift(imSource, imSearch gocv.Mat, args ...interface{}) (res []Result)
- func FindAllSiftC(imSource, imSearch gocv.Mat, args ...interface{}) []Result
- func FindAllTemplate(imgSource, imgSearch gocv.Mat, args ...interface{}) []Result
- func FindAllTemplateC(imgSource, imgSearch gocv.Mat, args ...interface{}) []Result
- func FindAllTemplateCS(imgSource, imgSearch gocv.Mat, args ...interface{}) []Result
- type Size
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAllX ¶ added in v0.40.5
FindAllX find all the img search in the img source by find all template and sift and return []x, []y
func FindImgByte ¶
FindImgByte find image in the subImg by []byte
func FindImgFile ¶
FindImgFile find image file in subfile
func FindImgMat ¶
FindImgMat find the image Mat in the temp Mat
func FindImgMatC ¶ added in v0.20.0
FindImgMatC find the image Mat in the temp Mat and close gocv.Mat
func FindMultiAllImg ¶ added in v0.20.0
func FindMultiAllImg(imgSearch []image.Image, imgSource image.Image, args ...interface{}) [][]Result
FindMultiAllImg find the multi search image all template in the source image return [][]Result
func FindMultiAllImgFile ¶ added in v0.31.0
FindMultiAllImgFile find the multi file search image all template in the file source image return [][]Result
func FindMultiAllTemplate ¶ added in v0.20.0
func FindMultiAllTemplate(imgSource gocv.Mat, imgSearch []gocv.Mat, args ...interface{}) (r [][]Result)
FindMultiAllTemplate find the multi imgSearch all template in the imgSource return [][]Result
func FindMultiAllTemplateC ¶ added in v0.20.0
func FindMultiAllTemplateC(imgSource gocv.Mat, imgSearch []gocv.Mat, args ...interface{}) (r [][]Result)
FindMultiAllTemplate find the multi imgSearch all template in the imgSource return [][]Result and close gocv.Mat
func FindX ¶ added in v0.40.0
FindX find all the img search in the img source by find all template and sift and return x, y
func FlannbasedMatch ¶ added in v0.30.0
FlannbasedMatch new flann based match
Types ¶
type Result ¶ added in v0.20.0
Result find template result structure
func Find ¶ added in v0.40.0
Find find all the img search in the img source by find all template and sift and return Result
func FindAll ¶ added in v0.40.0
FindAll find all the img search in the img source by find all template and sift and return []Result
func FindAllImg ¶ added in v0.20.0
FindAllImg find the search image all template in the source image return []Result
func FindAllImgFile ¶ added in v0.20.0
FindAllImgFlie find the search image all template in the source image file return []Result
func FindAllSift ¶ added in v0.40.0
FindAllSift find the imSearch all sift in imSource return result
func FindAllSiftC ¶ added in v0.40.0
FindAllSiftC find the imgSearch all sift in the imgSource return []Result and close gocv.Mat
func FindAllTemplate ¶ added in v0.20.0
FindAllTemplate find the imgSearch all template in the imgSource return []Result
func FindAllTemplateC ¶ added in v0.20.0
FindAllTemplateC find the imgSearch all template in the imgSource return []Result and close gocv.Mat
func FindAllTemplateCS ¶ added in v0.31.0
FindAllTemplateCS find the imgSearch all template in the imgSource return []Result and close gocv.Mat