diff --git a/README.md b/README.md index f612d2b..c586c64 100755 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/OpenCV.h b/src/OpenCV.h index 6ef42db..01aa6ec 100755 --- a/src/OpenCV.h +++ b/src/OpenCV.h @@ -22,7 +22,7 @@ #include #include -#if ((CV_MAJOR_VERSION <= 2) && (CV_MINOR_VERSION <= 4) && (CV_MINOR_VERSION < 10)) +#if ((CV_MAJOR_VERSION <= 2) && (CV_MINOR_VERSION <= 4)) #include #else #include