WO2023016076A1 - Control method for terminal touch screen, terminal device, and storage medium - Google Patents

Control method for terminal touch screen, terminal device, and storage medium Download PDF

Info

Publication number
WO2023016076A1
WO2023016076A1 PCT/CN2022/097915 CN2022097915W WO2023016076A1 WO 2023016076 A1 WO2023016076 A1 WO 2023016076A1 CN 2022097915 W CN2022097915 W CN 2022097915W WO 2023016076 A1 WO2023016076 A1 WO 2023016076A1
Authority
WO
WIPO (PCT)
Prior art keywords
trigger condition
current gesture
gesture information
current
touch
Prior art date
Application number
PCT/CN2022/097915
Other languages
French (fr)
Chinese (zh)
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 WO2023016076A1 publication Critical patent/WO2023016076A1/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
    • 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]

Definitions

  • the present disclosure relates to the field of computers, and in particular, to a method for controlling a terminal touch screen, a terminal device, and a storage medium.
  • the touch screen is mainly divided into a resistive touch screen and a capacitive touch screen.
  • the resistive touch screen is controlled by pressure sensing, and the voltage value of the pressed point on the touch screen is converted into a coordinate value in a rectangular area.
  • the current electronic terminal judges whether the touch point of the user's touch screen is a valid touch event point to be reported according to the trigger condition set by the manufacturer.
  • the present disclosure provides a method for controlling a terminal touch screen, a terminal device and a storage medium.
  • the present disclosure provides a method for controlling a touch screen of a terminal.
  • the method includes: when detecting a user's current gesture operation on the touch screen, acquiring current gesture information corresponding to the current gesture operation; condition and/or the target trigger condition, determine that the current gesture operation is a valid gesture operation, and trigger the corresponding response operation; wherein, the initial trigger condition includes the default trigger condition set at the factory, and the target trigger condition includes A trigger condition generated based on the user's historical gesture operations.
  • the present disclosure also provides a terminal device, including a touch screen, a processor, and a memory; the touch screen is coupled to the processor; the memory is used to store programs; the processor is used to execute the The above program is executed and the method for controlling the touch screen of the terminal as described above is realized when the program is executed.
  • the present disclosure also provides a storage medium for readable storage, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned A method for controlling the terminal touch screen.
  • FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for controlling a terminal touch screen provided by an embodiment of the present disclosure
  • Fig. 3 is a schematic flowchart of comparing the current gesture information with the initial trigger condition provided by an embodiment of the present disclosure
  • Fig. 4 is a schematic flowchart of a step of comparing the current gesture information with the target trigger condition provided by an embodiment of the present disclosure.
  • Embodiments of the present disclosure provide a method for controlling a terminal touch screen, a terminal device, and a storage medium.
  • the control method of the terminal touch screen can be applied to the terminal device, by comparing the current gesture information corresponding to the user's current gesture operation with the initial trigger condition set at the factory and the target trigger condition generated based on the user's operating habits, Prevent misjudgment that the current gesture operation is an invalid gesture operation when the current gesture information does not meet the initial trigger conditions because the gesture operation habit of the user operating the touch screen is different from the gesture operation set at the factory, and further combine the current gesture information with the target trigger Conditions are compared to determine whether the current gesture operation is a valid gesture operation, which improves the sensitivity of the touch screen.
  • FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure.
  • the terminal device 100 may include a processor 101, a memory 102, and a touch screen 103, wherein the processor 101 and the memory 102 may be connected through a bus, such as any applicable bus such as an I2C (Inter-integrated Circuit) bus.
  • the screen is coupled with the processor.
  • the memory 102 may include a non-volatile storage medium and an internal memory.
  • Non-volatile storage media can store operating systems and computer programs.
  • the computer program includes program instructions. When the program instructions are executed, the processor 101 may execute any method for controlling the touch screen of the terminal.
  • the processor 101 is used to provide calculation and control capabilities, and support the operation of the entire terminal device 100 .
  • the processor 101 can be a central processing unit (Central Processing Unit, CPU), and the processor can also be other general processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (application specific integrated circuits, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the processor 101 is configured to run a computer program stored in the memory 102, and implement the following steps when executing the computer program: when the current gesture operation of the user on the touch screen is detected, obtain the current gesture operation corresponding current gesture information; when the current gesture information meets the initial trigger condition and/or the target trigger condition, determine that the current gesture operation is a valid gesture operation, and trigger the corresponding response operation; wherein, the initial trigger condition includes The target trigger condition includes a trigger condition generated based on the user's historical gesture operations.
  • the processor 101 is further configured to implement the following steps when executing the computer program: when the current gesture information does not meet the initial trigger condition and the current gesture information does not meet the target trigger condition, It is determined that the current gesture operation is a false touch gesture operation.
  • the processor 101 determines that the current gesture operation is a false touch gesture when the current gesture information does not meet the initial trigger condition and the current gesture information does not meet the target trigger condition. After the operation, it is also used to realize: judging whether the current gesture information exists in the false touch gesture information database; if the current gesture information exists in the false touch gesture information database, then in the false touch gesture information database, Counting the number of false touches corresponding to the current gesture information, and updating the target trigger condition according to the current gesture information when the number of false touches corresponding to the current gesture information reaches a preset threshold of false touch times.
  • the processor 101 after the processor 101 detects the current gesture operation of the user on the touch screen, after acquiring the current gesture information corresponding to the current gesture operation, it is further configured to: according to the initial trigger condition, Determine at least two first effective touch points among the touch points of the current gesture information, and calculate the first slope of the line between the two first effective touch points; combine the first slope with the initial trigger The first slope threshold in the condition is compared to determine whether the current gesture information meets the initial trigger condition.
  • the processor 101 when the touch screen is a flexible screen, after the processor 101 realizes judging whether the current gesture information exists in the false touch gesture information database, it is further configured to: Determine at least two of the first effective touch points in the points, and calculate the initial slope of the line between the two first effective touch points; obtain the current bending angle of the touch screen, and calculate the current bending angle according to the current bending angle correcting the initial slope, and generating the first slope.
  • the processor 101 after the processor 101 detects the current gesture operation of the user on the touch screen, after obtaining the current gesture information corresponding to the current gesture operation, it is further configured to: according to the target trigger condition, in the Determine at least two second effective touch points among the touch points of the current gesture information, and calculate the second slope of the line between the two second effective touch points; combine the second slope with the target trigger The second slope threshold in the condition is compared to determine whether the current gesture information meets the target trigger condition.
  • the processor 101 after the processor 101 detects the current gesture operation of the user on the touch screen, after obtaining the current gesture information corresponding to the current gesture operation, it is further configured to: according to each of the current gesture information Touching a point, determining the current sliding trajectory corresponding to the current gesture information; combining the current sliding trajectory with the first preset sliding trajectory in the initial trigger condition and/or the second preset sliding trajectory in the target trigger condition The trajectories are compared to determine whether the current gesture information meets the initial trigger condition and/or the target trigger condition.
  • the processor 101 when the current gesture information meets the initial trigger condition and/or the target trigger condition, the processor 101 further uses To achieve: when a trigger condition setting instruction is received or a false touch instruction is detected, the user's historical gesture operations are acquired, and the target trigger condition is generated based on historical gesture information corresponding to the historical gesture operations.
  • FIG. 2 is a schematic flowchart of a method for controlling a terminal touch screen provided by an embodiment of the present disclosure.
  • the method for controlling the terminal touch screen is applied to a terminal device, and the terminal device includes a touch screen event collection component, a gesture learning component, and a gesture judgment and trigger component, and the touch screen event collection component is used to collect user touch capacitive or resistive touch screen triggers
  • the coordinate information of the event point that is, the touch point
  • the gesture learning component is used to generate a trigger condition that meets the user’s gesture operation habits based on the historical touch point collected by the touch screen event collection component and the corresponding judgment result of whether it is valid.
  • the gesture determination and trigger component is used to compare the current gesture information collected by the touch screen event collection component with the trigger condition generated based on the gesture learning component or the initial trigger condition set when the terminal leaves the factory, and determine whether The method for controlling the touch screen of the terminal includes step S10 to step S30 by triggering and responding to the corresponding gesture instruction.
  • Step S10 when a current gesture operation by the user on the touch screen is detected, current gesture information corresponding to the current gesture operation is acquired.
  • the current gesture information in addition to comparing the current gesture information corresponding to the user's current gesture operation with the initial trigger condition set at the factory, the current gesture information is further compared with the target trigger condition corresponding to the user. By comparison, the misjudgment caused by the user's operating habits is reduced, and the sensitivity of the touch screen is improved.
  • the gesture determining and triggering component acquires current gesture information corresponding to the current gesture operation when detecting the current gesture operation generated by the user touching the touch screen.
  • the current gesture information may be each touch point of the user on the touch screen (for example, may be the coordinates of each touch point), or may be a sliding track of the user on the touch screen.
  • the capacitive touch screen judges the touch point by sensing the capacitance change generated by the touch of the human body. It has two sets of signal lines: the driving line and the sensing line, the driving line emits signals, and the sensing line detects the change of capacitance value.
  • the finger touches the metal layer due to the existence of the electric field of the human body, the finger and the surface of the touch screen form a coupling capacitance.
  • the capacitance is a direct conductor, so the finger absorbs a small current from the contact point. Affects the coupling between two electrodes near the touch point, thereby changing the capacitance between these two electrodes.
  • the electrodes in the direction of the driving line send excitation signals in sequence, and all the electrodes in the direction of the sensing line receive signals at the same time, so that the change of the capacitance value at the intersection of all horizontal and vertical electrodes can be obtained, that is, the two-dimensional plane of the entire touch screen.
  • Capacitance according to the two-dimensional capacitance change data of the touch screen, the coordinates of each touch point can be calculated, so even if there are multiple touch points on the screen, the real coordinates of each touch point can be calculated. Therefore, the coordinates of each touch point of the current gesture operation can be acquired and calculated as the current gesture information.
  • FIG. 3 is a schematic flowchart of comparing the current gesture information with the initial trigger condition provided by an embodiment of the present disclosure, which may include the following steps S101 and S102 .
  • Step S101 determine at least two first effective touch points among the touch points in the current gesture information, and calculate a first slope of a line connecting the two first effective touch points .
  • the gesture determining and triggering component determines the corresponding touch point among the touch points of the current gesture information, that is, obtains the first touch point among the touch points of the current gesture information
  • One touch point and the second touch point are used as the first valid touch point. Then calculate the slope of the line between the first valid touch points as the first slope.
  • the touch screen event collection component sequentially adds each touch point corresponding to the current gesture operation to the touch point queue according to the touch sequence of the user, so as to record each touch point and the corresponding order of each touch point, and then the touch screen event
  • the collecting component reports the collected touch points and their corresponding sequence to the gesture determination and triggering component.
  • Step S102 comparing the first slope with a first slope threshold in the initial trigger condition to determine whether the current gesture information meets the initial trigger condition.
  • the gesture determination and triggering component calculates the first slope, it compares the first slope with the first slope threshold in the initial trigger condition, that is, in the first When a slope reaches the first slope threshold, it is determined that the current gesture information meets the initial trigger condition; when the first slope does not reach the first slope threshold, it is determined that the current gesture information does not meet the initial trigger condition; The initial trigger condition.
  • the touch screen is a flexible screen
  • at least two first effective touch points are determined in each touch point of the current gesture information, and the connection between the two first effective touch points is calculated.
  • the step of the first slope of the line includes: determining at least two first effective touch points in each touch point of the current gesture information, and calculating an initial slope of a line connecting the two first effective touch points ; Acquiring the current bending angle of the touch screen, correcting the initial slope according to the current bending angle, and generating the first slope.
  • the touch screen in this embodiment is a flexible screen
  • the bending angle of the touch screen is used as the gesture information parameter of the gesture operation.
  • slope thresholds corresponding to gesture information at different bending angles are different.
  • the curvature is denoted as C
  • the slope is denoted as K
  • the slope between the touch points corrected according to the bending angle is denoted as K*C.
  • the process of judging whether the current gesture information meets the initial trigger condition is: the gesture judging and triggering component obtains the slope of the line between the first valid touch points, such as the first touch point and the second The slope K1 of the line between the touch points, and obtain the current bending angle C1 of the touch screen when the user generates the current gesture operation, and correct the slope K1*C1 of the line connecting the first effective touch points according to the bending angle Compared with the first slope threshold K0*C0 in the initial trigger condition, if K1*C1 reaches K0*C0, it is determined that the current gesture information meets the initial trigger condition; if K1*C1 does not reach K0*C0 , it is determined that the current gesture information does not meet the initial trigger condition.
  • an error deviation rate denoted as V
  • the first slope threshold is a threshold range.
  • the threshold range corresponding to the first slope threshold is K*(1-V) ⁇ K*(1+V).
  • the first slope threshold corresponds to a threshold range of K*C*(1-V) ⁇ K*C*(1+v). That is, the first slope belongs to the threshold range corresponding to the first slope threshold, that is, the first slope reaches the first slope threshold.
  • FIG. 4 is a schematic flowchart of steps of comparing the current gesture information with the target trigger condition according to an embodiment of the present disclosure, which may include the following steps S103 and S104 .
  • Step S103 determine at least two second valid touch points in each touch point of the current gesture information, and calculate a second slope of a line connecting the two second valid touch points .
  • the gesture determination and trigger component determines according to the set sequence in the target trigger condition At least two touch points, such as the first touch point and the last touch point, determine the corresponding touch point among the touch points of the current gesture information, that is, obtain the first touch point among the touch points of the current gesture information touch points and the last touch point as the second valid touch point. Then calculate the slope of the line between the second valid touch points as the second slope.
  • the target trigger condition of the gesture determination and triggering component is that the slope between any two touch points in each touch point reaches the second slope, it calculates the difference between any two touch points in each touch point respectively. The slope between them, and take any two touch points in turn as the second valid touch points. Then, the slopes of the lines between the second effective touch points are sequentially calculated as the second slopes.
  • the gesture determination and triggering component can compare the current gesture information with the initial trigger condition and the target trigger condition at the same time; it can also first compare the current gesture information with the initial trigger condition , when the current gesture information does not meet the initial trigger condition, then compare the current gesture information with the target trigger condition.
  • the initial trigger condition may also be replaced by a target trigger condition conforming to the user's gesture operation habits, so as to directly compare the current gesture information with the target trigger condition.
  • the current gesture information meets any one of the initial trigger condition and the target trigger condition, it is determined that the current gesture operation is a valid gesture operation.
  • the current gesture information neither meets the initial trigger condition nor the target trigger condition, it is determined that the current gesture operation is an invalid gesture operation.
  • the current gesture operation before judging the validity of the current gesture operation based on the initial trigger condition and the target trigger condition, it further includes: when a trigger condition setting instruction is received or a false touch instruction is detected, acquiring The user's historical gesture operations, and based on historical gesture information corresponding to the historical gesture operations, generate the target trigger condition.
  • the user can set the trigger condition based on actual needs, that is, the gesture learning component is When receiving a trigger condition setting instruction triggered by a user setting operation, or when the gesture learning component detects a false touch instruction (also when the false touch instruction reaches a preset number of times), it can operate the corresponding gesture based on the history of each user.
  • the historical gesture information generates a trigger condition corresponding to each user as the target trigger condition.
  • the difference between the target trigger condition and the initial trigger condition may be that the effective touch point can be changed from a preset touch point to any two touch points in each touch point, and the first touch point in the initial trigger condition
  • the slope between the first touch point and the second touch point reaches the first slope threshold, and the slope between any two touch points among the touch points corresponding to the current gesture information in the target trigger condition reaches the first slope threshold.
  • Two slope thresholds may be the same as the second slope threshold, or the first slope threshold may be increased or decreased according to the user's actual operation data as the second slope threshold.
  • Step S104 comparing the second slope with a second slope threshold in the target trigger condition to determine whether the current gesture information meets the target trigger condition.
  • the gesture determination and triggering component calculates the second slope, it compares the second slope with the second slope threshold in the target trigger condition, that is, in the first When the second slope reaches the second slope threshold, it is determined that the current gesture information meets the target trigger condition; when the second slope does not reach the second slope threshold, it is determined that the current gesture information does not meet the target trigger condition.
  • the target trigger condition when the target trigger condition is that the slope between any two touch points among the touch points reaches the second slope, the slope between any two touch points among the touch points reaches the second slope threshold , it is determined that the current gesture information meets the target trigger condition; otherwise, it is determined that the current gesture information does not meet the target trigger condition.
  • the step of comparing the current gesture information with the initial trigger condition and/or the target trigger condition may further include: according to each touch point in the current gesture information, determining the current gesture information corresponding to the current gesture information. sliding track; comparing the current sliding track with the first preset sliding track in the initial trigger condition and/or the second preset sliding track in the target trigger condition, so as to judge the current gesture accordingly Whether the information meets the initial trigger condition and/or the target trigger condition.
  • the gesture determination and triggering component acquires each touch point corresponding to the current gesture information , and according to the touch points and the order of the touch points, the current sliding trajectory corresponding to the current gesture operation is fitted, and then the current sliding trajectory is compared with the preset trajectory in the initial trigger condition Comparison. If the current sliding track matches the preset track, it is determined that the current gesture information meets the initial trigger condition. If the current sliding track does not match the preset track, it is determined that the current gesture information does not meet the initial trigger condition.
  • the gesture learning component may adjust the preset trajectories in the initial trigger conditions to generate the target trigger conditions. If the current sliding trajectory matches the adjusted trajectory in the target trigger condition, it is determined that the current gesture information meets the target trigger condition. If the current sliding trajectory does not match the adjusted trajectory in the target trigger condition, it is determined that the current gesture information does not meet the target trigger condition.
  • Step S20 when the current gesture information meets the initial trigger condition and/or target trigger condition, determine that the current gesture operation is a valid gesture operation, and trigger a corresponding response operation; wherein, the initial trigger condition includes A predetermined default trigger condition, where the target trigger condition includes a trigger condition generated based on the user's historical gesture operations.
  • the gesture determining and triggering component determines that the current gesture information meets any one of the initial trigger condition or the target trigger condition, it determines that the current gesture operation is a valid gesture operation, And trigger the corresponding response operation, such as unlock operation or return operation.
  • the current gesture information after comparing the current gesture information with the initial trigger condition and/or the target trigger condition, it further includes: when the current gesture information does not meet the initial trigger condition and the current gesture When the information does not meet the target trigger condition, it is determined that the current gesture operation is a false touch gesture operation.
  • gesture determining and triggering component determines that the current gesture information neither meets the initial trigger condition nor the target trigger condition, it determines that the current gesture operation is an invalid gesture operation, and does not Respond to the current gesture operation described above.
  • a gesture error reminder message may be generated to remind the user why they are currently unresponsive.
  • the gesture information corresponding to the false touch gesture operation that is, the gesture information corresponding to the invalid gesture operation is counted, and the corresponding gesture information is generated according to the false touch gesture information.
  • Target trigger condition the gesture information corresponding to the false touch gesture operation
  • the step of determining that the current gesture operation is a false touch gesture operation when the current gesture information does not meet the initial trigger condition and the current gesture information does not meet the target trigger condition, It also includes: judging whether the current gesture information exists in the false touch gesture information database; if the current gesture information does not exist in the false touch gesture information database, adding the current gesture information to the false touch gesture information library.
  • the target trigger condition is updated according to the current gesture information.
  • the gesture determining and triggering component determines that the current gesture operation is false touch gesture information
  • the current gesture information is compared with the false touch gesture information database to determine the false touch gesture Whether the gesture information corresponding to the false touch gesture operation, that is, the current gesture information, has been recorded in the information database. If no current gesture information is recorded in the false touch gesture information library, adding the current gesture information to the false touch gesture information library.
  • the current gesture information has been recorded in the false touch gesture information library, update the number of false touches corresponding to the current gesture information, such as adding 1, and count the number of false touches corresponding to the current gesture information, if the When the number of false touches corresponding to the current gesture information reaches the preset threshold of false touch times, it means that the current gesture information is the gesture operation habit of the user, and the target trigger condition can be updated according to the current gesture information, that is, the current
  • the effective touch points in the gesture information and the slope values between the effective touch points are used as the target trigger condition, or the sliding track corresponding to each touch point in the current gesture information can be used as the target trigger condition.
  • the target trigger condition is generated or updated according to the gesture information with a large number of false touches in the false touch gesture information library, which not only improves the sensitivity of the touch screen, but also reduces the amount of gesture information to be analyzed, and improves the target. Generation efficiency of trigger conditions.
  • Embodiments of the present disclosure also provide a storage medium for readable storage, the storage medium stores a program, the program includes program instructions, and the processor executes the program instructions to implement the embodiments of the present disclosure A method for controlling the touch screen of any terminal provided.
  • the program is loaded by the processor, and may perform the following steps: when the current gesture operation of the user on the touch screen is detected, obtain the current gesture information corresponding to the current gesture operation; when the current gesture information meets the initial trigger condition and/or or a target trigger condition, determine that the current gesture operation is an effective gesture operation, and trigger a corresponding response operation; wherein, the initial trigger condition includes a default trigger condition set at the factory, and the target trigger condition includes The trigger conditions generated by the user's historical gesture operations.
  • the storage medium may be an internal storage unit of the terminal device in the foregoing embodiments, such as a hard disk or a memory of the terminal device.
  • the storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a smart memory card (Smart Media Card, SMC), a secure digital card (Secure Digital Card, SD Card ), Flash Card (Flash Card), etc.
  • This embodiment discloses a terminal touch screen control method, a terminal device and a storage medium.
  • current gesture information corresponding to the current gesture operation is acquired; in the current gesture information
  • the initial trigger condition and/or the target trigger condition are met, it is determined that the current gesture operation is a valid gesture operation, and a corresponding response operation is triggered; wherein the initial trigger condition includes a default trigger condition set at the factory, and the target The trigger condition includes a trigger condition generated based on the user's historical gesture operations.
  • the current gesture information corresponding to the user is compared with the default trigger condition set when the terminal leaves the factory, but also the current gesture information is further compared with the target trigger condition generated based on the user's gesture operation habits to prevent the The gesture operation habit of the user operating the touch screen is different from the gesture operation set at the factory, and when the current gesture information does not meet the initial trigger conditions, the current gesture operation is misjudged as an invalid gesture operation, which improves the sensitivity of the touch screen.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute.
  • Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit .
  • a processor such as a central processing unit, digital signal processor, or microprocessor
  • Such software may be distributed on storable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • storage medium includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. , removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Landscapes

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

Abstract

The present disclosure relates to the field of computers, and in particular to a control method for a terminal touch screen, a terminal device, and a storage medium. The control method for a terminal touch screen comprises: when a current gesture operation is detected, obtaining current gesture information corresponding to the current gesture operation; and when the current gesture information satisfies an initial trigger condition and/or a target trigger condition, determining the current gesture operation to be a valid gesture operation, and triggering a corresponding response operation, wherein the initial trigger condition comprises a default trigger condition set at the factory, and the target trigger condition comprises a trigger condition generated on the basis of a historical gesture operation of a user.

Description

终端触摸屏的控制方法、终端设备和存储介质Terminal touch screen control method, terminal device and storage medium
相关申请的交叉引用Cross References to Related Applications
本公开要求享有2021年08月09日提交的名称为“终端触摸屏的控制方法、终端设备和存储介质”的中国专利申请CN202110910544.1的优先权,其全部内容通过引用并入本公开中。This disclosure claims the priority of the Chinese patent application CN202110910544.1 filed on August 9, 2021, entitled "Terminal touch screen control method, terminal device and storage medium", the entire content of which is incorporated into this disclosure by reference.
技术领域technical field
本公开涉及计算机领域,尤其涉及一种终端触摸屏的控制方法、终端设备和存储介质。The present disclosure relates to the field of computers, and in particular, to a method for controlling a terminal touch screen, a terminal device, and a storage medium.
背景技术Background technique
随着科技的发展,基于触摸屏进行手势控制的全屏电子终端越来越普遍。而触摸屏主要分为电阻式触摸屏和电容式触摸屏,电阻式触摸屏利用压力感应进行控制,将触摸屏被按下点的电压值转换为矩形区域中的坐标值。目前的电子终端按照厂商出厂设定的触发条件判断用户触摸屏幕的触摸点是否为需上报的有效触摸事件点。但按照同一设定触发条件来判断用户是否进行有效触发手势,容易将与设定触发条件不完全相同的手势操作判定为无效手势操作,从而导致容易出现误判的情况,从而降低了电阻式触摸屏的灵敏度。With the development of science and technology, full-screen electronic terminals based on touch screens for gesture control are becoming more and more common. The touch screen is mainly divided into a resistive touch screen and a capacitive touch screen. The resistive touch screen is controlled by pressure sensing, and the voltage value of the pressed point on the touch screen is converted into a coordinate value in a rectangular area. The current electronic terminal judges whether the touch point of the user's touch screen is a valid touch event point to be reported according to the trigger condition set by the manufacturer. However, according to the same set trigger condition to judge whether the user performs a valid trigger gesture, it is easy to judge the gesture operation that is not exactly the same as the set trigger condition as an invalid gesture operation, which leads to a situation that is prone to misjudgment, thereby reducing the resistance of the resistive touch screen. sensitivity.
因此,如何提高电阻式触摸屏的灵敏度成为亟需解决的问题。Therefore, how to improve the sensitivity of the resistive touch screen becomes an urgent problem to be solved.
发明内容Contents of the invention
本公开提供了一种终端触摸屏的控制方法、终端设备和存储介质。The present disclosure provides a method for controlling a terminal touch screen, a terminal device and a storage medium.
本公开提供了一种终端触摸屏的控制方法,所述方法包括:在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息;在所述当前手势信息符合初始触发条件和/或目标触发条件时,确定所述当前手势操作为有效手势操作,并触发对应的响应操作;其中,所述初始触发条件包括出厂时设定的默认触发条件,所述目标触发条件包括基于所述用户的历史手势操作生成的触发条件。The present disclosure provides a method for controlling a touch screen of a terminal. The method includes: when detecting a user's current gesture operation on the touch screen, acquiring current gesture information corresponding to the current gesture operation; condition and/or the target trigger condition, determine that the current gesture operation is a valid gesture operation, and trigger the corresponding response operation; wherein, the initial trigger condition includes the default trigger condition set at the factory, and the target trigger condition includes A trigger condition generated based on the user's historical gesture operations.
本公开还提供了一种终端设备,包括触控屏、处理器和存储器;所述触控屏与所述处理器耦合连接;所述存储器用于存储程序;所述处理器,用于执行所述程序并在执行所述程序时实现如上所述的终端触摸屏的控制方法。The present disclosure also provides a terminal device, including a touch screen, a processor, and a memory; the touch screen is coupled to the processor; the memory is used to store programs; the processor is used to execute the The above program is executed and the method for controlling the touch screen of the terminal as described above is realized when the program is executed.
本公开还提供了一种存储介质,用于可读存储,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如上述的终端触摸屏的控制方法。The present disclosure also provides a storage medium for readable storage, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned A method for controlling the terminal touch screen.
以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。The foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
为了更清楚地说明本公开实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present disclosure. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.
图1是本公开实施例提供的一种终端设备的结构示意图;FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure;
图2是本公开实施例提供的一种终端触摸屏的控制方法的示意性流程图;FIG. 2 is a schematic flowchart of a method for controlling a terminal touch screen provided by an embodiment of the present disclosure;
图3是本公开实施例提供的一种将所述当前手势信息与所述初始触发条件进行比对的示意性流程图;Fig. 3 is a schematic flowchart of comparing the current gesture information with the initial trigger condition provided by an embodiment of the present disclosure;
图4是本公开实施例提供的一种将所述当前手势信息与所述目标触发条件进行比对的步骤的示意性流程图。Fig. 4 is a schematic flowchart of a step of comparing the current gesture information with the target trigger condition provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are part of the embodiments of the present disclosure, not all of them. Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present disclosure.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flow charts shown in the drawings are just illustrations, and do not necessarily include all contents and operations/steps, nor must they be performed in the order described. For example, some operations/steps can be decomposed, combined or partly combined, so the actual order of execution may be changed according to the actual situation.
本公开说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本公开。如在本公开说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.
本公开说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。The term "and/or" used in the present disclosure and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。The specific embodiments described here are only used to explain the present disclosure, not to limit the present disclosure.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本公开的说明,其本身没有特有的意义。因此,“模块”、“部件”或“单元”可 以混合地使用。In the subsequent description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating description of the present disclosure and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be mixedly used.
本公开的实施例提供了一种终端触摸屏的控制方法、终端设备和存储介质。其中,该终端触摸屏的控制方法可以应用于终端设备中,通过将用户的当前手势操作对应的当前手势信息与出厂时设定的初始触发条件以及基于用户操作习惯生成的目标触发条件进行比对,防止因用户操作触摸屏的手势操作习惯与出厂时设定的手势操作不同,而在当前手势信息不符合初始触发条件时导致当前手势操作为无效手势操作的误判,进一步将当前手势信息与目标触发条件进行比对,从而确定当前手势操作是否为有效手势操作,提高了触摸屏的灵敏度。Embodiments of the present disclosure provide a method for controlling a terminal touch screen, a terminal device, and a storage medium. Wherein, the control method of the terminal touch screen can be applied to the terminal device, by comparing the current gesture information corresponding to the user's current gesture operation with the initial trigger condition set at the factory and the target trigger condition generated based on the user's operating habits, Prevent misjudgment that the current gesture operation is an invalid gesture operation when the current gesture information does not meet the initial trigger conditions because the gesture operation habit of the user operating the touch screen is different from the gesture operation set at the factory, and further combine the current gesture information with the target trigger Conditions are compared to determine whether the current gesture operation is a valid gesture operation, which improves the sensitivity of the touch screen.
请参阅图1,图1是本公开实施例提供的一种终端设备的结构示意图。终端设备100可以包括处理器101、存储器102以及触摸屏103,其中,处理器101以及存储器102可以通过总线连接,该总线比如为I2C(Inter-integrated Circuit)总线等任意适用的总线,所述触控屏与所述处理器耦合连接。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure. The terminal device 100 may include a processor 101, a memory 102, and a touch screen 103, wherein the processor 101 and the memory 102 may be connected through a bus, such as any applicable bus such as an I2C (Inter-integrated Circuit) bus. The screen is coupled with the processor.
其中,存储器102可以包括非易失性存储介质和内存储器。非易失性存储介质可存储操作***和计算机程序。该计算机程序包括程序指令,该程序指令被执行时,可使得处理器101执行任意一种终端触摸屏的控制方法。Wherein, the memory 102 may include a non-volatile storage medium and an internal memory. Non-volatile storage media can store operating systems and computer programs. The computer program includes program instructions. When the program instructions are executed, the processor 101 may execute any method for controlling the touch screen of the terminal.
其中,处理器101用于提供计算和控制能力,支撑整个终端设备100的运行。Wherein, the processor 101 is used to provide calculation and control capabilities, and support the operation of the entire terminal device 100 .
其中,处理器101可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Wherein, the processor 101 can be a central processing unit (Central Processing Unit, CPU), and the processor can also be other general processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (application specific integrated circuits, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
在一实施例中,处理器101用于运行存储在存储器102中的计算机程序,并在执行计算机程序时实现如下步骤:在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息;在所述当前手势信息符合初始触发条件和/或目标触发条件时,确定所述当前手势操作为有效手势操作,并触发对应的响应操作;其中,所述初始触发条件包括出厂时设定的默认触发条件,所述目标触发条件包括基于所述用户的历史手势操作生成的触发条件。In one embodiment, the processor 101 is configured to run a computer program stored in the memory 102, and implement the following steps when executing the computer program: when the current gesture operation of the user on the touch screen is detected, obtain the current gesture operation corresponding current gesture information; when the current gesture information meets the initial trigger condition and/or the target trigger condition, determine that the current gesture operation is a valid gesture operation, and trigger the corresponding response operation; wherein, the initial trigger condition includes The target trigger condition includes a trigger condition generated based on the user's historical gesture operations.
在一个实施例中,处理器101在执行计算机程序时还用于实现如下步骤:在所述当前手势信息不符合所述初始触发条件、且所述当前手势信息不符合所述目标触发条件时,确定所述当前手势操作为误触手势操作。In one embodiment, the processor 101 is further configured to implement the following steps when executing the computer program: when the current gesture information does not meet the initial trigger condition and the current gesture information does not meet the target trigger condition, It is determined that the current gesture operation is a false touch gesture operation.
在一个实施例中,处理器101在实现在所述当前手势信息不符合所述初始触发条件、且 所述当前手势信息不符合所述目标触发条件时,确定所述当前手势操作为误触手势操作之后,还用于实现:判断误触手势信息库中是否存在所述当前手势信息;若所述误触手势信息库中存在所述当前手势信息,则在所述误触手势信息库中,统计所述当前手势信息对应的误触次数,并在所述当前手势信息对应的误触次数达到预设误触次数阈值时,根据所述当前手势信息更新所述目标触发条件。In one embodiment, the processor 101 determines that the current gesture operation is a false touch gesture when the current gesture information does not meet the initial trigger condition and the current gesture information does not meet the target trigger condition. After the operation, it is also used to realize: judging whether the current gesture information exists in the false touch gesture information database; if the current gesture information exists in the false touch gesture information database, then in the false touch gesture information database, Counting the number of false touches corresponding to the current gesture information, and updating the target trigger condition according to the current gesture information when the number of false touches corresponding to the current gesture information reaches a preset threshold of false touch times.
若所述误触手势信息库中不存在所述当前手势信息,则将所述当前手势信息添加至所述误触手势信息库。If the current gesture information does not exist in the false touch gesture information library, adding the current gesture information to the false touch gesture information library.
在一个实施例中,处理器101在实现在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息之后,还用于实现:根据所述初始触发条件,在所述当前手势信息的各触摸点中确定至少两个第一有效触摸点,并计算两个所述第一有效触摸点之间连线的第一斜率;将所述第一斜率与所述初始触发条件中的第一斜率阈值进行比对,以判断所述当前手势信息是否符合所述初始触发条件。In one embodiment, after the processor 101 detects the current gesture operation of the user on the touch screen, after acquiring the current gesture information corresponding to the current gesture operation, it is further configured to: according to the initial trigger condition, Determine at least two first effective touch points among the touch points of the current gesture information, and calculate the first slope of the line between the two first effective touch points; combine the first slope with the initial trigger The first slope threshold in the condition is compared to determine whether the current gesture information meets the initial trigger condition.
在一个实施例中,在所述触摸屏为柔性屏时,处理器101在实现判断误触手势信息库中是否存在所述当前手势信息之后,还用于实现:在所述当前手势信息的各触摸点中确定至少两个所述第一有效触摸点,并计算两个所述第一有效触摸点之间连线的初始斜率;获取所述触摸屏的当前弯曲角度,根据所述当前弯曲角度对所述初始斜率进行校正,并生成所述第一斜率。In one embodiment, when the touch screen is a flexible screen, after the processor 101 realizes judging whether the current gesture information exists in the false touch gesture information database, it is further configured to: Determine at least two of the first effective touch points in the points, and calculate the initial slope of the line between the two first effective touch points; obtain the current bending angle of the touch screen, and calculate the current bending angle according to the current bending angle correcting the initial slope, and generating the first slope.
在一个实施例中,处理器101在实现在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息之后,还用于实现:根据所述目标触发条件,在所述当前手势信息的各触摸点中确定至少两个第二有效触摸点,并计算两个所述第二有效触摸点之间连线的第二斜率;将所述第二斜率与所述目标触发条件中的第二斜率阈值进行比对,以判断所述当前手势信息是否符合所述目标触发条件。In one embodiment, after the processor 101 detects the current gesture operation of the user on the touch screen, after obtaining the current gesture information corresponding to the current gesture operation, it is further configured to: according to the target trigger condition, in the Determine at least two second effective touch points among the touch points of the current gesture information, and calculate the second slope of the line between the two second effective touch points; combine the second slope with the target trigger The second slope threshold in the condition is compared to determine whether the current gesture information meets the target trigger condition.
在一个实施例中,处理器101在实现在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息之后,还用于实现:根据所述当前手势信息中的各触摸点,确定所述当前手势信息对应的当前滑动轨迹;将所述当前滑动轨迹与所述初始触发条件中的第一预设滑动轨迹和/或所述目标触发条件中的第二预设滑动轨迹进行比对,以相应判断所述当前手势信息是否符合所述初始触发条件和/或所述目标触发条件。In one embodiment, after the processor 101 detects the current gesture operation of the user on the touch screen, after obtaining the current gesture information corresponding to the current gesture operation, it is further configured to: according to each of the current gesture information Touching a point, determining the current sliding trajectory corresponding to the current gesture information; combining the current sliding trajectory with the first preset sliding trajectory in the initial trigger condition and/or the second preset sliding trajectory in the target trigger condition The trajectories are compared to determine whether the current gesture information meets the initial trigger condition and/or the target trigger condition.
在一个实施例中,处理器101在实现在所述当前手势信息符合初始触发条件和/或目标触发条件时,确定所述当前手势操作为有效手势操作,并触发对应的响应操作之前,还用于实现:在接收到触发条件设定指令或在检测到误触指令时,获取所述用户的历史手势操作,并 基于所述历史手势操作对应的历史手势信息,生成所述目标触发条件。In one embodiment, when the current gesture information meets the initial trigger condition and/or the target trigger condition, the processor 101 further uses To achieve: when a trigger condition setting instruction is received or a false touch instruction is detected, the user's historical gesture operations are acquired, and the target trigger condition is generated based on historical gesture information corresponding to the historical gesture operations.
下面结合附图,对本公开的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
如图2所示,图2是本公开实施例提供的一种终端触摸屏的控制方法的示意性流程图。该终端触摸屏的控制方法应用于终端设备中,所述终端设备包含触摸屏事件采集组件、手势学习组件以及手势判定及触发组件,所述触摸屏事件采集组件用于采集用户触摸电容式或电阻式触摸屏触发的事件点(即触摸点)的坐标信息,所述手势学习组件用于基于触摸屏事件采集组件采集的历史触摸点及其对应的是否有效的判定结果,生成符合用户手势操作习惯的触发条件,所述手势判定及触发组件用于将触摸屏事件采集组件采集的当前手势信息与基于所述手势学习组件生成的触发条件或者终端出厂时设定的初始触发条件进行比对,并根据比对结果判定是否触发响应对应的手势指令,该终端触摸屏的控制方法包括步骤S10至步骤S30。As shown in FIG. 2 , FIG. 2 is a schematic flowchart of a method for controlling a terminal touch screen provided by an embodiment of the present disclosure. The method for controlling the terminal touch screen is applied to a terminal device, and the terminal device includes a touch screen event collection component, a gesture learning component, and a gesture judgment and trigger component, and the touch screen event collection component is used to collect user touch capacitive or resistive touch screen triggers The coordinate information of the event point (that is, the touch point), the gesture learning component is used to generate a trigger condition that meets the user’s gesture operation habits based on the historical touch point collected by the touch screen event collection component and the corresponding judgment result of whether it is valid. The gesture determination and trigger component is used to compare the current gesture information collected by the touch screen event collection component with the trigger condition generated based on the gesture learning component or the initial trigger condition set when the terminal leaves the factory, and determine whether The method for controlling the touch screen of the terminal includes step S10 to step S30 by triggering and responding to the corresponding gesture instruction.
步骤S10、在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息。Step S10 , when a current gesture operation by the user on the touch screen is detected, current gesture information corresponding to the current gesture operation is acquired.
为了避免按照同一设定触发条件来判断用户是否进行有效触发手势时,容易将与设定触发条件不完全相同的手势操作判定为无效手势操作,从而导致容易出现误判的情况。例如,采集用户操作的两个触摸点,并判断该两个触摸点之间的斜率是否达到预设斜率,若达到,则该用户操作为有效操作,上报上述操作,以触发对应的操作指令,若该两个触摸点之间的斜率未达到预设斜率,则该用户操作为无效操作,不响应该用户操作。本实施例中,在将用户的当前手势操作对应的当前手势信息与出厂时设定的初始触发条件进行比对之外,还进一步将所述当前手势信息与所述用户对应的目标触发条件进行比对,减少用户操作习惯导致的误判情况,提高了触摸屏的灵敏度。In order to avoid judging whether the user performs a valid trigger gesture according to the same set trigger condition, it is easy to determine a gesture operation that is not exactly the same as the set trigger condition as an invalid gesture operation, resulting in a situation where misjudgment is likely to occur. For example, collect two touch points operated by the user, and judge whether the slope between the two touch points reaches the preset slope. If so, the user operation is a valid operation, and the above operation is reported to trigger the corresponding operation command. If the slope between the two touch points does not reach the preset slope, the user operation is an invalid operation, and the user operation is not responded to. In this embodiment, in addition to comparing the current gesture information corresponding to the user's current gesture operation with the initial trigger condition set at the factory, the current gesture information is further compared with the target trigger condition corresponding to the user. By comparison, the misjudgment caused by the user's operating habits is reduced, and the sensitivity of the touch screen is improved.
在一实施方式中,所述手势判定及触发组件在检测到用户对触摸屏进行触摸产生的当前手势操作时,获取所述当前手势操作对应的当前手势信息。其中,当前手势信息可以是用户在触摸屏上的各个触摸点(例如可以是各个触摸点的坐标),还可以是用户在触摸屏上的滑动轨迹。In an embodiment, the gesture determining and triggering component acquires current gesture information corresponding to the current gesture operation when detecting the current gesture operation generated by the user touching the touch screen. Wherein, the current gesture information may be each touch point of the user on the touch screen (for example, may be the coordinates of each touch point), or may be a sliding track of the user on the touch screen.
例如,电容式触摸屏是通过感应人体触摸所产生的电容变化而判断触摸点的。它具有两组信号线:驱动线与感应线,驱动线发射信号,感应线侦测电容值的变化。当手指触摸在金属层上时,由于人体电场的存在,手指和触摸屏表面形成一个耦合电容,对于高频电流来说,电容是直接导体,于是手指从接触点吸走一个很小的电流。影响了触摸点附近两个电极之间 的耦合,从而改变了这两个电极之间的电容量。检测互电容大小时,驱动线方向的电极依次发出激励信号,感应线方向的所有电极同时接收信号,这样可以得到所有横向和纵向电极交汇点的电容值的变化,即整个触摸屏的二维平面的电容大小,根据触摸屏二维电容变化量数据,可以计算出每一个触摸点的坐标,因此屏上即使有多个触摸点,也能计算出每个触摸点的真实坐标。因此,可以获取并计算出所述当前手势操作的各个触摸点的坐标,作为所述当前手势信息。For example, the capacitive touch screen judges the touch point by sensing the capacitance change generated by the touch of the human body. It has two sets of signal lines: the driving line and the sensing line, the driving line emits signals, and the sensing line detects the change of capacitance value. When the finger touches the metal layer, due to the existence of the electric field of the human body, the finger and the surface of the touch screen form a coupling capacitance. For high-frequency current, the capacitance is a direct conductor, so the finger absorbs a small current from the contact point. Affects the coupling between two electrodes near the touch point, thereby changing the capacitance between these two electrodes. When detecting the size of mutual capacitance, the electrodes in the direction of the driving line send excitation signals in sequence, and all the electrodes in the direction of the sensing line receive signals at the same time, so that the change of the capacitance value at the intersection of all horizontal and vertical electrodes can be obtained, that is, the two-dimensional plane of the entire touch screen. Capacitance, according to the two-dimensional capacitance change data of the touch screen, the coordinates of each touch point can be calculated, so even if there are multiple touch points on the screen, the real coordinates of each touch point can be calculated. Therefore, the coordinates of each touch point of the current gesture operation can be acquired and calculated as the current gesture information.
请参阅图3,图3是本公开实施例提供的一种将所述当前手势信息与所述初始触发条件进行比对的示意性流程图,可以包括以下步骤S101和步骤S102。Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of comparing the current gesture information with the initial trigger condition provided by an embodiment of the present disclosure, which may include the following steps S101 and S102 .
步骤S101、根据所述初始触发条件,在所述当前手势信息的各触摸点中确定至少两个第一有效触摸点,并计算两个所述第一有效触摸点之间连线的第一斜率。Step S101, according to the initial trigger condition, determine at least two first effective touch points among the touch points in the current gesture information, and calculate a first slope of a line connecting the two first effective touch points .
在一实施方式中,在所述初始触发条件为预设顺序的触摸点之间的斜率达到第一斜率阈值时,则根据所述初始触发条件中的设定顺序确定至少两个触摸点,如第一个触摸点和第二个触摸点,所述手势判定及触发组件在所述当前手势信息的各触摸点中确定对应的触摸点,即获取所述当前手势信息的各触摸点中的第一个触摸点以及第二个触摸点作为第一有效触摸点。然后计算所述第一有效触摸点之间连线的斜率,作为所述第一斜率。In one embodiment, when the initial trigger condition is that the slope between touch points in a preset order reaches the first slope threshold, at least two touch points are determined according to the set order in the initial trigger condition, such as The first touch point and the second touch point, the gesture determining and triggering component determines the corresponding touch point among the touch points of the current gesture information, that is, obtains the first touch point among the touch points of the current gesture information One touch point and the second touch point are used as the first valid touch point. Then calculate the slope of the line between the first valid touch points as the first slope.
所述触摸屏事件采集组件按照所述用户的触摸顺序,将所述当前手势操作对应的各触摸点依次添加至触摸点队列,以记录各触摸点以及各触摸点对应的顺序,然后所述触摸屏事件采集组件将采集的各触摸点及其对应的顺序上报至所述手势判定及触发组件。The touch screen event collection component sequentially adds each touch point corresponding to the current gesture operation to the touch point queue according to the touch sequence of the user, so as to record each touch point and the corresponding order of each touch point, and then the touch screen event The collecting component reports the collected touch points and their corresponding sequence to the gesture determination and triggering component.
步骤S102、将所述第一斜率与所述初始触发条件中的第一斜率阈值进行比对,以判断所述当前手势信息是否符合所述初始触发条件。Step S102 , comparing the first slope with a first slope threshold in the initial trigger condition to determine whether the current gesture information meets the initial trigger condition.
在一实施方式中,所述手势判定及触发组件在计算出所述第一斜率之后,将所述第一斜率与所述初始触发条件中的第一斜率阈值进行比对,即在所述第一斜率达到所述第一斜率阈值时,则判定所述当前手势信息符合所述初始触发条件;在所述第一斜率未达到所述第一斜率阈值时,则判定所述当前手势信息不符合所述初始触发条件。In one embodiment, after the gesture determination and triggering component calculates the first slope, it compares the first slope with the first slope threshold in the initial trigger condition, that is, in the first When a slope reaches the first slope threshold, it is determined that the current gesture information meets the initial trigger condition; when the first slope does not reach the first slope threshold, it is determined that the current gesture information does not meet the initial trigger condition; The initial trigger condition.
示例性的,在所述触摸屏为柔性屏时,所述在所述当前手势信息的各触摸点中确定至少两个第一有效触摸点,并计算两个所述第一有效触摸点之间连线的第一斜率的步骤包括:在所述当前手势信息的各触摸点中确定至少两个所述第一有效触摸点,并计算两个所述第一有效触摸点之间连线的初始斜率;获取所述触摸屏的当前弯曲角度,根据所述当前弯曲角度对所述初始斜率进行校正,并生成所述第一斜率。Exemplarily, when the touch screen is a flexible screen, at least two first effective touch points are determined in each touch point of the current gesture information, and the connection between the two first effective touch points is calculated. The step of the first slope of the line includes: determining at least two first effective touch points in each touch point of the current gesture information, and calculating an initial slope of a line connecting the two first effective touch points ; Acquiring the current bending angle of the touch screen, correcting the initial slope according to the current bending angle, and generating the first slope.
若本实施例中的触摸屏为柔性屏,由于柔性屏可以任意弯曲,为了便于更精准的判定用 户的手势操作,将触摸屏的弯曲角度作为手势操作的手势信息参数。其中,不同弯曲角度下的手势信息对应的斜率阈值不同。将弯曲度记为C,斜率记为K,则根据弯曲角度校正后的触摸点之间的斜率记为K*C。由此,判断所述当前手势信息是否符合所述初始触发条件的过程为:所述手势判定及触发组件获取第一有效触摸点之间连线的斜率,如第一个触摸点与第二个触摸点之间连线的斜率K1,并获取所述用户产生所述当前手势操作时所述触摸屏的当前弯曲角度C1,将根据弯曲角度校正后的第一有效触摸点连线的斜率K1*C1与所述初始触发条件中的第一斜率阈值K0*C0进行对比,若K1*C1达到K0*C0,则判定所述当前手势信息符合所述初始触发条件;若K1*C1未达到K0*C0,则判定所述当前手势信息不符合所述初始触发条件。If the touch screen in this embodiment is a flexible screen, since the flexible screen can be bent arbitrarily, in order to more accurately determine the user's gesture operation, the bending angle of the touch screen is used as the gesture information parameter of the gesture operation. Wherein, slope thresholds corresponding to gesture information at different bending angles are different. The curvature is denoted as C, and the slope is denoted as K, and the slope between the touch points corrected according to the bending angle is denoted as K*C. Therefore, the process of judging whether the current gesture information meets the initial trigger condition is: the gesture judging and triggering component obtains the slope of the line between the first valid touch points, such as the first touch point and the second The slope K1 of the line between the touch points, and obtain the current bending angle C1 of the touch screen when the user generates the current gesture operation, and correct the slope K1*C1 of the line connecting the first effective touch points according to the bending angle Compared with the first slope threshold K0*C0 in the initial trigger condition, if K1*C1 reaches K0*C0, it is determined that the current gesture information meets the initial trigger condition; if K1*C1 does not reach K0*C0 , it is determined that the current gesture information does not meet the initial trigger condition.
为了防止用户触发手势操作时发生抖动,在所述初始触发条件中设定一个误差偏差率,记为V,则第一斜率阈值为一阈值范围。在一实施方式中,若触摸屏为普通屏,则第一斜率阈值对应的阈值范围为K*(1-V)~K*(1+V)。若触摸屏为柔性屏,则第一斜率阈值对应的阈值范围K*C*(1-V)~K*C*(1+v)。即所述第一斜率属于所述第一斜率阈值对应的阈值范围即为所述第一斜率达到所述第一斜率阈值。In order to prevent shaking when the user triggers the gesture operation, an error deviation rate, denoted as V, is set in the initial trigger condition, and the first slope threshold is a threshold range. In one embodiment, if the touch screen is an ordinary screen, the threshold range corresponding to the first slope threshold is K*(1-V)˜K*(1+V). If the touch screen is a flexible screen, the first slope threshold corresponds to a threshold range of K*C*(1-V)˜K*C*(1+v). That is, the first slope belongs to the threshold range corresponding to the first slope threshold, that is, the first slope reaches the first slope threshold.
请参阅图4,图4是本公开实施例提供的一种将所述当前手势信息与所述目标触发条件进行比对的步骤的示意性流程图,可以包括以下步骤S103和步骤S104。Please refer to FIG. 4 . FIG. 4 is a schematic flowchart of steps of comparing the current gesture information with the target trigger condition according to an embodiment of the present disclosure, which may include the following steps S103 and S104 .
步骤S103、根据所述目标触发条件,在所述当前手势信息的各触摸点中确定至少两个第二有效触摸点,并计算两个所述第二有效触摸点之间连线的第二斜率。Step S103, according to the target trigger condition, determine at least two second valid touch points in each touch point of the current gesture information, and calculate a second slope of a line connecting the two second valid touch points .
在一实施方式中,所述手势判定及触发组件在所述目标触发条件为预设顺序的触摸点之间的斜率达到第二斜率阈值时,则根据所述目标触发条件中的设定顺序确定至少两个触摸点,如第一个触摸点和最后一个触摸点,在所述当前手势信息的各触摸点中确定对应的触摸点,即获取所述当前手势信息的各触摸点中的第一个触摸点以及最后一个触摸点作为第二有效触摸点。然后计算所述第二有效触摸点之间连线的斜率,作为所述第二斜率。In one embodiment, when the slope between the touch points whose target trigger condition is in a preset sequence reaches the second slope threshold, the gesture determination and trigger component determines according to the set sequence in the target trigger condition At least two touch points, such as the first touch point and the last touch point, determine the corresponding touch point among the touch points of the current gesture information, that is, obtain the first touch point among the touch points of the current gesture information touch points and the last touch point as the second valid touch point. Then calculate the slope of the line between the second valid touch points as the second slope.
所述手势判定及触发组件在所述目标触发条件为各触摸点中的任意两个触摸点之间的斜率达到所述第二斜率时,则分别计算各触摸点中的任意两个触摸点之间的斜率,并将任意两个触摸点依次作为所述第二有效触摸点。然后依次计算所述第二有效触摸点之间连线的斜率,依次作为所述第二斜率。When the target trigger condition of the gesture determination and triggering component is that the slope between any two touch points in each touch point reaches the second slope, it calculates the difference between any two touch points in each touch point respectively. The slope between them, and take any two touch points in turn as the second valid touch points. Then, the slopes of the lines between the second effective touch points are sequentially calculated as the second slopes.
所述手势判定及触发组件可将所述当前手势信息分别与所述初始触发条件、所述目标触发条件同时进行比对;还可以首先将所述当前手势信息与所述初始触发条件进行比对,在所述当前手势信息不符合所述初始触发条件时,再将所述当前手势信息与所述目标触发条件进 行比对。还可以用符合所述用户的手势操作习惯的目标触发条件替代所述初始触发条件,从而直接将所述当前手势信息与所述目标触发条件进行比对。在所述当前手势信息符合所述初始触发条件以及所述目标触发条件中的任一触发条件时,即判定所述当前手势操作为有效手势操作。在所述当前手势信息既不符合所述初始触发条件,也不符合所述目标触发条件时,则判定所述当前手势操作为无效手势操作。The gesture determination and triggering component can compare the current gesture information with the initial trigger condition and the target trigger condition at the same time; it can also first compare the current gesture information with the initial trigger condition , when the current gesture information does not meet the initial trigger condition, then compare the current gesture information with the target trigger condition. The initial trigger condition may also be replaced by a target trigger condition conforming to the user's gesture operation habits, so as to directly compare the current gesture information with the target trigger condition. When the current gesture information meets any one of the initial trigger condition and the target trigger condition, it is determined that the current gesture operation is a valid gesture operation. When the current gesture information neither meets the initial trigger condition nor the target trigger condition, it is determined that the current gesture operation is an invalid gesture operation.
示例性的,在基于所述初始触发条件和所述目标触发条件对所述当前手势操作进行有效性判断之前,还包括:在接收到触发条件设定指令或在检测到误触指令时,获取所述用户的历史手势操作,并基于所述历史手势操作对应的历史手势信息,生成所述目标触发条件。Exemplarily, before judging the validity of the current gesture operation based on the initial trigger condition and the target trigger condition, it further includes: when a trigger condition setting instruction is received or a false touch instruction is detected, acquiring The user's historical gesture operations, and based on historical gesture information corresponding to the historical gesture operations, generate the target trigger condition.
在一实施方式中,由于不同用户的手势操作习惯不同,因此,不同用户对应的手势操作对应的有效触摸点也容易不同,因此,用户可基于实际需求设置触发条件,即所述手势学习组件在接收到用户设置操作触发的触发条件设置指令时,或者所述手势学习组件在检测到误触指令时(还可以在误触指令达到预设次数时),可基于各个用户的历史手势操作对应的历史手势信息,生成与各个用户对应的触发条件,作为所述目标触发条件。In one embodiment, since different users have different gesture operation habits, the effective touch points corresponding to the gesture operations of different users are likely to be different. Therefore, the user can set the trigger condition based on actual needs, that is, the gesture learning component is When receiving a trigger condition setting instruction triggered by a user setting operation, or when the gesture learning component detects a false touch instruction (also when the false touch instruction reaches a preset number of times), it can operate the corresponding gesture based on the history of each user. The historical gesture information generates a trigger condition corresponding to each user as the target trigger condition.
所述目标触发条件相较于所述初始触发条件的区别,可以是有效触摸点可以由预设触摸点更换为各触摸点中的任意两个触摸点,将所述初始触发条件中的第一个触摸点与第二个触摸点之间的斜率达到第一斜率阈值,更换为所述目标触发条件中的所述当前手势信息对应的各触摸点中任意两个触摸点之间的斜率达到第二斜率阈值。其中,第一斜率阈值与所述第二斜率阈值可以相同,或者根据用户的实际操作数据,将所述第一斜率阈值进行增大或者减小,作为第二斜率阈值。The difference between the target trigger condition and the initial trigger condition may be that the effective touch point can be changed from a preset touch point to any two touch points in each touch point, and the first touch point in the initial trigger condition The slope between the first touch point and the second touch point reaches the first slope threshold, and the slope between any two touch points among the touch points corresponding to the current gesture information in the target trigger condition reaches the first slope threshold. Two slope thresholds. Wherein, the first slope threshold may be the same as the second slope threshold, or the first slope threshold may be increased or decreased according to the user's actual operation data as the second slope threshold.
步骤S104、将所述第二斜率与所述目标触发条件中的第二斜率阈值进行比对,以判断所述当前手势信息是否符合所述目标触发条件。Step S104 , comparing the second slope with a second slope threshold in the target trigger condition to determine whether the current gesture information meets the target trigger condition.
在一实施方式中,所述手势判定及触发组件在计算出所述第二斜率之后,将所述第二斜率与所述目标触发条件中的第二斜率阈值进行比对,即在所述第二斜率达到所述第二斜率阈值时,则判定所述当前手势信息符合所述目标触发条件;在所述第二斜率未达到所述第二斜率阈值时,则判定所述当前手势信息不符合所述目标触发条件。或在所述目标触发条件为各触摸点中的任意两个触摸点之间的斜率达到所述第二斜率时,在各触摸点中的任意两个触摸点之间的斜率达到第二斜率阈值时,则判定所述当前手势信息符合所述目标触发条件;否则,判定所述当前手势信息不符合所述目标触发条件。In one embodiment, after the gesture determination and triggering component calculates the second slope, it compares the second slope with the second slope threshold in the target trigger condition, that is, in the first When the second slope reaches the second slope threshold, it is determined that the current gesture information meets the target trigger condition; when the second slope does not reach the second slope threshold, it is determined that the current gesture information does not meet the target trigger condition. The target trigger condition. Or when the target trigger condition is that the slope between any two touch points among the touch points reaches the second slope, the slope between any two touch points among the touch points reaches the second slope threshold , it is determined that the current gesture information meets the target trigger condition; otherwise, it is determined that the current gesture information does not meet the target trigger condition.
将所述当前手势信息与所述初始触发条件和/或所述目标触发条件进行比对的步骤还可以包括:根据所述当前手势信息中的各触摸点,确定所述当前手势信息对应的当前滑动轨迹; 将所述当前滑动轨迹与所述初始触发条件中的第一预设滑动轨迹和/或所述目标触发条件中的第二预设滑动轨迹进行比对,以相应判断所述当前手势信息是否符合所述初始触发条件和/或所述目标触发条件。The step of comparing the current gesture information with the initial trigger condition and/or the target trigger condition may further include: according to each touch point in the current gesture information, determining the current gesture information corresponding to the current gesture information. sliding track; comparing the current sliding track with the first preset sliding track in the initial trigger condition and/or the second preset sliding track in the target trigger condition, so as to judge the current gesture accordingly Whether the information meets the initial trigger condition and/or the target trigger condition.
在一实施方式中,在所述初始触发条件为预设顺序的触摸点之间对应的滑动轨迹为预设轨迹时,则所述手势判定及触发组件获取所述当前手势信息对应的各触摸点,并根据所述各触摸点以及所述各触摸点的顺序,拟合出所述当前手势操作对应的当前滑动轨迹,然后将所述当前滑动轨迹与所述初始触发条件中的预设轨迹进行比对。若所述当前滑动轨迹与所述预设轨迹相匹配,即判定所述当前手势信息符合所述初始触发条件。若所述当前滑动轨迹与所述预设轨迹不匹配,判定所述当前手势信息不符合所述初始触发条件。In one embodiment, when the initial trigger condition is that the sliding track corresponding to the touch points in a preset sequence is a preset track, the gesture determination and triggering component acquires each touch point corresponding to the current gesture information , and according to the touch points and the order of the touch points, the current sliding trajectory corresponding to the current gesture operation is fitted, and then the current sliding trajectory is compared with the preset trajectory in the initial trigger condition Comparison. If the current sliding track matches the preset track, it is determined that the current gesture information meets the initial trigger condition. If the current sliding track does not match the preset track, it is determined that the current gesture information does not meet the initial trigger condition.
若用户的手势习惯不同,导致不同用户触发的滑动轨迹发生变化,则所述手势学习组件可对所述初始触发条件中的预设轨迹进行调整,生成所述目标触发条件。若所述当前滑动轨迹与所述目标触发条件中调整后的轨迹相匹配,即判定所述当前手势信息符合所述目标触发条件。若所述当前滑动轨迹与所述目标触发条件中调整后的轨迹不匹配,判定所述当前手势信息不符合所述目标触发条件。If the user's gesture habits are different, resulting in changes in sliding trajectories triggered by different users, the gesture learning component may adjust the preset trajectories in the initial trigger conditions to generate the target trigger conditions. If the current sliding trajectory matches the adjusted trajectory in the target trigger condition, it is determined that the current gesture information meets the target trigger condition. If the current sliding trajectory does not match the adjusted trajectory in the target trigger condition, it is determined that the current gesture information does not meet the target trigger condition.
步骤S20、在所述当前手势信息符合初始触发条件和/或目标触发条件时,确定所述当前手势操作为有效手势操作,并触发对应的响应操作;其中,所述初始触发条件包括出厂时设定的默认触发条件,所述目标触发条件包括基于所述用户的历史手势操作生成的触发条件。Step S20, when the current gesture information meets the initial trigger condition and/or target trigger condition, determine that the current gesture operation is a valid gesture operation, and trigger a corresponding response operation; wherein, the initial trigger condition includes A predetermined default trigger condition, where the target trigger condition includes a trigger condition generated based on the user's historical gesture operations.
在一实施方式中,在所述手势判定及触发组件判定所述当前手势信息符合所述初始触发条件或目标触发条件中的任意一触发条件时,则判定所述当前手势操作为有效手势操作,并触发对应的响应操作,如解锁操作或返回操作等。In one embodiment, when the gesture determining and triggering component determines that the current gesture information meets any one of the initial trigger condition or the target trigger condition, it determines that the current gesture operation is a valid gesture operation, And trigger the corresponding response operation, such as unlock operation or return operation.
示例性的,所述将所述当前手势信息与所述初始触发条件和/或目标触发条件比对之后,还包括:在所述当前手势信息不符合所述初始触发条件、且所述当前手势信息不符合所述目标触发条件时,确定所述当前手势操作为误触手势操作。Exemplarily, after comparing the current gesture information with the initial trigger condition and/or the target trigger condition, it further includes: when the current gesture information does not meet the initial trigger condition and the current gesture When the information does not meet the target trigger condition, it is determined that the current gesture operation is a false touch gesture operation.
在一实施方式中,在所述手势判定及触发组件判定所述当前手势信息既不符合所述初始触发条件也不符合目标触发条件时,则判定所述当前手势操作为无效手势操作,不对所述当前手势操作进行响应操作。可生成手势错误的提醒消息,以提醒所述用户当前无响应的原因。In one embodiment, when the gesture determining and triggering component determines that the current gesture information neither meets the initial trigger condition nor the target trigger condition, it determines that the current gesture operation is an invalid gesture operation, and does not Respond to the current gesture operation described above. A gesture error reminder message may be generated to remind the user why they are currently unresponsive.
在一实施方式中,为了提高所述目标触发条件的更新效率或生成效率,统计误触手势操作对应的手势信息,即无效手势操作对应的手势信息,并根据所述误触手势信息生成对应的目标触发条件。In an embodiment, in order to improve the update efficiency or generation efficiency of the target trigger condition, the gesture information corresponding to the false touch gesture operation, that is, the gesture information corresponding to the invalid gesture operation is counted, and the corresponding gesture information is generated according to the false touch gesture information. Target trigger condition.
示例性的,所述在所述当前手势信息不符合所述初始触发条件、且所述当前手势信息不 符合所述目标触发条件时,确定所述当前手势操作为误触手势操作的步骤之后,还包括:判断误触手势信息库中是否存在所述当前手势信息;若所述误触手势信息库中不存在所述当前手势信息,则将所述当前手势信息添加至所述误触手势信息库。Exemplarily, after the step of determining that the current gesture operation is a false touch gesture operation when the current gesture information does not meet the initial trigger condition and the current gesture information does not meet the target trigger condition, It also includes: judging whether the current gesture information exists in the false touch gesture information database; if the current gesture information does not exist in the false touch gesture information database, adding the current gesture information to the false touch gesture information library.
若所述误触手势信息库中存在所述当前手势信息,则在所述误触手势信息库中,统计所述当前手势信息对应的误触次数;在所述当前手势信息对应的误触次数达到预设误触次数阈值时,根据所述当前手势信息更新所述目标触发条件。If the current gesture information exists in the false touch gesture information database, count the number of false touches corresponding to the current gesture information in the false touch gesture information database; count the number of false touches corresponding to the current gesture information When the preset false touch times threshold is reached, the target trigger condition is updated according to the current gesture information.
在一实施方式中,在所述手势判定及触发组件判定所述当前手势操作为误触手势信息时,将所述当前手势信息与误触手势信息库进行比对,以判断所述误触手势信息库中是否已记录该误触手势操作对应的手势信息,即当前手势信息。若所述误触手势信息库中未记录当前手势信息,则将所述当前手势信息添加至所述误触手势信息库。若所述误触手势信息库中已记录当前手势信息,则将所述当前手势信息对应的误触次数进行更新,如加1,并统计所述当前手势信息对应的误触次数,若所述当前手势信息对应的误触次数达到预设误触次数阈值时,即表示所述当前手势信息为用户的手势操作习惯,根据所述当前手势信息更新所述目标触发条件,即可以将所述当前手势信息中的有效触摸点以及有效触摸点之间的斜率值,作为所述目标触发条件,或可以将所述当前手势信息中的各触摸点对应的滑动轨迹,作为所述目标触发条件等。In one embodiment, when the gesture determining and triggering component determines that the current gesture operation is false touch gesture information, the current gesture information is compared with the false touch gesture information database to determine the false touch gesture Whether the gesture information corresponding to the false touch gesture operation, that is, the current gesture information, has been recorded in the information database. If no current gesture information is recorded in the false touch gesture information library, adding the current gesture information to the false touch gesture information library. If the current gesture information has been recorded in the false touch gesture information library, update the number of false touches corresponding to the current gesture information, such as adding 1, and count the number of false touches corresponding to the current gesture information, if the When the number of false touches corresponding to the current gesture information reaches the preset threshold of false touch times, it means that the current gesture information is the gesture operation habit of the user, and the target trigger condition can be updated according to the current gesture information, that is, the current The effective touch points in the gesture information and the slope values between the effective touch points are used as the target trigger condition, or the sliding track corresponding to each touch point in the current gesture information can be used as the target trigger condition.
由此,根据所述误触手势信息库中误触次数较多的手势信息,生成或更新所述目标触发条件,不仅提高了触摸屏的灵敏度,而且减少了需分析的手势信息量,提高了目标触发条件的生成效率。Thus, the target trigger condition is generated or updated according to the gesture information with a large number of false touches in the false touch gesture information library, which not only improves the sensitivity of the touch screen, but also reduces the amount of gesture information to be analyzed, and improves the target. Generation efficiency of trigger conditions.
本公开的实施例中还提供一种存储介质,用于可读存储,所述存储介质存储有程序,所述程序中包括程序指令,所述处理器执行所述程序指令,实现本公开实施例提供的任一项终端触摸屏的控制方法。Embodiments of the present disclosure also provide a storage medium for readable storage, the storage medium stores a program, the program includes program instructions, and the processor executes the program instructions to implement the embodiments of the present disclosure A method for controlling the touch screen of any terminal provided.
例如,该程序被处理器加载,可以执行如下步骤:在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息;在所述当前手势信息符合初始触发条件和/或目标触发条件时,确定所述当前手势操作为有效手势操作,并触发对应的响应操作;其中,所述初始触发条件包括出厂时设定的默认触发条件,所述目标触发条件包括基于所述用户的历史手势操作生成的触发条件。For example, the program is loaded by the processor, and may perform the following steps: when the current gesture operation of the user on the touch screen is detected, obtain the current gesture information corresponding to the current gesture operation; when the current gesture information meets the initial trigger condition and/or or a target trigger condition, determine that the current gesture operation is an effective gesture operation, and trigger a corresponding response operation; wherein, the initial trigger condition includes a default trigger condition set at the factory, and the target trigger condition includes The trigger conditions generated by the user's historical gesture operations.
其中,所述存储介质可以是前述实施例所述终端设备的内部存储单元,例如所述终端设备的硬盘或内存。所述存储介质也可以是所述终端设备的外部存储设备,例如所述终端设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字卡(Secure Digital Card, SD Card),闪存卡(Flash Card)等。Wherein, the storage medium may be an internal storage unit of the terminal device in the foregoing embodiments, such as a hard disk or a memory of the terminal device. The storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a smart memory card (Smart Media Card, SMC), a secure digital card (Secure Digital Card, SD Card ), Flash Card (Flash Card), etc.
本实施例公开了一种终端触摸屏的控制方法、终端设备和存储介质,通过在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息;在所述当前手势信息符合初始触发条件和/或目标触发条件时,确定所述当前手势操作为有效手势操作,并触发对应的响应操作;其中,所述初始触发条件包括出厂时设定的默认触发条件,所述目标触发条件包括基于所述用户的历史手势操作生成的触发条件。通过上述方式,不仅将用户对应的当前手势信息与终端出厂时设定的默认触发条件进行比对,而且进一步将当前手势信息与基于用户的手势操作习惯生成的目标触发条件进行比对,防止因用户操作触摸屏的手势操作习惯与出厂时设定的手势操作不同,而在当前手势信息不符合初始触发条件时产生当前手势操作为无效手势操作的误判,提高了触摸屏的灵敏度。This embodiment discloses a terminal touch screen control method, a terminal device and a storage medium. When a user's current gesture operation on the touch screen is detected, current gesture information corresponding to the current gesture operation is acquired; in the current gesture information When the initial trigger condition and/or the target trigger condition are met, it is determined that the current gesture operation is a valid gesture operation, and a corresponding response operation is triggered; wherein the initial trigger condition includes a default trigger condition set at the factory, and the target The trigger condition includes a trigger condition generated based on the user's historical gesture operations. Through the above method, not only the current gesture information corresponding to the user is compared with the default trigger condition set when the terminal leaves the factory, but also the current gesture information is further compared with the target trigger condition generated based on the user's gesture operation habits to prevent the The gesture operation habit of the user operating the touch screen is different from the gesture operation set at the factory, and when the current gesture information does not meet the initial trigger conditions, the current gesture operation is misjudged as an invalid gesture operation, which improves the sensitivity of the touch screen.
上文中所公开方法中的全部或某些步骤、***、设备中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。All or some of the steps in the method disclosed above, the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination thereof.
在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在可存储介质上,存储介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on storable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term storage medium includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. , removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
以上参照附图说明了本公开的实施例,并非因此局限本公开的权利范围。本领域技术人员不脱离本公开的范围和实质内容所作的任何修改、等同替换和改进,均应在本公开的权利范围之内。The embodiments of the present disclosure have been described above with reference to the drawings, and the scope of rights of the present disclosure is not limited thereby. Any modifications, equivalent replacements and improvements made by those skilled in the art without departing from the scope and essence of the present disclosure shall fall within the scope of rights of the present disclosure.

Claims (10)

  1. 一种终端触摸屏的控制方法,其中,所述方法包括:A method for controlling a touch screen of a terminal, wherein the method includes:
    在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息;When the current gesture operation of the user on the touch screen is detected, the current gesture information corresponding to the current gesture operation is acquired;
    在所述当前手势信息符合初始触发条件和/或目标触发条件时,确定所述当前手势操作为有效手势操作,并触发对应的响应操作;When the current gesture information meets the initial trigger condition and/or the target trigger condition, determine that the current gesture operation is a valid gesture operation, and trigger a corresponding response operation;
    其中,所述初始触发条件包括出厂时设定的默认触发条件,所述目标触发条件包括基于所述用户的历史手势操作生成的触发条件。Wherein, the initial trigger condition includes a default trigger condition set at the factory, and the target trigger condition includes a trigger condition generated based on the user's historical gesture operations.
  2. 根据权利要求1所述的终端触摸屏的控制方法,其中,所述方法包括:The method for controlling a terminal touch screen according to claim 1, wherein the method comprises:
    在所述当前手势信息不符合所述初始触发条件、且所述当前手势信息不符合所述目标触发条件时,确定所述当前手势操作为误触手势操作。When the current gesture information does not meet the initial trigger condition and the current gesture information does not meet the target trigger condition, it is determined that the current gesture operation is a false touch gesture operation.
  3. 根据权利要求2所述的终端触摸屏的控制方法,其中,在所述确定所述当前手势操作为误触手势操作的步骤之后,还包括:The method for controlling a terminal touch screen according to claim 2, wherein, after the step of determining that the current gesture operation is a false touch gesture operation, further comprising:
    判断误触手势信息库中是否存在所述当前手势信息;Judging whether the current gesture information exists in the false touch gesture information database;
    若所述误触手势信息库中存在所述当前手势信息,则在所述误触手势信息库中,统计所述当前手势信息对应的误触次数,并在所述当前手势信息对应的误触次数达到预设误触次数阈值时,根据所述当前手势信息更新所述目标触发条件;If the current gesture information exists in the false touch gesture information database, count the number of false touches corresponding to the current gesture information in the false touch gesture information database, and count the number of false touches corresponding to the current gesture information When the number of touches reaches the preset false touch times threshold, update the target trigger condition according to the current gesture information;
    若所述误触手势信息库中不存在所述当前手势信息,则将所述当前手势信息添加至所述误触手势信息库。If the current gesture information does not exist in the false touch gesture information library, adding the current gesture information to the false touch gesture information library.
  4. 根据权利要求1所述的终端触摸屏的控制方法,其中,所述在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息的步骤之后,还包括:The method for controlling a touch screen of a terminal according to claim 1, wherein, after the step of obtaining current gesture information corresponding to the current gesture operation when the user's current gesture operation on the touch screen is detected, further comprising:
    在所述当前手势信息的各触摸点中确定至少两个第一有效触摸点,并计算两个所述第一有效触摸点之间连线的第一斜率;Determining at least two first valid touch points in each touch point of the current gesture information, and calculating a first slope of a line connecting the two first valid touch points;
    将所述第一斜率与所述初始触发条件中的第一斜率阈值进行比对,判断所述当前手势信息是否符合所述初始触发条件。Comparing the first slope with a first slope threshold in the initial trigger condition to determine whether the current gesture information meets the initial trigger condition.
  5. 根据权利要求4所述的终端触摸屏的控制方法,其中,在所述触摸屏为柔性屏时,所述在所述当前手势信息的各触摸点中确定至少两个第一有效触摸点,并计算两个所述第一有效触摸点之间连线的第一斜率的步骤包括:The method for controlling a touch screen of a terminal according to claim 4, wherein, when the touch screen is a flexible screen, determining at least two first effective touch points among the touch points of the current gesture information, and calculating the two The step of the first slope of the line between the first effective touch points comprises:
    在所述当前手势信息的各触摸点中确定至少两个所述第一有效触摸点,并计算两个所述第一有效触摸点之间连线的初始斜率;Determining at least two first valid touch points among the touch points of the current gesture information, and calculating an initial slope of a line connecting the two first valid touch points;
    获取所述触摸屏的当前弯曲角度,根据所述当前弯曲角度对所述初始斜率进行校正,并 生成所述第一斜率。Acquiring the current bending angle of the touch screen, correcting the initial slope according to the current bending angle, and generating the first slope.
  6. 根据权利要求1所述的终端触摸屏的控制方法,其中,所述在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息的步骤之后,还包括:The method for controlling a touch screen of a terminal according to claim 1, wherein, after the step of obtaining current gesture information corresponding to the current gesture operation when the user's current gesture operation on the touch screen is detected, further comprising:
    在所述当前手势信息的各触摸点中确定至少两个第二有效触摸点,并计算两个所述第二有效触摸点之间连线的第二斜率;Determining at least two second valid touch points in each touch point of the current gesture information, and calculating a second slope of a line connecting the two second valid touch points;
    将所述第二斜率与所述目标触发条件中的第二斜率阈值进行比对,以判断所述当前手势信息是否符合所述目标触发条件。The second slope is compared with a second slope threshold in the target trigger condition to determine whether the current gesture information meets the target trigger condition.
  7. 根据权利要求1所述的终端触摸屏的控制方法,其中,所述在检测到用户对触摸屏的当前手势操作时,获取所述当前手势操作对应的当前手势信息的步骤之后,还包括:The method for controlling a touch screen of a terminal according to claim 1, wherein, after the step of obtaining current gesture information corresponding to the current gesture operation when detecting the current gesture operation of the user on the touch screen, further comprising:
    根据所述当前手势信息中的各触摸点,确定所述当前手势信息对应的当前滑动轨迹;According to each touch point in the current gesture information, determine the current sliding trajectory corresponding to the current gesture information;
    将所述当前滑动轨迹与所述初始触发条件中的第一预设滑动轨迹和/或所述目标触发条件中的第二预设滑动轨迹进行比对,以相应判断所述当前手势信息是否符合所述初始触发条件和/或所述目标触发条件。comparing the current sliding trajectory with the first preset sliding trajectory in the initial trigger condition and/or the second preset sliding trajectory in the target trigger condition, to determine whether the current gesture information conforms to The initial trigger condition and/or the target trigger condition.
  8. 根据权利要求1-7中任一项所述的终端触摸屏的控制方法,其中,所述在所述当前手势信息符合初始触发条件和/或目标触发条件时,确定所述当前手势操作为有效手势操作,并触发对应的响应操作的步骤之前,还包括:The method for controlling a terminal touch screen according to any one of claims 1-7, wherein, when the current gesture information meets the initial trigger condition and/or the target trigger condition, determining that the current gesture operation is a valid gesture operation, and before triggering the corresponding response operation steps, it also includes:
    在接收到触发条件设定指令或在检测到误触指令时,获取所述用户的历史手势操作,并基于所述历史手势操作对应的历史手势信息,生成所述目标触发条件。When a trigger condition setting instruction is received or a false touch instruction is detected, the user's historical gesture operations are acquired, and the target trigger condition is generated based on historical gesture information corresponding to the historical gesture operations.
  9. 一种终端设备,其中,包括触控屏、处理器和存储器;A terminal device, including a touch screen, a processor and a memory;
    所述触控屏与所述处理器耦合连接;The touch screen is coupled to the processor;
    所述存储器用于存储程序;The memory is used to store programs;
    所述处理器,用于执行所述程序并在执行所述程序时实现如权利要求1至8中任一项所述的终端触摸屏的控制方法。The processor is configured to execute the program and realize the method for controlling the terminal touch screen according to any one of claims 1 to 8 when the program is executed.
  10. 一种存储介质,用于可读存储,其中,所述存储介质存储有一个或者多个程序,所述一个或者多个程序被一个或者多个处理器执行,以实现如权利要求1至8中任一项所述的终端触摸屏的控制方法。A storage medium for readable storage, wherein the storage medium stores one or more programs, and the one or more programs are executed by one or more processors, so as to realize the A method for controlling a touch screen of a terminal according to any one of the above.
PCT/CN2022/097915 2021-08-09 2022-06-09 Control method for terminal touch screen, terminal device, and storage medium WO2023016076A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110910544.1 2021-08-09
CN202110910544.1A CN115904103A (en) 2021-08-09 2021-08-09 Control method of terminal touch screen, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023016076A1 true WO2023016076A1 (en) 2023-02-16

Family

ID=85199801

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/097915 WO2023016076A1 (en) 2021-08-09 2022-06-09 Control method for terminal touch screen, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN115904103A (en)
WO (1) WO2023016076A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116540918B (en) * 2023-06-30 2023-12-01 深圳市欧度利方科技有限公司 Panel computer split screen control system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101614552A (en) * 2009-07-24 2009-12-30 深圳市凯立德计算机***技术有限公司 Gesture command input judging method of navigation system and device
CN103365578A (en) * 2012-03-29 2013-10-23 百度在线网络技术(北京)有限公司 Mobile terminal unlocking method and mobile terminal
CN105117132A (en) * 2015-08-31 2015-12-02 广州视源电子科技股份有限公司 Touch control method and apparatus
CN107085469A (en) * 2017-04-21 2017-08-22 深圳市茁壮网络股份有限公司 A kind of recognition methods of gesture and device
WO2017199356A1 (en) * 2016-05-18 2017-11-23 日立マクセル株式会社 Gesture recognition device, gestuure recognition pattern information calibration method, and communication terminal using same
CN108038412A (en) * 2017-10-30 2018-05-15 捷开通讯(深圳)有限公司 Terminal and its control method based on self-training gesture, storage device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101614552A (en) * 2009-07-24 2009-12-30 深圳市凯立德计算机***技术有限公司 Gesture command input judging method of navigation system and device
CN103365578A (en) * 2012-03-29 2013-10-23 百度在线网络技术(北京)有限公司 Mobile terminal unlocking method and mobile terminal
CN105117132A (en) * 2015-08-31 2015-12-02 广州视源电子科技股份有限公司 Touch control method and apparatus
WO2017199356A1 (en) * 2016-05-18 2017-11-23 日立マクセル株式会社 Gesture recognition device, gestuure recognition pattern information calibration method, and communication terminal using same
CN107085469A (en) * 2017-04-21 2017-08-22 深圳市茁壮网络股份有限公司 A kind of recognition methods of gesture and device
CN108038412A (en) * 2017-10-30 2018-05-15 捷开通讯(深圳)有限公司 Terminal and its control method based on self-training gesture, storage device

Also Published As

Publication number Publication date
CN115904103A (en) 2023-04-04

Similar Documents

Publication Publication Date Title
US11157107B2 (en) Method and apparatus for providing touch interface
EP2579130B1 (en) Adaptive method and device for user touch operation mode
CN106125984B (en) A kind of the touch-control processing method and mobile terminal of mobile terminal
US20170123590A1 (en) Touch Point Recognition Method and Apparatus
US11079873B2 (en) Touch panel device
CN106886766B (en) A kind of fingerprint identification method, fingerprint recognition circuit and mobile terminal
US9330249B2 (en) Information terminal
US9141246B2 (en) Touch pad
CN108920066B (en) Touch screen sliding adjustment method and device and touch equipment
WO2023016076A1 (en) Control method for terminal touch screen, terminal device, and storage medium
US10712870B2 (en) Method for improving fault tolerance of touchscreen and touchscreen terminal
CN104881174A (en) Method and device for dynamically adjusting sensitivity of touch screen
CN108845747A (en) A kind of Touch-control error prevention method, apparatus and terminal device
CN113760123A (en) Screen touch optimization method and device, terminal device and storage medium
CN109154879B (en) Electronic equipment and input processing method thereof
US20130088428A1 (en) Display control apparatus and display control method
CN105809071A (en) Mistakenly touching correcting method and terminal
CN113934312A (en) Touch object identification method based on infrared touch screen and terminal equipment
US9904402B2 (en) Mobile terminal and method for input control
US20230070059A1 (en) False touch rejection method, terminal device, and storage medium
US20190180127A1 (en) Character recognition method of handwriting input device, handwriting input device, and vehicle including the handwriting input device
CN107980116B (en) Floating touch sensing method, floating touch sensing system and floating touch electronic equipment
CN105260044A (en) Electronic equipment and touch operation recognition method
CN111078114A (en) Single-hand control method, control device and terminal equipment
CN110049363B (en) Control method of multimedia equipment and multimedia system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22855061

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE