cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
var.video.Cube Class Reference
Inheritance diagram for var.video.Cube:
[legend]
Collaboration diagram for var.video.Cube:
[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 129 of file video.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 130 of file video.py.

130  def __init__(self, **kw):
131  super(Cube, self).__init__(**kw)
132  self.render = TestSceneRender(cv.imread(cv.samples.findFile('pca_test1.jpg')), deformation = True, speed = 1)
133 

Member Function Documentation

◆ read()

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

Reimplemented from var.video.VideoSynthBase.

Definition at line 134 of file video.py.

134  def read(self, dst=None):
135  noise = np.zeros(self.render.sceneBg.shape, np.int8)
136  cv.randn(noise, np.zeros(3), np.ones(3)*255*self.noise)
137 
138  return True, cv.add(self.render.getNextFrame(), noise, dtype=cv.CV_8UC3)
139 
Here is the call graph for this function:

Member Data Documentation

◆ render

var.video.Cube.render

Definition at line 132 of file video.py.


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