Update OpenCV README.md and CI

This commit is contained in:
vcaesar 2021-11-05 14:07:15 -04:00
parent 1054870213
commit 19502c79ce
5 changed files with 19 additions and 3 deletions

View File

@ -5,7 +5,7 @@ jobs:
docker:
# using custom image, see .circleci/images/primary/Dockerfile
# - image: govgo/robotgoci:1.10.3
- image: golang:1.17.1
- image: golang:1.17.3
working_directory: /gopath/src/github.com/go-vgo/robotgo
steps:
- checkout

View File

@ -1,5 +1,5 @@
# FROM golang:1.10.1
FROM golang:1.7.2-stretch AS build
FROM golang:1.7.3-stretch AS build
# FROM govgo/go:1.11.1
RUN apt update && apt install -y --no-install-recommends \

View File

@ -304,6 +304,14 @@ func opencv() {
robotgo.Move(x, y-rand.Intn(5))
robotgo.MilliSleep(100)
robotgo.Click()
res = gcv.FindAll(img1, img) // use find template and sift
fmt.Println("find all: ", res)
res1 := gcv.Find(img1, img)
fmt.Println("find: ", res1)
x, y = gcv.FindX(img1, img)
fmt.Println(x, y)
}
```

View File

@ -301,6 +301,14 @@ func opencv() {
robotgo.Move(x, y-rand.Intn(5))
robotgo.MilliSleep(100)
robotgo.Click()
res = gcv.FindAll(img1, img) // use find template and sift
fmt.Println("find all: ", res)
res1 := gcv.Find(img1, img)
fmt.Println("find: ", res1)
x, y = gcv.FindX(img1, img)
fmt.Println(x, y)
}
```

View File

@ -34,7 +34,7 @@ environment:
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
# - COMPILER: MINGW_W64
# ARCHITECTURE: x64
GOVERSION: 1.17.2
GOVERSION: 1.17.3
# GOPATH: c:\gopath
# scripts that run after cloning repository