12345678910111213141516171819202122232425262728293031323334353637 |
- <Window x:Class="YOLODetectDemo.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:YOLODetectDemo"
- mc:Ignorable="d"
- Title="YOLO检测" Height="600" Width="1200" Closing="Window_Closing">
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="60"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="0.4*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0">
- <local:ImageCanvas x:Name="MyImageCanvas"/>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <Button Content="Test" FontSize="18" Margin="4,4,4,4" Width="80" Click="OnBtnTestClicked"/>
- <CheckBox x:Name="CheckBoxEnableAI" IsChecked="True" FontSize="18" Content="启用AI" Margin="4,4,4,4"
- VerticalAlignment="Center" Unchecked="OnUncheckedEnableAI" Checked="OnCheckedEnableAI"/>
- <CheckBox x:Name="CheckboxIsCropped" IsChecked="True" Content="已裁切" VerticalContentAlignment="Center" VerticalAlignment="Center"
- FontSize="18" Margin="4,4,4,4" Checked="OnCheckedIsCropped" Unchecked="OnUncheckedIsCropped"/>
- <TextBlock Text="推理时间(毫秒):" FontSize="18" Margin="4,4,4,4" VerticalAlignment="Center"/>
- <TextBlock x:Name="ForwardTime" FontSize="18" Margin="4,4,4,4" VerticalAlignment="Center" Width="60"/>
- <TextBlock Text="CPU数量:" FontSize="18" Margin="4,4,4,4" VerticalAlignment="Center"/>
- <TextBox x:Name="TextBoxCPU" Text ="1" FontSize="18" Margin="4,4,4,4" VerticalAlignment="Center" Width="51"/>
- </StackPanel>
- </Grid>
- </Grid>
- </Window>
|