from skimage import io
ModuleNotFoundError: No module named 'skvideo'
pip install scikit-video
import skvideo.io
# a frame from the bigbuckbunny sequence
vid = skvideo.io.vread('fire1.jpg')
T, M, N, C = vid.shape
print("Number of frames: %d" % (T,))
print("Number of rows: %d" % (M,))
print("Number of cols: %d" % (N,))
print("Number of channels: %d" % (C,))
# upsacle by a factor of 2
vid = skvideo.io.vread(
'fire1.jpg', outputdict={
"-sws_flags": "bilinear",
"-s": "2560x1440"
})
T, M, N, C = vid.shape
print("Number of frames: %d" % (T,))
print("Number of rows: %d" % (M,))
print("Number of cols: %d" % (N,))
print("Number of channels: %d" % (C,))
skvideo.io.vwrite("outputplus.png", vid)