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; }