由本地后端(serve.py,FastAPI + OpenCV)打开摄像头并做实时识别, 浏览器只显示视频流和交互控制台,无需摄像头授权,无跨域问题。 识别结果与状态由后端通过 /state 推送给前端。
serve.py
/state
--interval-ms