Questions tagged [cascade-classifier]

A particular case of Ensemble learning, which is based on the concatenation of several classifiers, using all information collected from the output from a given classifier as additional information for the next classifier in the cascade.

170 questions
0
votes
0 answers

OpenCV trained cascade minneighbors set to 100

I train the cascade classifier to detect pedestrian traffic lights, I used 5000 positive photos and 1000 negative for training, here is the result xml file I got. The problem is the trained cascade detects many false images. I used the original code…
Danaro
  • 61
  • 1
  • 2
  • 11
0
votes
1 answer

Optimizing cascade by adding specific negative samples

I succeeded to train my first cascade to detect car on the street from behind. Now I want to make it better since it still capture random trees and motorbike unless I adjust the parameter. I tried to add those specific trees and motorbike to the…
Tienanh Nguyen
  • 211
  • 4
  • 9
0
votes
1 answer

For car detection, Shall the negative samples have the same size of positive samples?

I adjusted the size of all positive samples to be of same size, so shall negative samples have the same size of positive ones.
0
votes
0 answers

Car Detection positive samples of different sizes and aspect ratios

I have read that positive sample for car detection should be of the same size or at least same aspect ratio. However, I have a car dataset that after cropping images have different sizes or aspect ratios. So what shall i do? I am using the…
0
votes
1 answer

What is causing opencv_traincascade.exe to crash when taking in negative samples?

My goal is to train a cascade to recognize a certain face of the dice. I have 106 non-generated samples converted into a vec file (named dice1.vec) by opencv_createsamples, with the params -w 32 -h32. Additionally, I have a text file negTxt1.txt…
xes_p
  • 501
  • 4
  • 14
0
votes
0 answers

OpenCV Cascade classifier - Can recognize some different objects?

my goal is detect different type of objects (green/red apples, coffee cup and a glass). I tried to using a cascade classifier to detect a generic apple in the scene and works successfully. There is some method to train my classifier to recognize the…
Akinn
  • 1,896
  • 4
  • 23
  • 36
0
votes
1 answer

DetectMultiScale never returns when calling overload with rejectLevels and levelWeights

I am trying to modify my OpenCV-based code to get confidences along with each detected object from a cascade classifier. When I call the overload of the CascadeClassifier's detectMultiScale method which takes out parameters for rejectLevels and…
Wasabi Fan
  • 1,763
  • 3
  • 22
  • 36
0
votes
1 answer

What are the recommended parameters for opencv_traincascade?

I am using OpenCv 2.4.10. I have recently tried to create my own cascade classifier to detect robotino; I have 240 negative samples and 650 positive samples. But I am getting confused in the values I should give to the opencv_traincascade. numNeg :…
0
votes
1 answer

Can I use a .vec file with one positive image for OpenCV object detection if my object is standardized?

I'm building a classifier to detect an electrical outlet. Specifically the three holes of an outlet, like so: Do I need to do something more than create a .vec file with quite a bit of angle variation to generating positives using OpenCV's…
JohnAllen
  • 7,317
  • 9
  • 41
  • 65
0
votes
0 answers

Opencv java - Detect numbers with cascade classifiers

I have created nine classifiers (numbers 1-9) using the opencv_traincascade utility. Now I want to use them to detect some numbers, the problem is: when I pass an image with a number, more than one classifier detect his number (e.g. numbers 1 and 7…
Max
  • 1
  • 1
0
votes
1 answer

Why opencv does not recognizes cascade xml trained using opencv_traincascade.exe format?

I have trained two cascade.xml train one using opencv_traincascade.exe and the other using opencv_haartraining.exe. When i use the first xml (image)trained with opencv_traincascade.exe it shows error "Unspecified error (The node does not represent …
0
votes
2 answers

Opencv traincascade cannot fill temp stage

So, I have 20 positive samples and 500 negative samples. I created the .vec file using createsample utility.Now, when i try to train the classifier using the traincascade.exe utility, I run into the following error: I have looked into many…
0
votes
1 answer

How can I resize an image where the face should be cropped and scaled to fit the size?

My webcam takes images. But opencv gender classification needs the images to be of the same size of that of the images used to train. So I need my webcam images to be 300x300 where the face in the webcam images would fit the resolution 300x300. I…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
0
votes
1 answer

Cascade Classifier HAAR LBP Advice

I am using OpenCV and python to train HAAR and LBP classifiers to detect white blood cells in video frames. Since the problem is essentially 2D it should be easier than developing other object classifiers and there is great consistency between video…
William Grimes
  • 675
  • 2
  • 11
  • 29
0
votes
1 answer

Troubles on training Haar cascade with LBP

I'm trying to train some branch logos with haar_cascade. What I've done is, I've taken 2500 squared pictures of 500 x 500 to populate the samples for opencv_createsamples. Then I generate them as: opencv_createsamples -info 'logo.info' -vec…