1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <Window x:Class="AutoEFCalculationDemo.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:AutoEFCalculationDemo"
- mc:Ignorable="d"
- Title="MainWindow" Height="800" Width="900" Closing="OnWindowClosing">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" x:Name="ImageInfoCanvasGrid"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Grid.Column="0">
- <local:ImageInfo x:Name="ResultShowGrid"/>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <CheckBox x:Name="CheckEnableAI" IsChecked="True" Content="是否启用AutoEF" Margin="4,4,4,4"
- VerticalAlignment="Center" Unchecked="OnUnCheckEnableAutoEF" Checked="OnCheckEnableAutoEF"/>
- <CheckBox x:Name="CheckShowObjectContour" IsChecked="True" Content="是否显示识别的目标的轮廓" Margin="4,4,4,4"
- VerticalAlignment="Center" Unchecked="OnUnShowObjectContour" Checked="OnShowObjectContour"/>
- <CheckBox x:Name="CheckShowMesureLine" IsChecked="True" Content="是否显示测量线" Margin="4,4,4,4"
- VerticalAlignment="Center" Unchecked="OnUnShowMeasureLine" Checked="OnShowMeasureLine"/>
- <!--<CheckBox x:Name="CheckShowMeasureCurve" IsChecked="True" Content="是否显示容积曲线" Margin="4,4,4,4"
- VerticalAlignment="Center" Unchecked="OnUnShowMeasureCurve" Checked="OnShowMeasureCurve"/>
- <CheckBox x:Name="CheckShowTimeSeriesResult" IsChecked="True" Content="是否时间序列结果" Margin="4,4,4,4"
- VerticalAlignment="Center" Unchecked="OnUnCheckShowTimeSeries" Checked="OnCheckShowTimeSeries"/>-->
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="检测间隔" Margin="4,4,4,4" VerticalAlignment="Center"/>
- <TextBox x:Name="TextTestInterval" Margin="4,4,4,4" VerticalContentAlignment="Center" Width="60"/>
- <Button Content="设置" Margin="4,4,4,4" VerticalContentAlignment="Center" Click=" OnBtnSetTestInterval" Width="80"/>
- <TextBlock Text="实际视频帧率" Margin="4,4,4,4" VerticalAlignment="Center"/>
- <TextBlock x:Name="TextRealVideoFPS" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- <TextBlock Text="实际推理帧率" Margin="4,4,4,4" VerticalAlignment="Center"/>
- <TextBlock x:Name="TextRealProcessFPS" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- <TextBlock Text="测试耗时" Margin="4,4,4,4" VerticalAlignment="Center"/>
- <TextBlock x:Name="TextTestTime" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <Button x:Name="Start" Content="开始测试(视频)" Width="120" Margin="4,4,4,4" VerticalContentAlignment="Center" Click="OnClickStartTest"/>
- <ProgressBar x:Name="ProgressBarVideoPlay" Margin="4,4,4,4" Width="200"/>
- <TextBlock x:Name="TextFrameIndex" Margin="4,4,4,4" VerticalAlignment="Center" Width="60"/>
- <Button x:Name="BtnBack" Content="后退" Width="60" Margin="4,4,4,4" Click="OnClickBackward"/>
- <Button x:Name="BtnPauseOrPlay" Content="暂停" Width="60" Margin=" 4,4,4,4" Click="OnClickStop"/>
- <Button x:Name="BtnForward" Content="前进" Width="60" Margin="4,4,4,4" Click=" OnClickForward"/>
- </StackPanel>
- </Grid>
- </Grid>
- </Window>
|