Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python to make video

import cv2
import numpy as np
 

frameSize = (500, 500)

out = cv2.VideoWriter('output_video.avi',cv2.VideoWriter_fourcc(*'DIVX'), 60, frameSize)

for i in range(0,255):
    img = np.ones((500, 500, 3), dtype=np.uint8)*i
    out.write(img)

out.release()
Comment

PREVIOUS NEXT
Code Example
Python :: df.fillna(-999,inplace=True) 
Python :: python community 
Python :: python create dataframe by row 
Python :: csv file sort python 
Python :: np reshape 
Python :: sha256 python 
Python :: vscode python workding directory 
Python :: python cast to float 
Python :: python *x 
Python :: reading a file line by line using a generator 
Python :: 2d array in python 
Python :: celery timezone setting django 
Python :: how to remove some characters from a string in python 
Python :: input function in python 
Python :: uninstall python3 from source on centos 7 
Python :: binary python 
Python :: python replace with something else 
Python :: python regex to find year 
Python :: gpt-3 tokenizer python3 
Python :: check for string in list python 
Python :: how to hide ticks marks in matplotlib 
Python :: tkinter canvas text size 
Python :: decode utf8 whit python 
Python :: slicing in python 
Python :: how to revert a list python 
Python :: reversed() python 
Python :: create python executable 
Python :: Python NumPy asfarray Function Example Scalar to float type array 
Python :: flask recive list 
Python :: list_display django foreign key 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =