- Jan 20 Mon 2020 09:56
[單字] Microsoft makes 'carbon negative' pledge
- Jan 14 Tue 2020 17:45
[單字練習] Explaining how fighting games use delay-based and rollback netcode
- Aug 11 Fri 2017 22:07
Simple Handwriting Recognition
A easy way to recognize mouse and finger strokes on screen. Recod every point of the storke and check the current point and last point's relative direction. The diection lies on 0~360 degree. Separate 0~360 into 8 even sectors, every sector covers 45 degree range ; Up : -22.5~22.5, Upright : 22.5~67.5, Right : 67.5~112.5, Rightdown : 112.5~157.5, Down : 157.5~202.5, Downleft : 202.5~247.5, Left : 247.5~292.5, Upleft : 292.5~337.5. Give the 8 direcions numbers 1~8respectively. Record the direction when direction changes. For example, when write a storke toward 30 degree then turn the direction to 120 degree. You will get a sequence number 24. Then according to the number to check which symbol is written. Usually handwriting doesn't turn the direction sharply so the sequence number may be many. For example, when write L, the sequence number may be 53, 543. When write N in one stroke, the sequence number may be 141, 13431, 1341, 1431. You should build the database for any posibilities. This way can't identify the lenght of the stoke so if the two symbols have different length of stokes but turn the same directions, theny may not be identified. You should specially handle the case since this is just a simple symsem. Even though this way is enough to recognitize many symbols. The following demo shows >, <, 一, | and N handwriting recognition.
- Jul 17 Sun 2016 20:58
Google Play Plugin 的一些Note
- Jun 26 Sun 2016 22:44
讓物體無論在任何角度都垂直或平行於螢幕旋轉
雖然transform.Rotate() 可以旋轉物體,但一旦旋後x,y,z的軸就會跑掉,沒辦法持續作出垂直或平行於地平線的旋轉。
方法之一就是放一個外殼,每當外殼完成一次旋轉後座標歸零,但裡面的東西不歸零。
- Jun 17 Fri 2016 18:56
賭博默示錄E-Card
- Jun 12 Sun 2016 12:56
Time.deltaTime的值