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.
Questions tagged [cascade-classifier]
170 questions
1
vote
1 answer
opencv cascade hog detection classifier displaying empty
I am trying to pass a jpeg image to detect faces using a hog classifier however I am getting an error that I don't understand.
Any help would be much-appreciated thanks.
I am using python 3.7 and open cv 4.3.0
import cv2
import matplotlib.pyplot as…

jack gell
- 175
- 1
- 8
1
vote
0 answers
What is the meaning of negative levelweight values in detectmultiscale3?
I trained a cascade classifier for ball detection using opencv4. I want to obtain the confidence of the classifier for detected balls. I understood from tutorial if I use detectmultiscale3, I have access to levelweight which is the confidence of the…

Elnaz Yousefi
- 195
- 1
- 3
- 17
1
vote
0 answers
Cannot detect an object using a custom Haar Cascade Classifier
I'm working on a OpenCV java project that detects wire container rigid from an image. I'm pretty new into customizing Haar Cascade Classifier by using Cascade Trainer GUI tool. I added 50 photos of wire container rigid only in the p folder and 200…

timJIN520
- 299
- 1
- 3
- 15
1
vote
1 answer
in gray = cv2.cvtColor(frames, cv2.COLOR_BGR2GRAY)?
I am trying to make an car detector/classifier with cv2 i have a .xml file i downloaded from github:
https://gist.github.com/199995/37e1e0af2bf8965e8058a9dfa3285bc6 and when ever i run my code i get
Traceback (most recent call last):
File…

Capt.Pyrite
- 851
- 7
- 24
1
vote
1 answer
While extracting face of animated characters I am getting the UnboundLocalError
This is the code
import cv2
import os
import math
import requests
tom_xml = requests.get('https://raw.githubusercontent.com/hako/dissertation/master/haar_cascades/tom.xml')
f = open('/content/tom.xml','w')
f.write(tom_xml.text)
def…

Ebad
- 51
- 6
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…

raspberrystars
- 13
- 4
1
vote
1 answer
Is there any difference if I use cropped objects or full frames for training a cascade classifier?
Can I use cropped objects from full frames as training dataset for a cascade classifier (LBP or HAAR)?
I know that I have to use full frames with annotations when retraining a neural net (Tensorflow, YOLO and so on)
But do I need it for a cascade…

user155
- 775
- 1
- 7
- 25
1
vote
1 answer
How to setting cropping size in CascadeCalssifier with Java
public BufferedImage detectAndDisplay(BufferedImage img, CascadeClassifier faceCascade) {
Mat frameGray = new Mat();
BufferedImage imgout = null;
Mat image = ImagePreProcessing.bufferedImageToMat(img);
// -- Detect faces
…

Winda Agusthia Netto
- 55
- 1
- 2
- 7
1
vote
1 answer
OpenCV Image Depth is Corrupted by JSON
I am working on a project which requires the transfer of OpenCV frames using JSON, where the frames are used in a CascadeClassifier on the receiving end. I have encountered the error in the CascadeClassifier:
Kyles-MBP:facial_detection kyle$ python3…

krc
- 483
- 1
- 3
- 12
1
vote
1 answer
OpenCV Cascade Training Fast, Fails: Required leaf false alarm rate achieved. Branch training terminated
I'm generating samples from a single positive image, positive.jpg. There's about 4000 negative filepaths in the bg.txt file. The negative image files are 100x100. The positive.jpg image is 50x50.
opencv_createsamples -img positive.jpg -bg bg.txt…

Marian Montagnino
- 125
- 1
- 4
- 11
1
vote
0 answers
what kind of images should I use for opencv cascade training?
I'm a perfect newbie with cascade training.
I managed to use the Cascade Training Gui software ( http://amin-ahmadi.com/cascade-trainer-gui/ ), it seems to work okay, except that the XML classifier produced never worked (I currently use processing,…

Jean-noël Lafargue
- 11
- 1
1
vote
2 answers
Creating training set from multiple images in Haar Cascade
I am currently working on detecting multiple fruits in a given image. For example, the given image can have fruits like bananas (like yellow, red and green), mangoes, oranges,etc. I was able to create training set with only one image at a time using…

RAMASWAMY M
- 49
- 1
- 6
1
vote
0 answers
OpenCV Cascade Classifier accuracy on MIT CBCL dataset
I want to find the accuracy of running OpenCV's Cascade Classifier's on MIT CBCL Face database. Specifically, I want to find the accuracy of this and this XML.
When I run the following code, no face is detected on the MIT dataset:
total_faces=0
for…

Dilpreet Kaur
- 465
- 2
- 4
- 12
1
vote
1 answer
Face detection with sunglasses
I'm trying to detect faces with sunglasses for a project I work on. The sunglasses I use are mirror-like.
I trained my own cascade classifier with 438 positive pictures of me wearing the sunglasses and 1145 negative pictures.
The classifier works…
user8283419
1
vote
1 answer
OpenCV Cascade Classifier Training
I refer this tutorial and this file to train my own classifier. But I faced a few of question.
I used objectmarker.exe to generate the info.txt. In info.txt, each record has different width and height but both of them keep ratio in rectangular. So,…

SinLok
- 589
- 1
- 5
- 19