bgAna-0.0.4
توضیحات
Background Analyzer. Heuristics to get the background color of any image.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bgAna-0.0.4 |
| نام | bgAna |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matt Yan |
| ایمیل نویسنده | syan4@ualberta.ca |
| آدرس صفحه اصلی | https://github.com/Madoshakalaka/bgAna |
| آدرس اینترنتی | https://pypi.org/project/bgAna/ |
| مجوز | - |
# 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`
```python
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
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl bgAna-0.0.4:
pip install bgAna-0.0.4.whl
نصب پکیج tar.gz bgAna-0.0.4:
pip install bgAna-0.0.4.tar.gz