# \#cascadeclassifier

**URL:** https://forum.opencv.org/tag/cascadeclassifier/203.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [Is it possible to convert existing haar cascade files to the old-style for usage with Cuda?](https://forum.opencv.org/t/is-it-possible-to-convert-existing-haar-cascade-files-to-the-old-style-for-usage-with-cuda/19820)

<div class="topic-metadata">

**Author:** [@wire\_forest](https://forum.opencv.org/u/wire_forest)\
**Replies:** 1\
**Last updated:** [January 26, 2025, 1:53am UTC](https://forum.opencv.org/t/is-it-possible-to-convert-existing-haar-cascade-files-to-the-old-style-for-usage-with-cuda/19820 "2025-01-26T01:53:14Z")

</div>

Hello, Is it possible to convert from a “new-style” (generated by opencv\_traincascade) haar .xml file to an “old-style” (generated by opencv\_haartraining) file without having access to the training images? For my speci…

---

## [Opencv 4.5.0 cascadeClassifier object empty](https://forum.opencv.org/t/opencv-4-5-0-cascadeclassifier-object-empty/14626)

<div class="topic-metadata">

**Author:** [@cr779](https://forum.opencv.org/u/cr779)\
**Replies:** 5\
**Last updated:** [September 23, 2023, 9:10am UTC](https://forum.opencv.org/t/opencv-4-5-0-cascadeclassifier-object-empty/14626 "2023-09-23T09:10:35Z")

</div>

Hello Using String face\_cascade\_name = samples::findFile(“data/haarcascades/haarcascade\_frontalface\_default.xml”); cv::CascadeClassifier classifier; assert(classifier.load(face\_cascade\_name)); After the the call to …

---

## [cascadeClassifier.detectMultiScale get error: Insufficient memory in OutOfMemoryError](https://forum.opencv.org/t/cascadeclassifier-detectmultiscale-get-error-insufficient-memory-in-outofmemoryerror/11293)

<div class="topic-metadata">

**Author:** [@Tamada](https://forum.opencv.org/u/Tamada)\
**Replies:** 2\
**Last updated:** [December 12, 2022, 10:20pm UTC](https://forum.opencv.org/t/cascadeclassifier-detectmultiscale-get-error-insufficient-memory-in-outofmemoryerror/11293 "2022-12-12T22:20:33Z")

</div>

Hello everyone I have the following code: public boolean isContainsFace(String path){ Mat matImage = Imgcodecs.imread(path); MatOfRect faceDetections = new MatOfRect(); cascadeClassifier.detectM…

---

## [How to pass cv::ptr to lambda](https://forum.opencv.org/t/how-to-pass-cv-ptr-to-lambda/8273)

<div class="topic-metadata">

**Author:** [@udi](https://forum.opencv.org/u/udi)\
**Replies:** 0\
**Last updated:** [April 5, 2022, 5:16pm UTC](https://forum.opencv.org/t/how-to-pass-cv-ptr-to-lambda/8273 "2022-04-05T17:16:37Z")

</div>

Hello Below you can see simple code snippet where I just try to pass cv::ptr to lambda. But it gives an error like : what(): OpenCV(4.4.0) /home/opencv\_contrib/modules/cudaobjdetect/src/cas cadeclassifie…

---

## [Object Detection - Haar Cascade / LBP Cascade - Simplest Example - Training Data](https://forum.opencv.org/t/object-detection-haar-cascade-lbp-cascade-simplest-example-training-data/7348)

<div class="topic-metadata">

**Author:** [@VDL](https://forum.opencv.org/u/VDL)\
**Replies:** 1\
**Last updated:** [February 1, 2022, 2:10pm UTC](https://forum.opencv.org/t/object-detection-haar-cascade-lbp-cascade-simplest-example-training-data/7348 "2022-02-01T14:10:03Z")

</div>

I would like to start using the Haar/LBP Cascade Classifier. I would like to start at the most basic level, with the most simplest example. You can compare it to what would be a ‘Hello World’ example in programming lang…

---

## [Insufficient count of samples in given vec-file. during harcascade training](https://forum.opencv.org/t/insufficient-count-of-samples-in-given-vec-file-during-harcascade-training/4682)

<div class="topic-metadata">

**Author:** [@Hitesh\_Vaniya](https://forum.opencv.org/u/Hitesh_Vaniya)\
**Replies:** 3\
**Last updated:** [November 3, 2021, 1:31pm UTC](https://forum.opencv.org/t/insufficient-count-of-samples-in-given-vec-file-during-harcascade-training/4682 "2021-11-03T13:31:01Z")

</div>

when training the custom harcascade using cascade trainer GUI tool , I am using the positive image of 500 nos and negative image of 1000nos , All the pre processing done like cropping and sizing. When i trained the har…

---

## [Is it possible to recognize a face with only with eyes?](https://forum.opencv.org/t/is-it-possible-to-recognize-a-face-with-only-with-eyes/4513)

<div class="topic-metadata">

**Author:** [@Akshay\_Hebbar](https://forum.opencv.org/u/Akshay_Hebbar)\
**Replies:** 4\
**Last updated:** [July 30, 2021, 4:37pm UTC](https://forum.opencv.org/t/is-it-possible-to-recognize-a-face-with-only-with-eyes/4513 "2021-07-30T16:37:46Z")

</div>

Is there any way to recognize a face only with an eyes other than Haarcascade\_eyes.XML model? I tried with this but it failed to recognize.

---

## [Cascade definition loading that worked with .so in 4.0.1 no longer works in 4.5.2](https://forum.opencv.org/t/cascade-definition-loading-that-worked-with-so-in-4-0-1-no-longer-works-in-4-5-2/3782)

<div class="topic-metadata">

**Author:** [@SavedByZero](https://forum.opencv.org/u/SavedByZero)\
**Replies:** 12\
**Last updated:** [June 14, 2021, 11:40pm UTC](https://forum.opencv.org/t/cascade-definition-loading-that-worked-with-so-in-4-0-1-no-longer-works-in-4-5-2/3782 "2021-06-14T23:40:00Z")

</div>

Has anyone had this problem with the face detection code? All I did was update the .so plugin in my Assets folder in Unity with one from 4.5.2, and suddenly the cascade definition is no longer found. xml files are in t…

---

## [Haar cascade with cuda xml classifier doesn’t work](https://forum.opencv.org/t/haar-cascade-with-cuda-xml-classifier-doesn-t-work/3724)

<div class="topic-metadata">

**Author:** [@Oleksandr\_V](https://forum.opencv.org/u/Oleksandr_V)\
**Replies:** 0\
**Last updated:** [June 7, 2021, 7:15am UTC](https://forum.opencv.org/t/haar-cascade-with-cuda-xml-classifier-doesn-t-work/3724 "2021-06-07T07:15:42Z")

</div>

Try to make opencv working in docker container on jatson nano but cuda classifiers does\`n work. I have opencv 4.5.1 and tensorflow 2.4 in docker container. I try to use opencv cuda classifiers from official repo \[opencv/…

---

## [Can i use Cascade Classifier commercially?](https://forum.opencv.org/t/can-i-use-cascade-classifier-commercially/3454)

<div class="topic-metadata">

**Author:** [@Marcs](https://forum.opencv.org/u/Marcs)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 6:17am UTC](https://forum.opencv.org/t/can-i-use-cascade-classifier-commercially/3454 "2021-05-21T06:17:58Z")

</div>

Hi, I’m lost between licenses, I’ve read a lot about it, but I’m still confused. Sorry, I don’t know if this is the right place for these questions. Can I use .xml files, such as “haarcascade\_eye.xml”, in a commercial p…

---

## [Why Confidence Value goes greater then 100 or less then 0 in OpenCV while Detecting objects using custom cascade?](https://forum.opencv.org/t/why-confidence-value-goes-greater-then-100-or-less-then-0-in-opencv-while-detecting-objects-using-custom-cascade/2128)

<div class="topic-metadata">

**Author:** [@Kashif](https://forum.opencv.org/u/Kashif)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 6:52pm UTC](https://forum.opencv.org/t/why-confidence-value-goes-greater-then-100-or-less-then-0-in-opencv-while-detecting-objects-using-custom-cascade/2128 "2021-05-11T18:52:13Z")

</div>

I am detecting objects with Custom Haar Cascade while detecting the cascade is giving correct confidence of some objects which is between 0 and 100 but for some the confidence goes above 100 or below 0 like Confidence eq…

---

## [Problem with cuda CascadeClassifier](https://forum.opencv.org/t/problem-with-cuda-cascadeclassifier/2115)

<div class="topic-metadata">

**Author:** [@TatanC](https://forum.opencv.org/u/TatanC)\
**Replies:** 6\
**Last updated:** [March 23, 2021, 12:06pm UTC](https://forum.opencv.org/t/problem-with-cuda-cascadeclassifier/2115 "2021-03-23T12:06:48Z")

</div>

Hi, I have trained my own haar cascade classifier using opencv version 3.2 and after checking its performance I tried to use the cuda functions to perform some tests, however I encountered the following error: terminate…
