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
vote
0 answers
Haar Cascade Training for Parts of a Known Object
I am working on a project where I am trying to extract key features of a bicycle from an overall image. I am currently investigating the use of Haar Cascades to train my computer to find certain regions of interest from said bicycles, e.g. the…

wilson88
- 13
- 4
1
vote
1 answer
How to identify an image once in a video sequence?
I do real-time traffic sign recognition using haar cascade. My webcam detects a sign then extracts frameROI, saves an image to a file and then I want to recognize this image using SVM,k-NN classifier etc(It's not done yet). But the problem is that…

yoGGie ツ
- 21
- 3
1
vote
1 answer
OpenCV Cascade Training Fast, Fails: Required leaf false alarm rate achieved. Branch training terminated
I'm generating samples from a single positive image, positive.jpg. There's about 4000 negative filepaths in the bg.txt file. The negative image files are 100x100. The positive.jpg image is 50x50.
opencv_createsamples -img positive.jpg -bg bg.txt…

Marian Montagnino
- 125
- 1
- 4
- 11
1
vote
0 answers
Haar Cascade Training - Positive Images Size
I'm trying to train my own Haar Cascade classifier for apple according to this article. I collected 1000 positive images and 500 negative images from the internet. Each image has different sizes and I cropped the images to create "info.txt" file.…

onurcanak
- 109
- 1
- 9
1
vote
1 answer
Segmentation fault error .. using opencv_createsamples
hope you are fine. I was following this tutorial to create my own cascade: https://pythonprogramming.net/haar-cascade-object-detection-python-opencv-tutorial/ ... when I try to create test samples .. it gives me this error --> Create test samples…

Basma Bashir
- 11
- 2
1
vote
0 answers
Quantifying accuracy of Haar cascade classifier
I am able to create the cascade.xml for human images taken from drone using opencv_traincascade.exe by following steps in https://docs.opencv.org/2.4.13/doc/user_guide/ug_traincascade.html
Now how do I quantify the accuracy of the classifier? I…

Nemi Bhattarai
- 181
- 1
- 4
- 11
1
vote
1 answer
Is there a way get all coordinates from the detected object using haar cascade?
I have used below tutorial to detect object and get coordinates of rectangles that contain object
https://docs.opencv.org/3.3.1/d2/d99/tutorial_js_face_detection.html
But I want to get all coordinates of object (not vector of rectangular…

my-lord
- 2,453
- 3
- 12
- 26
1
vote
1 answer
How to detect only the left eye in a video with opencv?
I want to detect only the left eye in a video streaming, but I can't. When I run this code, it detects two eyes (right and left) and sometimes it also detects the mouth or the nose like it is an eye.
Follow the code below:
import cv2
import numpy…

TigerC
- 161
- 6
1
vote
1 answer
OpenCV 3.4 / c++ CascadeClassifier use old xml file
I'v got OpenCV 3.4 and I'm using c++ for developement on a Linux computer.
I'm doing some face recognition stuff and wanted to use Haar-Cascadeclassifiers. I found pretrained mouth and nose Cascadeclassifier, but they are in the "old" .xml format…

Michriko
- 337
- 1
- 11
1
vote
2 answers
Creating training set from multiple images in Haar Cascade
I am currently working on detecting multiple fruits in a given image. For example, the given image can have fruits like bananas (like yellow, red and green), mangoes, oranges,etc. I was able to create training set with only one image at a time using…

RAMASWAMY M
- 49
- 1
- 6
1
vote
1 answer
Ideas to improve Haar training results
Please help to get more knowledge on the my first-time haar training results.
So I want to train Haar classifier to recognize simple pen, following Dileep Kumar’s article.
Using my cellphone I made 14 pen pictures. These pictures size is big about:…

haykp
- 435
- 12
- 29
1
vote
0 answers
Is it possible to incrementally train a Haar-cascade with new training data?
I have a cascading classifier in opencv that was trained with Haar features on about 400 positive samples and 3019 negative ones.
But this took quite some time to train, several hours.
Since then I've gotten fairly good results, and have about 480…

Maxis
- 384
- 2
- 13
1
vote
1 answer
Explanation of haarcascade xml files in opencv
I'm working on a project for which I require high accuracy for face detection. For detection I'm using opencv with python.
I'm still not able to achieve my target so I was thinking of manipulating the fields/data in the xml files -…

diviquery
- 569
- 5
- 19
1
vote
0 answers
I am trying to train a classifier using haar cascades.The training stops at the first stage.What might be the issue?
create samples.bat
C:\opencv\opencv\build\x64\vc12\bin\opencv_createsamples.exe -info POSITIVES.txt -vec samples1.vec -num 413 -w 50 -h 80 PAUSE
train.bat
C:\opencv\opencv\build\x64\vc12\bin\opencv_traincascade.exe -data classifier -vec…

Rock
- 27
- 1
- 8
1
vote
1 answer
Classify the hair and face in android
I want to Classify the hair and face in android so that I can apply some cosmetic effects on the face, without affecting the hair.
However, everyone has different hair style and some of their hair color are close to their face color. Nowadays, most…

ng2b30
- 351
- 6
- 18