Commit 7c1c31d61823a0c1525b517bf64e56157f0dc5af

Authored by Zhao Shuaihua
2 parents b309bd27 1b57a1c5

处理合并冲突

Showing 108 changed files with 104 additions and 26 deletions
.vscode/launch.json
@@ -23,10 +23,10 @@ @@ -23,10 +23,10 @@
23 } 23 }
24 ] 24 ]
25 },{ 25 },{
26 - "name": "test", 26 + "name": "test_face",
27 "type": "cppdbg", 27 "type": "cppdbg",
28 "request": "launch", 28 "request": "launch",
29 - "program": "${workspaceFolder}/bin/test", 29 + "program": "${workspaceFolder}/bin/test_face",
30 "args": ["/opt/cmhu/data/Street.uvf","0", "0", "0"], 30 "args": ["/opt/cmhu/data/Street.uvf","0", "0", "0"],
31 "stopAtEntry": false, 31 "stopAtEntry": false,
32 "cwd": "${workspaceFolder}/bin", 32 "cwd": "${workspaceFolder}/bin",
3rdparty/spdlog-1.9.2/release/include/spdlog/async.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/async_logger-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/async_logger.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/cfg/argv.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/cfg/env.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/cfg/helpers-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/cfg/helpers.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/common-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/common.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/backtracer-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/backtracer.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/circular_q.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/console_globals.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/file_helper-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/file_helper.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/fmt_helper.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/log_msg-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/log_msg.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/log_msg_buffer-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/log_msg_buffer.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/mpmc_blocking_q.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/null_mutex.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/os-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/os.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/periodic_worker-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/periodic_worker.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/registry-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/registry.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/synchronous_factory.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/tcp_client-windows.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/tcp_client.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/thread_pool-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/thread_pool.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/details/windows_include.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bin_to_hex.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/args.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/chrono.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/color.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/compile.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/core.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/format-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/format.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/locale.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/os.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/ostream.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/printf.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/ranges.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/bundled/xchar.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/chrono.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/compile.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/fmt.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/ostr.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fmt/xchar.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/formatter.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/fwd.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/logger-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/logger.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/pattern_formatter-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/pattern_formatter.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/android_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/ansicolor_sink-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/ansicolor_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/base_sink-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/base_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/basic_file_sink-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/basic_file_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/daily_file_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/dist_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/dup_filter_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/hourly_file_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/mongo_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/msvc_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/null_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/ostream_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/qt_sinks.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/ringbuffer_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/rotating_file_sink-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/rotating_file_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/sink-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/stdout_color_sinks-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/stdout_color_sinks.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/stdout_sinks-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/stdout_sinks.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/syslog_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/systemd_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/tcp_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/win_eventlog_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/wincolor_sink-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/sinks/wincolor_sink.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/spdlog-inl.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/spdlog.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/stopwatch.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/tweakme.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/include/spdlog/version.h 100755 → 100644
3rdparty/spdlog-1.9.2/release/lib/cmake/spdlog/spdlogConfig.cmake 100755 → 100644
3rdparty/spdlog-1.9.2/release/lib/cmake/spdlog/spdlogConfigTargets-release.cmake 100755 → 100644
3rdparty/spdlog-1.9.2/release/lib/cmake/spdlog/spdlogConfigTargets.cmake 100755 → 100644
3rdparty/spdlog-1.9.2/release/lib/cmake/spdlog/spdlogConfigVersion.cmake 100755 → 100644
3rdparty/spdlog-1.9.2/release/lib/pkgconfig/spdlog.pc 100755 → 100644
1 -prefix=/opt/cmhu/vpt_ascend/3rdparty/spdlog-1.9.2/release 1 +prefix=/opt/cmhu/vpt_ascend_arm/3rdparty/spdlog-1.9.2/release
2 exec_prefix=${prefix} 2 exec_prefix=${prefix}
3 includedir=${prefix}/include 3 includedir=${prefix}/include
4 libdir=${exec_prefix}/lib 4 libdir=${exec_prefix}/lib
bin/libvpt_ascend.so deleted
No preview for this file type
bin/vpt_proj deleted
No preview for this file type
src/Makefile
1 XX = g++ 1 XX = g++
2 2
3 3
4 -PROJECT_ROOT= /opt/shzhao/vpt_ascend 4 +PROJECT_ROOT= /opt/cmhu/vpt_ascend_arm
5 5
6 DEPEND_DIR = $(PROJECT_ROOT)/bin 6 DEPEND_DIR = $(PROJECT_ROOT)/bin
7 SRC_ROOT = $(PROJECT_ROOT)/src 7 SRC_ROOT = $(PROJECT_ROOT)/src
src/ai_platform/MultiSourceProcess.cpp
@@ -241,7 +241,6 @@ int CMultiSourceProcess::InitAlgorthim(tsl_aiplatform_param vptParam){ @@ -241,7 +241,6 @@ int CMultiSourceProcess::InitAlgorthim(tsl_aiplatform_param vptParam){
241 } 241 }
242 , this); 242 , this);
243 243
244 -  
245 m_timing_snapshot_thread = new std::thread( 244 m_timing_snapshot_thread = new std::thread(
246 [](void* arg) 245 [](void* arg)
247 { 246 {
@@ -1853,4 +1852,4 @@ bool CMultiSourceProcess::CheckTime() { @@ -1853,4 +1852,4 @@ bool CMultiSourceProcess::CheckTime() {
1853 { 1852 {
1854 return false; 1853 return false;
1855 } 1854 }
1856 -}  
1857 \ No newline at end of file 1855 \ No newline at end of file
  1856 +}
src/decoder/Makefile
@@ -91,4 +91,4 @@ $(TARGET):$(OBJS) @@ -91,4 +91,4 @@ $(TARGET):$(OBJS)
91 $(XX) $(CXXFLAGS) -c $< 91 $(XX) $(CXXFLAGS) -c $<
92 92
93 clean: 93 clean:
94 - rm -f *.o $(TARGET)  
95 \ No newline at end of file 94 \ No newline at end of file
  95 + rm -f *.o $(TARGET)
src/demo/Makefile
1 XX = g++ 1 XX = g++
2 2
3 3
4 -PROJECT_ROOT= /opt/shzhao/vpt_ascend 4 +PROJECT_ROOT= /opt/cmhu/vpt_ascend_arm
5 5
6 DEPEND_DIR = $(PROJECT_ROOT)/bin 6 DEPEND_DIR = $(PROJECT_ROOT)/bin
7 SRC_ROOT = $(PROJECT_ROOT)/src 7 SRC_ROOT = $(PROJECT_ROOT)/src
@@ -15,7 +15,7 @@ JSON_ROOT = $(THIRDPARTY_ROOT)/jsoncpp-1.9.5/release @@ -15,7 +15,7 @@ JSON_ROOT = $(THIRDPARTY_ROOT)/jsoncpp-1.9.5/release
15 FFMPEG_ROOT = $(THIRDPARTY_ROOT)/ffmpeg-4.4.4/release 15 FFMPEG_ROOT = $(THIRDPARTY_ROOT)/ffmpeg-4.4.4/release
16 RABBITMQ_CLIENT_ROOT = $(THIRDPARTY_ROOT)/rabbitmq-c-0.11.0/release 16 RABBITMQ_CLIENT_ROOT = $(THIRDPARTY_ROOT)/rabbitmq-c-0.11.0/release
17 17
18 -DEFS = -DENABLE_DVPP_INTERFACE -DPOST_USE_RABBITMQ 18 +DEFS = -DENABLE_DVPP_INTERFACE -DPOST_USE_RABBITMQ -DUSE_VILLAGE
19 19
20 include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \ 20 include_dir=-I/usr/local/Ascend/ascend-toolkit/6.3.RC1/aarch64-linux/include \
21 -I $(SPDLOG_ROOT)/include \ 21 -I $(SPDLOG_ROOT)/include \
src/demo/demo.cpp
@@ -635,7 +635,9 @@ static long long get_cur_time(){ @@ -635,7 +635,9 @@ static long long get_cur_time(){
635 return tpMicro.time_since_epoch().count(); 635 return tpMicro.time_since_epoch().count();
636 } 636 }
637 637
638 -string createTask(void *handle, std::vector<algorithm_type_t> algor_vec, int gi){ 638 +static int nTaskId = 0;
  639 +
  640 +string createTask(void *handle, std::vector<algorithm_type_t> algor_vec, int gi, bool bFlag = true){
639 task_param tparam; 641 task_param tparam;
640 642
641 switch(gi){ 643 switch(gi){
@@ -643,17 +645,18 @@ string createTask(void *handle, std::vector&lt;algorithm_type_t&gt; algor_vec, int gi) @@ -643,17 +645,18 @@ string createTask(void *handle, std::vector&lt;algorithm_type_t&gt; algor_vec, int gi)
643 tparam.ipc_url = "rtsp://admin:ad123456@192.168.60.165:554/cam/realmonitor?channel=1&subtype=0"; 645 tparam.ipc_url = "rtsp://admin:ad123456@192.168.60.165:554/cam/realmonitor?channel=1&subtype=0";
644 break; 646 break;
645 case 1: 647 case 1:
646 - tparam.ipc_url = "/opt/share/data/bayue.mp4"; 648 + tparam.ipc_url = "rtsp://122.97.218.170:8604/openUrl/V5nXRHa?params=eyJwcm90b2NhbCI6InJ0c3AiLCJjbGllbnRUeXBlIjoib3Blbl9hcGkiLCJleHByaWVUaW1lIjotMSwicHJvdG9jb2wiOiJydHNwIiwiZXhwaXJlVGltZSI6MzAwLCJlbmFibGVNR0MiOnRydWUsImV4cGFuZCI6InN0YW5kYXJkPXJ0c3Amc3RyZWFtZm9ybT1ydHAiLCJhIjoiMTBjZjM4N2JjY2Y5NDg3YzhjNWYzNjE2M2ViMWUyNTJ8MXwwfDEiLCJ0IjoxfQ==";
647 break; 649 break;
648 case 2: 650 case 2:
649 - tparam.ipc_url = "/opt/share/data/Street.uvf"; 651 + tparam.ipc_url = "rtsp://admin:ad123456@192.168.10.166:554/cam/realmonitor?channel=1&subtype=0";
650 break; 652 break;
651 case 3: 653 case 3:
652 tparam.ipc_url = "rtsp://122.97.218.170:8604/openUrl/LBBYTra?params=eyJwcm90b2NhbCI6InJ0c3AiLCJjbGllbnRUeXBlIjoib3Blbl9hcGkiLCJleHByaWVUaW1lIjotMSwicHJvdG9jb2wiOiJydHNwIiwiZXhwaXJlVGltZSI6MzAwLCJlbmFibGVNR0MiOnRydWUsImV4cGFuZCI6InN0YW5kYXJkPXJ0c3Amc3RyZWFtZm9ybT1ydHAiLCJhIjoiOTgzYjRjMmUxMThlNGU1OTlkYThmMTI3NTkyMGViODV8MXwwfDEiLCJ0IjoxfQ=="; 654 tparam.ipc_url = "rtsp://122.97.218.170:8604/openUrl/LBBYTra?params=eyJwcm90b2NhbCI6InJ0c3AiLCJjbGllbnRUeXBlIjoib3Blbl9hcGkiLCJleHByaWVUaW1lIjotMSwicHJvdG9jb2wiOiJydHNwIiwiZXhwaXJlVGltZSI6MzAwLCJlbmFibGVNR0MiOnRydWUsImV4cGFuZCI6InN0YW5kYXJkPXJ0c3Amc3RyZWFtZm9ybT1ydHAiLCJhIjoiOTgzYjRjMmUxMThlNGU1OTlkYThmMTI3NTkyMGViODV8MXwwfDEiLCJ0IjoxfQ==";
653 // tparam.ipc_url = "rtsp://122.97.218.170:8604/openUrl/V5nXRHa?params=eyJwcm90b2NhbCI6InJ0c3AiLCJjbGllbnRUeXBlIjoib3Blbl9hcGkiLCJleHByaWVUaW1lIjotMSwicHJvdG9jb2wiOiJydHNwIiwiZXhwaXJlVGltZSI6MzAwLCJlbmFibGVNR0MiOnRydWUsImV4cGFuZCI6InN0YW5kYXJkPXJ0c3Amc3RyZWFtZm9ybT1ydHAiLCJhIjoiMTBjZjM4N2JjY2Y5NDg3YzhjNWYzNjE2M2ViMWUyNTJ8MXwwfDEiLCJ0IjoxfQ=="; 655 // tparam.ipc_url = "rtsp://122.97.218.170:8604/openUrl/V5nXRHa?params=eyJwcm90b2NhbCI6InJ0c3AiLCJjbGllbnRUeXBlIjoib3Blbl9hcGkiLCJleHByaWVUaW1lIjotMSwicHJvdG9jb2wiOiJydHNwIiwiZXhwaXJlVGltZSI6MzAwLCJlbmFibGVNR0MiOnRydWUsImV4cGFuZCI6InN0YW5kYXJkPXJ0c3Amc3RyZWFtZm9ybT1ydHAiLCJhIjoiMTBjZjM4N2JjY2Y5NDg3YzhjNWYzNjE2M2ViMWUyNTJ8MXwwfDEiLCJ0IjoxfQ==";
  656 + //tparam.ipc_url = "/opt/share/data/bayue.mp4";
654 break; 657 break;
655 case 4: 658 case 4:
656 - tparam.ipc_url = "rtsp://admin:ad123456@192.168.60.165:554/cam/realmonitor?channel=1&subtype=0"; 659 + tparam.ipc_url = "/opt/share/data/Street.uvf";
657 break; 660 break;
658 case 5: 661 case 5:
659 tparam.ipc_url = "/opt/share/data/公安局老桥头_CVR15F89410_1465819864_1B.mp4"; 662 tparam.ipc_url = "/opt/share/data/公安局老桥头_CVR15F89410_1465819864_1B.mp4";
@@ -661,6 +664,46 @@ string createTask(void *handle, std::vector&lt;algorithm_type_t&gt; algor_vec, int gi) @@ -661,6 +664,46 @@ string createTask(void *handle, std::vector&lt;algorithm_type_t&gt; algor_vec, int gi)
661 case 6: 664 case 6:
662 tparam.ipc_url = "/opt/share/data/不带头盔2.mp4"; 665 tparam.ipc_url = "/opt/share/data/不带头盔2.mp4";
663 break; 666 break;
  667 + case 7:
  668 + tparam.ipc_url = "/opt/share/data/caishenkezhan.mp4";
  669 + break;
  670 + case 8:
  671 + tparam.ipc_url = "/opt/share/data/1-00000001d9.mp4";
  672 + break;
  673 + case 9:
  674 + tparam.ipc_url = "/opt/share/data/1-00000002d55_h265.mp4";
  675 + break;
  676 + case 10:
  677 + tparam.ipc_url = "/opt/share/data/1-00000002d55.mp4";
  678 + break;
  679 + case 11:
  680 + tparam.ipc_url = "/opt/share/data/1.mp4";
  681 + break;
  682 + case 12:
  683 + tparam.ipc_url = "/opt/share/data/20041609451310232511_20211128090026~1.mp4";
  684 + break;
  685 + case 13:
  686 + tparam.ipc_url = "/opt/share/data/720.avi";
  687 + break;
  688 + case 14:
  689 + tparam.ipc_url = "/opt/share/data/callphone.mp4";
  690 + break;
  691 + case 15:
  692 + tparam.ipc_url = "/opt/share/data/crk2.mp4";
  693 + break;
  694 + case 16:
  695 + tparam.ipc_url = "/opt/share/data/crk3.mp4";
  696 + break;
  697 + case 17:
  698 + tparam.ipc_url = "/opt/share/data/diedao.mp4";
  699 + break;
  700 + case 18:
  701 + tparam.ipc_url = "rtsp://122.97.218.170:8604/openUrl/LBBYTra?params=eyJwcm90b2NhbCI6InJ0c3AiLCJjbGllbnRUeXBlIjoib3Blbl9hcGkiLCJleHByaWVUaW1lIjotMSwicHJvdG9jb2wiOiJydHNwIiwiZXhwaXJlVGltZSI6MzAwLCJlbmFibGVNR0MiOnRydWUsImV4cGFuZCI6InN0YW5kYXJkPXJ0c3Amc3RyZWFtZm9ybT1ydHAiLCJhIjoiOTgzYjRjMmUxMThlNGU1OTlkYThmMTI3NTkyMGViODV8MXwwfDEiLCJ0IjoxfQ==";
  702 + break;
  703 + case 19:
  704 + // 公安内网
  705 + tparam.ipc_url = "http://192.168.51.200:8554/320202202308231001001002";
  706 + break;
664 default: 707 default:
665 tparam.ipc_url = "/opt/share/data/Street.uvf"; 708 tparam.ipc_url = "/opt/share/data/Street.uvf";
666 break; 709 break;
@@ -669,9 +712,15 @@ string createTask(void *handle, std::vector&lt;algorithm_type_t&gt; algor_vec, int gi) @@ -669,9 +712,15 @@ string createTask(void *handle, std::vector&lt;algorithm_type_t&gt; algor_vec, int gi)
669 tparam.algor_counts = algor_vec.size(); 712 tparam.algor_counts = algor_vec.size();
670 tparam.dec_type = 2; 713 tparam.dec_type = 2;
671 714
672 - std::string task_id_str = "test_task_id_" + std::to_string(gi); 715 + if (bFlag){
  716 + nTaskId = gi;
  717 + }
  718 +
  719 + std::string task_id_str = "test_task_id_" + std::to_string(nTaskId);
673 tparam.task_id = task_id_str.c_str(); 720 tparam.task_id = task_id_str.c_str();
674 721
  722 + nTaskId++;
  723 +
675 tparam.algor_config_params = new algor_config_param[tparam.algor_counts]; 724 tparam.algor_config_params = new algor_config_param[tparam.algor_counts];
676 725
677 for (size_t idx = 0; idx < algor_vec.size(); ++idx) 726 for (size_t idx = 0; idx < algor_vec.size(); ++idx)
@@ -732,24 +781,54 @@ void test_gpu(int gpuID){ @@ -732,24 +781,54 @@ void test_gpu(int gpuID){
732 #endif // #ifdef POST_USE_RABBITMQ 781 #endif // #ifdef POST_USE_RABBITMQ
733 782
734 std::vector<algorithm_type_t> algor_vec = {algorithm_type_t::FACE_SNAPSHOT, algorithm_type_t::HUMAN_SNAPSHOT,algorithm_type_t::ROAD_WORK_DET, algorithm_type_t::PEDESTRIAN_RETROGRADE, algorithm_type_t::VEHICLE_RETROGRADE, 783 std::vector<algorithm_type_t> algor_vec = {algorithm_type_t::FACE_SNAPSHOT, algorithm_type_t::HUMAN_SNAPSHOT,algorithm_type_t::ROAD_WORK_DET, algorithm_type_t::PEDESTRIAN_RETROGRADE, algorithm_type_t::VEHICLE_RETROGRADE,
735 - algorithm_type_t::PEDESTRIAN_TRESPASS, algorithm_type_t::VEHICLE_TRESPASS, algorithm_type_t::VEHICLE_SNAPSHOT, algorithm_type_t::NONMOTOR_VEHICLE_SNAPSHOT, algorithm_type_t::VIDEO_TIMING_SNAPSHOT, algorithm_type_t::VIDEO_SNAPSHOT}; 784 + algorithm_type_t::PEDESTRIAN_TRESPASS, algorithm_type_t::VEHICLE_TRESPASS, algorithm_type_t::VEHICLE_SNAPSHOT, algorithm_type_t::NONMOTOR_VEHICLE_SNAPSHOT, algorithm_type_t::VIDEO_TIMING_SNAPSHOT
  785 + , algorithm_type_t::VIDEO_SNAPSHOT, algorithm_type_t::NONMOTOR_VEHICLE_NOHELMET, algorithm_type_t::NONMOTOR_VEHICLE_OVERMAN, algorithm_type_t::TRICYCLE_MANNED, algorithm_type_t::TRUCK_MANNED};
736 786
737 787
738 std::vector<algorithm_type_t> algor_vec2 = {algorithm_type_t::NONMOTOR_VEHICLE_NOHELMET, algorithm_type_t::NONMOTOR_VEHICLE_OVERMAN, algorithm_type_t::TRICYCLE_MANNED, algorithm_type_t::TRUCK_MANNED}; 788 std::vector<algorithm_type_t> algor_vec2 = {algorithm_type_t::NONMOTOR_VEHICLE_NOHELMET, algorithm_type_t::NONMOTOR_VEHICLE_OVERMAN, algorithm_type_t::TRICYCLE_MANNED, algorithm_type_t::TRUCK_MANNED};
  789 + // std::vector<algorithm_type_t> algor_vec2 = {algorithm_type_t::TRICYCLE_MANNED, algorithm_type_t::TRUCK_MANNED};
739 std::vector<algorithm_type_t> algor_vec3 = {algorithm_type_t::FACE_SNAPSHOT}; 790 std::vector<algorithm_type_t> algor_vec3 = {algorithm_type_t::FACE_SNAPSHOT};
740 791
  792 +/*
741 int repeat_num = 1000; 793 int repeat_num = 1000;
742 while(repeat_num--) { 794 while(repeat_num--) {
743 printf("============================:%d\n",repeat_num); 795 printf("============================:%d\n",repeat_num);
744 string task_id = createTask(handle, algor_vec, 3 + gpuID * 10); 796 string task_id = createTask(handle, algor_vec, 3 + gpuID * 10);
745 string task_id1 = createTask(handle, algor_vec2, 5); 797 string task_id1 = createTask(handle, algor_vec2, 5);
746 string task_id2 = createTask(handle, algor_vec2, 6); 798 string task_id2 = createTask(handle, algor_vec2, 6);
  799 +*/
  800 +
  801 + // string task_id = createTask(handle, algor_vec, 3 + gpuID * 10);
  802 + // string task_id1 = createTask(handle, algor_vec2, 5);
  803 + createTask(handle, algor_vec, 18, false);
  804 + createTask(handle, algor_vec, 18, false);
  805 + createTask(handle, algor_vec, 18, false);
  806 + createTask(handle, algor_vec, 18, false);
  807 + createTask(handle, algor_vec, 18, false);
  808 + // createTask(handle, algor_vec, 3);
  809 + // createTask(handle, algor_vec, 4);
  810 + // createTask(handle, algor_vec, 5);
  811 + // createTask(handle, algor_vec, 6);
  812 + // createTask(handle, algor_vec, 7);
  813 + // createTask(handle, algor_vec, 8);
  814 + // createTask(handle, algor_vec, 9);
  815 + // createTask(handle, algor_vec, 10);
  816 + // createTask(handle, algor_vec, 11);
  817 + // createTask(handle, algor_vec, 12);
  818 + // createTask(handle, algor_vec, 13);
  819 + // createTask(handle, algor_vec, 14);
  820 + // createTask(handle, algor_vec, 15);
  821 + // createTask(handle, algor_vec, 16);
  822 + // createTask(handle, algor_vec, 17);
  823 + // createTask(handle, algor_vec, 18);
  824 + // createTask(handle, algor_vec, 19);
  825 +/*
747 826
748 // test_snapshot(handle); 827 // test_snapshot(handle);
749 sleep(60); //60s 828 sleep(60); //60s
750 finish_task(handle, (char*)task_id2.data(), 0); 829 finish_task(handle, (char*)task_id2.data(), 0);
751 finish_task(handle, (char*)task_id1.data(), 0); 830 finish_task(handle, (char*)task_id1.data(), 0);
752 - } 831 + }*/
753 while (getchar() != 'q'); 832 while (getchar() != 'q');
754 833
755 // finish_task(handle, (char*)task_id.data(), 0); 834 // finish_task(handle, (char*)task_id.data(), 0);
@@ -762,16 +841,16 @@ void test_gpu(int gpuID){ @@ -762,16 +841,16 @@ void test_gpu(int gpuID){
762 int main(int argc, char *argv[]) { 841 int main(int argc, char *argv[]) {
763 printf("new test\n"); 842 printf("new test\n");
764 843
765 - if (argc < 4) {  
766 - fprintf(stderr, "./xxx 0 2 10 1 ## [start_ai_id, end_ai_id) repeat_num gpu_id\n");  
767 - return -1;  
768 - } 844 + // if (argc < 4) {
  845 + // fprintf(stderr, "./xxx 0 2 10 1 ## [start_ai_id, end_ai_id) repeat_num gpu_id\n");
  846 + // return -1;
  847 + // }
769 848
770 - //! load params.  
771 - int start_id = atoi(argv[1]);  
772 - int end_id = atoi(argv[2]);  
773 - int repeat_num = atoi(argv[3]);  
774 - int gpuID = atoi(argv[4]); 849 + // //! load params.
  850 + // int start_id = atoi(argv[1]);
  851 + // int end_id = atoi(argv[2]);
  852 + // int repeat_num = atoi(argv[3]);
  853 + // int gpuID = atoi(argv[4]);
775 854
776 test_gpu(0); 855 test_gpu(0);
777 // test_gpu(1); 856 // test_gpu(1);
@@ -783,4 +862,4 @@ int main(int argc, char *argv[]) { @@ -783,4 +862,4 @@ int main(int argc, char *argv[]) {
783 printf("Done.\n"); 862 printf("Done.\n");
784 863
785 return 0; 864 return 0;
786 -}  
787 \ No newline at end of file 865 \ No newline at end of file
  866 +}