False touch prevention method and device for touch screen, terminal, storage medium and product
By distinguishing between film-patterned and non-film-patterned scenes, dynamically adjusting the anti-missive touch conditions, the problem of high anti-missive touch rate at the edges under the film-patterned scenes is solved, and the accuracy of anti-missive touch of the touch screen is improved.
Patent Information
- Application Number
- CN202310736251.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2024-12-20
AI Technical Summary
The existing touch screen has a high anti-touch rate at the edges of the edges under the film-painted scene, and it is impossible to effectively distinguish between film-painted and non-filmed scenes, resulting in insufficient accuracy in anti-touched.
By determining the screen coverage information of the touch screen, distinguishing between film-patterned and non-film-patterned scenes, dynamically switching the anti-touch conditions, and setting different effective touch area thresholds to improve the accuracy of anti-touch prevention.
It improves the accuracy of preventing false touching at the edges under the filmed scene, reduces the false touching rate, and enhances the accurate handling ability of touch events.
Smart Images

Figure CN119165978A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of touch technology, and in particular to a method, device, terminal, storage medium and product for preventing accidental touches of a touch screen. Background Art
[0002] Currently, the screen of a terminal is generally a touch screen, and the touch screen senses touch events by capacitive sensing. In addition, in order to prevent accidental touches, the terminal will set an anti-accidental touch mechanism, that is, when the touch event detected by the touch screen meets the accidental touch condition, the touch event will be suppressed; and when the touch event detected by the touch screen does not meet the accidental touch condition, the touch event will be reported to the upper layer. Summary of the invention
[0003] The embodiments of the present application provide a touch screen anti-mistouch method, device, terminal, storage medium and product, which can improve the accuracy of anti-mistouch. The technical solution is as follows:
[0004] In one aspect, a method for preventing accidental touches of a touch screen is provided, the method comprising:
[0005] Determining screen coverage information of the touch screen, where the screen coverage information is used to indicate whether the touch screen is covered with a protective film;
[0006] Acquire an anti-mistouch condition that matches the screen coverage information;
[0007] storing the accidental touch prevention condition;
[0008] When the touch screen detects a touch event, an anti-mis-touch process is performed on the touch event based on event information of the touch event and stored anti-mis-touch conditions.
[0009] On the other hand, a touch screen anti-mistouch device is provided, the device comprising:
[0010] A determination module, used to determine screen coverage information of the touch screen, wherein the screen coverage information is used to indicate whether the touch screen is covered with a protective film;
[0011] An acquisition module, used to acquire an anti-mistouch condition matching the screen coverage information;
[0012] A storage module, used for storing the accidental touch prevention condition;
[0013] The false touch prevention module is used for performing false touch prevention processing on the touch event based on the event information of the touch event and the stored false touch prevention conditions when the touch screen detects a touch event.
[0014] On the other hand, a terminal is provided, the terminal comprising a processor and a memory, the memory storing at least one program code, the at least one program code being loaded and executed by the processor to implement the above-mentioned method for preventing accidental touches of a touch screen.
[0015] On the other hand, a computer-readable storage medium is provided, wherein at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to implement the above-mentioned method for preventing accidental touches of a touch screen.
[0016] On the other hand, a computer program product is provided. The computer program product stores at least one program code. The at least one program code is used to be executed by a processor to implement the above-mentioned method for preventing accidental touches of a touch screen.
[0017] In an embodiment of the present application, the screen coverage information can indicate whether the touch screen is covered with a protective film. Therefore, the anti-mistouch conditions obtained based on the screen coverage information can distinguish between the film-sticking scene and the non-film-sticking scene, that is, different anti-mistouch conditions are set for the film-sticking scene and the non-film-sticking scene, so that the anti-mistouch conditions can be dynamically switched according to the film-sticking scene and the non-film-sticking scene, thereby solving the problem of high false touch rate of edge anti-mistouch in the film-sticking scene. Therefore, the present application can improve the accuracy of anti-mistouch. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flow chart of a method for preventing accidental touches of a touch screen according to an exemplary embodiment of the present application is shown;
[0019] Figure 2 A flow chart of a method for preventing accidental touches of a touch screen according to an exemplary embodiment of the present application is shown;
[0020] Figure 3 A schematic diagram showing the capacitance value of the reporting point included in the touch screen in a film-sticking scenario shown in an exemplary embodiment of the present application is shown;
[0021] Figure 4 A schematic diagram showing the capacitance value of the reporting point included in the touch screen in a non-film-mounting scenario shown in an exemplary embodiment of the present application is shown;
[0022] Figure 5 A flow chart of a method for preventing accidental touches of a touch screen according to an exemplary embodiment of the present application is shown;
[0023] Figure 6 A flow chart of a method for preventing accidental touches of a touch screen according to an exemplary embodiment of the present application is shown;
[0024] Figure 7 A block diagram of a touch screen anti-mistouch device according to an exemplary embodiment of the present application is shown;
[0025] Figure 8 A block diagram of a terminal according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0027] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0028] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the screen coverage information involved in this application is obtained with full authorization.
[0029] Please refer to Figure 1 , which shows a flow chart of a method for preventing accidental touches of a touch screen according to an exemplary embodiment of the present application. Figure 1 , the method comprising:
[0030] Step 101: Determine screen coverage information of the touch screen, where the screen coverage information is used to indicate whether the touch screen is covered with a protective film.
[0031] The screen coverage information is used to distinguish between the film-applied scene and the non-film-applied scene. For example, the screen coverage information may be a film-applied scene, which is used to indicate that the current touch screen is in a film-applied scene; for another example, the screen coverage information is a non-film-applied scene, which is used to indicate that the current touch screen is in a non-film-applied scene. In some embodiments, the terminal adds a film detection switch in the setting options; the user can set the screen coverage information by setting the film detection switch on or off. For example, when the touch screen is covered with a protective film, the user can set the film detection switch to the on state; and when the touch screen is not covered with a protective film, the user can set the film detection switch to the off state. In this step, the set screen coverage information is determined from the setting options of the touch screen. For example, the state of the film detection switch is determined from the setting options of the touch screen; when the film detection switch is on, the screen coverage information is determined to be a film-applied scene; when the film detection switch is off, the screen coverage information is determined to be a non-film-applied scene. In an embodiment of the present application, a film detection switch is set in the setting options, and the screen coverage information is determined by setting the state of the film detection switch, so that the screen coverage information is determined simply and efficiently.
[0032] In some embodiments, when the film detection switch is turned on, the user can also set the thickness of the protective film. For example, the terminal displays multiple protective film thicknesses, and the multiple protective film thicknesses are used by the user to select the thickness of the protective film currently attached to the touch screen. The user can select a protective film thickness from the multiple protective film thicknesses, and the selected protective film thickness is the thickness of the protective film currently attached to the touch screen. Accordingly, the screen coverage information includes not only the film that has been attached, but also the thickness of the film that has been attached.
[0033] Step 102: Obtain the accidental touch prevention condition that matches the screen coverage information.
[0034] The terminal stores the correspondence between the screen coverage information and the anti-false touch conditions; based on the screen coverage information, the terminal obtains the anti-false touch conditions that match the screen coverage information from the correspondence between the screen coverage information and the anti-false touch conditions. In some embodiments, the anti-false touch conditions include an effective touch area, and the effective touch area includes at least one of an effective touch width, an effective touch height, and an effective touch area; the effective touch width refers to the width of a continuous effective reporting point; the effective touch height refers to the height of a continuous effective reporting point, and the effective touch area refers to the area of a continuous effective reporting point, and the effective reporting point refers to the reporting point where the capacitance value and the default capacitance value are greater than the preset capacitance value. In the embodiment of the present application, the effective touch area is taken as an example for explanation.
[0035] After the touch screen is pasted with a protective film of a certain thickness, the suppression effect of edge anti-mistouch will become worse, thus causing false touches. The main reason is that the film will increase the probability of the user's finger touching the capacitive touch (ITO) material, causing the coupling capacitance induction to decrease. This will cause the user's mobile phone to click on the edge of the touch screen under the film, and the touch event will not meet the preset anti-mistouch conditions, increasing the probability of anti-mistouch. In the embodiment of the present application, the screen coverage information is used to determine whether the touch screen is filmed, and by distinguishing between the film-pasting scene and the non-film-pasting scene, the anti-mistouch conditions are dynamically switched to solve the problem of high false touch rate of edge anti-mistouch in the film-pasting scene.
[0036] Step 103: storing the accidental touch prevention condition.
[0037] The terminal stores the anti-false touch conditions so that the anti-false touch processing can be performed based on the stored anti-false touch conditions. The terminal collects touch signals at regular intervals and determines whether the touch screen is touched by an object (a user's finger or other object) based on the touch signals; when the touch screen is detected to be touched by an object, step 104 is executed; when the touch screen is not detected to be touched by an object, touch signals are continuously collected until the touch screen is detected to be touched by an object, and then step 104 is executed.
[0038] The basic principle of the touch screen is capacitive sensing. When the user's finger or other object touches the sensing material on the surface of the touch screen, the capacitance of the touch screen will change. The touch screen determines that the touch screen is touched by an object based on the capacitance change. In addition, the touch screen can also determine the number of fingers or objects pressed by an algorithm. Step 104 is executed only when the number of fingers or objects does not exceed a preset number. The preset number can be 2 or 3, etc.
[0039] The working principle of the touch screen is to trigger a scanning signal of a certain frequency at a certain time, detect whether the object is pressed on the touch screen, and calculate the coordinates based on the capacitive signal for reporting. Capacitive touch screens do not rely on the force of the finger to create and change the voltage value to detect the coordinates. Capacitive touch screens work through any object that holds an electric charge, including human skin. (The charge carried by the human body) Capacitive touch screens are made of materials such as alloys or ITO, and the charge is stored in micro-static networks that are thinner than hair. When a finger clicks on the screen, a small amount of current will be absorbed from the contact point, causing a voltage drop in the corner electrode, and the purpose of touch is achieved by inducing the weak current of the human body.
[0040] Step 104: When the touch screen detects a touch event, an anti-false touch process is performed on the touch event based on event information of the touch event and the stored anti-false touch conditions.
[0041] When the touch screen detects a touch event, the effective touch area of the touch event is determined, and the capacitance value of the reported point in the effective touch area is greater than the preset capacitance value; if the effective touch area is not greater than the area threshold included in the anti-false touch condition, the touch event is suppressed; if the effective touch area is greater than the area threshold included in the anti-false touch condition, the touch event is reported. In some embodiments, reporting the touch event refers to reporting the touch event to an upper layer, and the upper layer refers to the terminal system.
[0042] In some embodiments, the touch screen includes multiple reporting points, and the capacitance value of each reporting point is the difference between the capacitance value sent by the TX transmission channel and the capacitance value received by the RX receiving channel, that is, the touch screen is formed by the intersection of the TX transmission channel and the RX receiving channel. The terminal determines the event information of the touch event by collecting the capacitance value of the reporting point, and the event information includes the effective touch area. The process can be: the terminal determines the capacitance values of multiple reporting points of the touch screen, and for multiple reporting points arranged in sequence, if the capacitance value of the reporting point is greater than the preset capacitance value, the reporting point is a valid reporting point, and the area of the valid reporting point is accumulated, that is, the effective touch right; if the capacitance value of the reporting point is not greater than the preset capacitance value, the reporting point is a non-valid reporting point, and the area of the valid reporting point is not accumulated.
[0043] In an embodiment of the present application, the screen coverage information can indicate whether the touch screen is covered with a protective film. Therefore, the anti-mistouch conditions obtained based on the screen coverage information can distinguish between the film-sticking scene and the non-film-sticking scene, that is, different anti-mistouch conditions are set for the film-sticking scene and the non-film-sticking scene, so that the anti-mistouch conditions can be dynamically switched according to the film-sticking scene and the non-film-sticking scene, thereby solving the problem of high false touch rate of edge anti-mistouch in the film-sticking scene. Therefore, the present application can improve the accuracy of anti-mistouch.
[0044] Please refer to Figure 2 , which shows a flow chart of a method for preventing accidental touches of a touch screen according to an exemplary embodiment of the present application. Figure 2 , the method comprising:
[0045] Step 201: The terminal determines screen coverage information of the touch screen, where the screen coverage information is used to indicate whether the touch screen is covered with a protective film.
[0046] In some embodiments, this step is the same as step 101 and will not be repeated here.
[0047] Step 202: When the screen coverage information indicates that the touch screen is covered with a protective film, the terminal determines that the false touch prevention condition is a first false touch prevention condition.
[0048] The first anti-false touch condition includes a first effective touch area, and the first effective touch area includes at least one of a first effective touch width, a first effective touch height, and a first effective touch area. The first effective touch width refers to the width of a continuous effective reporting point; the first effective touch height refers to the height of a continuous effective reporting point, and the first effective touch area refers to the area of a continuous effective reporting point. A valid reporting point refers to a reporting point where the capacitance value and the default capacitance value are greater than a preset capacitance value. In the embodiment of the present application, the effective touch area is taken as an example for explanation. For example, in the film-sticking scenario, the first anti-false touch condition includes a first preset threshold condition, and the first preset threshold condition is that the first effective touch width is 3.
[0049] In some embodiments, the terminal can also distinguish that different film thicknesses correspond to different first anti-false touch conditions; accordingly, the step for the terminal to determine that the anti-false touch condition is the first anti-false touch condition can be: the terminal determines the thickness of the protective film; obtains the first anti-false touch condition that matches the thickness. The thickness of the protective film is negatively correlated with the first effective touch area included in the first anti-false touch condition, that is, the thicker the thickness of the protective film, the smaller the first effective touch area, and the thinner the thickness of the protective film, the larger the first effective touch area. In the embodiment of the present application, different first anti-false touch conditions are set according to different film thicknesses, so that the touch event can be more accurately judged to prevent false touches, further improving the accuracy of anti-false touch.
[0050] Step 203: When the touch coverage information is used to indicate that the touch screen is not covered with a protective film, the terminal determines that the false touch prevention condition is a second false touch prevention condition.
[0051] The first anti-false touch condition includes a first effective touch area, and the second anti-false touch condition includes a second effective touch area, and the first effective touch area is smaller than the second effective touch area. The second effective touch area includes at least one of a second effective touch width, a second effective touch height, and a second effective touch area. The second effective touch width refers to the width of a continuous effective reporting point; the second effective touch height refers to the height of a continuous effective reporting point, and the second effective touch area refers to the area of a continuous effective reporting point. A valid reporting point refers to a reporting point where the capacitance value and the default capacitance value are greater than a preset capacitance value. In an embodiment of the present application, the effective touch area is taken as an example for explanation. For example, in a scenario where no film is applied, the second anti-false touch condition includes a second preset threshold condition, and the second preset threshold condition is that the second effective touch width is 5.
[0052] Step 204: The terminal stores the first false touch prevention condition or the second false touch prevention condition.
[0053] In some embodiments, when the touch coverage information is used to indicate that the touch screen is covered with a protective film, the terminal stores a first anti-mistouch condition; when the touch coverage information is used to indicate that the touch screen is not covered with a protective film, the terminal stores a second anti-mistouch condition.
[0054] In some embodiments, the terminal stores the first anti-false touch condition by default, that is, before the anti-false touch condition is determined based on the screen coverage information, the terminal stores the first anti-false touch condition in advance; and after the anti-false touch condition is determined based on the screen coverage information, the terminal updates the stored first anti-false touch condition to the determined anti-false touch condition, thereby assuming that the touch screen is in a non-film-sticking scenario, thereby avoiding the inability to perform anti-false touch processing due to the failure to store the anti-false touch condition.
[0055] In some embodiments, after the terminal stores the first anti-false touch condition or the second anti-false touch condition, it can also display a first prompt message in the status bar of the terminal, and the first prompt message is used to prompt the current anti-false touch condition for preventing false touches, that is, the first prompt message prompts whether the first anti-false touch condition or the second anti-false touch condition has been stored; in addition, the first prompt message can also prompt the scene in which the touch screen is located, that is, the first prompt message prompts whether the touch screen is in a film-sticking scene or a non-film-sticking scene, so that the user can understand the anti-false touch conditions and avoid making wrong operations.
[0056] Step 205: When the touch screen detects a touch event, the terminal performs an anti-mistake touch process on the touch event based on the event information of the touch event and the stored anti-mistake touch conditions.
[0057] In some embodiments, when the stored false-touch prevention condition is the first false-touch prevention condition, the terminal performs false-touch prevention processing on the touch event based on the event information of the touch event and the first false-touch prevention condition; when the stored false-touch prevention condition is the second false-touch prevention condition, the terminal performs false-touch prevention processing on the touch event based on the event information of the touch event and the second false-touch prevention condition. In addition, the process of the terminal performing false-touch prevention processing on the touch event based on the event information of the touch event and the first false-touch prevention condition (or the second false-touch prevention condition) is similar to step 104 and is not repeated here.
[0058] For example, in the film-sticking scenario, the capacitance values of multiple reporting points included in the touch screen are as follows: Figure 3 As shown in the figure, the TX transmission channels are numbered 0-14, that is, there are 15 TX transmission channels; the RX reception channels are numbered 0-33, that is, there are 34 RX reception channels; the preset capacitance value can be 50. Figure 3 The capacitance values of the omitted and unmarked points are all 0, and Figure 3There are 10 valid reporting points, namely (TX13, RX26), (TX13, RX27), (TX13, RX28), (TX13, RX29), (TX13, RX50), (TX14, RX26), (TX14, RX27), (TX14, RX28), (TX14, RX29) and (TX14, RX50). Therefore, in the film-sticking scenario, the effective touch width is 5. In the non-film-sticking scenario, the capacitance values of the multiple reporting points included in the touch screen are as follows Figure 4 As shown, in Figure 4 The capacitance values of the omitted and unmarked points are all 0, and Figure 4 There are 6 valid reporting points, namely (TX13, RX27), (TX13, RX28), (TX13, RX29), (TX14, RX27), (TX14, RX28), (TX14, RX29). Therefore, in the non-film-sticking scenario, the effective touch width is 3. In the related art, the film-sticking scenario and the non-film-sticking scenario are not distinguished. Therefore, the anti-false touch conditions of the film-sticking scenario and the non-film-sticking scenario are the same, and the effective touch width is 5. The actual effective width reported by the film is 3, and the effective width included in the anti-false touch condition is 5. Then the current touch event is reported to the terminal system, causing a false touch. In the embodiment of the present application, in the film-sticking scenario, the effective width included in the first anti-false touch condition is 3, and in the film-sticking scenario, the effective width included in the second anti-false touch condition is 5. The actual effective width reported by the film is 3, and the effective width included in the second anti-false touch condition is 3, and the current touch event is suppressed.
[0059] In some embodiments, in step 204, the terminal stores the first anti-false touch condition and the second anti-false touch condition; in this step, the terminal can also determine whether to select the first anti-false touch condition or the second anti-false touch condition in combination with the application running in the foreground; for example, if the application running in the foreground is an application in the whitelist, the first anti-false touch condition is selected; and if the application running in the foreground is not an application in the whitelist, the second anti-false touch condition is selected. The whitelist stores applications with higher precision requirements. The present application not only combines the film-sticking scenario and the non-film-sticking scenario, but also combines the application running in the foreground to select the anti-false touch condition, thereby improving the accuracy of the determined anti-false touch condition, and then improving the accuracy of the anti-false touch.
[0060] In other embodiments, the first or second anti-false touch condition is still stored in step 204, and the terminal fine-tunes the stored anti-false touch condition in combination with the application running in the foreground; for example, if the application running in the foreground is an application in the white list, the effective touch area included in the stored anti-false touch condition is reduced (the effective touch width is adjusted from 3 to 2); and if the application running in the foreground is not an application in the white list, the effective touch area included in the stored anti-false touch condition is increased (the effective touch width is adjusted from 3 to 4), thereby accurately fine-tuning the anti-false touch condition and improving the accuracy of anti-false touch.
[0061] In some embodiments, in step 204, the terminal stores the first anti-false touch condition and the second anti-false touch condition; in this step, the terminal can also select the first anti-false touch condition or the second anti-false touch condition according to the state of the touch screen, and the state of the touch screen can be horizontal or vertical. For example, if the touch screen is in the horizontal state, the first anti-false touch condition is selected, and if the touch screen is in the vertical state, the second anti-false touch condition is selected, so that the anti-false touch condition is selected in combination with not only the film-sticking scene and the non-film-sticking scene, but also the state of the touch screen, thereby improving the accuracy of the determined anti-false touch condition, and further improving the accuracy of the anti-false touch.
[0062] In other embodiments, the first anti-false touch condition or the second anti-false touch condition is still stored in step 204, and the terminal fine-tunes the stored anti-false touch condition in combination with the state of the touch screen; for example, if the touch screen is in the horizontal state, the effective touch area included in the stored anti-false touch condition is reduced (the effective touch width is adjusted from 3 to 2); and if the touch screen is in the vertical state, the effective touch area included in the stored anti-false touch condition is increased (the effective touch width is adjusted from 3 to 4), thereby accurately fine-tuning the anti-false touch condition and improving the accuracy of anti-false touch.
[0063] In an embodiment of the present application, the screen coverage information can indicate whether the touch screen is covered with a protective film. Therefore, the anti-mistouch conditions obtained based on the screen coverage information can distinguish between the film-sticking scene and the non-film-sticking scene, that is, different anti-mistouch conditions are set for the film-sticking scene and the non-film-sticking scene, so that the anti-mistouch conditions can be dynamically switched according to the film-sticking scene and the non-film-sticking scene, thereby solving the problem of high false touch rate of edge anti-mistouch in the film-sticking scene. Therefore, the present application can improve the accuracy of anti-mistouch.
[0064] Please refer to Figure 5 , which shows a flow chart of a method for preventing accidental touches of a touch screen according to an exemplary embodiment of the present application. Figure 5 , the method comprising:
[0065] Step 501: The terminal determines screen coverage information of the touch screen, where the screen coverage information is used to indicate whether the touch screen is covered with a protective film.
[0066] In some embodiments, this step is the same as step 101 and will not be repeated here.
[0067] Step 502: The terminal obtains an anti-mistouch condition that matches the screen coverage information.
[0068] In some embodiments, this step is the same as step 102; alternatively, this step can be implemented through steps 202-203, which will not be described in detail here.
[0069] Step 503: The terminal stores the accidental touch prevention conditions.
[0070] In some embodiments, this step is the same as step 103 and will not be repeated here.
[0071] Step 504: When the duration of determining the screen coverage information reaches a preset duration, the terminal determines the screen coverage information of the touch screen again.
[0072] The terminal periodically updates the anti-false touch condition; therefore, when the time difference between the last time the screen coverage information was determined and the current time reaches a preset time length, the terminal determines the screen coverage information of the touch screen again; the process of the terminal determining the screen coverage information of the touch screen again is similar to step 501 and will not be repeated here. In the embodiment of the present application, the terminal periodically updates the anti-false touch condition, so that the touch event can be processed for false touch according to the latest anti-false touch condition, thereby improving the accuracy of the anti-false touch processing.
[0073] In some embodiments, since the user changes the touch coverage information through the film service switch, the terminal can also monitor the status of the film service switch; when the status of the film service switch changes, the screen coverage information of the touch screen is determined again, avoiding the waste of resources caused by frequently determining the screen coverage information when the screen coverage information has not changed.
[0074] In some embodiments, when a user applies a film to the touch screen, the terminal is often turned off; therefore, the terminal can display a second prompt message when it is turned on, and the second prompt message is used to prompt the user whether to apply a film to the touch screen, and when the user applies a film to the touch screen, guidance information for modifying the state of the film application service switch is provided, so that the user can modify the state of the film application service switch as soon as possible when applying a film to the touch screen, that is, modify the screen coverage information as soon as possible, and then the terminal can perform anti-mistouch judgment based on the latest screen coverage information, thereby improving the accuracy of anti-mistouch.
[0075] Step 505: When the re-determined screen coverage information is different from the last determined screen coverage information, the terminal obtains the false touch prevention condition matching the re-determined screen coverage information.
[0076] In some embodiments, if the screen coverage information determined again is that a film has been applied, the anti-false touch condition is the first anti-false touch condition; if the screen coverage information determined again is that a film has not been applied, the anti-false touch condition is the second anti-false touch condition.
[0077] Step 506: The terminal updates the stored accidental touch prevention condition to the re-determined accidental touch prevention condition.
[0078] In some embodiments, when the stored false-touch prevention condition is the first false-touch prevention condition, and the false-touch prevention condition determined again is the second false-touch prevention condition, the terminal updates the first false-touch prevention condition to the second false-touch prevention condition, that is, stores the second false-touch prevention condition. When the stored false-touch prevention condition is the second false-touch prevention condition, and the false-touch prevention condition determined again is the first false-touch prevention condition, the terminal updates the second false-touch prevention condition to the first false-touch prevention condition, that is, stores the first false-touch prevention condition.
[0079] Step 507: When the touch screen detects a touch event, the terminal performs an anti-mistake touch process on the touch event based on the event information of the touch event and the stored anti-mistake touch conditions.
[0080] In some embodiments, this step is the same as step 104 and will not be repeated here.
[0081] In the embodiment of the present application, the terminal periodically updates the false touch prevention conditions, so that the false touch prevention processing can be performed on the touch event according to the latest false touch prevention conditions, thereby improving the accuracy of the false touch prevention processing.
[0082] Please refer to Figure 6 , which shows a flowchart of a touch screen anti-mistaken touch method shown in an exemplary embodiment of the present application. The execution subject of the method is a terminal, which includes a film pasting service module and an anti-mistaken touch module. In the embodiment of the present application, the interaction between the film pasting service module and the anti-mistaken touch module is used as an example to explain the touch screen anti-mistaken touch method in detail. Figure 6 , the method comprising:
[0083] Step 601: The film-sticking service module determines screen coverage information of the touch screen, where the screen coverage information is used to indicate whether the touch screen is covered with a protective film.
[0084] In some embodiments, this step is similar to step 101 and will not be repeated here.
[0085] Step 602: The film pasting service module obtains the anti-mistouch condition matching the screen coverage information.
[0086] In some embodiments, this step is identical to step 102; alternatively, this step can be implemented through steps 202-203, which will not be described in detail here.
[0087] Step 603: the film pasting service module sends a storage instruction to the accidental touch prevention module. The storage instruction carries a command flag, and the command flag is used to mark the acquired accidental touch prevention condition.
[0088] When the anti-false touch condition obtained in step 602 is the first anti-false touch condition, the stored instruction is the first instruction; for example, the stored instruction is Flag=1, representing the first instruction; when the anti-false touch condition obtained in step 602 is the second anti-false touch condition, the stored instruction is the second instruction; for example, the stored instruction is Flag=2, representing the second instruction.
[0089] In some embodiments, the anti-mistaken touch module is set in the wireless access point (AP) system of the terminal, that is, the processing of the anti-mistaken touch module can be implemented by a program in the AP system. In other embodiments, the anti-mistaken touch module is set in the touch screen system of the terminal, and the anti-mistaken touch module is actually the touch screen driver in the touch screen system. Accordingly, this step can be: the film service module sends a storage instruction to the touch screen driver, and the storage instruction carries a command flag, and the command flag is used to mark the acquired anti-mistaken touch condition. The touch screen driver receives the storage instruction and forwards the storage instruction to the touch screen system. The operating system of the terminal is an Android operating system, and the Android operating system is divided into different software levels. For example, the Android operating system includes not only a touch screen driver, but also a battery management system service. The touch screen driver is responsible for receiving the storage instruction issued by the upper system service (film service module), and based on the storage instruction, it communicates data with the touch screen system, and is about to forward the storage instruction to the touch screen system. The battery management system service is responsible for monitoring the judgment of the insertion and removal status of the charger, and based on the insertion and removal status of the charger, controls the opening and closing of the charging switch.
[0090] Step 604: the anti-accidental touch module receives the storage instruction sent by the film-sticking service module, obtains the anti-accidental touch condition marked by the command flag, and stores the anti-accidental touch condition.
[0091] The anti-accidental touch module receives the first instruction sent by the film-sticking service module, obtains the first anti-accidental touch condition marked by the first instruction, and stores the first anti-accidental touch condition; the anti-accidental touch module receives the second instruction sent by the film-sticking service module, obtains the second anti-accidental touch condition marked by the second instruction, and stores the second anti-accidental touch condition. The anti-accidental touch module stores the first anti-accidental touch condition by default. Therefore, when the anti-accidental touch condition marked by the command flag is the first anti-accidental touch condition, the anti-accidental touch module does not update the anti-accidental touch condition; when the anti-accidental touch condition marked by the command flag is the second anti-accidental touch condition, the anti-accidental touch module updates the first anti-accidental touch condition to the second anti-accidental touch condition.
[0092] In some embodiments, when the film-sticking service module sends a storage instruction to the touch screen driver in step 603, step 604 can be replaced by: the touch screen system receives the storage instruction forwarded by the touch screen driver, obtains the anti-false touch condition marked by the command flag bit, and stores the anti-false touch condition in the register of the touch screen system through the data communication interface. The register is the memory of the touch screen system; the data communication interface can be an I2C interface, an SPI interface, or an I3C interface. The touch screen system also has its own central processing unit (CPU), and the touch screen system obtains the anti-false touch condition marked by the command flag bit through the CPU; in addition, the CPU of the touch screen system can also obtain the anti-false touch condition based on the screen coverage information; accordingly, the process can be: the film-sticking service module obtains the screen coverage information and sends the screen coverage information to the touch screen driver; the touch screen driver receives the screen coverage information, forwards the screen coverage information to the touch screen system, obtains the anti-false touch condition matching the screen coverage information, and stores the anti-false touch condition in the register of the touch screen system through the data communication interface. Similarly, the touch screen system stores the first anti-false touch condition by default. Therefore, when the anti-false touch condition marked by the command flag is the first anti-false touch condition, the touch screen system does not update the anti-false touch condition in the register; when the anti-false touch condition marked by the command flag is the second anti-false touch condition, the touch screen system updates the first anti-false touch condition in the register to the second anti-false touch condition.
[0093] Step 605: When the touch screen detects a touch event, the false touch prevention module performs false touch prevention processing on the touch event based on the event information of the touch event and the stored false touch prevention conditions.
[0094] In some embodiments, this step is similar to step 104 and will not be described again here.
[0095] In an embodiment of the present application, through the interaction between the film sticking service module and the anti-mistouch module, the anti-mistouch module can dynamically switch the anti-mistouch conditions through the film sticking scene and the non-film sticking scene, thereby solving the problem of high false touch rate of edge anti-mistouch in the film sticking scene. Therefore, the present application can improve the accuracy of anti-mistouch.
[0096] Please refer to Figure 7 , which shows an anti-mistouch device for a touch screen shown in an exemplary embodiment of the present application, the device includes:
[0097] A determination module 701 is used to determine screen coverage information of the touch screen, where the screen coverage information is used to indicate whether the touch screen is covered with a protective film;
[0098] An acquisition module 702 is used to acquire an anti-mistouch condition matching the screen coverage information;
[0099] Storage module 703, used for storing accidental touch prevention conditions;
[0100] The false touch prevention module 704 is used to perform false touch prevention processing on the touch event based on the event information of the touch event and the stored false touch prevention conditions when the touch screen detects a touch event.
[0101] In some embodiments, the acquisition module 702 is used to determine that the anti-false touch condition is the first anti-false touch condition when the screen coverage information is used to indicate that the touch screen is covered with a protective film; and to determine that the anti-false touch condition is the second anti-false touch condition when the touch coverage information is used to indicate that the touch screen is not covered with a protective film.
[0102] In some embodiments, the acquisition module 702 is used to determine the thickness of the protective film; and acquire a first error-proofing condition that matches the thickness.
[0103] In some embodiments, the first false touch prevention condition includes a first effective touch area, the second false touch prevention condition includes a second effective touch area, and the first effective touch area is smaller than the second effective touch area.
[0104] In some embodiments, the apparatus further comprises:
[0105] The determination module 701 is further configured to determine the screen coverage information of the touch screen again when the duration of determining the screen coverage information reaches a preset duration;
[0106] The acquisition module 702 is further configured to, when the re-determined screen coverage information is different from the last determined screen coverage information, acquire an anti-mistouch condition matching the re-determined screen coverage information;
[0107] The updating module is used to update the stored accidental touch prevention condition to the re-determined accidental touch prevention condition.
[0108] In some embodiments, the determination module 701 is used to determine the set screen coverage information from the setting options of the touch screen.
[0109] In some embodiments, the determination module 701 is used to determine the screen coverage information of the touch screen through the film service module of the terminal;
[0110] An acquisition module 702 is used to acquire an anti-mistouch condition matching the screen coverage information;
[0111] The storage module 703 is used to send a storage instruction to the anti-mistaken touch module 704 of the terminal through the film service module. The storage instruction carries a command flag bit, and the command flag bit is used to mark the obtained anti-mistaken touch condition; through the anti-mistaken touch module 704, the anti-mistaken touch condition marked by the command flag bit is obtained, and the anti-mistaken touch condition is stored.
[0112] In some embodiments, the false touch prevention module 704 is arranged in the AP system of the terminal, or the false touch prevention module 704 is arranged in the touch screen system of the terminal.
[0113] In some embodiments, the false touch prevention module 704 is used to determine the effective touch area of the touch event, and the capacitance value of the reporting point in the effective touch area is greater than the preset capacitance value; when the effective touch area is not greater than the area threshold included in the false touch prevention condition, the touch event is suppressed.
[0114] In an embodiment of the present application, the screen coverage information can indicate whether the touch screen is covered with a protective film. Therefore, the anti-mistouch conditions obtained based on the screen coverage information can distinguish between the film-sticking scene and the non-film-sticking scene, that is, different anti-mistouch conditions are set for the film-sticking scene and the non-film-sticking scene, so that the anti-mistouch conditions can be dynamically switched according to the film-sticking scene and the non-film-sticking scene, thereby solving the problem of high false touch rate of edge anti-mistouch in the film-sticking scene. Therefore, the present application can improve the accuracy of anti-mistouch.
[0115] It should be noted that the touch screen anti-mis-touch device provided in the above embodiment only uses the division of the above functional modules as an example when performing the touch screen anti-mis-touch. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the touch screen anti-mis-touch device provided in the above embodiment and the touch screen anti-mis-touch method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0116] Please refer to Figure 8 , which shows a block diagram of a terminal 800 according to an exemplary embodiment of the present application. The terminal 800 in the present application may include one or more of the following components: a processor 810 , a memory 820 , and a touch screen 830 .
[0117] The processor 810 may include one or more processing cores. The processor 810 uses various interfaces and lines to connect the various parts of the entire terminal 800, and executes various functions and processes data of the terminal 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 820, and calling data stored in the memory 820. Optionally, the processor 810 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 810 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content that the touch screen 830 needs to display; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 810, but may be implemented by a separate chip.
[0118] The memory 820 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 820 includes a non-transitory computer-readable storage medium. The memory 820 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 820 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book), etc., created according to the use of the terminal 800.
[0119] The touch screen 830 is a display component for displaying a user interface. Optionally, the touch screen 830 is a display screen with a touch function, through which the user can use any suitable object such as a finger, a touch pen, etc. to perform touch operations on the touch screen 830.
[0120] The touch screen 830 is usually arranged on the front panel of the terminal 800. The touch screen 830 can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The touch screen 830 can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.
[0121] In addition, those skilled in the art can understand that the structure of the terminal 800 shown in the above drawings does not constitute a limitation on the terminal 800, and the terminal 800 may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal 800 also includes an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, Wi-Fi) module, a power supply, a Bluetooth module and other components, which will not be repeated here.
[0122] The embodiments of the present application further provide a computer-readable medium storing at least one program code, which is loaded and executed by a processor to implement the touch screen anti-mistouch method as shown in the above embodiments.
[0123] An embodiment of the present application further provides a computer program product, which stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the touch screen anti-mistouch method shown in the above embodiments.
[0124] In some embodiments, the computer program product involved in the embodiments of the present application may be deployed and executed on one terminal, or on multiple terminals located at one location, or on multiple terminals distributed at multiple locations and interconnected by a communication network. Multiple terminals distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.
[0125] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0126] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for preventing accidental touch of a touch screen, characterized in that: The method comprises: Determining screen coverage information of the touch screen, where the screen coverage information is used to indicate whether the touch screen is covered with a protective film; Acquire an anti-mistouch condition that matches the screen coverage information; storing the accidental touch prevention condition; When the touch screen detects a touch event, an anti-mis-touch process is performed on the touch event based on event information of the touch event and stored anti-mis-touch conditions.
2. The method according to claim 1, characterized in that The acquiring the accidental touch prevention condition matching the screen coverage information includes: When the screen coverage information indicates that the touch screen is covered with a protective film, determining that the false touch prevention condition is a first false touch prevention condition; In a case where the touch cover information is used to indicate that the touch screen is not covered with a protective film, the false touch prevention condition is determined to be a second false touch prevention condition.
3. The method according to claim 2, characterized in that The determining the first touch condition as a first false touch prevention condition includes: Determining the thickness of the protective film; A first mistake-touch prevention condition matching the thickness is obtained.
4. The method according to claim 2, characterized in that: The first false touch prevention condition includes a first effective touch area, the second false touch prevention condition includes a second effective touch area, and the first effective touch area is smaller than the second effective touch area.
5. The method according to claim 1, characterized in that The method further comprises: When it is determined that the duration of the screen coverage information reaches a preset duration, the screen coverage information of the touch screen is determined again; When the re-determined screen coverage information is different from the last determined screen coverage information, obtaining an anti-mistouch condition matching the re-determined screen coverage information; The stored accidental touch prevention conditions are updated to the re-determined accidental touch prevention conditions.
6. The method according to claim 1 or 5, characterized in that: The determining the screen coverage information of the touch screen includes: The set screen coverage information is determined from the setting options of the touch screen.
7. The method according to claim 1, characterized in that The determining screen coverage information of the touch screen, acquiring a touch condition newly matched with the screen coverage, and storing the false touch prevention condition includes: Determine the screen coverage information of the touch screen through the film sticking service module of the terminal, and obtain the anti-mistouch condition matching the screen coverage information; Sending a storage instruction to the anti-mistaken-touch module of the terminal through the film-sticking service module, wherein the storage instruction carries a command flag, and the command flag is used to mark the acquired anti-mistaken-touch condition; The anti-accidental touch condition marked by the command flag is obtained through the anti-accidental touch module, and the anti-accidental touch condition is stored.
8. The method according to claim 7, characterized in that The anti-mistaken-touch module is arranged in the wireless access point AP system of the terminal, or the anti-mistaken-touch module is arranged in the touch screen system of the terminal.
9. The method according to claim 1, characterized in that: The performing an anti-mistake touch process on the touch event based on the event information of the touch event and the stored anti-mistake touch condition includes: Determine a valid touch area of the touch event, wherein a capacitance value of a reporting point in the valid touch area is greater than a preset capacitance value; In a case where the effective touch area is not larger than an area threshold included in the false touch prevention condition, the touch event is suppressed.
10. A touch screen anti-mistouch device, characterized in that: The device comprises: A determination module, used to determine screen coverage information of the touch screen, wherein the screen coverage information is used to indicate whether the touch screen is covered with a protective film; An acquisition module, used to acquire an anti-mistouch condition matching the screen coverage information; A storage module, used for storing the accidental touch prevention condition; The false touch prevention module is used for performing false touch prevention processing on the touch event based on the event information of the touch event and the stored false touch prevention conditions when the touch screen detects a touch event.
11. A terminal, characterized in that: The terminal includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the touch screen anti-mistouch method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: At least one program code is stored in the storage medium, and the at least one program code is loaded and executed by the processor to implement the touch screen anti-mistouch method according to any one of claims 1 to 9.
13. A computer program product, characterized in that The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the touch screen anti-mistouch method according to any one of claims 1 to 9.
