main.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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)