[go: up one dir, main page]

TWI712920B - Character recognition method and touch control module using the same - Google Patents

Character recognition method and touch control module using the same Download PDF

Info

Publication number
TWI712920B
TWI712920B TW108145154A TW108145154A TWI712920B TW I712920 B TWI712920 B TW I712920B TW 108145154 A TW108145154 A TW 108145154A TW 108145154 A TW108145154 A TW 108145154A TW I712920 B TWI712920 B TW I712920B
Authority
TW
Taiwan
Prior art keywords
coordinate
coordinates
angle
turning point
relay
Prior art date
Application number
TW108145154A
Other languages
Chinese (zh)
Other versions
TW202122971A (en
Inventor
閆俊超
姜鵬
Original Assignee
大陸商北京集創北方科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 大陸商北京集創北方科技股份有限公司 filed Critical 大陸商北京集創北方科技股份有限公司
Priority to TW108145154A priority Critical patent/TWI712920B/en
Application granted granted Critical
Publication of TWI712920B publication Critical patent/TWI712920B/en
Publication of TW202122971A publication Critical patent/TW202122971A/en

Links

Images

Landscapes

  • Character Discrimination (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一種字符識別方法,適用於一觸控模組,其中該觸控模組包括一觸控螢幕、一感測單元以及一計算單元,該感測單元電性連接該觸控螢幕,且該計算單元電性連接該感測單元。該字符識別方法包括:該感測單元偵測一使用者的一手指接觸該觸控螢幕的一起始座標;該計算單元執行一座標紀錄步驟以得到一轉折點座標組;該感測單元偵測該手指離開該觸控螢幕的一終點座標;以及該計算單元根據該起始座標、該轉折點座標組以及該終點座標進行字符識別。 A character recognition method is suitable for a touch module, wherein the touch module includes a touch screen, a sensing unit, and a calculation unit. The sensing unit is electrically connected to the touch screen, and the calculation unit The sensing unit is electrically connected. The character recognition method includes: the sensing unit detects an initial coordinate of a user's finger touching the touch screen; the calculation unit executes a mark recording step to obtain a turning point coordinate set; the sensing unit detects the The finger leaves an end coordinate of the touch screen; and the calculation unit performs character recognition according to the start coordinate, the turning point coordinate group, and the end coordinate.

Description

字符識別方法及利用其之觸控模組Character recognition method and touch control module using the same

本發明係關於一種適用於觸控模組的字符識別方法,尤指一種透過轉折點強化識別特徵的字符識別方法。The present invention relates to a character recognition method suitable for a touch module, in particular to a character recognition method that strengthens recognition features through turning points.

目前市面上大多數的手勢或字符識別模型是基於方向碼識別的方式設計,模型首先會依據經驗數據預設某個字母或字符的方向碼資料庫,在使用者的手指實際接觸觸控螢幕後,對觸控部份的資料加以解析並判斷出筆劃的方向,並根據該方向得到一組方向碼資料,倘若最後收集到的方向碼組與某個字符的方向碼資料庫完全對應,模型將會把該觸控手勢識別為該字符。在上述的過程中,必須先將手指的觸控資料分解為方向碼的向量組合,並且將這些向量組合與資料庫一一進行比對以確定是否有對應的字符。然而,由於這類演算法較為複雜,需要性能較高的硬體耗費龐大的運算資源才能負擔;除此之外,對於不同使用者在書寫時的起筆、收筆以及特殊書寫習慣,容易有多個不同手勢資料需進行極限測試後方能確定是否為同一字符,以及類似的方向碼組合實際上卻分屬不同的兩字符等等的錯誤辨識情況。At present, most gesture or character recognition models on the market are designed based on the direction code recognition method. The model first presets the direction code database of a letter or character based on empirical data, after the user’s finger actually touches the touch screen , Analyze the data of the touch part and determine the direction of the stroke, and get a set of direction code data according to the direction. If the finally collected direction code group completely corresponds to the direction code database of a character, the model will The touch gesture will be recognized as the character. In the above process, it is necessary to decompose the touch data of the finger into vector combinations of the direction code, and compare these vector combinations with the database to determine whether there are corresponding characters. However, due to the complexity of this type of algorithm, it requires high-performance hardware to consume huge computing resources to afford it; in addition, it is easier for different users to start and end pens and special writing habits when writing. Different gesture data needs to be subjected to a limit test to determine whether they are the same character, and similar combinations of direction codes actually belong to two different characters and so on.

為解決上述問題,本領域亟需一種新穎的字符識別方法。In order to solve the above problems, a novel character recognition method is urgently needed in this field.

本發明之一目的在於揭露一種適用於觸控模組的字符識別方法,其可透過轉折點強化識別特徵,減少錯誤辨識情況。One purpose of the present invention is to disclose a character recognition method suitable for a touch module, which can enhance recognition features through turning points and reduce misrecognition.

本發明之另一目的在於揭露一種觸控模組,其可透過轉折點強化識別特徵,減少錯誤辨識情況。Another object of the present invention is to disclose a touch module, which can enhance recognition features through turning points and reduce false recognition.

為達上述目的,一種適用於一觸控模組的字符識別方法乃被提出,該觸控模組包括一觸控螢幕、一感測單元以及一計算單元,該感測單元電性連接該觸控螢幕,且該計算單元電性連接該感測單元,該字符識別方法包括:To achieve the above objective, a character recognition method suitable for a touch module is proposed. The touch module includes a touch screen, a sensing unit, and a calculation unit. The sensing unit is electrically connected to the touch. The screen is controlled and the computing unit is electrically connected to the sensing unit. The character recognition method includes:

該感測單元偵測一使用者的一手指接觸該觸控螢幕的一起始座標;The sensing unit detects an initial coordinate of a user's finger touching the touch screen;

該計算單元執行一座標紀錄步驟以得到一轉折點座標組;The calculation unit executes a mark recording step to obtain a turning point coordinate group;

該感測單元偵測該手指離開該觸控螢幕的一終點座標;以及The sensing unit detects an end point where the finger leaves the touch screen; and

該計算單元根據該起始座標、該轉折點座標組以及該終點座標進行字符識別;The calculation unit performs character recognition according to the start coordinate, the turning point coordinate group, and the end coordinate;

其中,該座標紀錄步驟包括:Among them, the coordinate recording steps include:

獲得一先前座標、一中繼座標以及一當下座標,其中該中繼座標為該當下座標一時距前該手指於該觸控螢幕上的座標,且該先前座標為該中繼座標該時距前該手指於該觸控螢幕上的座標;Obtain a previous coordinate, a relay coordinate, and a current coordinate, where the relay coordinate is the coordinate of the finger on the touch screen before the current coordinate one time interval, and the previous coordinate is the relay coordinate before the time interval The coordinates of the finger on the touch screen;

根據該先前座標以及該中繼座標計算得出一第一角度;Calculate a first angle according to the previous coordinates and the relay coordinates;

根據該中繼座標以及該當下座標計算得出一第二角度;以及Calculate a second angle based on the relay coordinates and the current coordinates; and

判斷該第一角度以及該第二角度的一差值是否大於一閾值;Judging whether a difference between the first angle and the second angle is greater than a threshold;

其中,當該差值大於該閾值時,該計算單元將該中繼座標紀錄到該轉折點座標組內;當該當下座標不等於該終點座標時,該計算單元在該時距後更新該先前座標、該中繼座標、該當下座標、該第一角度以及該第二角度。Wherein, when the difference is greater than the threshold, the calculation unit records the relay coordinates in the turning point coordinate group; when the current coordinates are not equal to the end point coordinates, the calculation unit updates the previous coordinates after the time interval , The relay coordinates, the current coordinates, the first angle, and the second angle.

在一實施例中,該轉折點座標組包括複數個轉折點座標,且該字符識別方法更包括:In an embodiment, the turning point coordinate group includes a plurality of turning point coordinates, and the character recognition method further includes:

計算該複數個轉折點座標中每兩相鄰轉折點座標間的一歐式距離;以及Calculate the Euclidean distance between every two adjacent turning point coordinates in the plurality of turning point coordinates; and

判斷各該歐式距離是否小於一筆劃閾值。Determine whether each Euclidean distance is less than a stroke threshold.

在一實施例中,該轉折點座標組包括複數個轉折點座標,且該字符識別方法更包括:In an embodiment, the turning point coordinate group includes a plurality of turning point coordinates, and the character recognition method further includes:

計算該複數個轉折點座標中每三相鄰轉折點座標間的一夾角;以及Calculate an included angle between every three adjacent turning point coordinates in the plurality of turning point coordinates; and

判斷各該夾角是否大於一夾角閾值。Determine whether each included angle is greater than an included angle threshold.

在一實施例中,根據該先前座標以及該中繼座標計算得出該第一角度包括:In an embodiment, calculating the first angle according to the previous coordinates and the relay coordinates includes:

計算由該先前座標前進至該中繼座標的一第一向量,其中該第一角度為該第一向量與水平軸的夾角。Calculate a first vector from the previous coordinate to the relay coordinate, where the first angle is the angle between the first vector and the horizontal axis.

在一實施例中,根據該中繼座標以及該當下座標計算得出該第二角度包括:In an embodiment, calculating the second angle according to the relay coordinates and the current coordinates includes:

計算由該中繼座標前進至該當下座標的一第二向量,其中該第二角度為該第二向量與水平軸的夾角。Calculate a second vector from the relay coordinate to the current coordinate, where the second angle is the angle between the second vector and the horizontal axis.

為達上述目的,本發明進一步提出一種觸控模組,其包括一觸控螢幕、一感測單元及一計算單元以執行一字符識別方法,其中該感測單元電性連接該觸控螢幕,且該計算單元電性連接該感測單元,該字符識別方法包括:To achieve the above objective, the present invention further provides a touch module, which includes a touch screen, a sensing unit and a calculation unit to perform a character recognition method, wherein the sensing unit is electrically connected to the touch screen, And the computing unit is electrically connected to the sensing unit, and the character recognition method includes:

該感測單元偵測一使用者的一手指接觸該觸控螢幕的一起始座標;The sensing unit detects an initial coordinate of a user's finger touching the touch screen;

該計算單元執行一座標紀錄步驟以得到一轉折點座標組;The calculation unit executes a mark recording step to obtain a turning point coordinate group;

該感測單元偵測該手指離開該觸控螢幕的一終點座標;以及The sensing unit detects an end point where the finger leaves the touch screen; and

該計算單元根據該起始座標、該轉折點座標組以及該終點座標進行字符識別;The calculation unit performs character recognition according to the start coordinate, the turning point coordinate group, and the end coordinate;

其中,該座標紀錄步驟包括:Among them, the coordinate recording steps include:

獲得一先前座標、一中繼座標以及一當下座標,其中該中繼座標為該當下座標一時距前該手指於該觸控螢幕上的座標,且該先前座標為該中繼座標該時距前該手指於該觸控螢幕上的座標;Obtain a previous coordinate, a relay coordinate, and a current coordinate, where the relay coordinate is the coordinate of the finger on the touch screen before the current coordinate one time interval, and the previous coordinate is the relay coordinate before the time interval The coordinates of the finger on the touch screen;

根據該先前座標以及該中繼座標計算得出一第一角度;Calculate a first angle according to the previous coordinates and the relay coordinates;

根據該中繼座標以及該當下座標計算得出一第二角度;以及Calculate a second angle based on the relay coordinates and the current coordinates; and

判斷該第一角度以及該第二角度的一差值是否大於一閾值;Judging whether a difference between the first angle and the second angle is greater than a threshold;

其中,當該差值大於該閾值時,該計算單元將該中繼座標紀錄到該轉折點座標組內;當該當下座標不等於該終點座標時,該計算單元在該時距後更新該先前座標、該中繼座標、該當下座標、該第一角度以及該第二角度。Wherein, when the difference is greater than the threshold, the calculation unit records the relay coordinates in the turning point coordinate group; when the current coordinates are not equal to the end point coordinates, the calculation unit updates the previous coordinates after the time interval , The relay coordinates, the current coordinates, the first angle, and the second angle.

在一實施例中,該轉折點座標組包括複數組轉折點座標,且該字符識別方法更包括:In an embodiment, the turning point coordinate group includes a complex array of turning point coordinates, and the character recognition method further includes:

計算該複數組轉折點座標中每相鄰兩組轉折點座標間的一歐式距離;以及Calculate the Euclidean distance between every two adjacent sets of turning point coordinates in the complex array of turning point coordinates; and

判斷各該歐式距離是否小於一筆劃閾值。Determine whether each Euclidean distance is less than a stroke threshold.

在一實施例中,該轉折點座標組包括複數組轉折點座標,且該字符識別方法更包括:In an embodiment, the turning point coordinate group includes a complex array of turning point coordinates, and the character recognition method further includes:

計算該複數組轉折點座標中每相鄰三組轉折點座標間的一夾角;以及Calculate an included angle between every three adjacent sets of turning point coordinates in the complex array of turning point coordinates; and

判斷各該夾角是否小於一夾角閾值。It is determined whether each included angle is less than an included angle threshold.

在一實施例中,根據該先前座標以及該中繼座標計算得出該第一角度包括:In an embodiment, calculating the first angle according to the previous coordinates and the relay coordinates includes:

計算由該先前座標前進至該中繼座標的一第一向量,其中該第一角度為該第一向量與水平軸的夾角。Calculate a first vector from the previous coordinate to the relay coordinate, where the first angle is the angle between the first vector and the horizontal axis.

在一實施例中,根據該中繼座標以及該當下座標計算得出該第二角度包括:In an embodiment, calculating the second angle according to the relay coordinates and the current coordinates includes:

計算由該中繼座標前進至該當下座標的一第二向量,其中該第二角度為該第二向量與水平軸的夾角。Calculate a second vector from the relay coordinate to the current coordinate, where the second angle is the angle between the second vector and the horizontal axis.

為使 貴審查委員能進一步瞭解本發明之結構、特徵及其目的,茲附以圖式及較佳具體實施例之詳細說明如後。In order to enable your reviewer to further understand the structure, features and purpose of the present invention, the drawings and detailed descriptions of preferred specific embodiments are attached as follows.

請參考圖1及圖2,圖1繪示本發明之觸控模組之一實施例的方塊圖,圖2則繪示本發明之字符識別方法之一實施例的流程圖。本發明提供的觸控模組1包括一觸控螢幕11、一感測單元12以及一計算單元13,其中該感測單元12電性連接該觸控螢幕11,該計算單元13電性連接該感測單元12,且該字符識別方法包括:該感測單元12偵測一使用者的一手指接觸該觸控螢幕11的一起始座標(步驟a);該計算單元13執行一座標紀錄步驟以得到一轉折點座標組(步驟b);該感測單元12偵測該手指離開該觸控螢幕11的一終點座標(步驟c);以及該計算單元13根據該起始座標、該轉折點座標組以及該終點座標進行字符識別(步驟d)。Please refer to FIGS. 1 and 2. FIG. 1 shows a block diagram of an embodiment of the touch module of the present invention, and FIG. 2 shows a flowchart of an embodiment of the character recognition method of the present invention. The touch module 1 provided by the present invention includes a touch screen 11, a sensing unit 12, and a calculation unit 13, wherein the sensing unit 12 is electrically connected to the touch screen 11, and the calculation unit 13 is electrically connected to the The sensing unit 12, and the character recognition method includes: the sensing unit 12 detects that a finger of a user touches an initial coordinate of the touch screen 11 (step a); the calculation unit 13 performs a mark recording step to Obtain a turning point coordinate group (step b); the sensing unit 12 detects an end coordinate of the finger leaving the touch screen 11 (step c); and the calculation unit 13 according to the start coordinate, the turning point coordinate group, and Character recognition is performed on the end point coordinates (step d).

具體而言,當該觸控模組1啟動且該使用者欲執行手勢識別時,該感測單元12會偵測該使用者的該手指接觸該觸控螢幕11的最初位置,並將其定義為起始座標。為了進一步獲得字符的其它特徵資料,該計算單元13會繼續執行該座標紀錄步驟。Specifically, when the touch module 1 is activated and the user wants to perform gesture recognition, the sensing unit 12 will detect the initial position where the user’s finger touches the touch screen 11 and define it Is the starting coordinate. In order to further obtain other characteristic data of the character, the calculation unit 13 will continue to execute the coordinate recording step.

請參考圖3,其繪示該座標紀錄步驟之一實施例的流程圖,其包括:獲得一先前座標、一中繼座標以及一當下座標(步驟b1);根據該先前座標以及該中繼座標計算得出一第一角度(步驟b2);根據該中繼座標以及該當下座標計算得出一第二角度(步驟b3);判斷該第一角度以及該第二角度的一差值是否大於一閾值(步驟b4);該計算單元將該中繼座標紀錄到該轉折點座標組內(步驟b5);以及判斷該當下座標是否等於該終點座標(步驟b6)。Please refer to FIG. 3, which shows a flowchart of an embodiment of the coordinate recording step, which includes: obtaining a previous coordinate, a relay coordinate, and a current coordinate (step b1); according to the previous coordinate and the relay coordinate Calculate a first angle (step b2); calculate a second angle based on the relay coordinates and the current coordinates (step b3); determine whether a difference between the first angle and the second angle is greater than one Threshold (step b4); the calculation unit records the relay coordinates into the turning point coordinate group (step b5); and determines whether the current coordinates are equal to the end coordinates (step b6).

具體而言,該計算單元13透過該感測單元12獲得該手指於當下時間點於該觸控螢幕上的座標,並將其定義為當下座標;此外,該計算單元13透過該感測單元12獲得該當下座標一時距(例如是一幀)前該手指於該觸控螢幕上的座標,並將其定義為中繼座標;之後,該計算單元13透過該感測單元12獲得該中繼座標該時距(例如是一幀)前該手指於該觸控螢幕上的座標,並將其定義為先前座標。Specifically, the calculation unit 13 obtains the coordinates of the finger on the touch screen at the current time point through the sensing unit 12, and defines them as the current coordinates; in addition, the calculation unit 13 uses the sensing unit 12 Obtain the coordinates of the finger on the touch screen before the current coordinate one time interval (for example, one frame), and define them as relay coordinates; then, the calculation unit 13 obtains the relay coordinates through the sensing unit 12 The coordinates of the finger on the touch screen before the time interval (for example, one frame) are defined as the previous coordinates.

得到該先前座標以及該中繼座標後,即可計算出由該先前座標前進至該中繼座標的一第一向量,且由該第一向量與水平軸的夾角定義出一第一角度θ1;另一方面,得到該中繼座標以及該當下座標後,即可計算出由該中繼座標前進至該當下座標的一第二向量,且由該第二向量與水平軸的夾角定義出一第二角度θ2。在得到該第一角度θ1以及該第二角度θ2後,該計算單元13即可藉由該第一角度θ1以及該第二角度θ2的差值,判斷該中繼座標是否為該字符書寫過程中的轉折點。After obtaining the previous coordinates and the relay coordinates, a first vector from the previous coordinates to the relay coordinates can be calculated, and a first angle θ1 is defined by the angle between the first vector and the horizontal axis; On the other hand, after obtaining the relay coordinates and the current coordinates, a second vector from the relay coordinates to the current coordinates can be calculated, and a second vector is defined by the angle between the second vector and the horizontal axis. Two angle θ2. After obtaining the first angle θ1 and the second angle θ2, the calculation unit 13 can determine whether the relay coordinate is in the process of writing the character by using the difference between the first angle θ1 and the second angle θ2 Turning point.

詳細而言,該觸控模組1根據測試數據可獲得一閾值,當該第一角度θ1以及該第二角度θ2的差值,也就是兩角度之間的角度變化絕對值Δθ = |θ2 -θ1|大於該閾值時,該計算單元13會將該中繼座標視為該字符書寫過程中的轉折點,並將該中繼座標紀錄到該轉折點座標組內。在執行完畢該角度變化絕對值與閾值間的大小判斷以及該轉折點座標組的紀錄後,該計算單元13會透過該感測單元12偵測該使用者的該手指是否離開該觸控螢幕11,也就是該當下座標是否等於該終點座標。若是,則代表當前階段的座標紀錄步驟暫時結束;若否,則代表該使用者仍然在書寫過程中,該計算單元13將在該時距(例如是一幀)後更新該先前座標、該中繼座標、該當下座標、該第一角度θ1以及該第二角度θ2,也就是在該時距後重新獲得一次先前座標、中繼座標以及當下座標,透過新的先前座標、中繼座標以及當下座標計算出新的第一角度θ1以及新的第二角度θ2,並藉由新的第一角度θ1以及新的第二角度θ2偵測可能存在的轉折點座標,將其紀錄到該轉折點座標組內。In detail, the touch module 1 can obtain a threshold value according to the test data. When the difference between the first angle θ1 and the second angle θ2 is the absolute value of the angle change between the two angles Δθ = |θ2 − When θ1| is greater than the threshold, the calculation unit 13 will regard the relay coordinates as a turning point in the process of writing the character, and record the relay coordinates in the turning point coordinate group. After the determination of the magnitude between the absolute value of the angle change and the threshold value and the record of the turning point coordinate group are performed, the calculation unit 13 detects through the sensing unit 12 whether the user's finger leaves the touch screen 11, That is, whether the current coordinates are equal to the end coordinates. If yes, it means that the coordinate recording step of the current stage is temporarily finished; if not, it means that the user is still in the writing process, and the calculation unit 13 will update the previous coordinates and the middle after the time interval (for example, one frame). Following the coordinates, the current coordinates, the first angle θ1, and the second angle θ2, that is, the previous coordinates, the relay coordinates, and the current coordinates are obtained again after the time interval, through the new previous coordinates, the relay coordinates, and the current The coordinates calculate a new first angle θ1 and a new second angle θ2, and use the new first angle θ1 and the new second angle θ2 to detect possible turning point coordinates, and record them in the turning point coordinate group .

當使用者的該手指離開該觸控螢幕11時,該感測單元12會偵測該手指離開該觸控螢幕11的最終位置,並將其定義為終點座標。之後,該計算單元13將根據該起始座標、該轉折點座標組以及該終點座標進行字符識別。When the user's finger leaves the touch screen 11, the sensing unit 12 detects the final position where the finger leaves the touch screen 11 and defines it as the end point coordinates. After that, the calculation unit 13 will perform character recognition based on the start coordinate, the turning point coordinate group, and the end coordinate.

詳細而言,當該轉折點座標組具有n組轉折點座標時,則由第1組轉折點座標至第n組轉折點座標可分別定義為(x 1, y 1), (x 2, y 2), ……, (x n, y n),此時根據這副數組轉折點座標中第i組轉折點座標(x i, y i)以及第i-1組轉折點座標(x i-1, y i-1),可以計算這相鄰兩組轉折點座標間的第i組歐式距離ρ i= [(x i- x i-1) 2+ (y i- y i-1) 2] 1/2。當該歐式距離ρ i小於給定的一筆劃閾值時,代表該筆劃可能為起筆、收筆時的習慣,或者是書寫過程中的偏折而無須列入字符辨識的特徵當中,此時該計算單元13會將對應該歐式距離ρ i的筆劃判定為冗餘筆劃並捨棄。 In detail, when the turning point coordinate group has n sets of turning point coordinates, the first set of turning point coordinates to the nth set of turning point coordinates can be defined as (x 1 , y 1 ), (x 2 , y 2 ),… …, (x n , y n ), according to the i-th set of turning point coordinates (x i , y i ) and the i-1th set of turning point coordinates (x i-1 , y i-1 ) in this array of turning point coordinates , Can calculate the i-th Euclidean distance between the two adjacent sets of turning point coordinates ρ i = [(x i -x i-1 ) 2 + (y i -y i-1 ) 2 ] 1/2 . When the Euclidean distance ρ i is less than the given threshold of a stroke, it means that the stroke may be the habit of starting and ending the stroke, or the deflection in the writing process and does not need to be included in the characteristics of character recognition, and the calculation is The unit 13 will determine the stroke corresponding to the Euclidean distance ρ i as a redundant stroke and discard it.

除了筆劃長度過短的誤判情形外,過於相近的兩轉折角度間形成的轉折點有時也會成為字符辨識誤判的來源。為此,由這複數組轉折點座標中第i-1組轉折點座標(x i-1, y i-1)、第i組轉折點座標(x i, y i)以及第i-1組轉折點座標(x i-1, y i-1),可得到由第i-1組轉折點座標(x i-1, y i-1)前進至第i組轉折點座標(x i, y i)的一第一轉折向量以及由第i組轉折點座標(x i, y i)前進至第i+1組轉折點座標(x i+1, y i+1)的一第二轉折向量,並可得到該第一轉折向量以及該第二轉折向量之間的夾角。倘若該夾角小於給定的一夾角閾值時,代表該第i組轉折點座標(x i, y i)可能並非實質上字符的轉折點,此時該計算單元會將對應該夾角的轉折點判定為冗餘轉折點並捨棄。 In addition to the misjudgment of the stroke length being too short, the turning point formed between two turning angles that are too close can sometimes become a source of misjudgment in character recognition. To this end, the i-1th set of turning point coordinates (x i-1 , y i-1 ), the i-th set of turning point coordinates (x i , y i ) and the i-1th set of turning point coordinates ( x i-1 , y i-1 ), the first set of turning point coordinates (x i-1 , y i-1 ) to the i-th set of turning point coordinates (x i , y i ) can be obtained Turning vector and a second turning vector from the i-th set of turning point coordinates (x i , y i ) to the i+1-th set of turning point coordinates (x i+1 , y i+1 ), and the first turning point can be obtained The angle between the vector and the second turning vector. If the included angle is less than a given included angle threshold, it means that the i-th set of turning point coordinates (x i , y i ) may not be the turning point of the actual character. At this time, the calculation unit will determine the turning point corresponding to the included angle as redundant Turning point and discard.

在判定且捨棄完書寫過程中的冗餘筆劃以及冗餘轉折點後,該計算單元13將根據該起始座標、該轉折座標組以及該終點座標等有效字符特徵進行字符識別,藉此可避免複雜的比對機制,同時也能減少冗餘筆劃以及冗餘轉折點造成的誤判,大幅提高字符識別的成功率及效率。After determining and discarding redundant strokes and redundant turning points in the writing process, the calculation unit 13 will perform character recognition based on the effective character features such as the start coordinate, the turning coordinate group, and the end coordinate, thereby avoiding complexity The comparison mechanism can also reduce the misjudgment caused by redundant strokes and redundant turning points, and greatly improve the success rate and efficiency of character recognition.

本案所揭示者,乃較佳實施例,舉凡局部之變更或修飾而源於本案之技術思想而為熟習該項技藝之人所易於推知者,俱不脫本案之專利權範疇。The disclosure in this case is a preferred embodiment, and any partial changes or modifications that are derived from the technical ideas of the case and can be easily inferred by those who are familiar with the art do not deviate from the scope of the patent right of the case.

綜上所陳,本案無論目的、手段與功效,皆顯示其迥異於習知技術,且其首先發明合於實用,確實符合發明之專利要件,懇請 貴審查委員明察,並早日賜予專利俾嘉惠社會,是為至禱。In summary, regardless of the purpose, means and effect of this case, it is shown that it is very different from the conventional technology, and its first invention is suitable for practicality, and it does meet the patent requirements of the invention. I implore the examiner to investigate and grant the patent as soon as possible. Society is for the best prayer.

步驟a:該感測單元偵測一使用者的一手指接觸觸控螢幕的一起始座標 步驟b:該計算單元執行一座標紀錄步驟以得到一轉折點座標組 步驟b1:獲得一先前座標、一中繼座標以及一當下座標 步驟b2:根據該先前座標以及該中繼座標計算得出一第一角度 步驟b3:根據該中繼座標以及該當下座標計算得出一第二角度 步驟b4:判斷該第一角度以及該第二角度的一差值是否大於一閾值? 步驟b5:該計算單元將該中繼座標紀錄到該轉折點座標組內 步驟b6:判斷該當下座標是否等於該終點座標? 步驟c:該感測單元偵測該手指離開該觸控螢幕的一終點座標 步驟d:該計算單元根據該起始座標、該轉折點座標組以及該終點座標進行字符識別 1:觸控模組 11:觸控螢幕 12:感測單元 13:計算單元Step a: The sensing unit detects an initial coordinate of a user's finger touching the touch screen Step b: The calculation unit executes a mark recording step to obtain a turning point coordinate set Step b1: Obtain a previous coordinate, a relay coordinate and a current coordinate Step b2: Calculate a first angle based on the previous coordinates and the relay coordinates Step b3: Calculate a second angle according to the relay coordinates and the current coordinates Step b4: Determine whether a difference between the first angle and the second angle is greater than a threshold? Step b5: The calculation unit records the relay coordinates into the turning point coordinate group Step b6: Determine whether the current coordinates are equal to the end coordinates? Step c: The sensing unit detects an end point where the finger leaves the touch screen Step d: The calculation unit performs character recognition according to the start coordinate, the turning point coordinate group, and the end coordinate 1: Touch module 11: Touch screen 12: Sensing unit 13: Computing unit

圖1繪示本發明之觸控模組之一實施例的方塊圖。 圖2繪示本發明之字符識別方法之一實施例的流程圖。 圖3繪示圖2中座標紀錄步驟之一實施例的流程圖。 FIG. 1 shows a block diagram of an embodiment of the touch module of the present invention. FIG. 2 shows a flowchart of an embodiment of the character recognition method of the present invention. FIG. 3 is a flowchart of an embodiment of the coordinate recording step in FIG. 2.

步驟a:該感測單元偵測一使用者的一手指接觸觸控螢幕的一起始座標 Step a: The sensing unit detects an initial coordinate of a user's finger touching the touch screen

步驟b:該計算單元執行一座標紀錄步驟以得到一轉折點座標組 Step b: The calculation unit executes a mark recording step to obtain a turning point coordinate set

步驟c:該感測單元偵測該手指離開該觸控螢幕的一終點座標 Step c: The sensing unit detects an end point where the finger leaves the touch screen

步驟d:該計算單元根據該起始座標、該轉折點座標組以及該終點座標進行字符識別 Step d: The calculation unit performs character recognition according to the start coordinate, the turning point coordinate group, and the end coordinate

Claims (10)

一種字符識別方法,適用於一觸控模組,其中該觸控模組包括一觸控螢幕、一感測單元以及一計算單元,該感測單元電性連接該觸控螢幕,且該計算單元電性連接該感測單元,該字符識別方法包括: 該感測單元偵測一使用者的一手指接觸該觸控螢幕的一起始座標; 該計算單元執行一座標紀錄步驟以得到一轉折點座標組; 該感測單元偵測該手指離開該觸控螢幕的一終點座標;以及 該計算單元根據該起始座標、該轉折點座標組以及該終點座標進行字符識別; 其中,該座標紀錄步驟包括: 獲得一先前座標、一中繼座標以及一當下座標,其中該中繼座標為該當下座標一時距前該手指於該觸控螢幕上的座標,且該先前座標為該中繼座標該時距前該手指於該觸控螢幕上的座標; 根據該先前座標以及該中繼座標計算得出一第一角度; 根據該中繼座標以及該當下座標計算得出一第二角度;以及 判斷該第一角度以及該第二角度的一差值是否大於一閾值; 其中,當該差值大於該閾值時,該計算單元將該中繼座標紀錄到該轉折點座標組內;當該當下座標不等於該終點座標時,該計算單元在該時距後更新該先前座標、該中繼座標、該當下座標、該第一角度以及該第二角度。 A character recognition method is suitable for a touch module, wherein the touch module includes a touch screen, a sensing unit, and a calculation unit. The sensing unit is electrically connected to the touch screen, and the calculation unit Electrically connected to the sensing unit, the character recognition method includes: The sensing unit detects an initial coordinate of a user's finger touching the touch screen; The calculation unit executes a mark recording step to obtain a turning point coordinate group; The sensing unit detects an end point where the finger leaves the touch screen; and The calculation unit performs character recognition according to the start coordinate, the turning point coordinate group, and the end coordinate; Among them, the coordinate recording steps include: Obtain a previous coordinate, a relay coordinate, and a current coordinate, where the relay coordinate is the coordinate of the finger on the touch screen before the current coordinate one time interval, and the previous coordinate is the relay coordinate before the time interval The coordinates of the finger on the touch screen; Calculate a first angle according to the previous coordinates and the relay coordinates; Calculate a second angle based on the relay coordinates and the current coordinates; and Judging whether a difference between the first angle and the second angle is greater than a threshold; Wherein, when the difference is greater than the threshold, the calculation unit records the relay coordinates in the turning point coordinate group; when the current coordinates are not equal to the end point coordinates, the calculation unit updates the previous coordinates after the time interval , The relay coordinates, the current coordinates, the first angle, and the second angle. 如申請專利範圍第1項所述之字符識別方法,其中該轉折點座標組包括複數組轉折點座標,且該字符識別方法更包括: 計算該複數組轉折點座標中每相鄰兩組轉折點座標間的一歐式距離;以及 判斷各該歐式距離是否小於一筆劃閾值。 For the character recognition method described in item 1 of the scope of patent application, the turning point coordinate group includes a complex array of turning point coordinates, and the character recognition method further includes: Calculate the Euclidean distance between every two adjacent sets of turning point coordinates in the complex array of turning point coordinates; and Determine whether each Euclidean distance is less than a stroke threshold. 如申請專利範圍第1項所述之字符識別方法,其中該轉折點座標組包括複數組轉折點座標,且該字符識別方法更包括: 計算該複數組轉折點座標中每相鄰三組轉折點座標間的一夾角;以及 判斷各該夾角是否小於一夾角閾值。 For the character recognition method described in item 1 of the scope of patent application, the turning point coordinate group includes a complex array of turning point coordinates, and the character recognition method further includes: Calculate an included angle between every three adjacent sets of turning point coordinates in the complex array of turning point coordinates; and It is determined whether each included angle is less than an included angle threshold. 如申請專利範圍第1項所述之字符識別方法,其中根據該先前座標以及該中繼座標計算得出該第一角度包括: 計算由該先前座標前進至該中繼座標的一第一向量,其中該第一角度為該第一向量與水平軸的夾角。 For the character recognition method described in item 1 of the scope of patent application, the calculation of the first angle based on the previous coordinates and the relay coordinates includes: Calculate a first vector from the previous coordinate to the relay coordinate, where the first angle is the angle between the first vector and the horizontal axis. 如申請專利範圍第1項所述之字符識別方法,其中根據該中繼座標以及該當下座標計算得出該第二角度包括: 計算由該中繼座標前進至該當下座標的一第二向量,其中該第二角度為該第二向量與水平軸的夾角。 For the character recognition method described in item 1 of the scope of patent application, the calculation of the second angle based on the relay coordinates and the current coordinates includes: Calculate a second vector from the relay coordinate to the current coordinate, where the second angle is the angle between the second vector and the horizontal axis. 一種觸控模組,包括一觸控螢幕、一感測單元及一計算單元以執行一字符識別方法,其中該感測單元電性連接該觸控螢幕,且該計算單元電性連接該感測單元,該字符識別方法包括: 該感測單元偵測一使用者的一手指接觸該觸控螢幕的一起始座標; 該計算單元執行一座標紀錄步驟以得到一轉折點座標組; 該感測單元偵測該手指離開該觸控螢幕的一終點座標;以及 該計算單元根據該起始座標、該轉折點座標組以及該終點座標進行字符識別; 其中,該座標紀錄步驟包括: 獲得一先前座標、一中繼座標以及一當下座標,其中該中繼座標為該當下座標一時距前該手指於該觸控螢幕上的座標,且該先前座標為該中繼座標該時距前該手指於該觸控螢幕上的座標; 根據該先前座標以及該中繼座標計算得出一第一角度; 根據該中繼座標以及該當下座標計算得出一第二角度;以及 判斷該第一角度以及該第二角度的一差值是否大於一閾值; 其中,當該差值大於該閾值時,該計算單元將該中繼座標紀錄到該轉折點座標組內;當該當下座標不等於該終點座標時,該計算單元在該時距後更新該先前座標、該中繼座標、該當下座標、該第一角度以及該第二角度。 A touch module includes a touch screen, a sensing unit, and a calculation unit to perform a character recognition method, wherein the sensing unit is electrically connected to the touch screen, and the calculation unit is electrically connected to the sensing Unit, the character recognition method includes: The sensing unit detects an initial coordinate of a user's finger touching the touch screen; The calculation unit executes a mark recording step to obtain a turning point coordinate group; The sensing unit detects an end point where the finger leaves the touch screen; and The calculation unit performs character recognition according to the start coordinate, the turning point coordinate group, and the end coordinate; Among them, the coordinate recording steps include: Obtain a previous coordinate, a relay coordinate, and a current coordinate, where the relay coordinate is the coordinate of the finger on the touch screen before the current coordinate one time interval, and the previous coordinate is the relay coordinate before the time interval The coordinates of the finger on the touch screen; Calculate a first angle according to the previous coordinates and the relay coordinates; Calculate a second angle based on the relay coordinates and the current coordinates; and Judging whether a difference between the first angle and the second angle is greater than a threshold; Wherein, when the difference is greater than the threshold, the calculation unit records the relay coordinate in the turning point coordinate group; when the current coordinate is not equal to the end point coordinate, the calculation unit updates the previous coordinate after the time interval , The relay coordinates, the current coordinates, the first angle, and the second angle. 如申請專利範圍第6項所述之觸控模組,其中該轉折點座標組包括複數組轉折點座標,且該字符識別方法更包括: 計算該複數組轉折點座標中每相鄰兩組轉折點座標間的一歐式距離;以及 判斷各該歐式距離是否小於一筆劃閾值。 For the touch module described in item 6 of the scope of patent application, the turning point coordinate group includes a complex array of turning point coordinates, and the character recognition method further includes: Calculate the Euclidean distance between every two adjacent sets of turning point coordinates in the complex array of turning point coordinates; and Determine whether each Euclidean distance is less than a stroke threshold. 如申請專利範圍第6項所述之觸控模組,其中該轉折點座標組包括複數組轉折點座標,且該字符識別方法更包括: 計算該複數組轉折點座標中每相鄰三組轉折點座標間的一夾角;以及 判斷各該夾角是否小於一夾角閾值。 For the touch module described in item 6 of the scope of patent application, the turning point coordinate group includes a complex array of turning point coordinates, and the character recognition method further includes: Calculate an included angle between every three adjacent sets of turning point coordinates in the complex array of turning point coordinates; and It is determined whether each included angle is less than an included angle threshold. 如申請專利範圍第6項所述之觸控模組,其中根據該先前座標以及該中繼座標計算得出該第一角度包括: 計算由該先前座標前進至該中繼座標的一第一向量,其中該第一角度為該第一向量與水平軸的夾角。 For the touch module described in item 6 of the scope of patent application, the first angle calculated based on the previous coordinates and the relay coordinates includes: Calculate a first vector from the previous coordinate to the relay coordinate, where the first angle is the angle between the first vector and the horizontal axis. 如申請專利範圍第6項所述之觸控模組,其中根據該中繼座標以及該當下座標計算得出該第二角度包括: 計算由該中繼座標前進至該當下座標的一第二向量,其中該第二角度為該第二向量與水平軸的夾角。 For the touch module described in item 6 of the scope of patent application, the second angle calculated based on the relay coordinates and the current coordinates includes: Calculate a second vector from the relay coordinate to the current coordinate, where the second angle is the angle between the second vector and the horizontal axis.
TW108145154A 2019-12-10 2019-12-10 Character recognition method and touch control module using the same TWI712920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108145154A TWI712920B (en) 2019-12-10 2019-12-10 Character recognition method and touch control module using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108145154A TWI712920B (en) 2019-12-10 2019-12-10 Character recognition method and touch control module using the same

Publications (2)

Publication Number Publication Date
TWI712920B true TWI712920B (en) 2020-12-11
TW202122971A TW202122971A (en) 2021-06-16

Family

ID=74669934

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108145154A TWI712920B (en) 2019-12-10 2019-12-10 Character recognition method and touch control module using the same

Country Status (1)

Country Link
TW (1) TWI712920B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI470490B (en) * 2012-02-17 2015-01-21 Wistron Corp Stroke display method of handwriting input and electronic device
TWI620097B (en) * 2016-12-30 2018-04-01 漳州立達信光電子科技有限公司 Input method and touch device using the input method, gesture detecting device, computer readable recording medium, and computer program product
TW201816584A (en) * 2016-10-17 2018-05-01 宏碁股份有限公司 Method for adjusting rendering effect of handwriting input and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI470490B (en) * 2012-02-17 2015-01-21 Wistron Corp Stroke display method of handwriting input and electronic device
TW201816584A (en) * 2016-10-17 2018-05-01 宏碁股份有限公司 Method for adjusting rendering effect of handwriting input and electronic device
TWI620097B (en) * 2016-12-30 2018-04-01 漳州立達信光電子科技有限公司 Input method and touch device using the input method, gesture detecting device, computer readable recording medium, and computer program product

Also Published As

Publication number Publication date
TW202122971A (en) 2021-06-16

Similar Documents

Publication Publication Date Title
US10372328B2 (en) Intelligent touchscreen keyboard with finger differentiation
CN104081328B (en) Smart touch screen key activation detection
CN102004908A (en) Self-adapting face identification method and device
CN106575170A (en) Method of performing a touch action in a touch sensitive device
US9489086B1 (en) Finger hover detection for improved typing
CN107909042B (en) continuous gesture segmentation recognition method
CN107729372A (en) A kind of abnormal indicating means and mobile terminal
CN115589786A (en) Hand-drawn pattern recognition method, device and system, and computer-readable storage medium
US20160357301A1 (en) Method and system for performing an action based on number of hover events
CN110109563A (en) A kind of method and system of the contact condition of determining object relative to touch sensitive surface
CN109190443A (en) It is a kind of accidentally to know gestures detection and error correction method
CN103970328A (en) Touch or non-touch type multi-input-point control command detecting method and device
TWI712920B (en) Character recognition method and touch control module using the same
JP6028320B2 (en) Contact detection device, recording display device, and program
CN106293443B (en) Information processing method and equipment
CN108279846A (en) A kind of gesture model establishes, the method and device of gesture authentication
Tsai et al. Reverse time ordered stroke context for air-writing recognition
CN114995630B (en) A virtual keyboard and keyboard input method based on sensor information fusion
TWI709894B (en) Gesture feature processing method and touch control module using the same
CN111367459B (en) Text input method and smart electronic device using pressure touchpad
TWI738146B (en) Character recognition method and touch control module using the same
US10983627B2 (en) Biometric information-based touch contact classification
TWI871540B (en) Control method of a touchpad
CN117786643B (en) User identity authentication method and related equipment
CN111831101A (en) A multi-feature dynamic gesture recognition method based on Leap Motion