question

Jramos avatar image
0 Votes"
Jramos asked RoyLi-MSFT commented

recognition of ink strokes and shapes

hello:

When I do the active shape and text recognition ToggleSwitch does shape recognition but when I close the App it unnoticed the recognition of shape and text.
another problem is when I activate the toggleswitch before drawing or text doesn't work for me.

9044-reconogizeshapes.txt



togllgeswitch

  private  async  void Recog_Toggled(object sender, RoutedEventArgs e)
         {
                
             await recognitionService?.RecognizeStrokes();
    
             var toggleSwitch = sender as ToggleSwitch;
    
             if (toggleSwitch == null)
             {
                 if (toggleSwitch.IsOn == true)
                 {
                     recognitionCanvas.Visibility = Visibility.Visible;
                        
                 }
                   
    
             }
    
         }
windows-uwp-xaml
· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm confused about what you said-"when I close the App it unnoticed the recognition of shape and text."? What's the behavior you want to get? And what is the behavior you are getting? Could you please provide more detailed information about this?

0 Votes 0 ·

Hello:
the previous post is the recognition information in text format, The problem is when active the ToggleSwitch is recognition of form and text but when TooggleSwitch turns off but when I close the App recognition unprepared.

0 Votes 0 ·

I'm confused about what you said. In the code you post, it shows the toggleswitch will only show the canvas when the toggleswitch is on. But nothing is done when the toggleswitch is off. Could you please share the detailed information about how to reproduce the behavior step by step?

0 Votes 0 ·
Show more comments

1) creator shape 9049-captura-de-pantalla-1.png


2) recognition shapes and text


9050-captura-de-pantalla-2.png


after open App there is not recogniiton shapes goes back to section 1


0 Votes 0 ·

I have some questions about your code. What have you done when the toggleswitch is off? Based on your code, it doesn't have anything to do with the canvas when the toggleswitch is off. I've also confirmed this in the official sample by adding a toggleswitch. What have you done when you launch your app? Restore the ink you drow?

0 Votes 0 ·

the problem is when you draw for example a triangle if you activate ToggleSwitch recognition is done but when I turn off the ToggleSwitch and close the App for example the triangle returns to the stroke.

0 Votes 0 ·
Show more comments

0 Answers