CN116661618A - Touch mode switching method and device for touch screen - Google Patents
Touch mode switching method and device for touch screen Download PDFInfo
- Publication number
- CN116661618A CN116661618A CN202310427780.7A CN202310427780A CN116661618A CN 116661618 A CN116661618 A CN 116661618A CN 202310427780 A CN202310427780 A CN 202310427780A CN 116661618 A CN116661618 A CN 116661618A
- Authority
- CN
- China
- Prior art keywords
- touch
- mode
- touch point
- point
- target
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000006399 behavior Effects 0.000 claims description 55
- 238000004590 computer program Methods 0.000 claims description 9
- 238000001914 filtration Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 18
- 238000005516 engineering process Methods 0.000 description 8
- 230000002452 interceptive effect Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000007476 Maximum Likelihood Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
- G06F3/04184—Synchronisation with the driving of the display or the backlighting unit to avoid interferences generated internally
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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/04883—Interaction 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 for inputting data by handwriting, e.g. gesture or text
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention relates to a touch mode switching method and device for a touch screen, comprising the following steps: acquiring touch point information of a touch screen; judging the touch point as a touch point to be determined or a normal touch point according to the touch point information; if the touch point is a touch point to be determined, judging a target touch mode corresponding to the touch point to be determined, wherein the target touch mode corresponding to the touch point to be determined comprises an eraser mode or a palm anti-false touch mode, and switching to the target touch mode corresponding to the touch point to be determined; and if the touch point is a normal touch point, switching to a target touch mode corresponding to the normal touch point. The touch screen touch mode switching method and device have the advantages that the accuracy of touch mode switching is improved, and the use of the switched touch mode is more in line with the use requirement of a user.
Description
Technical Field
The present invention relates to the field of touch screens, and in particular, to a method and apparatus for switching touch modes of a touch screen, a readable storage medium, and a computer device.
Background
The existing infrared touch screen realizes touch control based on the shielding partition principle, and distinguishes a writing pen and a palm/palm back by identifying the area of a shielding object so as to realize the function of erasing.
However, the existing infrared touch control product has single function and affects the user experience.
Disclosure of Invention
Based on this, the present invention aims to provide a touch mode switching method for a touch screen, which has the advantages of improving the accuracy of touch mode switching and enabling the switched touch mode to be more in line with the use requirement of a user.
A touch mode switching method of a touch screen comprises the following steps:
acquiring touch point information of a touch screen;
judging the touch point as a touch point to be determined or a normal touch point according to the touch point information;
if the touch point is a touch point to be determined, judging a target touch mode corresponding to the touch point to be determined, wherein the target touch mode corresponding to the touch point to be determined comprises an eraser mode or a palm anti-false touch mode, and switching to the target touch mode corresponding to the touch point to be determined;
and if the touch point is a normal touch point, switching to a target touch mode corresponding to the normal touch point. A touch screen touch mode switching device, comprising:
the information acquisition module is used for acquiring normal touch point information of the touch screen;
the touch point judging module is used for judging whether the touch point is a touch point to be determined or a normal touch point;
The target touch mode judging module is used for judging a target touch mode corresponding to the touch point to be determined if the touch point is the touch point to be determined, wherein the target touch mode corresponding to the touch point to be determined comprises an eraser or an anti-false touch; and if the touch point is a normal touch point, judging a target touch mode corresponding to the normal touch point.
A computer device, comprising: a processor, a memory and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 1 to 9 when the computer program is executed.
A computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of the method according to any one of claims 1 to 9.
Compared with the prior art, the embodiment provided by the application has at least the following beneficial effects:
according to the touch screen touch mode switching method, the touch points are divided into to-be-determined touch points and normal touch points according to the touch point information, and judgment is carried out respectively; the to-be-determined touch point corresponds to a touch point with a palm size, and the normal touch point is a touch point with a non-palm size. And respectively judging target touch modes corresponding to the touch points to be determined and the normal touch points according to the touch point information, and switching the touch screen to the corresponding target touch mode, so that the accuracy of judging the touch mode is improved, and the use requirement of a user is met by using the switched touch mode.
For a better understanding and implementation, the present application is described in detail below with reference to the drawings.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for switching touch modes of a touch screen according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating steps for determining a target touch mode corresponding to the touch point to be determined according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another step of determining a target touch mode corresponding to the touch point to be determined according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps for determining a target touch mode corresponding to the normal touch point according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating steps for determining a target touch mode from target touch modes corresponding to the normal touch points according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating steps for determining a target touch pattern corresponding to a normal touch point to obtain a historical touch behavior feature according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a touch mode switching device of a touch screen according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a computer device for touch mode switching of a touch screen in an embodiment of the application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Interactive smartpads are devices for interactive display, commonly used in teaching or conferencing scenarios. In the prior art, the interactive input technology of the interactive smart tablet is usually an infrared touch technology, a capacitive touch technology and an electromagnetic touch technology, wherein the infrared touch technology is most widely applied due to low price and great improvement of touch precision in recent years.
In a teaching or meeting scenario, whiteboard writing is the most frequently used application of the interactive intelligent tablet, and in the whiteboard application, writing functions, erasing functions and palm anti-false touch functions are the most common functions. The eraser function usually recognizes the touch area of the palm object as an eraser, so that the function of erasing handwriting can be realized by using the palm/back of the hand on application software; the palm anti-false touch function is that when writing, the palm contacts the touch surface, touch data caused by the palm can be shielded, only touch data of the pen point are reported, and therefore the writing effect is not affected under the condition that the palm of a user contacts the touch surface.
In the prior art, the erasing function and the palm anti-false touch function can be integrated in the same writing application only on the interactive intelligent tablet using the capacitive touch technology. At the moment, an active capacitance pen is used, the active capacitance pen can mainly send touch data of a pen point to an interactive intelligent tablet when writing, the touch data sent by the active capacitance pen has specific characteristics (such as a specific data format or a specific ID), and the touch data triggered by a finger or a palm is obviously distinguished. However, in the interactive intelligent tablet employing the infrared touch technology, since the infrared touch technology performs touch detection by shielding light between the infrared emission lamp and the infrared receiving lamp, the object is distinguished based on the area of the shielded object, and the characteristic size of the identified object is the palm size under the erasing function and the palm anti-false touch function, so that the palm anti-false touch function and the erasing function cannot be started simultaneously.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a method for switching touch modes of a touch screen according to an embodiment of the application.
A touch mode switching method of a touch screen comprises the following steps:
s101, acquiring touch point information of a touch screen;
s102, judging whether the touch point is a touch point to be determined or a normal touch point according to the touch point information;
s103, if the touch point is a touch point to be determined, judging a target touch mode corresponding to the touch point to be determined, wherein the target touch mode corresponding to the touch point to be determined comprises an eraser mode or a palm anti-false touch mode, and switching to the target touch mode corresponding to the touch point to be determined;
and S104, if the touch point is a normal touch point, switching to a target touch mode corresponding to the normal touch point.
According to the touch screen touch mode switching method, the touch points are divided into to-be-determined touch points and normal touch points according to the touch point information, and judgment is carried out respectively; the to-be-determined touch point corresponds to a touch point with a palm size, and the normal touch point is a touch point with a non-palm size. And respectively judging the target touch modes corresponding to the touch points to be determined and the normal touch points according to the touch point information, and switching the touch screen to the corresponding target touch mode, so that the accuracy of judging the touch mode is improved.
For step S101, touch point information of the touch screen is obtained;
the touch point information is information of a current touch point detected by the touch screen. The current touch point information may include at least one of the following information: the touch point detection method comprises the following steps of touch point area, touch point shape, touch point number, touch point position, touch point moving speed, touch point shielding light number, touch point shielding light depth, touch point track and touch point appearance time length.
In this embodiment, the current touch point information is obtained to determine the switching of the touch mode.
For step S102, determining whether the touch point is a touch point to be determined or a normal touch point according to the touch point information;
firstly, judging whether the touch point is a touch point to be determined or a normal touch point according to the touch point information;
in one embodiment, the determining whether the touch point is a to-be-determined touch point or a normal touch point includes the steps of:
judging whether the area of the touch point in the touch point information exceeds a preset touch point area threshold value, if so, determining that the touch point is to be determined, otherwise, determining that the touch point is a normal touch point.
The preset touch point area threshold is a touch area threshold of a palm size set in advance, and is used for judging whether the touch point corresponding to the acquired touch point information is a palm touch point, if the touch point area in the touch point information exceeds the preset touch point area threshold, the touch point corresponding to the touch point information is the palm touch point, the touch point is marked as the touch point to be determined, and otherwise, the touch point corresponding to the touch point information is marked as a normal touch point.
And dividing the acquired touch point information into a palm touch point and a non-palm touch point by using the touch point area, marking the palm touch point as a touch point to be determined, and marking the non-palm touch point as a normal touch point. And judging the target touch mode corresponding to the touch point information by adopting different target touch mode judging modes for the touch point to be determined and the normal touch point, thereby further improving the judging accuracy.
For step S103, if the touch point is a touch point to be determined, determining a target touch mode corresponding to the touch point to be determined, where the target touch mode corresponding to the touch point to be determined includes an eraser mode or a palm anti-false touch mode, and switching to the target touch mode corresponding to the touch point to be determined;
And if the touch point is the touch point to be determined, the area of the touch point corresponding to the touch point is the size of the palm, so that the target touch mode corresponding to the touch point to be determined comprises an eraser mode and a palm anti-misoperation mode. The eraser mode refers to erasing operation by using a palm-sized touch point; the palm anti-misoperation mode is used for operations such as writing, and shielding palm touch points to avoid the influence of the palm touch points on writing results.
In an embodiment, please refer to fig. 2, fig. 2 is a flowchart illustrating a step of determining a target touch mode corresponding to the touch point to be determined according to an embodiment of the present application.
The step of judging the target touch mode corresponding to the touch point to be determined comprises the following steps:
s201, judging whether handwriting touch points exist around the touch point to be determined;
s202, if the handwriting touch points exist on the periphery of the touch point to be determined, the target touch mode corresponding to the touch point to be determined is a palm anti-false touch mode;
s203, if the handwriting touch points do not exist around the touch points to be determined, the target touch mode corresponding to the touch points to be determined is an eraser mode.
For step S201, determining whether there is a handwriting touch point around the touch point to be determined;
The handwriting touch points are touch point information used for writing, drawing lines and the like. And judging whether the target touch mode corresponding to the point to be determined is an eraser mode or a palm anti-false touch mode by detecting whether the handwriting touch point exists around the point to be determined.
For step S202, if the handwriting touch point exists around the touch point to be determined, the target touch mode corresponding to the touch point to be determined is a palm anti-false touch mode;
if the handwriting touch point is detected near the touch point to be determined, determining that the target touch mode corresponding to the touch point to be determined is a palm anti-false touch mode, and being mainly applicable to avoiding interference of the palm touch point on writing content during writing.
For step S203, if the handwriting touch point does not exist around the touch point to be determined, the target touch mode corresponding to the touch point to be determined is an eraser mode.
If the handwriting touch point is not detected near the touch point to be determined, and because the touch point to be determined is a palm-sized touch point, the target touch mode corresponding to the touch point to be determined is an eraser mode, and the method is mainly applicable to large-scale erasing of the touch screen content when the touch screen content is required, and the erasing efficiency is accelerated.
Because the touch point to be determined is a palm-sized touch point, the target touch mode corresponding to the touch point to be determined generally includes a palm anti-false touch or an eraser mode. By distinguishing the touch points with the palm size and the touch points with the non-palm size, corresponding target touch mode identification is respectively carried out, and the accuracy and the efficiency of target touch mode judgment are further improved.
In another embodiment, referring to fig. 3, fig. 3 is a flowchart illustrating another step of determining a target touch mode corresponding to the touch point to be determined according to an embodiment of the present application.
The step of judging the target touch mode corresponding to the touch point to be determined comprises the following steps:
s301, if an initial touch mode is a writing mode and the touch modes in a preset time period before the current moment are all writing modes, the target touch mode corresponding to the touch point to be determined is a palm anti-false touch mode, wherein the initial touch mode is the touch mode corresponding to the touch screen before the touch point information is acquired;
s302, if the initial touch mode is a palm anti-false touch mode and the touch modes in a preset time period before the current moment are all the palm anti-false touch modes, the touch screen is kept in the palm anti-false touch mode;
And S303, if the palm anti-false touch mode is not switched in the using time period before the current moment, switching the touch screen into an eraser mode.
For step S301, if the initial touch mode is a writing mode and the touch modes in a preset time period before the current moment are all writing modes, the target touch mode corresponding to the touch point to be determined is a palm anti-false touch mode, wherein the initial touch mode is the touch mode corresponding to the touch screen before the touch point information is acquired;
the initial touch mode is a touch mode corresponding to the touch screen before the touch screen acquires the touch point information. The current time is a time when the touch screen acquires the touch point information, and the preset time period is a good period of time set in advance, and in one embodiment, the preset time period is 5 minutes.
When the initial touch mode is a writing mode and the touch modes in a preset time period before the current moment are all writing modes, the user is indicated to write currently, and when the touch point to be determined is detected, the target touch mode corresponding to the touch point to be determined is a palm anti-false touch mode, so that the influence of palm false touch on writing is avoided.
For step S302, if the initial touch mode is a palm anti-false touch mode and the touch modes in the preset time period before the current moment are all palm anti-false touch modes, the touch screen is kept in the palm anti-false touch mode;
if the initial touch mode is a palm anti-false touch mode and the touch modes in a preset time period before the current moment are all the palm anti-false touch modes, indicating that a user is carrying out palm anti-false touch writing at the moment, and if the touch point to be determined is detected at the moment, keeping the touch screen in the palm anti-false touch mode;
for step S303, if the palm anti-false touch mode is not switched in the use time period before the current time, the target touch mode corresponding to the touch point to be determined is an eraser mode;
the usage time period may be a time from a time when the user starts to use the touch screen or the user's account registration to a time when normal touch point information is detected, if the palm anti-false mode is switched in the usage time period before the current time, which indicates that the user is not used to the palm anti-false mode, the target touch mode corresponding to the touch point to be determined is an eraser mode when the touch point to be determined is detected.
By combining the initial touch mode and the touch mode in a preset time period before the current moment, the target touch mode corresponding to the touch point to be determined is judged, so that the accuracy of judging the target touch mode is further improved, and the target touch mode is more in accordance with the use habit of a user.
In one embodiment, after the touch screen is switched to the target touch mode, the method further comprises the following steps:
for the target touch mode switched in step S202 or S303, if the target touch mode is the eraser mode, the touch points of the palm and the touch points around the palm are obtained, the touch points of the palm are uploaded, and the points around the palm are combined or filtered.
For the target touch mode switched in step S203 or S303, if the target touch mode is a palm anti-false touch, acquiring touch points determined as a palm and handwriting touch points around the palm, uploading the handwriting touch points, and performing shielding processing on the touch points of the palm and other non-handwriting touch points around the palm.
After step S203 or S303 is performed, the touch points are processed according to the target touch mode that the touch screen needs to switch, for the touch points in the eraser mode, the touch points of the palm are uploaded, and the points around the palm are filtered or combined, so that the accuracy of the obtained touch points for erasing is further ensured, the user can accurately erase the positions needing to be erased by using the palm in the eraser mode, and the interference of other touch points on erasing is avoided; for the touch points in the palm anti-false touch mode, only the handwriting touch points are uploaded, and the shielding treatment is carried out on other touch points, so that the unnecessary writing track generation caused by false touch due to the palm and other reasons can be well avoided in the palm anti-false touch mode. By further processing the touch points of the touch mode, the touch result is more accurate after the touch screen is switched to the target touch mode after the target touch mode is acquired, and interference of other factors is reduced.
For step S104, if the touch point is a normal touch point, switching to a target touch mode corresponding to the normal touch point;
the touch mode is a working state of the touch screen, and in one embodiment, the touch mode includes a writing mode, a clicking mode and a line drawing mode. Wherein the writing mode is writing operation by a finger or a touch pen, and in one embodiment, the writing mode comprises a palm touch prevention writing mode; and in the clicking mode, clicking operation is performed by a finger or a touch pen, and in the line drawing mode, drawing assistance is performed.
In an embodiment, please refer to fig. 4, fig. 4 is a flowchart illustrating a step of determining a target touch mode corresponding to the normal touch point in the embodiment of the present application, and the touch screen touch mode switching method includes steps S401 to S403:
s401, comparing the normal touch point information corresponding to the normal touch point with the historical touch behavior characteristics of the user to obtain a plurality of target touch modes corresponding to the normal touch point information;
s402, judging whether a touch mode switching condition for switching from the initial touch mode to any one of the target touch modes exists or not according to the target touch mode corresponding to the normal touch point information and the initial touch mode and in combination with a preset touch mode switching condition;
S403, if yes, switching the touch screen into a corresponding target touch mode; if not, maintaining the initial touch mode.
In this embodiment, the determining the target touch mode corresponding to the normal touch point compares the initial touch mode and the normal touch point information of the touch screen with the historical touch behavior characteristics of the user to obtain the target touch mode, determines the target touch mode by combining the initial touch mode and a preset touch mode switching condition, and if a group of touch mode switching conditions for switching the initial touch mode to the target touch mode exist, switches the initial touch mode to the target touch mode. According to the method and the device, the target touch mode to be switched is judged in two steps through the historical touch behavior characteristics of the user and the touch mode switching conditions, so that the switching accuracy is further ensured. Meanwhile, the historical touch behavior characteristic of the user is used as a judging condition, and the judging condition of the touch mode switching can be adjusted in real time, so that the touch mode switching is more in line with the thought of the user, and meanwhile, the historical touch behavior is adopted, so that the touch mode switching becomes more accurate along with the increase of the use time of the user, and the use requirement of the user is met.
For step S401, comparing the normal touch point information corresponding to the normal touch point with the historical touch behavior characteristics of the user, and obtaining a plurality of target touch modes corresponding to the normal touch point information;
the historical touch behavior characteristics are touch point information generated in the process of using the touch screen by a user and touch modes corresponding to the touch point information. In one embodiment, the historical touch behavior feature includes a plurality of target touch modes, and a touch point feature parameter corresponding to each target touch mode, where the feature parameter includes one or more combinations of a touch point area, a touch point shape, a touch point number, a touch point position, a touch point moving speed, a touch point shielding light number, a touch point shielding light depth, a touch point track, and a touch point appearance duration. And judging the switching of the touch modes through the historical touch behavior characteristics, so that the method and the device are more in line with the use habit of the user, and the switching result is more accurate.
In one embodiment, please refer to fig. 5, fig. 5 is a flowchart illustrating a step of determining a target touch mode corresponding to the normal touch point to obtain the target touch mode according to an embodiment of the present application; the step S401 includes the steps of:
S501, acquiring current touch point characteristic parameters according to the normal touch point information;
s502, comparing the current touch point characteristic parameters with the touch point characteristic parameters in the historical touch behavior characteristics;
s503, if the normal touch point characteristic parameter is matched with the corresponding touch point characteristic parameter, taking the target touch mode corresponding to the touch point characteristic parameter as the target touch mode corresponding to the normal touch point information.
For step S501, obtaining normal touch point feature parameters according to the normal touch point information;
and acquiring current touch point characteristic parameters from the acquired normal touch point information, namely acquiring one or more groups of touch point characteristic parameters according to the touch point area, the touch point shape, the touch point number, the touch point position, the touch point moving speed, the touch point shielding light number, the touch point shielding light depth, the touch point track and the touch occurrence time length in the normal touch point information.
For step S502, comparing the normal touch point feature parameter with the touch point feature parameter in the historical touch behavior feature;
and comparing the current touch point characteristic parameters with the touch point characteristic parameters in the historical touch behavior characteristics, so as to obtain a target touch mode corresponding to the normal touch point characteristic parameters.
In one embodiment, comparing the normal touch point characteristic parameter with the touch point characteristic parameter in the historical touch behavior characteristic includes the following comparison:
if the touch point shape of the normal touch point characteristic parameter is matched with the touch point shape corresponding to the writing mode or the clicking mode in the touch point characteristic parameter in the historical touch behavior characteristic, the target touch mode comprises a writing mode and a clicking mode;
if the touch point moving speed of the normal touch point characteristic parameter is not less than the touch point moving speed in the touch point characteristic parameter in the historical touch behavior characteristic, the target touch mode comprises a writing mode;
if the touch point moving distance of the normal touch point characteristic parameter is not smaller than the touch point moving distance of the touch point characteristic parameter in the historical touch behavior characteristic, the target touch mode comprises a writing mode and a line drawing mode;
and if the touch point area of the normal touch point characteristic parameter is not smaller than the touch point area corresponding to the writing mode or the line drawing mode in the touch point characteristic parameter in the historical touch behavior characteristic, and the touch point moving distance of the normal touch point characteristic parameter is not smaller than the touch point moving distance in the touch point characteristic parameter in the historical touch behavior characteristic, the target touch mode comprises a writing mode and a line drawing mode.
And when the characteristic parameters are compared, comparing and judging a target touch mode corresponding to the normal touch point characteristic parameters by using one or more than one comparison modes according to the normal touch point characteristic parameters.
For step S503, if the current touch point feature parameter matches the corresponding touch point feature parameter, taking the target touch mode corresponding to the touch point feature parameter as the target touch mode corresponding to the normal touch point information;
and according to the touch point characteristic parameters in the history touch behavior characteristics matched with the normal touch point characteristic parameters in the step S502, obtaining a target touch mode corresponding to the touch point characteristic parameters in the history touch behavior characteristics as a target touch mode corresponding to the normal touch point characteristic parameters, namely, a target touch mode corresponding to the normal touch point information.
In this embodiment, by comparing the normal touch point information with the historical touch behavior characteristics, one or more target touch modes are obtained, and the touch point characteristic parameters generated by using the touch screen in the past and the corresponding touch modes are compared, so that the obtained target touch modes are more in line with the use habit of the user, and the accuracy of touch mode switching is improved.
For step S402, according to the target touch mode corresponding to the normal touch point information and the initial touch mode, in combination with a preset touch mode switching condition, whether a touch mode switching condition for switching from the initial touch mode to any one of the target touch modes exists is determined;
the initial touch mode is a working state of the touch screen before the current touch point is detected, and the preset touch switching condition is a judging condition for judging whether the touch mode is switched in advance.
In one embodiment, the touch switching condition includes at least one of the following switching conditions:
if the target touch mode comprises a click mode and a writing mode, the initial touch mode is the writing mode, and the touch modes in a preset time period before the current moment are all writing modes, the touch screen is switched to the writing mode;
and if the target touch mode comprises a writing mode and a line drawing mode, the initial touch mode is the line drawing mode, and the touch modes in a preset time period before the current moment are all the line drawing modes, switching the touch screen into the line drawing mode.
In this embodiment, after the target touch mode corresponding to the normal touch point information is acquired, the acquired initial touch mode is combined, and according to a preset touch mode switching condition, the touch mode to be switched to is determined. Wherein the preset time period may be a period of time before the normal touch point information is detected, which is set in advance, and in one embodiment, the preset time period may be 5 minutes. The usage period may be a time from a start of using the touch screen or an account registration time of the user to a time when normal touch point information is detected. The initial touch mode of a preset time period before normal touch point information is detected and/or the touch mode of the use time period content of the user are combined with the target touch mode corresponding to the normal touch point information and the set judgment conditions in the embodiment are combined to judge the target touch mode, so that the accuracy of judging the target touch mode is improved, and the obtained target touch mode is more in line with the state needing to be switched under the current use condition of the user.
For step S403, if yes, switching the touch screen to the corresponding target touch mode; if not, maintaining the initial touch mode.
Through steps S401-S402, if the target touch mode is acquired, the touch screen switches the touch mode to the target touch mode, and if the target touch mode is not acquired, the initial touch mode is maintained.
After step S403 is performed, the initial touch mode is changed to the target touch mode.
In this embodiment, the accuracy of touch mode switching is ensured by using the historical touch behavior feature and the preset touch mode switching condition to determine the target touch mode to be switched by the touch screen. Meanwhile, the target touch mode is judged by using the historical touch behavior characteristics, so that the obtained target touch mode is more in accordance with the use habit of a user, and the switching condition of the preset touch mode is combined, so that the switched target touch mode is more accurate, switching errors are reduced, and the problems of being inconsistent with the use idea of the user and the like are solved.
In one embodiment, please refer to fig. 6, fig. 6 is a flowchart illustrating steps for determining that the historical touch behavior feature is obtained in the target touch mode corresponding to the normal touch point according to the embodiment of the present application; the historical touch behavior characteristics are obtained, and the method comprises the following steps:
S601, recording corresponding touch point characteristic parameters of a user in various touch modes;
s602, counting occurrence probabilities of different values of corresponding touch point characteristic parameters under various touch modes;
s603, classifying corresponding numerical values of the characteristic parameters according to occurrence probabilities of different data of the characteristic parameters of the touch points in various touch modes, and correspondingly matching classification results with various target touch modes.
For step S601, corresponding touch point feature parameters of the user in various touch modes are recorded;
and storing and recording the touch mode and the corresponding touch point characteristic parameters generated by the user in the using process, and acquiring the historical touch behavior characteristics to judge the touch mode.
For step S602, statistics is performed on occurrence probabilities of different values of the corresponding touch point feature parameters in various touch modes;
and carrying out statistical calculation on different values of the touch point characteristic parameters in various touch modes, so as to obtain the occurrence probability of the different values of the corresponding touch point characteristic parameters in various touch modes. In one embodiment, the probability of occurrence of different values of the corresponding touch point characteristic parameters in the various touch modes can be calculated by a method of calculating a mean square error and a mean value.
For step S603, according to the occurrence probabilities of different data of the characteristic parameters of the touch point in various touch modes, classifying corresponding values of the characteristic parameters, and correspondingly matching the classification result with various target touch modes;
in one embodiment, the method of maximum likelihood estimation or bayesian classification is used for estimating parameters, the probability is used for representing all types of uncertainty by combining the touch pattern in the historical touch behavior characteristics with the target touch pattern and the new probability distribution obtained in the step S602, the probability distribution of the characteristic parameters corresponding to the touch pattern is obtained, the characteristic parameters and the corresponding touch patterns are finally stored as the historical touch behavior characteristics, the maximum likelihood estimation is used for estimating parameters by adopting the maximum likelihood principle, and the bayesian classification is used for representing all types of uncertainty by using probability, and the data classification is realized by using probability rules in learning or reasoning.
After step S403 is performed, the target touch mode and the touch point feature parameters corresponding to the target touch mode may be saved to the historical touch behavior feature, so that the touch point feature parameters of the recording user in the corresponding touch mode are changed;
The probability of occurrence of different values of the corresponding touch point characteristic parameters under various touch modes is reckoned;
and reclassifying the corresponding numerical values of the touch point characteristic parameters, and correspondingly matching reclassifying results with various target touch modes.
The historical touch behavior characteristics are obtained according to the using habit of a user, and after each touch mode is switched, the historical touch behavior characteristics are further updated according to the target touch mode and the touch point characteristic parameters corresponding to the target touch mode, so that the accuracy of the parameters in the historical touch behavior characteristics is improved, and the accuracy of the identified target touch mode is further ensured when the target touch mode is judged. And as the use time of the user increases, the historical touch behavior characteristics more conform to the use habit of the user, so that the target touch mode acquired according to the historical touch behavior characteristics more conforms to the use habit of the user.
In this embodiment, the obtained normal touch point information and the target touch mode are used to update the historical touch behavior feature, so that accuracy of data of the historical touch behavior feature is improved, and the target touch mode obtained by combining the preset touch mode switching condition after the judgment of the historical touch behavior feature is more accurate, and accords with the use habit of a user. And as the use time of the user increases, the data accuracy of the historical touch behavior characteristics can be further improved, so that the accuracy of acquiring the target touch mode is further improved, and the use habit of the user is more met.
In one embodiment, before the step of determining that the touch point is a touch point to be determined or a normal touch point, the method further includes the steps of:
if the touch point information meets the pre-examination condition, judging the touch point as a touch point to be determined or a normal touch point;
and if the touch point information does not accord with the pre-examination condition, reporting the touch point information as an invalid touch point.
The pre-examination condition is used for judging whether the touch point is a real touch point, in one embodiment, the pre-examination condition comprises a touch size threshold, a moving distance threshold and a moving speed threshold, whether the touch point information accords with the pre-examination condition is judged, namely, the touch size, the moving distance and the moving speed in the touch point information are compared with the pre-examination condition, and if the touch point information is in the range of the pre-examination condition, the touch point information accords with the pre-examination condition.
In this embodiment, for the touch point information meeting the pre-examination condition, further determining that the touch point is a touch point to be determined or a normal touch point; and for the touch point information which does not meet the pre-examination condition, reporting the touch point information as an invalid touch point, and judging the target touch mode.
And filtering the touch point information by using the pre-examination condition, so that a part of touch points with obvious problems are removed, and the judging efficiency of the touch point information is improved.
According to the touch mode switching method, the touch points are divided into the touch points to be determined and the normal touch points, and judgment is carried out respectively; the touch point information is adopted, or historical touch behavior characteristics and touch mode switching conditions are combined to judge whether the touch mode needs to be switched and which touch mode the touch mode is switched to. The historical touch behavior characteristics are related to the use habit of the user, and the finally acquired target touch mode is further used for updating the historical touch behavior characteristics. In the process, the judgment is carried out through the historical touch behavior characteristics generated by the use habit of the user, so that the judgment result is more suitable for the current use requirement of the user, meanwhile, the historical touch behavior characteristics are updated through the judgment result, the accuracy of the judgment condition is improved, a virtuous circle is formed between the two, and the touch mode is switched more accurately along with the increase of the use time.
Referring to fig. 7, fig. 7 is a schematic diagram of a touch mode switching device for a touch screen according to an embodiment of the present application, and the present application further provides a touch mode switching device for a touch screen, including:
the information acquisition module 11 is used for acquiring normal touch point information of the touch screen;
the touch point judging module 12 is configured to judge that the touch point is a touch point to be determined or a normal touch point;
the target touch mode judging module 13 is configured to judge a target touch mode corresponding to the touch point to be determined if the touch point is the touch point to be determined, where the target touch mode corresponding to the touch point to be determined includes an eraser or an anti-false touch; and if the touch point is a normal touch point, judging a target touch mode corresponding to the normal touch point.
The touch screen touch mode switching device and the touch screen touch mode switching method described in the above embodiments belong to a unified application concept, and functions implemented by related modules can refer to corresponding steps of the touch screen touch mode switching method described in the above embodiments, and are not described again.
Referring to fig. 8, fig. 8 is a schematic diagram of a computer device for switching touch modes of a touch screen according to an embodiment of the application. As shown in fig. 5, the computer device 21 includes: a processor 211, a memory 212 and a computer program 213 stored in said memory 212 and executable on said processor 211, for example: a touch mode switching program of the touch screen; execution of the computer program 213 by the processor 211 may implement the touch screen touch mode switching method described in the above embodiments.
Wherein the processor 211 may include one or more processing cores. The processor 211 performs various functions of the computer device 21 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 212, and invoking data in the memory 212, using various interfaces and lines connecting various parts within the computer device 21, alternatively, the processor 211 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programble Logic Array, PLA). The processor 211 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the touch display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 211 and may be implemented by a single chip.
The Memory 212 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 212 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 212 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 212 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the various method embodiments described above, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 212 may also optionally be at least one memory device located remotely from the aforementioned processor 211.
The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executed by a method step of the foregoing embodiment, and a specific execution process may refer to a specific description of the foregoing embodiment, and will not be repeated herein.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention.
Claims (17)
1. A touch mode switching method of a touch screen is characterized by comprising the following steps of:
acquiring touch point information of a touch screen;
judging the touch point as a touch point to be determined or a normal touch point according to the touch point information;
if the touch point is a touch point to be determined, judging a target touch mode corresponding to the touch point to be determined, wherein the target touch mode corresponding to the touch point to be determined comprises an eraser mode or a palm anti-false touch mode, and switching to the target touch mode corresponding to the touch point to be determined;
and if the touch point is a normal touch point, switching to a target touch mode corresponding to the normal touch point.
2. The touch screen touch mode switching method according to claim 1, wherein the determining whether the touch point is a touch point to be determined or a normal touch point comprises the steps of:
Judging whether the area of the touch point in the touch point information exceeds a preset touch point area threshold value, if so, determining that the touch point is to be determined, otherwise, determining that the touch point is a normal touch point.
3. The method for switching a touch mode of a touch screen according to claim 1, wherein if the touch point is a touch point to be determined, determining a target touch mode corresponding to the touch point to be determined comprises the following steps:
if handwriting touch points exist on the periphery of the touch point to be determined, the target touch mode corresponding to the touch point to be determined is a palm anti-false touch mode;
and if the handwriting touch points do not exist around the touch points to be determined, the target touch mode corresponding to the touch points to be determined is an eraser mode.
4. The method for switching a touch mode of a touch screen according to claim 1, wherein if the touch point is a touch point to be determined, determining a target touch mode corresponding to the touch point to be determined comprises the following steps:
if the initial touch mode is a writing mode and the touch modes in a preset time period before the current moment are all writing modes, the target touch mode corresponding to the touch point to be determined is a palm anti-false touch mode, wherein the initial touch mode is the touch mode corresponding to the touch screen before the touch point information is acquired;
If the initial touch mode is a palm anti-false touch mode and the touch modes in a preset time period before the current moment are all the palm anti-false touch modes, the touch screen is kept in the palm anti-false touch mode;
and if the palm anti-false touch mode is not switched in the using time period before the current moment, the target touch mode corresponding to the touch point to be determined is an eraser mode.
5. The method for switching a touch mode of a touch screen according to claim 3 or 4, further comprising the steps of, after switching the touch mode to the corresponding target touch mode:
if the target touch mode is an eraser mode, acquiring the touch points to be determined and the touch points around the touch points to be determined, uploading the touch points to be determined, and merging or filtering the touch points around the touch points to be determined;
and if the target touch mode is a palm anti-false touch mode, acquiring the touch points to be determined and handwriting touch points around the touch points to be determined, uploading the handwriting touch points, and shielding other touch points except the handwriting touch points.
6. The method for switching a touch mode of a touch screen according to any one of claims 1 to 4, wherein if the touch point is a normal touch point, determining a target touch mode corresponding to the normal touch point includes the following steps:
Comparing the normal touch point information corresponding to the normal touch point with the historical touch behavior characteristics of the user to obtain a plurality of target touch modes corresponding to the normal touch point information;
judging whether a touch mode switching condition for switching from the initial touch mode to any one of the target touch modes exists or not according to a target touch mode and an initial touch mode corresponding to the normal touch point information and a preset touch mode switching condition, wherein the initial touch mode is a touch mode corresponding to the touch screen before the touch point information is acquired;
if yes, switching the touch screen to the corresponding target touch mode; if not, maintaining the initial touch mode.
7. The touch screen touch mode switching method according to claim 6, wherein:
after switching the touch screen to the corresponding target touch mode, the method further comprises the following steps:
and updating the initial touch mode to the corresponding target touch mode.
8. The touch screen touch mode switching method according to claim 6, wherein:
the historical touch behavior characteristics of the user comprise a plurality of target touch modes and touch point characteristic parameters corresponding to each target touch mode, wherein the touch point characteristic parameters comprise one or more than two combinations of touch point area, touch point shape, touch point number, touch point position, touch point moving speed, touch point shielding ray number, touch point shielding ray depth, touch point track and touch point appearance duration;
The target touch modes comprise a writing mode, a clicking mode and a line drawing mode, and each target touch mode corresponds to a group of touch point characteristic parameters.
9. The touch screen touch mode switching method according to claim 8, wherein comparing the normal touch point information with the historical touch behavior characteristics of the user, and obtaining a plurality of target touch modes corresponding to the normal touch point information comprises the following steps:
acquiring current touch point characteristic parameters according to the normal touch point information;
comparing the current touch point characteristic parameters with touch point characteristic parameters in the historical touch behavior characteristics;
and if the current touch point characteristic parameters are matched with the corresponding touch point characteristic parameters, taking the target touch mode corresponding to the touch point characteristic parameters as the target touch mode corresponding to the normal touch point information.
10. The touch screen touch mode switching method of claim 9, wherein the step of comparing the normal touch point characteristic parameter with the touch point characteristic parameter in the historical touch behavior characteristic comprises at least one of:
If the touch point shape of the normal touch point characteristic parameter is matched with the touch point shape corresponding to the writing mode or the clicking mode in the touch point characteristic parameter in the historical touch behavior characteristic, the target touch mode comprises a writing mode and a clicking mode;
if the touch point moving speed of the normal touch point characteristic parameter is not less than the touch point moving speed in the touch point characteristic parameter in the historical touch behavior characteristic, the target touch mode comprises a writing mode;
if the touch point moving distance of the normal touch point characteristic parameter is not smaller than the touch point moving distance of the touch point characteristic parameter in the historical touch behavior characteristic, the target touch mode comprises a writing mode and a line drawing mode;
and if the touch point area of the normal touch point characteristic parameter is not smaller than the touch point area corresponding to the writing mode or the line drawing mode in the touch point characteristic parameter in the historical touch behavior characteristic, and the touch point moving distance of the normal touch point characteristic parameter is not smaller than the touch point moving distance in the touch point characteristic parameter in the historical touch behavior characteristic, the target touch mode comprises a writing mode and a line drawing mode.
11. The touch screen touch mode switching method of claim 6, wherein the preset touch mode switching conditions include at least one of the following switching conditions:
if the target touch mode comprises a click mode and a writing mode, the initial touch mode is the writing mode, and the touch modes in a preset time period before the current moment are all writing modes, the touch screen is switched to the writing mode;
and if the target touch mode comprises a writing mode and a line drawing mode, the initial touch mode is the line drawing mode, and the touch modes in a preset time period before the current moment are all the line drawing modes, switching the touch screen into the line drawing mode.
12. The touch screen touch mode switching method of claim 6, further comprising the step of obtaining the historical touch behavior feature:
recording corresponding touch point characteristic parameters of a user in various touch modes;
counting occurrence probabilities of different values of corresponding touch point characteristic parameters under various touch modes;
and classifying the corresponding values of the touch point characteristic parameters according to the occurrence probabilities of different values of the touch point characteristic parameters in various touch modes, and correspondingly matching the classification results with various target touch modes.
13. The touch screen touch mode switching method of claim 12, wherein: the method also comprises the steps of:
when the change of the touch point area, the touch point moving speed and the touch point shape of the user in the corresponding touch mode is recorded;
reckoning the occurrence probabilities of different values of the corresponding touch point area, the touch point moving speed and the touch point shape under various touch modes;
and reclassifying the corresponding numerical values of the touch point area, the touch point moving speed and the touch point shape, and correspondingly matching reclassifying results with various target touch modes.
14. The method for switching touch modes of a touch screen according to claim 1, further comprising the steps of, before the step of determining that the touch point is a touch point to be determined or a normal touch point:
if the touch point information meets the pre-examination condition, judging the touch point as a touch point to be determined or a normal touch point;
and if the touch point information does not accord with the pre-examination condition, reporting the touch point information as an invalid touch point.
15. A touch screen touch mode switching device, comprising:
the information acquisition module is used for acquiring normal touch point information of the touch screen;
The touch point judging module is used for judging whether the touch point is a touch point to be determined or a normal touch point;
the target touch mode judging module is used for judging a target touch mode corresponding to the touch point to be determined if the touch point is the touch point to be determined, wherein the target touch mode corresponding to the touch point to be determined comprises an eraser or an anti-false touch; and if the touch point is a normal touch point, judging a target touch mode corresponding to the normal touch point.
16. A computer device, comprising: a processor, a memory and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 14 when the computer program is executed.
17. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310427780.7A CN116661618A (en) | 2023-04-19 | 2023-04-19 | Touch mode switching method and device for touch screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310427780.7A CN116661618A (en) | 2023-04-19 | 2023-04-19 | Touch mode switching method and device for touch screen |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116661618A true CN116661618A (en) | 2023-08-29 |
Family
ID=87721406
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310427780.7A Pending CN116661618A (en) | 2023-04-19 | 2023-04-19 | Touch mode switching method and device for touch screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116661618A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117032500A (en) * | 2023-10-08 | 2023-11-10 | 广州众远智慧科技有限公司 | Touch recognition method and device for infrared touch equipment, storage medium and equipment |
-
2023
- 2023-04-19 CN CN202310427780.7A patent/CN116661618A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117032500A (en) * | 2023-10-08 | 2023-11-10 | 广州众远智慧科技有限公司 | Touch recognition method and device for infrared touch equipment, storage medium and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11416142B2 (en) | Dynamic soft keyboard | |
EP3167352B1 (en) | Touch classification | |
JP2018524734A (en) | System for recognizing input of multiple objects, method and product therefor | |
CN109753179B (en) | User operation instruction processing method and handwriting reading equipment | |
KR102463657B1 (en) | Systems and methods for recognizing multi-object structures | |
CN108235747A (en) | Edge false-touch prevention method, touch control equipment and storage medium | |
CN108108117B (en) | Screen capturing method and device and terminal | |
CN116661618A (en) | Touch mode switching method and device for touch screen | |
CN111625157A (en) | Fingertip key point detection method, device, equipment and readable storage medium | |
CN108845747A (en) | A kind of Touch-control error prevention method, apparatus and terminal device | |
CN104915009A (en) | Gesture prediction method and system | |
CN108846339B (en) | Character recognition method and device, electronic equipment and storage medium | |
US20140232672A1 (en) | Method and terminal for triggering application programs and application program functions | |
CN110850982A (en) | AR-based human-computer interaction learning method, system, device and storage medium | |
CN112163400B (en) | Information processing method and device | |
KR102310385B1 (en) | System and method for superimposed handwriting recognition technology | |
CN109710111B (en) | False touch prevention method and electronic equipment | |
CN115793893A (en) | Touch writing handwriting generation method and device, electronic equipment and storage medium | |
US20120299837A1 (en) | Identifying contacts and contact attributes in touch sensor data using spatial and temporal features | |
CN111124222B (en) | Input switching method and device, electronic equipment and storage medium | |
CN115471852A (en) | Touch recognition method, touch device, storage medium, and computer device | |
CN111694451A (en) | Operation data processing method, device, equipment and storage medium | |
CN106293304B (en) | Interface operation method and device | |
WO2018197889A1 (en) | Method and apparatus for vehicle damage mapping | |
CN116360623A (en) | Touch identification method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |