with picamera.PiCamera() as camera: camera.resolution = (160, 120) # 160x120ͷղ૾ time.sleep(2) with picamera.array.PiRGBArray(camera) as frame: time.sleep(0.1) for frame in camera.capture_continuous(frame, 'bgr', use_video_port=True): image = frame.array # ͜͜Ͱ֤ϑϨʔϜͷΠϝʔδΛॲཧʢOpenCV 2Λར༻ʣ