mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
Update OpenCV README.md and CI
This commit is contained in:
parent
1054870213
commit
19502c79ce
@ -5,7 +5,7 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
# using custom image, see .circleci/images/primary/Dockerfile
|
# using custom image, see .circleci/images/primary/Dockerfile
|
||||||
# - image: govgo/robotgoci:1.10.3
|
# - 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
|
working_directory: /gopath/src/github.com/go-vgo/robotgo
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# FROM golang:1.10.1
|
# 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
|
# FROM govgo/go:1.11.1
|
||||||
|
|
||||||
RUN apt update && apt install -y --no-install-recommends \
|
RUN apt update && apt install -y --no-install-recommends \
|
||||||
|
@ -304,6 +304,14 @@ func opencv() {
|
|||||||
robotgo.Move(x, y-rand.Intn(5))
|
robotgo.Move(x, y-rand.Intn(5))
|
||||||
robotgo.MilliSleep(100)
|
robotgo.MilliSleep(100)
|
||||||
robotgo.Click()
|
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)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -301,6 +301,14 @@ func opencv() {
|
|||||||
robotgo.Move(x, y-rand.Intn(5))
|
robotgo.Move(x, y-rand.Intn(5))
|
||||||
robotgo.MilliSleep(100)
|
robotgo.MilliSleep(100)
|
||||||
robotgo.Click()
|
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)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ environment:
|
|||||||
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
|
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
|
||||||
# - COMPILER: MINGW_W64
|
# - COMPILER: MINGW_W64
|
||||||
# ARCHITECTURE: x64
|
# ARCHITECTURE: x64
|
||||||
GOVERSION: 1.17.2
|
GOVERSION: 1.17.3
|
||||||
# GOPATH: c:\gopath
|
# GOPATH: c:\gopath
|
||||||
|
|
||||||
# scripts that run after cloning repository
|
# scripts that run after cloning repository
|
||||||
|
Loading…
Reference in New Issue
Block a user