dreamFilter-0.0.2
توضیحات
Dream Filter Package
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dreamFilter-0.0.2 |
| نام | dreamFilter |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bruno Calegari |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/bccalegari/python_developer_dio/tree/main/Tratamento%20de%20Dados/Descomplicando%20a%20Cria%C3%A7%C3%A3o%20de%20Pacotes%20em%20Python |
| آدرس اینترنتی | https://pypi.org/project/dreamFilter/ |
| مجوز | - |
# dreamFilter
Description.
The package dreamFilter is used to:
- Filter:
- Apply the dream filter in one or two images
- Compare:
- Compare if two images are equal
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install dreamFilter
```bash
pip install dreamFilter
```
## Usage
```python
from dreamFilter import tools, filter
# Opening the two example pictures
img1 = tools.open_img("example_img1.jpg")
img2 = tools.open_img("example_img2.jpg")
# Comparing two images:
# 1
print("# Comparing the first image with the second:\n")
print("\t- Different") if tools.equal(img1, img2) is False else print("\t- Equal")
# 2
print("\n# Comparing the first image with herself:\n")
print("\t- Different") if tools.equal(img1, img1) is False else print("\t- Equal")
# Filter:
# 1
print("\n# Filtering first image by second:\n")
filter.dream_filter(img1, img2, 'filtered_img1+2')
print("\t- Done.")
# 2
print("\n# Filtering the first image with itself:\n")
filter.dream_filter(img1, img1, 'filtered_img1+1')
print("\t - Done.")
```
## Author
Bruno Calegari
## License
MIT License
Copyright (c) [2022] [Bruno da Costa Calegari]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
نیازمندی
| مقدار | نام |
|---|---|
| >=1.23.5 | numpy |
| >=9.3.0 | Pillow |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl dreamFilter-0.0.2:
pip install dreamFilter-0.0.2.whl
نصب پکیج tar.gz dreamFilter-0.0.2:
pip install dreamFilter-0.0.2.tar.gz