lwrubel / loc-colors

Colors in Library of Congress digital images.

Home Page:https://loc-colors.glitch.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Library of Congress Colors

What colors are in images? View color swatches for images in Library of Congress digital collections.

Each block of six swatches represents an image in the selected collection. Swatch colors are determined using k-means clustering. TThe colors that appear are not necessarily the most frequent colors, but the center of a cluster of color values. Since the whole image is analyzed, color targets, borders, and frames will affect the result.

This project uses thumbnail images from Library of Congress digitized collections, accessed via the Loc.gov JSON API.

See the code on GitHub or:

  • Jupyter notebook with the Python code used to access the API and analyze the colors.
  • JSON files with image URLs and colors for each collection.

About

Colors in Library of Congress digital images.

https://loc-colors.glitch.me

License:MIT License


Languages

Language:HTML 62.8%Language:JavaScript 24.4%Language:CSS 12.8%