保持视频输出的一致性,
This commit is contained in:
parent
0de78cd02e
commit
975a28dfe5
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,7 +119,6 @@ template <typename rknnModel, typename inputType, typename outputType>
|
|||
void rknnPool<rknnModel, inputType, outputType>::stop()
|
||||
{
|
||||
|
||||
spdlog::critical("!!! [RKNN_POOL_STOP_CALLED] Shutdown sequence initiated. !!!");
|
||||
if (is_stopped.exchange(true)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue