This repository was archived by the owner on Oct 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const opencvBuild = require('opencv-build');
33const { resolvePath } = require ( './commons' ) ;
44
55// ensure binaries are added to path on windows
6- if ( ! opencvBuild . isAutoBuildDisabled ( ) && process . platform === 'win32' ) {
6+ if ( opencvBuild . isAutoBuildEnabled ( ) && process . platform === 'win32' ) {
77 // append opencv binary path to node process
88 if ( ! process . env . path . includes ( opencvBuild . opencvBinDir ) ) {
99 process . env . path = `${ process . env . path } ;${ opencvBuild . opencvBinDir } ;`
@@ -24,4 +24,4 @@ Object.keys(haarCascades).forEach(
2424Object . keys ( lbpCascades ) . forEach (
2525 key => cv [ key ] = resolvePath ( path . join ( __dirname , './lbpcascades' ) , lbpCascades [ key ] ) ) ;
2626
27- module . exports = cv ;
27+ module . exports = cv ;
Original file line number Diff line number Diff line change 11const opencvBuild = require ( 'opencv-build' ) ;
22const { getLibDir } = require ( './commons' ) ;
33
4- if ( opencvBuild . isAutoBuildDisabled ( ) ) {
4+ if ( ! opencvBuild . isAutoBuildEnabled ( ) ) {
55 opencvBuild . getLibs ( getLibDir ( ) )
66 . filter ( lib => lib . libPath )
77 . map ( lib => lib . opencvModule )
@@ -11,4 +11,4 @@ if (opencvBuild.isAutoBuildDisabled()) {
1111}
1212
1313// set defines from auto build
14- opencvBuild . opencvModules . forEach ( m => console . log ( `HAVE_${ m . toUpperCase ( ) } ` ) ) ;
14+ opencvBuild . opencvModules . forEach ( m => console . log ( `HAVE_${ m . toUpperCase ( ) } ` ) ) ;
Original file line number Diff line number Diff line change 11const opencvBuild = require ( 'opencv-build' ) ;
22const { resolvePath, defaultDir } = require ( './commons' ) ;
33
4- if ( ! opencvBuild . isAutoBuildEnabled ( ) ) {
4+ if ( opencvBuild . isAutoBuildEnabled ( ) ) {
55 console . log ( resolvePath ( process . env . OPENCV_INCLUDE_DIR ) || `${ defaultDir } /include` ) ;
66 return ;
77}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function linkLibs(libs) {
88 . forEach ( libPath => console . log ( resolvePath ( libPath ) ) ) ;
99}
1010
11- if ( opencvBuild . isAutoBuildDisabled ( ) ) {
11+ if ( ! opencvBuild . isAutoBuildEnabled ( ) ) {
1212 linkLibs ( opencvBuild . getLibs ( getLibDir ( ) ) ) ;
1313 return ;
1414}
You can’t perform that action at this time.
0 commit comments