# Why Confidence Value goes greater then 100 or less then 0 in OpenCV while Detecting objects using custom cascade?

**URL:** <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>\
**Category:** Uncategorized\
**Tags:** cascadeclassifier\
**Created:** [March 12, 2021, 2:34pm 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-03-12T14:34:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kashif](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/kashif/32/1281_2.png) [@Kashif](https://forum.opencv.org/u/Kashif)\
**Post date:** [March 12, 2021, 2:34pm 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/1 "2021-03-12T14:34:14Z")

</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 equals 132% or -84%.

Why this much high and low confidence?  
Also how to solve this issue and get confidence in between 0 and 100?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [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/2 "2021-05-11T18:52:13Z")

</div>

how do you get a “confidence” there, and what makes you think, it’s in percent ?
