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

How to crop and save image obtained by inference_detector() using CascadeTabNet (openCV)?

My goal is to detect tables in images and transform such tables into CSV files. I am using CascadeTabNet to detect the location of tables. Their example works great…
Miranda
  • 148
  • 13
0
votes
0 answers

OpenCV Createsamples - Error: Assertion failed ROI error

I am trying to run the following command in my VB Code terminal C:\Ankit\VirEnv\opencv\build\x64\vc14\bin\opencv_createsamples.exe -info C:\Ankit\VirEnv\pos.txt -w 20 -h 20 -num 1000 -vec pos.vec my pos.txt file looks like this My output Info…
0
votes
0 answers

OpenCV Image Classification - Small Dots On Map

I am attempting to create a model that can recognize green circles or green rectangular arrows as shown in the "image". I figured I would need to make my own classifier and I am using Cascade Trainer to accomplish this. (See repo for the…
Pie
  • 856
  • 4
  • 12
  • 33
0
votes
0 answers

HaarCascade.detectMultiStage() always returning an empty tuple

I'm trying to do mask detection on images and I'm trying to create bounding boxes around the faces. To do that I'm using the default haarcascade xml file, but no matter what I change the classifier never detects a face. Something I read earlier said…
0
votes
0 answers

OpenCV detecting hundreds of cars in footage with one car

I've written a very simple script for detecting cars when given footage: cap = cv.VideoCapture(1) car_cascade = cv.CascadeClassifier('assets/cars.xml') while True: ret, frame = cap.read() gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY) …
Jet.B.Pope
  • 642
  • 1
  • 5
  • 25
0
votes
0 answers

Self-training a HAAR classifier results in disappointingly low accuracy

I'm trying to train a HAAR classifier with OpenCV 2.4 to detect the head of squash rackets. Unfortunately the results in terms of accuracy are fairly bad and I'd like to understand what part of my process is flawed. At this point I'm not worried…
0
votes
2 answers

Is there a way to use OCR to extract specific data from a CAD technical drawing?

I'm trying to use OCR to extract only the base dimensions of a CAD model, but there are other associative dimensions that I don't need (like angles, length from baseline to hole, etc). Here is an example of a technical drawing. (The numbers in red…
0
votes
0 answers

I am getting error in open cv in haarcascade_frontalface_default.xml while finding file

import numpy as np import cv2 from matplotlib import pyplot as plt %matplotlib inline img=cv2.imread('./test_images/test1.jpg') gray=cv2.cvtColor(img,…
0
votes
1 answer

face recognition does not detect any with OpenCV

I am beginner at using OpenCv2, I am trying to detect faces with the following function: def faceDetection(test_img): gray_img=cv2.cvtColor(test_img,cv2.COLOR_BGR2GRAY)#convert color image to grayscale …
Mee
  • 1,413
  • 5
  • 24
  • 40
0
votes
0 answers

haarcascade Face detection using Opencv

I'm using haarcascade_fontalface_default.xml file to face detection. This is my code import cv2 #load some free trained data on face fontals from…
0
votes
1 answer

OpenCV Face Recognition grayscale conversion error while training my classifier

import numpy as np import cv2 from skimage.io import imread_collection dataset = r'C:\Users\JasonPC\Documents\CodeVault\Python\FaceRecognition\dataset\*.jpg' # path for images List = imread_collection(dataset) faces_list = np.array(List) def…
0
votes
0 answers

Cascade Classifier not working appropriatly (or rather at all)

I am trying to build an Indian Currency Note Detector with the help of Cascade Classifier. I trained it on 200 positive images and 1000 negative images with 20 stages but it got terminated early because false alarm rate was achieved. I know that it…
0
votes
0 answers

Cascade Classifier invariant to different colored objects?

So recently I have been trying to detect objects by training my own Cascade Classifier. Specifically, I wish to be able to detect drones in the sky. However, my dataset only includes drones of specific colors and I want it to detect drones of all…
0
votes
0 answers

OpenCV Face Recognition - Distance from Camera Affects Performance

I am using Python 3.7 and ran a simple face recognition program with OpenCV and Haar cascades. I noticed the recognition is much better when I am farther from the camera (one arm length) than when my face takes up most of the screen (6 inches away…
JAM
  • 740
  • 3
  • 15
  • 33
0
votes
0 answers

Detect faces, crop, and save them in different file

I have image data (for 40 people) and I am trying to detect face in each image, crop it and save it in another file. I am using MATLAB for this but it doesn't work. ERROR : Unable to open file "C:\Users\mstfy\Desktop\Matlab\alex\newdata\cropped\"…