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" 

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.1.tar.gz (5.8 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.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imgpreprocessor-1.0.1.tar.gz
  • Upload date:
  • Size: 5.8 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.1.tar.gz
Algorithm Hash digest
SHA256 dc723dbe30a4b00be68b1bb54554534c868365a241258b51505ecf07b10b9207
MD5 060686b6f6953ec32e22c71028149c74
BLAKE2b-256 7b9f531cf913e704ae4c943d48ada03190ee477cf905b112f2d716306b7bdf33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for imgpreprocessor-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9302859824a040968a275262e820b97fbdb717283e0154e0b88e257baf7b6f1c
MD5 7451398323b394dad032f0dd0126f9a3
BLAKE2b-256 db07348cbe9161831e27c24fedda5b14b662d250bffab01a540f1ccc67181638

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