Coder Social home page Coder Social logo

opencv-vue's Introduction

OpenCV-Vue

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

opencv-vue's People

Contributors

greenpdx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

opencv-vue's Issues

OpenCV loading error

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.