background-mask-0.2.post1
توضیحات
make white part of a picture transparent
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | background-mask-0.2.post1 |
| نام | background-mask |
| نسخه کتابخانه | 0.2.post1 |
| نگهدارنده | ['zhaofeng-shu33'] |
| ایمیل نگهدارنده | ['616545598@qq.com'] |
| نویسنده | zhaofeng-shu33 |
| ایمیل نویسنده | 616545598@qq.com |
| آدرس صفحه اصلی | https://github.com/zhaofeng-shu33/background_mask |
| آدرس اینترنتی | https://pypi.org/project/background-mask/ |
| مجوز | Apache License Version 2.0 |
# background_mask
Utility for adding alpha channel for white background region of a picture.
## How to use
Make sure you install `Pillow` first. Then type `python background_mask.py [--threshold 240] input_image_file_name` and you get the generated image named with `..._mask.png`.
## Situtation for usage
When you download an image from Internet, the alpha channel does not exist. Use this utility script can make the whilte region of the picture transparent.
نحوه نصب
نصب پکیج whl background-mask-0.2.post1:
pip install background-mask-0.2.post1.whl
نصب پکیج tar.gz background-mask-0.2.post1:
pip install background-mask-0.2.post1.tar.gz