Skip to main content

Color quantization toolkit for exploratory data analysis of images.

Project description

kcquant

This package enables you to perform exploratory data analysis on images, as well as easily quantize the colors of an image to be used for machine learning applications.

To install this package, use

pip install kcquant

Currently only one function (get_colors) exists, which displays the top n pixel values (RGB format) in an image.

from kcquant import get_colors
from PIL import Image
import numpy as np

# open image
img = Image.open(<file path>).convert('RGB')
# call get_colors()
# if image is in RGB set color='RGB'
# if image is in BGR set color='BGR'
get_colors(np.array(img), color = 'RGB', top=*n*)

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kcquant-0.1.5.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kcquant-0.1.5-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file kcquant-0.1.5.tar.gz.

File metadata

  • Download URL: kcquant-0.1.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/2.7.10 Darwin/18.5.0

File hashes

Hashes for kcquant-0.1.5.tar.gz
Algorithm Hash digest
SHA256 496e77f4cf1e5687a35a800c55ceec6da113c97e21049fbae35dbc0fc6008532
MD5 5fa68bcc16687be2eba58f1b787bd3af
BLAKE2b-256 af7fed7b55b1ce13ddc65d2b39d4c7a43d63763f71b7ff06cdf3a502a12d42bb

See more details on using hashes here.

File details

Details for the file kcquant-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: kcquant-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/2.7.10 Darwin/18.5.0

File hashes

Hashes for kcquant-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7f4cd64b28b65d98b4ebbb4f4c0d33919396d04b3662124abbed45ed8635ad8f
MD5 af6ff6f6851784d614bd7f13324cfc9f
BLAKE2b-256 c8945e036bc979b5e20d7e13efb94888dde32d46592baa0e0ace3759820661c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page