Skip to content

Commit 634d4a4

Browse files
committed
bug fix, moved width and height out of config
1 parent c7ab98a commit 634d4a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/camera/camera_picamera2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def create(
9292
camera = picamera2.Picamera2()
9393

9494
camera_config = camera.create_preview_configuration(
95-
{"size": (config.image_width, config.image_height), "format": "RGB888"}
95+
{"size": (width, height), "format": "RGB888"}
9696
)
9797
camera.configure(camera_config)
9898
camera.start()
@@ -106,7 +106,7 @@ def create(
106106
def __init__(
107107
self,
108108
class_private_create_key: object,
109-
camera: "picamera2.Picamera2",
109+
camera: picamera2.Picamera2,
110110
config: ConfigPiCamera2,
111111
) -> None:
112112
"""

0 commit comments

Comments
 (0)