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.
MIT License
4.54k stars 1.03k forks source link

How to change Picamera parameters using the class pivideostream? #274

Closed BillieIsRunning closed 2 years ago

BillieIsRunning commented 2 years ago

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!

wernersbacher commented 2 years ago

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')
BillieIsRunning commented 2 years ago

Thanks!