保持视频输出的一致性,

This commit is contained in:
GuanYuankai 2025-10-29 08:15:49 +00:00
parent 0de78cd02e
commit 975a28dfe5
3 changed files with 5 additions and 3 deletions

View File

@ -35,7 +35,7 @@
"output_rtsp": "rtsp://127.0.0.1:8554/ch1301" "output_rtsp": "rtsp://127.0.0.1:8554/ch1301"
}, },
{ {
"enabled": true, "enabled": false,
"id": "cam_02_intrusion", "id": "cam_02_intrusion",
"input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1101", "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1101",
"module_config": { "module_config": {
@ -71,7 +71,7 @@
"output_rtsp": "rtsp://127.0.0.1:8554/ch1501" "output_rtsp": "rtsp://127.0.0.1:8554/ch1501"
}, },
{ {
"enabled": true, "enabled": false,
"id": "cam_041_intrusion", "id": "cam_041_intrusion",
"input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1401", "input_url": "rtsp://admin:hzx12345@192.168.1.10:554/Streaming/Channels/1401",
"module_config": { "module_config": {

View File

@ -55,6 +55,9 @@ bool IntrusionModule::process(cv::Mat& frame) {
this->update_tracker(detection_results, frame.size()); this->update_tracker(detection_results, frame.size());
this->draw_results(frame); // 直接在传入的 frame 上绘制 this->draw_results(frame); // 直接在传入的 frame 上绘制
if (!frame.isContinuous()) {
frame = frame.clone();
}
return true; return true;
} }

View File

@ -119,7 +119,6 @@ template <typename rknnModel, typename inputType, typename outputType>
void rknnPool<rknnModel, inputType, outputType>::stop() void rknnPool<rknnModel, inputType, outputType>::stop()
{ {
spdlog::critical("!!! [RKNN_POOL_STOP_CALLED] Shutdown sequence initiated. !!!");
if (is_stopped.exchange(true)) { if (is_stopped.exchange(true)) {
return; return;
} }