Comments (1)
I had trouble with cascades too. jsfeat.bbf.face_cascade
is undefined in jsfeat version 0.0.8 from npm. From what I read, the HTML5 canvas dependency was removed, so I'm not sure what the problem is.
However, I was able to get it working by copying node_modules/jsfeat/cascades/bbf_face.js
, changing jsfeat.bbf
on the third line (which is the last line) to module.exports
, and then manually injecting it into jsfeat like so:
jsfeat.bbf.face_cascade = require('./bbf_face.js').face_cascade;
After that you can set it up like normal:
jsfeat.bbf.prepare_cascade(jsfeat.bbf.face_cascade);
I didn't try the HAAR detector, but presumably that's what all the other cascade files are for, and I imagine the same workaround would probably work.
from jsfeat.
Related Issues (20)
- An error in the docs HOT 1
- Simpler examples HOT 3
- Dose it support React Native HOT 1
- Can i use jsfeat with react-native? HOT 1
- Uncaught ReferenceError: module is not defined HOT 4
- Support for iOS 11 HOT 3
- Adding more functionalities
- Help needed!!, ORB matching - How train pattern using image from image folder instead of webcam. HOT 3
- background removal from face portrait
- Tracking a soccer ball in video HOT 1
- Demos stopped working HOT 3
- Hi Mate! There is a 404 Problem with Ur online demo. HOT 1
- demo's don't work "WebRTC not available" HOT 2
- How to transform canvas getImageData() to single channel matrix?
- Natural feature tracking/matching (NFT) in videostream
- Any details of yape06, such as paper or blog
- Pull request guidelines HOT 2
- Canny edges coordinates
- jsfeat.point2d_t is not a constructor, jsfeat.js vs jsfeat-min.js
- Is there a Getting Started guide
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsfeat.