OpenCV: Detect blinking lights in a video feed

前端 未结 2 864
夕颜
夕颜 2020-12-14 22:26

I have a video feed. This video feed contains several lights blinking at different rates. All lights are the same color (they are all infrared LEDs). How can I detect the po

2条回答
  •  佛祖请我去吃肉
    2020-12-14 23:24

    If the leds are stationary, the problem is far simpler than when they are moving. Assuming they are stationary, a solution to find the frequency could simply be to keep a vector or an array for each pixel location in which you store the values of that pixel, preferably after the preprocessing described by kigurai, over some timeframe. You can then compute the 1D fourier transform of those value vectors and find the ground frequency as the first significant component after the DC peak. If the DC peak is too low, it means there is no led there.

    Hope this problem is still somewhat actual, and that my solution makes sense.

提交回复
热议问题