Problems with .webp files
I am struggling to work with webp files - everything works fine with .png or .jpg. Did anybody else have the same issues?
e.g.
image = cv2.imread(imagePath) # Always returned NoneType so I replaced it with
cv2.cv.LoadImage(imagePath) # Returns 'No such file or directory:' where actually the file exists + python opens it if I use open
Any advice? Any examples to working with webp files?
Thanks.
try a :
print cv2.getBuildInformation()
. you should see something similar to:if it says,
WEBP NO
, it means, your cv2.pyd was build without support for it. (it's one of the 3rdParty libs, that have to be enabled during build)(oh, and btw, avoid anything from deprecated cv2.cv. it will be gone in the next version)
sorry, can't help you with installers of any kind.
i guess, you will have to build from src in that case.