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 img 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.0.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.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imgpreprocessor-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 af6642510972feaadea51bf2ecbe973cdf34831845b1af3707966b2eaff647a0
MD5 a03c636ce0015301dfea9f08aa2fab30
BLAKE2b-256 38e3e47d83adcde62ca7b03ccfa8d8fec1d1a638c06793c16f9da003f86756d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for imgpreprocessor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29b7613c464420d7c7205febdf2650c2f1b91acef29281bd173353e0e243024b
MD5 7ac82c3649669ef4a0f5be2fe3b52475
BLAKE2b-256 eab97d54c9854b7d3efc02ee50f11016a24c0fc2784dbcad91442e84a07fb1e2

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