minor updates to opencv README

This commit is contained in:
Joe Kim 2019-01-20 13:51:00 -05:00 committed by Ron Evans
parent c3f4b1f6f8
commit aaacd5c506
1 changed files with 3 additions and 9 deletions

View File

@ -6,7 +6,9 @@ For more info about OpenCV click [here](http://opencv.org/)
## How to Install
This package requires OpenCV version 3.4 be installed on your system, along with GoCV, which is the Go programming language wrapper used by Gobot. The best way is to follow the installation instructions on the GoCV website at [https://gocv.io](https://gocv.io).
This package requires OpenCV 3.4+ be installed on your system, along with GoCV, which is the Go programming language wrapper used by Gobot. The best way is to follow the installation instructions on the GoCV website at [https://gocv.io](https://gocv.io).
The instructions should automatically install OpenCV 4+
### macOS
@ -35,14 +37,6 @@ go get -d -u gobot.io/x/gobot/...
## How to Use
When you run code that uses OpenCV, you must setup some environment variables first. The best way to do this, is to first run the `env.sh` script that comes with GoCV, like this:
```
source $GOPATH/src/gocv.io/x/gocv/env.sh
```
Once you have run this script you can use `go run` or `go build` on your Gobot code that uses OpenCV as you normally would.
Here is an example using the camera:
```go