Blinking lights detection

I’m looking for an example using Python openCV . I want to Detect and Match the sequence of blinking lights ON OFF. ON OFF = match Disclaimer: I am extremely new to OpenCV.

crosspost: opencv - Blinking lights detection - Stack Overflow