gocv icon indicating copy to clipboard operation
gocv copied to clipboard

cv.IMDecode is Empty

Open qing-shang opened this issue 2 years ago • 2 comments

Description

Steps to Reproduce

test.png is Transparent picture 64afd1d9e88b99d06c34be2cb4316128_fg 1.im, _ := ioutil.ReadFile("test.png") 2.resMat, err := cv.IMDecode(im, cv.IMReadColor) 3.resMat.Empty() is true

Your Environment

  • Operating System and version: ubuntu20.04
  • OpenCV version used: 4.5.5
  • How did you install OpenCV? make install_static
  • GoCV version used: 0.30.0
  • Go version: 1.18.1
  • Did you run the env.sh or env.cmd script before trying to go run or go build?

qing-shang avatar Apr 23 '22 18:04 qing-shang

But I use make install is not true

qing-shang avatar Apr 23 '22 18:04 qing-shang

I have the same issue reading .png and .webp files with transparency. When I use gocv.IMRead(imgPath, gocv.IMReadUnchanged), it works.

jscheithe avatar May 10 '23 13:05 jscheithe