开发者

Better performance in lower light conditions (OpenCV)?

开发者 https://www.devze.com 2023-04-10 15:04 出处:网络
I am trying to detect hands, and my algorithm works perfectly during day, but during the night it completely fails- it shows no signs of working at all.

I am trying to detect hands, and my algorithm works perfectly during day, but during the night it completely fails- it shows no signs of working at all.

I have come to the conclusion this is because of lower light conditions.

Could someone please give me tips for better performance in lower light conditions?

My algorithm just uses cvInRangeS to find the skin-coloured pixels in an HS开发者_如何学JAVAV image.

Any tip would do, regardless of how little it would help.

Thanks


Have you normalized your input first? What's the average V value by day and by night? That said, your sensor will be RGB, and the transformation from RGB to HSV loses quite a bit of precision in the H and S components when R,G and B are low. In extrema: {0,1,0} is quite close to {1,0,0} but the hue is entirely different.


cv::equalizeHist is probably what you want for normalization/equalization. As for the colour matching - you are dropping the V component of your image to do the colour matching right? You could also try YCbCr, which has been shown to be even better than HSV in terms of lightness variance.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号