Added output about camera settings.
This commit is contained in:
parent
f962e0391b
commit
acfcfd7ea3
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue