6 ms·
Anyone know of any algorithms to detect and quantify temporal light changes (as trigger for photosensitive epilepsy) with minimal latency?
by simoncunningham 2y ago
Anyone know of any algorithms to detect and quantify temporal light changes (as trigger for photosensitive epilepsy) with minimal latency?
- jszymborski 2y agoI was thinking about this... this is not my area of expertise but need it be more complicated than sampling a population of random pixels, convert from rgb to a colour space with lightness measures (like HSL) and calculating the difference at every frame?
- mystified5016 2y agoIt's more than just a frame to frame brightness difference. AIUI epilleptic triggers are more dependent on frequency of change over some period of time. As well as the absolute brightness difference. You'd have to measure changes over a longer time and possibly predict into the future. Maybe you could get away with detecting single frame brightness changes over a threshold and sort of smear the change over a period of time. Similar to that awful temporal shader that so many games use now.
- dagmx 2y agoApple have this built into their OS (https://developer.apple.com/documentation/mediaaccessibility/responding-to-changes-in-the-flashing-lights-setting https://developer.apple.com/documentation/mediaaccessibility...) and publish the implementation (https://github.com/apple/VideoFlashingReduction https://github.com/apple/VideoFlashingReduction) There are a few other implementations out there but this is about as low latency as I’ve found, and takes into account several factors.