Commit 5398752d by liulongfei

清理裁切框逻辑修正

parent 6f124f0f
......@@ -230,7 +230,7 @@ namespace VIZ.H2V.Module
#region StrategyMode -- 算法模式
private AlgorithmStrategyMode strategyMode;
private volatile AlgorithmStrategyMode strategyMode;
/// <summary>
/// 剪切策略
/// </summary>
......
......@@ -165,8 +165,8 @@ namespace VIZ.H2V.Module
// 清理视频控件
ClearVideoControlContext clear_context = new ClearVideoControlContext(false, true);
// 当前处于裁切状态时不需要清理裁切框
clear_context.IsClearClipBox = this.ViewStatus != NDIViewStatus.CropRoi;
// 当前处于 裁切状态 | 检测状态 时不需要清理裁切框
clear_context.IsClearClipBox = this.ViewStatus != NDIViewStatus.CropRoi && this.ViewStatus != NDIViewStatus.Detect;
this.ClearVideoControl(clear_context);
// 发送切换手动消息
......
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