lishengyin hace 2 años
padre
commit
21ec83ec93
Se han modificado 51 ficheros con 36 adiciones y 1167 borrados
  1. 0 1
      data/state/fdState
  2. BIN
      lib/libmodules.so
  3. BIN
      lib/libmyplugins.so
  4. 1 3
      modules/HttpClient/src/HttpClient.cpp
  5. 22 11
      modules/inference/src/inference.cpp
  6. 10 15
      modules/userApp/src/user_app.cpp
  7. BIN
      source/bin/gstshark_2022-10-09_09:31:44/datastream
  8. BIN
      source/bin/gstshark_2022-10-09_09:32:21/datastream
  9. BIN
      source/bin/gstshark_2022-10-09_09:37:45/datastream
  10. BIN
      source/bin/gstshark_2022-10-09_09:39:30/datastream
  11. 0 66
      source/bin/gstshark_2022-10-09_09:39:30/metadata
  12. BIN
      source/bin/gstshark_2022-10-09_09:40:06/datastream
  13. 0 66
      source/bin/gstshark_2022-10-09_09:40:06/metadata
  14. BIN
      source/bin/gstshark_2022-10-09_09:49:18/datastream
  15. 0 66
      source/bin/gstshark_2022-10-09_09:49:18/metadata
  16. BIN
      source/bin/gstshark_2022-10-09_09:51:42/datastream
  17. 0 66
      source/bin/gstshark_2022-10-09_09:51:42/metadata
  18. BIN
      source/bin/gstshark_2022-10-09_09:51:50/datastream
  19. 0 66
      source/bin/gstshark_2022-10-09_09:51:50/metadata
  20. BIN
      source/bin/gstshark_2022-10-09_09:59:36/datastream
  21. 0 66
      source/bin/gstshark_2022-10-09_09:59:36/metadata
  22. BIN
      source/bin/gstshark_2022-10-09_10:02:14/datastream
  23. 0 66
      source/bin/gstshark_2022-10-09_10:02:14/metadata
  24. BIN
      source/bin/gstshark_2022-10-09_10:05:06/datastream
  25. 0 66
      source/bin/gstshark_2022-10-09_10:05:06/metadata
  26. BIN
      source/bin/gstshark_2022-10-09_10:05:16/datastream
  27. 0 66
      source/bin/gstshark_2022-10-09_10:05:16/metadata
  28. BIN
      source/bin/gstshark_2022-10-09_10:06:57/datastream
  29. 0 66
      source/bin/gstshark_2022-10-09_10:06:57/metadata
  30. BIN
      source/bin/gstshark_2022-10-09_10:08:48/datastream
  31. 0 66
      source/bin/gstshark_2022-10-09_10:08:48/metadata
  32. BIN
      source/bin/gstshark_2022-10-09_10:32:08/datastream
  33. 0 66
      source/bin/gstshark_2022-10-09_10:32:08/metadata
  34. 0 66
      source/bin/gstshark_2022-10-09_10:32:14/metadata
  35. BIN
      source/bin/gstshark_2022-10-09_10:35:48/datastream
  36. 0 66
      source/bin/gstshark_2022-10-09_10:35:48/metadata
  37. BIN
      source/bin/gstshark_2022-10-09_10:48:18/datastream
  38. 0 66
      source/bin/gstshark_2022-10-09_10:48:18/metadata
  39. BIN
      source/bin/gstshark_2022-10-09_10:49:42/datastream
  40. 0 66
      source/bin/gstshark_2022-10-09_10:49:42/metadata
  41. BIN
      source/bin/gstshark_2022-10-09_10:51:21/datastream
  42. 0 66
      source/bin/gstshark_2022-10-09_10:51:21/metadata
  43. BIN
      source/bin/gstshark_2022-10-09_14:47:37/datastream
  44. 0 0
      source/bin/gstshark_2022-10-09_14:47:37/metadata
  45. BIN
      source/bin/gstshark_2022-10-09_14:49:13/datastream
  46. 0 0
      source/bin/gstshark_2022-10-09_14:49:13/metadata
  47. 0 0
      source/bin/gstshark_2022-10-09_14:50:15/datastream
  48. 0 0
      source/bin/gstshark_2022-10-09_14:50:15/metadata
  49. BIN
      source/config/FP16/yolov5s.engine
  50. 1 1
      source/config/config_infer_primary_yoloV5.txt
  51. 2 14
      start.sh

+ 0 - 1
data/state/fdState

@@ -1 +0,0 @@
-0

BIN
lib/libmodules.so


BIN
lib/libmyplugins.so


+ 1 - 3
modules/HttpClient/src/HttpClient.cpp

@@ -4,7 +4,7 @@
  * @Autor: lishengyin
  * @Date: 2021-11-03 14:08:57
  * @LastEditors: lishengyin
- * @LastEditTime: 2022-01-05 10:34:50
+ * @LastEditTime: 2022-10-10 09:01:06
  */
 
 #include "HttpClient.h"
@@ -265,7 +265,6 @@ namespace MIVA
      * @return {*}
      */    
     int32_t HttpClient::GetSystemConfig(){
-        
         return OK;
     }
 
@@ -291,5 +290,4 @@ namespace MIVA
     bool HttpClient::alive(){
         return this->authToken  == "" ? false : true;
     }
-    
 } // namespace MIVA

+ 22 - 11
modules/inference/src/inference.cpp

@@ -4,7 +4,7 @@
  * @Autor: lishengyin
  * @Date: 2021-10-13 09:35:37
  * @LastEditors: lishengyin
- * @LastEditTime: 2022-10-09 10:50:38
+ * @LastEditTime: 2022-10-11 09:38:19
  */
 #include "inference.h"
 
@@ -58,10 +58,22 @@ map<string, map<int, queue<std::shared_ptr<cv::Mat>>>> m_frames;
 namespace MIVA{
     ThreadPool pool(4,ThreadPool::PRIORITY_HIGHEST, false);
     std::shared_ptr<Inference> m_Inference = nullptr;
+
+    /**
+     * @description: Inference
+     * @param {*}
+     * @return {*}
+     */    
     Inference::Inference()
     {
         
     }
+
+    /**
+     * @description: ~
+     * @param {*}
+     * @return {*}
+     */    
     Inference::~Inference()
     {
         this->m_InferInfo = NULL;
@@ -162,18 +174,11 @@ namespace MIVA{
             g_object_set (G_OBJECT (this->pgie), "batch-size", g_num_sources, NULL);
         }
         
-        // this->tiler_rows = (guint) sqrt (g_num_sources);
-        // this->tiler_columns = (guint) ceil (1.0 * g_num_sources / this->tiler_rows);
-
-        // /* we set the tiler properties here */
-        // g_object_set (G_OBJECT (this->tiler), "rows", this->tiler_rows, "columns", this->tiler_columns,
-        //     "width", TILED_OUTPUT_WIDTH, "height", TILED_OUTPUT_HEIGHT, NULL);
-
+        
         g_object_set (G_OBJECT (this->nvosd), "process-mode", OSD_PROCESS_MODE,
             "display-text", OSD_DISPLAY_TEXT, NULL);
         g_object_set (G_OBJECT (this->nvosd), "display-bbox", 0, NULL);
-        // g_object_set (G_OBJECT (this->nvosd), "display-mask", 0, NULL);
-        
+      
         g_object_set (G_OBJECT (this->sink), "qos", 0, NULL);
 
         this->bus = gst_pipeline_get_bus (GST_PIPELINE (this->pipeline));
@@ -191,7 +196,7 @@ namespace MIVA{
 
         // this->tiler, this->queue4,
         // this->nvosd, this->queue4,
-    
+        
         this->tiler_sink_pad = gst_element_get_static_pad (this->nvvidconv, "src");
         gst_pad_add_probe (this->tiler_sink_pad, GST_PAD_PROBE_TYPE_BUFFER,
                 tiler_sink_pad_buffer_probe, NULL, NULL);
@@ -398,6 +403,7 @@ namespace MIVA{
                     }
                 }
             }
+
             recorder::Ptr m_recorder = recorder::CreateNew();
 
             if(m_recorder->RecordEnable){
@@ -498,6 +504,11 @@ namespace MIVA{
         return GST_PAD_PROBE_OK;
     }
 
+    /**
+     * @description: 记录
+     * @param {*}
+     * @return {*}
+     */    
     int32_t Inference::Recorder()
     {
         if(m_frames.size() == 0) return -1;

+ 10 - 15
modules/userApp/src/user_app.cpp

@@ -4,7 +4,7 @@
  * @Autor: lishengyin
  * @Date: 2021-10-13 09:35:42
  * @LastEditors: lishengyin
- * @LastEditTime: 2022-10-09 10:05:25
+ * @LastEditTime: 2022-10-11 09:22:36
  */
 #include "user_app.h"
 
@@ -17,6 +17,9 @@ bool outState = false;
 
 namespace MIVA
 {  
+
+    ThreadPool m_pool(2 ,ThreadPool::PRIORITY_HIGHEST, false);
+    
     /**
      * @description: 创建对象
      * @param {*}
@@ -77,7 +80,7 @@ namespace MIVA
         #endif //defined(SUPPORT_DYNAMIC_TEMPLATE)
 
         // 初始化数据库连接池
-        SqlPool::Instance().setSize(15 + thread::hardware_concurrency());
+        SqlPool::Instance().setSize(5 + thread::hardware_concurrency());
 
         #if defined(CREATEDB)
             vector<vector<string>> sql;
@@ -124,10 +127,6 @@ namespace MIVA
         this->m_udpClient = Socket::createSocket();
         this->m_udpClient->bindUdpSock(this->PIS_port);
 
-         // 清洗旧数据
-        // SqlWriter sqlTruncate("truncate table MIVA_DB.InferRecord");
-        // sqlTruncate << sqlRet;
-        
         SqlWriter sqlUpdata("UPDATE MIVA_DB.DataSources SET Num=0,finish=0");
 
         sqlUpdata << sqlRet;
@@ -195,7 +194,10 @@ namespace MIVA
 
         // 监听推理完成
         NoticeCenter::Instance().addListener(0, NOTICE_INFEREPER,[&](){
-                this->ListenInferPer();
+                m_pool.async([&](){
+                    this->ListenInferPer();
+                });
+                m_pool.start();
         });
 
         // 推出循环
@@ -503,11 +505,7 @@ namespace MIVA
      * @author: lishengyin
      */    
     void UserApp::ListenNettyData(const Buffer::Ptr &pBuf)
-    {
-        // 对Netty端的接口
-        // std::string json;
-        // memcpy((uint8_t *)(&json), (uint8_t *)(pBuf->data()), pBuf->size());
-        
+    {  
     }
 
     /**
@@ -750,9 +748,6 @@ namespace MIVA
                     this->m_Infer->CheckTask();
                     this->m_manager->recordTimeOut();
                     WarnL << "此次推理时间过长" << endl;
-                    // if(this->m_manager->getResetPower() == OK){
-                    //     this->m_manager->Reset();
-                    // }
                 }else{
                     this->m_manager->clearRecordTimeOut();
                 }

BIN
source/bin/gstshark_2022-10-09_09:31:44/datastream


BIN
source/bin/gstshark_2022-10-09_09:32:21/datastream


BIN
source/bin/gstshark_2022-10-09_09:37:45/datastream


BIN
source/bin/gstshark_2022-10-09_09:39:30/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_09:39:30/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_09:40:06/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_09:40:06/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_09:49:18/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_09:49:18/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_09:51:42/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_09:51:42/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_09:51:50/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_09:51:50/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_09:59:36/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_09:59:36/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:02:14/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:02:14/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:05:06/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:05:06/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:05:16/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:05:16/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:06:57/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:06:57/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:08:48/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:08:48/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:32:08/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:32:08/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

+ 0 - 66
source/bin/gstshark_2022-10-09_10:32:14/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:35:48/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:35:48/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:48:18/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:48:18/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:49:42/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:49:42/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_10:51:21/datastream


+ 0 - 66
source/bin/gstshark_2022-10-09_10:51:21/metadata

@@ -1,66 +0,0 @@
-/* CTF 1.8 */
-typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
-typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
-typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
-typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
-
-trace {
-    major = 1;
-    minor = 3;
-    uuid = "d18e6374-35a1-cd42-8e70-a9cffa712793";
-    byte_order = le;
-    packet.header := struct {
-        uint32_t magic;
-        uint8_t  uuid[16];
-        uint32_t stream_id;
-    };
-};
-
-clock { 
-    name = monotonic; 
-    uuid = "84db105b-b3f4-4821-b662-efc51455106a"; 
-    description = "Monotonic Clock"; 
-    freq = 1000000; /* Frequency, in Hz */ 
-    /* clock value offset from Epoch is: offset * (1/freq) */ 
-    offset_s = 21600; 
-};
-
-typealias integer {
-    size = 32; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint32_clock_monotonic_t;
-
-typealias integer {
-    size = 64; align = 8; signed = false;
-    map = clock.monotonic.value;
-} := uint64_clock_monotonic_t;
-
-struct packet_context {
-    uint64_clock_monotonic_t timestamp_begin;
-    uint64_clock_monotonic_t timestamp_end;
-};
-
-struct event_header {
-    enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id;
-    variant <id> {
-        struct {
-            uint32_t timestamp;
-        } compact;
-        struct {
-            uint32_t id;
-            uint64_t timestamp;
-        } extended;
-    } v;
-} align(8);
-
-stream {
-    id = 0;
-    event.header := struct event_header;
-    packet.context := struct packet_context;
-};
-
-event {
-    name = init;
-    id = 0;
-    stream_id = 0;
-};

BIN
source/bin/gstshark_2022-10-09_14:47:37/datastream


+ 0 - 0
source/bin/gstshark_2022-10-09_09:31:44/metadata → source/bin/gstshark_2022-10-09_14:47:37/metadata


BIN
source/bin/gstshark_2022-10-09_14:49:13/datastream


+ 0 - 0
source/bin/gstshark_2022-10-09_09:32:21/metadata → source/bin/gstshark_2022-10-09_14:49:13/metadata


+ 0 - 0
source/bin/gstshark_2022-10-09_10:32:14/datastream → source/bin/gstshark_2022-10-09_14:50:15/datastream


+ 0 - 0
source/bin/gstshark_2022-10-09_09:37:45/metadata → source/bin/gstshark_2022-10-09_14:50:15/metadata


BIN
source/config/FP16/yolov5s.engine


+ 1 - 1
source/config/config_infer_primary_yoloV5.txt

@@ -42,7 +42,7 @@ net-scale-factor=0.0039215697906911373
 model-color-format=0
 # custom-network-config=yolov3-tiny.cfg
 # model-file=yolov3-tiny.weights
-model-engine-file=./INT8/yolov5s.engine
+model-engine-file=./FP16/yolov5s.engine
 labelfile-path=labels.txt
 process-mode=1
 batch-size=12

+ 2 - 14
start.sh

@@ -1,17 +1,5 @@
 #!/bin/bash
 
-# 开启fd监控
-# cd ./tooks/
-# nohup  watch -n 1 ./cheack_fd.sh &
-# cd ../
-rm ${HOME}/.cache/gstreamer-1.0/registry.*
-
+unset DISPLAY
 cd ./source/bin/
-
-#while true
-# do
-    LD_PRELOAD=../../lib/libmyplugins.so ./main
-    # sleep 1
-    # date="`date '+%Y-%m-%d %H:%M:%S'`"
-    # echo "$date MIVA重启任务" >> MIVA.log
-#done
+LD_PRELOAD=../../lib/libmyplugins.so ./main