cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
video.py File Reference

Go to the source code of this file.

Classes

class  var.video.VideoSynthBase
 
class  var.video.Book
 
class  var.video.Cube
 
class  var.video.Chess
 

Namespaces

 var.video
 

Functions

def var.video.create_capture (source=0, fallback=presets['chess'])
 

Variables

 var.video.classes = dict(chess=Chess, book=Book, cube=Cube)
 
 var.video.presets
 
 var.video.args = dict(args)
 
 var.video.sources = [ 0 ]
 
 var.video.shotdir = args.get('--shotdir', '.')
 
 var.video.caps = list(map(create_capture, sources))
 
int var.video.shot_idx = 0
 
list var.video.imgs = []
 
 var.video.ret
 
 var.video.img
 
 var.video.ch = cv.waitKey(1)
 
string var.video.fn = '%s/shot_%d_%03d.bmp' % (shotdir, i, shot_idx)