Comments (9)
So how about "Can not get new positive sample. The most possible reason is insufficient count of samples in given vec-file."? Do you have enough samples?
from opencv-haar-classifier-training.
I have
positive image : 500 sample
negative image : 500 sample
(size of file: w 200 h 100, file type: png)
and i create sample with this command :
perl bin/createsamples.pl positives.txt negatives.txt samples 500 "opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 200 -h 100"
after i use this command for training:
opencv_traincascade -data classifier -vec samples.vec -bg negatives.txt -numStages 15 -minHitRate 0.995 -maxFalseAlarmRate 0.5 -numPos 500 -numNeg 500 -w 200 -h 100 -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024 -featureType LBP
what wrong parameter that i used it?
Please advice. Thank you.
from opencv-haar-classifier-training.
I can't spot something that's obviously wrong. Are you using OpenCV 2.4.9?
from opencv-haar-classifier-training.
I try again but it's work no error. What happen? That's true?(see in picture)
from opencv-haar-classifier-training.
No idea :)
On Mon, 14 Nov 2016 at 11:23, ktkathi [email protected] wrote:
I try again but it's work no error. What happen? That's true?(see in
picture)
[image: capture]
https://cloud.githubusercontent.com/assets/3676454/20261092/fb0a3f9e-aa8e-11e6-82b8-8c9a5ef384b6.PNG—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABIV5RxXDllUVfxFK9DcZQegof31o-Ydks5q-DaogaJpZM4KxHI3
.
from opencv-haar-classifier-training.
Hello Mr.Nugget
I'm Finish trained 15 stage and then i follow your description to generate xml file. After i run this command :
./facedetect --cascade="~/finished_classifier.xml"
the result is
is right? where finished_classifier.xml?
and i see in path opencv-haar-classifier-training-master/classifier , i found cascade.xml , params.xml and all stage.xml file. Is this true result?
What file that i use to my android application?
please advice me, Thank you so much.
from opencv-haar-classifier-training.
Use the path to casecade.xml
instead of the ~/finished_classifier.xml
, which is just a placeholder.
from opencv-haar-classifier-training.
Thanks a lot ;-)
from opencv-haar-classifier-training.
Glad it worked!
from opencv-haar-classifier-training.
Related Issues (20)
- hi, i'm getting like this while creating my own harr-cascade classifier, please let me correct if anything wrong, and please tell the reason for why classifier cant be trained? and thanks in advance HOT 3
- Illegal division by zero at bin/createsamples.pl line 45. HOT 3
- OpenCV error : Bad Arguement - Can not get new Positive Sample
- no vec files
- Can not see finished_classifier.xml file HOT 15
- unable to create .vec files with create samples file HOT 1
- how createsamples.pl will works? HOT 1
- Error when create samples HOT 1
- Cannot create sample.vec HOT 14
- opencv_createsamples not creating anything inside the 'samples' folder HOT 1
- not able to create final classifier HOT 1
- File not found - '*.jpg' HOT 1
- Please Help
- std::logic_error
- opencv error assertion failed
- sh: 1: Syntax error: Unterminated quoted string HOT 1
- opencv_traincascade assertion error HOT 2
- vec files can't be created HOT 1
- mergevec.py error
- 'opencv_createsamples' is not recognized as an internal or external command, 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 opencv-haar-classifier-training.