From 791b041cca702b22584fe4334957c9b2bb3fca82 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期四, 14 十一月 2019 10:57:05 +0800 Subject: [PATCH] --- --- structure/rule.go | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/structure/rule.go b/structure/rule.go index 83423a6..6a2f066 100644 --- a/structure/rule.go +++ b/structure/rule.go @@ -11,11 +11,13 @@ Score float64 // 鍖哄煙鍐呯殑鐩爣鐨勭浉浼煎害 Proportion float64 // 鍖哄煙鍐呯殑鐩爣鐨勫崰姣� Size float64 // 鍖哄煙鍐呯殑鐩爣鐨勫昂瀵� + AreaJson string // 鎵�灞炲尯鍩� IsYolo bool // 鏄惁鏄痽olo鏁版嵁 Location Rect // 璁颁笅姣忎釜鐩爣鐨勪綅缃弬鏁帮紝鏈�鍚庣粰缁撴灉瑁呴厤浜鸿劯鏁版嵁鐨勬椂鍊欑敤鐨勫埌 Feature []byte ThftRes protomsg.ThftResult Liker []*BaseInfo + CacheData ResultMsg } // 姣忎釜鍖哄煙鍐呯殑鍥剧墖鏁版嵁闆嗗悎 @@ -32,10 +34,9 @@ TargetNum int // 鍖哄煙鍐呯洰鏍囨暟閲� Args []*Arg // 鍖哄煙鍐呯洰鏍囬泦鍚� FilterData []*Arg // 杩囨护鍚庡尯鍩熷唴鐩爣闆嗗悎 + AlarmObj []*Arg // 鍖哄煙鍐呮渶鍚庢弧瓒宠鍒欑殑鐩爣 Time string // 褰撳墠鏃堕棿锛堢敤浠ュ尮閰嶆椂闂磋鍒欙級 IsEffective bool // 瑙勫垯涓槸鍚︾敤鍒颁簡姝ゅ尯鍩� - KeepRight bool // 鏄惁闈犲彸琛� - IsStatic bool // 鏄惁闈欐 } // sdk杈撳嚭鐨勫浘鐗囦笂鍗曚釜鐩爣鐨勬暟鎹� @@ -71,7 +72,7 @@ type ResultMsg struct { *protomsg.SdkMessage - RuleResult map[string]interface{} // 杩囧畬瑙勫垯鍚庢墦鐨勬爣绛� face: []FaceResult, yolo: []Result + RuleResult map[string]interface{} // 杩囧畬瑙勫垯鍚庢墦鐨勬爣绛� face: []FaceResult, yolo: []Result target } // 杩囪鍒欏簱鎵撲笂鐨勬爣绛� @@ -100,7 +101,7 @@ } // 杩囪鍒欏簱鎵撲笂鐨勬爣绛� -type FaceResult struct { +type TargetResult struct { Result Args []Arg } -- Gitblit v1.8.0