如何在Android中访问字母识别器API?
我正在创建一个手势应用程序。 在手势类文档 http://developer.android.com/reference/android/ gesture/Gesture.html)它写道:
“用户定义的手势可以由 GestureLibrary 和 内置字母手势可以被 LetterRecognizer 识别。”
那么如何使用 LetterRecognizer 以及它的文档在哪里? 文档中没有相关的 API,我也搜索了 android 的代码 本身,除了上面代码中的相同注释之外,还有 没有什么。
我通过绘制 ABC 手动实现了字母识别器 字母到手势原始文件并使用常规 mLibrary.recognize(gesture) API,但是成功率不是很高 高,甚至比不上谷歌的手势搜索应用。
任何有关此事的帮助将不胜感激。 谢谢
****编辑:字母识别器是未来的版本。尚未可用***
I am creating a gesture application.
In the Gesture class docs http://developer.android.com/reference/android/gesture/Gesture.html) it reads:
"A user-defined gesture can be recognized by a GestureLibrary and a
built-in alphabet gesture can be recognized by a LetterRecognizer."
So how do you use the LetterRecognizer and where is the docs on it?
There's no API for that in the docs, I've also searched android's code
itself, and besides the same comment above in the code there's
nothing.
I've implemented a letter recognizer manually by drawing the ABC
letters to a gesture raw file and using the regular
mLibrary.recognize(gesture) API, but the success rate is not very
high, not even close to Google's gesture search app.
Any help on this matter would be appreciated.
Thanks
****EDIT: Letter Recognizer is a future release. It is not yet available***
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会查看此页面上的代码:
http://www.anddev.org/gesture_recognizer_and_character_recognition-t2998 .html
他说他的字符识别器的源代码也在 SVN 中。您可能会发现一些有用的花絮。
I would look at the code on this page:
http://www.anddev.org/gesture_recognizer_and_character_recognition-t2998.html
He says the source code for his character recognizer is in the SVN, too. You might find some helpful tidbits.