I watched the Youtube video
Rolling Shutter Explained on the Cheap
by Matt Parker where he shows that you don't need to visit an actual
aeroplane with expensive slow-motion cameras to demonstrate the rolling shutter
effect on aircraft propellors. He shows that you can do it with a model
propellor connected to an electric drill — then some Python code to
process the video to emulate the rolling shutter effect and to add
a green line scanning down the image.
Well, I thought, let's do the whole thing in Python.
Here's 30 lines of Python, using the Numpy and Pillow libraries and
ffmpeg to create the video:
Here's another version that uses Tkinter to display the video to your
screen in real time rather than making a video. It needs a fast(ish) PC to
display smoothly:
I watched the Youtube video Rolling Shutter Explained on the Cheap by Matt Parker where he shows that you don't need to visit an actual aeroplane with expensive slow-motion cameras to demonstrate the rolling shutter effect on aircraft propellors. He shows that you can do it with a model propellor connected to an electric drill — then some Python code to process the video to emulate the rolling shutter effect and to add a green line scanning down the image.
Well, I thought, let's do the whole thing in Python.
Here's 30 lines of Python, using the Numpy and Pillow libraries and ffmpeg to create the video:
https://github.com/dafarry/rolling-shutter-effect-python/blob/master/rolling-shutter-makevideo.py
Here's another version that uses Tkinter to display the video to your screen in real time rather than making a video. It needs a fast(ish) PC to display smoothly:
https://github.com/dafarry/rolling-shutter-effect-python/blob/master/rolling-shutter-tkinter.py
GickRick 1 points · Oct 2019
Man you're the goat✊🙌🙌