Definition at line 116 of file video.py.
◆ __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)
◆ 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)
127 return True, cv.add(self.render.getNextFrame(), noise, dtype=cv.CV_8UC3)
◆ render
The documentation for this class was generated from the following file:
- repos_for_Dox/cFp_Zoo/HOST/vision/common/languages/python/var/video.py