diff --git a/pybot/README.md b/pybot/README.md index 5bc5664..b907232 100644 --- a/pybot/README.md +++ b/pybot/README.md @@ -62,7 +62,7 @@ venv/bin/python -m pytest tests/ -v ``` @Camera name width height framerate capacity; - cam0 640 480 30 4; + cam0 1920 1080 30 4; @ ``` diff --git a/pybot/pybot/hd/camera.py b/pybot/pybot/hd/camera.py index d8b5287..cb63569 100644 --- a/pybot/pybot/hd/camera.py +++ b/pybot/pybot/hd/camera.py @@ -27,7 +27,7 @@ class Camera: grabber: 可注入的抓帧回调(测试用),None = 用 picamera2 抓帧。 """ - def __init__(self, width=640, height=480, framerate=30.0, capacity=4, + def __init__(self, width=1920, height=1080, framerate=30.0, capacity=4, grabber=None, dry_run=False): self.width = width self.height = height