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
2
votes
0 answers
OpenCV ERROR: convert_cascade: error while loading shared libraries: libml.so.2.1: cannot open shared object file: No such file or directory
I'm following http://note.sonots.com/SciSoftware/haartraining.html to train my cascade classifier, it has created some folder in my data folder, I want to create the xml file using convert_cascade executable, but it pops up above error, even though…

PK4Android
- 121
- 1
- 9
2
votes
1 answer
face detection two eyes overlapping
So I made a little script which tracks the face, then search for the two eyes, then for each eye, left and right.
The problem is, even with left and right it overlaps both.
i = Camera().getImage()
face = i.findHaarFeatures("face.xml")
if face !=…

f.rodrigues
- 3,499
- 6
- 26
- 62
2
votes
1 answer
Haarcascade classifier training
I'm trying to create an xml file using samples I took with my camera. This is a test run where I put my camera against my window and let it take a picture every 30 seconds of passing cars for a while. I have now about 200 pictures (just for a small…

Solenoid
- 2,351
- 5
- 29
- 48
2
votes
2 answers
OpenCV Haar classifier - is it an SVM
I'm using an OpenCV Haar classifier in my work but I keep reading conflicting reports on whether the OpenCV Haar classifier is an SVM or not, can anyone clarify if it is using an SVM? Also if it is not using an SVM what advantages does the Haar…

Colin747
- 4,955
- 18
- 70
- 118
2
votes
1 answer
Need explanation of Haar cascade code in xml
I need to understand haar cascade code in xml,
can anyone explain how do we get the value inside treshold, rightval, and left val ?
for example 4.0141958743333817e-003
do you know the formulas to calculate it ?
Thankyou,
Doni Prassetyo

user3467100
- 21
- 3
2
votes
1 answer
how to merge two classifier xml genrated by haartraining in opencv
I have been trying to find a way to merge training files (.XML) generated by the haartraining.exe program. The haartraining program will output an .XML file; my question is… Is it possible to merge two different .XML files into one .XML file with…

piyush.mukati
- 273
- 3
- 9
2
votes
2 answers
Error trying to detect faces in an image with OpenCV JAVA
I have used the code from this tutorial: http://opencvlover.blogspot.co.uk/2012/11/face-detection-in-javacv-using-haar.html
It has been slightly modified to read a different image, and display this image before attempting face detection (line 14).…

dahui
- 2,128
- 2
- 21
- 40
2
votes
1 answer
HaarTraining - MATLAB or OpenCV?
I have to train as many as 20 haar classifiers. What I have is :
Traditional command line method by compiling the cpp files provided
in OpenCV distribution
Cascade Training GUI in MATLAB
In the command line method, ObjectMarker interface is very…

Nageshwar Saini
- 145
- 2
- 8
1
vote
0 answers
How to publish my C# winforms solution with an .xml file included
I have a program (solution) in Visual Studio 2022 and I need to publish it as a setup.exe application. My application is a simple face recognition using the haarcascade_frontalface_alt.xml file. I need to publish my C# soultion with this .xml file…

d0nbell
- 11
- 1
1
vote
3 answers
opencv error conv_winograd_f63.cpp ubuntu 22 python3.10 cv2 although works on 2nd machine
I have a development machine working with ubuntu 22, python 3.10 and cv2; when I try to replicate on another machine then I get runtime error:
from section calling age prediciton from haarclassifier and age_net.caffemodel:
line 118 return…

user2976382
- 33
- 4
1
vote
1 answer
How do I get the ROI of both eyes of a face
I am currently trying to get the ROI of both eyes in a face. However, it is only returning the right eye. How do I get the ROI of both eyes like in a single frame?
for (x,y,w,h) in faces:
cv2.rectangle(img, (x, y), (x + w, y + h),(0,255,0),…

AaronTan21
- 33
- 5
1
vote
1 answer
Face detection return value without face
I' using haar cascade for face detection
faces_haar = face_cascade.detectMultiScale(image, scaleFactor=1.3, minNeighbors=4, minSize=(30, 30), flags=cv2.CASCADE_SCALE_IMAGE)
and i save the face in this variables
(x, y, w, h) = faces_haar[0]
and in…

novaconta
- 21
- 1
1
vote
0 answers
What is the meaning of negative levelweight values in detectmultiscale3?
I trained a cascade classifier for ball detection using opencv4. I want to obtain the confidence of the classifier for detected balls. I understood from tutorial if I use detectmultiscale3, I have access to levelweight which is the confidence of the…

Elnaz Yousefi
- 195
- 1
- 3
- 17
1
vote
0 answers
Cannot detect an object using a custom Haar Cascade Classifier
I'm working on a OpenCV java project that detects wire container rigid from an image. I'm pretty new into customizing Haar Cascade Classifier by using Cascade Trainer GUI tool. I added 50 photos of wire container rigid only in the p folder and 200…

timJIN520
- 299
- 1
- 3
- 15
1
vote
0 answers
Getting Error "Image reader can not be created from -vec generated/vectors/positives.vec and -bg generated/negatives.txt."
I was working on my research and I got this error as the title
Image reader can not be created from -vec generated/vectors/positives.vec and -bg generated/negatives.txt.
when I was trying to train a Haar Cascade for testing.
Here's the full…

Ted Lu
- 35
- 1
- 10