Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can I do pixlr like image edting in python

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thanks in advance.

>Solution :

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading