MainWindow.xaml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <Window x:Class="AutoEFCalculationDemo.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:AutoEFCalculationDemo"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="800" Width="900" Closing="OnWindowClosing">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*" x:Name="ImageInfoCanvasGrid"/>
  12. <RowDefinition Height="40"/>
  13. <RowDefinition Height="40"/>
  14. <RowDefinition Height="40"/>
  15. </Grid.RowDefinitions>
  16. <Grid Grid.Row="0" Grid.Column="0">
  17. <local:ImageInfo x:Name="ResultShowGrid"/>
  18. </Grid>
  19. <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
  20. <StackPanel Orientation="Horizontal">
  21. <CheckBox x:Name="CheckEnableAI" IsChecked="True" Content="是否启用AutoEF" Margin="4,4,4,4"
  22. VerticalAlignment="Center" Unchecked="OnUnCheckEnableAutoEF" Checked="OnCheckEnableAutoEF"/>
  23. <CheckBox x:Name="CheckShowObjectContour" IsChecked="True" Content="是否显示识别的目标的轮廓" Margin="4,4,4,4"
  24. VerticalAlignment="Center" Unchecked="OnUnShowObjectContour" Checked="OnShowObjectContour"/>
  25. <CheckBox x:Name="CheckShowMesureLine" IsChecked="True" Content="是否显示测量线" Margin="4,4,4,4"
  26. VerticalAlignment="Center" Unchecked="OnUnShowMeasureLine" Checked="OnShowMeasureLine"/>
  27. <!--<CheckBox x:Name="CheckShowMeasureCurve" IsChecked="True" Content="是否显示容积曲线" Margin="4,4,4,4"
  28. VerticalAlignment="Center" Unchecked="OnUnShowMeasureCurve" Checked="OnShowMeasureCurve"/>
  29. <CheckBox x:Name="CheckShowTimeSeriesResult" IsChecked="True" Content="是否时间序列结果" Margin="4,4,4,4"
  30. VerticalAlignment="Center" Unchecked="OnUnCheckShowTimeSeries" Checked="OnCheckShowTimeSeries"/>-->
  31. </StackPanel>
  32. </Grid>
  33. <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
  34. <StackPanel Orientation="Horizontal">
  35. <TextBlock Text="检测间隔" Margin="4,4,4,4" VerticalAlignment="Center"/>
  36. <TextBox x:Name="TextTestInterval" Margin="4,4,4,4" VerticalContentAlignment="Center" Width="60"/>
  37. <Button Content="设置" Margin="4,4,4,4" VerticalContentAlignment="Center" Click=" OnBtnSetTestInterval" Width="80"/>
  38. <TextBlock Text="实际视频帧率" Margin="4,4,4,4" VerticalAlignment="Center"/>
  39. <TextBlock x:Name="TextRealVideoFPS" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
  40. <TextBlock Text="实际推理帧率" Margin="4,4,4,4" VerticalAlignment="Center"/>
  41. <TextBlock x:Name="TextRealProcessFPS" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
  42. <TextBlock Text="测试耗时" Margin="4,4,4,4" VerticalAlignment="Center"/>
  43. <TextBlock x:Name="TextTestTime" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
  44. </StackPanel>
  45. </Grid>
  46. <Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2">
  47. <StackPanel Orientation="Horizontal">
  48. <Button x:Name="Start" Content="开始测试(视频)" Width="120" Margin="4,4,4,4" VerticalContentAlignment="Center" Click="OnClickStartTest"/>
  49. <ProgressBar x:Name="ProgressBarVideoPlay" Margin="4,4,4,4" Width="200"/>
  50. <TextBlock x:Name="TextFrameIndex" Margin="4,4,4,4" VerticalAlignment="Center" Width="60"/>
  51. <Button x:Name="BtnBack" Content="后退" Width="60" Margin="4,4,4,4" Click="OnClickBackward"/>
  52. <Button x:Name="BtnPauseOrPlay" Content="暂停" Width="60" Margin=" 4,4,4,4" Click="OnClickStop"/>
  53. <Button x:Name="BtnForward" Content="前进" Width="60" Margin="4,4,4,4" Click=" OnClickForward"/>
  54. </StackPanel>
  55. </Grid>
  56. </Grid>
  57. </Window>