Learn Before
Concept
Contrast (Pillow)
ImageEnhance.Contrast() returns an object of the Contrast class when giving an image as an argument. enhance() can then be called on this object to return the enhanced image. Contrast controls the color contrast of an image. A factor of 0.0 gives a solid gray image.
contrastobj = ImageEnhance.Contrast(image) newimage = contrastobj.enhance(factor)
0
1
Updated 2021-08-07
Tags
Python Programming Language
Data Science