This project is to test OpenCV and do a simple face detection using haarcascade_frontalface classifier.
Install
git clone https://github.com/greenpdx/opencv-vue.git
cd opencv-vue
npm install
npm run serve
- Tested with opencv.js version 4.0.0
Test loading opencv and haarcascadeclassifier data file
License: GNU Lesser General Public License v3.0
OpenCV uses wasm as it library. The wasm needs time to setup and Vue only looks at the JS being loaded. When I try to use opencv during created() I get this error.
I have opened a "get help" on the Vue forum.
https://forum.vuejs.org/t/import-huge-wasm-file-opencv-js-getbuildinformation-is-not-a-function-but-later-it-works/58323
info TypeError: opencv_js__WEBPACK_IMPORTED_MODULE_5__.getBuildInformation is not a function
at VueComponent.created (Main.vue?2a52:27)
at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)
at callHook (vue.runtime.esm.js?2b0e:4194)
at VueComponent.Vue._init (vue.runtime.esm.js?2b0e:4973)
at new VueComponent (vue.runtime.esm.js?2b0e:5119)
at createComponentInstanceForVnode (vue.runtime.esm.js?2b0e:3276)
at init (vue.runtime.esm.js?2b0e:3107)
at createComponent (vue.runtime.esm.js?2b0e:5943)
at createElm (vue.runtime.esm.js?2b0e:5890)
at createChildren (vue.runtime.esm.js?2b0e:6018)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.