# README
gcv
Install
You should make sure Golang, GCC, and OpenCV installed correctly before starting.
Use
package main
import (
"fmt"
"github.com/go-vgo/robotgo"
"github.com/vcaesar/gcv"
)
func main() {
img := robotgo.CaptureImg()
img1 := robotgo.CaptureImg(18, 4, 20, 20)
rs := gcv.FindAllImg(img1, img)
fmt.Println("find: ", rs[0].TopLeft.Y, rs[0].Rects.TopLeft.X, rs[0].ImgSize.H)
fmt.Println("find: ", rs)
m1, _ := gcv.ImgToMat(img)
m2, _ := gcv.ImgToMat(img1)
rs = gcv.FindAllTemplate(m1, m2, 0.8)
fmt.Println("find: ", rs)
}
# Packages
No description provided by the author
# Functions
Crop crop the cv.Mat by rect with crabcut.
Fill fillpoly the iGray image.
Find find all the img search in the img source by find all template and sift and return Result.
FindAll find all the img search in the img source by find all template and sift and return []Result.
FindAllImg find the search image all template in the source image return []Result.
FindAllImgFlie find the search image all template in the source image file return []Result.
FindAllSift find the imSearch all sift in imSource return result.
FindAllSiftC find the imgSearch all sift in the imgSource return []Result and close gocv.Mat.
FindAllTemplate find the imgSearch all template in the imgSource return []Result.
FindAllTemplateC find the imgSearch all template in the imgSource return []Result and close gocv.Mat.
FindAllTemplateCS find the imgSearch all template in the imgSource return []Result and close gocv.Mat.
FindAllX find all the img search in the img source by find all template and sift and return []x, []y.
FindImg find image in the subImg.
FindImgByte find image in the subImg by []byte.
FindImgFile find image file in subfile.
FindImgMat find the image Mat in the temp Mat.
FindImgMatC find the image Mat in the temp Mat and close gocv.Mat.
FindImgX find image in the subImg return x, y.
FindMultiAllImg find the multi search image all template in the source image return [][]Result.
FindMultiAllImgFile find the multi file search image all template in the file source image return [][]Result.
FindMultiAllTemplate find the multi imgSearch all template in the imgSource return [][]Result.
FindMultiAllTemplate find the multi imgSearch all template in the imgSource return [][]Result and close gocv.Mat.
FindX find all the img search in the img source by find all template and sift and return x, y.
FlannbasedMatch new flann based match.
GetSize get the cv.Mat width, hight.
ImgToMat trans image.Image to gocv.Mat.
ImgToMatA trans image.Image to gocv.Mat.
IMWrite write the image.Image to file.
IMRead read the image file to gocv.Mat.
IMWrite write the gocv.Mat to file.
MarkPoint mark the point draw line to img.
MaskImg rectangle the mark to img.
MatToImg trans gocv.Mat to image.Image.
Rectangle rectangle the iGray image.
Resize resize the image.
Rotate rotate the image to 90, 180, 270 degrees.
Show show the gocv.Mat image in the window.