Commit 343a7e94 by liulongfei

目标框样式

parent 514b6b74
...@@ -103,6 +103,7 @@ namespace VIZ.H2V.Module ...@@ -103,6 +103,7 @@ namespace VIZ.H2V.Module
continue; continue;
TrackingBoxInfo info = new TrackingBoxInfo(); TrackingBoxInfo info = new TrackingBoxInfo();
info.Type = TrackingBoxStyle.Rectangle_Corner;
info.SrcRect = rect; info.SrcRect = rect;
info.DrawingBorderWidth = this.DETECT_BOX_BORDER_WIDTH; info.DrawingBorderWidth = this.DETECT_BOX_BORDER_WIDTH;
// 检测框在显示目标框时显示,否则采用透明色 // 检测框在显示目标框时显示,否则采用透明色
...@@ -257,6 +258,7 @@ namespace VIZ.H2V.Module ...@@ -257,6 +258,7 @@ namespace VIZ.H2V.Module
} }
TrackingBoxInfo info = new TrackingBoxInfo(); TrackingBoxInfo info = new TrackingBoxInfo();
info.Type = TrackingBoxStyle.Rectangle_Corner;
info.SrcRect = msg.target_bbox.Value; info.SrcRect = msg.target_bbox.Value;
info.DrawingBorderWidth = this.TRACKING_BOX_BORDER_WIDTH; info.DrawingBorderWidth = this.TRACKING_BOX_BORDER_WIDTH;
info.DrawingBorderColor = this.TRACKING_BOX_BORDER_COLOR; info.DrawingBorderColor = this.TRACKING_BOX_BORDER_COLOR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment