Ask Your Question

kampta's profile - activity

2016-09-16 03:30:24 -0600 received badge  Enthusiast
2016-09-15 02:07:39 -0600 commented question Read a gray scale or monochrome image with alpha channel

I am using opencv 3.1 with python 3.5, let me try out the development version

2016-09-15 02:06:46 -0600 commented question Read a gray scale or monochrome image with alpha channel

Saving/loading images with alpha channels come handy while working on problems related to foreground/background extraction, object segmentation

2016-09-15 00:46:29 -0600 asked a question Read a gray scale or monochrome image with alpha channel

Repeating a question from stackoverflow.

How can I read a gray scale image in OpenCV with alpha channel? For example, if I try to read the following image, all I get is 2d array of all zeros.

C:\fakepath\1.png

image = cv2.imread('1.png', cv2.IMREAD_UNCHANGED)
image.shape

(480, 960)
2016-03-30 05:09:06 -0600 received badge  Supporter (source)