Created on 21st January 2023
•
In today's flashy world, YouTube has over 2.6 Billion monthly users. In order to attract audience, youtubers use flashy lights and elements in their product. A person suffering from Photosensitive Epilepsy can come across such elements quite easily if there is not prior warning displayed. Not every video has such warning thus, vulnerable people can suffer seizures. To prevent this mishap, we have EpilepsyShield.
This is a chrome extension that works while the user is using YouTube. It prevents the user from coming across any flashing visuals on the screen. The extension continuously reads frames from the video and calculates the differences between the brightness of each frame from the previous one to detect any anomaly. When a sudden spike is detected in the video that displays a warning for the user, alerting them about the flashing elements in the video.
Adding overlays to lower the intensity of the flashes in the videos.
Skipping parts of the video that contains flashing segment was quite difficult to implement.
The calculation of luminosity of each frame was based on an average scale.