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

How to make haar cascade classifier for hand detection

A Classifier which detects hand in images... I am doing skin based detection for detecting hand ... Blockquote "but i need that the hand would be detected without skin based color"
0
votes
1 answer

Python OpenCV error with CascadeClassifier

import cv2 import imageio face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml') def detect(frame): gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) faces =…
0
votes
2 answers

OpenCV Haar Cascade Creation

I want to try create my own .xml file for my graduation project with this reference. But I have a problem which stage 6 doesn't work.It gives error such as: Traceback (most recent call last): File "./tools/mergevec.py", line 170, in
0
votes
0 answers

opencv cascadeclassifier not loading .xml file

I've been trying to load the .xml file on cascadeclassifier but it wont work. Solutions on internet include using \ or / in file path but that does not work for me either #creating a cascade classifier object fc =…
user12242501
0
votes
1 answer

Creating your own cascade(.xml) file

I have started to study object detection with Python-OpenCV. I want to create my own cascade files. Is there any software/technology that will do it instead of me? For example, I can just give the positive and the negative images and then it gives…
0
votes
1 answer

I need to turn the texts into vectors then feed the vectors into a classifier

I have a csv file named movie_reviews.csv and the data inside looks like this: 1 Pixar classic is one of the best kids' movies of all time. 1 Apesar de representar um imenso avanço tecnológico, a força 1 It doesn't enhance the experience,…
0
votes
1 answer

opencv_createsamples.exe location for conda install

I am trying to create a cascade classifier for my program.The docs mention using a script in order to help generate positive images, but I don't know where to get this script. I am wondering if the opencv_createsamples application is available for…
Josh Sharkey
  • 1,008
  • 9
  • 34
0
votes
0 answers

What is the difference between Stump-based and Tree-based frontal face detector?

I have seen few options of haar-cascades for frontal face recognition such as: "haarcascade_frontalface_alt.xml" "haarcascade_frontalface_alt_tree.xml" "haarcascade_frontalface_alt2.xml" "haarcascade_frontalface_default.xml" Basically they all do…
0
votes
4 answers

opencv_createsamples "Assertion Failed" Error

I am trying to create a vec file from my positive image samples. I'm using the latest version of Opencv. The command I am using is this: opencv_createsamples -info Positive.info -num 3750 -w 24 -h 24 -vec Positive.vec All my images are bigger than…
SH7890
  • 545
  • 2
  • 7
  • 20
0
votes
0 answers

Opencv Create Samples .vec file was not created

I'm trying to make a .vec file for using to create my cascade training XML file. While trying to run the code, I see an error and I couldn't find any answer about this. May you help me, please? The error is like that: Unable to open image:…
0
votes
0 answers

Opencv detectMultiScale error

I want to get frames from my camera and detect faces, I used this code: face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml') cap=cv2.VideoCapture(0) while 1: ret,…
user70
  • 597
  • 2
  • 7
  • 24
0
votes
0 answers

Background size for cascade training

And again about cascade training. I have set of images with resolution approximately 1000x1000. Object size is nearest 30x50. What is better for background images: take it as is or crop to smalles like 100x100? PS. I use opencv train_cascade…
Bleach
  • 156
  • 3
  • 15
0
votes
0 answers

OpenCV Detecting Traffic Light green signal

I'm new to OpenCV Object detection using Cascade Classifier and trying to perform an application that detect green signal of a traffic light. Downloaded a Dataset containing positive pictures about STOP,GO and WARNING pictures of traffic light…
Mssm
  • 717
  • 11
  • 29
0
votes
1 answer

error while visualizing the cascade stage features

I have trained a boosted cascade classifier with opencv and i want to visualize the cascade stages features as shown in the tutorial here: https://docs.opencv.org/3.3.0/dc/d88/... The problem is that everytime i run the batch: opencv_visualisation…
0
votes
0 answers

HAAR cascade cannot be trained

Whenever I try to create the HAAR Cascade I get the following error. ===== TRAINING 0-stage =====