TW202026840A - Operation intention determining method, apparatus, and electronic device thereof - Google Patents

Operation intention determining method, apparatus, and electronic device thereof Download PDF

Info

Publication number
TW202026840A
TW202026840A TW108140335A TW108140335A TW202026840A TW 202026840 A TW202026840 A TW 202026840A TW 108140335 A TW108140335 A TW 108140335A TW 108140335 A TW108140335 A TW 108140335A TW 202026840 A TW202026840 A TW 202026840A
Authority
TW
Taiwan
Prior art keywords
touch
centroid
distance
frame
pixel block
Prior art date
Application number
TW108140335A
Other languages
Chinese (zh)
Other versions
TWI796530B (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 TW202026840A publication Critical patent/TW202026840A/en
Application granted granted Critical
Publication of TWI796530B publication Critical patent/TWI796530B/en

Links

Images

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

An operation intention determining method, apparatus, and electronic device are provided, which are applied to an electronic device provided with a touch area. The method includes receiving a touch operation on the touch area; collecting touch data on a selected pixel block in the touch area by taking an image frame as a time unit, where the touch data includes a pressure value of the pixel block subjected to the touch operation; determining a weight of the pixel block based on the pressure value received by the pixel block; and calculating a centroid of the touch data in each frame by using the weight of the pixel block and the position of the pixel block in the touch area. With the method, the operation intention of the touch operation is determined based on the centroid of the touch data of each frame.

Description

操作意圖確定方法、裝置及電子設備Method, device and electronic equipment for determining operation intention

本發明涉及電腦技術領域,更具體地說,涉及一種操作意圖確定方法、裝置及電子設備。The present invention relates to the field of computer technology, and more specifically, to a method, device and electronic equipment for determining an operation intention.

隨著科技的發展,觸摸型電子設備中的應用越來越廣泛,不僅為用戶操作電子設備提供了便利、而且為用戶帶來了更好的視覺效果,提升了用戶體驗,增加了用戶對電子設備的粘性。With the development of technology, the application of touch-type electronic devices has become more and more extensive, which not only provides convenience for users to operate electronic devices, but also brings better visual effects to users, improves user experience, and increases users’ The stickiness of the device.

用戶可以通過設置於電子設備上的觸摸區域實現與電子設備的交互(即,人機交互),由此,如何確定用戶對觸摸區域的觸摸操作所要表徵的意圖,對於人機交互來說是至關重要的。The user can realize the interaction with the electronic device (ie, human-computer interaction) through the touch area set on the electronic device. Therefore, how to determine the user's intention to represent the touch operation of the touch area is the most important thing for human-computer interaction. Important.

有鑑於此,本發明提供一種操作意圖確定方法、裝置及電子設備,以實現對電子設備的觸摸操作的操作意圖的確定,是極待解決的問題。In view of this, the present invention provides a method, a device and an electronic device for determining an operation intention, so as to realize the determination of the operation intention of a touch operation of the electronic device, which is a problem to be solved.

有鑑於此,本發明提供一種操作意圖確定方法、裝置及電子設備,以實現對電子設備的觸摸操作的操作意圖的確定。In view of this, the present invention provides a method, a device and an electronic device for determining an operation intention, so as to realize the determination of the operation intention of a touch operation of the electronic device.

技術方案如下:The technical solutions are as follows:

一種操作意圖確定方法,應用於設置有觸摸區域的電子設備,包括:A method for determining operation intention, applied to an electronic device provided with a touch area, includes:

接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值;Receiving a touch operation on the touch area, and collecting touch data of the selected pixel block in the touch area with the image frame as a time unit, the touch data including the pressure value of the pixel block under the touch operation;

根據像素塊承受的壓力值確定像素塊的權重;Determine the weight of the pixel block according to the pressure value of the pixel block;

利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心;Use the weight of the pixel block and the position of the pixel block in the touch area to calculate the centroid of each frame of touch data;

基於各幀觸摸數據的質心確定觸摸操作的操作意圖。The operation intention of the touch operation is determined based on the centroid of the touch data of each frame.

優選的,根據像素塊承受的壓力值確定像素塊的權重,包括:Preferably, determining the weight of the pixel block according to the pressure value of the pixel block includes:

查詢預先設置的權重與壓力範圍的對應關係,將像素塊承受的壓力值所屬的壓力範圍對應的權重,確定為像素塊的權重。The corresponding relationship between the preset weight and the pressure range is queried, and the weight corresponding to the pressure range to which the pressure value of the pixel block belongs is determined as the weight of the pixel block.

優選的,像素塊包括多個像素子塊,採集像素塊承受的壓力值包括採集像素塊中每個像素子塊承受的壓力值。Preferably, the pixel block includes a plurality of pixel sub-blocks, and collecting the pressure value of the pixel block includes collecting the pressure value of each pixel sub-block in the pixel block.

根據像素塊承受的壓力值確定像素塊的權重,包括:Determine the weight of the pixel block according to the pressure value of the pixel block, including:

根據像素塊中每個像素子塊承受的壓力值確定像素子塊的權重。The weight of the pixel sub-block is determined according to the pressure value of each pixel sub-block in the pixel block.

優選的,利用像素塊的權重和像素塊在所述觸摸區域的位置,計算各幀觸摸數據的質心,包括:Preferably, using the weight of the pixel block and the position of the pixel block in the touch area to calculate the centroid of each frame of touch data includes:

獲取觸摸區域中被選定的每個像素塊的每個像素子塊在觸摸區域中的位置,像素子塊在觸摸區域中的位置包括像素子塊在觸摸區域中的橫座標和縱座標,採用質心公式分別計算每幀觸摸數據的質心;Get the position of each pixel sub-block of each pixel block selected in the touch area in the touch area. The position of the pixel sub-block in the touch area includes the horizontal and vertical coordinates of the pixel sub-block in the touch area. The center formula separately calculates the centroid of each frame of touch data;

所述質心公式為:

Figure 02_image001
The centroid formula is:
Figure 02_image001

其中,

Figure 02_image003
為當前幀觸摸數據中第
Figure 02_image005
個像素子塊的權重,
Figure 02_image007
為當前幀觸摸數據中第
Figure 02_image005
個像素子塊的橫座標、
Figure 02_image009
為當前幀觸摸數據中第
Figure 02_image005
個像素子塊的縱座標,
Figure 02_image011
為當前幀觸摸數據的質心橫座標,
Figure 02_image013
為當前幀觸摸數據的質心縱座標。among them,
Figure 02_image003
Is the first touch data in the current frame
Figure 02_image005
The weight of each pixel sub-block,
Figure 02_image007
Is the first touch data in the current frame
Figure 02_image005
The abscissa of each pixel sub-block,
Figure 02_image009
Is the first touch data in the current frame
Figure 02_image005
The ordinate of each pixel sub-block,
Figure 02_image011
Is the centroid and abscissa of the touch data of the current frame,
Figure 02_image013
Is the centroid vertical coordinate of the touch data of the current frame.

優選的,還包括:Preferably, it also includes:

獲取接收觸摸操作採集到的圖像幀數;Obtain the number of image frames collected by receiving the touch operation;

若圖像幀數小於第一預設閾值時,保存已採集的各幀觸摸數據;If the number of image frames is less than the first preset threshold, save the collected touch data of each frame;

若所述圖像幀數不小於第一預設閾值,保存並計算已採集的各幀觸摸數據,並基於當前幀觸摸數據的質心判斷當前觸摸操作是否超出觸摸邊界;If the number of image frames is not less than the first preset threshold, save and calculate the collected touch data of each frame, and determine whether the current touch operation exceeds the touch boundary based on the centroid of the touch data of the current frame;

若觸摸操作超出觸摸邊界,停止採集觸摸數據,輸出各幀觸摸數據的質心。If the touch operation exceeds the touch boundary, stop collecting touch data and output the centroid of each frame of touch data.

優選的,在基於各幀觸摸數據的質心確定觸摸操作的操作意圖之前,該方法還包括:Preferably, before determining the operation intention of the touch operation based on the centroid of each frame of touch data, the method further includes:

判斷圖像幀數是否小於第二預設閾值;Judging whether the number of image frames is less than the second preset threshold;

若圖像幀數小於第二預設閾值,確定觸摸操作的操作意圖指示單擊操作,第二預設閾值小於第一預設閾值。If the number of image frames is less than the second preset threshold, it is determined that the operation intention of the touch operation indicates a click operation, and the second preset threshold is less than the first preset threshold.

優選的,基於各幀觸摸數據的質心確定觸摸操作的操作意圖,包括:Preferably, determining the operation intention of the touch operation based on the centroid of each frame of touch data includes:

按照觸摸數據的採集順序,對接收到的觸摸操作採集到的各幀觸摸數據的質心進行排序,得到質心序列;Sort the centroids of each frame of touch data collected by the received touch operations according to the order of the touch data collection to obtain the centroid sequence;

將質心序列中排序最靠前的第一預設數量個質心剔除,且將質心序列中排序最靠後的第二預設數量個質心剔除,得到第一質心序列;Remove the first preset number of centroids that are ranked highest in the centroid sequence, and remove the second preset number of centroids that are ranked lowest in the centroid sequence to obtain the first centroid sequence;

基於第一質心序列確定觸摸操作的操作意圖。The operation intention of the touch operation is determined based on the first centroid sequence.

優選的,還包括:Preferably, it also includes:

將第一質心序列中首個質心確定為起始點,且將第一質心序列中的末尾質心確定為終止點,定義起始點到終止點採集到的圖像幀數為總圖像幀,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第一距離,並將第一距離初始化為零;The first centroid in the first centroid sequence is determined as the starting point, and the end centroid in the first centroid sequence is determined as the ending point, and the number of image frames collected from the starting point to the ending point is defined as the total For the image frame, after receiving the touch operation, define the distance from the centroid of the image frame before the current image frame to the starting point as the first distance, and initialize the first distance to zero;

計算當前圖像幀質心與起始點之間的第二距離;Calculate the second distance between the centroid of the current image frame and the starting point;

比較第二距離是否大於第一距離;Compare whether the second distance is greater than the first distance;

如果第二距離大於第一距離,將第二距離數值更新為第一距離的數值;If the second distance is greater than the first distance, update the value of the second distance to the value of the first distance;

如果第二距離不大於當前第一距離,比較當前圖像幀數和總圖像幀數,得到比較結果;If the second distance is not greater than the current first distance, compare the current number of image frames with the total number of image frames to obtain the comparison result;

圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離滿足第一預設子條件時,將當前質心更新為起始點;When the comparison result of the number of image frames meets the first preset condition, and the second distance and the current first distance meet the first preset sub-condition, update the current centroid as the starting point;

圖像幀數比較結果滿足第二預設條件時,且第二距離與當前第一距離滿足第二預設子條件,將當前質心更新為起始點;When the comparison result of the number of image frames meets the second preset condition, and the second distance and the current first distance meet the second preset sub-condition, update the current centroid as the starting point;

圖像幀數比較結果滿足第三預設條件時,將當前質心更新為結束點。When the comparison result of the number of image frames meets the third preset condition, the current centroid is updated as the end point.

優選的,還包括:Preferably, it also includes:

將首個質心確定為起始點,預設觸摸操作需採集的總圖像幀數,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第三距離,並將第三距離初始化為零;Determine the first centroid as the starting point, preset the total number of image frames to be collected for touch operations. After receiving the touch operation, define the distance from the centroid of the image frame before the current image frame to the starting point as the first Three distances, and initialize the third distance to zero;

計算當前圖像幀質心與起始點之間的第四距離;Calculate the fourth distance between the centroid of the current image frame and the starting point;

比較第四距離是否大於第三距離;Compare whether the fourth distance is greater than the third distance;

如果第四距離大於第三距離,將第三距離的數值更新為第四距離的數值;If the fourth distance is greater than the third distance, update the value of the third distance to the value of the fourth distance;

如果第四距離不大於第三距離,比較當前圖像幀數和總圖像幀數,得到比較結果;If the fourth distance is not greater than the third distance, compare the current number of image frames with the total number of image frames to obtain the comparison result;

圖像幀數比較結果滿足第一預設條件,且第三距離與第四距離滿足第一預設子條件時,將當前質心更新為起始點;When the comparison result of the number of image frames meets the first preset condition, and the third distance and the fourth distance meet the first preset sub-condition, update the current centroid as the starting point;

圖像幀數比較結果滿足第二預設條件時,且第三距離與第四距離滿足第二預設子條件,將當前質心更新為起始點;When the comparison result of the number of image frames meets the second preset condition, and the third distance and the fourth distance meet the second preset sub-condition, update the current centroid as the starting point;

圖像幀數比較結果滿足第三預設條件時,將當前質心更新為結束點。When the comparison result of the number of image frames meets the third preset condition, the current centroid is updated as the end point.

優選的,還包括:Preferably, it also includes:

選定更新的結束點所在圖像幀序列之前的一個質心,質心的序號與總圖像幀數的占比符合第四預設條件,且質心與其前一幀質心的距離滿足第五預設條件,將質心更新為結束點。Select a centroid before the image frame sequence where the updated end point is located, the ratio of the serial number of the centroid to the total number of image frames meets the fourth preset condition, and the distance between the centroid and the centroid of the previous frame meets the fifth The preset condition updates the center of mass to the end point.

優選的,基於觸摸數據的質心確定觸摸操作的操作意圖,包括:Preferably, determining the operation intention of the touch operation based on the centroid of the touch data includes:

將終止點的橫座標減去起始點的橫座標,得到橫座標差值;Subtract the abscissa of the starting point from the abscissa of the end point to obtain the abscissa difference;

將終止點的縱座標減去起始點的縱座標,得到縱座標差值;Subtract the ordinate of the starting point from the ordinate of the end point to obtain the ordinate difference;

若橫座標差值的絕對值和縱座標差值的絕對值的和滿足第六預設條件,確定觸摸操作的操作意圖指示單擊操作;If the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfies the sixth preset condition, it is determined that the operation intention of the touch operation indicates a click operation;

若橫座標差值的絕對值和縱座標差值的絕對值的和不滿足第六預設條件,判斷橫座標差值的絕對值和縱座標差值的絕對值是否滿足第七預設條件;If the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference does not satisfy the sixth preset condition, judge whether the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfy the seventh preset condition;

如果橫座標差值的絕對值和縱座標差值的絕對值滿足第七預設條件,在橫座標差值小於0時,確定觸摸操作的操作意圖指示上滑操作;在橫座標差值不小於0時,確定觸摸操作的操作意圖指示下滑操作;If the absolute value of the abscissa difference and the absolute value of the ordinate difference meet the seventh preset condition, when the abscissa difference is less than 0, the operation intention of the touch operation is determined to indicate the sliding operation; the abscissa difference is not less than At 0, it is determined that the operation intention of the touch operation indicates the sliding operation;

如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第七預設條件,判斷縱座標差值是否大於0;If the absolute value of the abscissa difference and the absolute value of the ordinate difference do not satisfy the seventh preset condition, judge whether the ordinate difference is greater than 0;

若縱座標差值大於0,判斷縱座標差值的絕對值和橫座標差值的絕對值是否滿足第八預設條件;如果橫座標差值的絕對值和縱座標差值的絕對值滿足第八預設條件,確定觸摸操作的操作意圖指示左滑操作,如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第八預設條件,確定觸摸操作的操作意圖指示上滑操作;If the ordinate difference value is greater than 0, judge whether the absolute value of the ordinate difference value and the absolute value of the abscissa difference meet the eighth preset condition; if the absolute value of the abscissa difference value and the absolute value of the ordinate difference value meet the first Eight preset conditions, determine that the operation intention of the touch operation indicates the left swipe operation, if the absolute value of the abscissa difference and the absolute value of the ordinate difference do not meet the eighth preset condition, determine the operation intention of the touch operation to indicate the sliding operation ;

若縱座標差值不大於0,判斷縱座標差值的絕對值和橫座標差值的絕對值是否滿足第九預設條件;如果橫座標差值的絕對值和縱座標差值的絕對值滿足第九預設條件,確定觸摸操作的操作意圖指示右滑操作,如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第九預設條件,確定觸摸操作的操作意圖指示上滑操作。If the ordinate difference value is not greater than 0, judge whether the absolute value of the ordinate difference value and the absolute value of the abscissa difference meet the ninth preset condition; if the absolute value of the abscissa difference value and the absolute value of the ordinate difference value satisfy The ninth preset condition is to determine that the operation intention of the touch operation indicates a right-swiping operation. If the absolute value of the abscissa difference and the absolute value of the ordinate difference do not meet the ninth preset condition, the operation intention of the touch operation is determined to indicate an upward sliding operating.

一種操作意圖確定裝置,應用於設置有觸摸區域的電子設備,包括:A device for determining an operation intention applied to an electronic device provided with a touch area, including:

觸摸操作接收單元,用於接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值;The touch operation receiving unit is configured to receive the touch operation on the touch area, and collect the touch data of the selected pixel block in the touch area by using the image frame as a time unit, and the touch data includes the pressure value of the pixel block under the touch operation;

權重確定單元,用於根據像素塊承受的壓力值確定像素塊的權重;The weight determining unit is used to determine the weight of the pixel block according to the pressure value of the pixel block;

質心計算單元,用於利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心;The centroid calculation unit is used to calculate the centroid of each frame of touch data by using the weight of the pixel block and the position of the pixel block in the touch area;

第一操作意圖確定單元,用於基於各幀觸摸數據的質心確定觸摸操作的操作意圖。The first operation intention determination unit is configured to determine the operation intention of the touch operation based on the centroid of each frame of touch data.

一種電子設備,包含觸摸區域,及An electronic device including a touch area, and

觸摸操作接收單元,用於接收對該觸摸區域的一觸摸操作,以圖像幀為時間單位採集該觸摸區域中被選定的一像素塊的一觸摸數據,該觸摸數據包括該像素塊承受該觸摸操作的壓力值;The touch operation receiving unit is configured to receive a touch operation on the touch area, and collect touch data of a selected pixel block in the touch area by using the image frame as a time unit, the touch data including the pixel block receiving the touch Operating pressure value;

權重確定單元,用於根據該像素塊承受的壓力值確定該像素塊的權重;A weight determining unit, configured to determine the weight of the pixel block according to the pressure value of the pixel block;

質心計算單元,用於利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心;及The centroid calculation unit is used to calculate the centroid of the touch data in each frame by using the weight of the pixel block and the position of the pixel block in the touch area; and

第一操作意圖確定單元,用於基於各幀該觸摸數據的質心確定該觸摸操作的操作意圖。The first operation intention determination unit is configured to determine the operation intention of the touch operation based on the centroid of the touch data in each frame.

本發明提供一種操作意圖確定方法、裝置及電子設備,應用於設置有觸摸區域的電子設備,該方法通過接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值;並根據像素塊承受的壓力值確定像素塊的權重;進而利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心方式;實現了基於各幀觸摸數據的質心實現對觸摸操作的操作意圖的確定的目的。The present invention provides a method, a device and an electronic device for determining an operation intention, which are applied to an electronic device provided with a touch area. The method collects selected pixels in the touch area by using an image frame as a time unit by receiving a touch operation on the touch area The touch data of the block, the touch data includes the pressure value of the pixel block subjected to the touch operation; and the weight of the pixel block is determined according to the pressure value of the pixel block; and then the weight of the pixel block and the position of the pixel block in the touch area are used to calculate the touch of each frame Data centroid mode; realizes the purpose of determining the operation intention of the touch operation based on the centroid of each frame of touch data.

下面將結合本發明實施例中的圖式,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

觸摸型電子設備中的應用越來越廣泛,用戶可以對設置有觸摸型電子設備進行操作以實現與電子設備的交互(即人機交互)。在實現人機交互過程中,通常是由用戶在電子設備的觸摸區域上執行觸摸操作,以實現與電子設備之間的人機交互。Touch-type electronic devices are more and more widely used, and users can operate the touch-type electronic devices to achieve interaction with the electronic devices (ie, human-computer interaction). In the process of human-computer interaction, the user usually performs a touch operation on the touch area of the electronic device to realize the human-computer interaction with the electronic device.

在確定用戶在電子設備的觸摸區域上執行的觸摸操作的操作意圖時,可以基於如下圖1所示的操作意圖確定方式實現。觸摸區域可以是HOME鍵,也可以是觸摸顯示幕,當然也可以是電子設備供觸摸操作的任意其它部位,如側邊或背後。When determining the operation intention of the touch operation performed by the user on the touch area of the electronic device, it may be implemented based on the operation intention determination method shown in FIG. 1 below. The touch area can be the HOME key or the touch display screen, and of course it can also be any other part of the electronic device for touch operation, such as the side or the back.

圖1為本發明的一個實施例提供的一種操作意圖確定方法流程圖。Fig. 1 is a flowchart of a method for determining an operation intention provided by an embodiment of the present invention.

如圖1所示,該方法包括:As shown in Figure 1, the method includes:

S101、接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值;S101. Receive a touch operation on a touch area, and collect touch data of a selected pixel block in the touch area using an image frame as a time unit, where the touch data includes the pressure value of the pixel block under the touch operation;

參見圖2,在本發明實施例中,電子設備的觸摸區域被劃分成若干個子塊21,若干個子塊21中被選定的子塊可以稱為像素塊22。接收對觸摸區域的觸摸操作,可以以圖像幀為時間單位採集觸摸區域中像素塊22的觸摸數據,像素塊22的觸摸數據包括像素塊22承受觸摸操作的壓力值。Referring to FIG. 2, in the embodiment of the present invention, the touch area of the electronic device is divided into several sub-blocks 21, and the selected sub-blocks among the several sub-blocks 21 may be referred to as pixel blocks 22. Receiving the touch operation on the touch area, the touch data of the pixel block 22 in the touch area may be collected by using the image frame as a time unit. The touch data of the pixel block 22 includes the pressure value of the pixel block 22 under the touch operation.

在本發明實施例中,接收對觸摸區域的觸摸操作,採集多個圖像幀,每圖像幀對應在採集該圖像幀的時刻觸摸區域中各個像素塊22承受觸摸操作的壓力值。即,每個圖像幀對應一幀觸摸數據,該幀觸摸數據由在採集該圖像幀的時刻觸摸區域中各個像素塊22承受觸摸操作的壓力值。In the embodiment of the present invention, a touch operation on the touch area is received, and a plurality of image frames are collected, and each image frame corresponds to the pressure value of each pixel block 22 in the touch area when the image frame is collected. That is, each image frame corresponds to a frame of touch data, and the frame of touch data is the pressure value of each pixel block 22 in the touch area that is subjected to a touch operation at the moment the image frame is collected.

S102、根據像素塊承受的壓力值確定像素塊的權重;S102: Determine the weight of the pixel block according to the pressure value suffered by the pixel block.

在本發明實施例中,針對一幀觸摸數據中的一個像素塊22而言,可以根據該像素塊22承受的壓力值,計算該像素塊22的權重。In the embodiment of the present invention, for a pixel block 22 in a frame of touch data, the weight of the pixel block 22 can be calculated according to the pressure value that the pixel block 22 bears.

在本發明實施例中,可以預先設置權重與壓力範圍的對應關係,進而確定像素塊22承受的壓力值所屬的壓力範圍,並將該確定的壓力範圍對應的權重作為該像素塊22的權重。In the embodiment of the present invention, the corresponding relationship between the weight and the pressure range may be preset to determine the pressure range to which the pressure value of the pixel block 22 belongs, and the weight corresponding to the determined pressure range is used as the weight of the pixel block 22.

在本發明實施例中,像素塊可以包括多個像素子塊,像素塊22承受的壓力值包括像素塊22中各個像素子塊承受的壓力值。相應的,根據像素塊22承受的壓力值確定像素塊22的權重的方式包括:針對像素塊22中每個像素子塊,根據該像素子塊承受的壓力值確定該像素子塊的權重。In the embodiment of the present invention, the pixel block may include multiple pixel sub-blocks, and the pressure value borne by the pixel block 22 includes the pressure value borne by each pixel sub-block in the pixel block 22. Correspondingly, the method of determining the weight of the pixel block 22 according to the pressure value of the pixel block 22 includes: for each pixel sub-block in the pixel block 22, the weight of the pixel sub-block is determined according to the pressure value of the pixel sub-block.

在根據像素子塊承受的壓力值確定像素子塊的權重的方式可以為:預先設置權重和壓力範圍的對應關係,進而確定像素子塊承受的壓力值所屬的壓力範圍,並將所確定的壓力範圍對應的權重確定為該像素子塊的權重。The method of determining the weight of the pixel sub-block according to the pressure value of the pixel sub-block can be: preset the corresponding relationship between the weight and the pressure range, and then determine the pressure range to which the pressure value of the pixel sub-block belongs, and compare the determined pressure The weight corresponding to the range is determined as the weight of the pixel sub-block.

比如,將大小為96*96像素的觸摸區域,可以分為24*12個子塊21;再從24*12個子塊21中選取4*4=16個子塊21,並將選取的每個子塊21定義為一個像素塊22,則有16個像素塊22。其中,從24*12個子塊21中選取4*4個子塊21的方式可以參見圖2,圖2中的子塊21可以理解為是從圖像中選取的一個像素塊22。For example, a touch area with a size of 96*96 pixels can be divided into 24*12 sub-blocks 21; then 4*4=16 sub-blocks 21 are selected from 24*12 sub-blocks 21, and each selected sub-block 21 Defined as one pixel block 22, there are 16 pixel blocks 22. The manner of selecting 4*4 sub-blocks 21 from 24*12 sub-blocks 21 can be seen in FIG. 2. The sub-block 21 in FIG. 2 can be understood as a pixel block 22 selected from an image.

選取像素塊後22,再將像素塊22分割成第一像素子塊和第二像素子塊;參見圖3(a),像素塊22包含4*8個像素,可以將該像素塊22分為2個4*4的像素子塊;參見圖3(b),像素塊22包含4*8個像素,也可以將該像素塊22分為8個2*2的像素子塊。After the pixel block 22 is selected, the pixel block 22 is divided into a first pixel sub-block and a second pixel sub-block; referring to Figure 3(a), the pixel block 22 contains 4*8 pixels, and the pixel block 22 can be divided into Two 4*4 pixel sub-blocks; referring to Fig. 3(b), the pixel block 22 includes 4*8 pixels, and the pixel block 22 can also be divided into 8 2*2 pixel sub-blocks.

在本發明實施例中,可以根據觸摸常用力度進行分級,並根據按壓力度級別對應產生被觸像素塊權重值,如觸摸常用力度最大值為1000,對應將力度級別設為0~15,權重值對應為0~15。In the embodiment of the present invention, it is possible to classify according to the commonly used touch strength, and correspondingly generate the weight value of the touched pixel block according to the pressing strength level. For example, the maximum value of the commonly used touch strength is 1000, and the strength level is set to 0-15, and the weight value Corresponds to 0~15.

以對每一像素塊22即4X8個像素,將其分為2個4X4的像素子塊為例進行說明:大於0的都是有手指觸摸的區域;若按壓,則像素子塊中的小子塊置為1,否則置0;數據採用位存儲,若數據輸出為254,二進位1111 1110,表示一個像素子塊按壓級別為15,即權重為15;另一個像素子塊按壓級別為14,即權重為14。Take each pixel block 22 that is 4X8 pixels and divide it into two 4X4 pixel sub-blocks as an example: the area greater than 0 is the area touched by the finger; if pressed, the small sub-block in the pixel sub-block Set to 1, otherwise set to 0; the data is stored in bits. If the data output is 254, the binary bit is 1111 1110, which means that the pressing level of one pixel sub-block is 15, that is, the weight is 15; the pressing level of the other pixel sub-block is 14, that is The weight is 14.

S103、利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心;S103: Calculate the centroid of each frame of touch data by using the weight of the pixel block and the position of the pixel block in the touch area;

在本發明的一個實施例中,針對採集到的一個圖像幀(即,一幀觸摸數據)而言,可以基於該圖像幀包括在採集該圖像幀的時刻觸摸區域中各個像素塊22承受觸摸操作的壓力值,以及各個像素塊22在觸摸區域的位置,計算該圖像幀的質心。In an embodiment of the present invention, for a captured image frame (ie, a frame of touch data), it may be based on that the image frame includes each pixel block 22 in the touch area at the moment the image frame is captured. The pressure value of the touch operation and the position of each pixel block 22 in the touch area are calculated to calculate the centroid of the image frame.

其中,利用觸摸數據中像素塊22的權重和像素塊22在觸摸區域的位置,計算觸摸數據的質心時,可以採用質心公式實現,質心公式為:

Figure 02_image015
Wherein, using the weight of the pixel block 22 in the touch data and the position of the pixel block 22 in the touch area to calculate the centroid of the touch data, the centroid formula can be used to realize the centroid formula:
Figure 02_image015

其中,

Figure 02_image003
為當前幀觸摸數據中第
Figure 02_image005
個像素子塊的權重,
Figure 02_image007
為當前幀觸摸數據中第
Figure 02_image005
個像素子塊的橫座標、
Figure 02_image009
為當前幀觸摸數據中第
Figure 02_image005
個像素子塊的縱座標,
Figure 02_image011
為當前幀觸摸數據的質心橫座標,
Figure 02_image013
為當前幀觸摸數據的質心縱座標。在本發明實施例中,當前幀觸摸數據的質心為(
Figure 02_image011
Figure 02_image013
),即(
Figure 02_image011
Figure 02_image013
)為當前幀觸摸數據的質心的座標。among them,
Figure 02_image003
Is the first touch data in the current frame
Figure 02_image005
The weight of each pixel sub-block,
Figure 02_image007
Is the first touch data in the current frame
Figure 02_image005
The abscissa of each pixel sub-block,
Figure 02_image009
Is the first touch data in the current frame
Figure 02_image005
The ordinate of each pixel sub-block,
Figure 02_image011
Is the centroid and abscissa of the touch data of the current frame,
Figure 02_image013
Is the centroid vertical coordinate of the touch data of the current frame. In the embodiment of the present invention, the centroid of the touch data of the current frame is (
Figure 02_image011
,
Figure 02_image013
),which is(
Figure 02_image011
,
Figure 02_image013
) Is the coordinates of the centroid of the touch data of the current frame.

S104、基於各幀觸摸數據的質心確定觸摸操作的操作意圖。S104: Determine an operation intention of the touch operation based on the centroid of the touch data of each frame.

在本發明實施例中,基於採集到的各幀觸摸數據的質心,可以確定觸摸操作的操作意圖。In the embodiment of the present invention, the operation intention of the touch operation can be determined based on the centroid of the collected touch data of each frame.

圖4為本發明的一個實施例提供的另一種操作意圖確定方法流程圖。Fig. 4 is a flowchart of another method for determining an operation intention provided by an embodiment of the present invention.

如圖4所示,該方法包括:As shown in Figure 4, the method includes:

S401、接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊22的觸摸數據,觸摸數據包括像素塊22承受觸摸操作的壓力值;S401. Receive a touch operation on a touch area, and collect touch data of a selected pixel block 22 in the touch area by using an image frame as a time unit, where the touch data includes the pressure value of the pixel block 22 subjected to the touch operation;

S402、獲取接收觸摸操作採集到的圖像幀數;S402: Acquire the number of image frames collected by receiving the touch operation;

S403、判斷圖像幀數是否小於第一預設閾值;若圖像幀數小於第一預設閾值,執行步驟S404;若圖像幀數不小於第一預設閾值,執行步驟S405;S403: Determine whether the number of image frames is less than the first preset threshold; if the number of image frames is less than the first preset threshold, perform step S404; if the number of image frames is not less than the first preset threshold, perform step S405;

在本發明實施例中,第一預設閾值可以為20幀,若接收觸摸操作採集到的圖像幀數小於20幀時,可以執行步驟S404;若接收觸摸操作採集到的圖像幀數不小於20幀時,可以執行步驟    S405。In the embodiment of the present invention, the first preset threshold may be 20 frames. If the number of image frames collected by the touch operation is less than 20 frames, step S404 can be performed; if the number of image frames collected by the touch operation is not When it is less than 20 frames, you can perform step S405.

S404、保存已採集的各幀觸摸數據,並返回執行步驟S401;S404: Save the collected touch data of each frame, and return to step S401;

S405、保存並計算已採集的各幀觸摸數據,並基於當前幀觸摸數據的質心判斷當前觸摸操作是否超出觸摸邊界;若觸摸操作超出觸摸邊界,執行步驟S406;S405. Save and calculate the collected touch data of each frame, and determine whether the current touch operation exceeds the touch boundary based on the centroid of the touch data of the current frame; if the touch operation exceeds the touch boundary, perform step S406;

在本發明實施例中,確定當前幀觸摸數據的質心的方式請參見上述實施例提供的計算觸摸數據質心的方式,在此不做贅述。In the embodiment of the present invention, for the method of determining the centroid of the touch data of the current frame, please refer to the method of calculating the centroid of the touch data provided in the foregoing embodiment, which is not repeated here.

在本發明實施例中,若當前幀觸摸數據的質心的橫座標在第一閾值範圍內,且當前幀觸摸數據的質心的縱座標在第二閾值範圍內時,確定基於當前幀觸摸數據的質心確定當前觸摸操作未超出觸摸邊界;反之,若當前幀觸摸數據的質心的橫座標未在第一閾值範圍內或者當前幀觸摸數據的質心的縱座標未在第二閾值範圍內時,確定基於當前幀觸摸數據的質心確定當前觸摸操作超出觸摸邊界。In the embodiment of the present invention, if the abscissa of the centroid of the touch data of the current frame is within the first threshold range, and the ordinate of the centroid of the touch data of the current frame is within the second threshold range, the determination is based on the touch data of the current frame The centroid of the current touch operation does not exceed the touch boundary; conversely, if the abscissa of the centroid of the current frame of touch data is not within the first threshold range or the ordinate of the centroid of the current frame of touch data is not within the second threshold range When determining that the current touch operation exceeds the touch boundary based on the centroid of the touch data of the current frame.

在本發明實施例中,第一閾值範圍和第二閾值範圍可以相同也可以不同,對於圖2的像素塊的分佈模數,邊界最小值一般為10.5,最大值為84.5,故可以將第一閾值範圍設置為大於12小於82;將第二閾值範圍設置為大於12小於84,以上僅僅是本發明實施例提供的第一閾值範圍和第二閾值範圍的優選方式,有關第一閾值範圍和第二閾值範圍的具體數值,發明人可根據自己的需求進行設置,在此不做限定。In the embodiment of the present invention, the first threshold value range and the second threshold value range may be the same or different. For the distribution modulus of the pixel block in FIG. 2, the minimum boundary value is generally 10.5 and the maximum value is 84.5. Therefore, the first The threshold value range is set to be greater than 12 and less than 82; the second threshold value range is set to be greater than 12 and less than 84. The above is only a preferred way of the first threshold range and the second threshold range provided by the embodiment of the present invention. The specific value of the second threshold range can be set by the inventor according to his own needs, and is not limited here.

S406、停止採集觸摸數據,並基於已保存的各幀觸摸數據,輸出各幀觸摸數據的質心;S406. Stop collecting touch data, and output the centroid of each frame of touch data based on the saved touch data of each frame;

在本發明實施例中,若判斷當前觸摸操作超出觸摸邊界時,可以停止採集觸摸數據,並基於已保存的各幀觸摸數據,輸出各幀觸摸數據的質心。In the embodiment of the present invention, if it is determined that the current touch operation exceeds the touch boundary, the collection of touch data can be stopped, and the centroid of each frame of touch data can be output based on the saved touch data of each frame.

進一步的,在本發明實施例中,若未檢測到當前觸摸操作超出觸摸邊界,但是觸摸操作停止時,也可以停止採集觸摸數據,並基於已保存的各幀觸摸數據,輸出各幀觸摸數據的質心。Further, in the embodiment of the present invention, if it is not detected that the current touch operation exceeds the touch boundary, but the touch operation is stopped, the collection of touch data can also be stopped, and based on the saved touch data of each frame, the output of each frame of touch data Centroid.

S407、判斷圖像幀數是否小於第二預設閾值,第二預設閾值小於第一預設閾值;若圖像幀數小於第二預設閾值,執行步驟S408;若圖像幀數不小於第二預設閾值,執行步驟S409;S407. Determine whether the number of image frames is less than the second preset threshold, and the second preset threshold is less than the first preset threshold; if the number of image frames is less than the second preset threshold, perform step S408; if the number of image frames is not less than For the second preset threshold, perform step S409;

S408、確定觸摸操作的操作意圖指示單擊操作;S408: Determine that the operation intention of the touch operation indicates a click operation;

進一步的,本發明實施例提供的一種觸摸意圖確定方法在基於各幀觸摸數據的質心確定觸摸操作的操作意圖之前,還可以判斷圖像幀數是否小於第二預設閾值,若圖像幀數小於第二預設閾值,確定觸摸操作的操作意圖指示單擊操作,若圖像幀數不小於第二預設閾值,執行步驟S409。Further, the method for determining a touch intention provided by an embodiment of the present invention may also determine whether the number of image frames is less than a second preset threshold before determining the operation intention of the touch operation based on the centroid of each frame of touch data. If the number is less than the second preset threshold, it is determined that the operation intention of the touch operation indicates a click operation. If the number of image frames is not less than the second preset threshold, step S409 is executed.

在本發明實施例中,第二預設閾值小於第一預設閾值,第二預設閾值可以為3幀,若確定圖像幀數小於3幀時,可以直接將觸摸操作的操作意圖確定為單擊操作。以上僅僅是本發明實施例提供的第二預設閾值的優選方式,有關第二預設閾值的具體數值,發明人可根據自己的需求進行設置,在此不做限定。In the embodiment of the present invention, the second preset threshold is less than the first preset threshold, and the second preset threshold can be 3 frames. If it is determined that the number of image frames is less than 3 frames, the operation intention of the touch operation can be directly determined as Click Action. The foregoing is only a preferred manner of the second preset threshold provided by the embodiment of the present invention. The specific value of the second preset threshold can be set by the inventor according to his own needs, which is not limited here.

S409、基於各幀觸摸數據的質心確定觸摸操作的操作意圖。S409: Determine the operation intention of the touch operation based on the centroid of the touch data of each frame.

在本發明實施例中,按照採集到的觸摸數據的順序,依次輸出幀觸摸數據的質心,可以得到觸摸操作過程中的質心移動軌跡,進而基於質心移動軌跡可以確定觸摸操作的操作意圖。In the embodiment of the present invention, according to the order of the collected touch data, the centroids of the frame touch data are sequentially output to obtain the movement trajectory of the centroid during the touch operation, and then the operation intention of the touch operation can be determined based on the movement trajectory of the centroid .

在本發明實施例中,基於各幀觸摸數據的質心確定觸摸操作的操作意圖之前,還可以進一步對採集到的觸摸數據的質心進行過濾,以基於過濾後的質心實現確定觸摸操作的操作意圖的目的,進而簡化運算量,提高操作意圖確定精度。In the embodiment of the present invention, before determining the operation intention of the touch operation based on the centroid of each frame of touch data, the centroid of the collected touch data may be further filtered, so as to realize the determination of the touch operation based on the filtered centroid. The purpose of the operation intention is to simplify the calculation and improve the accuracy of the operation intention determination.

圖5為本發明的一個實施例提供的一種基於各幀觸摸數據的質心確定觸摸操作的操作意圖方法流程圖。5 is a flowchart of a method for determining the operation intention of a touch operation based on the centroid of each frame of touch data according to an embodiment of the present invention.

如圖5所示,該方法包括:As shown in Figure 5, the method includes:

S501、按照觸摸數據的採集順序,對接收到的觸摸操作採集到的各幀觸摸數據的質心進行排序,得到質心序列;S501: Sort the centroid of each frame of touch data collected by the received touch operation according to the order of the touch data collection, to obtain a centroid sequence;

在本發明實施例中,針對保存的各幀觸摸數據,按照各幀觸摸數據的採集順序,對各幀觸摸數據的質心進行排序,以得到質心序列,該質心序列可以體現在觸摸操作過程中的質心移動軌跡。In the embodiment of the present invention, for each frame of touch data saved, the centroid of each frame of touch data is sorted according to the order of collection of each frame of touch data to obtain a centroid sequence, which can be reflected in the touch operation The center of mass movement trajectory in the process.

S502、將質心序列中排序最靠前的第一預設數量個質心剔除,且將質心序列中排序最靠後的第二預設數量個質心剔除,得到第一質心序列;S502. Eliminate the first preset number of centroids that are ranked highest in the centroid sequence, and eliminate the second preset number of centroids that are lowest ranked in the centroid sequence to obtain the first centroid sequence;

通過分析質心移動軌跡發現,起始執行觸摸操作時,採集到的觸摸數據的質心會出現抖動現象,觸摸操作結束時,採集到的觸摸數據的質心會出現拖尾現象。因此,本發明實施例通過剔除觸摸操作過程中採集到的前M幀觸摸數據和採集到的後N幀觸摸數據,以減小抖動和拖尾對操作意圖確定的影響。By analyzing the movement trajectory of the center of mass, it is found that when the touch operation is initially performed, the center of mass of the collected touch data will jitter, and when the touch operation ends, the center of mass of the collected touch data will appear tailing. Therefore, in the embodiment of the present invention, the first M frames of touch data and the last N frames of touch data collected during the touch operation are eliminated to reduce the influence of jitter and tailing on the determination of the operation intention.

在本發明實施例中,M幀可以認為是第一預設數量,N幀可以認為是第二預設數量;針對圖3(a)的情況,可以將M設置為1,N設置為2;針對圖3(b)的情況,可以將M設置為1,N設置為5到8之間任意一個整數。以上僅僅是本發明實施例提供的第一預設數量和第二預設數量的優選方式,有關第一預設數量和第二預設數量的具體內容,發明人可根據自己的需求進行設置,在此不做限定。In the embodiment of the present invention, M frames can be considered as the first preset number, and N frames can be considered as the second preset number; for the case of Figure 3(a), M can be set to 1 and N can be set to 2; For the situation in Figure 3(b), M can be set to 1, and N can be set to any integer between 5 and 8. The above are only the preferred ways of the first preset quantity and the second preset quantity provided by the embodiment of the present invention. The inventors can set the specific content of the first preset quantity and the second preset quantity according to their own needs. There is no limitation here.

S503、基於第一質心序列確定觸摸操作的操作意圖。S503: Determine an operation intention of the touch operation based on the first centroid sequence.

在本發明實施例中,將質心序列中前M個質心剔除,且將質心序列中後N個質心剔除後,可以得到第一質心序列,進而基於第一質心序列可以實現對觸摸操作的操作意圖的確定。In the embodiment of the present invention, after the first M centroids in the centroid sequence are eliminated, and the last N centroids in the centroid sequence are eliminated, the first centroid sequence can be obtained, which can then be realized based on the first centroid sequence The determination of the operation intention of the touch operation.

考慮到半指滑動時,質心移動軌跡會出現來回反復的情況,本發明實施例在得到第一質心序列後還可以進一步對第一質心序列中的拐點進行判斷,以優化質心移動軌跡。Considering that when half-finger slides, the trajectory of the center of mass will repeat back and forth. After obtaining the first center of mass sequence, the embodiment of the present invention may further judge the inflection point in the first center of mass sequence to optimize the movement of the center of mass. Track.

圖6為本發明的一個實施例提供的一種質心移動軌跡優化方法流程圖。FIG. 6 is a flowchart of a method for optimizing the movement trajectory of the center of mass according to an embodiment of the present invention.

如圖6所示,該方法包括:As shown in Figure 6, the method includes:

S601、將第一質心序列中首個質心確定為起始點,且將第一質心序列中的末尾質心確定為終止點,定義起始點到終止點採集到的圖像幀數為總圖像幀,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第一距離,並將第一距離初始化為零;S601. Determine the first centroid in the first centroid sequence as the starting point, and determine the end centroid in the first centroid sequence as the ending point, and define the number of image frames collected from the starting point to the ending point Is the total image frame, after receiving the touch operation, define the distance from the centroid of the image frame before the current image frame to the starting point as the first distance, and initialize the first distance to zero;

S602、計算當前圖像幀質心與起始點之間的第二距離;S602: Calculate a second distance between the centroid of the current image frame and the starting point;

S603、比較第二距離是否大於第一距離;如果第二距離大於第一距離,執行步驟S604;如果第二距離不大於當前第一距離,執行步驟S605;S603. Compare whether the second distance is greater than the first distance; if the second distance is greater than the first distance, perform step S604; if the second distance is not greater than the current first distance, perform step S605;

S604、將第二距離數值更新為第一距離的數值;S604: Update the second distance value to the first distance value;

S605、比較當前圖像幀數和總圖像幀數,得到比較結果;S605: Compare the current number of image frames with the total number of image frames to obtain a comparison result;

S606、圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離滿足第一預設子條件時,將當前圖像幀的質心更新為起始點;S606: When the comparison result of the number of image frames meets the first preset condition, and the second distance and the current first distance meet the first preset sub-condition, update the centroid of the current image frame as the starting point;

在本發明實施例中,第一預設條件可以為當前圖像幀數占總圖像幀數的比例小於70%。圖像幀數比較結果表示當前圖像幀數占總圖像幀數的比例,在該比例小於70%時,說明該圖像幀數比較結果滿足第一預設條件。In the embodiment of the present invention, the first preset condition may be that the ratio of the current number of image frames to the total number of image frames is less than 70%. The comparison result of the number of image frames indicates the ratio of the current number of image frames to the total number of image frames, and when the ratio is less than 70%, it indicates that the comparison result of the number of image frames meets the first preset condition.

第二距離與當前第一距離滿足第一預設子條件,可以為第二距離小於當前第一距離的80%。若第二距離小於當前第一距離*80%,則認為第二距離與當前第一距離滿足第一預設子條件,進而將第一質心序列的起始點更新為當前圖像幀的質心。The second distance and the current first distance satisfy the first preset sub-condition, and the second distance may be less than 80% of the current first distance. If the second distance is less than the current first distance*80%, it is considered that the second distance and the current first distance meet the first preset sub-condition, and the starting point of the first centroid sequence is updated to the quality of the current image frame. heart.

在本發明實施例中,圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離不滿足第一預設子條件時,還可以將當前圖像幀相鄰的下一圖像幀更新為當前圖像幀,並返回執行步驟S602;In the embodiment of the present invention, when the comparison result of the number of image frames satisfies the first preset condition, and the second distance and the current first distance do not meet the first preset sub-condition, the next image frame adjacent to the current image frame An image frame is updated to the current image frame, and step S602 is returned to;

在本發明實施例中,圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離滿足第一預設子條件時,將當前圖像幀的質心更新為起始點後,還可以將圖像幀相鄰的下一圖像幀更新為當前圖像幀,並返回執行步驟S602。In the embodiment of the present invention, when the comparison result of the number of image frames meets the first preset condition, and the second distance and the current first distance meet the first preset sub-condition, the centroid of the current image frame is updated to the start After clicking, the next image frame adjacent to the image frame can also be updated as the current image frame, and step S602 is returned to.

S607、圖像幀數比較結果滿足第二預設條件時,且第二距離與當前第一距離滿足第二預設子條件,將當前質心更新為起始點;S607: When the comparison result of the number of image frames meets the second preset condition, and the second distance and the current first distance meet the second preset sub-condition, update the current centroid as the starting point;

在本發明實施例中,第二預設條件可以為當前圖像幀數占總圖像幀數的比例大於等於70%且小於90%。圖像幀數比較結果表示當前圖像幀數占總圖像幀數的比例,在該比例大於等於70%且不小於90%時,說明該圖像幀數比較結果滿足第二預設條件。In the embodiment of the present invention, the second preset condition may be that the ratio of the current image frame number to the total image frame number is greater than or equal to 70% and less than 90%. The comparison result of the number of image frames indicates the ratio of the current number of image frames to the total number of image frames. When the ratio is greater than or equal to 70% and not less than 90%, it indicates that the comparison result of the number of image frames meets the second preset condition.

第二距離與當前第一距離滿足第二預設子條件,可以為第二距離小於當前第一距離的80%。若第二距離小於當前第一距離*80%,則認為第二距離與當前第一距離滿足第二預設子條件,進而將第一質心序列的起始點更新為當前圖像幀的質心。The second distance and the current first distance satisfy the second preset sub-condition, and the second distance may be less than 80% of the current first distance. If the second distance is less than the current first distance*80%, it is considered that the second distance and the current first distance meet the second preset sub-condition, and the starting point of the first centroid sequence is updated to the quality of the current image frame. heart.

進一步的,在執行完成步驟S607後還可以判斷當前圖像幀數占總圖像幀數的比例是否大於80%,若是,停止對第一質心序列中質心移動軌跡的優化過程,基於當前第一質心序列確定操作意圖。Further, after performing step S607, it can also be judged whether the ratio of the current image frame number to the total image frame number is greater than 80%. If so, stop the optimization process of the centroid movement trajectory in the first centroid sequence, based on the current The first centroid sequence determines the operation intention.

進一步的,若圖像幀數比較結果滿足第二預設條件時,且第二距離與當前第一距離滿足不第二預設子條件時,還可以將當前圖像幀相鄰的下一圖像幀作為當前圖像幀並返回執行步驟S602。Further, if the comparison result of the number of image frames meets the second preset condition, and the second distance and the current first distance do not meet the second preset sub-condition, the next image adjacent to the current image frame The image frame is taken as the current image frame and returns to step S602.

S608、圖像幀數比較結果滿足第三預設條件時,將當前質心更新為結束點。S608: When the comparison result of the number of image frames meets the third preset condition, update the current centroid as the end point.

在本發明實施例中,第三預設條件可以為當前圖像幀數占總圖像幀數的比例大於等於90%。圖像幀數比較結果表示當前圖像幀數占總圖像幀數的比例,在該比例大於等於90%時,說明該圖像幀數比較結果滿足第三預設條件。In the embodiment of the present invention, the third preset condition may be that the ratio of the current number of image frames to the total number of image frames is greater than or equal to 90%. The comparison result of the number of image frames indicates the ratio of the current number of image frames to the total number of image frames, and when the ratio is greater than or equal to 90%, it indicates that the comparison result of the number of image frames meets the third preset condition.

當圖像幀數比較結果滿足第三預設條件時,將當前圖像幀的質心更新為第一質心序列的結束點。When the comparison result of the number of image frames meets the third preset condition, the centroid of the current image frame is updated to the end point of the first centroid sequence.

在本發明實施例中,第一預設條件、第二預設條件、第三預設條件、第一預設子條件、第二預設子條件的具體數值發明人可根據自己的需求進行設置,在此不做限定。In the embodiment of the present invention, the specific values of the first preset condition, the second preset condition, the third preset condition, the first preset sub-condition, and the second preset sub-condition can be set by the inventor according to his needs , It is not limited here.

在本發明實施例中,除了可以採用對第一質心序列進行優化的方式實現對質心移動軌跡的優化,還可以在採集操作數據過程中對執行移動軌跡進行優化,具體請參見圖7。In the embodiment of the present invention, in addition to optimizing the first centroid sequence to optimize the movement trajectory of the centroid, the execution movement trajectory can also be optimized in the process of collecting operation data. Please refer to FIG. 7 for details.

圖7為本發明的一個實施例提供的另一種質心移動軌跡優化方法流程圖。FIG. 7 is a flowchart of another method for optimizing the movement trajectory of the center of mass provided by an embodiment of the present invention.

如圖7所示,該方法包括:As shown in Figure 7, the method includes:

S701、接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,將採集到的首個圖像幀的質心確定為起始點,預設觸摸操作需採集的總圖像幀數,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第三距離,並將第三距離初始化為零;S701. Receive a touch operation on the touch area, collect the touch data of the selected pixel block in the touch area by using the image frame as a time unit, and determine the centroid of the first collected image frame as the starting point, and preset The total number of image frames to be collected for the touch operation. After receiving the touch operation, define the distance from the centroid of the image frame before the current image frame to the starting point as the third distance, and initialize the third distance to zero;

S702、計算當前圖像幀質心與起始點之間的第四距離;S702: Calculate the fourth distance between the centroid of the current image frame and the starting point;

S703、比較第四距離是否大於第三距離;如果第四距離大於第三距離,執行步驟S704;如果第四距離不大於第三距離,執行步驟S705;S703. Compare whether the fourth distance is greater than the third distance; if the fourth distance is greater than the third distance, perform step S704; if the fourth distance is not greater than the third distance, perform step S705;

S704、將第三距離的數值更新為第四距離的數值;S704: Update the value of the third distance to the value of the fourth distance;

S705、比較當前圖像幀數和總圖像幀數,得到比較結果;S705: Compare the current number of image frames with the total number of image frames to obtain a comparison result;

S706、圖像幀數比較結果滿足第一預設條件,且第三距離與第四距離滿足第一預設子條件時,將當前質心更新為起始點;S706: When the comparison result of the number of image frames meets the first preset condition, and the third distance and the fourth distance meet the first preset sub-condition, update the current centroid as the starting point;

S707、圖像幀數比較結果滿足第二預設條件時,且第三距離與第四距離滿足第二預設子條件,將當前質心更新為起始點;S707: When the comparison result of the number of image frames meets the second preset condition, and the third distance and the fourth distance meet the second preset sub-condition, update the current centroid as the starting point;

S708、圖像幀數比較結果滿足第三預設條件時,將當前圖像幀的質心更新為結束點。S708: When the comparison result of the number of image frames meets the third preset condition, update the centroid of the current image frame as the end point.

進一步的,本發明實施例提供的一種操作意圖確定方法,在上述質心移動軌跡的優化過程的基礎上,為了進一步精確質心移動軌跡的結束點,還可以對上述進行質心移動軌跡優化後的質心移動軌跡的結束點進行回溯,該方法具體為:選定更新的結束點所在圖像幀序列之前的一個質心,該質心的序號與總圖像幀數的占比符合第四預設條件,且該質心與其前一幀質心的距離滿足第五預設條件,將該質心更新為結束點。Further, in the method for determining the operation intention provided by the embodiment of the present invention, on the basis of the above optimization process of the center of mass movement trajectory, in order to further accurately determine the end point of the center of mass movement trajectory, the above-mentioned center of mass movement trajectory may be optimized. Backtracking to the end point of the center-of-mass movement trajectory, the method is specifically: selecting a center of mass before the image frame sequence where the updated end point is located, and the proportion of the serial number of the center of mass to the total number of image frames conforms to the fourth prediction If the condition is set, and the distance between the centroid and the centroid of the previous frame meets the fifth preset condition, the centroid is updated as the end point.

在本發明實施例中,更新後的結束點是採集到的一個圖像幀的質心,從該圖像幀之前採集到的各個圖像幀中選定一個目標圖像幀,該目標圖像幀的質心的序號與總圖像幀數的占比符合第四預設條件,且該目標圖像幀的質心與其前一幀採集到的圖像幀的質心的距離滿足第五預設條件,將該目標圖像幀的質心更新為結束點。In the embodiment of the present invention, the updated end point is the centroid of a captured image frame, a target image frame is selected from each image frame captured before the image frame, and the target image frame The ratio of the serial number of the center of mass to the total number of image frames meets the fourth preset condition, and the distance between the center of mass of the target image frame and the center of mass of the image frame collected in the previous frame meets the fifth preset Condition, update the centroid of the target image frame as the end point.

其中,可以按照採集圖像幀的順序依次對採集到的每個圖像幀的質心設置序號,比如,將採集到的第一個圖像幀的質心的序號設置為1,將採集到的第二個圖像幀的質心的序號設置為2,將採集到的第三個圖像幀的質心的序號設置為3…依次類推;相應的,目標圖像幀的質心的序號與總圖像幀數的占比可以理解為目標圖像幀的質心的序號除以總圖像幀數所得到的結果。Among them, you can set the serial number of the centroid of each acquired image frame in sequence according to the order in which the image frames are acquired. For example, set the serial number of the centroid of the first acquired image frame to 1, and the acquired Set the serial number of the centroid of the second image frame to 2, and set the serial number of the centroid of the third image frame to 3...and so on; correspondingly, the serial number of the centroid of the target image frame The proportion to the total number of image frames can be understood as the result of dividing the serial number of the centroid of the target image frame by the total number of image frames.

在本發明實施例中,第四預設條件可以為7/8,若目標圖像幀的質心的序號與總圖像幀數的占比大於7/8時,可以認為目標圖像幀的質心的序號與總圖像幀數的占比符合第四預設條件。In the embodiment of the present invention, the fourth preset condition may be 7/8. If the ratio of the serial number of the centroid of the target image frame to the total number of image frames is greater than 7/8, the target image frame can be considered The ratio of the serial number of the centroid to the total image frame number meets the fourth preset condition.

在本發明實施例中,第五預設條件可以為10,若目標圖像幀的質心與其前一幀採集到的圖像幀的質心的距離大於10時,可以認為目標圖像幀的質心與其前一幀採集到的圖像幀的質心的距離滿足第五預設條件。In the embodiment of the present invention, the fifth preset condition may be 10. If the distance between the centroid of the target image frame and the centroid of the image frame acquired in the previous frame is greater than 10, the The distance between the centroid and the centroid of the image frame collected in the previous frame satisfies the fifth preset condition.

為了便於對本發明的一個實施例提供的一種操作意圖確定方法進行詳細說明,在此提供一種基於各幀觸摸數據的質心確定觸摸操作的操作意圖的方法流程圖,具體請參見圖8。In order to facilitate the detailed description of an operation intention determination method provided by an embodiment of the present invention, a flow chart of a method for determining the operation intention of a touch operation based on the centroid of each frame of touch data is provided here. For details, please refer to FIG. 8.

如圖8所示,該方法包括:As shown in Figure 8, the method includes:

S801、將終止點的橫座標減去起始點的橫座標,得到橫座標差值;S801. Subtract the abscissa of the starting point from the abscissa of the end point to obtain an abscissa difference;

S802、將終止點的縱座標減去起始點的縱座標,得到縱座標差值;S802. Subtract the ordinate of the starting point from the ordinate of the end point to obtain the ordinate difference;

S803、判斷橫座標差值的絕對值和縱座標差值的絕對值的和是否滿足第六預設條件,若橫座標差值的絕對值和縱座標差值的絕對值的和滿足第六預設條件,執行步驟S804;若橫座標差值的絕對值和縱座標差值的絕對值的和不滿足第六預設條件,執行步驟S805;S803. Determine whether the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfies the sixth preset condition, if the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfies the sixth preset condition. Set the conditions and go to step S804; if the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference does not meet the sixth preset condition, go to step S805;

在本發明實施例中,橫座標差值的絕對值和縱座標差值的絕對值的和小於15時,可以認為橫座標差值的絕對值和縱座標差值的絕對值的和滿足第六預設條件;反之,則認為橫座標差值的絕對值和縱座標差值的絕對值的和不滿足第六預設條件。In the embodiment of the present invention, when the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference is less than 15, it can be considered that the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfies the sixth The preset condition; otherwise, it is considered that the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference does not meet the sixth preset condition.

S804、確定觸摸操作的操作意圖指示單擊操作;S804: Determine the operation intention of the touch operation to indicate a click operation;

S805、判斷橫座標差值的絕對值和縱座標差值的絕對值是否滿足第七預設條件;如果橫座標差值的絕對值和縱座標差值的絕對值滿足第七預設條件,執行步驟S806;如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第七預設條件,執行步驟S809;S805. Determine whether the absolute value of the abscissa difference and the absolute value of the ordinate difference meet the seventh preset condition; if the absolute value of the abscissa difference and the absolute value of the ordinate difference meet the seventh preset condition, execute Step S806: If the absolute value of the abscissa difference and the absolute value of the ordinate difference do not meet the seventh preset condition, go to step S809;

在本發明實施例中,橫座標差值的絕對值大於縱座標差值的絕對值時,可以認為橫座標差值的絕對值和縱座標差值的絕對值滿足第七預設條件;反之,則認為橫座標差值的絕對值和縱座標差值的絕對值不滿足第七預設條件。In the embodiment of the present invention, when the absolute value of the abscissa difference is greater than the absolute value of the ordinate difference, it can be considered that the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfy the seventh preset condition; otherwise, It is considered that the absolute value of the abscissa difference and the absolute value of the ordinate difference do not satisfy the seventh preset condition.

S806、判斷橫座標差值是否小於0;在橫座標差值小於0時,執行步驟S807;在橫座標差值不小於0時,執行步驟S808;S806. Determine whether the abscissa difference is less than 0; when the abscissa difference is less than 0, execute step S807; when the abscissa difference is not less than 0, execute step S808;

S807、確定觸摸操作的操作意圖指示上滑操作;S807. Determine the operation intention of the touch operation to indicate an upward sliding operation;

S808、確定觸摸操作的操作意圖指示下滑操作;S808. Determine the operation intention of the touch operation to indicate a sliding operation;

S809、判斷縱座標差值是否大於0;若縱座標差值大於0,執行步驟S810;若縱座標差值不大於0,執行步驟S813;S809. Determine whether the ordinate difference is greater than 0; if the ordinate difference is greater than 0, execute step S810; if the ordinate difference is not greater than 0, execute step S813;

S810、判斷縱座標差值的絕對值和橫座標差值的絕對值是否滿足第八預設條件;如果橫座標差值的絕對值和縱座標差值的絕對值滿足第八預設條件,執行步驟S811;如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第八預設條件,執行步驟S812;S810. Determine whether the absolute value of the ordinate difference and the absolute value of the abscissa satisfy the eighth preset condition; if the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfy the eighth preset condition, execute Step S811: If the absolute value of the abscissa difference and the absolute value of the ordinate difference do not meet the eighth preset condition, go to step S812;

在本發明實施例中,當縱座標差值的絕對值大於橫座標差值的絕對值時,可以認為縱座標差值的絕對值和橫座標差值的絕對值滿足第八預設條件;反之,則認為縱座標差值的絕對值和橫座標差值的絕對值不滿足第八預設條件。In the embodiment of the present invention, when the absolute value of the ordinate difference is greater than the absolute value of the abscissa difference, it can be considered that the absolute value of the ordinate difference and the absolute value of the abscissa satisfy the eighth preset condition; , The absolute value of the ordinate difference and the absolute value of the abscissa difference do not satisfy the eighth preset condition.

S811、確定觸摸操作的操作意圖指示左滑操作;S811. Determine that the operation intention of the touch operation indicates a left swipe operation;

S812、確定觸摸操作的操作意圖指示上滑操作;S812. Determine that the operation intention of the touch operation indicates an upward sliding operation;

S813、判斷縱座標差值的絕對值和橫座標差值的絕對值是否滿足第九預設條件;如果橫座標差值的絕對值和縱座標差值的絕對值滿足第九預設條件,執行步驟S814;如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第九預設條件,執行步驟S815。S813. Determine whether the absolute value of the ordinate difference and the absolute value of the abscissa satisfy the ninth preset condition; if the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfy the ninth preset condition, execute Step S814: If the absolute value of the abscissa difference and the absolute value of the ordinate difference do not meet the ninth preset condition, go to step S815.

在本發明實施例中,當縱座標差值的絕對值大於橫座標差值的絕對值時,可以認為縱座標差值的絕對值和橫座標差值的絕對值滿足第九預設條件;反之,則認為縱座標差值的絕對值和橫座標差值的絕對值不滿足第九預設條件。In the embodiment of the present invention, when the absolute value of the ordinate difference is greater than the absolute value of the abscissa difference, it can be considered that the absolute value of the ordinate difference and the absolute value of the abscissa difference satisfy the ninth preset condition; , It is considered that the absolute value of the ordinate difference and the absolute value of the abscissa do not satisfy the ninth preset condition.

S814、確定觸摸操作的操作意圖指示右滑操作;S814. Determine that the operation intention of the touch operation indicates a right sliding operation;

S815、確定觸摸操作的操作意圖指示上滑操作。S815: Determine that the operation intention of the touch operation indicates an upward sliding operation.

以上僅僅是本發明實施例提供的第六預設條件、第七預設條件、第八預設條件、第九預設條件的優選方式,有關第六預設條件、第七預設條件、第八預設條件和第九預設條件的具體內容,發明人可根據自己的需求進行設置,在此不做限定。The above are only the preferred methods of the sixth preset condition, the seventh preset condition, the eighth preset condition, and the ninth preset condition provided by the embodiments of the present invention. The specific content of the eighth preset condition and the ninth preset condition can be set by the inventor according to his own needs, and is not limited here.

圖9為本發明的一個實施例提供的一種操作意圖確定裝置的結構示意圖。Fig. 9 is a schematic structural diagram of a device for determining an operation intention provided by an embodiment of the present invention.

如圖9所示,該裝置包括:As shown in Figure 9, the device includes:

觸摸操作接收單元91,用於接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值;The touch operation receiving unit 91 is configured to receive a touch operation on the touch area, and collect touch data of a selected pixel block in the touch area by using an image frame as a time unit, and the touch data includes the pressure value of the pixel block under the touch operation;

權重確定單元92,用於根據像素塊承受的壓力值確定像素塊的權重;The weight determining unit 92 is configured to determine the weight of the pixel block according to the pressure value of the pixel block;

質心計算單元93,用於利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心;The centroid calculation unit 93 is used to calculate the centroid of each frame of touch data by using the weight of the pixel block and the position of the pixel block in the touch area;

第一操作意圖確定單元94,用於基於各幀觸摸數據的質心確定觸摸操作的操作意圖。The first operation intention determination unit 94 is configured to determine the operation intention of the touch operation based on the centroid of the touch data of each frame.

在本發明實施例中,權重確定單元92具體用於查詢預先設置的權重與壓力範圍的對應關係,將像素塊承受的壓力值所屬的壓力範圍對應的權重,確定為像素塊的權重。In the embodiment of the present invention, the weight determination unit 92 is specifically configured to query the correspondence between the preset weight and the pressure range, and determine the weight corresponding to the pressure range to which the pressure value suffered by the pixel block belongs as the weight of the pixel block.

在本發明實施例中,像素塊包括多個像素子塊,採集像素塊承受的壓力值包括採集像素塊中每個像素子塊承受的壓力值,權重確定單元92具體用於根據像素塊中每個像素子塊承受的壓力值確定像素子塊的權重。In the embodiment of the present invention, the pixel block includes a plurality of pixel sub-blocks, the pressure value borne by the collected pixel block includes the pressure value borne by each pixel sub-block in the collected pixel block, and the weight determination unit 92 is specifically configured to perform according to each pixel block The pressure value of each pixel sub-block determines the weight of the pixel sub-block.

在本發明實施例中,質心計算單元93包括:In the embodiment of the present invention, the centroid calculation unit 93 includes:

獲取單元,用於獲取觸摸區域中被選定的每個像素塊的每個像素子塊在觸摸區域中的位置,像素子塊在觸摸區域中的位置包括像素子塊在觸摸區域中的橫座標和縱座標;The acquiring unit is used to acquire the position of each pixel sub-block of each pixel block selected in the touch area in the touch area. The position of the pixel sub-block in the touch area includes the abscissa of the pixel sub-block in the touch area and Ordinate

質心計運算元單元93,用於採用質心公式分別計算每幀觸摸數據的質心,質心公式為:

Figure 02_image017
The centroid meter operation element unit 93 is used to calculate the centroid of each frame of touch data separately by adopting the centroid formula. The centroid formula is:
Figure 02_image017

其中,

Figure 02_image003
為當前幀觸摸數據中第
Figure 02_image005
個像素子塊的權重,
Figure 02_image007
為當前幀觸摸數據中第
Figure 02_image005
個像素子塊的橫座標、
Figure 02_image009
為當前幀觸摸數據中第
Figure 02_image005
個像素子塊的縱座標,
Figure 02_image011
為當前幀觸摸數據的質心橫坐標,
Figure 02_image013
為當前幀觸摸數據的質心縱坐標。among them,
Figure 02_image003
Is the first touch data in the current frame
Figure 02_image005
The weight of each pixel sub-block,
Figure 02_image007
Is the first touch data in the current frame
Figure 02_image005
The abscissa of each pixel sub-block,
Figure 02_image009
Is the first touch data in the current frame
Figure 02_image005
The ordinate of each pixel sub-block,
Figure 02_image011
Is the abscissa of the centroid of the touch data of the current frame,
Figure 02_image013
Is the ordinate of the centroid of the touch data of the current frame.

進一步的,本發明實施例提供的一種操作意圖確定裝置還包括觸摸邊界判斷單元,用於:Further, the device for determining an operation intention provided by an embodiment of the present invention further includes a touch boundary judgment unit, configured to:

獲取接收觸摸操作採集到的圖像幀數;Obtain the number of image frames collected by receiving the touch operation;

若圖像幀數小於第一預設閾值時,保存已採集的各幀觸摸數據;If the number of image frames is less than the first preset threshold, save the collected touch data of each frame;

若圖像幀數不小於第一預設閾值,保存並計算已採集的各幀觸摸數據,並基於當前幀觸摸數據的質心判斷當前觸摸操作是否超出觸摸邊界;If the number of image frames is not less than the first preset threshold, save and calculate the collected touch data of each frame, and judge whether the current touch operation exceeds the touch boundary based on the centroid of the touch data of the current frame;

若觸摸操作超出觸摸邊界,停止採集觸摸數據,輸出各幀觸摸數據的質心。If the touch operation exceeds the touch boundary, stop collecting touch data and output the centroid of each frame of touch data.

進一步的,本發明實施例提供的一種操作意圖確定裝置還包括第二操作意圖確定單元,用於:Further, the apparatus for determining an operation intention provided by an embodiment of the present invention further includes a second operation intention determining unit, configured to:

判斷圖像幀數是否小於第二預設閾值;Judging whether the number of image frames is less than the second preset threshold;

若圖像幀數小於第二預設閾值,確定觸摸操作的操作意圖指示單擊操作,第二預設閾值小於第一預設閾值。If the number of image frames is less than the second preset threshold, it is determined that the operation intention of the touch operation indicates a click operation, and the second preset threshold is less than the first preset threshold.

本發明實施例提供的一種操作意圖確定裝置中的第一操作意圖確定單元,包括:An embodiment of the present invention provides a first operation intention determination unit in an operation intention determination device, including:

質心序列獲取單元,用於按照觸摸數據的採集順序,對接收到的觸摸操作採集到的各幀觸摸數據的質心進行排序,得到質心序列;The centroid sequence acquisition unit is used to sort the centroids of each frame of touch data collected by the received touch operations according to the order of the touch data collection, to obtain the centroid sequence;

質心剔除單元,用於將質心序列中排序最靠前的第一預設數量個質心剔除,且將質心序列中排序最靠後的第二預設數量個質心剔除,得到第一質心序列;The centroid culling unit is used to remove the first preset number of centroids that are the highest in the centroid sequence, and remove the second preset number of centroids that are the lowest in the centroid sequence to obtain the first A sequence of centroids;

第一操作意圖確定子單元,用於基於第一質心序列確定觸摸操作的操作意圖。The first operation intention determination subunit is configured to determine the operation intention of the touch operation based on the first centroid sequence.

進一步的,本發明實施例提供的一種操作意圖確定裝置還包括第一質心序列優化單元,用於:Further, the apparatus for determining an operation intention provided by an embodiment of the present invention further includes a first centroid sequence optimization unit, configured to:

將第一質心序列中首個質心確定為起始點,且將第一質心序列中的末尾質心確定為終止點,定義起始點到終止點採集到的圖像幀數為總圖像幀,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第一距離,並將第一距離初始化為零;The first centroid in the first centroid sequence is determined as the starting point, and the end centroid in the first centroid sequence is determined as the ending point, and the number of image frames collected from the starting point to the ending point is defined as the total For the image frame, after receiving the touch operation, define the distance from the centroid of the image frame before the current image frame to the starting point as the first distance, and initialize the first distance to zero;

計算當前圖像幀質心與起始點之間的第二距離;Calculate the second distance between the centroid of the current image frame and the starting point;

比較第二距離是否大於第一距離;Compare whether the second distance is greater than the first distance;

如果第二距離大於第一距離,將第二距離數值更新為第一距離的數值;If the second distance is greater than the first distance, update the value of the second distance to the value of the first distance;

如果第二距離不大於當前第一距離,比較當前圖像幀數和總圖像幀數,得到比較結果;If the second distance is not greater than the current first distance, compare the current number of image frames with the total number of image frames to obtain the comparison result;

圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離滿足第一預設子條件時,將當前質心更新為起始點;When the comparison result of the number of image frames meets the first preset condition, and the second distance and the current first distance meet the first preset sub-condition, update the current centroid as the starting point;

圖像幀數比較結果滿足第二預設條件時,且第二距離與當前第一距離滿足第二預設子條件,將當前質心更新為起始點;When the comparison result of the number of image frames meets the second preset condition, and the second distance and the current first distance meet the second preset sub-condition, update the current centroid as the starting point;

圖像幀數比較結果滿足第三預設條件時,將當前質心更新為結束點。When the comparison result of the number of image frames meets the third preset condition, the current centroid is updated as the end point.

進一步的,本發明實施例提供的一種操作意圖確定裝置還包括第二質心序列優化單元,用於:Further, the apparatus for determining an operation intention provided by an embodiment of the present invention further includes a second centroid sequence optimization unit, configured to:

將首個質心確定為起始點,預設觸摸操作需採集的總圖像幀數,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第三距離,並將第三距離初始化為零;Determine the first centroid as the starting point, preset the total number of image frames to be collected for touch operations. After receiving the touch operation, define the distance from the centroid of the image frame before the current image frame to the starting point as the first Three distances, and initialize the third distance to zero;

計算當前圖像幀質心與起始點之間的第四距離;Calculate the fourth distance between the centroid of the current image frame and the starting point;

比較第四距離是否大於第三距離;Compare whether the fourth distance is greater than the third distance;

如果第四距離大於第三距離,將第三距離的數值更新為第四距離的數值;If the fourth distance is greater than the third distance, update the value of the third distance to the value of the fourth distance;

如果第四距離不大於第三距離,比較當前圖像幀數和總圖像幀數,得到比較結果;If the fourth distance is not greater than the third distance, compare the current number of image frames with the total number of image frames to obtain the comparison result;

圖像幀數比較結果滿足第一預設條件,且第三距離與第四距離滿足第一預設子條件時,將當前質心更新為起始點;When the comparison result of the number of image frames meets the first preset condition, and the third distance and the fourth distance meet the first preset sub-condition, update the current centroid as the starting point;

圖像幀數比較結果滿足第二預設條件時,且第三距離與第四距離滿足第二預設子條件,將當前質心更新為起始點;When the comparison result of the number of image frames meets the second preset condition, and the third distance and the fourth distance meet the second preset sub-condition, update the current centroid as the starting point;

圖像幀數比較結果滿足第三預設條件時,將當前質心更新為結束點。When the comparison result of the number of image frames meets the third preset condition, the current centroid is updated as the end point.

進一步的,本發明實施例提供的一種操作意圖確定裝置還包括第三質心序列優化單元,用於:Further, the apparatus for determining an operation intention provided by an embodiment of the present invention further includes a third centroid sequence optimization unit, configured to:

選定更新的結束點所在圖像幀序列之前的一個質心,該質心的序號與總圖像幀數的占比符合第四預設條件,且該質心與其前一幀質心的距離滿足第五預設條件,將該質心更新為結束點。Select a centroid before the image frame sequence where the updated end point is located, the ratio of the serial number of the centroid to the total number of image frames meets the fourth preset condition, and the distance between the centroid and the centroid of the previous frame meets The fifth preset condition updates the center of mass to the end point.

在本發明實施例中,第一操作意圖確定單元94包括:In the embodiment of the present invention, the first operation intention determining unit 94 includes:

第一計算單元,用於將終止點的橫座標減去起始點的橫座標,得到橫座標差值;The first calculation unit is used to subtract the abscissa of the starting point from the abscissa of the end point to obtain the abscissa difference;

第二計算單元,用於將終止點的縱座標減去起始點的縱座標,得到縱座標差值;The second calculation unit is used to subtract the ordinate of the starting point from the ordinate of the end point to obtain the ordinate difference;

第一確定單元,用於若橫座標差值的絕對值和縱座標差值的絕對值的和滿足第六預設條件,確定觸摸操作的操作意圖指示單擊操作;The first determining unit is configured to determine that the operation intention of the touch operation indicates a click operation if the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfies the sixth preset condition;

第一判斷單元,用於若橫座標差值的絕對值和縱座標差值的絕對值的和不滿足第六預設條件,判斷橫座標差值的絕對值和縱座標差值的絕對值是否滿足第七預設條件;The first judgment unit is used to judge whether the absolute value of the abscissa difference and the absolute value of the ordinate difference do not meet the sixth preset condition if the sum of the absolute value of the abscissa difference value and the absolute value of the ordinate difference value Meet the seventh preset condition;

第二確定單元,用於如果橫座標差值的絕對值和縱座標差值的絕對值滿足第七預設條件,在橫座標差值小於0時,確定觸摸操作的操作意圖指示上滑操作;在橫座標差值不小於0時,確定觸摸操作的操作意圖指示下滑操作;The second determining unit is configured to determine that if the absolute value of the abscissa difference value and the absolute value of the ordinate difference value meet the seventh preset condition, when the abscissa difference value is less than 0, determine that the operation intention of the touch operation indicates an upward sliding operation; When the abscissa difference is not less than 0, it is determined that the operation intention of the touch operation indicates a sliding operation;

第二判斷單元,用於如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第七預設條件,判斷縱座標差值是否大於0;The second judgment unit is used for judging whether the ordinate difference is greater than 0 if the absolute value of the abscissa difference and the absolute value of the ordinate difference do not satisfy the seventh preset condition;

第三確定單元,用於若縱座標差值大於0,判斷縱座標差值的絕對值和橫座標差值的絕對值是否滿足第八預設條件;如果橫座標差值的絕對值和縱座標差值的絕對值滿足第八預設條件,確定觸摸操作的操作意圖指示左滑操作,如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第八預設條件,確定觸摸操作的操作意圖指示上滑操作;The third determining unit is used to determine whether the absolute value of the ordinate difference and the absolute value of the abscissa satisfy the eighth preset condition if the ordinate difference is greater than 0; if the absolute value of the abscissa difference and the ordinate difference The absolute value of the difference satisfies the eighth preset condition, and the operation intention of the touch operation is determined to indicate a left swipe operation. If the absolute value of the abscissa difference and the absolute value of the ordinate difference do not meet the eighth preset condition, the touch operation is determined The operation intention indicates the sliding operation;

第四確定單元,用於若縱座標差值不大於0,判斷縱座標差值的絕對值和橫座標差值的絕對值是否滿足第九預設條件;如果橫座標差值的絕對值和縱座標差值的絕對值滿足第九預設條件,確定觸摸操作的操作意圖指示右滑操作,如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第九預設條件,確定觸摸操作的操作意圖指示上滑操作。The fourth determining unit is used for judging whether the absolute value of the ordinate difference and the absolute value of the abscissa satisfy the ninth preset condition if the ordinate difference is not greater than 0; If the absolute value of the coordinate difference meets the ninth preset condition, it is determined that the operation intention of the touch operation indicates a right-swiping operation. If the absolute value of the abscissa difference and the absolute value of the ordinate difference do not meet the ninth preset condition, confirm the touch The operation intention of the operation indicates a sliding operation.

進一步的,本發明實施例還提供一種電子設備,該電子設備包括上述實施例提供的操作意圖確定裝置。Further, an embodiment of the present invention also provides an electronic device, which includes the operation intention determining apparatus provided in the foregoing embodiment.

本發明提供一種操作意圖確定方法、裝置及電子設備,應用於設置有觸摸區域的電子設備,接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值;根據像素塊承受的壓力值確定像素塊的權重;利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心;基於各幀觸摸數據的質心確定觸摸操作的操作意圖。The present invention provides a method, a device and an electronic device for determining an operation intention, which are applied to an electronic device provided with a touch area, receive a touch operation on the touch area, and collect the touch of a selected pixel block in the touch area with an image frame as a time unit Data, the touch data includes the pressure value of the pixel block under the touch operation; the weight of the pixel block is determined according to the pressure value of the pixel block; the weight of the pixel block and the position of the pixel block in the touch area are used to calculate the centroid of each frame of touch data; The operation intention of the touch operation is determined based on the centroid of the touch data of each frame.

以上對本發明所提供的一種操作意圖確定方法、裝置及電子設備進行了詳細介紹,本文中應用了具體個例對本發明的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本發明的方法及其核心思想;同時,對於本領域的一般技術人員,依據本發明的思想,在具體實施方式及應用範圍上均會有改變之處,綜上,本說明書內容不應理解為對本發明的限制。The above provides a detailed introduction to the method, device, and electronic device for determining the operation intention provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation of the present invention. The description of the above embodiments is only used to help understand the present invention. The method of the invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the invention, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be understood as Limitations of the invention.

需要說明的是,本說明書中的各個實施例均採用遞進的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似的部分互相參見即可。對於實施例公開的裝置而言,由於其與實施例公開的方法相對應,所以描述的比較簡單,相關之處參見方法部分說明即可。It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts between the various embodiments, refer to each other. can. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part.

還需要說明的是,在本文中,諸如第一和第二等之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者設備所固有的要素,或者是還包括為這些過程、方法、物品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括要素的過程、方法、物品或者設備中還存在另外的相同要素。It should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is any such actual relationship or order between. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device inherent to a series of elements is included, or is also included in these processes , Methods, articles or equipment inherent elements. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article or equipment that includes the element.

對所公開的實施例的上述說明,使本領域專業技術人員能夠實現或使用本發明。對這些實施例的多種修改對本領域的專業技術人員來說將是顯而易見的,本文中所定義的一般原理可以在不脫離本發明的精神或範圍的情況下,在其它實施例中實現。因此,本發明將不會被限制於本文所示的這些實施例,而是要符合與本文所公開的原理和新穎特點相一致的最寬的範圍。The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined in this document can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in this text, but should conform to the widest scope consistent with the principles and novel features disclosed in this text.

S101:接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值 S102:根據像素塊承受的壓力值確定像素塊的權重 S103:利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心 S104:基於各幀觸摸數據的質心確定觸摸操作的操作意圖 S401:接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值 S402:獲取接收觸摸操作採集到的圖像幀數 S403:圖像幀數小於第一預設閾值 S404:保存已採集的各幀觸摸數據 S405:保存並計算已採集的各幀觸摸數據是否超出觸摸邊界 S406:停止採集觸摸數據,並基於已保存的各幀觸摸數據,輸出各幀觸摸數據的質心 S407:圖像幀數是否小於第二預設閾值 S408:確定觸摸操作的操作意圖指示單擊操作 S409:基於各幀觸摸數據的質心確定觸摸操作的操作意圖 S501:按照觸摸數據的採集順序,對接收到的觸摸操作採集到的各幀觸摸數據的質心進行排序,得到質心序列 S502:將質心序列中排序最靠前的第一預設數量個質心剔除,且將質心序列中排序最靠後的第二預設數量個質心剔除,得到第一質心序列 S503:基於第一質心序列確定觸摸操作的操作意圖 S601:將第一質心序列中首個質心確定為起始點,且將第一質心序列中的末尾質心確定為終止點,定義起始點到終止點採集到的圖像幀數為總圖像幀,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第一距離,並將第一距離初始化為零 S602:計算當前圖像幀質心與起始點之間的第二距離 S603:比較第二距離是否大於第一距離 S604:將第二距離數值更新為第一距離的數值 S605:比較當前圖像幀數和總圖像幀數,得到比較結果 S606:圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離滿足第一預設子條件時,將當前圖像幀的質心更新為起始點 S607:圖像幀數比較結果滿足第二預設條件時,且第二距離與當前第一距離滿足第二預設子條件,將當前質心更新為起始點 S608:圖像幀數比較結果滿足第三預設條件時,將當前質心更新為結束點 S701:接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,將採集到的首個圖像幀的質心確定為起始點,預設觸摸操作需採集的總圖像幀數,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第三距離,並將第三距離初始化為零 S702:計算當前圖像幀質心與起始點之間的第四距離 S703:比較第四距離是否大於第三距離 S704:將第三距離的數值更新為第四距離的數值 S705:比較當前圖像幀數和總圖像幀數,得到比較結果 S706:圖像幀數比較結果滿足第一預設條件,且第三距離與第四距離滿足第一預設子條件時,將當前質心更新為起始點 S707:圖像幀數比較結果滿足第二預設條件時,且第三距離與第四距離滿足第二預設子條件,將當前質心更新為起始點 S708:圖像幀數比較結果滿足第三預設條件時,將當前圖像幀的質心更新為結束點 S801:將終止點的橫座標減去起始點的橫座標,得到橫座標差值 S802:將終止點的縱座標減去起始點的縱座標,得到縱座標差值 S803:橫座標差值的絕對值和縱座標差值的絕對值的和滿足第六預設條件 S804:確定觸摸操作的操作意圖指示單擊操作 S805:判斷橫座標差值的絕對值和縱座標差值的絕對值是否滿足第七預設條件 S806:判斷橫座標差值是否小於0 S807:確定觸摸操作的操作意圖指示上滑操作 S808:確定觸摸操作的操作意圖指示下滑操作 S809:判斷縱座標差值是否大於0 S810:縱座標差值的絕對值和橫座標差值的絕對值滿足第八預設條件 S811:確定觸摸操作的操作意圖指示左滑操作 S812:確定觸摸操作的操作意圖指示上滑操作 S813:縱座標差值的絕對值和橫座標差值的絕對值滿足第九預設條件 S814:確定觸摸操作的操作意圖指示右滑操作 S815:確定觸摸操作的操作意圖指示上滑操作 21:子塊 22:像素塊 91:觸摸操作接收單元 92:權重確定單元 93:質心計算單元 94:第一操作意圖確定單元 S101: Receive a touch operation on a touch area, and collect touch data of a selected pixel block in the touch area by using an image frame as a time unit, and the touch data includes the pressure value of the pixel block subjected to the touch operation S102: Determine the weight of the pixel block according to the pressure value of the pixel block S103: Calculate the centroid of each frame of touch data by using the weight of the pixel block and the position of the pixel block in the touch area S104: Determine the operation intention of the touch operation based on the centroid of the touch data of each frame S401: Receive a touch operation on a touch area, and collect touch data of a selected pixel block in the touch area by using an image frame as a time unit, and the touch data includes the pressure value of the pixel block subjected to the touch operation S402: Obtain the number of image frames collected by receiving touch operations S403: The number of image frames is less than the first preset threshold S404: Save the collected touch data of each frame S405: Save and calculate whether the collected touch data of each frame exceeds the touch boundary S406: Stop collecting touch data, and output the centroid of each frame of touch data based on the saved touch data of each frame S407: Whether the number of image frames is less than the second preset threshold S408: Determine the operation intention of the touch operation and indicate the click operation S409: Determine the operation intention of the touch operation based on the centroid of the touch data of each frame S501: Sort the centroid of each frame of touch data collected by the received touch operation according to the order of the touch data collection, to obtain a centroid sequence S502: Eliminate the first preset number of centroids that are ranked highest in the centroid sequence, and eliminate the second preset number of centroids that are ranked lowest in the centroid sequence to obtain the first centroid sequence S503: Determine the operation intention of the touch operation based on the first centroid sequence S601: Determine the first centroid in the first centroid sequence as the start point, and determine the end centroid in the first centroid sequence as the end point, and define the number of image frames collected from the start point to the end point Is the total image frame. After receiving the touch operation, define the distance from the centroid of the image frame before the current image frame to the starting point as the first distance, and initialize the first distance to zero S602: Calculate the second distance between the centroid of the current image frame and the starting point S603: Compare whether the second distance is greater than the first distance S604: Update the second distance value to the first distance value S605: Compare the current number of image frames with the total number of image frames to obtain a comparison result S606: When the comparison result of the number of image frames meets the first preset condition, and the second distance and the current first distance meet the first preset sub-condition, update the centroid of the current image frame as the starting point S607: When the comparison result of the number of image frames meets the second preset condition, and the second distance and the current first distance meet the second preset sub-condition, update the current centroid as the starting point S608: When the comparison result of the number of image frames meets the third preset condition, update the current centroid to the end point S701: Receive a touch operation on the touch area, collect the touch data of the selected pixel block in the touch area using the image frame as a time unit, determine the centroid of the first image frame collected as the starting point, and preset The total number of image frames to be collected by the touch operation. After receiving the touch operation, define the distance from the centroid of the image frame before the current image frame to the starting point as the third distance, and initialize the third distance to zero S702: Calculate the fourth distance between the centroid of the current image frame and the starting point S703: Compare whether the fourth distance is greater than the third distance S704: Update the value of the third distance to the value of the fourth distance S705: Compare the current number of image frames with the total number of image frames to obtain a comparison result S706: When the comparison result of the number of image frames meets the first preset condition, and the third distance and the fourth distance meet the first preset sub-condition, update the current centroid as the starting point S707: When the comparison result of the number of image frames meets the second preset condition, and the third distance and the fourth distance meet the second preset sub-condition, update the current centroid as the starting point S708: When the comparison result of the number of image frames meets the third preset condition, update the centroid of the current image frame to the end point S801: Subtract the abscissa of the starting point from the abscissa of the end point to obtain the abscissa difference S802: Subtract the ordinate of the starting point from the ordinate of the end point to obtain the ordinate difference S803: The sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfies the sixth preset condition S804: Determine the operation intention of the touch operation and indicate the click operation S805: Determine whether the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfy the seventh preset condition S806: Determine whether the abscissa difference is less than 0 S807: Determine the operation intention of the touch operation and indicate the sliding operation S808: Determine the operation intention of the touch operation and indicate the slide operation S809: Determine whether the ordinate difference is greater than 0 S810: The absolute value of the ordinate difference and the absolute value of the abscissa satisfy the eighth preset condition S811: Determine the operation intention of the touch operation and indicate the left swipe operation S812: Determine the operation intention of the touch operation and indicate the sliding operation S813: The absolute value of the ordinate difference and the absolute value of the abscissa satisfy the ninth preset condition S814: Determine the operation intention of the touch operation and indicate the right swipe operation S815: Determine the operation intention of the touch operation and indicate the sliding operation 21: sub-block 22: pixel block 91: Touch operation receiving unit 92: Weight determination unit 93: Centroid calculation unit 94: The first operation intention determination unit

圖1為本發明的一個實施例提供的一種操作意圖確定方法流程圖; 圖2為本發明的一個實施例提供的一種觸摸區域中像素塊示意圖; 圖3(a)為本發明的一個實施例提供的一種像素塊結構示意圖; 圖3(b)為本發明的一個實施例提供的另一種像素塊結構示意圖; 圖4為本發明的一個實施例提供的另一種操作意圖確定方法流程圖; 圖5為本發明的一個實施例提供的一種基於各幀觸摸數據的質心確定觸摸操作的操作意圖方法流程圖; 圖6為本發明的一個實施例提供的一種質心移動軌跡優化方法流程圖; 圖7為本發明的一個實施例提供的另一種質心移動軌跡優化方法流程圖; 圖8為本發明的一個實施例提供的一種基於各幀觸摸數據的質心確定觸摸操作的操作意圖的方法流程圖;以及 圖9為本發明的一個實施例提供的一種操作意圖確定裝置的結構示意圖。FIG. 1 is a flowchart of a method for determining an operation intention provided by an embodiment of the present invention; 2 is a schematic diagram of a pixel block in a touch area provided by an embodiment of the present invention; Figure 3 (a) is a schematic diagram of a pixel block structure provided by an embodiment of the present invention; Fig. 3(b) is a schematic diagram of another pixel block structure provided by an embodiment of the present invention; 4 is a flowchart of another method for determining an operation intention provided by an embodiment of the present invention; 5 is a flowchart of a method for determining the operation intention of a touch operation based on the centroid of each frame of touch data provided by an embodiment of the present invention; FIG. 6 is a flowchart of a method for optimizing the movement trajectory of the center of mass according to an embodiment of the present invention; FIG. 7 is a flowchart of another method for optimizing the movement trajectory of the center of mass according to an embodiment of the present invention; FIG. 8 is a flowchart of a method for determining the operation intention of a touch operation based on the centroid of each frame of touch data according to an embodiment of the present invention; and Fig. 9 is a schematic structural diagram of a device for determining an operation intention provided by an embodiment of the present invention.

S101:接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值 S101: Receive a touch operation on a touch area, and collect touch data of a selected pixel block in the touch area by using an image frame as a time unit, and the touch data includes the pressure value of the pixel block subjected to the touch operation

S102:根據像素塊承受的壓力值確定像素塊的權重 S102: Determine the weight of the pixel block according to the pressure value of the pixel block

S103:利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心 S103: Calculate the centroid of each frame of touch data by using the weight of the pixel block and the position of the pixel block in the touch area

S104:基於各幀觸摸數據的質心確定觸摸操作的操作意圖 S104: Determine the operation intention of the touch operation based on the centroid of the touch data of each frame

Claims (13)

一種操作意圖確定方法,應用於設置有一觸摸區域的電子設備,包括: 接收對該觸摸區域的一觸摸操作,以圖像幀為時間單位採集該觸摸區域中被選定的一像素塊的一觸摸數據,該觸摸數據包括該像素塊承受該觸摸操作的壓力值; 根據該像素塊承受的壓力值確定該像素塊的權重; 利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心;及 基於各幀該觸摸數據的質心確定該觸摸操作的操作意圖。A method for determining an operation intention, applied to an electronic device provided with a touch area, includes: Receiving a touch operation on the touch area, and collecting touch data of a selected pixel block in the touch area by using the image frame as a time unit, the touch data including the pressure value of the pixel block under the touch operation; Determine the weight of the pixel block according to the pressure value of the pixel block; Using the weight of the pixel block and the position of the pixel block in the touch area to calculate the centroid of the touch data in each frame; and The operation intention of the touch operation is determined based on the centroid of the touch data in each frame. 如請求項1所述之操作意圖確定方法,其中,根據該像素塊承受的壓力值確定該像素塊的權重,包括: 查詢預先設置的權重與壓力範圍的對應關係,將該像素塊承受的壓力值所屬的壓力範圍對應的權重,確定為該像素塊的權重。The method for determining the operation intention of claim 1, wherein determining the weight of the pixel block according to the pressure value of the pixel block includes: The corresponding relationship between the preset weight and the pressure range is queried, and the weight corresponding to the pressure range to which the pressure value of the pixel block belongs is determined as the weight of the pixel block. 如請求項2所述之操作意圖確定方法,其中,該像素塊包括多個像素子塊,採集該像素塊承受的壓力值包括採集該像素塊中每個該像素子塊承受的壓力值, 根據該像素塊承受的壓力值確定該像素塊的權重,包括: 根據該像素塊中每個該像素子塊承受的壓力值確定該像素子塊的權重。The method for determining the operation intention according to claim 2, wherein the pixel block includes a plurality of pixel sub-blocks, and collecting the pressure value of the pixel block includes collecting the pressure value of each pixel sub-block in the pixel block, Determining the weight of the pixel block according to the pressure value of the pixel block includes: The weight of the pixel sub-block is determined according to the pressure value of each pixel sub-block in the pixel block. 如請求項3所述之操作意圖確定方法,其中,利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心,包括: 獲取該觸摸區域中被選定的每個該像素塊的每個該像素子塊在該觸摸區域中的位置,該像素元子塊在該觸摸區域中的位置包括該像素子塊在該觸摸區域中的橫座標和縱座標,採用一質心公式分別計算每幀該觸摸數據的質心;及 該質心公式為:
Figure 03_image019
其中,
Figure 03_image003
為當前幀觸摸數據中第
Figure 03_image005
個該像素子塊的權重,
Figure 03_image007
為當前幀觸摸數據中第
Figure 03_image005
個該像素子塊的橫座標、
Figure 03_image009
为當前幀觸摸數據中第
Figure 03_image005
個該像素子塊的縱座標,
Figure 03_image011
為當前幀觸摸數據的質心橫座標,
Figure 03_image013
為當前幀觸摸數據的質心縱座標。
The method for determining the operation intention according to claim 3, wherein calculating the centroid of each frame of the touch data by using the weight of the pixel block and the position of the pixel block in the touch area includes: obtaining the selected touch area The position of each pixel sub-block of each pixel block in the touch area, the position of the pixel element sub-block in the touch area includes the abscissa and ordinate of the pixel sub-block in the touch area, A centroid formula is used to calculate the centroid of the touch data in each frame; and the centroid formula is:
Figure 03_image019
among them,
Figure 03_image003
Is the first touch data in the current frame
Figure 03_image005
The weight of the pixel sub-block,
Figure 03_image007
Is the first touch data in the current frame
Figure 03_image005
The abscissa of the pixel sub-block,
Figure 03_image009
Is the first touch data in the current frame
Figure 03_image005
The ordinate of the pixel sub-block,
Figure 03_image011
Is the centroid and abscissa of the touch data of the current frame,
Figure 03_image013
Is the centroid vertical coordinate of the touch data of the current frame.
如請求項1所述之操作意圖確定方法,其中,還包括: 獲取接收該觸摸操作採集到的一圖像幀數; 若該圖像幀數小於一第一預設閾值時,保存已採集的各幀觸摸數據; 若該圖像幀數不小於該第一預設閾值,保存並計算已採集的各幀觸摸數據,並基於當前幀觸摸數據的質心判斷當前觸摸操作是否超出一觸摸邊界;及 若該觸摸操作超出該觸摸邊界,停止採集該觸摸數據,輸出各幀觸摸數據的質心。The method for determining the operation intention according to claim 1, which further includes: Acquiring an image frame number collected by receiving the touch operation; If the number of image frames is less than a first preset threshold, save the collected touch data of each frame; If the number of image frames is not less than the first preset threshold, save and calculate the collected touch data of each frame, and determine whether the current touch operation exceeds a touch boundary based on the centroid of the touch data of the current frame; and If the touch operation exceeds the touch boundary, stop collecting the touch data, and output the centroid of each frame of touch data. 如請求項5所述之操作意圖確定方法,其中,基於各幀觸摸數據的質心確定該觸摸操作的操作意圖之前,該方法還包括: 判斷該圖像幀數是否小於一第二預設閾值;及 若該圖像幀數小於該第二預設閾值,確定該觸摸操作的操作意圖指示單擊操作,該第二預設閾值小於該第一預設閾值。The method for determining the operation intention according to claim 5, wherein, before the operation intention of the touch operation is determined based on the centroid of each frame of touch data, the method further includes: Determine whether the number of image frames is less than a second preset threshold; and If the number of image frames is less than the second preset threshold, it is determined that the operation intention of the touch operation indicates a click operation, and the second preset threshold is less than the first preset threshold. 如請求項1所述之操作意圖確定方法,其中,基於各幀觸摸數據的質心確定該觸摸操作的操作意圖,包括: 按照該觸摸數據的採集順序,對接收到的該觸摸操作採集到的各幀觸摸數據的質心進行排序,得到一質心序列; 將該質心序列中排序最靠前的一第一預設數量個質心剔除,且將該質心序列中排序最靠後的一第二預設數量個質心剔除,得到一第一質心序列;及 基於該第一質心序列確定該觸摸操作的操作意圖。The method for determining the operation intention of claim 1, wherein the determination of the operation intention of the touch operation based on the centroid of each frame of touch data includes: According to the collection sequence of the touch data, sort the centroids of each frame of touch data collected by the touch operation to obtain a centroid sequence; A first preset number of centroids that are ranked first in the centroid sequence are eliminated, and a second preset number of centroids that are ranked lowest in the centroid sequence are eliminated to obtain a first mass. Heart sequence; and The operation intention of the touch operation is determined based on the first centroid sequence. 如請求項7所述之操作意圖確定方法,其中,還包括: 將該第一質心序列中首個質心確定為一起始點,且將該第一質心序列中的末尾質心確定為一終止點,定義該起始點到該終止點採集到的圖像幀數為總圖像幀,接收該觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為一第一距離,並將該第一距離初始化為零; 計算當前圖像幀質心與該起始點之間的一第二距離; 比較該第二距離是否大於該第一距離; 如果該第二距離大於該第一距離,將該第二距離數值更新為該第一距離的數值; 如果該第二距離不大於當前該第一距離,比較當前圖像幀數和總圖像幀數,得到比較結果; 圖像幀數比較結果滿足一第一預設條件,且該第二距離與當前該第一距離滿足一第一預設子條件時,將當前質心更新為該起始點; 圖像幀數比較結果滿足一第二預設條件時,且該第二距離與當前該第一距離滿足一第二預設子條件,將當前質心更新為該起始點;及 圖像幀數比較結果滿足一第三預設條件時,將當前質心更新為該結束點。The method for determining the operation intention according to claim 7, which further includes: The first centroid in the first centroid sequence is determined as a starting point, and the end centroid in the first centroid sequence is determined as an ending point, and the graphs collected from the starting point to the ending point are defined The number of image frames is the total image frame. After receiving the touch operation, define the distance from the centroid of the image frame before the current image frame to the starting point as a first distance, and initialize the first distance to zero; Calculating a second distance between the centroid of the current image frame and the starting point; Compare whether the second distance is greater than the first distance; If the second distance is greater than the first distance, update the value of the second distance to the value of the first distance; If the second distance is not greater than the current first distance, compare the current number of image frames with the total number of image frames to obtain a comparison result; When the comparison result of the number of image frames meets a first preset condition, and the second distance and the current first distance meet a first preset sub-condition, update the current centroid to the starting point; When the comparison result of the number of image frames satisfies a second preset condition, and the second distance and the current first distance satisfy a second preset sub-condition, update the current centroid as the starting point; and When the comparison result of the number of image frames meets a third preset condition, the current centroid is updated to the end point. 如請求項1所述之操作意圖確定方法,其中,還包括: 將首個質心確定為一起始點,預設該觸摸操作需採集的總圖像幀數,接收該觸摸操作後,定義當前圖像幀之前一圖像幀的質心到該起始點的距離為一第三距離,並將該第三距離初始化為零; 計算當前圖像幀質心與該起始點之間的一第四距離; 比較該第四距離是否大於該第三距離; 如果該第四距離大於該第三距離,將該第三距離的數值更新為該第四距離的數值; 如果該第四距離不大於該第三距離,比較當前圖像幀數和總圖像幀數,得到比較結果; 圖像幀數比較結果滿足一第一預設條件,且該第三距離與該第四距離滿足一第一預設子條件時,將當前質心更新為該起始點; 圖像幀數比較結果滿足一第二預設條件時,且該第三距離與該第四距離滿足一第二預設子條件,將當前質心更新為該起始點;及 圖像幀數比較結果滿足一第三預設條件時,將當前質心更新為該結束點。The method for determining the operation intention according to claim 1, which further includes: Determine the first centroid as a starting point, preset the total number of image frames that need to be collected by the touch operation, and after receiving the touch operation, define the centroid of the image frame before the current image frame to the starting point The distance is a third distance, and the third distance is initialized to zero; Calculating a fourth distance between the centroid of the current image frame and the starting point; Compare whether the fourth distance is greater than the third distance; If the fourth distance is greater than the third distance, update the value of the third distance to the value of the fourth distance; If the fourth distance is not greater than the third distance, compare the current number of image frames with the total number of image frames to obtain a comparison result; When the comparison result of the number of image frames meets a first preset condition, and the third distance and the fourth distance meet a first preset sub-condition, update the current centroid to the starting point; When the comparison result of the number of image frames meets a second preset condition, and the third distance and the fourth distance meet a second preset sub-condition, update the current centroid to the starting point; and When the comparison result of the number of image frames meets a third preset condition, the current centroid is updated to the end point. 如請求項8或9所述之操作意圖確定方法,其中,還包括: 選定更新的該結束點所在圖像幀序列之前的一個質心,質心的序號與總圖像幀數的占比符合一第四預設條件,且質心與其前一幀質心的距離滿足一第五預設條件,將質心更新為該結束點。The method for determining the operation intention according to claim 8 or 9, which further includes: Select a centroid before the image frame sequence where the end point is updated, the ratio of the serial number of the centroid to the total number of image frames meets a fourth preset condition, and the distance between the centroid and the centroid of the previous frame meets A fifth preset condition updates the center of mass to the end point. 如請求項10所述之操作意圖確定方法,其中,基於該觸摸述距的質心確定該觸摸操作的操作意圖,包括: 將該終止點的橫座標減去該起始點的橫座標,得到一橫座標差值; 將該終止點的縱座標減去該起始點的縱座標,得到一縱座標差值; 若該橫座標差值的絕對值和該縱座標差值的絕對值的和滿足一第六預設條件,確定該觸摸操作的操作意圖指示單擊操作; 若該橫座標差值的絕對值和該縱座標差值的絕對值的和不滿足該第六預設條件,判斷該橫座標差值的絕對值和該縱座標差值的絕對值是否滿足一第七預設條件; 如果該橫座標差值的絕對值和該縱座標差值的絕對值滿足該第七預設條件,在該橫座標差值小於0時,確定該觸摸操作的操作意圖指示上滑操作;在該橫座標差值不小於0時,確定該觸摸操作的操作意圖指示下滑操作; 如果該橫座標差值的絕對值和該縱座標差值的絕對值不滿足該第七預設條件,判斷該縱座標差值是否大於0; 若該縱座標差值大於0,判斷該縱座標差值的絕對值和該橫座標差值的絕對值是否滿足一第八預設條件;如果該橫座標差值的絕對值和該縱座標差值的絕對值滿足該第八預設條件,確定該觸摸操作的操作意圖指示左滑操作,如果該橫座標差值的絕對值和該縱座標差值的絕對值不滿足該第八預設條件,確定該觸摸操作的操作意圖指示上滑操作;及 若該縱座標差值不大於0,判斷該縱座標差值的絕對值和該橫座標差值的絕對值是否滿足一第九預設條件;如果該橫座標差值的絕對值和該縱座標差值的絕對值滿足該第九預設條件,確定該觸摸操作的操作意圖指示右滑操作,如果該橫座標差值的絕對值和該縱座標差值的絕對值不滿足該第九預設條件,確定該觸摸操作的操作意圖指示上滑操作。The method for determining the operation intention of claim 10, wherein determining the operation intention of the touch operation based on the centroid of the touch range includes: Subtract the abscissa of the starting point from the abscissa of the end point to obtain an abscissa difference; Subtract the ordinate of the starting point from the ordinate of the end point to obtain a ordinate difference; If the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfies a sixth preset condition, it is determined that the operation intention of the touch operation indicates a click operation; If the sum of the absolute value of the abscissa difference and the absolute value of the ordinate difference does not satisfy the sixth preset condition, it is determined whether the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfy one The seventh precondition; If the absolute value of the abscissa difference and the absolute value of the ordinate difference satisfy the seventh preset condition, when the abscissa difference is less than 0, it is determined that the operation intention of the touch operation indicates a sliding operation; When the abscissa difference is not less than 0, it is determined that the operation intention of the touch operation indicates a sliding operation; If the absolute value of the abscissa difference and the absolute value of the ordinate difference do not satisfy the seventh preset condition, determine whether the ordinate difference is greater than 0; If the ordinate difference value is greater than 0, judge whether the absolute value of the ordinate difference value and the absolute value of the abscissa difference satisfy an eighth preset condition; if the absolute value of the abscissa difference value and the ordinate difference value If the absolute value of the value satisfies the eighth preset condition, it is determined that the operation intention of the touch operation indicates a left swipe operation, if the absolute value of the abscissa difference value and the absolute value of the ordinate difference value do not satisfy the eighth preset condition To determine the operation intention of the touch operation to indicate an upward sliding operation; and If the ordinate difference value is not greater than 0, judge whether the absolute value of the ordinate difference value and the absolute value of the abscissa difference satisfy a ninth preset condition; if the absolute value of the abscissa difference value and the ordinate difference value The absolute value of the difference satisfies the ninth preset condition, and it is determined that the operation intention of the touch operation indicates a right-swiping operation, if the absolute value of the abscissa difference and the absolute value of the ordinate difference do not satisfy the ninth preset Condition, it is determined that the operation intention of the touch operation indicates an upward sliding operation. 一種操作意圖確定裝置,應用於設置有一觸摸區域的一電子設備,包括: 一觸摸操作接收單元,用於接收對該觸摸區域的一觸摸操作,以圖像幀為時間單位採集該觸摸區域中被選定的一像素塊的一觸摸數據,該觸摸數據包括該像素塊承受該觸摸操作的壓力值; 一權重確定單元,用於根據該像素塊承受的壓力值確定該像素塊的權重; 一質心計算單元,用於利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心;及 一第一操作意圖確定單元,用於基於各幀該觸摸數據的質心確定該觸摸操作的操作意圖。An operation intention determination device, applied to an electronic device provided with a touch area, includes: A touch operation receiving unit is configured to receive a touch operation on the touch area, and collect touch data of a selected pixel block in the touch area by using the image frame as a time unit. The touch data includes the pixel block receiving the The pressure value of touch operation; A weight determination unit for determining the weight of the pixel block according to the pressure value of the pixel block; A centroid calculation unit for calculating the centroid of the touch data in each frame by using the weight of the pixel block and the position of the pixel block in the touch area; and A first operation intention determination unit, configured to determine the operation intention of the touch operation based on the centroid of the touch data in each frame. 一種電子設備,包含: 一觸摸區域; 一觸摸操作接收單元,用於接收對該觸摸區域的一觸摸操作,以圖像幀為時間單位採集該觸摸區域中被選定的一像素塊的一觸摸數據,該觸摸數據包括該像素塊承受該觸摸操作的壓力值; 一權重確定單元,用於根據該像素塊承受的壓力值確定該像素塊的權重; 一質心計算單元,用於利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心;及 一第一操作意圖確定單元,用於基於各幀該觸摸數據的質心確定該觸摸操作的操作意圖。An electronic device that contains: A touch area; A touch operation receiving unit is configured to receive a touch operation on the touch area, and collect touch data of a selected pixel block in the touch area by using the image frame as a time unit. The touch data includes the pixel block receiving the The pressure value of touch operation; A weight determination unit for determining the weight of the pixel block according to the pressure value of the pixel block; A centroid calculation unit for calculating the centroid of the touch data in each frame by using the weight of the pixel block and the position of the pixel block in the touch area; and A first operation intention determination unit, configured to determine the operation intention of the touch operation based on the centroid of the touch data in each frame.
TW108140335A 2019-01-11 2019-11-06 Operation intention determining method, apparatus, and electronic device thereof TWI796530B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910026538.2 2019-01-11
CN201910026538.2A CN111435283A (en) 2019-01-11 2019-01-11 Operation intention determining method and device and electronic equipment

Publications (2)

Publication Number Publication Date
TW202026840A true TW202026840A (en) 2020-07-16
TWI796530B TWI796530B (en) 2023-03-21

Family

ID=71580352

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108140335A TWI796530B (en) 2019-01-11 2019-11-06 Operation intention determining method, apparatus, and electronic device thereof

Country Status (2)

Country Link
CN (1) CN111435283A (en)
TW (1) TWI796530B (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101201979B1 (en) * 2010-10-21 2012-11-15 주식회사 애트랩 Input device and touch position detecting method thereof
US20120299837A1 (en) * 2011-05-24 2012-11-29 Microsoft Corporation Identifying contacts and contact attributes in touch sensor data using spatial and temporal features
US8674962B2 (en) * 2011-11-30 2014-03-18 Silicon Integrated Systems Corp. Touch coordinate calculation method for touch panel
US9886116B2 (en) * 2012-07-26 2018-02-06 Apple Inc. Gesture and touch input detection through force sensing
CN105261337B (en) * 2014-06-27 2018-10-09 敦泰电子有限公司 Touch control display apparatus and its driving method and driving circuit
JP6649864B2 (en) * 2015-10-23 2020-02-19 株式会社モルフォ Image processing apparatus, electronic device, image processing method, and program
TWI607361B (en) * 2015-12-17 2017-12-01 敦泰電子有限公司 Pressure detection method for in-cell touch display and mobile device using the same
CN106095307B (en) * 2016-06-01 2019-05-31 努比亚技术有限公司 Rotate gesture identifying device and method
CN106502460B (en) * 2016-10-31 2019-04-09 北京交通大学 A kind of recognition methods of capacitance touching control track noise type

Also Published As

Publication number Publication date
TWI796530B (en) 2023-03-21
CN111435283A (en) 2020-07-21

Similar Documents

Publication Publication Date Title
CN102402369B (en) Electronic equipment and its operation indicating mark moving method
JP2019512795A5 (en)
CN107132986B (en) Method and device for intelligently adjusting touch response area through virtual keys
JP5556270B2 (en) Candidate display device and candidate display method
CN105409306A (en) Method and apparatus for predicting location of mobile terminal
CN105550336B (en) The method for digging and device of single entities example
CN104504583B (en) The evaluation method of grader
CN106293328A (en) Icon display method and device
JP2010055621A (en) Search method and search system
TWI528271B (en) Method, apparatus and computer program product for polygon gesture detection and interaction
JP5862245B2 (en) Arrangement apparatus, arrangement program, and arrangement method
CN104571882A (en) User operating mode judging method and device based on terminal and terminal
CN110222312A (en) Processing method, device and the server of user's evaluation data
CN110968802B (en) Analysis method and analysis device for user characteristics and readable storage medium
CN105630301A (en) Menu selection system and method as well as electronic device
WO2016173223A1 (en) Method and device for determining user experience and for assisting in determining user experience
CN103164425B (en) Method and device for pushing application program in application program platform system
CN102890690B (en) Target information search method and device
CN107037951B (en) Automatic operation mode identification method and terminal
JP6276396B2 (en) Method and system for obtaining an implicit relationship of knowledge points
TW202026840A (en) Operation intention determining method, apparatus, and electronic device thereof
CN104112003A (en) Method and system for detecting performance of game terminals
CN109376362A (en) A kind of the determination method and relevant device of corrected text
CN114064168A (en) Interface optimization method and medical equipment
Weir et al. Sparse selection of training data for touch correction systems