Skip to content

blogle/Kaleidoscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requires Pillow and SimpleCV

Setting up for processing:

git clone to somewhere convenient Copy your video into the Kaleidoscope/source directory

Convert Video to frames:

open up the notebook, import Pillow and SimpleCV, in the next cell change the video source to your own video, then execute the cell. This sets up a videocapture and display instances and then iterates through the source saving each frame to the input directory.

Applying the Effects:

The rest of the notebook demonstrates all of the filters that will be applied to each frame. Once you are satisfied and understand the stategy, go ahead and finally execute the last cell which includes the main work loop, it takes each image and does the following
  1. Creates an equalateral triangle
  2. Mirrors and filps the triangle into a trapezoid
  3. Mirrors and filps the triangle into a hexagon
  4. Mirrors and filps the hexagon around the canvas
  5. Saves image to Kaleidoscope/output

This is all better demonstrated in the actual Notebook

Example Output

![Example Output](Sample Frames/kaleidoscope_frame1279.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame1788.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame1918.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame1988.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame2384.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame2706.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame2747.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame2785.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame3534.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame4112.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame4394.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame460.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame5235.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame5251.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame749.png "Example Output") ![Example Output](Sample Frames/kaleidoscope_frame792.png "Example Output")

It's up to you to stitch the images back together, I have no experience with ffmpeg so I opted for Quicktime Pro 7 (not bundled in OS X) then opened Kaleidoscope/output as an image sequence

About

Applies a Kaleidoscope effect to videos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published