0

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.

Shajin
  • 23
  • 4
  • In short you are trying to change the text?? Or the colour?? – Ruthvik Apr 08 '22 at 16:10
  • No, not the text it's actually dor demonstration. – Shajin Apr 08 '22 at 16:31
  • OpenCV is not a code writing service. Please read the help file on this system for how to ask good questions. Furthermore, if you want to duplicate some process, please post the equations for such processing. – fmw42 Apr 08 '22 at 16:48

1 Answers1

1

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

Ruthvik
  • 667
  • 3
  • 22
  • That's not only I want.I want to change contrast, brightness, sharpness, shadow etc.. – Shajin Apr 08 '22 at 16:32
  • @Shajin, I added for sharpness. I hope that remaining you can find out by searching Google or from the opencv docs. – Ruthvik Apr 08 '22 at 16:38
  • I'm actually running out of the day doe this and don't find any solution.the doc is fully complicated and all I need is something like change lighting. Documents are showin advanced topics like editing color channels – Shajin Apr 08 '22 at 16:42
  • @Shajin, all these things take some time to do. Moreover Stackoverflow is not a place to ask for complete code. Your question should be specific and relating to only one problem at a time. – Ruthvik Apr 08 '22 at 16:45