OpenCV Python not opening images with imread()

后端 未结 6 513
长发绾君心
长发绾君心 2020-12-17 00:14

I\'m not entirely sure why this is happening but I am in the process of making a program and I am having tons of issues trying to get opencv to open images using imread. I k

6条回答
  •  忘掉有多难
    2020-12-17 01:08

    From my experience, file paths that are too long (OS dependent) can also cause cv2.imread() to fail.

    Also, when it does fail, it often fails silently, so it is hard to even realize that it failed, and usually something further the the code will be what sparks the error.

    Hope this helps.

提交回复
热议问题