📜  获取 picamera 提要 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:57.848000             🧑  作者: Mango

代码示例1
import io
import time
import picamera
with picamera.PiCamera() as camera:
    stream = io.BytesIO()
    for foo in camera.capture_continuous(stream, format='jpeg'):
        # Truncate the stream to the current position (in case
        # prior iterations output a longer image)
        stream.truncate()
        stream.seek(0)
        if process(stream):
            break