From 1f3cd7b77cb7b886edc3deb74e275ca2fc282748 Mon Sep 17 00:00:00 2001 From: Joe Kim Date: Sun, 20 Jan 2019 13:51:00 -0500 Subject: [PATCH] minor updates to opencv README --- platforms/opencv/README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/platforms/opencv/README.md b/platforms/opencv/README.md index fed49a9e..14011f9b 100644 --- a/platforms/opencv/README.md +++ b/platforms/opencv/README.md @@ -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