Skip to content

[BUG] Select_Text_From_ImageSample crash bug #382

Open
@AngleHony

Description

@AngleHony

Describe the bug
Select_Text_From_ImageSample, TextRecognition.xaml.cs, When a file is selected, soems times FontSize is zero, the app crash

To Reproduce
Steps to reproduce the behavior:

  1. start Select_Text_From_ImageSample
  2. Click on 'from file '
  3. select the image

Image

  1. app crash

Expected behavior
Screenshots

Image

Please complete the following information:

  • App Version [e.g. 0.4.2.0 from the Microsoft Store]:

Additional context
FontSize = Math.Abs((int)line.BoundingBox.TopRight.Y - (int)line.BoundingBox.BottomRight.Y) * .85,

some case line.BoundingBox.TopRight.Y == (int)line.BoundingBox.BottomRight.Y then FontSize = 0;

then app crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions