Skip to content
Permalink
Browse files

Fix install script

  • Loading branch information...
peterbraden committed Mar 20, 2019
1 parent 58f248a commit aaece6921d7368577511f06c94c99dd4e9653563
Showing with 10 additions and 3 deletions.
  1. +1 −2 README.md
  2. +1 −0 src/FaceRecognizer.h
  3. +8 −1 utils/find-opencv.js
@@ -13,8 +13,7 @@ cool, I'd love to hear about it!

## Install

You'll need OpenCV 2.3.1 or newer installed before installing node-opencv. Note
that OpenCV 3.x is not yet fully supported.
You'll need OpenCV 2.3.1 or newer installed before installing node-opencv.

## Specific for macOS
Install OpenCV using brew
@@ -8,6 +8,7 @@ namespace cv {
using cv::face::FaceRecognizer;
}
#else
#warning using opencv2 contrib
#include "opencv2/contrib/contrib.hpp"
#endif

@@ -2,7 +2,14 @@

var exec = require("child_process").exec;
var fs = require("fs");
var flag = "--exists";

var flags = {
'--cflags' : '--cflags',
'--libs' : '--libs'
}
var flag = flags[process.argv[2]] || '--exists'



// Normally |pkg-config opencv ...| could report either OpenCV 2.x or OpenCV 3.y
// depending on what is installed. To enable both 2.x and 3.y to co-exist on

0 comments on commit aaece69

Please sign in to comment.
You can’t perform that action at this time.