IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Namespaces | Variables
vid_compress.py File Reference

Namespaces

 scripts.vid_compress
 

Variables

 cap = cv2.VideoCapture(vid_file)
 
int count = 0
 
 fourcc = cv2.VideoWriter_fourcc(*'XVID')
 
 fps = cap.get(5)
 
int fps_new = 5
 
 frame = cv2.resize(frame, size_new)
 
int frame_skip_rate = fps / fps_new
 
 height = cap.get(4)
 
 out = cv2.VideoWriter(vid_compress_file, fourcc, fps_new, size_new)
 
 ret
 
tuple size_new = (int(width), int(height))
 
float size_ratio = 0.5
 
string vid_compress_file = vid_compress_name + ".avi"
 
string vid_compress_name = vid_name + "_compress"
 
string vid_file = vid_name + ".avi"
 
string vid_name = "puzzle_play_sort"
 
 width = cap.get(3)