README
opencv-js
OpenCV JavaScript version for node.js or browser. The file opencv.js
was downloaded from https://docs.opencv.org/4.5.3/opencv.js
TypeScript is supported (thanks to mirada
).
Examples & Live Demo
Using in react.js project
See live demo here
See example in TestPage.js
How to Use
npm install @techstark/opencv-js
- or
yarn add @techstark/opencv-js
Webpack Configuration (for browser usage)
If you use this package for browsers, you need to set some polyfills. In the file "webpack.config.js", set
module.exports = {
resolve: {
modules: [...],
fallback: {
fs: false,
path: false,
crypto: false
}
}
};