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.

412 questions
2
votes
0 answers

Create Haar Cascade in OpenCV 3 without using the OpenCV applications

I need to train my own Haar Cascade classifier using OpenCV 3.X writing my own code without using OpenCV application (opencv_createsamples, opencv_haartraining), but I'm not able to find any reference neither in the OpenCV documentation or in some…
Moia
  • 2,216
  • 1
  • 12
  • 34
2
votes
1 answer

what does levelWeights mean in opencv detectMultiScale3?

Here is my implementation of HaarCascade where I trained my own classifier. import cv2 import numpy as np body_classifier = cv2.CascadeClassifier('C:\\Users\\Nemi\\MasteringComputerVision_V1.00\\Haarcascades\\trainedHuman.xml') image =…
2
votes
1 answer

Trigger cv2.imwrite when a face or multiple faces are detected

In Ubuntu 16.04 I am trying to detect a face on a live video and save that image using OpenCV and Python. Specifically, I want to save just one image per face detected until I press 'q'. So for each different face that is detected, another picture…
2
votes
0 answers

How the Viola Jones (Haar Cascade) sliding/scaling detector works during training and during detection?

I have read the original Viola Jones article, the Wikipedia article, the openCV manual and these SO answers: How does the Viola-Jones face detection method work? Defining an (initial) set of Haar Like Features I am trying to implement my own version…
Giora Simchoni
  • 3,487
  • 3
  • 34
  • 72
2
votes
1 answer

Getting haar cascades to work

I'm trying to use opencv to find traffic cones in an image. The code uses a variety of methods to crop regions of interest out of the image and find precise bounding boxes for the cones. Something that works quite well is a segmentation by color,…
lhk
  • 27,458
  • 30
  • 122
  • 201
2
votes
0 answers

Any good Haar Cascades for detecting hands?

I am looking for a haar cascade that can detect hands. I would rather not have to train my own as I am on a regular laptop (I think it would take too long without a powerful computer). Also, I don't know where I would get the images from, and I've…
Matt
  • 2,232
  • 8
  • 35
  • 64
2
votes
3 answers

Detect open or closed eye using openCV in python

I'm trying to detect whether the user's eyes are open or closed in a live video, using haar cascade algorithm in python. Unfortunately it doesn't work well. I understood that "haarcascade_eye.xml" is used to detect open eyes and…
xYaelx
  • 144
  • 1
  • 1
  • 11
2
votes
1 answer

How to run many haarcascade xml files in the same Java program using OpenCV?

I'm new to OpenCV and I want to run a Java program for face detection using OpenCV. Only including one haarcascade xml file doesn't give me expected results. So I need to run two,three haarcascade files in the same program. (specially…
Erandi Ganepola
  • 303
  • 3
  • 12
2
votes
0 answers

How do I test if my opencv_traincascade is still training and not stuck at a stage?

I'm trying to train my cascade with the following parameters: opencv_traincascade -data classifier5 -vec samples.vec -bg negatives.txt -numStages 13 -featureType LBP -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 1000 -numNeg 600 -w 24 -h 24 -mode…
Tienanh Nguyen
  • 211
  • 4
  • 9
2
votes
0 answers

Multiple haar classifier with OpenCV and Python

Me and my project members are trying do develop a small application for traffic sign recognition with OpenCV and python. Our goal is that each traffic sign can be detected by realtime (webcam) or video file with a low percentage of errors for our…
Daniel
  • 552
  • 2
  • 9
  • 29
2
votes
1 answer

openCV : Detect object without displaying the webcam view window

I am using Haar cascade classifiers to detect eyes from the webcam. I don't want to display what the webcam is capturing. This is part of a project for eye movement analysis. I want to know where on screen the user is looking. if I display the…
vss
  • 567
  • 2
  • 7
  • 18
2
votes
1 answer

How to recognize numbers from the images detected by haar classifier

I trained a haar cascade which is able to detect speed limit traffic signs. Now I am wondering how to recognize numbers from the images detected. Here are few examples of detected images: I've got an algorithm which can recognize numbers only in…
2
votes
0 answers

Opencv haar training parameters : Mode & symmentry

I am using Opencv 3.0Before beginning training i wanted to set 'mode' parameter to 'all' below is the command line argument C:\OpenCV\build\x64\vc12\bin\opencv_traincascade.exe -data cascade -numStages 20 -vec samples.vec -bg NegativeSet.txt…
2
votes
2 answers

OpenCV & Python : Face Detection using haarcascades is detecting many boxes as eyes.

I am using Haarcascades for detecting faces and eyes. My problem is, its bounding many boxes as eyes. My syntax is face_cascade = cv2.CascadeClassifier('haarcascades\haarcascade_frontalface_default.xml') eye_cascade =…
2
votes
0 answers

Haar Feature-based Cascade Classifier openCV for tree crown detection

I'd like to build tree crown detection software using OpenCV. Is it a good approach to do it using Haar-feature based Cascade Classifier? The tree crown I'd like to detect is oil palm trees. A sample of some images of the trees is below: Is it…