{ "_note": [ "现场模板:Jetson(Orin/Xavier)+ RTSP 相机 + TensorRT 后端。", "用户配置只需要写要覆盖的字段,其余自动取 portcv/config.py 的 DEFAULTS。", "用法:python -m portcv run -c configs/jetson-rtsp.json", "上线前置检查:python -m portcv doctor -c configs/jetson-rtsp.json --deep" ], "run": { "backend": "tensorrt", "max_fps": 25.0, "warmup_frames": 5, "save_on_change": true, "log_json": true }, "source": { "type": "rtsp", "uri": "rtsp://admin:passwd@192.168.1.64:554/Streaming/Channels/101", "buffer_size": 1, "reconnect_s": 2.0, "stale_frame_s": 0.6 }, "model": { "engine_path": "weights/model.plan", "input_size": [640, 640], "input_format": "rgb_float", "conf": 0.35, "nms_free": false, "quantized": false }, "plc": { "enabled": true, "push": "modbus_server", "modbus": { "host": "0.0.0.0", "port": 1502, "unit_id": 1, "input_addr": 0, "holding_addr": 0 }, "snap7": { "host": "192.168.0.10", "rack": 0, "slot": 1, "db_number": 100, "db_start": 0 }, "gating": false, "heartbeat_ms": 500 } }