monkeymademe / picamera2-WebUI

This is a WebUI for the Picamera2 Library for the Raspberry Pi
MIT License
141 stars 18 forks source link

[Known Bug] Not correctly setting the sensor mode, incorrectly sets range for exposure time setting #14

Closed monkeymademe closed 7 months ago

monkeymademe commented 7 months ago

When the video stream is configured the Exposure time is not set correctly this is due to not setting the correct sensor mode at the start of the program

mode = picam2.sensor_modes[1] video_config = picam2.create_video_configuration(sensor={'output_size': mode['size'], 'bit_depth': mode['bit_depth']})

This would fix this issue and still set the resolution to half. Opens up the question if the user can set the mode later on?

monkeymademe commented 7 months ago

Fixed with with adding the sensor mode