joshwcheung/movie-poster-color-bars

语言: Python

git: https://github.com/joshwcheung/movie-poster-color-bars

使用IM-b的前250个电影海报的k-means聚类进行颜色量化
Color quantization using k-means clustering of IMDb's top 250 movie posters
README.md (中文)

彩条

彩条中使用的脚本采用IMDb顶级电影的电影海报,并执行k-means聚类,以生成每张海报的颜色量化版本。然后,每个颜色量化的海报用于产生表示海报中颜色比例的颜色条。

用法

$python color_clustering.py --help
usage: color_clustering.py [-h] -i IMG -k CLUSTERS

optional arguments:
    -h, --help          show this help message and exit
    -i IMG, --img IMG   Image path
    -k CLUSETERS, --clusters CLUSTERS
                        Number of clusters

$python imdb_posters.py --help
usage: imdb_posters.py [-h] -k CLUSTERS

optional arguments:
    -h, --help          show this help message and exit
    -k CLUSTERS, --clusters CLUSTERS
                        Number of clusters

例子(k = 8):10/13/15 IMDb Top 10

更多例子(k = 8)

要查看所有250个颜色条,请参阅color_bars_4(k = 4)和color_bars_8(k = 8)。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

Color Bars

The scripts used in Color Bars take the movie posters of IMDb's top movies and performs k-means clustering to produce a color quantized version of each poster. Then, each color quantized poster is used to produce a color bar representing the proportions of colors in the poster.

Usage

$python color_clustering.py --help
usage: color_clustering.py [-h] -i IMG -k CLUSTERS

optional arguments:
    -h, --help          show this help message and exit
    -i IMG, --img IMG   Image path
    -k CLUSETERS, --clusters CLUSTERS
                        Number of clusters

$python imdb_posters.py --help
usage: imdb_posters.py [-h] -k CLUSTERS

optional arguments:
    -h, --help          show this help message and exit
    -k CLUSTERS, --clusters CLUSTERS
                        Number of clusters

Examples (k = 8): 10/13/15 IMDb Top 10

More Examples (k = 8)

To view all 250 color bars, see color_bars_4 for k = 4 and color_bars_8 for k = 8.