Questions tagged [cascade-classifier]

A particular case of Ensemble learning, which is based on the concatenation of several classifiers, using all information collected from the output from a given classifier as additional information for the next classifier in the cascade.

170 questions
69
votes
2 answers

Recommended values for OpenCV detectMultiScale() parameters

What are the recommended parameters for CascadeClassifier::detectMultiScale() and depending on which factors I should change default parameters? void CascadeClassifier::detectMultiScale( const Mat& image, vector& objects, double…
torayeff
  • 9,296
  • 19
  • 69
  • 103
9
votes
1 answer

OpenCV: Detecting cat with specific color. Trivial?

I have a problem with my cat being bullied by a nabouring cat to the extent that the cat enters our house in the summer and eat our cats food and sleeps in our furniture. My cat is gray and the problem cat is brown. I would like to make an alert…
Dacobi
  • 417
  • 4
  • 14
8
votes
1 answer

CascadeClassifier in OpenCV generates error

I am trying to develop a simple application to detect faces as well as eyes in a given image: from cv2 import * face_cascade = CascadeClassifier('haarcascade_frontalface_default.xml') eye_cascade = CascadeClassifier('haarcascade_eye.xml') img =…
7
votes
0 answers

How to detect using two different cascade classifier

I'm trying to recognize two different objects using two different cascade classifiers. I modified the face recognition samples but I have a problem: when I try to recognize object from object1.xml it prints both rectangles, when I try to recognize…
6
votes
2 answers

Detecting mouth with openCV

I am trying to detect the mouth in an image with openCV, so I am using the following code: #include "face_detection.h" using namespace cv; // Function detectAndDisplay void detectAndDisplay(const std::string& file_name, cv::CascadeClassifier&…
minomic
  • 645
  • 1
  • 9
  • 22
5
votes
2 answers

Where to get background/negative sample images for haar training?

I need a collection of sample images to train a Haar-based classifier for plate detection. I know this question has been asked already, but the source on googlecode is dead. http://tutorial-haartraining.googlecode.com/svn/trunk/data/negatives/ Where…
5
votes
1 answer

What is the meaning of values in stage.xml and cascade.xml for opencv cascade classifier

I have tried to detect something from a tutorial. When training have finished, stage files and cascade file is created. I have knowledge about the algorithm but I don't know meaning of information inside these file. 0 -1…
Gokhan
  • 55
  • 1
  • 6
5
votes
1 answer

Is it possible to zoom and focus using OpenCV on Android?

I am doing some image detection on Android with OpenCV. I noticed that the OpenCV camera is quite blurry if one tries to hold it up to a small object. Is there a way to zoom the camera and/or customize the mode of focus? I'm familiar with…
user3768533
  • 1,317
  • 2
  • 13
  • 21
5
votes
1 answer

All my questions about opencv_traincascade

it's some weeks that I try to create a good cascade classifier but it seems that this process is surrounded by mystery. I have a lot of questions: 1) Why opencv give us so little information? 2) It needs more positive images or negative images? 3)…
4
votes
1 answer

What is the minimum size object I can detect using OpenCV train_cascade?

I'm in the process of creating a classifier for an electrical outlet (specifically the three open holes that occur twice on standard outlet panels, not the entire panel itself). My question is, what are the ideal traits of positive images and what…
JohnAllen
  • 7,317
  • 9
  • 41
  • 65
4
votes
1 answer

OpenCV: Good Training Output but Cascade Classifier is Poor

Very new to OpenCV, and trying my hand at training a haar classifier that can detect images of dogs from side-on. I have used this tutorial as a guide. The author suggests that a relatively effective classifier can be trained using a surprisingly…
rustyDog
  • 146
  • 2
  • 9
4
votes
2 answers

Infinite loop: Haar, LBP, HOG traincascade of opencv stuck

I am trying to build a classifier to detect faces in Thermal images. So I tried training using Haar, LBP and HOG classifiers. I am working with OpenCV 2.4.8 on windows. opencv_traincascade.exe -data haarcascades -vec pos.vec -bg neg.txt -numPos…
3
votes
1 answer

Why does my face detector have so many false positives and false negatives?

I've been trying to train my own Haar cascade classifier using opencv, but 15 or 20 attempts have all produced too many false positives and false negatives. I've tried multiple things, but none of them have worked. What am I doing wrong? Here, is a…
3
votes
3 answers

cv2.cuda_CascadeClassifier in python

I am attempting to use the Haarclassifier from opencv cuda, for this I found the object cv.cuda_CascadeClassifier. However, assigning cv.cuda_CascadeClassifier() to a variable spit the following error: this object has no ''load'' attribute. I…
yuri
  • 99
  • 8
3
votes
0 answers

Prepare a new Improved Cascade for face detection Opencv

I am trying to create a new cascade file for face detection, I have 30000 faces database in gray-scale. Below are commands i am using for creating New Cascade for Opencv, I want to know which parameter i have to change to improve my detection. I had…
chex
  • 249
  • 1
  • 12
1
2 3
11 12