Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhaofeng-shu33/background_mask
Utility for adding alpha channel for white background region of a picture
https://github.com/zhaofeng-shu33/background_mask
Last synced: about 1 month ago
JSON representation
Utility for adding alpha channel for white background region of a picture
- Host: GitHub
- URL: https://github.com/zhaofeng-shu33/background_mask
- Owner: zhaofeng-shu33
- Created: 2018-10-30T08:29:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T14:32:10.000Z (about 4 years ago)
- Last Synced: 2024-11-18T12:16:04.412Z (about 2 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.