MainWindow.xaml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Window x:Class="IDInfoExtraction.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:IDInfoExtraction"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="600" Width="1000">
  9. <Grid Margin="0,0,93,-15">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*" />
  12. <RowDefinition Height="40" />
  13. <!--<RowDefinition Height="40" />-->
  14. </Grid.RowDefinitions>
  15. <Grid Grid.Row="0">
  16. <Grid>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="500" />
  19. <ColumnDefinition Width="500" />
  20. <ColumnDefinition Width="500" />
  21. </Grid.ColumnDefinitions>
  22. <StackPanel Grid.Column="0" Orientation="Horizontal">
  23. <local:ImageCanvas x:Name="MyImageCanvas" Width="450" Height="440" VerticalAlignment="Top" Margin="20,10,50,0" />
  24. </StackPanel>
  25. <StackPanel Grid.Column="1" Orientation="Vertical">
  26. <TextBlock Text="身份证信息(目前仅支持第二代居民身份证)" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="500" Height="40" TextWrapping="Wrap"/>
  27. <TextBlock x:Name="TextName" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
  28. <TextBlock x:Name="TextGender" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
  29. <TextBlock x:Name="TextNation" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
  30. <TextBlock x:Name="TextBirthdate" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
  31. <TextBlock x:Name="TextAddress" FontSize ="16" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
  32. <TextBlock x:Name="TextIdNumber" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
  33. </StackPanel>
  34. </Grid>
  35. </Grid>
  36. <Grid Grid.Row="1">
  37. <Grid.ColumnDefinitions>
  38. <ColumnDefinition Width="3*" />
  39. <ColumnDefinition Width="80*" />
  40. <ColumnDefinition Width="0*" />
  41. </Grid.ColumnDefinitions>
  42. <StackPanel Orientation="Horizontal" Margin="12,-60,0,55" HorizontalAlignment="Left" Grid.Column="1" Width="711" Grid.ColumnSpan="2">
  43. <Button Content="选择图片" FontSize="12" Margin="4,4,4,4" Width="120" Click="OnBtnLoadVideoClick" />
  44. <Button Content="提取OCR" FontSize="12" Margin="4,4,4,4" Width="120" Click="OnBtnImgOCRClick" />
  45. <TextBlock Text="耗时:" FontSize =" 20" Margin="4,4,4,4" VerticalAlignment="Center" Width="60" />
  46. <TextBlock x:Name="TextBoxPoint" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="400" />
  47. </StackPanel>
  48. </Grid>
  49. </Grid>
  50. </Window>