How to access Letter Recognizer API in Android?

江枫思渺然 提交于 2019-12-03 05:57:10

问题


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***


回答1:


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.



来源:https://stackoverflow.com/questions/5843136/how-to-access-letter-recognizer-api-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!