From e6068ff0e42765d32ff4e0ee0e8e51cf7d79b7da Mon Sep 17 00:00:00 2001 From: ila <2+ila@noreply.git.ilapage.cn> Date: Fri, 28 Aug 2026 23:26:11 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=AE=B0=E5=BD=95=20Brain=20=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E7=BA=B5=E5=88=87=E5=91=BD=E4=BB=A4=20(#16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Local-Development-and-Verification.-.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Local-Development-and-Verification.-.md b/Local-Development-and-Verification.-.md index 7571eb1..d417324 100644 --- a/Local-Development-and-Verification.-.md +++ b/Local-Development-and-Verification.-.md @@ -604,3 +604,15 @@ Brain\.venv\Scripts\python.exe -m pytest Brain/tests -q 定向测试覆盖区域外/进入/内部、边界点、正反方向、贴线 deadband、无效多边形/警戒线、重复 ID 和 Profile/分辨率不匹配;只使用合成归一化几何与匿名轨迹。 + + +## Brain 独立纵切运行与验证 + +```powershell +Brain\.venv\Scripts\python.exe -m pytest Brain/tests/events Brain/tests/app -q +Brain\.venv\Scripts\python.exe -m pytest Brain/tests -q +Brain\.venv\Scripts\python.exe -m yovision_brain.app --config Brain\tests\fixtures\events\area.json --output - +``` + +CLI 将内部事件 JSON Lines 写入 stdout,并把 completed/cancelled、帧数、检测数和事件数摘要写入 stderr。配置文件必须显式提供,当前使用 JSON;无命中正常返回零事件,读取/配置/模块失败返回非零且不回显机器路径。命令不启动 Sense/Bell、不连接摄像头或网络。 +