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
3
votes
0 answers

Professional Headshot Detection with Haar Cascade (or LBP) or Other Methods

Problem I am looking for the best Python object detection method to detect professional headshot images that typically have a solid background. I would expect that professional headshots should be the best case scenario for face recognition, and…
3
votes
1 answer

How to create your own Haar Cascade Classifier for custom object detection?

I want to detect cars, but the available xml file is not quite strong for accurate detection.How can I create a custom xml file(which i can create for any object)? Any help would be appreciated.
Arihant Kamdar
  • 124
  • 1
  • 7
3
votes
1 answer

OpenCV haar classifier training with more than one positive image

I recently got into opencv and have realized that making synthetic samples with one positive image and many negative images aren't super accurate. Having read the documentation and some other blogs and tutorials, I realize that there is a way to use…
3
votes
2 answers

OpenCV(3.4.1) Error: Assertion failed (_img.rows * _img.cols == vecSize)

I tried to run opencv_traincascade in cmd, but it crashes instantly and gives that output. opencv_traincascade -data data -vec pos.vec -bg neg.lst -numPos 31 -numNeg 100 -numStages 10 -w 20 -h 20 PARAMETERS: cascadeDirName: data vecFileName:…
azach
  • 99
  • 1
  • 13
3
votes
1 answer

OpenCV in Android Studio - Haar Cascade - How to check if image is detected

I wrote a program that is used to detect bananas using OpenCV's Haar Cascade method. public class MainActivity extends Activity implements CvCameraViewListener2 { private static final String TAG = "OCVSample::Activity"; private static final Scalar…
3
votes
0 answers

Need help on Face Recognition using OpenCV

I have been working on a Face Recognition system to log attendance using OpenCV version 3.3.1 in Java. I'm using haarcascade_frontalface_alt to detect faces. But I have seen a lot of false positives. To avoid this, I followed the below…
rko
  • 203
  • 3
  • 10
3
votes
1 answer

Viola Jones threshold value Haar features error value

I have read the viola paper from 2004. In 3.1 they explain the threshold calculation. But I am super confused. It reads as For each feature, the examples are sorted based on feature value Question1) Is sorted list a list of haar feature values…
3
votes
2 answers

Image Recognition Techniques for Identifying Logos (Brands)

I started learning Image Recognition a few days back and I would like to do a project in which it need to identify different brand logos in Android. For Ex: If I take a picture of Nike logo in an Android device then it needs to display "Nike". Low…
3
votes
0 answers

Facial detection in comics using Python and OpenCV

I have an OpenCV Python script that detects and crops images containing faces using OpenCV for facial detection. Currently, the script uses 'haarcascade_frontalface_alt.xml'to detect faces but as it is trained on photographs of human faces, it does…
segalgouldn
  • 31
  • 1
  • 3
3
votes
2 answers

OpenCV: detectMultiScale() gives too many points out of the object

I trained my pc with opencv_traincascade all one day long to detect 2€ coins using more than 6000 positive images similar to the following: Now, I have just tried to run a simple OpenCV program to see the results and to check the file cascade.xml.…
SagittariusA
  • 5,289
  • 15
  • 73
  • 127
3
votes
1 answer

Haar_classifier taking long time to detect in object recognition

I am doing object recognition in opencv and python. I have done the training using 51 positive samples and 100 negative samples, and the stages of training is 7. using the command opencv_traincascade -data samples -vec phones.vec -bg bg.txt…
Aquib
  • 320
  • 6
  • 20
3
votes
1 answer

Haar cascade method vs convolution neural network?

I was wondering if in haar cascade method the mask size is constant and to account for the different sizes of faces in an image , if the original image is shrunk and enlarged to find out overlaps . I saw that in convolution neural networks the size…
3
votes
3 answers

What is the best algorithm for face detection using opencv and raspberry camera module

i'm working on face and eye detection (no recognition needed) using opencv , and i've found some algorithms that i can use : Viola–Jones object detection framework : This algorithm is implemented in OpenCV as cvHaarDetectObjects().…
The Beast
  • 1,629
  • 2
  • 29
  • 42
3
votes
0 answers

OpenCV GPU support and TBB

I am going to train my Haar classifier for flowers(which I am highly skeptical about). I have been following the CodingRobin Tut for everything. http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html Now, it has been emphasized…
Manish Kumar Sharma
  • 12,982
  • 9
  • 58
  • 105
3
votes
2 answers

OpenCV: Why does Haar classifier only detect one face and one eye?

I am an absolutely newcomer to OpenCV and Haar classifiers. I have copied the following code and it basically works fine, but it only returns one face and one eye. What about the second eye and another face? const char[] eyesCascadeFilename =…
salocinx
  • 3,715
  • 8
  • 61
  • 110
1 2
3
27 28