Visual Neural Network recognizer that breaks up an image into digital image features (nose, mouth, etc) to improve accuracy in object recognition.
Questions tagged [haar-classifier]
412 questions
3
votes
3 answers
Defining an (initial) set of Haar Like Features
When it comes to cascade classifiers (using haar like features) I always read that methods like AdaBoosting are used to select the 'best' features for detection. However this only works if there is some initial set of features to begin boosting.…
user2457516
3
votes
1 answer
OpenCV Haar Classifier Killed
I am trying to train a Haar Classifier however during Stage 2 it stops with the message Killed
PARAMETERS:
cascadeDirName: classifier
vecFileName: samples.vec
bgFileName: negatives.txt
numPos: 500
numNeg: 964
numStages: 10
precalcValBufSize[Mb] :…

Colin747
- 4,955
- 18
- 70
- 118
3
votes
2 answers
Where can i find the best haar cascades xml for detecting frontal face?
I'm using OpenCV to detect face in the pictures that are captured by cameras. But I realized that there are some faces that are no frontal and the eyes don't focus on the camera.
Where can i find the haar cascades xml file that just using for…

user3883314
- 63
- 1
- 3
- 11
3
votes
1 answer
Weak vs Strong descriptors - machine vision
I have heard of Haar-like features being described as weak descriptors and that the Adaboost method is advantageous over SVM in this case because of this. My question is what is a weak descriptor and strong descriptor and why does a boosting method …

Colin747
- 4,955
- 18
- 70
- 118
3
votes
1 answer
Unabe to create samples using opencv_createsamples.exe
Im trying to train a haar cascade. For that as a test run, I'm taking 5 positive images (which have the image). I use a program called objectmarker.exe to mark the object in the image and store the coordinates as well as the height and width of the…

Sahil Sharma
- 61
- 3
- 14
3
votes
1 answer
Rectangle not around detected eye pair
I am using opencv 2.4.2 and c++. I have a minor problem regarding the rectangle which detects eye pair. The rectangle does not appear around the eye pair but outside the detected face rectangle. I think I may not be getting the parameters…

Steph
- 609
- 3
- 13
- 32
3
votes
1 answer
Sizes of positive and negative images using Haar Cascade
Hello everybody I have a question about haartraining!Well I have 3000 images with 640x480 sizes for positive images and negative images I want to know If I must crop in smaller sizes like 24x24 or when I set -w and -h parametters in createsample…

user3312370
- 45
- 1
- 8
3
votes
1 answer
Haar cascade classifier stuck in infinite loop, alternating between 2 states. Using OpenCV (C++)
None of the questions posted in stackoverflow have mentioned this situation, hence this question is posted. I am training a haar-cascade classifier for face detection. The fae data was generated by me. The parameters are provided below.
NUmber of…

magarwal
- 564
- 4
- 17
2
votes
0 answers
Is it better to use a hogDescriptor or a haar Cascade for any color and human detection work?
My project is-
There is a camera looking at a group of people.
It will detect the people and find out the one wearing a blue cap
It will then tell the camera to move a certain amount so that a laser placed above the camera alines with the person…

shlok bhadani
- 21
- 1
2
votes
1 answer
detect the main object of the image and remove the background
I need to detect the main (front) car in the image to put it in another image with no or plain background.
Below is an example image:
I am developing in Python 3 with OpenCV 4.
I tried HaarCascade, but it does not work well, even with many…

Sergio Pantano
- 111
- 1
- 10
2
votes
2 answers
How to mark features which are present in both arrays in OpenCV?
I'm trying to write a Python 3.7 script to detect faces and features using the OpenCV Haar classifier files which stores images as n-dimensional Numpy arrays. Right now I'm only working with two features:
- The entire face
- The eyes
Both of these…

Arkiralor
- 51
- 1
- 8
2
votes
1 answer
transparent mask on a photo with coordinates of the square
I need, from an image with a square inside and coordinates, to create a transparent mask.
Unfortunately I didn't find anything about the transparency literature in openCV.
For example I have this photo:
With the code below the coordinates for the…

Da Nio
- 302
- 1
- 6
- 16
2
votes
1 answer
how to limit number of faces detected by haar cascades
I am using Haar cascade in an emotion detection system. Every video input I am giving to the model has only one face in it (It is a requirement). When I run Haar cascade model to detect faces, it has some false positives. Since I have only one face…

Savindi
- 123
- 1
- 8
2
votes
1 answer
How to run opencv_traincascade?
I am having some trouble with opencv_traincascade this may trace back to earlier method calls, however I am not 100% sure.
opencv_traincascade -data classifier -vec samples.vec -bg
negatives.txt -numStages 20 -minHitRate - 0.999 -maxFalseAlarmRate…

Paul Hashmi
- 456
- 5
- 18
2
votes
0 answers
opencv_traincascade giving no output to console, "finishing" after about 2 minutes, and not outputting any files
I'm trying to train a Haar Cascade classifier to recognise a specific face. As far as I know, I've done everything else properly (I've got about 800 negative images, 40 positive images turned into 2000 ish samples, merged with mergevec.py,…

Elliott Weaver
- 47
- 7