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
45
votes
2 answers
OpenCV detectMultiScale() minNeighbors parameter
I'm currently using Haar classifiers, to detect objects.
On my way, I didn't understand what is the minNeighbors parameter, what is
it representing?
Actually I don't understand what are the neighbors of the detection
candidate rectangle. Please can…

blakeO
- 489
- 1
- 5
- 6
14
votes
1 answer
Java and haarcascade face and mouth detection - mouth as the nose
Today I begin to test the project which detects a smile in Java and OpenCv. To recognition face and mouth project used haarcascade_frontalface_alt and haarcascade_mcs_mouth But i don't understand why in some reasons project detect nose as a mouth.…

Adamo
- 586
- 1
- 9
- 28
14
votes
1 answer
OpenCV Haar Classifier result table explanation
I am trying to create a Haar classifier to recognise objects however I can't seem to figure out what the results table that is produced at each stage stands for.
E.g. 1
===== TRAINING 1-stage =====

Colin747
- 4,955
- 18
- 70
- 118
12
votes
2 answers
Getting the confidence level of detectMultiscale in OpenCV with Python?
I'm using a trained opencv cascade classifier to detect hands in video frames, and would like to lower my false positive rate.
Reading up on the net, I saw you can do so by accessing the
rejectLevels and levelWeights information returned by the…

RonenKi
- 370
- 4
- 11
10
votes
3 answers
How to use openCV and HAAR Cascades to blur faces?
I would like to know is there is a way to blur the faces that have been automatically identify by the haarcascade face classifier.
using the code below, I'm able to detect the faces, crop the image around this face or draw a rectangle on it.
image =…

Arnaud Geotribu
- 919
- 4
- 11
- 22
8
votes
1 answer
Not able to find faces(face-detection) in django (using python-opencv) project
This block of code (in views.py) is triggered by a URL.No problem in importing cv2.(Same thing tried with virtualenvwrapper shows same result (after adding all required libraries) Camera initializes and ....
def caminit(request):
cam.open(0)
…

Mohit Kumar
- 500
- 6
- 24
8
votes
1 answer
CascadeClassifier in OpenCV generates error
I am trying to develop a simple application to detect faces as well as eyes in a given image:
from cv2 import *
face_cascade = CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = CascadeClassifier('haarcascade_eye.xml')
img =…

Namit Juneja
- 498
- 5
- 13
7
votes
1 answer
haar cascade positive example image sizing
Im taking my first steps in making a haar cascade for custom object recognition. Ive spent time getting a fair bit of data and wrote some preprocessing scripts to convert videos to frames. My next step is to crop the object of interes in order to…

YesIndeedy
- 161
- 1
- 11
7
votes
1 answer
OpenCV for Android: failed to load cascade classifier error
This is the first time I use openCV library. I want to use it to detect the eyes. I have used the FdActivity code available in this tutorial:
http://romanhosek.cz/android-eye-detection-updated-for-opencv-2-4-6/
The tutorial uses OpenCV 2.4.6, but I…

Dania
- 1,648
- 4
- 31
- 57
7
votes
1 answer
Generating good training data for haar cascades
I am trying to build haar cascades for doing OCR of a specific font; one classifier per character.
I can generate tons of training data just by drawing the font onto images. So, the plan is to generate positive training data for each character, and…

Dave
- 1,204
- 2
- 14
- 25
7
votes
5 answers
Haar Training: error (-215)_img.row * _img.cols == vecSize in function
I am trying to train a Haar Cascade to detect hands. I have a vec file of size 1000.
I have 40 positive images and 600 negative images. I have tried both dropping my positive images and negative images. When I run the following command I receive the…

dylan7
- 803
- 1
- 10
- 22
7
votes
1 answer
Recognising objects in images using HAAR cascade and OpenCV
(This came out a bit long, but it's mostly an hardly hard to understand explanation :)
For a project I have I need to recognise objects that, in general form, look like this -
Inside a bigger image that contains different shapes, like this one -…

Dan
- 872
- 10
- 24
6
votes
2 answers
Detecting mouth with openCV
I am trying to detect the mouth in an image with openCV, so I am using the following code:
#include "face_detection.h"
using namespace cv;
// Function detectAndDisplay
void detectAndDisplay(const std::string& file_name, cv::CascadeClassifier&…

minomic
- 645
- 1
- 9
- 22
6
votes
1 answer
Quick way to distinguish similar objects from each by distinct features on one object
I've made a classifier (based on HoG features) that can recognize big vehicles (buses and trucks). But I want to be able to distinguish between buses and trucks, too. This causes problems since both vehicles are big and long.
Here's a an example…

user961627
- 12,379
- 42
- 136
- 210
5
votes
1 answer
Hand detection and tracking methods
So, guys, please help me with detecting/tracking hand for user who are sitting at the computer in front of computer(laptop) frontal camera.
I've tried these methods:
Colour based detection(I've detected the human face by opencv haar cascade face…

timKa
- 167
- 2
- 9