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
-1
votes
1 answer
Return True if the face is detected at least for 3 seconds
How do I leave the webcam open and do the face detect with haar cascade for only a few seconds?
I have a function and this function returns true if the face detect of a face has been carried out, but it must not do it immediately as soon as it…

bellapetezio
- 111
- 1
- 10
-1
votes
1 answer
!empty() in function 'detectMultiScale'
I run my code in Pycharm Community Edition 2020.1.1 x64 and I add my haar_face.xml and this py file in the same folder. I also tried to google and add some stuffs like cv.data.haarcascade+ or copy the complete path of the xml file but it still shows…

Lucifer
- 11
- 4
-1
votes
2 answers
Haar Cascade: recognise a circle and ellipse
I'm need to recognise if in an image the are shapes that are similar at a circle or an ellipse with different orientation.
Some example:
https://i.stack.imgur.com/WpFwK.png
https://i.stack.imgur.com/1FSbJ.png
I'm working with Haar cascade, I try…
user10911874
-1
votes
1 answer
how to let opencv cascade classifier output a non-square ROI
I am trying to use opencv to train a cascade classifier. The object I am detecting has non-square shape. In training data set, the ROI I drew is non-squared (height > width). However, after training, the classifier outputs always have same width and…

fnhdx
- 321
- 2
- 5
- 14
-1
votes
1 answer
Need Haar Casscades for coins (especially euro ones)
I would need haar cascade classifier to detect coins, in particular euros, if they exists. I have been trying to generate my own for days bur results are always bad. Or maybe, do you know a good tutorial?
Thank you

SagittariusA
- 5,289
- 15
- 73
- 127
-1
votes
2 answers
haar classifier: XML file got from haar cascade
I used typical haar-cascade of OpenCV.
And setup stages as 5 in training process,but in xml & cascade folder only 3 stages were found.
Why I got fewer stages than expected?
Any solutions?

Lei Li
- 21
- 1
- 5
-1
votes
1 answer
How to differentiate 2 classes: digits and "other letters and noise" on an image?
I develop an image recognition algorithm that helps to find characters on dirty pannels from the real world. Actually the image is a car registering plate containing letters, digits and a mud.
The algorithm must classify characters into two classes:…

Andyrey
- 81
- 6
-1
votes
1 answer
Regarding a specific Object Detection in OpenCV using WebCam and comparing it with an input Image
I am new to OpenCV and want to develop a program which takes the camera input and compares it with a known image of an object which would be input to it as a .jpg image and if the input of the Webcam matches with the fed in image upto a certain…

Sam
- 13
- 3
-1
votes
2 answers
Retraining the traincascade classifier opencv?
My training has already been running for more than a week and now I don't want the number of stages I am training it for. I want to change the number of stages from 25 to 17-18. Do I need to retrain the whole classifier from the beginning? Please…

user3626948
- 15
- 1
-1
votes
1 answer
Negative images for haar cascade classifier training for facial expressions
I'm trying to create my own cascade classifiers to detect facial expressions in images using OpenCV. I know that I need to collect both positive and negative images, where the positives contain the object to be detected, and the negatives do not. In…

Pam Nunez
- 37
- 3
-1
votes
1 answer
Object classification with Kinect using cascaded classifiers
My project is to create a software that recognizes certain objects like an apple or a coin etc. I want to use Kinect. My question is: Do I need to have a machine learning algorithm like haar classifier to recognize a object or kinect itself can do…

user2676907
- 21
- 7
-2
votes
1 answer
Trying to train my own Haar Cascade Model need access to opencv commands MacOS
I am trying to create my own Haar Cascade model to detect specific objects using OpenCV in python. I have been seeing the need for terminal commands like opencv_createsamples or opencv_traincascade. What is the best way to install and get these…

user19402781
- 23
- 6
-2
votes
1 answer
why does the haarcascades does not work on opencv
I am trying to detect faces in opencv,but I'm running in some issues:
1-When I put the following syntax:gray = cv2.cvtColor(frames,cv2.COLOR_BGR2GRAY),it shows up in red and does not work.
2-The haarcascade also shows up in red:faces =…

ricvz
- 1
-2
votes
1 answer
How to resize an OpenCV Image in Python?
I am using OpenCV in python and I am trying to train a cascade. As a beginner, I wanted some practice in creating cascades, and my cascade is going to detect a rubber.
Here I have a simple positive image, with dimension 665*851 pixels.
To make it…

Aarony Jamesys
- 222
- 1
- 3
- 14
-2
votes
1 answer
Getting number of detected faces
I wrote a face detection code but my aim is getting the number of faces detected by haar cascades and printing the number of face on each face. I use face.shape for getting shape of face and it gives the number of face and it's coordinates. Printing…

Erdem Uysal
- 11
- 6