Skip to content

Commit f6eead8

Browse files
committed
refactor: change default image serialization format
1 parent 8979656 commit f6eead8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arduino/app_peripherals/camera/websocket_camera.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(
4040
host: str = "0.0.0.0",
4141
port: int = 8080,
4242
timeout: int = 10,
43-
frame_format: str = "base64",
43+
frame_format: str = "binary",
4444
resolution: Optional[Tuple[int, int]] = (640, 480),
4545
fps: int = 10,
4646
adjustments: Optional[Callable[[np.ndarray], np.ndarray]] = None,
@@ -52,7 +52,7 @@ def __init__(
5252
host (str): Host address to bind the server to (default: "0.0.0.0")
5353
port (int): Port to bind the server to (default: 8080)
5454
timeout (int): Connection timeout in seconds (default: 10)
55-
frame_format (str): Expected frame format from clients ("base64", "json", "binary") (default: "base64")
55+
frame_format (str): Expected frame format from clients ("base64", "json", "binary") (default: "binary")
5656
resolution (tuple, optional): Resolution as (width, height). None uses default resolution.
5757
fps (int): Frames per second to capture from the camera.
5858
adjustments (callable, optional): Function or function pipeline to adjust frames that takes

0 commit comments

Comments
 (0)