PyImageSearch / imutils

A series of convenience functions to make basic image processing operations such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change Picamera parameters using the class pivideostream?

BillieIsRunning opened this issue · comments

Hello everyone,

I'm working on a python script which is used to capture videos at high framerates. Imutils and the picamera_fps_demo.py work well, but there is one issue. For my project, I have to adjust some of the camera parameters (ISO, shutter speed, ...). Can you tell me how to change these settings?

Thanks a lot for your help!

Regards!

It should be possible via kargs:

vs = VideoStream(usePiCamera=True,
				 resolution=(400, 300),
				 iso=400,
				 framerate=20,
				 shutter_speed=int(1_000_000 * shutter_speed_seconds),
				 awb_mode='off',
				 exposure_mode='off')

Thanks!