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:
- Matplotlib - BSD-style License
- Pillow - HPND License
- OpenCV (opencv-python) - Apache License 2.0
- NumPy - BSD License
- Piexif - MIT License
- 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de5cab7bcf9dfc0ffcc39cfee624fa4b5c5936f647162794c875138c31811808
|
|
| MD5 |
44c403e7775a52c4fdb51c80e7ce55b8
|
|
| BLAKE2b-256 |
050dcba63d96f0e1a0bf9d5c4debe9e8dba543e8bc29aded11c27e2d64c7b8d5
|
File details
Details for the file imgpreprocessor-1.0.4-py3-none-any.whl.
File metadata
- Download URL: imgpreprocessor-1.0.4-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3078ab80b7d4a80b363d3b8d37797d1dfeaa7905bb4645e6c280f3f03e283757
|
|
| MD5 |
21065101e7ca721ac7c1b8897f77e768
|
|
| BLAKE2b-256 |
9c639dc4f21abb80fbe81ac71d77e28828f0ed6793870e0eda178604bf543e35
|