Code Monkey home page Code Monkey logo

averageframecolour's Introduction

AverageFrameColour

Creates an image of average frame colours for a YouTube video.

An example image is shown below, for the movie trailer for Us 2019: Simply Easy Learning

Install

You need Python 3 installed to run this.

The first step is to clone the repository:

git clone https://github.com/ShantnuS/AverageFrameColour.git   

Next a number of Python libraries need to be installed using pip:

pip install pytube3
pip install opencv-python
pip install pillow 

You are now ready to run.

Usage

To run the script, copy the URL of a YouTube video. Ideally this video should be short (5 mins max).

python3 average-colours.py

The script will ask you to paste in the video URL, i.e.:

Enter a YouTube video URL: https://www.youtube.com/watch?v=hNCmb-4oXJA

Now just wait until the image is saved in the script folder (as a PNG) and an output image is displayed.

Contributing

Feel free to fork, mirror, etc.

License

MIT (basically just do whatever I'm not involved)

averageframecolour's People

Contributors

shantnus avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

fusion-tools

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.