Skip to content

Commit 12bf2b9

Browse files
committed
Add missing arguments to base video driver class
1 parent 217b473 commit 12bf2b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

red_vision/utils/video_driver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def color_mode(self):
7878
"""
7979
return self._color_mode
8080

81-
def resolution_default():
81+
def resolution_default(self):
8282
"""
8383
Returns the default resolution of the camera.
8484
@@ -87,7 +87,7 @@ def resolution_default():
8787
"""
8888
raise NotImplementedError("Subclass must implement this method")
8989

90-
def resolution_is_supported():
90+
def resolution_is_supported(self, height, width):
9191
"""
9292
Returns whether the given resolution is supported by the camera.
9393
@@ -99,7 +99,7 @@ def resolution_is_supported():
9999
"""
100100
raise NotImplementedError("Subclass must implement this method")
101101

102-
def color_mode_default():
102+
def color_mode_default(self):
103103
"""
104104
Returns the default color mode of the camera.
105105
@@ -108,7 +108,7 @@ def color_mode_default():
108108
"""
109109
raise NotImplementedError("Subclass must implement this method")
110110

111-
def color_mode_is_supported():
111+
def color_mode_is_supported(self, color_mode):
112112
"""
113113
Returns the default resolution of the camera.
114114

0 commit comments

Comments
 (0)