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

More Information

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.4.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.4-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imgpreprocessor-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 de5cab7bcf9dfc0ffcc39cfee624fa4b5c5936f647162794c875138c31811808
MD5 44c403e7775a52c4fdb51c80e7ce55b8
BLAKE2b-256 050dcba63d96f0e1a0bf9d5c4debe9e8dba543e8bc29aded11c27e2d64c7b8d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for imgpreprocessor-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3078ab80b7d4a80b363d3b8d37797d1dfeaa7905bb4645e6c280f3f03e283757
MD5 21065101e7ca721ac7c1b8897f77e768
BLAKE2b-256 9c639dc4f21abb80fbe81ac71d77e28828f0ed6793870e0eda178604bf543e35

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