From a240377ba1e2e2d85c61c70ead3f07d2d9990d7f Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Thu, 13 Aug 2026 02:19:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(pybot):=20Camera=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=87=87=E9=9B=86=E5=88=86=E8=BE=A8=E7=8E=87=20640=C3=97480=20?= =?UTF-8?q?=E2=86=92=201920=C3=971080?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为 actpred 高分辨率模型训练积累 1080p 数据;@Camera 块显式 width/height 仍可覆盖默认值。 --- pybot/README.md | 2 +- pybot/pybot/hd/camera.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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