impytool is an opencv based tool that facilitates some image processing operations
Project description
contact: impytool.package@gmail.com
“impytool is an opencv based tool that facilitates some image processing operations”
GitHub README for More Detailed User Manual
USAGE:
Mandatory Parameters:
image: Image file to be processed
save: 1 or not. The 1 is will save the file in new form
impytool.grayscale(image,save)
Converts the image in grayscale form
impytool.negative(image,save)
Converts the image in negative form
impytool.color_change(image,color1,color2,save)
Replaces one color in the image with another color.
color1: the color that will change
color2: the color that will replace color1
color: “blue” “green” “red” “yellow” “orange” “purple” “brown” “white” “black”
for example: impytool.color_change(‘a.jpg’,‘red’,‘color2’,0) -> change red color to blue color on the “a.jpg”
impytool.color_filter(image,color,save)
The image filtered by choosen color
color: “blue”,“green”,“red” .
impytool.blur(image,save)
Converts the image blurred form
impytool.resize(image,w,h,save)
Adjusts the image to the desired dimensions
w: Width of the new sizes.
h: Height of the new sizes.
impytool.brightness(image,rate,save)
Adjusts the brightness of the image
rate: Change rate of the brightness.
impytool.contrast(image,alpha,save)
Adjusts the contrast of the image
alpha: Contrast change quantity
alpha should be in the range of 0-3.0
the 0-1.0 range is the lower contrast
the 1.0-3.0 is the higher contrast
impytool.only_color(image,color,save)
Shows only the selected color on the image
color: “blue” “green” “red” “yellow” “orange” “purple”
impytool.rotate(image,direction,save)
Flips the image
direction: The desired flip direction, it may be ‘vertical’ ‘horizontal’ ‘both’
impytool.flip(image,angle,save)
Rotates the image
angle: The desired rotation angle, it may be 90-180-270
impytool.histogram(image,hist_type)
Creates a histogram for the image
hist_type: Determines the histogram type.
it may be ‘hist’ : for the grayscale images
it may be ‘rgb_hist’ : for the colored images
impytool.black_white(image,save)
Converts the image black & white form.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file impytool-1.2.1.tar.gz
.
File metadata
- Download URL: impytool-1.2.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fddcf432f3aed859aa14950ad3da3d5a733c7d879537409fbe3caa3c2b81cceb |
|
MD5 | 82046ff45ae2cc14c89f29bd154a02d9 |
|
BLAKE2b-256 | 1c20a79e9f2d909c3fb1847373d64ee6e4949aa274a7660a0246a9d2fe6c622f |