# Lighting invariant background subtraction for new object detection? Choquet integrals?

**URL:** <https://forum.opencv.org/t/lighting-invariant-background-subtraction-for-new-object-detection-choquet-integrals/6865>\
**Category:** Python\
**Tags:** bgsegm\
**Created:** [December 23, 2021, 8:07pm UTC](https://forum.opencv.org/t/lighting-invariant-background-subtraction-for-new-object-detection-choquet-integrals/6865 "2021-12-23T20:07:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stuart\_Reynolds](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/stuart_reynolds/32/4079_2.png) [@Stuart\_Reynolds](https://forum.opencv.org/u/Stuart_Reynolds)\
**Post date:** [December 23, 2021, 8:07pm UTC](https://forum.opencv.org/t/lighting-invariant-background-subtraction-for-new-object-detection-choquet-integrals/6865/1 "2021-12-23T20:07:45Z")

</div>

I’m trying to detect new objects in a scene that frequently has large lighting changes.

Choquet integrals looked like a promising technique:  
El Baf F, Bouwmans T, Vachon B. Foreground detection using the choquet integral. In: WIAMIS’08 Proceedings of the 2008 ninth international workshop on image analysis for multimedia interactive services. New York: IEEE; 2008. p. 187–90.

Is there an implementation for images in openCV / numpy?  
Or can recommend a good alternative?

---

<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:** [December 23, 2021, 8:40pm UTC](https://forum.opencv.org/t/lighting-invariant-background-subtraction-for-new-object-detection-choquet-integrals/6865/2 "2021-12-23T20:40:59Z")

</div>

> [@Stuart\_Reynolds](#):
>
> Is there an implementation for images in openCV

definitely not so ;(

---

<div class="post-metadata">

**Author:** ![Stuart\_Reynolds](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/stuart_reynolds/32/4079_2.png) [@Stuart\_Reynolds](https://forum.opencv.org/u/Stuart_Reynolds)\
**Post date:** [December 23, 2021, 8:51pm UTC](https://forum.opencv.org/t/lighting-invariant-background-subtraction-for-new-object-detection-choquet-integrals/6865/3 "2021-12-23T20:51:43Z")

</div>

Thanks. Any recommendations for foreground/background classification in video that’s robust to large light changes?

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [December 23, 2021, 9:00pm UTC](https://forum.opencv.org/t/lighting-invariant-background-subtraction-for-new-object-detection-choquet-integrals/6865/4 "2021-12-23T21:00:48Z")

</div>

I’d expect Mixture of Gaussian models to do well.

OpenCV has background segmentation/subtraction in two modules:

- [OpenCV: Motion Analysis](https://docs.opencv.org/4.x/de/de1/group __video__ motion.html)

- [OpenCV: Improved Background-Foreground Segmentation Methods](https://docs.opencv.org/4.x/d2/d55/group__bgsegm.html)
