# Object Detection - Haar Cascade / LBP Cascade / HOG Descriptor - Result Value

**URL:** <https://forum.opencv.org/t/object-detection-haar-cascade-lbp-cascade-hog-descriptor-result-value/7346>\
**Category:** Uncategorized\
**Tags:** objdetect\
**Created:** [January 30, 2022, 1:23pm UTC](https://forum.opencv.org/t/object-detection-haar-cascade-lbp-cascade-hog-descriptor-result-value/7346 "2022-01-30T13:23:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VDL](https://avatars.discourse-cdn.com/v4/letter/v/49beb7/32.png) [@VDL](https://forum.opencv.org/u/VDL)\
**Post date:** [January 30, 2022, 1:23pm UTC](https://forum.opencv.org/t/object-detection-haar-cascade-lbp-cascade-hog-descriptor-result-value/7346/1 "2022-01-30T13:23:50Z")

</div>

For object deteciton results in:

- Haar Cascade (Especially)
- LBP Cascade
- HOG Descriptor
- 
  - anything else

The resullt of the detection is a number. For example for Haar Cascade, it is a floating point number (with fractinal part). e.g. 12.987654321. And also i have seen it range from at least some negative value (e.g. -1.0123) to a positive (e.g 4.519985).

So to evaluate how ‘good’ a result this is, what is the Minimum and Maximum possible values that the result can be (the range of the result)… Maybe It can be treated as a confidence value ?.

How is this value’s meaning to be interpreted when comparing the values of a detection produced from 2 cascade classifiers that each were trained to detect the same object (maybe they used different parameters, AND./OR training data, hence more than 1 classifier).

Also. how is this value’s meaning to be interpreted when comparing the values between 2 different cascade classifiers, each detecting differemt objects ?. (Can it be deduced that 1 classifier detection thier particular object more ‘surely’ than another, by comparing the value between the 2 calssifiers ?)

Also is there any meaning to the Negativeness of the value ? (Below 0)

---

<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:** [January 30, 2022, 1:45pm UTC](https://forum.opencv.org/t/object-detection-haar-cascade-lbp-cascade-hog-descriptor-result-value/7346/2 "2022-01-30T13:45:24Z")

</div>

> [@VDL](#):
>
> The resullt of the detection is a number.

please explain, how you get this number

---

<div class="post-metadata">

**Author:** ![VDL](https://avatars.discourse-cdn.com/v4/letter/v/49beb7/32.png) [@VDL](https://forum.opencv.org/u/VDL)\
**Post date:** [January 30, 2022, 3:04pm UTC](https://forum.opencv.org/t/object-detection-haar-cascade-lbp-cascade-hog-descriptor-result-value/7346/3 "2022-01-30T15:04:51Z")

</div>

For Haar Cascade (I remember), it is the _levelWeights_ value from a version of the .DetectMultiScale() function:

[http://docs.opencv.org/5.x/d1/de5/classcv\_1\_1CascadeClassifier.html#a1a5884c8cc749422f9eb77c2471958bc](https://docs.opencv.org/5.x/d1/de5/classcv_1_1CascadeClassifier.html#a1a5884c8cc749422f9eb77c2471958bc)

---

<div class="post-metadata">

**Author:** ![VDL](https://avatars.discourse-cdn.com/v4/letter/v/49beb7/32.png) [@VDL](https://forum.opencv.org/u/VDL)\
**Post date:** [February 1, 2022, 2:51pm UTC](https://forum.opencv.org/t/object-detection-haar-cascade-lbp-cascade-hog-descriptor-result-value/7346/4 "2022-02-01T14:51:14Z")

</div>

> please explain, how you get this number

For Haar Cascade (I remember), it is the _levelWeights_ value from a version of the .DetectMultiScale() function:

[http://docs.opencv.org/5.x/d1/de5/classcv\_1\_1CascadeClassifier.html#a1a5884c8cc749422f9eb77c2471958bc](https://docs.opencv.org/5.x/d1/de5/classcv_1_1CascadeClassifier.html#a1a5884c8cc749422f9eb77c2471958bc)
