Home > OS >  Can I do pixlr like image edting in python
Can I do pixlr like image edting in python

Time:04-09

I want to convert this image :

image

Into this:

image

using any python image manipulation library

Simply and easily, if you know how to implement this kindly help. nb: the result shown here in done by using online image editing website pixlr

Thanks in advance.

CodePudding user response:

Well IF you are trying to change the colour of the image from colour to grayscale then you may use this.

import cv2
image = cv2.imread('/path/to/image.png') # read the image
grayscale = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # this converts to grayscale
cv2.imwrite('/path/to/destination/image.png',grayscale) # save the image

For this you have to download opencv-python by

pip install opencv-python

To change the sharpness you make try this Link

  • Related