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
1
vote
1 answer

opencv_createsamples: command not found ubuntu

I am following Creating your own Haar Cascade OpenCV Python Tutorial But when I get to making the samples I get opencv_createsamples: command not found I am using this to create the samples opencv_createsample -img img.jpg -bg bg.txt -info…
1
vote
1 answer

Computing all the Haar-like features using scikit-image

How can we compute all the Haar-like features of all types using scikit-image function haar_like_feature? This is what I have tried (a simple example for computing all the features of type 2x): from skimage.feature import haar_like_feature from…
1
vote
1 answer

On what dataset was haarcascade_frontalface_default.xml trained?

I'm trying to make my own cascade file, but so far with little success, because of the time it takes to train one decent file (2 days) I don't want to spend months failing. In the example files of Opencv, there is the …
will.mendil
  • 752
  • 2
  • 6
  • 21
1
vote
1 answer

Crop and show image that i get from Haar Cascade

I have trained Haar cascade and now i need to work with founded object. How i can crop it from original image and show in new window?(or show multiple window if i found 2 object on image). There is my code (opencv ver 2.4.13): #include…
Maksim
  • 43
  • 4
1
vote
0 answers

Foreground extraction using Haar cascade classifier

I am working on a dataset (training + testing) which contains a different shopping cart items (eg: biscuits, soaps etc.) with different backgrounds. I need to predict the product ID for all testing images (product IDs are unique for each product,…
1
vote
2 answers

Error trying to use blur with Haarcascades

I'm trying to do a project on my own and I thought I could make this work, but that problem happened and well... I don't know what is going on. The objective of this project is to blur eyes on photos or even videos. import matplotlib.pyplot as…
1
vote
1 answer

Creating Haar Cascade from images shows error

I want to create my own haarcascade for license plates. I have found a GUI called Cascade-Trainer-GUI that does this. I'm using Windows 10. You can download gui from here: http://amin-ahmadi.com/cascade-trainer-gui/ I have two folders with positive…
taga
  • 3,537
  • 13
  • 53
  • 119
1
vote
0 answers

Is Haar cascade classifier suitable for bottle label detection?

Can OpenCV's Haar feature-based cascade classifiers be trained to detect labels in the bottle's body? I've been struggling to create my own detector heuristically by using edge detectors such as Canny, Sobel, Laplacian and HED. But I've found that…
Daniel Koch
  • 580
  • 2
  • 11
1
vote
1 answer

How to overlay multiple images onto a base image on certain coordinates?

[This is now solved. I've posted my updated code at the bottom of my question for reference]. I am trying to create a progam in Python to automatically overlay a small image onto a large image for a list of coordinates. I can get it to work for a…
1
vote
0 answers

opencv_createsamples "Assertion Failed" Error, line 466

I have a problem with opencv_createsamples operation. I use the command to prepare files: opencv_createsamples.exe -info D:\Almanac\haar\generating\data\Good.dat -vec samples.vec -num 770 -w 80 -h 114 and receive this error: OpenCV(3.4.6) Error:…
1
vote
0 answers

Calculate the angle from camera to detected object

I am currently using haar cascade to detect an object and this returns the x and y pixel coordinates of the object and also the width and height of the object in pixels. (object size is unknown) I would like to calculate the angle from the camera to…
1
vote
1 answer

Possible reasons for OpenCV HaarCascade insuffiecient samples

Info Im am currently trying to train a HaarCascade classifier. I got to a point where the training process is working and I was able to train a at least "working" classifier. Which will detect a lot of correctly. Now I am trying to improve the…
Robin B
  • 1,066
  • 1
  • 14
  • 32
1
vote
0 answers

OpenCV Error: Bad argument (Can not get new positive sample

I am trying to train my own OpenCV Haar Classifier for cup detection. I have 100 images which contain cup and 400 images which do not contain cup, So, No of Positive Images = 100 No. of Negative Images = 400 At first I created dat for both of them…
Shaon Debnath
  • 95
  • 2
  • 10
1
vote
1 answer

Face detection with IR images

I am using a 160x120 pixel IR camera from FLiR (the Lepton 3.5), and I want to detect face with it so I can get temperature data from a person's face. However, I am having a hard time finding a pre-trained program for face detection in infrared…
1
vote
0 answers

How to submit a Haar Cascade to opencv?

I have trained a haar cascade for detection of dog faces ,it gives really good accuracy.Is there any way I can submit it to opencv,so that my cascade can be included in list of other cascades? I have always used github projects that's why I would…