Background Analyzer. Heuristics to get the background color of any image.
Project description
bgAna - Background Analyzer
Heuristics to get the background color of any image
It's useful when you want to embed image in a bigger frame. This can be used to determine the color of the bigger frame.
Showcase
How to Use
It supports python 3.5 3.6 3.7 and most possibly future versions
pip install bgAna
from bgAna import analyze_bg
img = cv2.imread('/home/matt/studyResource/.secretWeebFolder/waifu_no_435.jpg')
res = analyze_bg(img) # caution: color is in BGR
>>> print(type(res), res)
np.ndarray [125,125,125]
It also creates command line executable entry point by default
You should be able to run the following commands anywhere.
-
$ bgAna thonk.png
- output:
(125, 125, 125)
- output:
-
$ iconGen -h
for more help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bgAna-0.0.0.tar.gz
(5.4 kB
view details)
Built Distribution
bgAna-0.0.0-py3-none-any.whl
(4.1 kB
view details)
File details
Details for the file bgAna-0.0.0.tar.gz
.
File metadata
- Download URL: bgAna-0.0.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ede87829b7b2c35e371849af05b8ad684a4f4a6241efd5a372dc5e7bac052380 |
|
MD5 | e1df860f0621f3652af04cfc88475089 |
|
BLAKE2b-256 | c455f42b770e6e2cf1b66c3909b922a2ccd8f68732db22e99c3505e1933594be |
File details
Details for the file bgAna-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: bgAna-0.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f427b88362f0aa5a0e6c6a4fd80ecd1e7a3ba9b06a7873a59cff667e3847d9d |
|
MD5 | ea511e4c96ac9c3a7514837149627902 |
|
BLAKE2b-256 | bf5b96a7b116c91bfe86a94af415a11d74157ba7836f002b0df0dd96e76b61a3 |