Random 3x4 px upscale Python OpenCv

Published: 07 February 2022
on channel: Jan de Jong
37
0

Grayscale random pixel video FPS 3 origina 3x4 px upscale 240x320
python opencv cv2.INTER_NEAREST
-----
import numpy as np
import cv2

size = 3,4
duration = 185
fps = 3
dim = 240,320
out = cv2.VideoWriter('outputLoFi3x4fps3.mp4', cv2.VideoWriter_fourcc(*'mp4v'), fps, (dim[1], dim[0]), False)
for _ in range(fps * duration):
data = np.random.randint(0, 256, size, dtype='uint8')
cv2.imshow("data",data)
data = cv2.resize(data,(320,240),interpolation= cv2.INTER_NEAREST)
cv2.imshow("data2",data)
out.write(data)
out.release()


On this page of the site you can watch the video online Random 3x4 px upscale Python OpenCv with a duration of hours minute second in good quality, which was uploaded by the user Jan de Jong 07 February 2022, share the link with friends and acquaintances, this video has already been watched 37 times on youtube and it was liked by 0 viewers. Enjoy your viewing!