You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 18, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,15 @@ If you do not want to set up OpenCV on your own you can simply let this package
113
113
$ npm install --save opencv4nodejs
114
114
```
115
115
116
+
### Auto build flags
117
+
118
+
You can customize the autobuild flags using *OPENCV4NODEJS_AUTOBUILD_FLAGS="<flags>"*.
119
+
Flags must be space-separated.
120
+
121
+
This is an advanced customization and you should have knowledge regarding the OpenCV compilation flags.
122
+
123
+
For example `export OPENCV4NODEJS_AUTOBUILD_FLAGS="-DBUILD_LIST=dnn"` will build only modules required for `dnn` and reduced the size of the opencv package. Flags added by default are listed [here](https://github.com/justadudewhohacks/npm-opencv-build/blob/master/install/setup-opencv.js#L63)
124
+
116
125
## Manual build
117
126
Setting up OpenCV on your own will require you to set an environment variable: *OPENCV4NODEJS_DISABLE_AUTOBUILD=1*.
0 commit comments