From 4bff97b12981fb4b07c8d2036abe546c339e58c4 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期二, 19 十一月 2019 13:59:58 +0800 Subject: [PATCH] --- --- structure/rule.go | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/structure/rule.go b/structure/rule.go index 0ac2187..f5f1dcc 100644 --- a/structure/rule.go +++ b/structure/rule.go @@ -6,14 +6,15 @@ // 姣忎釜鐩爣鐨勫弬鏁帮細鐩镐技搴︼紝鍗犳瘮锛屽昂瀵� type Arg struct { - Id uint64 + Id string Uuid string Score float64 // 鍖哄煙鍐呯殑鐩爣鐨勭浉浼煎害 Proportion float64 // 鍖哄煙鍐呯殑鐩爣鐨勫崰姣� Size float64 // 鍖哄煙鍐呯殑鐩爣鐨勫昂瀵� AreaJson string // 鎵�灞炲尯鍩� - IsYolo bool // 鏄惁鏄痽olo鏁版嵁 + Type string // 璁拌浇鏁版嵁绫诲瀷 Location Rect // 璁颁笅姣忎釜鐩爣鐨勪綅缃弬鏁帮紝鏈�鍚庣粰缁撴灉瑁呴厤鐩爣鏁版嵁鐨勬椂鍊欑敤鐨勫埌 + Car *protomsg.PlateID // 杞﹁締鍙傛暟 Feature []byte ThftRes protomsg.ThftResult Liker []*BaseInfo @@ -42,10 +43,10 @@ // sdk杈撳嚭鐨勫浘鐗囦笂鍗曚釜鐩爣鐨勬暟鎹� type PhotoMap struct { - Id uint64 + Id string Rects Rect // 鐭╁舰鍖哄煙鍙傛暟 Score float64 // 鐩镐技搴﹀緱鍒嗭紙鏈夊澶х▼搴﹀儚涓�涓洰鏍囥�備汉鑴革紝浜轰綋鎴栬溅绛夌瓑锛� - IsYolo bool // 鏄惁鏄痽olo鏁版嵁 + Type string // 璁拌浇鏁版嵁绫诲瀷 ThftRes protomsg.ThftResult Feature []byte Car *protomsg.PlateID @@ -120,12 +121,13 @@ TableName string `json:"tableName"` BwType string `json:"bwType"` CompareScore float64 `json:"compareScore"` - PersonId string `json:"personId"` - PersonName string `json:"personName"` - PersonPicUrl string `json:"personPicUrl"` - PhoneNum string `json:"phoneNum"` - Sex string `json:"sex"` - IdCard string `json:"idCard"` + TargetId string `json:"targetId"` + TargetName string `json:"targetName"` + TargetPicUrl string `json:"targetPicUrl"` MonitorLevel string `json:"monitorLevel"` Content string `json:"content"` + DbLabel string `json:"labels"` + //PhoneNum string `json:"phoneNum"` + //Sex string `json:"sex"` + //IdCard string `json:"idCard"` } -- Gitblit v1.8.0