You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is taking an average of brightnesses over all pixels of the frame. It works surprisingly well, but if the halfs of the screen would just swtich colors rapidly (like white and black) it wouldn't be detected. It is unlikely it will occure often, but if it can cover this as well it would be quiet nice.
One attempt I took failed, which was to divide it into different portions of the frames. This triggers false positives for example when there is a panning or scrolling shot. The average brightness of the whole screen seems to cancel this out and minimize the weight of the movement overall.
The text was updated successfully, but these errors were encountered:
You might want to have a look into the discrete Fourier Transformation. The resulting amplitude spectra.
I just gave it a quick look again and it seems like sudden changes in brightness result in diagonal white lines in the amplitude spectrum. You could then take two frames and take the variance between all pixels of the amplitude spectra of the frames. If this value exceeds some values you hopefully find in the literature or by talking to people, you could decide that the video might be epilepsy-inducing.
For a look into the discrete Fourier Transform I recommend "Computer Vision" by Lutz Priese. I can even borrow it to you, if you want to
TimothyGillespie
changed the title
Improve Detection to special cases which won't be caught by averages
Improve Detection for special cases which won't be caught by averages
Jun 16, 2020
Currently it is taking an average of brightnesses over all pixels of the frame. It works surprisingly well, but if the halfs of the screen would just swtich colors rapidly (like white and black) it wouldn't be detected. It is unlikely it will occure often, but if it can cover this as well it would be quiet nice.
One attempt I took failed, which was to divide it into different portions of the frames. This triggers false positives for example when there is a panning or scrolling shot. The average brightness of the whole screen seems to cancel this out and minimize the weight of the movement overall.
The text was updated successfully, but these errors were encountered: