Skip to content

Commit

Permalink
Merge pull request hybridgroup#652 from NikolaeVarius/README
Browse files Browse the repository at this point in the history
minor updates to opencv README
  • Loading branch information
trevrosen authored Jan 29, 2019
2 parents 2255be2 + 1f3cd7b commit e4920d6
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 e4920d6

Please sign in to comment.