mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Merge branch 'master' of github.com:peterbraden/node-opencv
This commit is contained in:
commit
ef9a3f0afd
@ -17,6 +17,7 @@ You'll need OpenCV 2.3.1 or newer installed before installing node-opencv.
|
|||||||
## Specific for macOS
|
## Specific for macOS
|
||||||
Install OpenCV using brew
|
Install OpenCV using brew
|
||||||
```bash
|
```bash
|
||||||
|
brew install pkg-config
|
||||||
brew install opencv@2
|
brew install opencv@2
|
||||||
brew link --force 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.get(0,0) // 1
|
||||||
|
|
||||||
mat.row(0) // [1,0,0,0]
|
mat.row(0) // [1,0,0,0]
|
||||||
mat.col(4) // [0,0,0,1]
|
mat.col(3) // [0,0,0,1]
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Save
|
##### Save
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
#include <node_buffer.h>
|
#include <node_buffer.h>
|
||||||
#include <opencv2/opencv.hpp>
|
#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>
|
#include <opencv/highgui.h>
|
||||||
#else
|
#else
|
||||||
#include <opencv2/imgcodecs/imgcodecs_c.h>
|
#include <opencv2/imgcodecs/imgcodecs_c.h>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user