Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first object of the present invention is to provide a capacitive screen calibration method, which implements automatic calibration of a capacitive screen, reduces the cost of manual calibration, saves calibration time, effectively improves the efficiency of capacitive screen calibration, and improves user experience.
The second purpose of the invention is to provide a capacitive screen calibration device.
A third object of the present invention is to provide a terminal device.
A fourth object of the invention is to propose a computer-readable storage medium.
To achieve the above object, according to a first aspect of the present invention, a capacitive screen calibration method is provided, including:
dividing the capacitive screen into N different areas according to a preset rule, wherein N is a positive integer greater than 1;
simulating K times of touch screen events in an ith area, wherein i is a positive integer which is greater than or equal to 1 and less than or equal to N, and K is a positive integer;
counting the number L of touch screen events actually acquired in the ith area;
and adjusting the sensitivity of the capacitive screen according to the difference value of the K and the L corresponding to each area.
In the calibration method for the capacitive screen, the capacitive screen is divided into N different areas according to a preset rule, then a plurality of touch screen events are simulated in an ith area of the N different areas, the number of times of touch screen events actually acquired in the ith area is counted, and the sensitivity of the capacitive screen is adjusted according to the difference between the simulated K touch screen events respectively corresponding to each area and the actually acquired number of times of touch screen events. From this, through dividing into a plurality of regions with the electric capacity screen to according to the screen jumping number of times in each region, carry out automatic calibration to the electric capacity screen, reduced the cost of artifical calibration cost, saved calibration time, effectively improved the efficiency of electric capacity screen calibration, promoted user experience.
In addition, the calibration method for the capacitive screen provided by the above embodiment of the present invention may further have the following additional technical features:
in an embodiment of the present invention, the dividing the capacitive screen into N different areas according to a preset rule includes:
and dividing the capacitive screen into N different areas according to the size of the capacitive screen and/or the performance parameters of the terminal to which the capacitive screen belongs.
In an embodiment of the present invention, the adjusting the sensitivity of the capacitive screen according to the difference between K and L corresponding to each region includes:
acquiring a difference reference set according to the difference value of the K and the L corresponding to each region;
determining the average screen jumping times corresponding to the capacitive screen according to the difference value reference set;
and adjusting the sensitivity of the capacitive screen according to the average screen jumping times.
In an embodiment of the present invention, after the adjusting the sensitivity of the capacitive screen, the method further includes:
and repeatedly executing the operations of simulating K times of touch screen events in the ith area and adjusting the sensitivity of the capacitive screen according to the difference value between the number L of times of actually acquired touch screen events and K on the basis of the adjusted sensitivity parameters until the difference value between K and L corresponding to each area is determined to be in a preset range.
In an embodiment of the present invention, before adjusting the sensitivity of the capacitive screen according to the difference between K and L corresponding to each region, the method further includes:
if the difference values of K and L corresponding to each region are all larger than a threshold value, or if the difference values of K and L corresponding to at least M regions are all larger than the threshold value, adjusting the technical parameters of the capacitive screen, wherein M is a positive integer larger than 1.
In order to achieve the above object, a second embodiment of the present invention provides a capacitive screen calibration apparatus, including:
the dividing module is used for dividing the capacitive screen into N different areas according to a preset rule, wherein N is a positive integer greater than 1;
the touch screen display device comprises an operation module, a display module and a display module, wherein the operation module is used for simulating K times of touch screen events in an ith area, i is a positive integer which is greater than or equal to 1 and less than or equal to N, and K is a positive integer;
the counting module is used for counting the frequency L of touch screen events actually acquired in the ith area;
and the first adjusting module is used for adjusting the sensitivity of the capacitive screen according to the difference value of the K and the L corresponding to each area.
In the calibration device for the capacitive screen provided in this embodiment, the capacitive screen is divided into N different areas according to a preset rule, then multiple touch screen events are simulated in an ith area of the N different areas, the number of times of touch screen events actually acquired in the ith area is counted, and the sensitivity of the capacitive screen is adjusted according to the difference between the number of times of simulated K touch screen events respectively corresponding to each area and the number of times of touch screen events actually acquired. From this, through dividing into a plurality of regions with the electric capacity screen to according to the screen jumping number of times in each region, carry out automatic calibration to the electric capacity screen, reduced the cost of artifical calibration cost, saved calibration time, effectively improved the efficiency of electric capacity screen calibration, promoted user experience.
In addition, the capacitive screen calibration apparatus provided by the above embodiment of the present invention may further have the following additional technical features:
in an embodiment of the present invention, the adjusting module includes:
the acquisition unit is used for acquiring a difference value reference set according to the difference value of the K and the L respectively corresponding to each region;
the determining unit is used for determining the average screen jumping times corresponding to the capacitive screen according to the difference value reference set;
and the adjusting unit is used for adjusting the sensitivity of the capacitive screen according to the average screen jumping times.
In another embodiment of the present invention, after the adjusting module, the method further includes:
and the second adjusting module is used for repeatedly executing operations of simulating K times of touch screen events in the ith area based on the adjusted sensitivity parameters and adjusting the sensitivity of the capacitive screen according to the difference value between the number L of times of the touch screen events and the number K of times of the touch screen events which are actually acquired until the difference value between the number K and the number L which respectively correspond to each area is determined to be within the preset range.
To achieve the above object, a third aspect of the present invention provides a terminal device, including: the device comprises a capacitive screen, a memory and a processor;
the capacitive screen is used for responding to the operation input by the user;
the memory for storing executable program code;
the processor is configured to read the executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the capacitive screen calibration method described in the embodiment of the first aspect.
In the terminal device provided in this embodiment, the capacitive screen is divided into N different areas according to a preset rule, then a touch screen event is simulated for multiple times in an ith area of the N different areas, the number of times of the touch screen event actually acquired in the ith area is counted, and the sensitivity of the capacitive screen is adjusted according to a difference between the simulated K touch screen events respectively corresponding to each area and the actually acquired number of times of the touch screen event. From this, through dividing into a plurality of regions with the electric capacity screen to according to the screen jumping number of times in each region, carry out automatic calibration to the electric capacity screen, reduced the cost of artifical calibration cost, saved calibration time, effectively improved the efficiency of electric capacity screen calibration, promoted user experience.
To achieve the above object, a fourth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the capacitive screen calibration method according to the first embodiment.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The embodiment of the invention provides a capacitive screen calibration method, which mainly aims at the problems of high cost, long time, low efficiency and the like when a capacitive screen is calibrated in a manual mode in the prior art.
The capacitive screen calibration method provided by the invention divides the capacitive screen into N different areas according to a preset rule, then simulates K touch screen events in the ith area of the N different areas, counts the number L of touch screen events actually acquired in the ith area, and finally adjusts the sensitivity of the capacitive screen according to the difference value between the simulated K touch screen events and the actually acquired number L of touch screen events respectively corresponding to each area. From this, when carrying out the calibration to the electric capacity screen, realized automatic calibration, reduced the cost of artifical calibration cost, saved calibration time, effectively promoted the efficiency of electric capacity screen calibration, promoted user experience.
The following describes in detail a calibration method for a capacitive screen according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a flowchart of a capacitive screen calibration method according to an embodiment of the present invention.
As shown in fig. 1, the capacitive screen calibration method may include the following steps:
step 101, dividing the capacitive screen into N different areas according to a preset rule, wherein N is a positive integer greater than 1.
Specifically, the capacitive screen calibration method provided in this embodiment may be executed by the capacitive screen calibration apparatus provided in the present invention, where the capacitive screen calibration apparatus is configured in a terminal device to perform calibration control on a capacitive screen.
In specific implementation, the capacitive screen can be divided into N different areas according to the size of the capacitive screen; or dividing the capacitive screen into N different areas according to the performance parameters of the terminal to which the capacitive screen belongs; or, the capacitive screen is divided into N different areas according to the size of the capacitive screen and the performance parameters of the terminal to which the capacitive screen belongs.
Preferably, in this embodiment, the capacitive screen is divided into N different areas according to the size of the capacitive screen and the performance parameters of the terminal to which the capacitive screen belongs.
The performance parameters of the terminal to which the capacitive screen belongs may include, but are not limited to, a Central Processing Unit (CPU) core number, a CPU frequency, and the like, which is not specifically limited in this application.
For example, if the size of the capacitive screen in this embodiment is 5.5 inches, the central processing unit of the device to which the capacitive screen belongs is dual core, and the frequency is 1.4GHz, the capacitive screen may be divided into 2000 different areas.
For another example, if the size of the capacitive screen is 5.5 inches, the central processing unit of the terminal to which the capacitive screen belongs is four cores, and the frequency is 2.4GHz, then the capacitive screen can be divided into 3000 different areas.
That is to say, the number of the divided areas of the capacitive screen is determined according to the processing capacity of the central processing unit of the terminal to which the capacitive screen belongs and the size of the capacitive screen, so that the problem that the central processing unit in the terminal equipment is mainly used for processing the calibration of the capacitive screen due to the limited capacity of the central processing unit of the terminal and the excessive division of the area of the capacitive screen, so that other programs cannot normally run can be effectively avoided, the programs in the equipment to which the capacitive screen belongs and the calibration of the capacitive screen can be simultaneously carried out, and the requirement that the terminal normally runs other programs is met.
And 102, simulating K times of touch screen events in the ith area, wherein i is a positive integer which is greater than or equal to 1 and less than or equal to N, and K is a positive integer.
Specifically, after the capacitive screen is divided into N different regions, a simulated touch event may be performed on each of the N different regions.
The times of the simulation touch events corresponding to each area can be the same or different, and the K times of simulation touch screen events can be adaptively set according to actual needs. Such as 10, 20, etc., which is not specifically limited by the present application.
For example, if the number of N different areas is 20, and the number of times of simulating the touch screen event in each area is 10 times of touching in 10 seconds(s), the operation of simulating the number of times of the touch screen event in 10 seconds may be performed in each of the 20 different areas.
And 103, counting the number L of touch screen events actually acquired in the ith area.
Specifically, the capacitive screen may jump due to the influence of the temperature, humidity, static electricity, etc. of the environment where the capacitive screen is located. Therefore, the frequency L of the touch screen event actually acquired may be different from the frequency K of the actual simulation, and therefore, in the embodiment of the application, the probability of screen jump occurring in each area of the current capacitive screen may be determined by counting the frequency of the touch screen event actually acquired in each area.
And 104, adjusting the sensitivity of the capacitive screen according to the difference value of the K and the L corresponding to each area.
Specifically, the difference between K and L corresponding to each region is the number of screen skipping in the region. Different electronic devices are distributed at different positions of the terminal mainboard, so that screen jumping times corresponding to different positions of the capacitive screen under the same environment are possibly different. Therefore, in the embodiment of the application, the capacitive screen is divided into the plurality of areas, and the sensitivity of the capacitive screen is adjusted according to the screen jumping times corresponding to each area, so that the overall reliability and accuracy of the capacitive screen are improved.
In specific implementation, the difference value between the simulated touch screen event frequency K and the actual touch screen event frequency L can be differentiated from the threshold value to obtain compensation values for sensitivity adjustment of different areas, and then the sensitivity of different areas in the capacitive screen is adjusted according to the compensation values, so that the purpose of sensitivity adjustment of the capacitive screen is achieved.
In the calibration method for the capacitive screen, the capacitive screen is divided into N different areas according to a preset rule, then multiple touch screen events are simulated in an ith area of the N different areas in sequence, the number of times of touch screen events actually acquired in the ith area is counted, and the sensitivity of the capacitive screen is adjusted according to the difference between the number of times of simulated K touch screen events and the number of times of touch screen events actually acquired, which correspond to each area. From this, through dividing into a plurality of regions with the electric capacity screen to according to the screen jumping number of times in each region, carry out automatic calibration to the electric capacity screen, reduced the cost of artifical calibration cost, saved calibration time, effectively improved the efficiency of electric capacity screen calibration, promoted user experience.
According to the analysis, the sensitivity of the capacitive screen is adjusted according to the difference value between the number of times of the simulated touch screen events corresponding to each area and the number of times of the touch screen events actually acquired. In a possible implementation scenario of the present invention, when the difference value corresponding to each different area is large, each area may be first screened according to the difference value corresponding to each area, and then the sensitivity of the capacitive screen is adjusted only according to the difference value corresponding to a part of the areas. The calibration method of the capacitive screen in the above case is further described with reference to fig. 2.
Fig. 2 is a flowchart of a capacitive screen calibration method according to another embodiment of the invention.
As shown in fig. 2, the calibration method for a capacitive screen according to an embodiment of the present invention may include the following steps:
step 201, dividing the capacitive screen into N different areas according to a preset rule, where N is a positive integer greater than 1.
Step 202, simulating K times of touch screen events in the ith area, wherein i is a positive integer which is greater than or equal to 1 and less than or equal to N, and K is a positive integer.
And step 203, counting the number L of touch screen events actually acquired in the ith area.
And step 204, determining whether to adjust the sensitivity of the capacitive screen or not according to the difference value of the K and the L and the threshold value respectively corresponding to each area, if so, executing step 205, and otherwise, not performing any processing.
Specifically, the difference between K and L corresponding to each region is the number of screen skipping in the region. Different electronic devices are distributed at different positions of the terminal mainboard, so that screen jumping times corresponding to different positions of the capacitive screen under the same environment are possibly different. Therefore, in the embodiment of the application, the capacitive screen is divided into the plurality of areas, and whether the sensitivity of the capacitive screen is adjusted or not is determined according to the screen jumping times and the threshold value corresponding to each area, so that the overall reliability and accuracy of the capacitive screen are improved.
In specific implementation, the difference between K and L corresponding to each region is compared with a threshold, and if the difference between K and L corresponding to each region is greater than the threshold, or if the difference between K and L corresponding to at least M regions is greater than the threshold, the technical parameter of the capacitive screen is adjusted, where M is a positive integer greater than 1.
The threshold may be specifically set according to an actual use condition, and the present application is not particularly limited to this.
It should be noted that, in this embodiment, when it is determined that the sensitivity of the capacitive screen needs to be adjusted, parameters of the capacitive screen, such as operating voltage, current, self-capacitance, and mutual capacitance, may be adjusted to achieve the purpose of adjusting the sensitivity of the capacitive screen.
Step 205, obtaining a difference reference set according to the difference between K and L corresponding to each region.
For example, if the number of N different regions of the capacitive screen is 10, and the number of times of simulating the touch screen event in each region is 10 times per 10 seconds(s), and the difference threshold is 5, when the number of times of acquiring the touch screen actually acquired by 2 regions in 10s among the 10 regions is as many as 70 times, the difference is much greater than 5, the number of times of acquiring the touch screen actually acquired by the remaining 8 regions in 10s is all around 10 times, and the difference is less than 5, the number of times of acquiring the touch screen actually is as many as 70 times, and the difference of the 2 regions greater than 5 is excluded, and the difference obtained by the remaining 8 regions is used as a difference reference set.
That is to say, the area where the difference between the actually captured touch screen times and the simulated touch screen times is far larger than or far smaller than the threshold is removed, so as to avoid the adverse effect of the abnormal area on the calibration of the sensitivity of the capacitive screen.
And step 206, determining the average screen jumping times corresponding to the capacitive screen according to the difference value reference set.
Specifically, the obtained difference values in the difference value reference set are weighted and averaged to obtain the average screen jumping times corresponding to the capacitive screen.
And step 207, adjusting the sensitivity of the capacitive screen according to the average screen jumping times.
And the difference value between the average screen jumping number and the threshold value is used as a compensation value of the sensitivity, and the sensitivity compensation is carried out on the capacitive screen.
Further, in another embodiment of the present invention, the capacitive screen calibration method further includes:
and 208, repeatedly executing operations of simulating K times of touch screen events in the ith area based on the adjusted sensitivity parameters and adjusting the sensitivity of the capacitive screen according to the difference value between the number L of times of actually acquired touch screen events and K until the difference value between the K and the L corresponding to each area is determined to be in a preset range.
Specifically, after the sensitivity of the capacitive screen is adjusted once, the difference between K and L corresponding to each of N different regions in the capacitive screen is not all within the preset range.
Therefore, in order to enable the difference value of the K and the L corresponding to each of the N different areas to be within a preset range, so as to ensure that the sensitivity of the capacitive screen meets the requirement and is relatively stable, the method and the device further repeat the sensitivity adjustment of the capacitive screen for multiple times in each area, iterate the sensitivity for multiple times until the sensitivity of the capacitive screen is within the preset range, thereby eliminating the existing error and enabling the sensitivity of the adjusted capacitive screen to be more stable.
In the calibration method for the capacitive screen, the difference reference set is determined according to the difference value of the K and the L corresponding to each region in the capacitive screen, the average screen jumping frequency corresponding to the capacitive screen is determined according to the difference reference set, and the sensitivity of the capacitive screen is adjusted according to the average screen jumping frequency, so that the calibration of the capacitive screen is more accurate, the calibration precision of the capacitive screen is improved, the user requirements are further met, and the user experience is improved.
The following describes a capacitive screen calibration apparatus according to an embodiment of the present invention with reference to the drawings.
Fig. 3 is a schematic structural diagram of a capacitive screen calibration apparatus according to an embodiment of the present invention.
Referring to fig. 3, the capacitive screen calibration apparatus includes: a dividing module 11, an operation module 12, a statistic module 13 and a first adjusting module 14.
The dividing module 11 is configured to divide the capacitive screen into N different regions according to a preset rule, where N is a positive integer greater than 1;
the operation module 12 is configured to simulate K times of touch screen events in an ith area, where i is a positive integer greater than or equal to 1 and less than or equal to N, and K is a positive integer;
the counting module 13 is configured to count the number L of touch screen events actually acquired in the ith area;
the first adjusting module 14 is configured to adjust the sensitivity of the capacitive screen according to the difference between K and L corresponding to each region.
Further, as shown in fig. 4, in another embodiment of the present invention, the adjusting module 14 includes:
the obtaining unit 141 is configured to obtain a difference reference set according to the difference between K and L corresponding to each of the regions;
the determining unit 142 determines the average screen-skipping times corresponding to the capacitive screen according to the difference reference set;
the adjusting unit 143 adjusts the sensitivity of the capacitive screen according to the average screen skipping frequency.
Further, according to the present application, after the adjusting module 14, the capacitive screen calibration apparatus further includes: and a second adjusting module.
The second adjusting module is used for repeatedly executing operations of simulating K times of touch screen events in the ith area based on the adjusted sensitivity parameters and adjusting the sensitivity of the capacitive screen according to the difference value between the number L of times of actually acquired touch screen events and K until the difference value between the K and the L corresponding to each area is determined to be in a preset range.
It should be noted that, for the implementation process and the technical principle of the capacitive screen calibration apparatus of this embodiment, reference is made to the foregoing explanation of the capacitive screen calibration method embodiment, and details are not described here again.
In the calibration device for the capacitive screen provided in this embodiment, the capacitive screen is divided into N different areas according to a preset rule, then multiple touch screen events are simulated in an ith area of the N different areas, the number of times of touch screen events actually acquired in the ith area is counted, and the sensitivity of the capacitive screen is adjusted according to the difference between the number of times of simulated K touch screen events respectively corresponding to each area and the number of times of touch screen events actually acquired. From this, through dividing into a plurality of regions with the electric capacity screen to according to the screen jumping number of times in each region, carry out automatic calibration to the electric capacity screen, reduced the cost of artifical calibration cost, saved calibration time, effectively improved the efficiency of electric capacity screen calibration, promoted user experience.
In order to implement the above embodiments, the present invention further provides a terminal device.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
As shown in fig. 5, the terminal device 20 includes: a capacitive screen 21, a memory 22 and a processor 23;
the capacitive screen 21 is used for responding to the operation input by a user;
the memory 22 is used for storing executable program codes;
the processor 23 is configured to read the executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the capacitive screen calibration method described in the embodiment of the first aspect.
In this embodiment, the terminal device may be any smart device with a capacitive touch screen. For example, a smart phone, a smart watch, a portable Computer (Tablet Personal Computer, abbreviated as Tablet PC), and the like.
It should be noted that, for the implementation process and the technical principle of the terminal device of this embodiment, reference is made to the explanation of the foregoing embodiment of the object capacitive screen calibration method, and details are not described here again.
In the terminal device provided in this embodiment, the capacitive screen is divided into N different areas according to a preset rule, then a touch screen event is simulated for multiple times in an ith area of the N different areas, the number of times of the touch screen event actually acquired in the ith area is counted, and the sensitivity of the capacitive screen is adjusted according to a difference between the simulated K touch screen events respectively corresponding to each area and the actually acquired number of times of the touch screen event. From this, through dividing into a plurality of regions with the electric capacity screen to according to the screen jumping number of times in each region, carry out automatic calibration to the electric capacity screen, reduced the cost of artifical calibration cost, saved calibration time, effectively improved the efficiency of electric capacity screen calibration, promoted user experience.
In order to implement the above embodiments, the present invention also provides a computer-readable storage medium.
The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the capacitive screen calibration method of an embodiment of the first aspect. The capacitive screen calibration method comprises the following steps: dividing the capacitive screen into N different areas according to a preset rule, wherein N is a positive integer greater than 1; sequentially simulating K times of touch screen events in an ith area, wherein i is a positive integer which is greater than or equal to 1 and less than or equal to N, and K is a positive integer; counting the number L of touch screen events actually acquired in the ith area; and adjusting the sensitivity of the capacitive screen according to the difference value of the K and the L corresponding to each area.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.