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:
-
$ bgAna -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.4.tar.gz
(5.4 kB
view details)
File details
Details for the file bgAna-0.0.4.tar.gz
.
File metadata
- Download URL: bgAna-0.0.4.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.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b67435c931a6651ec6ec34819dab945a6f8d50cb7da2759b75743f8f6e802a2 |
|
MD5 | 4c13b0f6e49d61dc9ba973c9613ee3e9 |
|
BLAKE2b-256 | f3b299728aabb3f256a7bbf1b82aea232cd8e2ae012d17cab6e819b48c5db004 |