Questions tagged [haar-classifier]

Visual Neural Network recognizer that breaks up an image into digital image features (nose, mouth, etc) to improve accuracy in object recognition.

394 questions
39
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
  • 439
  • 1
  • 4
  • 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
  • 536
  • 7
  • 24
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,695
  • 15
  • 64
  • 108
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
  • 338
  • 3
  • 11
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
  • 3
  • 20
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…
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,478
  • 2
  • 22
  • 51
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,144
  • 2
  • 12
  • 25
7
votes
4 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
  • 743
  • 1
  • 8
  • 21
7
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 =…
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
  • 852
  • 9
  • 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
  • 607
  • 8
  • 21
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
  • 147
  • 2
  • 8
5
votes
2 answers

Where to get background/negative sample images for haar training?

I need a collection of sample images to train a Haar-based classifier for plate detection. I know this question has been asked already, but the source on googlecode is dead. http://tutorial-haartraining.googlecode.com/svn/trunk/data/negatives/ Where…
5
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
  • 11,059
  • 35
  • 119
  • 202
1
2 3
26 27