默认的InkRecognizer语言 [英] Default InkRecognizer language

查看:102
本文介绍了默认的InkRecognizer语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



经过几乎整夜研究后,我感到沮丧。我正在尝试开发一个墨水功能的应用程序。它需要实现InkRecognition API并且到目前为止都很好。


当我部署到Windows Mobile 10时出现问题。它找不到任何识别器,我找不到安装任何方式。


如果我找不到任何识别器,我会在PC上进行设置>地区&语言>语言(点击所需的语言)>选项>手写(选项在那里)添加,然后再次运行应用程序,它找到。


我也想出了以下(经过严肃的修补):


设置>系统>应用程序&特征>管理可选功能:您将看到"英语(美国)手写"


该应用程序允许用户使用InkCanvas上的InkPresenter使用墨迹功能进行书写。我使用此代码(VB.NET但也可以在C#中工作)使用墨水工作正常: 

'设置输入法
inkSetter.InkPresenter.InputDeviceTypes = Core.CoreInputDeviceTypes.Touch或Core.CoreInputDeviceTypes.Pen或Core.CoreInputDeviceTypes.Mouse

Dim drawingAtt As InkDrawingAttributes = inkSetter.InkPresenter.CopyDefaultDrawingAttributes()
drawingAtt。大小=新大小(2,2)
drawingAtt.PenTip = PenTipShape.Circle
drawingAtt.DrawAsHighlighter = False
drawingAtt.PenTipTransform = Numerics.Matrix3x2.Identity
drawingAtt.Color = Color.FromArgb(255,0,0,0)

inkSetter.InkPresenter.UpdateDefaultDrawingAttributes(drawingAtt)

这是我用来代码的代码识别部分(在移动设备上不起作用,再次在VB.NET上工作但也适用于C#):

 Dim irc As New InkRecognize rContainer 

Debug.WriteLine(irc.GetRecognizers.Count)

For each reco in irc.GetRecognizers
Debug.WriteLine(reco.Name& " | " &安培; reco.ToString)
下一步

 调试输出"0"在Mobile上,所以逻辑上循环不会输出任何名称或任何东西。



这里是PC的输出:  ;


5

Microsoft English(India)手写识别器| Windows.UI.Input.Inking.InkRecognizer

Microsoft English(US)手写识别器| Windows.UI.Input.Inking.InkRecognizer

Microsoft English(UK)手写识别器| Windows.UI.Input.Inking.InkRecognizer

Microsoft English(Australia)手写识别器| Windows.UI.Input.Inking.InkRecognizer

Microsoft English(Canada)手写识别器| Windows.UI.Input.Inking.InkRecognizer


我在Google上挖掘和挖掘设置和/或研究没有任何运气。 Windows Mobile 10设置甚至不显示任何手写内容。我查看了键盘和语言,甚至搜索过它。我目前正在构建10.0.14295.1000(v 1511)



有没有办法可以下载软件包并将其包含在解决方案中应用它作为源或应用程序可以提供安装没有任何识别器的设备?也许我可以强制默认?我能做些什么? 


移动很重要,因为这是我的目标,因为这是一款通用APP PC会是奖金,但我主要针对移动。



任何帮助或指示都会受到高度赞赏。如果您需要我的更多信息,请告诉我:)


解决方案

Ali EL。


我从
Github
 和Scenario2中的 在墨迹笔划上执行手写识别。我测试它,我得到了相同的结果。    


在桌面上,您可以添加语言,然后您可以使用语言下载手写内容,如您所知的步骤。但是在Windows手机上,您可以添加一种语言,但其中没有手写内容。它提供键盘选项,
区域选项和语音选项。我搜索你说的包,我找不到。


所以看来Windows Phone上没有手写支持,键盘也很不错。 


您可以将用户语音发布到: https://wpdev.uservoice.com/forums/110705-universal-windows-platform  
您的详细方案和要求。



最好的问候,


Jayden Gu


Hello everyone

I come out of frustration after researching almost all night. I am trying to develop an ink featured app. It needs to implement the InkRecognition API and so far so good.

The problem comes when I deploy to Windows Mobile 10. It doesn't find any recognizers, and I can't find a way to install any.

On PC if I don't find any recognizers I go to settings > Region & Language > Languages (click on desired language) > Options > Handwriting (the option is there) to add and then run the app again and it finds.

I have also figured out the following (after serious tinkering):

Settings > System > Apps & Features > Manage optional features: You will see there "English (US) handwriting"

The app allows a user to write using the inking feature using InkPresenter on InkCanvas. I get the inking working just fine using this code (VB.NET but also works in C#): 

'Set the input methods
        inkSetter.InkPresenter.InputDeviceTypes = Core.CoreInputDeviceTypes.Touch Or Core.CoreInputDeviceTypes.Pen Or Core.CoreInputDeviceTypes.Mouse

        Dim drawingAtt As InkDrawingAttributes = inkSetter.InkPresenter.CopyDefaultDrawingAttributes()
        drawingAtt.Size = New Size(2, 2)
        drawingAtt.PenTip = PenTipShape.Circle
        drawingAtt.DrawAsHighlighter = False
        drawingAtt.PenTipTransform = Numerics.Matrix3x2.Identity
        drawingAtt.Color = Color.FromArgb(255, 0, 0, 0)

        inkSetter.InkPresenter.UpdateDefaultDrawingAttributes(drawingAtt)

Here is the code I am using for the recognition part (that doesn't work on mobile, again VB.NET but also works for C#) :

     Dim irc As New InkRecognizerContainer
       
        Debug.WriteLine(irc.GetRecognizers.Count)

        For Each reco In irc.GetRecognizers
            Debug.WriteLine(reco.Name & " | " & reco.ToString)
        Next

The  debug outputs "0" on Mobile, and so logically the loop doesn't output any names or anything for that matter.

here is the output for PC: 

5
Microsoft English (India) Handwriting Recognizer | Windows.UI.Input.Inking.InkRecognizer
Microsoft English (US) Handwriting Recognizer | Windows.UI.Input.Inking.InkRecognizer
Microsoft English (UK) Handwriting Recognizer | Windows.UI.Input.Inking.InkRecognizer
Microsoft English (Australia) Handwriting Recognizer | Windows.UI.Input.Inking.InkRecognizer
Microsoft English (Canada) Handwriting Recognizer | Windows.UI.Input.Inking.InkRecognizer

I dug and dug through settings and/or research on google without any luck. Windows Mobile 10 settings don't even show anything for handwriting. I looked in keyboards and languages and even searched it up. I am currently on build 10.0.14295.1000 (v 1511)

Is there a way to maybe download the package and include it in the solution then apply that as the source or maybe the app can offer to install for the devices that don't have any recognizers? maybe I can force a default? What can I do? 

Mobile is important because that's my target, since this is a UNIVERSAL APP PC would be a bonus but I am primarily targeting Mobile.

Any help or direction would highly appreciated. If you need any more info from me let me know :)

解决方案

Hi, Ali EL.

I find the Sample from Github , and  in Scenario2 that performing handwriting recognition on ink strokes. And I test it, I got the same similar result.    

On desktop, you can add the language and then you can download the handwriting in the language like the steps as you know. But on the windows phone, you can add a language but there is no handwriting in it. It provide the Keyboard options, Region options and Speech options. And I search for the package that you said, I don't find it.

So it seems there is no handwriting support on Windows Phone, and the keyboard is pretty good though. 

You can post a user voice to:https://wpdev.uservoice.com/forums/110705-universal-windows-platform with your detail scenario and requirement.

Best regards,

Jayden Gu


这篇关于默认的InkRecognizer语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆