Skip to content

Averages the color for every nth-frame of a video or returns the average color of an image file

License

Notifications You must be signed in to change notification settings

lfsando/Average-Frame-Color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Average Frame Color

Average Frame Color

This tool retrieves the average color of every frame from a video file and saves a representation of those colors to an image file. You can also input an image to retrieve its average color.

Usage:

python ./frames.py --help
>> Usage: frames.py [OPTIONS] FILEPATH

>> Options:
>>   --output TEXT     Specify the output file name or relative path. If the file
>>                     does not have an extension, it defaults to the value
>>                     specified by `--extension` or to JPEG if no `--extension`
>>                     is provided.
>>   --width INTEGER   Set the width of the output file. If not provided, the width
>>                     will be half the number of frames calculated.
>>   --extension TEXT  Specify the output file extension (e.g., png, jpeg).
>>   --ratio FLOAT     Capture a frame every n seconds. Default: 1.0.
>>   --show TEXT       Display the generated image after processing.
>>   --help            Show this help message and exit.

About

Averages the color for every nth-frame of a video or returns the average color of an image file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages