Skip to content

Commit 69f2087

Browse files
change instructions to require opencv4nodejs with electron
1 parent 047df17 commit 69f2087

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,14 @@ $ npm run electron-rebuild
134134

135135
Require it in the application:
136136
``` javascript
137-
const electron = require('electron');
138-
const cv = electron.remote.require('opencv4nodejs');
137+
const cv = require('opencv4nodejs');
139138
```
140139

141140
<a name="usage-with-nwjs"></a>
142141

143142
## Usage with NW.js
144143

145-
Any native modules, including opencv4nodejs, must be recompiled to be used with [NW.js](https://nwjs.io/). Instructions on how to do this are available in the **[Use Native Modules] (http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/)** section of the the NW.js documentation.
144+
Any native modules, including opencv4nodejs, must be recompiled to be used with [NW.js](https://nwjs.io/). Instructions on how to do this are available in the **[Use Native Modules] (http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/)** section of the the NW.js documentation.
146145

147146
Once recompiled, the module can be installed and required as usual:
148147

0 commit comments

Comments
 (0)