This is a fun project for image rotation in a cool way. All functions are in the same file. Opencv is required.
Parameters:
-i, --image: Give an image directory. Or to open the camera type 1, and after camera window is opened, press s to capture a picture.
-s, --speed: Change the speed (must be multiple of 2). Default speed=2
--size: Image size (must be power of 2). Default size will be automatically aranged.
--effect: For real shuffling effect. Default is 1 (True).
To stop the code press q.
Here an example video: