Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

how can I convert an image to grayscale without losing transparency?

$
0
0
I'm trying to convert an image to grayscale without losing any of it's transparency. This is my code: img = cv2.imread(some_path, 0) Original image: ![image description](/upfiles/15214121276406284.png) After running the code: ![image description](/upfiles/15214123293905687.png)

Viewing all articles
Browse latest Browse all 2088

Trending Articles