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)
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)
| File | Size | Uploaded | |
|---|---|---|---|
| kcquant-0.1.10.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|