Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix install script
  • Loading branch information
peterbraden committed Mar 20, 2019
1 parent 58f248a commit aaece69
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/FaceRecognizer.h
Expand Up @@ -8,6 +8,7 @@ namespace cv {
using cv::face::FaceRecognizer;
}
#else
#warning using opencv2 contrib
#include "opencv2/contrib/contrib.hpp"
#endif

Expand Down
9 changes: 8 additions & 1 deletion utils/find-opencv.js
Expand Up @@ -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
Expand Down

0 comments on commit aaece69

Please sign in to comment.