From acfcfd7ea350ce4b341ea8a5db7c03dfbb5c1f72 Mon Sep 17 00:00:00 2001 From: Emiliana <38952746+emilianavt@users.noreply.github.com> Date: Tue, 11 Aug 2020 13:42:01 +0200 Subject: [PATCH] Added output about camera settings. --- input_reader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/input_reader.py b/input_reader.py index b608a0f..511be3c 100644 --- a/input_reader.py +++ b/input_reader.py @@ -62,6 +62,7 @@ def __init__(self, capture, width, height, fps, use_dshowcapture=True): self.device.get_devices() self.name = self.device.get_device(capture) 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 def is_open(self): return self.device.capturing()