PDPE: Preventative Device for Photosensitive Epilepsy
Vijay Tupper
Alpha Secondary
Floor Location : J 028 N

Photosensitive epilepsy is a disorder that causes people to have seizures when light is flashing too quickly. The point of our project was to create a method to watch for flashing lights on a TV or monitor, and then alert the user. We used a camera attached to a Raspberry Pi to take a 3 video of the screen. Then we took separate frames from that video. To get the intensity of the frame, we computed a close approximation to the perceived brightness of the frame based off the RGB value of the image. We then proceeded to run the frames through a code that would take an FFT (Fast Fourier Transform) that would take the changing intensity of the light and plot it into a series of simple, sinusoidal waves from which we could take the different frequencies of the changing intensity. This meant that we could take a series of frames, get a time frame for the perceived brightness of each frame and then figure out the frequencies at which it was changing. Then we had to figure out how to alert the user that they were in risk of having a seizure. We landed upon simply turning off the TV, as it is the simplest effective way to reduce the risk of a seizure.