1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <Window x:Class="IDInfoExtraction.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:IDInfoExtraction"
- mc:Ignorable="d"
- Title="MainWindow" Height="600" Width="1000">
- <Grid Margin="0,0,93,-15">
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="40" />
- <!--<RowDefinition Height="40" />-->
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="500" />
- <ColumnDefinition Width="500" />
- <ColumnDefinition Width="500" />
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="0" Orientation="Horizontal">
- <local:ImageCanvas x:Name="MyImageCanvas" Width="450" Height="440" VerticalAlignment="Top" Margin="20,10,50,0" />
- </StackPanel>
- <StackPanel Grid.Column="1" Orientation="Vertical">
- <TextBlock Text="身份证信息(目前仅支持第二代居民身份证)" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="500" Height="40" TextWrapping="Wrap"/>
- <TextBlock x:Name="TextName" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
- <TextBlock x:Name="TextGender" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
- <TextBlock x:Name="TextNation" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
- <TextBlock x:Name="TextBirthdate" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
- <TextBlock x:Name="TextAddress" FontSize ="16" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
- <TextBlock x:Name="TextIdNumber" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="520" Height="40" TextWrapping="Wrap" />
- </StackPanel>
- </Grid>
- </Grid>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="3*" />
- <ColumnDefinition Width="80*" />
- <ColumnDefinition Width="0*" />
- </Grid.ColumnDefinitions>
- <StackPanel Orientation="Horizontal" Margin="12,-60,0,55" HorizontalAlignment="Left" Grid.Column="1" Width="711" Grid.ColumnSpan="2">
- <Button Content="选择图片" FontSize="12" Margin="4,4,4,4" Width="120" Click="OnBtnLoadVideoClick" />
- <Button Content="提取OCR" FontSize="12" Margin="4,4,4,4" Width="120" Click="OnBtnImgOCRClick" />
- <TextBlock Text="耗时:" FontSize =" 20" Margin="4,4,4,4" VerticalAlignment="Center" Width="60" />
- <TextBlock x:Name="TextBoxPoint" FontSize ="20" Margin="4,4,4,4" VerticalAlignment="Center" Width="400" />
- </StackPanel>
- </Grid>
- </Grid>
- </Window>
|