cv2.imread() cannot read gifs
I installed OpenCV 3 using Homebrew and linked it to my Python installation. I'm following through this basic tutorial: https://opencv-python-tutroals.readth...
I'm having trouble with the first code snippet that reads an image:
import numpy as np
import cv2
# Load an color image in grayscale
img = cv2.imread('messi5.jpg',0)
I can run the code above fine if the image is a jpeg or a png, but not if it is a gif.
How do I get cv2.imread() to work on gifs?
"How do I get cv2.imread() to work on gifs?" - unfortunately, no way. there is just no support for gif
(it's still a patent/nonfree problem)