Skip to content

Commit

Permalink
Added output about camera settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilianavt committed Aug 11, 2020
1 parent f962e03 commit acfcfd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions input_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit acfcfd7

Please sign in to comment.