From 975a28dfe57c41e509b955b6b0aa7d87c16bda43 Mon Sep 17 00:00:00 2001 From: GuanYuankai Date: Wed, 29 Oct 2025 08:15:49 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E6=8C=81=E8=A7=86=E9=A2=91=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E4=B8=80=E8=87=B4=E6=80=A7=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.json | 4 ++-- src/algorithm/IntrusionModule.cc | 3 +++ src/rknn/rknnPool.hpp | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/config.json b/config/config.json index 6612e6b..9624a85 100644 --- a/config/config.json +++ b/config/config.json @@ -35,7 +35,7 @@ "output_rtsp": "rtsp://127.0.0.1:8554/ch1301" }, { - "enabled": true, + "enabled": false, "id": "cam_02_intrusion", "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1101", "module_config": { @@ -71,7 +71,7 @@ "output_rtsp": "rtsp://127.0.0.1:8554/ch1501" }, { - "enabled": true, + "enabled": false, "id": "cam_041_intrusion", "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1401", "module_config": { diff --git a/src/algorithm/IntrusionModule.cc b/src/algorithm/IntrusionModule.cc index 9a93393..68bd3a7 100644 --- a/src/algorithm/IntrusionModule.cc +++ b/src/algorithm/IntrusionModule.cc @@ -55,6 +55,9 @@ bool IntrusionModule::process(cv::Mat& frame) { this->update_tracker(detection_results, frame.size()); this->draw_results(frame); // 直接在传入的 frame 上绘制 + if (!frame.isContinuous()) { + frame = frame.clone(); + } return true; } diff --git a/src/rknn/rknnPool.hpp b/src/rknn/rknnPool.hpp index 370804e..f695452 100644 --- a/src/rknn/rknnPool.hpp +++ b/src/rknn/rknnPool.hpp @@ -119,7 +119,6 @@ template void rknnPool::stop() { - spdlog::critical("!!! [RKNN_POOL_STOP_CALLED] Shutdown sequence initiated. !!!"); if (is_stopped.exchange(true)) { return; }