Questions tagged [haar-classifier]

Visual Neural Network recognizer that breaks up an image into digital image features (nose, mouth, etc) to improve accuracy in object recognition.

412 questions
2
votes
2 answers

Ideal images for Viola-Jones Haar cascade in OpenCV

I am trying to detect specific objects in images using Haar cascade in OpenCV. Let's say I am interested in detecting stop signs in landscape images. When defining positive image samples for my training set, which would be the best kind of image:…
mindlessgreen
  • 11,059
  • 16
  • 68
  • 113
2
votes
1 answer

Haar/LBP cascades for mouth detection in profile faces

I am looking for openCV trained xml files of Haar or LBP cascades for mouth detection on profile faces. Using the available existing LBP cascades, I am able to detect faces but I want to know the location of the mouth/lips as well. I have googled…
2
votes
1 answer

OpenCV Cascade Performance: valid XML error

I am running opencv 2.4.8 inside a conda environment. I am able to train a car detector using opencv_traincascade -data data -vec cars.vec -bg bg.txt -numPos 500 -numNeg 500 -numStages 2 -w 48 -h 24 However, I can not check the performance using…
jkarimi
  • 1,247
  • 2
  • 15
  • 27
2
votes
1 answer

Where to get negative sample images for Haar training?

I need a collection of sample images to train a Haar-based classifier for face detection. I read that a ratio of 2 negative examples for each positive example is acceptable. I searched around the web and found many databases containing positive…
user5107123
2
votes
1 answer

opencv cascade.xml format

I've just generated using opencv_traincascade.exe (opencv 2.4.11 (vc10)) cascade.xml file. Then when I try to use it in javacv 0.8 (and 1.0 too), I get this error: OpenCV Error: Unspecified error (The node does not represent a user object (unknown…
kosbr
  • 388
  • 2
  • 11
2
votes
0 answers

opencv_createsamples won't create correct *.vec file

I have problem with creating classifier for handwritten number recognition. I am stuck on first step, creating *.vec file with positive samples. I am working with OpenCV library, version 3. I am using opencv_createsamples tool, I have dataset with…
Steva
  • 231
  • 4
  • 16
2
votes
1 answer

haartraining in open cv 2.4.9 and ubuntu 14.04 LTS

I have tried the tutorial from http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html I got error while run this command: g++ `pkg-config --libs --cflags opencv` -I. -o mergevec mergevec.cpp\ cvboost.cpp cvcommon.cpp…
2
votes
1 answer

Can rectangular images be used for opencv haar training

I am sorry it seems a starting question but just wondering can i use rectangular dimensions for training opencv haar cascade. I tried with square samples and the resultant image was detected fine but when i tried with rectangular width and height as…
2
votes
0 answers

ROC curve for different object detection methods in matlab

There are varieties of object recognition methods, which some of them are already developed in Matlab environment. I was wondering if there were a way that I can evaluate them using RoC curve. For instance, vision.CascadeObjectDetector in Matlab…
Sina Faezi
  • 17
  • 4
2
votes
2 answers

Accuracy tuning for Haar-Cascade Classifier

I'm using Haar-Cascade Classifier in order to detect faces. I'm currently facing some problems with the following function: void ImageManager::detectAndDisplay(Mat frame, CascadeClassifier face_cascade){ string window_name = "Capture - Face…
Ema.jar
  • 2,370
  • 1
  • 33
  • 43
2
votes
1 answer

In openCV how to load images from vector file generated by opencv_createsamples in python?

Script opencv_createsamples creates .vec file that holds all images necessary for training cascades. I am wondering if there is a way to load images directly from that file to python script. Thank you.
antifriz
  • 873
  • 2
  • 13
  • 20
2
votes
0 answers

Haar Classifier robustness - train my own or alternative exists?

Having spent a day detecting facing using Haar classifier (for frontal face), here's what I've figured out that it fails to recognize/detect faces where: Head is slightly tilted to left or right, even with frontal shots Thick moustache or beard Non…
bdutta74
  • 2,798
  • 3
  • 31
  • 54
2
votes
1 answer

Best approach to detect people in a STATIC camera images ( not using video stream ) - HOG, Haar, BackgroundSubtract in OpenCV?

So I am planning on implementing human detection static camera images - the camera never moves but the lighting conditions do change. Humans can be upright or could be sitting. Question: What would be better in this case to detect people in such…
Georgi Angelov
  • 4,338
  • 12
  • 67
  • 96
2
votes
1 answer

How to use opencv_haartraining to train a haarcascade

I want to use opencv and haartraining in order to train a new haarcascade with new samples. I have created positives.dat and negative.dat which contains list with positive and negative images. Next step to train haarcascade using…
Jose Ramon
  • 5,572
  • 25
  • 76
  • 152
2
votes
1 answer

Haar.js convert open cv xml to javascript

This project is discontinued , however the project files are still alive , simply i want to use the haar.js project to detect upper body in some media file (video or image ) , the current cascades in project folder doesn't contain upper body…
ProllyGeek
  • 15,517
  • 9
  • 53
  • 72