Skip to main content

Image Preprocessor with Five Different Functions

Project description

Image Preprocessor

This is an image preprocessor with five features: color extraction, color filter, blurr filter, count face, and EXIF removal.

Installation

Install through pip :

$ pip install imgPreprocessor

usage e.g.

from imgPreprocessor import extract_color_palette, plot_palette,

plot_palette((extract_color_palette("image_path.jpg"))) 
from imgPreprocessor import ColorFilter

c=ColorFilter("image_path.jpg") 

user_color = (201, 251, 206)
#(B, G, R)
c.custom_colorfilter(user_color)
c.show()

c.deepskyblue_colorfilter()
c.show()
from imgPreprocessor import CountFace

c=CountFace()
c.set_image_path("image_path.jpg")
print(c.count_faces())
from imgPreprocessor import CustomBlurFilter
c=CustomBlurFilter("image_path.jpg")
c.load_image()
c.enhance_and_blur(clip_limit=2.0, tile_grid_size=(8, 8), blur_ksize=(15, 15))
#optional: clip_limit, tile_grid_size, blur_ksize
c.display_images()
from imgPreprocessor import modexif
modexif("image_path.jpg", "output_path.jpg", make = "samsung", model = "S24", datetime = "2024:12:05 12:57:54") 
#optional: make, model, datetime
#datetime format : "year:month:day hour:minute:second" 

License Information for Dependencies

This project uses the following third-party libraries, each with its respective license:

  1. Matplotlib - BSD-style License
  2. Pillow - HPND License
  3. OpenCV (opencv-python) - Apache License 2.0
  4. NumPy - BSD License
  5. Piexif - MIT License
  6. Scikit-learn - BSD License

authors

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

imgpreprocessor-1.0.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

imgpreprocessor-1.0.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file imgpreprocessor-1.0.3.tar.gz.

File metadata

  • Download URL: imgpreprocessor-1.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for imgpreprocessor-1.0.3.tar.gz
Algorithm Hash digest
SHA256 7ae39c2ebabdc98ba817648f98913e79900584843e4e954436026b8ea0ff7d62
MD5 e8da9707eb804c9129f2ff215db6380b
BLAKE2b-256 1a11ff0dd2f0ef6c3598df7820e09771e6f083df4699f2bcf703f71535615861

See more details on using hashes here.

File details

Details for the file imgpreprocessor-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for imgpreprocessor-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 46e2b608ed1000228c349530f11d70b3f5402a7442d1ef6eeaa74c1ccac8929d
MD5 75ec07828a0dd3a86aa0d36ad11ce34b
BLAKE2b-256 5a4c964feddadb7883bef17f18dcbebf3ae3b7e1f32393be919c069e6e00bb98

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