Added output about camera settings.

This commit is contained in:
Emiliana 2020-08-11 13:42:01 +02:00
parent f962e0391b
commit acfcfd7ea3

View file

@ -62,6 +62,7 @@ class DShowCaptureReader(VideoReader):
self.device.get_devices() self.device.get_devices()
self.name = self.device.get_device(capture) self.name = self.device.get_device(capture)
self.device.capture_device(capture, self.width, self.height, self.fps) self.device.capture_device(capture, self.width, self.height, self.fps)
print(f"Camera: \"{self.name}\" Resolution: {self.device.get_width()}x{self.device.get_height()} Frame rate: {self.device.get_fps()} Colorspace: {self.device.get_colorspace()} Flipped: {self.device.get_flipped()}")
self.timeout = 1000 self.timeout = 1000
def is_open(self): def is_open(self):
return self.device.capturing() return self.device.capturing()