Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.H2V
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.H2V
Commits
fc93396b
Commit
fc93396b
authored
Nov 09, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 居中模式触碰摇杆切换至手动模式
2. 样式修改 3. 添加是否显示或隐藏目标跟踪框选项 4. 添加手动非聚焦窗口裁切框颜色配置
parent
d673cc62
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
224 additions
and
52 deletions
+224
-52
VIZ.H2V.Module.Resource/Icons/eye_hide_24x24.png
+0
-0
VIZ.H2V.Module.Resource/Icons/eye_show_24x24.png
+0
-0
VIZ.H2V.Module.Resource/Icons/touch_32x32.png
+0
-0
VIZ.H2V.Module.Resource/Style/CheckBox/CheckBox_WindowTop.xaml
+32
-0
VIZ.H2V.Module.Resource/Style/RadioButton/RadioButton_NdiView.xaml
+1
-1
VIZ.H2V.Module.Resource/VIZ.H2V.Module.Resource.csproj
+12
-0
VIZ.H2V.Module/NDIMainView/Controller/Navigation3DCheck/Navigation3DCheckController.cs
+2
-2
VIZ.H2V.Module/NDIMainView/View/NDIMainView.xaml
+4
-0
VIZ.H2V.Module/NDIMainView/ViewModel/NDIMainViewModel.cs
+50
-0
VIZ.H2V.Module/NDIView/Service/INDIViewService.cs
+6
-0
VIZ.H2V.Module/NDIView/View/NDIView.xaml
+16
-20
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Manual_NDI.cs
+8
-1
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Message.cs
+1
-1
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Property.cs
+19
-5
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.cs
+23
-0
VIZ.H2V.Module/SystemSetting/View/StyleSettingPanelView.xaml
+7
-3
VIZ.H2V.Module/SystemSetting/ViewModel/StyleSettingPanelViewModel.cs
+19
-0
VIZ.H2V.Storage/Init/Config/AlgorithmConfig.cs
+0
-6
VIZ.H2V.Storage/LiteDB/System/SystemConfig.cs
+10
-0
VIZ.H2V/Properties/AssemblyInfo.cs
+14
-13
No files found.
VIZ.H2V.Module.Resource/Icons/eye_hide_24x24.png
0 → 100644
View file @
fc93396b
564 Bytes
VIZ.H2V.Module.Resource/Icons/eye_show_24x24.png
0 → 100644
View file @
fc93396b
472 Bytes
VIZ.H2V.Module.Resource/Icons/touch_32x32.png
0 → 100644
View file @
fc93396b
639 Bytes
VIZ.H2V.Module.Resource/Style/CheckBox/CheckBox_WindowTop.xaml
0 → 100644
View file @
fc93396b
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="CheckBox_Eye" TargetType="CheckBox">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Width" Value="50"></Setter>
<Setter Property="Height" Value="40"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid x:Name="bd" SnapsToDevicePixels="True" Background="Transparent" >
<Image x:Name="img_hide" Width="24" Height="24" VerticalAlignment="Center" HorizontalAlignment="Center"
Source="/VIZ.H2V.Module.Resource;component/Icons/eye_hide_24x24.png" Visibility="Visible"></Image>
<Image x:Name="img_show" Width="24" Height="24" VerticalAlignment="Center" HorizontalAlignment="Center"
Source="/VIZ.H2V.Module.Resource;component/Icons/eye_show_24x24.png" Visibility="Hidden"></Image>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="img_hide" Property="Visibility" Value="Hidden"></Setter>
<Setter TargetName="img_show" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="bd" Property="Background" Value="#22ffffff"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
\ No newline at end of file
VIZ.H2V.Module.Resource/Style/RadioButton/RadioButton_NdiView.xaml
View file @
fc93396b
...
...
@@ -127,7 +127,7 @@
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Foreground" Value="White"></Setter>
<Setter Property="BorderBrush" Value="White"></Setter>
<Setter Property="BorderThickness" Value="
4
"></Setter>
<Setter Property="BorderThickness" Value="
8
"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
...
...
VIZ.H2V.Module.Resource/VIZ.H2V.Module.Resource.csproj
View file @
fc93396b
...
...
@@ -93,6 +93,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Style\CheckBox\CheckBox_WindowTop.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Style\CheckBox\CheckBox_Setting.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
...
...
@@ -246,5 +250,12 @@
<ItemGroup>
<Resource Include="Icons\status_yellow_25x22.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\eye_hide_24x24.png" />
<Resource Include="Icons\eye_show_24x24.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\touch_32x32.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
VIZ.H2V.Module/NDIMainView/Controller/Navigation3DCheck/Navigation3DCheckController.cs
View file @
fc93396b
...
...
@@ -110,8 +110,8 @@ namespace VIZ.H2V.Module
// 当前激活的视图
INDIViewService
service
=
services
.
FirstOrDefault
(
p
=>
p
.
IsActive
);
//
如果当前模式不处于算法模式,那么不处理
if
(
service
.
StrategyMode
!=
AlgorithmStrategyMode
.
auto
_mode
)
//
仅处理 算法模式 or 居中模式 -> 手动模式
if
(
service
.
StrategyMode
==
AlgorithmStrategyMode
.
manual
_mode
)
return
;
// 如果当前状态不处于裁切状态或,检测状态那么不处理
...
...
VIZ.H2V.Module/NDIMainView/View/NDIMainView.xaml
View file @
fc93396b
...
...
@@ -16,6 +16,7 @@
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VIZ.H2V.Module.Resource;component/Style/Button/Button_WindowTop.xaml"></ResourceDictionary>
<ResourceDictionary Source="/VIZ.H2V.Module.Resource;component/Style/CheckBox/CheckBox_WindowTop.xaml"></ResourceDictionary>
<ResourceDictionary Source="/VIZ.Framework.Common.Resource;component/Style/Button/Button_WindowTop.xaml"></ResourceDictionary>
<ResourceDictionary Source="/VIZ.Framework.Common.Resource;component/Style/ListBox/ListBox_None.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
...
...
@@ -46,6 +47,9 @@
<Grid Background="#ff12202d">
<TextBlock Text="横转竖智能裁切系统" FontSize="12" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
<StackPanel Orientation="Horizontal" Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Top">
<CheckBox Height="30" Style="{StaticResource ResourceKey=CheckBox_Eye}"
IsChecked="{Binding Path=IsShowAlgorithmTargetBox,Mode=TwoWay}"></CheckBox>
<Rectangle Width="2" Fill="#EEFFFFFF" Height="18" Margin="20,0,20,0"></Rectangle>
<Button Command="{Binding Path=InitTallyCommand}" ToolTip="初始Tally"
Style="{StaticResource Button_Tally}" Height="30"></Button>
<Button Command="{Binding Path=InitNavigation3DCommand}" ToolTip="初始化摇杆"
...
...
VIZ.H2V.Module/NDIMainView/ViewModel/NDIMainViewModel.cs
View file @
fc93396b
...
...
@@ -207,6 +207,40 @@ namespace VIZ.H2V.Module
#
endregion
#
region
IsShowAlgorithmTargetBox
--
是否显示算法目标框
private
bool
isShowAlgorithmTargetBox
;
/// <summary>
/// 是否显示算法目标框
/// </summary>
public
bool
IsShowAlgorithmTargetBox
{
get
{
return
isShowAlgorithmTargetBox
;
}
set
{
isShowAlgorithmTargetBox
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
IsShowAlgorithmTargetBox
));
this
.
UpdateIsShowAlgorithmTargetBox
();
}
}
/// <summary>
/// 更新是否显示算法目标框
/// </summary>
private
void
UpdateIsShowAlgorithmTargetBox
()
{
// 更新配置
SystemConfig
config
=
ApplicationDomainEx
.
LiteDbContext
.
SystemConfig
.
FindAll
().
FirstOrDefault
();
config
.
IsShowAlgorithmTargetBox
=
this
.
IsShowAlgorithmTargetBox
;
ApplicationDomainEx
.
LiteDbContext
.
SystemConfig
.
Update
(
config
);
// 更新至每个视图
List
<
INDIViewService
>
services
=
ApplicationDomainEx
.
ServiceManager
.
GetServiceList
<
INDIViewService
>();
services
.
ForEach
(
p
=>
p
.
UpdateIsShowAlgorithmTargetBox
(
this
.
IsShowAlgorithmTargetBox
));
}
#
endregion
// ======================================================================================
// === Command ===
// ======================================================================================
...
...
@@ -228,6 +262,9 @@ namespace VIZ.H2V.Module
// 开始初始化服务状态
this
.
BeginInitServiceStatus
();
// 初始化系统配置
this
.
InitSystemConfig
();
}
#
endregion
...
...
@@ -503,5 +540,18 @@ namespace VIZ.H2V.Module
{
this
.
ClipStatusMinFps
=
this
.
NDIViewServices
.
Min
(
p
=>
p
.
ClipFPS
.
FPS
);
}
/// <summary>
/// 初始化系统设置
/// </summary>
private
void
InitSystemConfig
()
{
SystemConfig
config
=
ApplicationDomainEx
.
LiteDbContext
.
SystemConfig
.
FindAll
().
FirstOrDefault
();
if
(
config
==
null
)
return
;
this
.
isShowAlgorithmTargetBox
=
config
.
IsShowAlgorithmTargetBox
;
this
.
RaisePropertyChanged
(
nameof
(
IsShowAlgorithmTargetBox
));
}
}
}
VIZ.H2V.Module/NDIView/Service/INDIViewService.cs
View file @
fc93396b
...
...
@@ -111,6 +111,12 @@ namespace VIZ.H2V.Module
void
UpdateTallyConfig
(
GPIOModel
gpioModel
);
/// <summary>
/// 更新是否显示算法目标框
/// </summary>
/// <param name="isShow">是否显示</param>
void
UpdateIsShowAlgorithmTargetBox
(
bool
isShow
);
/// <summary>
/// 停止算法
/// </summary>
void
StopAlgorithm
();
...
...
VIZ.H2V.Module/NDIView/View/NDIView.xaml
View file @
fc93396b
...
...
@@ -138,9 +138,12 @@
<RowDefinition Height="180"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
</Grid.RowDefinitions>
<!-- ************************************************************ -->
<!-- 该参无意义,暂时注释 -->
<!--<CheckBox FontSize="16" Content="裁切策略:" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"
IsChecked="{Binding Path=IsUseClip,Mode=TwoWay}"
Style="{StaticResource CheckBox_NdiView}"></CheckBox>-->
<!-- ************************************************************ -->
<Rectangle Grid.Row="1" Grid.RowSpan="10" Fill="#ff181d2b"></Rectangle>
<Border Grid.Row="1" IsEnabled="{Binding IsUseClip,Mode=OneWay}">
<Grid>
...
...
@@ -149,22 +152,20 @@
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
</Grid.RowDefinitions>
<RadioButton FontSize="16" Foreground="White"
ToolTip="
{Binding Path=StrategyDisplayName,Mode=OneWay}
"
<RadioButton
Content="A"
FontSize="16" Foreground="White"
ToolTip="
A" Grid.Row="0
"
Style="{StaticResource RadioButton_NdiView}"
IsChecked="{Binding IsAutoModeChecked,Mode=TwoWay}">
<TextBlock Text="{Binding Path=StrategyDisplayName,Mode=OneWay}" Margin="0,0,10,0" TextWrapping="NoWrap"
TextTrimming="CharacterEllipsis"></TextBlock>
</RadioButton>
<RadioButton Content="
居中
" FontSize="16" Foreground="White"
ToolTip="
居中
" Grid.Row="1"
<RadioButton Content="
M
" FontSize="16" Foreground="White"
ToolTip="
M
" Grid.Row="1"
Style="{StaticResource RadioButton_NdiView}"
IsChecked="{Binding IsCenterModeChecked,Mode=TwoWay}">
</RadioButton>
<RadioButton Content="
手动
" FontSize="16" Foreground="White"
ToolTip="手动
" Grid.Row="2"
IsChecked="{Binding Path=IsManualModeChecked,Mode=TwoWay}"
Style="{StaticResource RadioButton_NdiView}">
<RadioButton Content="
H
" FontSize="16" Foreground="White"
ToolTip="H
" Grid.Row="2"
IsChecked="{Binding Path=IsManualModeChecked,Mode=TwoWay}"
Style="{StaticResource RadioButton_NdiView}">
</RadioButton>
</Grid>
</Border>
...
...
@@ -173,7 +174,7 @@
<!-- 机位对应特殊面板区域 -->
<Grid Grid.Row="1">
<!-- 单人机位 ===== 目标检测按钮 -->
<Button
Content="选择目标"
Grid.Row="1" VerticalAlignment="Bottom" Style="{StaticResource Button_Setting}"
<Button Grid.Row="1" VerticalAlignment="Bottom" Style="{StaticResource Button_Setting}"
Height="40" Width="120" HorizontalAlignment="Right" Margin="0,0,10,0"
Command="{Binding Path=DetectCommand}">
<Button.IsEnabled>
...
...
@@ -190,6 +191,10 @@
<Binding Path="StrategyType"></Binding>
</MultiBinding>
</Button.Visibility>
<Button.Content>
<Image Width="24" Height="24" HorizontalAlignment="Center" VerticalAlignment="Center"
Source="/VIZ.H2V.Module.Resource;component/Icons/touch_32x32.png"></Image>
</Button.Content>
</Button>
</Grid>
<!-- 视频区域 -->
...
...
@@ -298,15 +303,6 @@
<!-- AI功能区 -->
<StackPanel Orientation="Vertical" VerticalAlignment="Bottom" Grid.Row="1">
<!-- 错误标记 -->
<!--<Border Margin="0,10,0,8">
<Button Width="32" Height="32"
Style="{StaticResource Button_Function}"
IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter_SettingButton}}"
Command="{Binding AlgorithmErrorTagCommand}">
<Image Width="24" Height="24" Source="/VIZ.H2V.Module.Resource;component/Icons/ai_close_24x24.png"></Image>
</Button>
</Border>-->
<!-- 重启算法 -->
<Border Margin="0,10,0,0" ToolTip="重启算法" Background="Transparent">
<Button Width="32" Height="32"
...
...
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Manual_NDI.cs
View file @
fc93396b
...
...
@@ -91,7 +91,14 @@ namespace VIZ.H2V.Module
ClipBoxInfo
clipBox
=
new
ClipBoxInfo
();
clipBox
.
DrawingBorderWidth
=
this
.
CLIP_BOX_BORDER_WIDTH
;
clipBox
.
SrcRect
=
new
RawRectangleF
((
float
)(
this
.
ClipBoxX
),
0
,
(
float
)(
this
.
ClipBoxX
)
+
(
float
)
this
.
CLIP_BOX_WIDTH
,
renderInfo
.
Frame
.
Height
);
clipBox
.
DrawingBorderColor
=
(
this
.
StrategyMode
==
AlgorithmStrategyMode
.
manual_mode
&&
this
.
IsActive
)
?
this
.
ClipBoxStrokeColor_Manual
:
this
.
ClipBoxStrokeColor_Normal
;
if
(
this
.
StrategyMode
==
AlgorithmStrategyMode
.
manual_mode
)
{
clipBox
.
DrawingBorderColor
=
this
.
IsActive
?
this
.
ClipBoxStrokeColor_Manual
:
this
.
ClipBoxStrokeColor_ManualNotfoucs
;
}
else
{
clipBox
.
DrawingBorderColor
=
ClipBoxStrokeColor_Normal
;
}
clipBox
.
MaskColor
=
this
.
CLIP_BOX_MASK_COLOR
;
clipBox
.
CenterAxisWidth
=
(
float
)
this
.
CLIP_BOX_CENTER_AXIS_WIDTH
;
clipBox
.
CenterAxisColor
=
this
.
ClipBoxCenterAxisColor
;
...
...
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Message.cs
View file @
fc93396b
...
...
@@ -221,7 +221,7 @@ namespace VIZ.H2V.Module
private
void
OnAlgorithmMessage__crop_roi__target_bbox
(
AlgorithmMessage__crop_roi
msg
,
VideoRenderInfo
renderInfo
,
NDIView
view
)
{
// 没有目标框 || 配置是否显示目标框
if
(
msg
.
target_bbox
==
null
||
!
this
.
ALGORITHM_IS_SHOW_TARGET_BOX
)
if
(
msg
.
target_bbox
==
null
||
!
this
.
IsShowAlgorithmTargetBox
)
{
view
.
video
.
ClearTrackingBox
();
...
...
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.Property.cs
View file @
fc93396b
...
...
@@ -84,11 +84,6 @@ namespace VIZ.H2V.Module
private
readonly
double
VIDEO_MANUAL_CORRECTION_OPACITY
=
ApplicationDomainEx
.
IniStorage
.
GetValue
<
VideoConfig
,
double
>(
p
=>
p
.
VIDEO_MANUAL_CORRECTION_OPACITY
);
/// <summary>
/// 是否显示目标框
/// </summary>
private
readonly
bool
ALGORITHM_IS_SHOW_TARGET_BOX
=
ApplicationDomainEx
.
IniStorage
.
GetValue
<
AlgorithmConfig
,
bool
>(
p
=>
p
.
ALGORITHM_IS_SHOW_TARGET_BOX
);
/// <summary>
/// 剪切框颜色 -- 正常
/// </summary>
private
RawColor4
ClipBoxStrokeColor_Normal
;
...
...
@@ -105,6 +100,11 @@ namespace VIZ.H2V.Module
private
RawColor4
ClipBoxStrokeColor_Manual
;
/// <summary>
/// 剪切框颜色 -- 手动 无焦点
/// </summary>
private
RawColor4
ClipBoxStrokeColor_ManualNotfoucs
;
/// <summary>
/// 剪切框中心轴颜色
/// </summary>
private
RawColor4
ClipBoxCenterAxisColor
;
...
...
@@ -361,6 +361,20 @@ namespace VIZ.H2V.Module
#
endregion
#
region
IsShowAlgorithmTargetBox
--
是否显示算法目标框
private
bool
isShowAlgorithmTargetBox
;
/// <summary>
/// 是否显示算法目标框
/// </summary>
public
bool
IsShowAlgorithmTargetBox
{
get
{
return
isShowAlgorithmTargetBox
;
}
set
{
isShowAlgorithmTargetBox
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
IsShowAlgorithmTargetBox
));
}
}
#
endregion
// --------------------------------------------------------------------------------------
#
region
IsUseClip
--
是否使用裁切
...
...
VIZ.H2V.Module/NDIView/VieweModel/NDIViewModel.cs
View file @
fc93396b
...
...
@@ -288,6 +288,7 @@ namespace VIZ.H2V.Module
this
.
ClipBoxStrokeColor_Normal
=
SharpDxColorHelper
.
FromString
(
config
.
ClipNormalColor
);
this
.
ClipBoxStrokeColor_Exception
=
SharpDxColorHelper
.
FromString
(
config
.
ClipExceptionColor
);
this
.
ClipBoxStrokeColor_Manual
=
SharpDxColorHelper
.
FromString
(
config
.
ClipManualColor
);
this
.
ClipBoxStrokeColor_ManualNotfoucs
=
SharpDxColorHelper
.
FromString
(
config
.
ClipManualNotfocusColor
);
// 手动裁切中心轴颜色
RawColor4
clipBoxCenterAxisColor
=
SharpDxColorHelper
.
FromString
(
config
.
ClipCenterAxisColor
);
...
...
@@ -303,6 +304,9 @@ namespace VIZ.H2V.Module
RawColor4
manualCorrectionColor
=
SharpDxColorHelper
.
FromString
(
config
.
ManualCorrectionColor
);
manualCorrectionColor
.
A
=
(
float
)
this
.
VIDEO_MANUAL_CORRECTION_OPACITY
;
this
.
ManualCorrectionColor
=
manualCorrectionColor
;
// 是否显示目标裁切框
this
.
IsShowAlgorithmTargetBox
=
config
.
IsShowAlgorithmTargetBox
;
}
/// <summary>
...
...
@@ -374,6 +378,25 @@ namespace VIZ.H2V.Module
}
/// <summary>
/// 更新是否显示算法目标框
/// </summary>
/// <param name="isShow">是否显示</param>
public
void
UpdateIsShowAlgorithmTargetBox
(
bool
isShow
)
{
this
.
IsShowAlgorithmTargetBox
=
isShow
;
if
(
isShow
)
return
;
// 清理现在的目标框
NDIView
view
=
this
.
GetView
<
NDIView
>();
if
(
view
==
null
)
return
;
view
.
video
.
ClearTrackingBox
();
}
/// <summary>
/// 停止算法
/// </summary>
public
void
StopAlgorithm
()
...
...
VIZ.H2V.Module/SystemSetting/View/StyleSettingPanelView.xaml
View file @
fc93396b
...
...
@@ -9,7 +9,7 @@
xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
d:DataContext="{d:DesignInstance Type=local:StyleSettingPanelViewModel}"
mc:Ignorable="d"
d:DesignHeight="
8
00" d:DesignWidth="800">
d:DesignHeight="
9
00" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
...
...
@@ -32,7 +32,7 @@
<Grid Margin="45,60,40,0">
<Grid.RowDefinitions>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="
18
0"></RowDefinition>
<RowDefinition Height="
24
0"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
...
...
@@ -51,6 +51,7 @@
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"></ColumnDefinition>
...
...
@@ -65,6 +66,9 @@
<!-- 手动 -->
<TextBlock Text="手动" Foreground="White" FontSize="18" VerticalAlignment="Center" Grid.Row="2"></TextBlock>
<fcommon:ColorPickButton Grid.Column="1" Color="{Binding Path=ClipManualColor,Mode=TwoWay}" Height="30" Grid.Row="2"></fcommon:ColorPickButton>
<!-- 手动 无焦点 -->
<TextBlock Text="手动无焦点" Foreground="White" FontSize="18" VerticalAlignment="Center" Grid.Row="3"></TextBlock>
<fcommon:ColorPickButton Grid.Column="1" Color="{Binding Path=ClipManualNotfocusColor,Mode=TwoWay}" Height="30" Grid.Row="3"></fcommon:ColorPickButton>
</Grid>
<Rectangle Grid.Row="1" VerticalAlignment="Bottom" Height="2" Fill="#ff364051"></Rectangle>
<!-- 边线检测框颜色 -->
...
...
@@ -154,7 +158,7 @@
<ColumnDefinition Width="500"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Text="是否在触碰摇杆时
由自动模式
切换至手动模式" Foreground="White" FontSize="18" VerticalAlignment="Center" Grid.Row="2"></TextBlock>
<TextBlock Text="是否在触碰摇杆时切换至手动模式" Foreground="White" FontSize="18" VerticalAlignment="Center" Grid.Row="2"></TextBlock>
<CheckBox Grid.Column="1" Style="{StaticResource CheckBox_Setting}" HorizontalAlignment="Right"
IsChecked="{Binding Path=IsWhenNavigationTouchedChangeToManualMode,Mode=TwoWay}"></CheckBox>
</Grid>
...
...
VIZ.H2V.Module/SystemSetting/ViewModel/StyleSettingPanelViewModel.cs
View file @
fc93396b
...
...
@@ -76,6 +76,20 @@ namespace VIZ.H2V.Module
#
endregion
#
region
ClipManualNotfocusColor
--
手动无焦点剪切框颜色
private
Color
clipManualNotfocusColor
;
/// <summary>
/// 手动无焦点剪切框颜色
/// </summary>
public
Color
ClipManualNotfocusColor
{
get
{
return
clipManualNotfocusColor
;
}
set
{
clipManualNotfocusColor
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
ClipManualNotfocusColor
));
}
}
#
endregion
#
region
BorderSceneColor
--
边线检测区域颜色
private
Color
borderSceneColor
;
...
...
@@ -212,6 +226,7 @@ namespace VIZ.H2V.Module
this
.
ClipNormalColor
=
(
Color
)
ColorConverter
.
ConvertFromString
(
this
.
SystemConfig
.
ClipNormalColor
);
this
.
ClipExceptionColor
=
(
Color
)
ColorConverter
.
ConvertFromString
(
this
.
SystemConfig
.
ClipExceptionColor
);
this
.
ClipManualColor
=
(
Color
)
ColorConverter
.
ConvertFromString
(
this
.
SystemConfig
.
ClipManualColor
);
this
.
ClipManualNotfocusColor
=
(
Color
)
ColorConverter
.
ConvertFromString
(
this
.
SystemConfig
.
ClipManualNotfocusColor
);
this
.
BorderSceneColor
=
(
Color
)
ColorConverter
.
ConvertFromString
(
this
.
SystemConfig
.
BorderSceneColor
);
this
.
ManualCorrectionColor
=
(
Color
)
ColorConverter
.
ConvertFromString
(
this
.
SystemConfig
.
ManualCorrectionColor
);
this
.
ClipCenterAxisColor
=
(
Color
)
ColorConverter
.
ConvertFromString
(
this
.
SystemConfig
.
ClipCenterAxisColor
);
...
...
@@ -265,6 +280,9 @@ namespace VIZ.H2V.Module
if
(
this
.
ClipManualColor
.
ToString
()
!=
this
.
SystemConfig
.
ClipManualColor
)
return
true
;
if
(
this
.
ClipManualNotfocusColor
.
ToString
()
!=
this
.
SystemConfig
.
ClipManualNotfocusColor
)
return
true
;
if
(
this
.
BorderSceneColor
.
ToString
()
!=
this
.
SystemConfig
.
BorderSceneColor
)
return
true
;
...
...
@@ -299,6 +317,7 @@ namespace VIZ.H2V.Module
this
.
SystemConfig
.
ClipNormalColor
=
this
.
ClipNormalColor
.
ToString
();
this
.
SystemConfig
.
ClipExceptionColor
=
this
.
ClipExceptionColor
.
ToString
();
this
.
SystemConfig
.
ClipManualColor
=
this
.
ClipManualColor
.
ToString
();
this
.
SystemConfig
.
ClipManualNotfocusColor
=
this
.
ClipManualNotfocusColor
.
ToString
();
this
.
SystemConfig
.
BorderSceneColor
=
this
.
BorderSceneColor
.
ToString
();
this
.
SystemConfig
.
ManualCorrectionColor
=
this
.
ManualCorrectionColor
.
ToString
();
this
.
SystemConfig
.
ClipCenterAxisColor
=
this
.
ClipCenterAxisColor
.
ToString
();
...
...
VIZ.H2V.Storage/Init/Config/AlgorithmConfig.cs
View file @
fc93396b
...
...
@@ -23,11 +23,5 @@ namespace VIZ.H2V.Storage
/// </summary>
[
Ini
(
Section
=
"Algorithm"
,
DefaultValue
=
"30000"
,
Type
=
typeof
(
int
))]
public
string
ALGORITHM_STOP_TIMEOUT
{
get
;
set
;
}
/// <summary>
/// 是否显示目标框
/// </summary>
[
Ini
(
Section
=
"Algorithm"
,
DefaultValue
=
"true"
,
Type
=
typeof
(
bool
))]
public
string
ALGORITHM_IS_SHOW_TARGET_BOX
{
get
;
set
;
}
}
}
VIZ.H2V.Storage/LiteDB/System/SystemConfig.cs
View file @
fc93396b
...
...
@@ -33,6 +33,11 @@ namespace VIZ.H2V.Storage
public
string
ClipManualColor
{
get
;
set
;
}
=
"#ffd9001b"
;
/// <summary>
/// 手动裁切框颜色 不聚焦
/// </summary>
public
string
ClipManualNotfocusColor
{
get
;
set
;
}
=
"#ffEE9611"
;
/// <summary>
/// 裁切框中心轴颜色
/// </summary>
public
string
ClipCenterAxisColor
{
get
;
set
;
}
=
"#FFFF0000"
;
...
...
@@ -71,6 +76,11 @@ namespace VIZ.H2V.Storage
public
bool
IsWhenNavigationTouchedChangeToManualMode
{
get
;
set
;
}
=
false
;
/// <summary>
/// 是否显示算法目标框
/// </summary>
public
bool
IsShowAlgorithmTargetBox
{
get
;
set
;
}
=
true
;
/// <summary>
/// Tally信息 -- 窗口1
/// </summary>
public
TallyInfo
TallyInfo1
{
get
;
set
;
}
=
new
TallyInfo
();
...
...
VIZ.H2V/Properties/AssemblyInfo.cs
View file @
fc93396b
...
...
@@ -65,24 +65,24 @@ using VIZ.Framework.Core;
// MAC地址校验
// ------------------------------------------------------------------------------------
// 开发机:
[assembly: ApplicationMacCheck("00-2B-67-7C-4E-DA")]
[assembly: ApplicationMacCheck("3C-58-C2-D7-DC-15")]
[assembly: ApplicationMacCheck("3E-58-C2-D7-DC-14")]
[assembly: ApplicationMacCheck("3C-58-C2-D7-DC-14")]
[assembly: ApplicationMacCheck("00-01-00-01-26-62-61-CC-00-2B-67-7C-4E-DA")]
//
[assembly: ApplicationMacCheck("00-2B-67-7C-4E-DA")]
//
[assembly: ApplicationMacCheck("3C-58-C2-D7-DC-15")]
//
[assembly: ApplicationMacCheck("3E-58-C2-D7-DC-14")]
//
[assembly: ApplicationMacCheck("3C-58-C2-D7-DC-14")]
//
[assembly: ApplicationMacCheck("00-01-00-01-26-62-61-CC-00-2B-67-7C-4E-DA")]
// ------------------------------------------------------------------------------------
// 环达 H2V-N1
[assembly: ApplicationMacCheck("04-7B-CB-46-0F-8E")]
[assembly: ApplicationMacCheck("00-01-00-01-2A-25-A7-FF-E0-4F-43-E6-5B-9F")]
//
[assembly: ApplicationMacCheck("04-7B-CB-46-0F-8E")]
//
[assembly: ApplicationMacCheck("00-01-00-01-2A-25-A7-FF-E0-4F-43-E6-5B-9F")]
// ------------------------------------------------------------------------------------
// 环达 H2V-N2
[assembly: ApplicationMacCheck("04-7B-CB-46-0D-C9")]
[assembly: ApplicationMacCheck("00-01-00-01-2A-25-95-B7-E0-4F-43-E6-5B-9F")]
//
[assembly: ApplicationMacCheck("04-7B-CB-46-0D-C9")]
//
[assembly: ApplicationMacCheck("00-01-00-01-2A-25-95-B7-E0-4F-43-E6-5B-9F")]
// ------------------------------------------------------------------------------------
// 霄云中心 H2V-001
[assembly: ApplicationMacCheck("E0-4F-43-E6-4F-82")]
[assembly: ApplicationMacCheck("00-01-00-01-2A-33-A8-0D-E0-4F-43-E6-4F-82")]
//
[assembly: ApplicationMacCheck("E0-4F-43-E6-4F-82")]
//
[assembly: ApplicationMacCheck("00-01-00-01-2A-33-A8-0D-E0-4F-43-E6-4F-82")]
// 霄云中心 H2V-002
[assembly: ApplicationMacCheck("E0-4F-43-E6-48-7C")]
[assembly: ApplicationMacCheck("00-01-00-01-2A-9B-9E-40-E0-4F-43-E6-48-7C")]
//
[assembly: ApplicationMacCheck("E0-4F-43-E6-48-7C")]
//
[assembly: ApplicationMacCheck("00-01-00-01-2A-9B-9E-40-E0-4F-43-E6-48-7C")]
// =====================================================================================================
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment