Comments (4)
A standard technique is to rotate the image e.g. in 45° steps before applying the detector.
If you only care about the 90° rotations, you could apply these rotations to the classifier instead. That functionality is not implemented in js-objectdetect but could be an interestind addition. The implementation would follow the pattern of the mirrorClassifier method which works pretty similar.
In the end, however, you can't avoid to either always rotate the image in every step and re-run the classification on the rotated images OR rotate the classifier in a preliminary step and re-run the classification with the rotated classifiers.
Edit: If you want to detect the hand as shown in your second picture with the palms facing away from the camera however, you would need to train another classifier. With a single classifier, you can only detect rotations of the object said classifier was trained on if the plane of rotation is facing (perpendicular to) the camera (i.e. the palms are always facing the camera).
from js-objectdetect.
Thank you @mtschirs! I'll try look how the mirrorClassifier works and implement the rotation...
How can I see the images used on the current classifiers?
Thank you for tell me about the classifiers. I'll try to switch to a fist hand and keep using the current classifiers only rotated...
How much complex is feed a new classifier on js-objectdetect? I need to crop the images on the limits what I want to trainee? There's a script to automate these?
from js-objectdetect.
Unfortunately the js-objectdetect library is not very well documented right now. However, there are a lot of sources online about the classifiers used. Keywords would be "Haar Cascade Classifiers". To quickly grasp the concept of how the classifier works, have a look at http://docs.opencv.org/master/d7/d8b/tutorial_py_face_detection.html#gsc.tab=0
If you want to train your own classifier this might provide a good starting point: http://docs.opencv.org/2.4/doc/user_guide/ug_traincascade.html
If you want to know more about the specific classifiers provided with js-objectdetect, look into the classifier license file and follow the references. I am sure you will find papers on most of them detailing the training process.
from js-objectdetect.
Thank you for the resources @mtschirs! I'll
from js-objectdetect.
Related Issues (20)
- Objectdetect not working at all
- Custom classifier not working. HOT 1
- License HOT 1
- objectdetect.mouth.js HOT 1
- neck detection HOT 1
- not working after custom style change HOT 1
- False positives HOT 1
- Face detection with Pre-recorded video stream HOT 1
- Measuring activity using js-objectdetect
- Mouth/smile detector not working? HOT 8
- hand gesture sdk HOT 2
- noise detections > real detections HOT 12
- [Enhancement] Add package.json
- Mismatch between gh-pages & master files
- Create a new classifier HOT 2
- Consider adding library size to performance comparison
- No Documentation of JSDoc found HOT 1
- Tracking slow in FireFox only
- WebRTC not available HOT 1
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 js-objectdetect.