diff --git a/src/picam/picam.py b/src/picam/picam.py index 4672efb..db78a5f 100644 --- a/src/picam/picam.py +++ b/src/picam/picam.py @@ -2,8 +2,8 @@ from utils.utils import round_resolution class PiCam: def __init__(self, config: dict): - self.capture_resolution = config["capture_resolution"] - self.preview_resolution = config["preview_resolution"] + self.capture_resolution = round_resolution(config["capture_resolution"]) + self.preview_resolution = round_resolution(config["preview_resolution"]) def set_capture_resolution(self, resolution: "tuple[int, int]") -> None: """Set capture resolution for camera