Skip to content

Commit

Permalink
Fix require in the code example
Browse files Browse the repository at this point in the history
  • Loading branch information
echamudi authored Jan 19, 2021
1 parent f13efa4 commit fe06df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npm install opencv-wasm
```
Code example:
```js
const { cv, cvTranslateError } = require('./index.js');
const { cv, cvTranslateError } = require('opencv-wasm');

let mat = cv.matFromArray(2, 3, cv.CV_8UC1, [1, 2, 3, 4, 5, 6]);
console.log('cols =', mat.cols, '; rows =', mat.rows);
Expand Down

0 comments on commit fe06df9

Please sign in to comment.