Skip to main content

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'
# n=5 will display top 5 pixel colors in image
# n=10 will display top 10 pixel colors in image
n=10
get_colors(np.array(img), color = 'RGB', top=n)

image

Metadata

Release files for kcquant 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kcquant 0.1.10
File Size Uploaded
kcquant-0.1.10.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kcquant 0.1.10
File Interpreter ABI Platform
kcquant-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 kB

Release files / kcquant-0.1.10.tar.gz

Download URL kcquant-0.1.10.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6a1f84b3c5ad511d6121ade6589b5edadadebc39bcf30e3c1d053888e2bf69fe
BLAKE2b-256 checksum
How to use checksums
2627f4bdd3a66efffa625423c521c17103acbfb7a4ff9122dbedf7f2ae35c949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/2.7.10 Darwin/18.5.0

Release files / kcquant-0.1.10-py3-none-any.whl

Download URL kcquant-0.1.10-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3676c74b004167fc04338d910b485c5a40c4531c9dbb96499c062c2bab67233
BLAKE2b-256 checksum
How to use checksums
25a357b0c68b763d06d4137b5cd2f6d23aa536f5e4d2c434a610b60fbc55b961
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/2.7.10 Darwin/18.5.0

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page