def update(self):
self.stream_fps.start()
# keep looping infinitely until the thread is stopped
for frameBuf in self.stream:
self.stream_fps.update()
# grab the frame from the stream and clear the stream in preparation for the next frame
self.frame = np.rot90(frameBuf.array)
self.rawCapture.truncate(0)
# if the thread indicator variable is set, stop the thread
if self.running == False:
self.camera.led = False
return
评论列表
文章目录