免费A级毛片无码专区网站-成人国产精品视频一区二区-啊 日出水了 用力乖乖在线-国产黑色丝袜在线观看下-天天操美女夜夜操美女-日韩网站在线观看中文字幕-AV高清hd片XXX国产-亚洲av中文字字幕乱码综合-搬开女人下面使劲插视频

2022-11-4 VideoPipe可視化視頻結(jié)構(gòu)化框架新增功能詳解

VideoPipe從國慶節(jié)上線源代碼到現(xiàn)在經(jīng)歷過了一個月時間 , 期間吸引了若干小伙伴的參與 , 現(xiàn)將本階段新增內(nèi)容總結(jié)如下 , 有興趣的朋友可以加微信拉群交流 。
項目地址:https://github.com/sherlockchou86/video_pipe_c
以往文章:https://www.cnblogs.com/xiaozhi_5638/p/16767917.html
跟蹤插件新增了跟蹤插件 , 同時實現(xiàn)了默認的SORT目標跟蹤算法 , 后期擴展Deep SORT算法非常方便 。下面是車輛跟蹤的效果(底部是pipe運行狀態(tài)圖):

2022-11-4 VideoPipe可視化視頻結(jié)構(gòu)化框架新增功能詳解

文章插圖
下面是人臉跟蹤的效果:
2022-11-4 VideoPipe可視化視頻結(jié)構(gòu)化框架新增功能詳解

文章插圖
錄像和截圖插件新增了錄像截圖插件 , 同時提供了一個人工模擬錄像或截圖的接口供測試 。當用戶向管道中發(fā)送錄像、截圖控制指令時 , 錄像截圖插件就開始異步工作 。下面是異步錄像原理:
2022-11-4 VideoPipe可視化視頻結(jié)構(gòu)化框架新增功能詳解

文章插圖
日志庫新增了一個輕量級的日志庫 , 支持多線程異步日志寫入、支持日志文件自動拆分 。日志沒使用第三方庫 , 下面是日志使用方法和效果:
1 // log level 2 VP_SET_LOG_LEVEL(_log_level); 3 // log file dir 4 VP_SET_LOG_DIR(_log_dir); 5 6 // log to console or not 7 VP_SET_LOG_TO_CONSOLE(_log_to_console); 8 // log to file or not 9 VP_SET_LOG_TO_FILE(_log_to_file);10 // TO-DO11 VP_SET_LOG_TO_KAFKA(_log_to_kafka);1213 // include log level or not14 VP_SET_LOG_INCLUDE_LEVEL(_include_level);15 // include code location or not (where the log occurs)16 VP_SET_LOG_INCLUDE_CODE_LOCATION(_include_code_location);17 // include thread id or not (std::this_thread::get_id())18 VP_SET_LOG_INCLUDE_THREAD_ID(_include_thread_id);1920 // warn if log cache in memory exceed this value21 VP_SET_LOG_CACHE_WARN_THRES(_log_cache_warn_threshold); 1 [2022-11-04 14:12:47.218][Info ] [file_src_0] reading frame complete, total frame==>354 2 [2022-11-04 14:12:47.219][Info ] [file_src_0] cycle flag is true, continue! 3 [2022-11-04 14:15:23.416][Warn ][7ffff7f81000][../nodes/vp_infer_node.cpp:39] [vehicle_detector] cv::dnn::readNet load network failed! 4 [2022-11-04 14:15:24.227][Info ][7ffff7f81000][../nodes/vp_screen_des_node.cpp:14] [screen_des_0] [appsrc ! videoconvert ! textoverlay text=screen_des_0 halignment=left valignment=top font-desc='Sans,16' shaded-background=true ! timeoverlay halignment=right valignment=top font-desc='Sans,16' shaded-background=true ! queue ! fpsdisplaysink video-sink=ximagesink sync=false] 5 [2022-11-04 14:15:24.227][Info ][7ffff7f81000][../utils/analysis_board/../vp_pipe_checker.h:167] 6 ############# pipe check summary ############## 7total layers: 5 8layer index,node names 91file_src_0,102vehicle_detector,113track_0,124osd_0,135screen_des_0,14 ############# pipe check summary ##############1516 [2022-11-04 14:16:04.638][Info ][7fff47318700][../nodes/vp_file_src_node.cpp:66] [file_src_0] reading frame complete, total frame==>99917 [2022-11-04 14:16:04.639][Info ][7fff47318700][../nodes/vp_file_src_node.cpp:68] [file_src_0] cycle flag is true, continue!18 [2022-11-04 14:16:45.258][Info ][7fff47318700][../nodes/vp_file_src_node.cpp:66] [file_src_0] reading frame complete, total frame==>199919 [2022-11-04 14:16:45.259][Info ][7fff47318700][../nodes/vp_file_src_node.cpp:68] [file_src_0] cycle flag is true, continue!20 [2022-11-04 14:17:25.838][Info ][7fff47318700][../nodes/vp_file_src_node.cpp:66] [file_src_0] reading frame complete, total frame==>299921 [2022-11-04 14:17:25.839][Info ][7fff47318700][../nodes/vp_file_src_node.cpp:68] [file_src_0] cycle flag is true, continue!22 [2022-11-04 14:18:06.498][Info ][7fff47318700][../nodes/vp_file_src_node.cpp:66] [file_src_0] reading frame complete, total frame==>3999

經(jīng)驗總結(jié)擴展閱讀