Skip to content

Commit

Permalink
minor updates to opencv README
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaeVarius authored and deadprogram committed May 22, 2019
1 parent c3f4b1f commit aaacd5c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions platforms/opencv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aaacd5c

Please sign in to comment.