Skip to content

Generate colour palettes of your favourite movies!

Notifications You must be signed in to change notification settings

multi-vac/FrameBars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

FrameBars

Generate colour palettes of your favorite movies!

example

Prerequisites

openCV library.

Installation

  • Install openCV using this guide.
  • Clone FrameBars.

Compilation

Compile the program using:

main.cpp -o framebars `pkg-config --cflags --libs opencv` -std=c++11

Usage

./framebars <path_to_video_file>

For example

./framebars '/media/username/DriveName/Movies/test.mp4'

Output

Output will be a png image inside the folder where video is present.

How does it work?

One frame is extracted from each second of the video. Kmeans clustering is used to extract the most dominant colour in the frame. Each line in the image represents one second of video. These are then stiched together to create the final result.

Examples

Pulp Fiction Pulp Fiction

Ghost in the Shell Ghost in the Shell (1995)

Harry Potter Harry Potter and the Deathly Hallows - Part 2

The Darjeeling Limited The Darjeeling Limited

To Do

  • Batch mode.
  • Post processing.
  • Better error handling.
  • Deploy the program.
  • Windows compatibility.
  • GUI.
  • More examples.

Acknowledgments

About

Generate colour palettes of your favourite movies!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages