gpt4 book ai didi

ios - iOS 中的假名(非汉字)手写识别

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:25:05 25 4
gpt4 key购买 nike

Daijirin 字典应用程序 (http://itunes.apple.com/us/app/da-ci-lin/id299029654?mt=8) 允许通过我不知道如何操作的界面手写平假名和片假名输入在任何其他应用程序中访问。

这是一张照片:http://twitpic.com/a3ynft

他们是怎么做到的?

在我看来它是本土的...但我想要这样的东西。关于如何实现它的任何引用?

最佳答案

我想我明白你在问什么(不是 100% 确定),但无论如何我都会尝试回答。用户可以通过转到 Settings > General 来指定他们想要键盘使用的语言> International > Keyboard > Add New Keyboard > Japanese - 10-Key,但您不能以编程方式更改键盘语言。

查看这些问题的答案以获得进一步的证明:

Showing IPhone keyboard in different languages based on user input

  • Unfortunately, you cannot control the language of the keyboard. The user chooses which keyboards they would like available via the settings application and can toggle between them using the globe icon on the keyboard. When the keyboard is opened it will open to the most recently used keyboard.

Setting the iPhone keyboard language

  • This is a user defined setting and can not be messed with by the programmer, unfortunately.

所以基本上,您是正确的,因为它是本土开发的。

但是,我可以为您指明从哪里开始的正确方向。我在识别 iPhone 上的日文手写输入时发现了这个问题,这是最佳答案(关于汉字的答案,但不是假名):

iOS japanese handwriting input code help please

We worked on a similar exercise back at University.

As the order of the strokes is well defined with kanji and there are only 8 (?) different strokes. Basically each Kanji is a well-ordered sequence of strokes. Like te (hand) is the sequence "The short falling backward stroke" and then twice the "left to right stroke" and finally "The long downward stroke with the little tip at the bottom". There are databases that give you this information.

Now the problem is almost reduced to identify the correct stroke. You will still run into some ambiguities where you have to take into consideration in which spatial relation some strokes are to some others.

For stroke recognition we snapped the free hand writing to 45 degrees (Where is the little circle symbol on the keyboard?) angles, thus converting it into a sequence of vectors along one of these directions. Let's assume that direction zero is from bottom to top, direction 1 bottom right to top left, 2 from right to left and so on CCW.

Then the first stroke of te (手) would be [23]+ (as some write it falling and some horizontal) The second and third stroke would be 6+ and the last would be 4+[123] (as with the little tip, every writer uses a different direction)

This coarse snapping was actually enough for us to recognize kanjis. Maybe there are more sofisticated ways, but this simple solution managed to recognize about 90% of kanjis. It couldn't grasp only the handwriting of one professor, but the problem was that also no human except himself could read his handwriting.

It is important that your user "prints" the Kanji and doesn't write in calligraphy, since in calligraphy many strokes are merged into one. Like when writing a kanji with the radical of "rice field" in calligraphy, this radical morphs into something completely different. Or radicals with a lot of horizontal dashes (like the radical of "speech" iu) just become one long wriggly line.

此外,我还发现了一个名为 Tegaki 的开源项目,用于识别中文和日文字符。可以下载here并查看文档 here .我不太确定它是否支持假名,但无论如何你都应该检查一下。

最后,您可以查看这些其他问题以获取有关一般手写识别的信息:

希望这对您有所帮助!

关于ios - iOS 中的假名(非汉字)手写识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11336615/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com