[HN Gopher] Apple Detection of Flashing Lights
       ___________________________________________________________________
        
       Apple Detection of Flashing Lights
        
       Author : dagmx
       Score  : 59 points
       Date   : 2023-03-27 21:00 UTC (2 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | smoldesu wrote:
       | With implementations in... Swift, Mathematica and MATLAB. I would
       | almost be inclined to complain if I didn't live in an age where I
       | could paste the abstract into ChatGPT and get a version in my
       | conlang of choice.
        
         | Jtsummers wrote:
         | And without ChatGPT, what would you be complaining about? Just
         | whining to whine when they provided 3 implementations and not
         | 4?
        
           | smoldesu wrote:
           | You're right, I should be thankful they didn't use COBOL for
           | all three.
        
             | [deleted]
        
             | Jtsummers wrote:
             | Again, I'll ask, what's the complaint (in a ChatGPT-free
             | world to go with your first comment) if someone provides
             | implementations in only a handful of languages? What is
             | your actual complaint or do you just enjoy making non-
             | serious whining posts?
        
               | smoldesu wrote:
               | Nothing, I guess. I was only "almost" inclined to
               | complain anyways, so I don't get why you see the reason
               | to persecute me. The minor quirk that made me mad is that
               | a FAANG company wrote something in 3 times but didn't
               | once manage to choose a language people use. It's like if
               | Microsoft open sourced their new autocorrect library for
               | Visual Basic, C# and Excel - it's readily apparent why
               | those languages would be chosen.
               | 
               | So, nothing is wrong with it. I'm pissing and moaning
               | about getting trolled by the big company again, because
               | in this instance I think it's more intellectually
               | stimulating than giving $FAANG_CO a consolation prize.
        
               | Kwpolska wrote:
               | Apple implemented it in Swift, because they needed it for
               | a feature in iOS. They also have Matlab and Mathematica
               | versions, because mathy types like those languages.
        
       | neilv wrote:
       | Nice! I've wanted this for years. Most recently, this last
       | weekend, while watching a '90s broadcast TV episode.
       | 
       | I'm not epileptic, but I don't like to take chances with things
       | like that. And, maybe a few times a year, I'm concerned because I
       | see someone doing rapid flashing lights, and it seems
       | irresponsible.
        
         | jrochkind1 wrote:
         | > I'm not epileptic, but I don't like to take chances with
         | things like that.
         | 
         | What are the chances you don't like taking, chance of what?
        
         | MBCook wrote:
         | In the last two years or so there have been a number of thing
         | I've watched (sorry don't remember specifics) where I actively
         | looked away because the flashing was just uncomfortable to
         | watch. I explicitly remember thinking "I guess this proves I
         | don't have photosensitive epilepsy."
         | 
         | There's a good chance I will turn this on just for comfort.
        
           | 0_____0 wrote:
           | Great example of how investing in accessibility for specific
           | groups has off-target benefits for lots of other people!
        
       | dagmx wrote:
       | This corresponds to new functionality in the OS updates today
       | around dimming flashing lights
       | 
       | https://9to5mac.com/2023/03/27/apple-releases-tvos-16-4-with...
       | 
       | https://developer.apple.com/documentation/mediaaccessibility...
       | 
       | For epileptics like myself, this is a huge deal. It helps me deal
       | with a lot of media that otherwise might cause me to suffer a
       | seizure.
        
         | 3r3rni9 wrote:
         | Are there any comparable tools or filters you find useful now?
         | I have an old epileptic cat on my couch, and I'm always worried
         | subjecting her to my horrible old anime. I was just yesterday
         | thinking a filter like this was probably out there, and if not,
         | might be easy to make. Looking for VLC plugins, though, I don't
         | see anything
        
           | dagmx wrote:
           | To the best of my knowledge, there's nothing else that's
           | realtime like this for end users?
           | 
           | There are other offline tests like the Harding test that are
           | run by the content creators (and why you see the epilepsy
           | warnings at the start of shows)
           | 
           | FWIW, I'm not sure if this actually would benefit cats. I'm
           | not up to speed on feline perception, but I know dogs see at
           | a different frame rate than humans so things that won't
           | trigger us might trigger them differently
        
       | mrpippy wrote:
       | Presumably this is the algorithm powering a new feature in tvOS
       | 16.4:
       | 
       | > This update adds Dim Flashing Lights, an accessibility option
       | to automatically dim the display of video when flashes of light
       | or strobe effects are detected, and includes performance and
       | stability improvements.
        
         | cryptonector wrote:
         | Next up: sound leveling?
        
           | madeofpalk wrote:
           | Settings > Audio and Video > Reduce Loud Sounds
           | 
           | https://support.apple.com/en-gb/guide/tv/atvba773c3c9/tvos
        
       | gumby wrote:
       | I don't need this but I think it is awesome if it helps people!
        
       | bob1029 wrote:
       | If anyone is curious how this actually works, I found the
       | included Mathematica PDF to be the most helpful:
       | 
       | https://github.com/apple/VideoFlashingReduction/blob/main/Vi...
        
       | manaskarekar wrote:
       | This is nice.
       | 
       | It would be nice if apple also addressed PWM and Temporal
       | dithering on the displays of their newer devices.
        
         | bob1029 wrote:
         | I see some pretty weird stuff on my M1 MacBook when toggling
         | between extreme contrast ranges.
         | 
         | Some days I wish I lived on the other side of whatever bell
         | curve they use to determine how obnoxious time-domain
         | techniques are permitted to be for humans.
        
           | cryptonector wrote:
           | Me too, and by "weird stuff" I mean "nasty nasty headaches".
        
       | jojobas wrote:
       | Immediate thought: knowing the algorithm, make a flashing light
       | video that it wouldn't detect.
       | 
       | Also reminds me of an epilepsy support forum that got hacked and
       | defaced with flashing animated gifs back in 00s.
        
       ___________________________________________________________________
       (page generated 2023-03-27 23:00 UTC)