Skip to main content

Dream Filter Package

Project description

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 to install dreamFilter

pip install dreamFilter

Usage

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dreamFilter-0.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dreamFilter-0.0.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file dreamFilter-0.0.2.tar.gz.

File metadata

  • Download URL: dreamFilter-0.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for dreamFilter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9d1130d6e70cd5e6c0ab92c8fe9ebaf18f3d0466cb9cd4c734da4f5e4ad6359e
MD5 ca26d0032235fbb31165ba0898338ca5
BLAKE2b-256 f8ca2d4e8c1a3b95bed9fe88fd110d1c6b28cdc2c00e8c12d5feb858639eed2f

See more details on using hashes here.

File details

Details for the file dreamFilter-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dreamFilter-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for dreamFilter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e37f3da851f6b4c3445954ee8692ab519a2cac0cdaa59c12a0cbe9269ffb969d
MD5 70c52f1cfed8683356d9361c4ff307c8
BLAKE2b-256 e79ae2113c31e983371230feab879b5ec42f24aa3e80df8e0b0f1842ea6c671e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page