How to implement handwriting recognition feature in an iPhone app?

做~自己de王妃 提交于 2019-12-08 07:29:21

问题


I have a requirement in my iPhone app which is something similar to Handwriting Recognition.

I want to give user a space on my view where he can write any character by touch and dragging his finger on the screen and based on what matches with his input the textbox should show the English alphabet.

Above is an example of what I want:

How should I implement this feature? I am a beginner in this.


回答1:


There is no handwriting Frameworks or Libraries currently available. If you are brainy enough use some gesture techniques of iOS and handwriting algorithms to create it




回答2:


You better start to learn about image processing for this feature. It is not difficult but the OCR , should be your similar coding. However, because of its transient then the hand writing recognition is much difficult.. But anyway, it is doable.




回答3:


I've seen some code around to subclass UIGestureRecognizer to define a "check" gesture. It recognizes touch beginning, moving southeast, then moving northeast to draw a checkmark. Perhaps you could define letter shapes as specific gesture recognizers and then attached your whole alphabet of recognizers to a view and see what you get.



来源:https://stackoverflow.com/questions/4418074/how-to-implement-handwriting-recognition-feature-in-an-iphone-app

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