Merge branch 'master' of github.com:peterbraden/node-opencv

This commit is contained in:
Peter Braden 2019-03-20 09:57:44 +00:00
commit ef9a3f0afd
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ You'll need OpenCV 2.3.1 or newer installed before installing node-opencv.
## Specific for macOS
Install OpenCV using brew
```bash
brew install pkg-config
brew install opencv@2
brew link --force opencv@2
```
@ -135,7 +136,7 @@ var mat = new cv.Matrix.Eye(4,4); // Create identity matrix
mat.get(0,0) // 1
mat.row(0) // [1,0,0,0]
mat.col(4) // [0,0,0,1]
mat.col(3) // [0,0,0,1]
```
##### Save

View File

@ -22,7 +22,7 @@
#include <node_buffer.h>
#include <opencv2/opencv.hpp>
#if ((CV_MAJOR_VERSION <= 2) && (CV_MINOR_VERSION <= 4) && (CV_MINOR_VERSION < 10))
#if ((CV_MAJOR_VERSION <= 2) && (CV_MINOR_VERSION <= 4))
#include <opencv/highgui.h>
#else
#include <opencv2/imgcodecs/imgcodecs_c.h>