MCPcopy
hub / github.com/makelove/OpenCV-Python-Tutorial / read

Method read

官方samples/video.py:92–96  ·  view source on GitHub ↗
(self, dst=None)

Source from the content-addressed store, hash-verified

90 self.render = TestSceneRender(backGr, fgr, speed = 1)
91
92 def read(self, dst=None):
93 noise = np.zeros(self.render.sceneBg.shape, np.int8)
94 cv2.randn(noise, np.zeros(3), np.ones(3)*255*self.noise)
95
96 return True, cv2.add(self.render.getNextFrame(), noise, dtype=cv2.CV_8UC3)
97
98class Cube(VideoSynthBase):
99 def __init__(self, **kw):

Callers 15

14.2平移.pyFile · 0.45
5.VideoPlay.pyFile · 0.45
5.VideoWriter.pyFile · 0.45
5.VideoCapture.pyFile · 0.45
two_camera.pyFile · 0.45
camera_compare1.pyFile · 0.45
videoLoopMethod · 0.45

Calls 2

getNextFrameMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected