Comments (14)
Hello to everyone!
Same error appeared when I try to merge vectors. Then I've used python2.7 instead of python and just merged. So try:
python2.7 tools/mergevec.py -v samples -o samples.vec
from opencv-haar-classifier-training.
@arizalzr
#50
same issue raised by me initially go though link its works, but yet to find the in depth concept try your level best.
once go through all issues for further use.
from opencv-haar-classifier-training.
@saideepthik
how you fix it ?
from opencv-haar-classifier-training.
will u give details that how many positives and negative images u gave then then commands u used and all, then i will get to know ur problem correctly,
and also check all folders onces samples folder aslo, if sample folder is having any file already just delete them then do train.
from opencv-haar-classifier-training.
@saideepthik
i use 60 positive image and 600 negative image, like on the tutorial. with all picture ratio 100x100
there is no file on samples folder sir
from opencv-haar-classifier-training.
"i use 60 positive image and 600 negative image, like on the tutorial."
it wont be same for every object detection. it depends on images you selected for training which are more clear objects and background images also will effect, so increase positive images and try
u can take pictures from your cam which you are using now just have code if you want in this below link
https://github.com/saideepthik/learning-python/blob/python/opencv-resize_save.py
still getting problem means check once by resizing the images, i gave 300x300 resolution for every image.
and also check the bin folder path once while training this step
from opencv-haar-classifier-training.
what is the best comparison between positive and negative images
from opencv-haar-classifier-training.
@saideepthik
i already try resize and increase positive images, but still not work,
from opencv-haar-classifier-training.
@arizalzr positive images are the images that contain only the objects you want to detect, while negative images are images that contain anything but the objects.
from opencv-haar-classifier-training.
does anyone solve this problem?
from opencv-haar-classifier-training.
try
find ./positive_images -iname "*.jpg" | sed -r 's/^.{18}/\"/' | awk '{print $0"\""}' > positives.txt
i=0
while IFS= read -r line; do echo opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img ./positive_images/"$line" -bg tmp -vec samples/"$i".vec ; i=$((i+1)); done < positives.txt > do.sh
sh do.sh
from opencv-haar-classifier-training.
use apt install libopencv-dev
from opencv-haar-classifier-training.
#9 (comment) Same issue has popped up repeatedly and it has not been solved yet.
from opencv-haar-classifier-training.
use apt install libopencv-dev
In my case the above code fixes the issue
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
- 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.