TWI796530B - 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
TWI796530B
TWI796530B TW108140335A TW108140335A TWI796530B TW I796530 B TWI796530 B TW I796530B TW 108140335 A TW108140335 A TW 108140335A TW 108140335 A TW108140335 A TW 108140335A TW I796530 B TWI796530 B TW I796530B
Authority
TW
Taiwan
Prior art keywords
touch
centroid
distance
pixel block
image frame
Prior art date
Application number
TW108140335A
Other languages
Chinese (zh)
Other versions
TW202026840A (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

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

操作意圖確定方法、裝置及電子設備Operation intention determination method, device and electronic equipment

本發明涉及電腦技術領域,更具體地說,涉及一種操作意圖確定方法、裝置及電子設備。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 science and technology, touch-type electronic devices are more and more widely used, 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' awareness of electronic devices. Device stickiness.

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

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

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

技術方案如下:The technical solution is as follows:

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

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

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

利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心;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 operation intention of the touch operation is determined based on the centroid of each frame of touch data.

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

查詢預先設置的權重與壓力範圍的對應關係,將像素塊承受的壓力值所屬的壓力範圍對應的權重,確定為像素塊的權重。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 of the pixel block belongs as the weight of the pixel block.

優選的,像素塊包括多個像素子塊,採集像素塊承受的壓力值包括採集像素塊中每個像素子塊承受的壓力值。Preferably, the pixel block includes a plurality of pixel sub-blocks, and collecting the pressure value borne by the pixel block includes collecting the pressure value borne by 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, 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, including:

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

所述質心公式為:

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
為當前幀觸摸數據的質心縱座標。in,
Figure 02_image003
For the current frame touch data
Figure 02_image005
The weight of pixel sub-blocks,
Figure 02_image007
For the current frame touch data
Figure 02_image005
The abscissa of a pixel sub-block,
Figure 02_image009
For the current frame touch data
Figure 02_image005
The vertical coordinates of pixel sub-blocks,
Figure 02_image011
is the abscissa coordinate of the centroid of the touch data in the current frame,
Figure 02_image013
The ordinate of the centroid of the touch data in the current frame.

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

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

若圖像幀數小於第一預設閾值時,保存已採集的各幀觸摸數據;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 each frame of touch data that has been collected, 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.

優選的,在基於各幀觸摸數據的質心確定觸摸操作的操作意圖之前,該方法還包括: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 a second preset threshold;

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

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

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

將質心序列中排序最靠前的第一預設數量個質心剔除,且將質心序列中排序最靠後的第二預設數量個質心剔除,得到第一質心序列;Removing the first preset number of centroids that are ranked the highest in the centroid sequence, and removing the second preset number of centroids that are ranked the last 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:

將第一質心序列中首個質心確定為起始點,且將第一質心序列中的末尾質心確定為終止點,定義起始點到終止點採集到的圖像幀數為總圖像幀,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第一距離,並將第一距離初始化為零;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 as the total For an image frame, after receiving a touch operation, define the distance from the centroid of an 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 image frame number with the total image frame number to obtain a comparison result;

圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離滿足第一預設子條件時,將當前質心更新為起始點;When the image frame number comparison result 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 image frame number comparison result 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 image frame number comparison result satisfies 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, 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 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 image frame number with the total image frame number to obtain a comparison result;

圖像幀數比較結果滿足第一預設條件,且第三距離與第四距離滿足第一預設子條件時,將當前質心更新為起始點;When the image frame number comparison result 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 image frame number comparison result 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 image frame number comparison result satisfies 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 satisfies the fifth Preset condition, update centroid to 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 difference in abscissa;

將終止點的縱座標減去起始點的縱座標,得到縱座標差值;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 value and the absolute value of the ordinate difference value 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 meet the sixth preset condition, determine whether the absolute value of the abscissa difference and the absolute value of the ordinate difference meet 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, it is determined that the operation intention of the touch operation indicates a sliding operation; when the abscissa difference is not less than When 0, it is determined that the operation intention of the touch operation indicates the slide operation;

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

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

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

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

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

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

質心計算單元,用於利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心;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 comprising a touch area, and

觸摸操作接收單元,用於接收對該觸摸區域的一觸摸操作,以圖像幀為時間單位採集該觸摸區域中被選定的一像素塊的一觸摸數據,該觸摸數據包括該像素塊承受該觸摸操作的壓力值;The touch operation receiving unit is configured to receive a touch operation on the touch area, and collect a touch data of a selected pixel block in the touch area with an image frame as a time unit, and the touch data includes that the pixel block bears 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;

質心計算單元,用於利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心;及a centroid calculation unit, configured to calculate 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; 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, device, and electronic equipment for determining an operation intention, which are applied to electronic equipment provided with a touch area. The method collects selected pixels in the touch area with 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 The centroid mode of the data; realizes the purpose of determining the operation intention of the touch operation based on the centroid of each frame of touch data.

下面將結合本發明實施例中的圖式,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to 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 realizing the human-computer interaction, usually the user performs a touch operation on the touch area of the electronic device, so as 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 manner of determining the operation intention as shown in FIG. 1 below. The touch area can be a HOME key, a touch display screen, or 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 the touch area, and collect touch data of a selected pixel block in the touch area by taking an image frame as a time unit, and the touch data includes the pressure value of the pixel block subjected to 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 a selected sub-block among the several sub-blocks 21 may be called a pixel block 22 . Upon receiving a touch operation on the touch area, the touch data of the pixel block 22 in the touch area may be collected in image frames as a time unit, and the touch data of the pixel block 22 includes the pressure value of the pixel block 22 subjected to 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 subjected to the touch operation at the moment 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 the touch operation that each pixel block 22 in the touch area is subjected to when the image frame is captured.

S102、根據像素塊承受的壓力值確定像素塊的權重;S102. Determine the weight of the pixel block according to the pressure value of 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 of the pixel block 22 .

在本發明實施例中,可以預先設置權重與壓力範圍的對應關係,進而確定像素塊22承受的壓力值所屬的壓力範圍,並將該確定的壓力範圍對應的權重作為該像素塊22的權重。In the embodiment of the present invention, the corresponding relationship between the weight and the pressure range can be set in advance, and then the pressure range to which the pressure value of the pixel block 22 belongs is determined, 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 borne by the pixel block 22 includes: for each pixel sub-block in the pixel block 22 , determining the weight of the pixel sub-block according to the pressure value borne by the pixel sub-block.

在根據像素子塊承受的壓力值確定像素子塊的權重的方式可以為:預先設置權重和壓力範圍的對應關係,進而確定像素子塊承受的壓力值所屬的壓力範圍,並將所確定的壓力範圍對應的權重確定為該像素子塊的權重。The method of determining the weight of the pixel sub-block according to the pressure value borne by 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 borne by the pixel sub-block belongs, and 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, the touch area with a size of 96*96 pixels can be divided into 24*12 sub-blocks 21; then select 4*4=16 sub-blocks 21 from the 24*12 sub-blocks 21, and each selected sub-block 21 Defined as one pixel block 22 , there are 16 pixel blocks 22 . Wherein, the manner of selecting 4*4 sub-blocks 21 from 24*12 sub-blocks 21 can be referred to FIG. 2 , and the sub-block 21 in FIG. 2 can be understood as a pixel block 22 selected from the 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; see Fig. 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 eight 2*2 pixel sub-blocks.

在本發明實施例中,可以根據觸摸常用力度進行分級,並根據按壓力度級別對應產生被觸像素塊權重值,如觸摸常用力度最大值為1000,對應將力度級別設為0~15,權重值對應為0~15。In the embodiment of the present invention, the classification can be performed according to the common force of touch, and the weight value of the touched pixel block is correspondingly generated according to the pressure level. Corresponding to 0~15.

以對每一像素塊22即4X8個像素,將其分為2個4X4的像素子塊為例進行說明:大於0的都是有手指觸摸的區域;若按壓,則像素子塊中的小子塊置為1,否則置0;數據採用位存儲,若數據輸出為254,二進位1111 1110,表示一個像素子塊按壓級別為15,即權重為15;另一個像素子塊按壓級別為14,即權重為14。Take each pixel block with 22 or 4X8 pixels, and divide it into two 4X4 pixel sub-blocks as an example: the area greater than 0 is the area touched by a finger; if pressed, the small sub-block in the pixel sub-block Set to 1, otherwise set to 0; data is stored in bits, if the data output is 254, binary 1111 1110, it means that the pressing level of one pixel sub-block is 15, that is, the weight is 15; the pressing level of another 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 one embodiment of the present invention, for a captured image frame (that is, a frame of touch data), the image frame may include each pixel block 22 in the touch area at the moment when 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 used to calculate the centroid of the image frame.

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

Figure 02_image015
Wherein, when 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, it can be realized by using the centroid formula, and the centroid formula is:
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
)為當前幀觸摸數據的質心的座標。in,
Figure 02_image003
For the current frame touch data
Figure 02_image005
The weight of pixel sub-blocks,
Figure 02_image007
For the current frame touch data
Figure 02_image005
The abscissa of a pixel sub-block,
Figure 02_image009
For the current frame touch data
Figure 02_image005
The vertical coordinates of pixel sub-blocks,
Figure 02_image011
is the abscissa coordinate of the centroid of the touch data in the current frame,
Figure 02_image013
The ordinate of the centroid of the touch data in the current frame. In the embodiment of the present invention, the centroid of the current frame touch data is (
Figure 02_image011
,
Figure 02_image013
),Right now(
Figure 02_image011
,
Figure 02_image013
) is the coordinates of the centroid of the touch data in the current frame.

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

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

圖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 the touch area, and collect touch data of the selected pixel block 22 in the touch area by taking an image frame as a time unit, and the touch data includes the pressure value of the pixel block 22 subjected to the touch operation;

S402、獲取接收觸摸操作採集到的圖像幀數;S402. Obtain 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, execute step S404; if the number of image frames is not less than the first preset threshold, execute 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 received touch operation is less than 20 frames, step S404 may be executed; if the number of image frames collected by the received touch operation is less than When it is less than 20 frames, step S405 can be performed.

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 judge whether the current touch operation exceeds the touch boundary based on the centroid of the current frame touch data; 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 above embodiment, and details are not described 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, it is determined based on the touch data of the current frame If the centroid of the current touch operation does not exceed the touch boundary; on the contrary, if the abscissa of the centroid of the touch data of the current frame is not within the first threshold range or the ordinate of the centroid of the touch data of the current frame is not within the second threshold range , it is determined 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 range and the second threshold range may be the same or different. For the distribution modulus of the pixel block in FIG. The threshold range is set to be greater than 12 and less than 82; the second threshold range is set to be greater than 12 and less than 84. The above is only the preferred mode of the first threshold range and the second threshold range provided by the embodiment of the present invention. Regarding the first threshold range and the second threshold range The specific values of the two threshold ranges can be set by the inventors according to their own needs, and are 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 judged 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 when the touch operation stops, the collection of touch data can also be stopped, and based on the saved touch data of each frame, output the touch data of each frame Centroid.

S407、判斷圖像幀數是否小於第二預設閾值,第二預設閾值小於第一預設閾值;若圖像幀數小於第二預設閾值,執行步驟S408;若圖像幀數不小於第二預設閾值,執行步驟S409;S407. Determine whether the number of image frames is less than a 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, execute step S409;

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

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

在本發明實施例中,第二預設閾值小於第一預設閾值,第二預設閾值可以為3幀,若確定圖像幀數小於3幀時,可以直接將觸摸操作的操作意圖確定為單擊操作。以上僅僅是本發明實施例提供的第二預設閾值的優選方式,有關第二預設閾值的具體數值,發明人可根據自己的需求進行設置,在此不做限定。In the embodiment of the present invention, the second preset threshold is smaller 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 Actions. The above is only the preferred mode of the second preset threshold provided by the embodiment of the present invention, and 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 each frame of touch data.

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

在本發明實施例中,基於各幀觸摸數據的質心確定觸摸操作的操作意圖之前,還可以進一步對採集到的觸摸數據的質心進行過濾,以基於過濾後的質心實現確定觸摸操作的操作意圖的目的,進而簡化運算量,提高操作意圖確定精度。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 can be further filtered to realize the determination of the touch operation based on the filtered centroid. The purpose of the operation intention, thereby simplifying the amount of calculation, and improving the accuracy of determining the operation intention.

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

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

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

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

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

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

在本發明實施例中,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 situation in 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 is only the preferred mode of the first preset number and the second preset number provided by the embodiment of the present invention. Regarding the specific content of the first preset number and the second preset number, the inventor can set them according to his own needs. It is not limited here.

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

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

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

圖6為本發明的一個實施例提供的一種質心移動軌跡優化方法流程圖。FIG. 6 is a flow chart of a method for optimizing a centroid movement trajectory provided by 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 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、計算當前圖像幀質心與起始點之間的第二距離;S602. Calculate the 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 value of the second distance to the value of the first distance;

S605、比較當前圖像幀數和總圖像幀數,得到比較結果;S605. Comparing the current image frame number and the total image frame number to obtain a comparison result;

S606、圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離滿足第一預設子條件時,將當前圖像幀的質心更新為起始點;S606. When the image frame number comparison result 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 number of current image frames to the total number of image frames is less than 70%. The image frame number comparison result indicates the ratio of the current image frame number to the total image frame number, and when the ratio is less than 70%, it means that the image frame number comparison result satisfies the first preset condition.

第二距離與當前第一距離滿足第一預設子條件,可以為第二距離小於當前第一距離的80%。若第二距離小於當前第一距離*80%,則認為第二距離與當前第一距離滿足第一預設子條件,進而將第一質心序列的起始點更新為當前圖像幀的質心。The second distance and the current first distance satisfy the first preset subcondition, which may be that the second distance is 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 then 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 can also be An image frame is updated as the current image frame, and returns to step S602;

在本發明實施例中,圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離滿足第一預設子條件時,將當前圖像幀的質心更新為起始點後,還可以將圖像幀相鄰的下一圖像幀更新為當前圖像幀,並返回執行步驟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 meet the first preset sub-condition, the centroid of the current image frame is updated to the initial After clicking, the next image frame adjacent to the image frame can also be updated as the current image frame, and the execution returns to step S602.

S607、圖像幀數比較結果滿足第二預設條件時,且第二距離與當前第一距離滿足第二預設子條件,將當前質心更新為起始點;S607. When the image frame number comparison result 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 image frame number comparison result indicates the ratio of the current image frame number to the total image frame number, and when the ratio is greater than or equal to 70% and not less than 90%, it means that the image frame number comparison result meets the second preset condition.

第二距離與當前第一距離滿足第二預設子條件,可以為第二距離小於當前第一距離的80%。若第二距離小於當前第一距離*80%,則認為第二距離與當前第一距離滿足第二預設子條件,進而將第一質心序列的起始點更新為當前圖像幀的質心。The second distance and the current first distance satisfy a second preset subcondition, which may be that the second distance is 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 then the starting point of the first centroid sequence is updated to the quality of the current image frame Heart.

進一步的,在執行完成步驟S607後還可以判斷當前圖像幀數占總圖像幀數的比例是否大於80%,若是,停止對第一質心序列中質心移動軌跡的優化過程,基於當前第一質心序列確定操作意圖。Further, after step S607 is executed, 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 moving track in the first centroid sequence, based on the current The first sequence of centroids determines operational intent.

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

S608、圖像幀數比較結果滿足第三預設條件時,將當前質心更新為結束點。S608. When the image frame number comparison result satisfies 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 image frame number to the total image frame number is greater than or equal to 90%. The image frame number comparison result indicates the ratio of the current image frame number to the total image frame number, and when the ratio is greater than or equal to 90%, it means that the image frame number comparison result satisfies the third preset condition.

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

在本發明實施例中,第一預設條件、第二預設條件、第三預設條件、第一預設子條件、第二預設子條件的具體數值發明人可根據自己的需求進行設置,在此不做限定。In the embodiment of the present invention, the inventors can set 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 according to their own needs. , is not limited here.

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

圖7為本發明的一個實施例提供的另一種質心移動軌跡優化方法流程圖。FIG. 7 is a flow chart of another method for optimizing a centroid movement trajectory 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 with an image frame as the time unit, and determine the centroid of the first image frame collected as the starting point, 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、計算當前圖像幀質心與起始點之間的第四距離;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 numerical value of the third distance to the numerical value of the fourth distance;

S705、比較當前圖像幀數和總圖像幀數,得到比較結果;S705. Comparing the current image frame number and the total image frame number to obtain a comparison result;

S706、圖像幀數比較結果滿足第一預設條件,且第三距離與第四距離滿足第一預設子條件時,將當前質心更新為起始點;S706. When the image frame number comparison result 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 image frame number comparison result 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 image frame number comparison result satisfies the third preset condition, update the centroid of the current image frame as the end point.

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

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

其中,可以按照採集圖像幀的順序依次對採集到的每個圖像幀的質心設置序號,比如,將採集到的第一個圖像幀的質心的序號設置為1,將採集到的第二個圖像幀的質心的序號設置為2,將採集到的第三個圖像幀的質心的序號設置為3…依次類推;相應的,目標圖像幀的質心的序號與總圖像幀數的占比可以理解為目標圖像幀的質心的序號除以總圖像幀數所得到的結果。Among them, the sequence number can be set to the centroid of each image frame collected in turn according to the order of the image frames collected, for example, the sequence number of the centroid of the first image frame collected is set to 1, and the collected image frame The serial number of the centroid of the second image frame is set to 2, and the serial number of the collected third image frame is set to 3...and so on; correspondingly, the serial number of the target image frame The ratio to the total number of image frames can be understood as the result obtained by 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 can 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, it can be considered that the target image frame The ratio of the serial number of the centroid to the total number of image frames meets the fourth preset condition.

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

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

如圖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 a difference in abscissa;

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

S803、判斷橫座標差值的絕對值和縱座標差值的絕對值的和是否滿足第六預設條件,若橫座標差值的絕對值和縱座標差值的絕對值的和滿足第六預設條件,執行步驟S804;若橫座標差值的絕對值和縱座標差值的絕對值的和不滿足第六預設條件,執行步驟S805;S803, judging 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 If the condition is set, step S804 is executed; 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, step S805 is executed;

在本發明實施例中,橫座標差值的絕對值和縱座標差值的絕對值的和小於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 difference on the abscissa and the absolute value of the difference on the ordinate does not satisfy the sixth preset condition.

S804、確定觸摸操作的操作意圖指示單擊操作;S804. Determine that the operation intention of the touch operation indicates 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, execute 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 meet the seventh preset condition; otherwise, Then it is considered that the absolute value of the difference on the abscissa and the absolute value of the difference on the ordinate 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 that the operation intention of the touch operation indicates an upward slide operation;

S808、確定觸摸操作的操作意圖指示下滑操作;S808. Determine the operation intention of the touch operation to indicate a slide 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 difference meet the eighth preset condition; if the absolute value of the abscissa difference and the absolute value of the ordinate difference meet 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 satisfy the eighth preset condition, execute 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 difference meet the eighth preset condition; otherwise , it is considered that the absolute value of the difference on the ordinate and the absolute value of the difference on the abscissa 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 the operation intention of the touch operation to indicate an upward sliding operation;

S813、判斷縱座標差值的絕對值和橫座標差值的絕對值是否滿足第九預設條件;如果橫座標差值的絕對值和縱座標差值的絕對值滿足第九預設條件,執行步驟S814;如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第九預設條件,執行步驟S815。S813. Determine whether the absolute value of the ordinate difference and the absolute value of the abscissa difference meet the ninth preset condition; if the absolute value of the abscissa difference and the absolute value of the ordinate difference meet the ninth preset condition, execute Step S814; if the absolute value of the difference on the abscissa and the absolute value of the difference on the ordinate do not satisfy the ninth preset condition, execute 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 meet the ninth preset condition; otherwise , it is considered that the absolute value of the difference on the ordinate and the absolute value of the difference on the abscissa do not satisfy the ninth preset condition.

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

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

以上僅僅是本發明實施例提供的第六預設條件、第七預設條件、第八預設條件、第九預設條件的優選方式,有關第六預設條件、第七預設條件、第八預設條件和第九預設條件的具體內容,發明人可根據自己的需求進行設置,在此不做限定。The above are only the preferred modes of the sixth preset condition, the seventh preset condition, the eighth preset condition, and the ninth preset condition provided by the embodiment of the present invention. Regarding the sixth preset condition, the seventh preset condition, the 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 an operation intention determination device 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 with an image frame as a time unit, and the touch data includes the pressure value of the pixel block subjected to the touch operation;

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

質心計算單元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 each frame of touch data.

在本發明實施例中,權重確定單元92具體用於查詢預先設置的權重與壓力範圍的對應關係,將像素塊承受的壓力值所屬的壓力範圍對應的權重,確定為像素塊的權重。In the embodiment of the present invention, the weight determining unit 92 is specifically configured to query the preset correspondence between weight and pressure range, and determine the weight corresponding to the pressure range to which the pressure value of 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, and collecting the pressure value borne by the pixel block includes collecting the pressure value borne by each pixel sub-block in the pixel block, and the weight determination unit 92 is specifically configured to 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 configured to acquire the position of each pixel sub-block in the touch area of each selected pixel block in the touch area, the position of the pixel sub-block in the touch area includes the abscissa and the pixel sub-block in the touch area ordinate;

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

Figure 02_image017
The centroid calculation unit 93 is used to calculate the centroid of each frame of touch data using 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
為當前幀觸摸數據的質心縱坐標。in,
Figure 02_image003
For the current frame touch data
Figure 02_image005
The weight of pixel sub-blocks,
Figure 02_image007
For the current frame touch data
Figure 02_image005
The abscissa of a pixel sub-block,
Figure 02_image009
For the current frame touch data
Figure 02_image005
The vertical coordinates of pixel sub-blocks,
Figure 02_image011
is the abscissa coordinate of the centroid of the touch data in the current frame,
Figure 02_image013
It is the ordinate of the centroid of the touch data in the current frame.

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

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

若圖像幀數小於第一預設閾值時,保存已採集的各幀觸摸數據;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 each frame of touch data that has been collected, 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, an operation intention determination device provided in an embodiment of the present invention further includes a second operation intention determination unit, configured to:

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

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

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

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

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

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

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

將第一質心序列中首個質心確定為起始點,且將第一質心序列中的末尾質心確定為終止點,定義起始點到終止點採集到的圖像幀數為總圖像幀,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第一距離,並將第一距離初始化為零;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 as the total For an image frame, after receiving a touch operation, define the distance from the centroid of an 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 image frame number with the total image frame number to obtain a comparison result;

圖像幀數比較結果滿足第一預設條件,且第二距離與當前第一距離滿足第一預設子條件時,將當前質心更新為起始點;When the image frame number comparison result 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 image frame number comparison result 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 image frame number comparison result satisfies the third preset condition, the current centroid is updated as the end point.

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

將首個質心確定為起始點,預設觸摸操作需採集的總圖像幀數,接收觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為第三距離,並將第三距離初始化為零;Determine the first centroid 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 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 image frame number with the total image frame number to obtain a comparison result;

圖像幀數比較結果滿足第一預設條件,且第三距離與第四距離滿足第一預設子條件時,將當前質心更新為起始點;When the image frame number comparison result 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 image frame number comparison result 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 image frame number comparison result satisfies the third preset condition, the current centroid is updated as the end point.

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

選定更新的結束點所在圖像幀序列之前的一個質心,該質心的序號與總圖像幀數的占比符合第四預設條件,且該質心與其前一幀質心的距離滿足第五預設條件,將該質心更新為結束點。A centroid before the image frame sequence where the end point of the selected update 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 satisfies The fifth preset condition is to update the centroid as the end point.

在本發明實施例中,第一操作意圖確定單元94包括:In the embodiment of the present invention, the first operation intention determination 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 a difference in abscissa;

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

第一確定單元,用於若橫座標差值的絕對值和縱座標差值的絕對值的和滿足第六預設條件,確定觸摸操作的操作意圖指示單擊操作;The first determination 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 value and the absolute value of the ordinate difference value satisfies the sixth preset condition;

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

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

第二判斷單元,用於如果橫座標差值的絕對值和縱座標差值的絕對值不滿足第七預設條件,判斷縱座標差值是否大於0;The second judging unit is used to judge whether the difference in ordinate is greater than 0 if the absolute value of the difference in abscissa and the absolute value of difference in ordinate do not meet 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 difference meet the eighth preset condition if the ordinate difference is greater than 0; if the absolute value of the abscissa difference and the ordinate If the absolute value of the difference satisfies the eighth preset condition, it is determined that the operation intention of the touch operation indicates a left slide operation. If the absolute value of the difference between the abscissa and the ordinate does not meet the eighth preset condition, determine the touch operation The operation intention of indicates the operation of sliding up;

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

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

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

以上對本發明所提供的一種操作意圖確定方法、裝置及電子設備進行了詳細介紹,本文中應用了具體個例對本發明的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本發明的方法及其核心思想;同時,對於本領域的一般技術人員,依據本發明的思想,在具體實施方式及應用範圍上均會有改變之處,綜上,本說明書內容不應理解為對本發明的限制。The method, device, and electronic device for determining an operation intention provided by the present invention have been described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The descriptions of the above embodiments are 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 present invention, there will be changes in the specific implementation and application scope. Invention Limitations.

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

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

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

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 the touch area, and collect the touch data of the selected pixel block in the touch area with the image frame as the time unit, 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 that the pixel block bears S103: Utilize 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 S104: Determine the operating intention of the touch operation based on the centroid of each frame of touch data S401: Receive a touch operation on the touch area, and collect the touch data of the selected pixel block in the touch area with the image frame as the time unit, 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 the touch operation 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 each frame of touch data collected exceeds the touch boundary S406: Stop collecting the touch data, and output the centroid of each frame of touch data based on the saved frames of touch data 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 each frame of touch data S501: sort the centroids of each frame of touch data collected by the received touch operation according to the order of touch data collection, to obtain a centroid sequence S502: Eliminate the first preset number of centroids that are ranked the highest in the centroid sequence, and remove the second preset number of centroids that are ranked the last 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: Determining the first centroid in the first centroid sequence as the starting point, and determining the end centroid in the first centroid sequence as the termination point, defining the number of image frames collected from the starting point to the termination 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: Updating the value of the second distance to the value of the first distance S605: compare the current image frame number and the total image frame number, and obtain the comparison result S606: When the image frame number comparison result meets the first preset condition, and when 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 image frame number comparison result 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 image frame number comparison result 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 with the image frame as the time unit, and determine the centroid of the first image frame collected as the starting point, 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: updating the value of the third distance to the value of the fourth distance S705: compare the current image frame number and the total image frame number, and obtain the comparison result S706: When the image frame number comparison result 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 image frame number comparison result 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 image frame number comparison result 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 difference in abscissa S802: Subtract the ordinate of the end point from the ordinate of the starting 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: Judging whether the absolute value of the abscissa difference and the absolute value of the ordinate difference meet the seventh preset condition S806: Determine whether the abscissa difference is less than 0 S807: Determine the operation intention of the touch operation to indicate the sliding operation S808: Determine the operation intention of the touch operation to indicate the slide operation S809: judging whether the ordinate difference is greater than 0 S810: The absolute value of the ordinate difference and the absolute value of the abscissa difference meet the eighth preset condition S811: Determine the operation intention of the touch operation to indicate the left slide operation S812: Determine the operation intention of the touch operation to indicate the sliding operation S813: the absolute value of the ordinate difference and the absolute value of the abscissa difference meet the ninth preset condition S814: Determine the operation intention of the touch operation to indicate a right slide operation S815: Determine the operation intention of the touch operation to 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; FIG. 2 is a schematic diagram of pixel blocks in a touch area provided by an embodiment of the present invention; Fig. 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; FIG. 4 is a flowchart of another method for determining an operation intention provided by an embodiment of the present invention; Fig. 5 is 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 provided by an embodiment of the present invention; FIG. 6 is a flow chart of a method for optimizing a centroid movement trajectory provided by an embodiment of the present invention; FIG. 7 is a flow chart of another method for optimizing the movement trajectory of the center of mass provided by an embodiment of the present invention; FIG. 8 is 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 provided by an embodiment of the present invention; and Fig. 9 is a schematic structural diagram of an operation intention determination device provided by an embodiment of the present invention.

S101:接收對觸摸區域的觸摸操作,以圖像幀為時間單位採集觸摸區域中被選定的像素塊的觸摸數據,觸摸數據包括像素塊承受觸摸操作的壓力值 S101: Receive a touch operation on the touch area, and collect the touch data of the selected pixel block in the touch area with the image frame as the time unit, 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 that the pixel block bears

S103:利用像素塊的權重和像素塊在觸摸區域的位置,計算各幀觸摸數據的質心 S103: Utilize 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

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

Claims (12)

一種操作意圖確定方法,應用於設置有一觸摸區域的電子設備,包括:接收對該觸摸區域的一觸摸操作,以圖像幀為時間單位採集該觸摸區域中被選定的一像素塊的一觸摸數據,該觸摸數據包括該像素塊承受該觸摸操作的壓力值;根據該像素塊承受的壓力值確定該像素塊的權重;利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心;及基於各幀該觸摸數據的質心確定該觸摸操作的操作意圖,其中,該方法還包括:獲取接收該觸摸操作採集到的一圖像幀數;若該圖像幀數小於一第一預設閾值時,保存已採集的各幀觸摸數據;若該圖像幀數不小於該第一預設閾值,保存並計算已採集的各幀觸摸數據,並基於當前幀觸摸數據的質心判斷當前該觸摸操作是否超出一觸摸邊界;及若該觸摸操作超出該觸摸邊界,停止採集該觸摸數據,輸出各幀觸摸數據的質心。 A method for determining an operation intention, which is applied to an electronic device provided with a touch area, comprising: receiving a touch operation on the touch area, and collecting a touch data of a selected pixel block in the touch area with an image frame as a time unit , the touch data includes the pressure value of the pixel block subjected to 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 each Frame the centroid of the touch data; and determine the operation intention of the touch operation based on the centroid of each frame of the touch data, wherein the method also includes: acquiring the number of frames of an image collected by receiving the touch operation; if the figure When the number of image frames is less than a first preset threshold, save the collected frames of touch data; if the number of image frames is not less than the first preset threshold, save and calculate the collected frames of touch data, and based on the current The centroid of the frame touch data determines whether the current touch operation exceeds a touch boundary; and if the touch operation exceeds the touch boundary, stop collecting the touch data, and output the centroid of each frame of touch data. 如請求項1所述之操作意圖確定方法,其中,根據該像素塊承受的壓力值確定該像素塊的權重,包括: 查詢預先設置的權重與壓力範圍的對應關係,將該像素塊承受的壓力值所屬的壓力範圍對應的權重,確定為該像素塊的權重。 The method for determining the operation intention according to claim 1, wherein determining the weight of the pixel block according to the pressure value of the pixel block includes: 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 of the pixel block belongs as the weight of the pixel block. 如請求項2所述之操作意圖確定方法,其中,該像素塊包括多個像素子塊,採集該像素塊承受的壓力值包括採集該像素塊中每個該像素子塊承受的壓力值,根據該像素塊承受的壓力值確定該像素塊的權重,包括:根據該像素塊中每個該像素子塊承受的壓力值確定該像素子塊的權重。 The operation intention determination method as described in Claim 2, wherein the pixel block includes a plurality of pixel sub-blocks, and collecting the pressure value borne by the pixel block includes collecting the pressure value borne by each pixel sub-block in the pixel block, according to Determining the weight of the pixel block by the pressure value of the pixel block includes: determining the weight of the pixel sub-block according to the pressure value of each pixel sub-block in the pixel block. 如請求項3所述之操作意圖確定方法,其中,利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心,包括:獲取該觸摸區域中被選定的每個該像素塊的每個該像素子塊在該觸摸區域中的位置,該像素元子塊在該觸摸區域中的位置包括該像素子塊在該觸摸區域中的橫座標和縱座標,採用一質心公式分別計算每幀該觸摸數據的質心;及該質心公式為:
Figure 108140335-A0305-02-0038-1
其中,weigh i t為當前幀觸摸數據中第i個該像素子塊的權重,x i 為當前幀觸摸數據中第i個該像素子塊的橫座標、y i 为當前幀觸摸數據中第i 個該像素子塊的縱座標,M x 為當前幀觸摸數據的質心橫座標,M y 為當前幀觸摸數據的質心縱座標。
The operation intention determination method as described in claim 3, wherein, using the weight of the pixel block and the position of the pixel block in the touch area, calculating the centroid of each frame of the touch data includes: obtaining the selected in the touch area The position of each pixel sub-block of each pixel block in the touch area, the position of the pixel sub-block in the touch area includes the abscissa and ordinate of the pixel sub-block in the touch area, Using a centroid formula to calculate the centroid of the touch data in each frame; and the centroid formula is:
Figure 108140335-A0305-02-0038-1
Wherein, weight i t is the weight of the i- th pixel sub-block in the touch data of the current frame, x i is the abscissa of the i- th pixel sub-block in the touch data of the current frame, and y i is the i-th pixel sub-block in the touch data of the current frame The ordinate of the pixel sub-block, M x is the abscissa of the centroid of the touch data of the current frame, and M y is the ordinate of the centroid of the touch data of the current frame.
如請求項1所述之操作意圖確定方法,其中,基於各幀觸摸數據的質心確定該觸摸操作的操作意圖之前,該方法還包括:判斷該圖像幀數是否小於一第二預設閾值;及若該圖像幀數小於該第二預設閾值,確定該觸摸操作的操作意圖指示單擊操作,該第二預設閾值小於該第一預設閾值。 The method for determining the operation intention according to claim 1, wherein 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 a second preset threshold ; and if the number of image frames is less than the second preset threshold, determine 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 according to claim 1, wherein determining the operation intention of the touch operation based on the centroid of each frame of touch data includes: according to the order in which the touch data is collected, the received touch operation is collected The centroids of each frame of touch data are sorted to obtain a centroid sequence; Eliminating a second preset number of centroids to obtain a first centroid sequence; and determining an operation intention of the touch operation based on the first centroid sequence. 如請求項6所述之操作意圖確定方法,其中,還包括:將該第一質心序列中首個質心確定為一起始點,且將該第一質心序列中的末尾質心確定為一終止點,定義該起始點到該終止點採集到的圖像幀數為總圖像幀,接收該觸摸操作後,定義當前圖像幀之前一圖像幀的質心到起始點的距離為一第一距離,並將該第一距離初始化為零;計算當前圖像幀質心與該起始點之間的一第二距離; 比較該第二距離是否大於該第一距離;如果該第二距離大於該第一距離,將該第二距離數值更新為該第一距離的數值;如果該第二距離不大於當前該第一距離,比較當前圖像幀數和總圖像幀數,得到比較結果;圖像幀數比較結果滿足一第一預設條件,且該第二距離與當前該第一距離滿足一第一預設子條件時,將當前質心更新為該起始點;圖像幀數比較結果滿足一第二預設條件時,且該第二距離與當前該第一距離滿足一第二預設子條件,將當前質心更新為該起始點;及圖像幀數比較結果滿足一第三預設條件時,將當前質心更新為該結束點。 The operation intention determination method according to claim 6, further comprising: determining the first centroid in the first centroid sequence as a starting point, and determining the end centroid in the first centroid sequence as An end point, define the number of image frames collected from the start point to the end point as the total image frame, after receiving the touch operation, define the distance from the centroid of an image frame before the current image frame to the start point The distance is a first distance, and the first distance is initialized to zero; a second distance between the centroid of the current image frame and the starting point is calculated; Compare whether the second distance is greater than the first distance; if the second distance is greater than the first distance, update the second distance value to the value of the first distance; if the second distance is not greater than the current first distance , compare the current image frame number with the total image frame number, and obtain the comparison result; the image frame number comparison result satisfies a first preset condition, and the second distance and the current first distance satisfy a first preset sub condition, update the current centroid to the starting point; when the image frame number comparison result satisfies a second preset condition, and the second distance and the current first distance satisfy a second preset subcondition, the updating the current centroid to the starting point; and updating the current centroid to the ending point when the image frame number comparison result satisfies a third preset condition. 如請求項1所述之操作意圖確定方法,其中,還包括:將首個質心確定為一起始點,預設該觸摸操作需採集的總圖像幀數,接收該觸摸操作後,定義當前圖像幀之前一圖像幀的質心到該起始點的距離為一第三距離,並將該第三距離初始化為零;計算當前圖像幀質心與該起始點之間的一第四距離;比較該第四距離是否大於該第三距離;如果該第四距離大於該第三距離,將該第三距離的數值更新為該第四距離的數值;如果該第四距離不大於該第三距離,比較當前圖像幀數和總圖像幀數,得到比較結果; 圖像幀數比較結果滿足一第一預設條件,且該第三距離與該第四距離滿足一第一預設子條件時,將當前質心更新為該起始點;圖像幀數比較結果滿足一第二預設條件時,且該第三距離與該第四距離滿足一第二預設子條件,將當前質心更新為該起始點;及圖像幀數比較結果滿足一第三預設條件時,將當前質心更新為該結束點。 The method for determining the operation intention as described in Claim 1, further comprising: determining the first centroid as a starting point, preset the total number of image frames to be collected by the touch operation, and defining the current The distance from the centroid of an image frame before the image frame to the starting point is a third distance, and the third distance is initialized to zero; calculate a distance between the centroid of the current image frame and the starting point The fourth distance; 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 For the third distance, compare the current image frame number with the total image frame number to obtain a comparison result; When the image frame number comparison result satisfies a first preset condition, and the third distance and the fourth distance meet a first preset subcondition, update the current centroid to the starting point; image frame number comparison When the result satisfies a second preset condition, and the third distance and the fourth distance satisfy a second preset subcondition, update the current centroid to the starting point; and the image frame number comparison result satisfies a first first subcondition When three preset conditions are met, update the current centroid to the end point. 如請求項7或8所述之操作意圖確定方法,其中,還包括:選定更新的該結束點所在圖像幀序列之前的一個質心,質心的序號與總圖像幀數的占比符合一第四預設條件,且質心與其前一幀質心的距離滿足一第五預設條件,將質心更新為該結束點。 The operation intention determination method as described in claim item 7 or 8, which also includes: selecting a centroid before the image frame sequence where the updated end point is located, and the serial number of the centroid is consistent with the proportion of the total number of image frames A fourth preset condition, and the distance between the centroid and the centroid of the previous frame satisfies a fifth preset condition, update the centroid to the end point. 如請求項9所述之操作意圖確定方法,其中,基於該觸摸述距的質心確定該觸摸操作的操作意圖,包括:將該終止點的橫座標減去該起始點的橫座標,得到一橫座標差值;將該終止點的縱座標減去該起始點的縱座標,得到一縱座標差值;若該橫座標差值的絕對值和該縱座標差值的絕對值的和滿足一第六預設條件,確定該觸摸操作的操作意圖指示單擊操作;若該橫座標差值的絕對值和該縱座標差值的絕對值的和不滿足該第六預設條件,判斷該橫座標差值的絕對值和該縱座標差值的絕對值是否滿足一第七預設條件;如果該橫座標差值的絕對值和該縱座標差值的絕對值滿足該第七預設條件,在該橫座標差值小於0時,確定該觸摸操作的操作意圖指示 上滑操作;在該橫座標差值不小於0時,確定該觸摸操作的操作意圖指示下滑操作;如果該橫座標差值的絕對值和該縱座標差值的絕對值不滿足該第七預設條件,判斷該縱座標差值是否大於0;若該縱座標差值大於0,判斷該縱座標差值的絕對值和該橫座標差值的絕對值是否滿足一第八預設條件;如果該橫座標差值的絕對值和該縱座標差值的絕對值滿足該第八預設條件,確定該觸摸操作的操作意圖指示左滑操作,如果該橫座標差值的絕對值和該縱座標差值的絕對值不滿足該第八預設條件,確定該觸摸操作的操作意圖指示上滑操作;及若該縱座標差值不大於0,判斷該縱座標差值的絕對值和該橫座標差值的絕對值是否滿足一第九預設條件;如果該橫座標差值的絕對值和該縱座標差值的絕對值滿足該第九預設條件,確定該觸摸操作的操作意圖指示右滑操作,如果該橫座標差值的絕對值和該縱座標差值的絕對值不滿足該第九預設條件,確定該觸摸操作的操作意圖指示上滑操作。 The method for determining the operation intention according to claim 9, wherein determining the operation intention of the touch operation based on the centroid of the touch distance includes: subtracting 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 If a sixth preset condition is met, 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 meet the sixth preset condition, determine Whether the absolute value of the abscissa difference and the absolute value of the ordinate difference meet a seventh preset condition; 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, determine the operation intention indication of the touch operation Swipe up operation; when the abscissa difference is not less than 0, determine that the operation intention of the touch operation indicates a slide operation; if the absolute value of the abscissa difference and the absolute value of the ordinate difference do not meet the seventh preset Set a condition to judge whether the ordinate difference is greater than 0; if the ordinate difference is greater than 0, judge whether the absolute value of the ordinate difference and the absolute value of the abscissa difference meet an eighth preset condition; if The absolute value of the abscissa difference and the absolute value of the ordinate difference meet the eighth preset condition, and it is determined that the operation intention of the touch operation indicates a left slide operation, if the absolute value of the abscissa difference and the ordinate The absolute value of the difference does not meet the eighth preset condition, determine that the operation intention of the touch operation indicates an upward slide operation; and if the difference in the ordinate is not greater than 0, determine the absolute value of the difference in the ordinate and the abscissa Whether the absolute value of the difference satisfies a ninth preset condition; if the absolute value of the abscissa difference and the absolute value of the ordinate difference meet the ninth preset condition, determine that the operation intention of the touch operation indicates sliding right Operation, if the absolute value of the difference on the abscissa and the absolute value of the difference on the ordinate do not satisfy the ninth preset condition, it is determined that the operation intention of the touch operation indicates an upward slide operation. 一種操作意圖確定裝置,應用於設置有一觸摸區域的一電子設備,包括:一觸摸操作接收單元,用於接收對該觸摸區域的一觸摸操作,以圖像幀為時間單位採集該觸摸區域中被選定的一像素塊的一觸摸數據,該觸摸數據包括該像素塊承受該觸摸操作的壓力值; 一權重確定單元,用於根據該像素塊承受的壓力值確定該像素塊的權重;一質心計算單元,用於利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心;一第一操作意圖確定單元,用於基於各幀該觸摸數據的質心確定該觸摸操作的操作意圖;及一觸摸邊界判斷單元,用於獲取接收該觸摸操作採集到的一圖像幀數;若該圖像幀數小於一第一預設閾值時,保存已採集的各幀觸摸數據;若該圖像幀數不小於該第一預設閾值,保存並計算已採集的各幀觸摸數據,並基於當前幀觸摸數據的質心判斷當前該觸摸操作是否超出一觸摸邊界;若該觸摸操作超出該觸摸邊界,停止採集觸摸數據,輸出各幀觸摸數據的質心。 A device for determining an operation intention, applied to an electronic device provided with a touch area, comprising: a touch operation receiving unit, configured to receive a touch operation on the touch area, and collect images in the touch area by taking an image frame as a time unit A touch data of a selected pixel block, the touch data includes the pressure value of the pixel block subjected to the touch operation; A weight determination unit, used to determine the weight of the pixel block according to the pressure value of the pixel block; a centroid calculation unit, used to use the weight of the pixel block and the position of the pixel block in the touch area to calculate the weight of each frame The centroid of the touch data; a first operation intention determination unit, used to determine the operation intention of the touch operation based on the centroid of the touch data in each frame; and a touch boundary judgment unit, used to obtain and receive the touch operation collected An image frame number; if the image frame number is less than a first preset threshold, save the collected frames of touch data; if the image frame number is not less than the first preset threshold, save and calculate the Collect each frame of touch data, and judge whether the current touch operation exceeds a touch boundary based on the centroid of the current frame touch data; if the touch operation exceeds the touch boundary, stop collecting touch data, and output the centroid of each frame of touch data. 一種電子設備,包含:一觸摸區域;一觸摸操作接收單元,用於接收對該觸摸區域的一觸摸操作,以圖像幀為時間單位採集該觸摸區域中被選定的一像素塊的一觸摸數據,該觸摸數據包括該像素塊承受該觸摸操作的壓力值;一權重確定單元,用於根據該像素塊承受的壓力值確定該像素塊的權重;一質心計算單元,用於利用該像素塊的權重和該像素塊在該觸摸區域的位置,計算各幀該觸摸數據的質心; 一第一操作意圖確定單元,用於基於各幀該觸摸數據的質心確定該觸摸操作的操作意圖;及一觸摸邊界判斷單元,用於獲取接收該觸摸操作採集到的一圖像幀數;若該圖像幀數小於一第一預設閾值時,保存已採集的各幀觸摸數據;若該圖像幀數不小於該第一預設閾值,保存並計算已採集的各幀觸摸數據,並基於當前幀觸摸數據的質心判斷當前該觸摸操作是否超出一觸摸邊界;若該觸摸操作超出該觸摸邊界,停止採集觸摸數據,輸出各幀觸摸數據的質心。 An electronic device, comprising: a touch area; a touch operation receiving unit, configured to receive a touch operation on the touch area, and collect a touch data of a selected pixel block in the touch area with an image frame as a time unit , the touch data includes the pressure value of the pixel block subjected to the touch operation; a weight determination unit is used to determine the weight of the pixel block according to the pressure value of the pixel block; a centroid calculation unit is used to use the pixel block weight and the position of the pixel block in the touch area, calculate the centroid of the touch data in each frame; A first operation intention determination unit, used to determine the operation intention of the touch operation based on the centroid of the touch data in each frame; and a touch boundary judgment unit, used to obtain the number of image frames collected by receiving the touch operation; If the image frame number is less than a first preset threshold, save the collected frames of touch data; if the image frame number is not less than the first preset threshold, save and calculate the collected frames of touch data, And judge whether the current touch operation exceeds a 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.
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 TW202026840A (en) 2020-07-16
TWI796530B true 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)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201220158A (en) * 2010-10-21 2012-05-16 Atlab Inc Input device and touch position detecting method thereof
TWI537802B (en) * 2014-06-27 2016-06-11 敦泰科技有限公司 Touch display device and driving method, driving circuit thereof
CN106502460A (en) * 2016-10-31 2017-03-15 北京交通大学 A kind of recognition methods of capacitance touching control track noise type
TW201715473A (en) * 2015-10-23 2017-05-01 摩如富股份有限公司 Image processing device, electronic device, image processing method and non-transitory computer readable recording medium
TWI607361B (en) * 2015-12-17 2017-12-01 敦泰電子有限公司 Pressure detection method for in-cell touch display and mobile device using the same

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106095307B (en) * 2016-06-01 2019-05-31 努比亚技术有限公司 Rotate gesture identifying device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201220158A (en) * 2010-10-21 2012-05-16 Atlab Inc Input device and touch position detecting method thereof
TWI537802B (en) * 2014-06-27 2016-06-11 敦泰科技有限公司 Touch display device and driving method, driving circuit thereof
TW201715473A (en) * 2015-10-23 2017-05-01 摩如富股份有限公司 Image processing device, electronic device, image processing method and non-transitory computer readable recording medium
TWI607361B (en) * 2015-12-17 2017-12-01 敦泰電子有限公司 Pressure detection method for in-cell touch display and mobile device using the same
CN106502460A (en) * 2016-10-31 2017-03-15 北京交通大学 A kind of recognition methods of capacitance touching control track noise type

Also Published As

Publication number Publication date
TW202026840A (en) 2020-07-16
CN111435283A (en) 2020-07-21

Similar Documents

Publication Publication Date Title
CN107132986B (en) Method and device for intelligently adjusting touch response area through virtual keys
TWI478041B (en) Method of identifying palm area of a touch panel and a updating method thereof
JP5693729B2 (en) Method for detecting an arbitrary number of touches from a multi-touch device
CN102402369B (en) Electronic equipment and its operation indicating mark moving method
CN103827785B (en) Using pressure differences with a touch-sensitive display screen
US8416194B2 (en) Apparatus and method for adjusting a key range of a keycapless keyboard
TW201432520A (en) Operating method and electronic device
WO2016065712A1 (en) Touch screen control method and touch screen apparatus
CN105550336B (en) The method for digging and device of single entities example
CN105867916A (en) Terminal control method and device
CN104571882A (en) User operating mode judging method and device based on terminal and terminal
CN105022579A (en) Image processing-based implement method and device of virtual keyboard
CN105159475A (en) Character input method and device
TWI796530B (en) Operation intention determining method, apparatus, and electronic device thereof
WO2016173223A1 (en) Method and device for determining user experience and for assisting in determining user experience
CN107037951B (en) Automatic operation mode identification method and terminal
CN103744609B (en) A kind of data extraction method and device
CN109582171A (en) Use identifying to the new finger for touching posture for capacitor hovering mode
CN104866210B (en) A kind of touch screen control method, device and electronic equipment
JP5254137B2 (en) Mobile communication device and communication device
CN115237846B (en) Ink screen refreshing method and device, terminal equipment and storage medium
JP2011034149A (en) Communication device and portable electronic device
JP6140522B2 (en) Evaluation support method, evaluation support apparatus, and evaluation support program
CN104461284B (en) Correlating method and device
CN115220630A (en) Electronic equipment control method, device, equipment, scanning pen and storage medium