0

I have a signature image like this: enter image description here

I use OpenCV to save the image after preprocessing it.

cv2.imwrite('image.jpg', image)

How to save the transparent image of this? I want to keep the signature only. I have searched for it on google but I can't find the answer that I need.

huy
  • 1,648
  • 3
  • 14
  • 40
  • jpg cant have transparency – Joran Beasley Apr 29 '20 at 04:08
  • Save as PNG or TIFF. JPG does not support transparency. Or change the transparency to some non-transparent color and then save as JPG – fmw42 Apr 29 '20 at 04:12
  • @JoranBeasley so if I save as .svg file, is there a way to get the transparent image? – huy Apr 29 '20 at 04:12
  • 1
    SVG is a vector format, though it can contain an image. I would not recommend using SVG as output. Not sure that Python/OpenCV can write to that format! – fmw42 Apr 29 '20 at 04:13

0 Answers0