Giter VIP home page Giter VIP logo

moviescolorfingerprint's Introduction

Movies' Color Fingerprint

These routines take a movie, and export it's color fingerprint by calculating the dominant colors present in uniformly-spaced frames across the video. They do so by splitting a movie into frames, clustering the colors in each of the frames, and plotting the most prevalent ones in a heatmap (x-axis shows time, while the y-axis shows the different clusters of colors).

Princess Mononoke Spirited Away Nausicaä of the Valley of the Wind The Wind Rises Castle in the Sky

Instructions

After installing the dependencies, run the bash script as follows:

./fingerprint.sh VIDEO_FOLDER OUTPUT_FOLDER VIDEO_NAME MOVIE_TITLE_STRING

For example, the following call looks for the Totoro.mp4 file in the ./Movies path and generates the output in the ./Art folder with the supplied title:

./fingerprint.sh './Movies' './Art' 'Nausicaa.mp4' 'Nausica0xC3\nof the\nValley\nof the\nWind'

Which exports this fingerprint:

Requirements and Dependencies

These routines need ffmpeg to re-scale the movie and export frames to disk. Additionally, the following python libraries are needed: ffmpeg-python, scikit-learn, matplotlib, numpy.

These libraries can be installed manually, or to anaconda environments with:

conda env create -f REQUIREMENTS.yml

or

conda create -n new fingerprint --file REQUIREMENTS.txt

Author


Héctor M. Sánchez C.

moviescolorfingerprint's People

Contributors

chipdelmal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

clarazwen

moviescolorfingerprint's Issues

[Question] What's the accuracy of the tool

I want to know how precise it can be, cause I need to detect similar moments in multiple videos, and your tool can be useful, so a pixel is equal to what time ? can we change this value ?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.