panlei
2019-10-09 756e00d553bae59f3eddc54fa6131f155e0a6310
main.go
@@ -117,7 +117,7 @@
// 将外部传进来的rect(top,bottom,left,right)转化为自己内部的rect(left top width height)
func rectFormat(rcobj *protomsg.Rect) structure.Rect {
   //logger.Info("++++++++++++++++++++++++++++++收到的yolo的区域坐标:",rcobj)
   rect := ruleserver.Rect{}
   rect := structure.Rect{}
   rect.X = float64(rcobj.Left)
   rect.Y = float64(rcobj.Top)
   rect.Width = float64(rcobj.Right - rcobj.Left)