I am trying to count number of flashes using opencv. The setup is; I have a video camera staring at a blinking flashlight, and using opencv functions I am trying to detect the number of flashes in the video stream coming from the camera. what is the easiest way of doing so? Thank you.
Share
Assuming this is a video camera (!) you would capture a video stream and then in each frame check for a bright region.
Start here http://docs.opencv.org/ and get a video capture working
How to detect the flash depends on how much of the image it covers – if it completely fills the frame it might be as simple as find the average pixel value of the image