TW201715362A - System and method for predicting trajectory - Google Patents

System and method for predicting trajectory Download PDF

Info

Publication number
TW201715362A
TW201715362A TW104137276A TW104137276A TW201715362A TW 201715362 A TW201715362 A TW 201715362A TW 104137276 A TW104137276 A TW 104137276A TW 104137276 A TW104137276 A TW 104137276A TW 201715362 A TW201715362 A TW 201715362A
Authority
TW
Taiwan
Prior art keywords
trajectory
point
track
points
starting point
Prior art date
Application number
TW104137276A
Other languages
Chinese (zh)
Other versions
TWI598784B (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 業成光電(深圳)有限公司
Publication of TW201715362A publication Critical patent/TW201715362A/en
Application granted granted Critical
Publication of TWI598784B publication Critical patent/TWI598784B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Abstract

A system for predicting trajectory is run in an electronic device which includes a sensing construction for gesture recognition or virtual operation. The system for predicting trajectory is cooperated with the sensing construction for predicting route trajectory of the gesture operation on the electronic device. The system for predicting trajectory includes a starting-point detection module configured to detect a starting-point of the route trajectory, a read-out module configured to read out the first coordinate of the route trajectory spot, and a count module configured to a second coordinate of the route trajectory spot according to the starting-point and the first coordinate.

Description

軌跡預測系統及軌跡預測方法Trajectory prediction system and trajectory prediction method

本發明系關於一種軌跡預測系統及軌跡預測方法。The present invention relates to a trajectory prediction system and a trajectory prediction method.

觸控式螢幕技術作為一種人機對話模式因方便快捷而得到廣泛應用。當使用者接觸觸控式螢幕時,處理器將觸控式螢幕接收之資訊處理後執行動作。然而,由於顯示器延遲及處理器處理資訊所需時間而導致執行動作較接觸觸控式螢幕的時間存在時間延遲,尤其是軌跡較長的觸摸操作,如畫線時,顯示器顯示時間與觸摸時間延遲較為明顯。同樣在虛擬實境設備中,使用者的動作軌跡在三維空間內需要更多計算而導致動作執行的時間延遲明顯。Touch screen technology is widely used as a human-machine dialogue mode because it is convenient and fast. When the user touches the touch screen, the processor processes the information received by the touch screen and performs an action. However, due to the delay of the display and the time required for the processor to process the information, there is a time delay in performing the action compared to the touch screen, especially when the touch operation is long, such as when the line is drawn, the display time and the touch time are delayed. More obvious. Also in the virtual reality device, the user's motion trajectory requires more calculations in the three-dimensional space, resulting in a significant time delay in the execution of the action.

有鑑於此,有必要提供一種軌跡預測系統及軌跡預測方法。In view of this, it is necessary to provide a trajectory prediction system and a trajectory prediction method.

一種軌跡預測系統,運行於電子裝置中,該電子裝置具有用於識別手勢或虛擬操作的感應結構,該軌跡預測系統與該感應結構相配合,用於預測在該電子裝置上所發生的手勢操作的路線軌跡,該軌跡預測系統包括:A trajectory prediction system, running in an electronic device, having an inductive structure for recognizing a gesture or a virtual operation, the trajectory prediction system cooperating with the sensing structure for predicting a gesture operation occurring on the electronic device Route trajectory, the trajectory prediction system includes:

起點檢測模組,用於檢測該路線軌跡的軌跡起點;a starting point detecting module, configured to detect a starting point of the track of the route track;

讀取模組,用於讀取該軌跡起點後預定數量軌跡點的座標;及a reading module for reading a coordinate of a predetermined number of track points after the start of the track; and

軌跡計算模組,用於根據該軌跡起點及起點後預定數量軌跡點的座標計算後續軌跡點的座標。The trajectory calculation module is configured to calculate the coordinates of the subsequent trajectory points according to the coordinates of the starting point of the trajectory and the coordinates of the predetermined number of trajectory points after the starting point.

一種軌跡預測方法,運行於電子裝置中,該電子裝置具有用於識別手勢或虛擬操作的感應結構,該軌跡預測方法與該感應結構相配合,用於預測在該電子裝置的路線軌跡,該軌跡預測方法包括:A trajectory prediction method, running in an electronic device, the electronic device having an inductive structure for recognizing a gesture or a virtual operation, the trajectory prediction method cooperating with the sensing structure for predicting a route trajectory of the electronic device, the trajectory Forecasting methods include:

檢測軌跡起點;Detect the starting point of the track

讀取該軌跡起點後預定數量軌跡點的座標;及Reading the coordinates of a predetermined number of track points after the start of the track; and

根據該軌跡起點及起點後預定數量軌跡點的座標計算後續軌跡點的座標。The coordinates of the subsequent track points are calculated according to the coordinates of the starting point of the track and the coordinates of the predetermined number of track points after the starting point.

本發明的軌跡預測系統及軌跡預測方法,可根據軌跡起點及起點後預定數量的軌跡點的座標計算後續軌跡點的座標,從而實現軌跡預測避免待軌跡發生後再計算的時間延遲。The trajectory prediction system and the trajectory prediction method of the present invention can calculate the coordinates of the subsequent trajectory points according to the coordinates of the starting point of the trajectory and the predetermined number of trajectory points after the starting point, thereby realizing the trajectory prediction to avoid the time delay of recalculating after the trajectory occurs.

圖1是本發明軌跡預測系統一實施例運行環境的硬體架構圖。1 is a hardware architecture diagram of an operating environment of an embodiment of a trajectory prediction system of the present invention.

圖2是圖1所示的軌跡預測系統預測軌跡示意圖。2 is a schematic diagram of a predicted trajectory of the trajectory prediction system shown in FIG. 1.

圖3是本發明軌跡預測方法一實施例的流程圖。3 is a flow chart of an embodiment of a trajectory prediction method of the present invention.

圖4是本發明軌跡預測系統另一實施例運行環境的硬體架構圖。4 is a hardware architecture diagram of an operating environment of another embodiment of the trajectory prediction system of the present invention.

圖5是圖4所示的軌跡預測系統預測軌跡示意圖。FIG. 5 is a schematic diagram of a predicted trajectory of the trajectory prediction system shown in FIG. 4.

圖6是圖4所示的軌跡預測系統修正軌跡示意圖。FIG. 6 is a schematic diagram of a modified trajectory of the trajectory prediction system shown in FIG. 4.

圖7是本發明軌跡預測方法另一實施例的流程圖。7 is a flow chart of another embodiment of a trajectory prediction method of the present invention.

請參閱圖1,圖1是本發明軌跡預測系統10一實施例運行環境的硬體架構示意圖。該軌跡預測系統10應用於電子裝置100中。在本實施例中,該電子裝置100可以是,但不限於,智慧手機、個人數位助理(PDA)、平板電腦以及移動互聯網設備(MID)、虛擬實境設備(Virtual Reality)等。該軌跡預測系統10用於預測使用者操作該電子裝置100的路線軌跡。在本實施例中,該電子裝置100為具有觸控功能的電子裝置,該觸控功能由觸控屏101來實現,該觸控式螢幕101可為一內嵌式觸控屏或一外掛式觸控屏。該軌跡預測系統10能夠與該電子裝置100的觸控屏101中能夠感應手勢操作的感應結構相配合,並透過該電子裝置100的觸控感應驅動晶片來獲取預測所需的基礎資料。該觸控感應驅動晶片讀取該觸控屏101感應的感應訊號並根據該感應訊號分析出觸摸點的座標位置及觸碰動作形態,如滑動觸摸或點擊觸摸。當判斷為滑動觸摸操作時,該軌跡預測系統10被觸發啟動。在其他實施例中,該電子裝置100為用於感測使用者頭、眼、手等虛擬操作的軌跡的虛擬實境設備,當該電子裝置100判斷使用者的透過非起始點動作時,該軌跡預測系統10被觸發啟動。Please refer to FIG. 1. FIG. 1 is a schematic diagram of a hardware architecture of an operating environment of an embodiment of the trajectory prediction system 10 of the present invention. The trajectory prediction system 10 is applied to the electronic device 100. In this embodiment, the electronic device 100 may be, but not limited to, a smart phone, a personal digital assistant (PDA), a tablet computer, and a mobile internet device (MID), a virtual reality device (Virtual Reality), and the like. The trajectory prediction system 10 is configured to predict a route trajectory of a user operating the electronic device 100. In this embodiment, the electronic device 100 is an electronic device with a touch function. The touch function is implemented by the touch screen 101. The touch screen 101 can be an in-cell touch screen or an external display. touch screen. The trajectory prediction system 10 can cooperate with the sensing structure of the touch screen 101 of the electronic device 100 to sense the gesture operation, and drive the chip through the touch sensing of the electronic device 100 to obtain the basic data required for prediction. The touch sensing driving chip reads the sensing signal sensed by the touch screen 101 and analyzes the coordinate position of the touch point and the touch action form according to the sensing signal, such as sliding touch or click touch. When it is determined that the touch operation is a sliding touch, the trajectory prediction system 10 is triggered to be activated. In other embodiments, the electronic device 100 is a virtual reality device for sensing a trajectory of a virtual operation of a user's head, eyes, hands, etc., when the electronic device 100 determines that the user moves through a non-starting point, The trajectory prediction system 10 is triggered to start.

該軌跡預測系統10包括起點檢測模組12、讀取模組14與軌跡計算模組16。該軌跡預測系統10可固化在電子裝置100的作業系統中,也可存儲在電子裝置100的記憶體104中,並由該電子裝置100的處理器102執行,以預測使用者操作該電子裝置100的路線軌跡。在本實施例中,該觸控屏的感應結構感應發生在該觸控式螢幕上的手勢操作並將該觸摸操作轉化為感應訊號傳送給觸控感應驅動晶片,該觸控感應驅動晶片分析該電訊號以得到包括觸摸點座標位置及觸碰動作形態等基礎資料於該處理器102,以使該處理器102執行該軌跡預測系統10。The trajectory prediction system 10 includes a starting point detection module 12, a reading module 14 and a trajectory calculation module 16. The trajectory prediction system 10 can be solidified in the operating system of the electronic device 100, or stored in the memory 104 of the electronic device 100, and executed by the processor 102 of the electronic device 100 to predict the user operating the electronic device 100. Route trajectory. In this embodiment, the sensing structure of the touch screen senses a gesture operation occurring on the touch screen and converts the touch operation into a sensing signal for transmitting to the touch sensing driving chip, and the touch sensing driving chip analyzes the The signal is obtained by the processor 102 to obtain the basic data including the touch point coordinate position and the touch action form, so that the processor 102 executes the trajectory prediction system 10.

請一併參閱圖2,圖2是圖1所示的軌跡預測系統10預測軌跡示意圖。該起點檢測模組12用於檢測軌跡起點。在本實施例中以預測平面上的軌跡,如觸控式螢幕上的觸摸軌跡進行說明,但不限於平面,如在三維立體空間中應用的虛擬實境設備同樣適用。該起點檢測模組12檢測出軌跡L1的起點並記錄該起點為第一點P1且座標為(X1,Y1)。Please refer to FIG. 2 together. FIG. 2 is a schematic diagram of the predicted trajectory of the trajectory prediction system 10 shown in FIG. 1. The starting point detecting module 12 is configured to detect the starting point of the track. In the present embodiment, the trajectory on the prediction plane, such as the touch trajectory on the touch screen, is described, but is not limited to a plane, and the virtual reality device applied in the three-dimensional space is also applicable. The origin detection module 12 detects the start point of the locus L1 and records the start point as the first point P1 and the coordinates as (X1, Y1).

該讀取模組14讀取該軌跡L1起點後預定數量軌跡點的座標。在本實施方式中,該讀取模組14讀取該起點後二軌跡點的座標並記錄為第二點P2、第三點P3並分別記為P2(X2,Y2)、P3(X3,Y3)。The reading module 14 reads the coordinates of a predetermined number of track points after the start of the track L1. In this embodiment, the reading module 14 reads the coordinates of the two track points after the starting point and records them as the second point P2 and the third point P3 and respectively records them as P2 (X2, Y2) and P3 (X3, Y3). ).

該軌跡計算模組16用於根據該軌跡起點與該起點後預定數量的軌跡點座標計算後續軌跡點的座標。具體地,定義相鄰軌跡點之間的距離D(n)=((Xn-X(n-1))^2+(Yn-Y(n-1))^2)^0.5,相鄰軌跡點之間的斜率S(n)=(Yn-Y(n-1))/((Xn-X(n-1))。且D(n)=2*D(n-1)-D(n-2),S(n)=2*S(n-1)-S(n-2),其中n表示該軌跡L1的第n點。由於該軌跡L1的起點及該起點後二軌跡點的座標分別為(X1,Y1) 、(X2,Y2)、(X3,Y3),因此可根據前述第一到第三點的座標計算獲取第四點P4的座標(X4,Y4),然後依序計算第五點P5(X5,Y5)、第六點P6(X6,Y6)。在本實施例中,該預測座標點的數量根據該電子裝置100的延遲時間與每二相鄰軌跡點的間隔時間確定,如電子裝置100的延遲時間為80ms而每二相鄰軌跡點的間隔時間為6.6ms時則軌跡L1共12點即需要預測9個點。The trajectory calculation module 16 is configured to calculate coordinates of the subsequent trajectory points according to the trajectory starting point and a predetermined number of trajectory point coordinates after the starting point. Specifically, the distance between adjacent track points is defined as D(n)=((Xn-X(n-1))^2+(Yn-Y(n-1))^2)^0.5, adjacent tracks The slope S(n) between points = (Yn-Y(n-1))/((Xn-X(n-1)). And D(n)=2*D(n-1)-D( N-2), S(n)=2*S(n-1)-S(n-2), where n represents the nth point of the trajectory L1. Since the start point of the trajectory L1 and the second trajectory point after the start point The coordinates are (X1, Y1), (X2, Y2), (X3, Y3), so the coordinates (X4, Y4) of the fourth point P4 can be obtained according to the coordinates of the first to third points described above, and then The fifth point P5 (X5, Y5) and the sixth point P6 (X6, Y6) are calculated. In the embodiment, the number of predicted coordinate points is determined according to the delay time of the electronic device 100 and every two adjacent track points. The interval time is determined. If the delay time of the electronic device 100 is 80 ms and the interval time between every two adjacent track points is 6.6 ms, then the track L1 has a total of 12 points, that is, 9 points need to be predicted.

該軌跡預測系統10將該計算之後續軌跡點的座標顯示於該觸控屏101上。The trajectory prediction system 10 displays the coordinates of the subsequent trajectory points of the calculation on the touch screen 101.

請一併參閱圖3,圖3是本發明軌跡預測方法一實施例的流程圖。Please refer to FIG. 3 together. FIG. 3 is a flowchart of an embodiment of a trajectory prediction method according to the present invention.

步驟S201,該起點檢測模組12用於檢測軌跡起點。在本實施例中以預測平面上的軌跡,如觸控式螢幕上的觸摸軌跡進行說明,但不限於平面,如在三維立體空間中應用的虛擬實境設備同樣適用。該起點檢測模組12檢測出軌跡L1的起點並記錄該為第一點P1且座標為(X1,Y1)。In step S201, the starting point detecting module 12 is configured to detect the starting point of the track. In the present embodiment, the trajectory on the prediction plane, such as the touch trajectory on the touch screen, is described, but is not limited to a plane, and the virtual reality device applied in the three-dimensional space is also applicable. The origin detection module 12 detects the start point of the locus L1 and records the first point P1 and the coordinates (X1, Y1).

步驟S203,該讀取模組14讀取該軌跡L1起點後預定數量軌跡點的座標。在本實施方式中,該讀取模組14讀取該起點後二軌跡點的座標並記錄為第二點P2、第三點P3並分別記為P2(X2,Y2)、P3(X3,Y3)。In step S203, the reading module 14 reads the coordinates of the predetermined number of track points after the start of the track L1. In this embodiment, the reading module 14 reads the coordinates of the two track points after the starting point and records them as the second point P2 and the third point P3 and respectively records them as P2 (X2, Y2) and P3 (X3, Y3). ).

步驟S205,該軌跡計算模組16用於根據該軌跡起點與該起點後預定數量的軌跡點座標計算後續軌跡點的座標。具體地,定義相鄰軌跡點之間的距離D(n)=((Xn-X(n-1))^2+(Yn-Y(n-1))^2)^0.5,相鄰軌跡點之間的斜率S(n)=(Yn-Y(n-1))/((Xn-X(n-1))。且D(n)=2*D(n-1)-D(n-2),S(n)=2*S(n-1)-S(n-2)。由於該軌跡L1的起點及該起點後二軌跡點的座標分別為(X1,Y1) 、(X2,Y2)、(X3,Y3),因此可根據前述第一到第三點的座標計算獲取第四點P4的座標(X4,Y4),然後依序計算第五點P5(X5,Y5)、第六點P6(X6,Y6)。在本實施例中,該預測座標點的數量根據該電子裝置100的延遲時間與每二相鄰軌跡點的間隔時間確定,如電子裝置100的延遲時間為80ms而每二相鄰軌跡點的間隔時間為6.6ms時則軌跡L1共12點即需要預測9個點。In step S205, the trajectory calculation module 16 is configured to calculate the coordinates of the subsequent trajectory points according to the starting point of the trajectory and a predetermined number of trajectory point coordinates after the starting point. Specifically, the distance between adjacent track points is defined as D(n)=((Xn-X(n-1))^2+(Yn-Y(n-1))^2)^0.5, adjacent tracks The slope S(n) between points = (Yn-Y(n-1))/((Xn-X(n-1)). And D(n)=2*D(n-1)-D( N-2), S(n)=2*S(n-1)-S(n-2), since the coordinates of the starting point of the locus L1 and the two locus points after the starting point are (X1, Y1), respectively X2, Y2), (X3, Y3), so the coordinates (X4, Y4) of the fourth point P4 can be calculated according to the coordinates of the first to third points described above, and then the fifth point P5 (X5, Y5) is sequentially calculated. The sixth point P6 (X6, Y6). In this embodiment, the number of predicted coordinate points is determined according to the delay time of the electronic device 100 and the interval time of each two adjacent track points, such as the delay time of the electronic device 100. For 80 ms and the interval between every two adjacent track points is 6.6 ms, then the track L1 has a total of 12 points, that is, 9 points need to be predicted.

該軌跡預測方法還包括將該計算之後續軌跡點的座標顯示於該觸控屏101上。The trajectory prediction method further includes displaying coordinates of the subsequent trajectory points of the calculation on the touch screen 101.

請參閱圖4,圖4是本發明軌跡預測系統30另一實施例運行環境的硬體架構示意圖。該軌跡預測系統30應用於電子裝置300中。在本實施例中,該電子裝置300可以是,但不限於,智慧手機、個人數位助理(PDA)、平板電腦以及移動互聯網設備(MID)、虛擬實境設備(VR)等。該軌跡預測系統30用於預測使用者操作該電子裝置300的路線軌跡。在本實施例中,該電子裝置300為具有觸控功能的電子裝置,該觸控功能由觸控屏301來實現,該觸控屏301可為一內嵌式觸控屏或一外掛式觸控屏來實現。該軌跡預測系統30可透過該電子裝置300的觸控感應驅動晶片來實現,該觸控感應驅動晶片讀取該觸控屏301感應的感應訊號並根據該感應訊號分析出觸摸點的座標位置及觸碰動作形態,如滑動觸摸或點擊觸摸。當判斷為滑動觸摸操作時,該軌跡預測系統30被觸發啟動。在其他實施例中,該電子裝置300為用於感測使用者頭、眼、手等軌跡的虛擬實境設備,當該電子裝置300判斷使用者透過非起始點動作時,該軌跡預測系統30被觸發啟動。Please refer to FIG. 4. FIG. 4 is a schematic diagram of a hardware architecture of another embodiment of the trajectory prediction system 30 of the present invention. The trajectory prediction system 30 is applied to the electronic device 300. In this embodiment, the electronic device 300 may be, but not limited to, a smart phone, a personal digital assistant (PDA), a tablet computer, and a mobile internet device (MID), a virtual reality device (VR), and the like. The trajectory prediction system 30 is configured to predict a route trajectory of a user operating the electronic device 300. In this embodiment, the electronic device 300 is an electronic device with a touch function. The touch function is implemented by the touch screen 301. The touch screen 301 can be an in-cell touch screen or an external touch. Control screen to achieve. The trajectory prediction system 30 can be implemented by the touch sensing driving chip of the electronic device 300. The touch sensing driving chip reads the sensing signal sensed by the touch screen 301 and analyzes the coordinate position of the touch point according to the sensing signal. Touch the action form, such as swiping a touch or tapping a touch. When it is determined that the touch operation is a sliding touch, the trajectory prediction system 30 is triggered to be activated. In other embodiments, the electronic device 300 is a virtual reality device for sensing a user's head, eyes, hands, and the like. When the electronic device 300 determines that the user moves through a non-starting point, the trajectory prediction system 30 is triggered to start.

該軌跡預測系統30包括起點檢測模組32、讀取模組34、軌跡計算模組36與軌跡修正模組38。該軌跡預測系統30可固化在電子裝置300的作業系統中,也可存儲在電子裝置300的記憶體304中,並由該電子裝置300的處理器302執行,以預測使用者操作該電子裝置300的路線軌跡。The trajectory prediction system 30 includes a starting point detection module 32, a reading module 34, a trajectory calculation module 36, and a trajectory correction module 38. The trajectory prediction system 30 can be solidified in the operating system of the electronic device 300, or stored in the memory 304 of the electronic device 300, and executed by the processor 302 of the electronic device 300 to predict the user operating the electronic device 300. Route trajectory.

請一併參閱圖5,圖5是圖4所示的軌跡預測系統預測軌跡示意圖。該起點檢測模組32用於檢測軌跡起點。在本實施例中以預測平面上的軌跡,如觸控式螢幕上的觸摸軌跡進行說明,但不限於平面,如在三維立體空間中應用的虛擬實境設備同樣適用。該起點檢測模組32檢測出預測軌跡L11的起點並記錄該起點為第一點P11且座標為(x1,y1)。Please refer to FIG. 5 together. FIG. 5 is a schematic diagram of the predicted trajectory of the trajectory prediction system shown in FIG. 4. The starting point detecting module 32 is configured to detect the starting point of the track. In the present embodiment, the trajectory on the prediction plane, such as the touch trajectory on the touch screen, is described, but is not limited to a plane, and the virtual reality device applied in the three-dimensional space is also applicable. The start point detecting module 32 detects the start point of the predicted trajectory L11 and records the starting point as the first point P11 and the coordinates are (x1, y1).

該讀取模組34讀取該預測軌跡L11起點後預定數量軌跡點的座標。在本實施方式中,該讀取模組34讀取該起點後二軌跡點的座標並記錄為第二點P12、第三點P13並分別記為P12(x2,y2)、P13(x3,y3)。The reading module 34 reads the coordinates of the predetermined number of track points after the start of the predicted track L11. In the present embodiment, the reading module 34 reads the coordinates of the two track points after the starting point and records them as the second point P12 and the third point P13 and respectively records them as P12 (x2, y2), P13 (x3, y3). ).

該軌跡計算模組36用於根據該軌跡起點與該起點後預定數量的軌跡點座標計算後續軌跡點的座標。具體地,定義相鄰軌跡點之間的距離D(n)=((xn-x(n-1))^2+(yn-y(n-1))^2)^0.5,相鄰軌跡點之間的斜率S(n)=(yn-y(n-1))/((xn-x(n-1))。且D(n)=2*D(n-1)-D(n-2),S(n)=2*S(n-1)-S(n-2)。由於該預測軌跡L11的起點及該起點後二軌跡點的座標分別為(x1,y1) 、(x2,y2)、(x3,y3),因此可根據前述第一到第三點的座標計算獲取第四點P14的座標(x4,y4),然後依序計算第五點P15(x5,y5)、第六點P16(x6,y6)。在本實施例中,該預測座標點的數量根據該電子裝置300的延遲時間與每二相鄰軌跡點的間隔時間確定,如電子裝置300的延遲時間為80ms而每二相鄰軌跡點的間隔時間為6.6ms時則預測軌跡L11共12點即需要預測9個點。The trajectory calculation module 36 is configured to calculate coordinates of the subsequent trajectory points according to the trajectory starting point and a predetermined number of trajectory point coordinates after the starting point. Specifically, the distance between adjacent track points is defined as D(n)=((xn-x(n-1))^2+(yn-y(n-1))^2)^0.5, adjacent tracks The slope S(n) between points = (yn-y(n-1))/((xn-x(n-1))) and D(n)=2*D(n-1)-D( N-2), S(n)=2*S(n-1)-S(n-2), since the starting point of the predicted trajectory L11 and the coordinates of the second trajectory point after the starting point are (x1, y1), (x2, y2), (x3, y3), so the coordinates (x4, y4) of the fourth point P14 can be calculated according to the coordinates of the first to third points described above, and then the fifth point P15 (x5, y5) is sequentially calculated. The sixth point P16 (x6, y6). In this embodiment, the number of predicted coordinate points is determined according to the delay time of the electronic device 300 and the interval time of each two adjacent track points, such as the delay of the electronic device 300. When the time is 80ms and the interval between every two adjacent track points is 6.6ms, the predicted track L11 has a total of 12 points, that is, 9 points need to be predicted.

請一併參閱圖6,圖6是圖4所示的軌跡預測系統修正軌跡示意圖。該軌跡修正模組38根據該預定數量的軌跡點的後續實際點位座標對該預測軌跡L11進行修正。具體地,當使用者操作軌跡的第四點P14座標為(x4’,y4’)時,該軌跡修正模組38根據公式D(n)=((xn-x(n-1))^2+(yn-y(n-1))^2)^0.5,相鄰軌跡點之間的斜率S(n)=(yn-y(n-1))/((xn-x(n-1)),且D(n)=2*D(n-1)-D(n-2),S(n)=2*S(n-1)-S(n-2)將該第五點P15、第六點P16的座標修正為(x5’,y5’)、(x6’,y6’)。且當使用者的操作軌跡的第五點座標與預測軌跡L11的第五點座標不同時,該軌跡修正模組38亦對該預測軌跡的第六點P16座標進行修正。Please refer to FIG. 6 together. FIG. 6 is a schematic diagram of the modified trajectory of the trajectory prediction system shown in FIG. 4. The trajectory correction module 38 corrects the predicted trajectory L11 according to the subsequent actual point coordinates of the predetermined number of trajectory points. Specifically, when the fourth point P14 of the user operation trajectory is (x4', y4'), the trajectory correction module 38 according to the formula D(n)=((xn-x(n-1))^2 +(yn-y(n-1))^2)^0.5, the slope between adjacent track points S(n)=(yn-y(n-1))/((xn-x(n-1) )), and D(n)=2*D(n-1)-D(n-2), S(n)=2*S(n-1)-S(n-2) the fifth point P15, the coordinates of the sixth point P16 are corrected to (x5', y5'), (x6', y6'), and when the fifth coordinate of the user's operation trajectory is different from the fifth coordinate of the predicted trajectory L11, The trajectory correction module 38 also corrects the coordinates of the sixth point P16 of the predicted trajectory.

該軌跡預測系統10將該修正之後續軌跡點的座標顯示於該觸控屏301上。The trajectory prediction system 10 displays the coordinates of the corrected subsequent trajectory points on the touch screen 301.

請一併參閱圖7,圖7是本發明軌跡預測方法另一實施例的流程圖。Please refer to FIG. 7, which is a flowchart of another embodiment of the trajectory prediction method of the present invention.

步驟S401,該起點檢測模組32用於檢測軌跡起點。在本實施例中以預測平面上的軌跡,如觸控式螢幕上的觸摸軌跡進行說明,但不限於平面,如在三維立體空間中應用的虛擬實境設備同樣適用。該起點檢測模組32檢測出軌跡L11的起點並記錄該為第一點P11且座標為(x1,y1)。In step S401, the starting point detecting module 32 is configured to detect the starting point of the track. In the present embodiment, the trajectory on the prediction plane, such as the touch trajectory on the touch screen, is described, but is not limited to a plane, and the virtual reality device applied in the three-dimensional space is also applicable. The start point detecting module 32 detects the starting point of the trajectory L11 and records the first point P11 and the coordinates are (x1, y1).

步驟S403,該讀取模組34讀取該軌跡L11起點後預定數量軌跡點的座標。在本實施方式中,該讀取模組34讀取該起點後二軌跡點的座標並記錄為第二點P12、第三點P13並分別記為P12(x2,y2)、P13(x3,y3)。In step S403, the reading module 34 reads the coordinates of the predetermined number of track points after the start of the track L11. In the present embodiment, the reading module 34 reads the coordinates of the two track points after the starting point and records them as the second point P12 and the third point P13 and respectively records them as P12 (x2, y2), P13 (x3, y3). ).

步驟S405,該軌跡計算模組36用於根據該軌跡起點與該起點後預定數量的軌跡點座標計算後續軌跡點的座標。具體地,定義相鄰軌跡點之間的距離D(n)=((xn-x(n-1))^2+(yn-y(n-1))^2)^0.5,相鄰軌跡點之間的斜率S(n)=(yn-y(n-1))/((xn-x(n-1))。且D(n)=2*D(n-1)-D(n-2),S(n)=2*S(n-1)-S(n-2)。由於該預測軌跡L11的起點及該起點後二軌跡點的座標分別為(x1,y1) 、(x2,y2)、(x3,y3),因此可根據前述第一到第三點的座標計算獲取第四點P14的座標(x4,y4),然後依序計算第五點P15(x5,y5)、第六點P16(x6,y6)。在本實施例中,該軌跡預測系統30預測座標點的數量根據該電子裝置300的延遲時間與每二相鄰軌跡點的間隔時間確定,如電子裝置300的延遲時間為80ms而每二相鄰軌跡點的間隔時間為6.6ms時則預測軌跡L11共12點即需要預測9個點。In step S405, the trajectory calculation module 36 is configured to calculate the coordinates of the subsequent trajectory points according to the trajectory starting point and a predetermined number of trajectory point coordinates after the starting point. Specifically, the distance between adjacent track points is defined as D(n)=((xn-x(n-1))^2+(yn-y(n-1))^2)^0.5, adjacent tracks The slope S(n) between points = (yn-y(n-1))/((xn-x(n-1))) and D(n)=2*D(n-1)-D( N-2), S(n)=2*S(n-1)-S(n-2), since the starting point of the predicted trajectory L11 and the coordinates of the second trajectory point after the starting point are (x1, y1), (x2, y2), (x3, y3), so the coordinates (x4, y4) of the fourth point P14 can be calculated according to the coordinates of the first to third points described above, and then the fifth point P15 (x5, y5) is sequentially calculated. The sixth point P16 (x6, y6). In this embodiment, the trajectory prediction system 30 predicts that the number of coordinate points is determined according to the delay time of the electronic device 300 and the interval time between each two adjacent track points, such as an electron. The delay time of the device 300 is 80 ms, and when the interval time between two adjacent track points is 6.6 ms, the predicted track L11 has a total of 12 points, that is, 9 points need to be predicted.

步驟S407,該軌跡修正模組38根據該預定數量的軌跡點的後續實際點位座標對該預測軌跡L11進行修正。具體地,當使用者操作軌跡的第四點P14座標為(x4’,y4’)時,該軌跡修正模組38根據公式D(n)=((xn-x(n-1))^2+(yn-y(n-1))^2)^0.5,相鄰軌跡點之間的斜率S(n)=(yn-y(n-1))/((xn-x(n-1)),且D(n)=2*D(n-1)-D(n-2),S(n)=2*S(n-1)-S(n-2)將該第五點P15、第六點P16的座標修正為(x5’,y5’)、(x6’,y6’)。且當使用者的操作軌跡的第五點座標與預測軌跡L11的第五點座標不同時,該軌跡修正模組38亦對該預測軌跡的第六點座標進行修正。In step S407, the trajectory correction module 38 corrects the predicted trajectory L11 according to the subsequent actual point coordinates of the predetermined number of track points. Specifically, when the fourth point P14 of the user operation trajectory is (x4', y4'), the trajectory correction module 38 according to the formula D(n)=((xn-x(n-1))^2 +(yn-y(n-1))^2)^0.5, the slope between adjacent track points S(n)=(yn-y(n-1))/((xn-x(n-1) )), and D(n)=2*D(n-1)-D(n-2), S(n)=2*S(n-1)-S(n-2) the fifth point P15, the coordinates of the sixth point P16 are corrected to (x5', y5'), (x6', y6'), and when the fifth coordinate of the user's operation trajectory is different from the fifth coordinate of the predicted trajectory L11, The trajectory correction module 38 also corrects the sixth point coordinate of the predicted trajectory.

本發明的軌跡預測系統與軌跡預測方法可以根據軌跡起點與起點後預定數量的點位座標對軌跡進行預測,從而避免待軌跡發生後再計算的時間延遲。進一步,本發明的軌跡預測系統還可根據該預定數量的軌跡點的後續實點位座標對該預測軌跡L11進行修正以提高軌跡預測的準確性。The trajectory prediction system and the trajectory prediction method of the present invention can predict the trajectory according to a predetermined number of point coordinates after the start point of the trajectory and the starting point, thereby avoiding the time delay of recalculation after the trajectory occurs. Further, the trajectory prediction system of the present invention may further correct the predicted trajectory L11 according to the subsequent real point coordinates of the predetermined number of trajectory points to improve the accuracy of the trajectory prediction.

綜上所述,本發明確已符合發明專利的要件,爰依法提出專利申請。惟,以上所述者僅為本發明的較佳實施方式,本發明的範圍並不以上述實施方式為限,舉凡熟悉本案技藝的人士援依本發明的精神所作的等效修飾或變化,皆應涵蓋於以下申請專利範圍內。In summary, the present invention has indeed met the requirements of the invention patent, and has filed a patent application according to law. However, the above description is only a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and those skilled in the art will be able to make equivalent modifications or variations in accordance with the spirit of the present invention. It should be covered by the following patent application.

100、300‧‧‧電子裝置100, 300‧‧‧ electronic devices

10、30‧‧‧軌跡預測系統10, 30‧‧‧ trajectory prediction system

12、32‧‧‧起點檢測模組12, 32‧‧‧ starting point detection module

14、34‧‧‧讀取模組14, 34‧‧‧ Reading module

16、36‧‧‧軌跡計算模組16, 36‧‧‧ Track Calculation Module

38‧‧‧軌跡修正模組38‧‧‧Track Correction Module

101、301‧‧‧觸控屏101, 301‧‧‧ touch screen

104、304‧‧‧記憶體104, 304‧‧‧ memory

102、302‧‧‧處理器102, 302‧‧‧ processor

S201~S205、S401~S407‧‧‧步驟S201~S205, S401~S407‧‧‧ steps

no

100‧‧‧電子裝置 100‧‧‧Electronic devices

10‧‧‧軌跡預測系統 10‧‧‧Track Prediction System

12‧‧‧起點檢測模組 12‧‧‧ starting point detection module

14‧‧‧讀取模組 14‧‧‧Reading module

16‧‧‧軌跡計算模組 16‧‧‧Track Calculation Module

104‧‧‧記憶體 104‧‧‧ memory

102‧‧‧處理器 102‧‧‧Processor

101‧‧‧觸控屏 101‧‧‧ touch screen

Claims (10)

一種軌跡預測系統,運行於電子裝置中,該電子裝置具有用於識別手勢或虛擬操作的感應結構,該軌跡預測系統與該感應結構相配合,用於預測在該電子裝置上所發生的手勢操作的路線軌跡,該軌跡預測系統包括:
起點檢測模組,用於檢測該路線軌跡的軌跡起點;
讀取模組,用於讀取該軌跡起點後預定數量軌跡點的座標;及
軌跡計算模組,用於根據該軌跡起點及起點後預定數量軌跡點的座標計算後續軌跡點的座標。
A trajectory prediction system, running in an electronic device, having an inductive structure for recognizing a gesture or a virtual operation, the trajectory prediction system cooperating with the sensing structure for predicting a gesture operation occurring on the electronic device Route trajectory, the trajectory prediction system includes:
a starting point detecting module, configured to detect a starting point of the track of the route track;
a reading module, configured to read a coordinate of a predetermined number of track points after the start of the track; and a track calculation module, configured to calculate a coordinate of the subsequent track point according to the coordinates of the starting point of the track and a predetermined number of track points after the starting point.
如申請專利範圍第1項所述之軌跡預測系統,其中該起點檢測模組檢測出軌跡的起點並記錄該起點為第一點。The trajectory prediction system according to claim 1, wherein the starting point detecting module detects a starting point of the trajectory and records the starting point as a first point. 如申請專利範圍第2項所述之軌跡預測系統,其中該讀取模組讀取該起點後二軌跡點的座標。The trajectory prediction system of claim 2, wherein the reading module reads the coordinates of the two trajectory points after the starting point. 如申請專利範圍第3項所述之軌跡預測系統,其中該軌跡計算模組定義相鄰軌跡點之間的距離D(n)=((Xn-X(n-1))^2+(Yn-Y(n-1))^2)^0.5,相鄰軌跡點之間的斜率S(n)=(Yn-Y(n-1))/((Xn-X(n-1)),且D(n)=2*D(n-1)-D(n-2),S(n)=2*S(n-1)-S(n-2),其中n表示該軌跡的第n點,該軌跡計算模組根據以上公式計算該軌跡中每一點的座標。The trajectory prediction system according to claim 3, wherein the trajectory calculation module defines a distance D(n)=((Xn-X(n-1))^2+(Yn) between adjacent trajectory points. -Y(n-1))^2)^0.5, the slope S(n) between adjacent track points = (Yn-Y(n-1))/((Xn-X(n-1)), And D(n)=2*D(n-1)-D(n-2), S(n)=2*S(n-1)-S(n-2), where n represents the trajectory At n points, the trajectory calculation module calculates the coordinates of each point in the trajectory according to the above formula. 如申請專利範圍第4項所述之軌跡預測系統,其中該軌跡預測系統還包括軌跡修正模組,用於根據該預定數量的軌跡點的後續實際點位座標對該軌跡進行修正。The trajectory prediction system of claim 4, wherein the trajectory prediction system further comprises a trajectory correction module, configured to correct the trajectory according to the subsequent actual point coordinates of the predetermined number of trajectory points. 一種軌跡預測方法,運行於電子裝置中,該電子裝置具有用於識別手勢或虛擬操作的感應結構,該軌跡預測方法與該感應結構相配合,用於預測在該電子裝置的路線軌跡,該軌跡預測方法包括:
檢測軌跡起點;
讀取該軌跡起點後預定數量軌跡點的座標;及
根據該軌跡起點及起點後預定數量軌跡點的座標計算後續軌跡點的座標。
A trajectory prediction method, running in an electronic device, the electronic device having an inductive structure for recognizing a gesture or a virtual operation, the trajectory prediction method cooperating with the sensing structure for predicting a route trajectory of the electronic device, the trajectory Forecasting methods include:
Detect the starting point of the track
Reading a coordinate of a predetermined number of track points after the start point of the track; and calculating a coordinate of the subsequent track point according to the coordinates of the start point of the track and a predetermined number of track points after the start point.
如申請專利範圍第6項所述之軌跡預測方法,其中檢測出軌跡的起點並記錄該起點為軌跡的第一點。The trajectory prediction method according to claim 6, wherein the starting point of the trajectory is detected and the starting point is recorded as the first point of the trajectory. 如申請專利範圍第7項所述之軌跡預測方法,其中讀取該起點後二軌跡點的座標。The trajectory prediction method according to claim 7, wherein the coordinates of the two trajectory points after the starting point are read. 如申請專利範圍第8項所述之軌跡預測方法,其中定義相鄰軌跡點之間的距離D(n)=((Xn-X(n-1))^2+(Yn-Y(n-1))^2)^0.5,相鄰軌跡點之間的斜率S(n)=(Yn-Y(n-1))/((Xn-X(n-1)),且D(n)=2*D(n-1)-D(n-2),S(n)=2*S(n-1)-S(n-2),其中n表示該軌跡的第n點,根據以上公式計算該軌跡中每一點的座標。The trajectory prediction method according to claim 8, wherein the distance between adjacent trajectory points is defined as D(n)=((Xn-X(n-1))^2+(Yn-Y(n- 1))^2)^0.5, the slope S(n) between adjacent track points = (Yn-Y(n-1))/((Xn-X(n-1)), and D(n) =2*D(n-1)-D(n-2), S(n)=2*S(n-1)-S(n-2), where n represents the nth point of the trajectory, according to the above The formula calculates the coordinates of each point in the trajectory. 如申請專利範圍第9項所述之軌跡預測方法,其中該軌跡預測方法還包括根據該預定數量的軌跡點的後續實際點位座標對該軌跡進行修正。
The trajectory prediction method of claim 9, wherein the trajectory prediction method further comprises correcting the trajectory according to a subsequent actual point coordinate of the predetermined number of trajectory points.
TW104137276A 2015-10-21 2015-11-12 System and Method for Predicting Trajectory TWI598784B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510682931.9A CN105353906B (en) 2015-10-21 2015-10-21 Trajectory predictions system and trajectory predictions method

Publications (2)

Publication Number Publication Date
TW201715362A true TW201715362A (en) 2017-05-01
TWI598784B TWI598784B (en) 2017-09-11

Family

ID=55329888

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104137276A TWI598784B (en) 2015-10-21 2015-11-12 System and Method for Predicting Trajectory

Country Status (2)

Country Link
CN (1) CN105353906B (en)
TW (1) TWI598784B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018098960A1 (en) * 2016-12-01 2018-06-07 华为技术有限公司 Method for operating touchscreen device, and touchscreen device
CN108108054B (en) * 2017-12-29 2021-07-23 努比亚技术有限公司 Method, apparatus and computer-readable storage medium for predicting user sliding operation
CN111158577B (en) * 2019-12-31 2021-10-01 奇安信科技集团股份有限公司 Remote operation processing method and device
CN113311984A (en) * 2020-02-27 2021-08-27 北京小米移动软件有限公司 Touch screen track data processing method and device, mobile terminal and electronic equipment
CN114327234B (en) * 2022-03-08 2022-07-01 新华三智能终端有限公司 Writing track drawing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890576B (en) * 2011-07-22 2016-03-02 宸鸿科技(厦门)有限公司 Touch screen touch track detection method and pick-up unit
CN103076876B (en) * 2012-11-22 2016-02-10 西安电子科技大学 Based on character entry apparatus and the method for eye tracking and speech recognition
JP6221527B2 (en) * 2013-09-02 2017-11-01 富士通株式会社 Electronic equipment and coordinate input program

Also Published As

Publication number Publication date
CN105353906A (en) 2016-02-24
TWI598784B (en) 2017-09-11
CN105353906B (en) 2018-08-28

Similar Documents

Publication Publication Date Title
TWI598784B (en) System and Method for Predicting Trajectory
US9678606B2 (en) Method and device for determining a touch gesture
TWI569171B (en) Gesture recognition
US8786547B2 (en) Effects of gravity on gestures
JP6177876B2 (en) Touch panel system
WO2015131675A1 (en) Compensation method for broken slide paths, electronic device and computer storage medium
TWI543069B (en) Electronic apparatus and drawing method and computer products thereof
JP5805890B2 (en) Touch panel system
TW201537444A (en) Method for preventing from accidentally triggering edge swipe gesture and gesture triggering
EP3046009A1 (en) Information processing device, input method, and program
CN108874284B (en) Gesture triggering method
WO2019223461A1 (en) Touch detection method and computer-readable storage medium
JPWO2011161864A1 (en) Contact input position correction device, input device, contact input position correction method, program, and integrated circuit
CN102662533B (en) Method for eliminating non-normal contact interference in infrared touch system
US20160070467A1 (en) Electronic device and method for displaying virtual keyboard
CN102360263A (en) Method implemented by taking three-dimensional moving track as input and mobile terminal
JP6151087B2 (en) Touch panel system
TWI492168B (en) Method for generating movement position coordinates
US9927917B2 (en) Model-based touch event location adjustment
US20120299837A1 (en) Identifying contacts and contact attributes in touch sensor data using spatial and temporal features
US10126869B2 (en) Electronic device and method for preventing touch input error
US10558270B2 (en) Method for determining non-contact gesture and device for the same
US9898143B2 (en) Predicting touch events to improve touchscreen usage accuracy
US8872781B1 (en) Method and system for filtering movements on a trackpad
WO2014171177A1 (en) Touch-panel device, display device with touch panel, and program