cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
var.video.Book Class Reference
Inheritance diagram for var.video.Book:
[legend]
Collaboration diagram for var.video.Book:
[legend]

Public Member Functions

def __init__ (self, **kw)
 
def read (self, dst=None)
 
- Public Member Functions inherited from var.video.VideoSynthBase
def __init__ (self, size=None, noise=0.0, bg=None, **params)
 
def render (self, dst)
 
def isOpened (self)
 

Public Attributes

 render
 
- Public Attributes inherited from var.video.VideoSynthBase
 bg
 
 frame_size
 
 noise
 

Detailed Description

Definition at line 116 of file video.py.

Constructor & Destructor Documentation

◆ __init__()

def var.video.Book.__init__ (   self,
**  kw 
)

Definition at line 117 of file video.py.

117  def __init__(self, **kw):
118  super(Book, self).__init__(**kw)
119  backGr = cv.imread(cv.samples.findFile('graf1.png'))
120  fgr = cv.imread(cv.samples.findFile('box.png'))
121  self.render = TestSceneRender(backGr, fgr, speed = 1)
122 

Member Function Documentation

◆ read()

def var.video.Book.read (   self,
  dst = None 
)

Reimplemented from var.video.VideoSynthBase.

Definition at line 123 of file video.py.

123  def read(self, dst=None):
124  noise = np.zeros(self.render.sceneBg.shape, np.int8)
125  cv.randn(noise, np.zeros(3), np.ones(3)*255*self.noise)
126 
127  return True, cv.add(self.render.getNextFrame(), noise, dtype=cv.CV_8UC3)
128 
Here is the call graph for this function:

Member Data Documentation

◆ render

var.video.Book.render

Definition at line 121 of file video.py.


The documentation for this class was generated from the following file: