https://github.com/habibslim/moviespectrum
Simple python script to build color spectrums from movies
https://github.com/habibslim/moviespectrum
Last synced: 2 months ago
JSON representation
Simple python script to build color spectrums from movies
- Host: GitHub
- URL: https://github.com/habibslim/moviespectrum
- Owner: HabibSlim
- Created: 2018-11-25T16:51:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T18:24:37.000Z (almost 4 years ago)
- Last Synced: 2025-01-14T14:45:50.216Z (4 months ago)
- Language: Python
- Size: 982 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MovieSpectrum
MovieSpectrum is a (very) simple program that you can use to extract the color sequential timeline of a film or a video# How to use it?
Define the script parameters in params.py.
You will have to adjust IMAGE_WIDTH, IMAGE_HEIGHT for the output picture, and SAMPLE_NUMBER to define the number of frames to be used to build the spectrum.Then, from a terminal supply a video path :
spectrum.py Porco\ Rosso.avi
# Averaging methods
You can also play with average methods, square average seems to give the best results.
K-Mean seems rather unpratical unless you are working with a very small SAMPLE_NUMBER.A window will popup and the spectrum will start building. When you are finished, press Q to exit.
# Dependencies
* Numpy
* OpenCV# Some examples
Here are some cool examples built using the script, from some famous Ghibli movies.Princess Mononoke
![]()
Porco Rosso
![]()