Skip to main content

bgAna - Background Analyzer

travis-badge

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)
  • $ bgAna -h for more help

Metadata

Release files for bgAna 0.0.4

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

Source distribution (sdist)

Source distribution for bgAna 0.0.4
File Size Uploaded Provenance
bgAna-0.0.4.tar.gz 5.4 kB Without provenance Details

Release files / bgAna-0.0.4.tar.gz

Download URL bgAna-0.0.4.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0b67435c931a6651ec6ec34819dab945a6f8d50cb7da2759b75743f8f6e802a2
BLAKE2b-256 checksum
How to use checksums
f3b299728aabb3f256a7bbf1b82aea232cd8e2ae012d17cab6e819b48c5db004
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for bgAna 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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