python - OpenCV - Read a gray scale or monochrome image with alpha channel -


a similar question has been asked unanswered here.

how can read gray scale image in opencv alpha channel? example, if try read following image, 2d array of zeros.

enter image description here

image = cv2.imread('1.png', cv2.imread_unchanged) image.shape  (480, 960) 


Comments

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -