Touch screen control method, system, device and storage medium
By collecting and processing the capacitance image of the touch screen, extracting the characteristic values of the grayscale bitmap sub-area and the capacitance detail gain image, the automatic calibration of the touch screen is realized, which solves the shortcomings of manual calibration in the existing technology and improves the automation when responding to abnormalities. capabilities and user experience.
Patent Information
- Application Number
- CN202311872096.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-12-29
AI Technical Summary
The existing touch screen calibration process relies on manual operation, resulting in poor user experience and the inability to achieve automatic calibration, especially when the touch screen responds abnormally.
By collecting the capacitance image of the touch screen, determine the gray-scale sharpness enhancement factor of the gray-scale bitmap sub-region, generate the capacitance detail gain image, extract the local dispersion characteristic value of the equidistant capacitance detail gain image sequence, determine the abnormal touch response and automatically calibrate .
It realizes the automatic calibration of the touch screen under abnormal response conditions, reduces interference noise, improves user experience, and reduces dependence on manual intervention.
Smart Images

Figure CN117827031B
Abstract
Description
Technical Field
[0001] The present application relates to the field of touch screen technology, and more specifically, to a touch screen control method, system, device and storage medium. Background Art
[0002] A touch screen is an electronic display device that can sense and respond to human touch operations. It is widely used in devices such as smart phones, tablets, and computer monitors. The development of touch screens has gone through several stages, from the earliest resistive touch screens to different technologies such as surface acoustic wave, capacitive, infrared, and pressure sensing. Among them, capacitive touch screens have become mainstream due to their high sensitivity, fast response, and multi-touch functions.
[0003] Touch screen calibration is an important step to ensure that the touch screen can accurately respond to user touch input. Accurate touch screen response can bring a better user experience and will not be troubled by inaccurate touch. However, in the existing touch screen calibration process, users often manually calibrate the touch screen after feeling abnormal touch response when using the touch screen, which leads to a very poor user experience. Therefore, how to achieve automatic calibration of the touch screen under abnormal response conditions has become a problem that needs to be urgently solved by technical personnel in this field. Summary of the invention
[0004] The present application provides a touch screen control method, system, device and storage medium, which can realize automatic calibration of the touch screen under abnormal response conditions.
[0005] In a first aspect, the present application provides a touch screen control method, comprising the following steps:
[0006] Collecting a touch screen capacitance image set when the target touch screen is touched;
[0007] Selecting a touch screen capacitive image, determining a grayscale bitmap sub-region set of the touch screen capacitive image, and then determining a grayscale sharpness enhancement factor of each grayscale bitmap sub-region;
[0008] Determine a capacitive detail gain image of the touch screen capacitive image according to the grayscale bitmap sub-region set and all grayscale sharpness enhancement factors, and repeat the above steps to determine the remaining capacitive detail gain images;
[0009] Determine multiple equidistant capacitive detail gain image sequences of the target touch screen through all the capacitive detail gain images, and then determine the neighborhood deviation characteristic value of each equidistant capacitive detail gain image sequence;
[0010] The touch response abnormality determination entropy of the target touch screen is determined according to all the neighborhood deviation characteristic values, and the target touch screen is automatically calibrated according to the touch response abnormality determination entropy.
[0011] In some embodiments, determining the grayscale bitmap sub-region set of the touch screen capacitive image and then determining the grayscale sharpness enhancement factor of each grayscale bitmap sub-region specifically includes:
[0012] Performing grayscale aggregation on the capacitive image of the touch screen to obtain an inductively aggregated grayscale image;
[0013] Determine a bitmap rectangular window of the inductively aggregated grayscale image, and segment the inductively aggregated grayscale image according to the bitmap rectangular window to obtain a grayscale bitmap sub-area set of the touch screen capacitive image;
[0014] Selecting an aggregated grayscale bitmap sub-region from the grayscale bitmap sub-region set, and determining a pixel core domain entropy of the aggregated grayscale bitmap sub-region;
[0015] Determine the grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-region by using the pixel kernel domain entropy;
[0016] Repeat the above steps to obtain the grayscale sharpness enhancement factor of the remaining aggregated grayscale bitmap sub-regions.
[0017] In some embodiments, determining the grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-region by using the pixel kernel domain entropy specifically includes:
[0018] Obtain the maximum grayscale aggregation value of all pixels in the aggregated grayscale bitmap sub-area;
[0019] Obtain the minimum grayscale aggregation value of all pixels in the aggregated grayscale bitmap sub-area;
[0020] Determine the average value of all pixels in the aggregated grayscale bitmap sub-region;
[0021] Determine the standard deviation of all grayscale aggregate values in the aggregated grayscale bitmap sub-region;
[0022] Obtain pixel core domain entropy of the aggregated grayscale bitmap sub-region;
[0023] The grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-area is determined according to the maximum grayscale aggregation value of all pixels in the aggregated grayscale bitmap sub-area, the minimum grayscale aggregation value of all pixels in the aggregated grayscale bitmap sub-area, the average value of all pixels in the aggregated grayscale bitmap sub-area, the standard deviation of all grayscale aggregation values in the aggregated grayscale bitmap sub-area and the pixel core domain entropy of the aggregated grayscale bitmap sub-area.
[0024] In some embodiments, determining multiple equidistant capacitive detail gain image sequences of the target touch screen through all capacitive detail gain images, and then determining the neighborhood deviation characteristic value of each equidistant capacitive detail gain image sequence specifically includes:
[0025] Determine a capacitive detail gain image sequence of the target touch screen through all the capacitive detail gain images;
[0026] A plurality of equally spaced capacitance detail gain image sequences of the capacitance detail gain image sequence are determined, and then a neighborhood dispersion characteristic value of each equally spaced capacitance detail gain image sequence is determined.
[0027] In some embodiments, determining a plurality of equally spaced capacitive detail gain image sequences of the capacitive detail gain image sequence, and then determining a neighborhood dispersion characteristic value of each equally spaced capacitive detail gain image sequence specifically comprises:
[0028] Determining an offset window length of the capacitive detail gain image sequence;
[0029] Performing equidistant offset resampling on the capacitance detail gain image sequence according to the offset window length to obtain a plurality of equidistant capacitance detail gain image sequences;
[0030] The neighborhood dispersion characteristic value of each equidistant capacitive detail gain image sequence is determined.
[0031] In some embodiments, determining the touch response abnormality determination entropy of the target touch screen according to all the neighboring deviation characteristic values specifically includes:
[0032] Convert all neighborhood deviation eigenvalues into neighborhood deviation eigensequences;
[0033] The touch response abnormality determination entropy of the target touch screen is determined according to the neighborhood deviation feature sequence.
[0034] In some embodiments, the target touch screen is a capacitive touch screen.
[0035] In a second aspect, the present application provides a touch screen control system, comprising:
[0036] An acquisition module, used for acquiring a touch screen capacitance image set when a target touch screen is touched;
[0037] A processing module, used for selecting a touch screen capacitive image, determining a grayscale bitmap sub-region set of the touch screen capacitive image, and further determining a grayscale sharpness enhancement factor of each grayscale bitmap sub-region;
[0038] The processing module is further used to determine a capacitive detail gain image of the touch screen capacitive image according to the grayscale bitmap sub-region set and all grayscale sharpness enhancement factors, and repeat the above steps to determine the remaining capacitive detail gain images;
[0039] The processing module is further used to determine a plurality of equidistant capacitive detail gain image sequences of the target touch screen through all the capacitive detail gain images, and then determine a neighborhood deviation characteristic value of each equidistant capacitive detail gain image sequence;
[0040] The execution module is used to determine the touch response abnormality determination entropy of the target touch screen according to all the neighboring deviation characteristic values, and automatically calibrate the target touch screen according to the touch response abnormality determination entropy.
[0041] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores codes, and the processor is configured to obtain the codes and execute the above-mentioned touch screen control method.
[0042] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned touch screen control method is implemented.
[0043] The technical solution provided by the embodiments disclosed in this application has the following beneficial effects:
[0044] In a touch screen control method, system, device and storage medium provided by the present application, compared with the existing method of mainly relying on manual calibration of touch screen response abnormalities, this solution determines the grayscale sharpness enhancement factor of each grayscale bitmap sub-area, adjusts the grayscale value of the pixel point in each grayscale bitmap sub-area according to each grayscale sharpness enhancement factor, and then obtains the capacitive detail gain image of the touch screen capacitive image, thereby reducing the interference noise in the touch screen capacitive image, facilitating the extraction of similar features between adjacent capacitive detail gain images, and then converting all the capacitive detail gain images into multiple equidistant capacitive detail gain image sequences, and then determining the neighborhood deviation feature value of each equidistant capacitive detail gain image sequence, and the neighborhood deviation feature value is used to characterize the equidistant capacitive detail gain image sequence The similarity between each adjacent capacitance detail gain image in the touch screen is that when the touch screen is in a normal working state, there is a high similarity between two adjacent touch screen capacitance images, so that the extracted neighboring deviation eigenvalues are relatively concentrated. When the touch screen responds abnormally, due to the abnormal touch screen response, the similarity between some adjacent two touch screen capacitance images is low, which leads to the confusion of each extracted neighboring deviation eigenvalue. Therefore, the touch response abnormality determination entropy is determined according to all the neighboring deviation eigenvalues, and the touch response abnormality determination entropy is compared with the touch response entropy threshold of the target touch screen under normal circumstances. According to the comparison result, it is judged whether the corresponding touch screen control system starts the touch screen automatic calibration program, thereby realizing the automatic calibration of the touch screen under abnormal response. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is an exemplary flow chart of a touch screen control method according to some embodiments of the present application;
[0046] Figure 2is a schematic diagram of a process for determining an inductively polymerized grayscale image according to some embodiments of the present application;
[0047] Figure 3 is a schematic diagram of a process for determining a capacitance detail gain image according to some embodiments of the present application;
[0048] Figure 4 is a schematic diagram of exemplary hardware and / or software of a touch screen control system according to some embodiments of the present application;
[0049] Figure 5 It is a structural schematic diagram of a computer device applying a touch screen control method according to some embodiments of the present application. DETAILED DESCRIPTION
[0050] The core of the present application is to select a touch screen capacitive image from a touch screen capacitive image set, determine the grayscale bitmap sub-area set of the touch screen capacitive image, and then determine the grayscale sharpness enhancement factor of each grayscale bitmap sub-area, determine the capacitive detail gain image of the touch screen capacitive image according to the grayscale bitmap sub-area set and all the grayscale sharpness enhancement factors, repeat the above steps to determine the remaining capacitive detail gain images, determine multiple equidistant capacitive detail gain image sequences of the target touch screen through all the capacitive detail gain images, and then determine the neighborhood deviation feature value of each equidistant capacitive detail gain image sequence, determine the touch response abnormality judgment entropy of the target touch screen according to all the neighborhood deviation feature values, and automatically calibrate the target touch screen through the touch response abnormality judgment entropy. This solution can realize automatic calibration of the touch screen under abnormal response conditions.
[0051] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 , which is an exemplary flow chart of a touch screen control method according to some embodiments of the present application. The touch screen control method 100 mainly includes the following steps:
[0052] In step 101, a touch screen capacitance image set is collected when a target touch screen is touched.
[0053] In a specific implementation, a touch screen capacitive image when a user uses a target touch screen is collected from a database of the touch screen according to a preset sampling frequency. The touch screen capacitive image is an image obtained by converting the capacitance value matrix pixels of the voltage on both sides of the touch screen electrode plates when the user touches the target touch screen. The set of all touch screen capacitive images collected during the time period when the user uses the target touch screen is taken as a touch screen capacitive image set. The sampling frequency is generally in the range of 50 Hz to 120 Hz, and the target touch screen is a capacitive touch screen.
[0054] In step 102, a touch screen capacitive image is selected, a grayscale bitmap sub-region set of the touch screen capacitive image is determined, and then a grayscale sharpness enhancement factor of each grayscale bitmap sub-region is determined.
[0055] In some embodiments, determining the grayscale bitmap sub-region set of the touch screen capacitive image and then determining the grayscale sharpness enhancement factor of each grayscale bitmap sub-region may be implemented by the following steps:
[0056] Performing grayscale aggregation on the capacitive image of the touch screen to obtain an inductively aggregated grayscale image;
[0057] Determine a bitmap rectangular window of the inductively aggregated grayscale image, and segment the inductively aggregated grayscale image according to the bitmap rectangular window to obtain a grayscale bitmap sub-area set of the touch screen capacitive image;
[0058] Selecting an aggregated grayscale bitmap sub-region from the grayscale bitmap sub-region set, and determining a pixel core domain entropy of the aggregated grayscale bitmap sub-region;
[0059] Determine the grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-region by using the pixel kernel domain entropy;
[0060] Repeat the above steps to obtain the grayscale sharpness enhancement factor of the remaining aggregated grayscale bitmap sub-regions.
[0061] In some embodiments, grayscale polymerization of the touch screen capacitive image to obtain an inductively polymerized grayscale image may be achieved by using the following steps:
[0062] For specific implementation, refer to Figure 2 As shown, this figure is a schematic diagram of the process of determining the inductively aggregated grayscale image in some embodiments of the present application. In this embodiment, determining the inductively aggregated grayscale image can be implemented by the following steps:
[0063] First, in step 1021, the touch screen capacitive image is converted into a grayscale image;
[0064] Next, in step 1022, the grayscale left weight and the grayscale right weight of the grayscale image are determined;
[0065] Then in step 1023, the grayscale values of each pixel in the grayscale image are aggregated by using the grayscale left weight and the grayscale right weight to obtain a grayscale aggregate value of each pixel;
[0066] Finally, in step 1024, an inductively aggregated grayscale image is determined according to all grayscale aggregation values.
[0067] In a specific implementation, the touch screen capacitive image is converted into a grayscale image, that is, a pixel point of the touch screen capacitive image is selected, and the values of the red, green, and blue color channels of the pixel point are obtained. The values of the red, green, and blue color channels are multiplied by the corresponding coefficients 0.299, 0.587, and 0.114, respectively, and the products of the values of the three color channels and the corresponding coefficients are used as weighted values of the red, green, and blue color channels. The sum of the weighted values of the red, green, and blue color channels is used as the grayscale value of the pixel point, and the above steps are repeated to obtain the grayscale values of the remaining pixel points. grayscale value, replace the pixel values of the corresponding pixels of the touch screen capacitive image with each grayscale value, and use the replaced touch screen capacitive image as the grayscale image; determine the grayscale left weight and grayscale right weight of the grayscale image, that is, obtain the h pixels with the largest grayscale values in the grayscale image, and use the average grayscale values of the h pixels as the grayscale right weight of the grayscale image, obtain the h pixels with the smallest grayscale values in the grayscale image, and use the average grayscale values of the h pixels as the grayscale left weight of the grayscale image, wherein h=Ceil(aN·e -N ), N is the total number of pixels in the grayscale image, a is a constant, which can be set to 0.1, and Ceil represents a rounding function; the inductively aggregated grayscale image is determined according to all grayscale aggregation values, that is, the grayscale values of the corresponding pixels in the grayscale image are replaced according to the grayscale aggregation values of each pixel after aggregation, and the replaced grayscale image is used as the inductively aggregated grayscale image.
[0068] In some embodiments, the grayscale values of each pixel in the grayscale image are aggregated by the grayscale left weight and the grayscale right weight to obtain a grayscale aggregate value of each pixel, wherein the grayscale aggregate value can be determined by the following formula:
[0069]
[0070] Among them, B x,y , represents the grayscale aggregation value of the pixel at the xth row and yth column in the grayscale image, H x,y , represents the grayscale value of the pixel at the xth row and yth column in the grayscale image, R represents the grayscale right weight of the grayscale image, and L represents the grayscale left weight of the grayscale image.
[0071] It should be noted that the aggregation in the present application is used to reduce random noise in the grayscale image, and the grayscale aggregation value helps to reduce interference information in the grayscale image.
[0072] In a specific implementation, a bitmap rectangular window of the inductively aggregated grayscale image is determined, and the inductively aggregated grayscale image is segmented according to the bitmap rectangular window to obtain a grayscale bitmap sub-area set of the touch screen capacitive image. That is, the bitmap rectangular window of the inductively aggregated grayscale image can be determined according to the actual size of the touch screen capacitive image. The smaller the touch screen capacitive image is, the smaller the bitmap rectangular window of the inductively aggregated grayscale image is. The inductively aggregated grayscale image is segmented from left to right and from top to bottom according to the bitmap rectangular window. The method comprises the following steps: dividing the image into rows, obtaining a plurality of segmented sub-block images, taking all the segmented sub-block images as aggregated grayscale bitmap sub-regions, and taking the set of all aggregated grayscale bitmap sub-regions as an aggregated grayscale bitmap sub-region set; selecting an aggregated grayscale bitmap sub-region in the grayscale bitmap sub-region set, and determining the pixel core domain entropy of the aggregated grayscale bitmap sub-region, that is, randomly selecting an aggregated grayscale bitmap sub-region from the grayscale bitmap sub-region set, and calculating the pixel core domain entropy of the aggregated grayscale bitmap sub-region according to the grayscale values of all pixels in the aggregated grayscale bitmap sub-region.
[0073] It should be noted that the pixel kernel domain entropy in the present application represents the degree of disorder of the grayscale values of all pixels in the aggregated grayscale bitmap sub-area, which can be determined by the wavelet entropy calculation method in the prior art. In other embodiments, other entropy calculation methods can also be used for determination, which is not limited here.
[0074] In some embodiments, determining the grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-region by using the pixel core domain entropy may be implemented by the following steps:
[0075] Get the maximum grayscale aggregation value of all pixels in the wth aggregated grayscale bitmap sub-area
[0076] Get the minimum grayscale aggregation value of all pixels in the wth aggregated grayscale bitmap sub-area
[0077] Determine the average value of all pixels in the wth aggregated grayscale bitmap sub-region
[0078] Determine the standard deviation δ of all grayscale aggregate values in the wth aggregate grayscale bitmap sub-region;
[0079] Get the pixel kernel entropy β of the w-th aggregated grayscale bitmap sub-region w ;
[0080] According to the maximum grayscale aggregation value of all pixels in the w-th aggregated grayscale bitmap sub-area The minimum grayscale aggregation value of all pixels in the w-th aggregated grayscale bitmap sub-area The average value of all pixels in the w-th aggregated grayscale bitmap sub-area The standard deviation δ of all grayscale aggregation values in the w-th aggregated grayscale bitmap sub-region and the pixel core domain entropy β of the w-th aggregated grayscale bitmap sub-region w , determine the grayscale sharpness enhancement factor of the w-th aggregated grayscale bitmap sub-region, repeat the above steps to calculate the grayscale sharpness enhancement factors of the remaining aggregated grayscale bitmap sub-regions, wherein the grayscale sharpness enhancement factor can be determined using the following formula, namely:
[0081]
[0082] Among them, w represents the grayscale sharpness enhancement factor of the w-th aggregated grayscale bitmap sub-region, It represents the grayscale aggregation value of the pixel in the i-th row and j-th column in the w-th aggregated grayscale bitmap sub-area, I represents the number of rows of pixels in the w-th aggregated grayscale bitmap sub-area, and J represents the number of columns of pixels in the w-th aggregated grayscale bitmap sub-area.
[0083] It should be noted that the grayscale sharpness enhancement factor in the present application is used to reduce the interference noise in the inductively polymerized grayscale image, so as to highlight the details of the inductively polymerized grayscale image.
[0084] In step 103, a capacitive detail gain image of the touch screen capacitive image is determined according to the grayscale bitmap sub-region set and all grayscale sharpness enhancement factors, and the above steps are repeated to determine the remaining capacitive detail gain images.
[0085] In some embodiments, determining the capacitive detail gain image of the touch screen capacitive image according to the grayscale bitmap sub-region set and all grayscale sharpness enhancement factors can be implemented by the following steps:
[0086] For specific implementation, refer to Figure 3 As shown, this figure is a schematic diagram of the process of determining a capacitance detail gain image in some embodiments of the present application. In this embodiment, determining the capacitance detail gain image can be implemented by the following steps:
[0087] First, in step 1031, an aggregated grayscale bitmap sub-region in the aggregated grayscale bitmap sub-region set is selected to obtain the grayscale aggregate value of each pixel point in the aggregated grayscale bitmap sub-region;
[0088] Next, in step 1032, the grayscale aggregate value of each pixel in the aggregated grayscale bitmap sub-region is enhanced in detail by using the grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-region to obtain a grayscale detail enhancement value of each pixel;
[0089] Then in step 1033, all grayscale detail enhancement values are replaced with the grayscale aggregation values of the corresponding pixels in the aggregated grayscale bitmap sub-region, and the replaced aggregated grayscale bitmap sub-region is used as the aggregated grayscale detail enhancement bitmap sub-region;
[0090] Finally, in step 1034, the above steps are repeated to obtain the remaining aggregated grayscale detail enhancement bitmap sub-regions, and all the aggregated grayscale detail enhancement bitmap sub-regions are combined into a capacitive detail gain image.
[0091] In some embodiments, the grayscale aggregate value of each pixel in the aggregated grayscale bitmap sub-region is enhanced in detail by using the grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-region, and the grayscale detail enhancement value of each pixel is obtained by the following steps:
[0092] Get the grayscale aggregation value of the pixel in the i-th row and j-th column of the w-th aggregated grayscale bitmap sub-area
[0093] Get the grayscale aggregation value of the pixel at the xth row and yth column in the wth aggregated grayscale bitmap sub-area
[0094] Get the grayscale sharpness enhancement factor ζ of the wth aggregated grayscale bitmap sub-region w ;
[0095] Determine the variance ρ of all grayscale aggregate values in the w-th aggregated grayscale bitmap sub-region;
[0096] According to the grayscale aggregation value of the pixel point in the i-th row and j-th column in the w-th aggregated grayscale bitmap sub-area The grayscale aggregation value of the pixel point in the xth row and yth column in the wth aggregated grayscale bitmap sub-area The grayscale sharpness enhancement factor ζ of the wth aggregated grayscale bitmap sub-region w , and the variance ρ of all grayscale aggregate values in the w-th aggregated grayscale bitmap sub-area determine the grayscale detail enhancement value of the pixel point in the x-th row and y-th column in the w-th aggregated grayscale bitmap sub-area, wherein the grayscale detail enhancement value can be determined using the following formula:
[0097]
[0098] in, It represents the grayscale detail enhancement value of the pixel in the xth row and yth column in the wth aggregated grayscale bitmap sub-area, I represents the number of rows of pixels in the wth aggregated grayscale bitmap sub-area, and J represents the number of columns of pixels in the wth aggregated grayscale bitmap sub-area.
[0099] It should be noted that in the present application, the grayscale aggregation value of the pixel point is adjusted by the grayscale sharpness enhancement factor to obtain the grayscale detail enhancement value, and the grayscale detail enhancement value is used to reduce the noise signal in the image, thereby obtaining a smoother capacitive detail gain image.
[0100] In a specific implementation, for the remaining touch screen capacitive images, steps 102 and 103 are repeated to obtain the remaining capacitive detail gain images.
[0101] In step 104, multiple equidistant capacitive detail gain image sequences of the target touch screen are determined through all the capacitive detail gain images, and then the neighborhood dispersion feature value of each equidistant capacitive detail gain image sequence is determined.
[0102] In some embodiments, determining multiple equidistant capacitive detail gain image sequences of the target touch screen through all capacitive detail gain images, and then determining the neighborhood deviation characteristic value of each equidistant capacitive detail gain image sequence can be implemented by the following steps:
[0103] Determine a capacitive detail gain image sequence of the target touch screen through all the capacitive detail gain images;
[0104] A plurality of equally spaced capacitance detail gain image sequences of the capacitance detail gain image sequence are determined, and then a neighborhood dispersion characteristic value of each equally spaced capacitance detail gain image sequence is determined.
[0105] In specific implementation, the capacitive detail gain image sequence of the target touch screen is determined through all the capacitive detail gain images, that is, all the capacitive detail gain images are sorted in chronological order according to the corresponding acquisition time, and the sorted image sequence is used as the capacitive detail gain image sequence of the target touch screen.
[0106] In some embodiments, determining a plurality of equally spaced capacitance detail gain image sequences of the capacitance detail gain image sequence, and then determining the neighborhood dispersion characteristic value of each equally spaced capacitance detail gain image sequence may be implemented by the following steps:
[0107] Determining an offset window length of the capacitive detail gain image sequence;
[0108] Performing equidistant offset resampling on the capacitance detail gain image sequence according to the offset window length to obtain a plurality of equidistant capacitance detail gain image sequences;
[0109] The neighborhood dispersion characteristic value of each equidistant capacitive detail gain image sequence is determined.
[0110] It should be noted that in the present application, the offset window length of the capacitive detail gain image sequence can be set through a large amount of capacitive detail gain image sequence experimental data, and the offset window length can be set to one tenth of the length of the capacitive detail gain image sequence. In other embodiments, other existing technologies can also be used for setting, which is not limited here.
[0111] In a specific implementation, the capacitor detail gain image sequence is subjected to equidistant offset resampling according to the offset window length to obtain a plurality of equidistant capacitor detail gain image sequences, that is, the capacitor detail gain image sequence is subjected to equidistant offset division according to the offset window length, and the plurality of sequences obtained by division are all used as equidistant capacitor detail gain image sequences, and the equidistant offset division time is recorded, wherein the equidistant offset division is, for example, assuming that the offset window length is 3, the capacitor detail gain image sequence is [T1, T2, T3, T4, ..., T 26 , T 27 , T 28 , T 29 , T 30 ], where T i (i=1, 2, ..., 30) is a capacitance detail gain image. The capacitance detail gain image sequence is divided from right to left according to the offset window length to obtain the sequence: [T 28 , T 29 , T 30 ]、[T 27 , T 28 , T 29 ]、[T 26 , T 27 , T 28 ], [T2, T3, T4], [T1, T2, T3].
[0112] In some embodiments, determining the neighborhood dispersion characteristic value of each equidistant capacitive detail gain image sequence may be implemented by the following steps:
[0113] Determine the pixel basis of the i-th capacitive detail gain image in the w-th equidistant capacitive detail gain image sequence
[0114] Determine the pixel basis of the i+1th capacitor detail gain image in the wth equidistant capacitor detail gain image sequence
[0115] According to the pixel basis of the i-th capacitive detail gain image in the w-th equidistant capacitive detail gain image sequence and the pixel basis of the i+1th capacitance detail gain image in the wth equidistant capacitance detail gain image sequence Determine the neighborhood dispersion eigenvalue of the w-th equidistant capacitive detail gain image sequence, wherein the neighborhood dispersion eigenvalue can be determined using the following formula:
[0116]
[0117] Among them, E wrepresents the neighborhood deviation eigenvalue of the wth equidistant capacitor detail gain image sequence, X represents the total number of capacitor detail gain images in the equidistant capacitor detail gain image sequence, Represents pixel basis With pixel base The Gaussian weighted Euclidean distance is , and μ represents the standard deviation of the Gaussian kernel function.
[0118] In specific implementation, the pixel basis of the i-th capacitance detail gain image in the w-th equidistant capacitance detail gain image sequence is determined, that is, the grayscale detail enhancement values of all pixels of the i-th capacitance detail gain image in the w-th equidistant capacitance detail gain image sequence are arranged from left to right and from top to bottom, and the arranged list is used as the pixel basis of the capacitance detail gain image. For example, assuming that the capacitance detail gain image is: in is the grayscale detail enhancement value of the pixel in the capacitor detail gain image. The grayscale detail enhancement values of all the pixels in the capacitor detail gain image are arranged from left to right and from top to bottom. As the pixel basis of the capacitance detail gain image; similarly, the pixel basis of the i+1th capacitance detail gain image in the wth equidistant capacitance detail gain image sequence is determined, which will not be repeated here.
[0119] It should be noted that in the present application, the Gaussian weighted Euclidean distance between two adjacent capacitance detail gain images in the equidistant capacitance detail gain image sequence is first calculated, and the Gaussian weighted Euclidean distance is used to characterize the similarity between the two capacitance detail gain images, and then the Gaussian weighted Euclidean distance between all adjacent capacitance detail gain images in the equidistant capacitance detail gain image sequence is calculated, and then the average value of all Gaussian weighted Euclidean distances is used as the neighborhood deviation eigenvalue of the equidistant capacitance detail gain image sequence, and the neighborhood deviation eigenvalue represents the degree of change of each capacitance detail gain image in the equidistant capacitance detail gain image sequence. The smaller the neighborhood deviation eigenvalue is, the more similar the capacitance detail gain images in the equidistant capacitance detail gain image sequence are, which is equivalent to indicating that the degree of change of each capacitance detail gain image is smaller.
[0120] In step 105, the touch response abnormality determination entropy of the target touch screen is determined according to all the neighborhood deviation characteristic values, and the target touch screen is automatically calibrated according to the touch response abnormality determination entropy.
[0121] In some embodiments, the following steps may be used to determine the touch response abnormality determination entropy of the target touch screen according to all the neighborhood deviation characteristic values:
[0122] Convert all neighborhood deviation eigenvalues into neighborhood deviation eigensequences;
[0123] The touch response abnormality determination entropy of the target touch screen is determined according to the neighborhood deviation feature sequence.
[0124] In specific implementation, all neighborhood deviation eigenvalues are converted into neighborhood deviation feature sequences, that is, each neighborhood deviation eigenvalue is sorted in chronological order according to the offset of the corresponding equidistant capacitance detail gain image sequence, and the sorted sequence is used as the neighborhood deviation feature sequence.
[0125] In some embodiments, determining the touch response abnormality judgment entropy of the target touch screen according to the neighborhood deviation feature sequence can be implemented by the following steps:
[0126] Get the maximum value E of the neighborhood deviation feature value in the neighborhood deviation feature sequence max ;
[0127] Get the minimum value E of the neighborhood deviation feature value in the neighborhood deviation feature sequence min ;
[0128] Get the ith neighborhood deviation feature value E in the neighborhood deviation feature sequence i ;
[0129] Determine the characteristic difference degree factor υ of the adjacent domain deviation characteristic sequence;
[0130] According to the maximum value E of the neighborhood deviation characteristic value in the neighborhood deviation characteristic sequence max , the minimum value E of the neighborhood deviation eigenvalue in the neighborhood deviation feature sequence min , the ith neighborhood deviation eigenvalue E in the neighborhood deviation feature sequence i The touch response abnormality determination entropy of the neighborhood deviation feature sequence is determined by the standard deviation v of the neighborhood deviation feature sequence, wherein the touch response abnormality determination entropy can be determined by the following formula:
[0131]
[0132] Wherein, θ represents the touch response abnormality determination entropy of the neighborhood deviation feature sequence, and M represents the total number of neighborhood deviation feature values in the neighborhood deviation feature sequence.
[0133] It should be noted that the feature difference degree factor in the present application is used to measure the degree of difference between each neighboring deviation feature value and its average value in the neighboring deviation feature sequence. The larger the feature difference degree factor, the higher the degree of dispersion of the neighboring deviation feature value relative to the average value. In some embodiments, the feature difference degree factor can be determined by the standard deviation of the neighboring deviation feature sequence; the touch response abnormality determination entropy characterizes the degree of disorder of the neighboring deviation feature sequence, and is used to reflect the working state of the touch screen. The larger the touch response abnormality determination entropy, the more disordered the neighboring deviation feature sequence.
[0134] In a specific implementation, the target touch screen is automatically calibrated by the touch response abnormality determination entropy, that is, when the touch response abnormality determination entropy of the touch screen exceeds a preset touch response entropy threshold, the touch screen control system starts the touch screen response abnormality automatic calibration program, and records the calibration data and updates the corresponding calibration parameters.
[0135] It should be noted that the touch response entropy threshold in the present application can be set according to a large amount of experimental data of the touch response abnormality determination entropy determined when the touch screen is in normal conditions. The touch response entropy threshold can be set to 1.25 times the average value of all touch response abnormality determination entropies of the touch screen under normal conditions. In other embodiments, other methods can also be used for setting, which is not limited here.
[0136] It should also be noted that when the touch screen is in a normal working state, there is a high similarity between two adjacent touch screen capacitance images, so that the extracted neighboring deviation feature values are relatively stable. When the touch screen responds abnormally (that is, when the user touches the touch screen, the touch screen recognition produces a deviation), due to the abnormal response of the touch screen, the similarity between some adjacent two touch screen capacitance images is low, which causes the extracted neighboring deviation feature values to be relatively chaotic. The touch response abnormality judgment entropy of the target touch screen is determined by all the neighboring deviation feature values. The touch response abnormality judgment entropy represents the degree of confusion of the neighboring deviation feature sequence. Therefore, the touch response abnormality judgment entropy is determined according to all the neighboring deviation feature values, and the touch response abnormality judgment entropy is compared with the touch response entropy threshold of the target touch screen under normal conditions, and the corresponding touch screen control system is judged according to the comparison result whether to start the touch screen automatic calibration program, thereby realizing the automatic calibration of the touch screen under abnormal response conditions.
[0137] In addition, in another aspect of the present application, in some embodiments, the present application provides a touch screen control system, referring to Figure 4 , which is a schematic diagram of exemplary hardware and / or software of a touch screen control system according to some embodiments of the present application, the touch screen control system 400 includes: an acquisition module 401, a processing module 402 and an execution module 403, which are described as follows:
[0138] Acquisition module 401, in this application, acquisition module 401 is mainly used to collect a touch screen capacitive image set when the target touch screen is touched;
[0139] Processing module 402, in the present application, the processing module 402 is used to select a touch screen capacitive image, determine the grayscale bitmap sub-region set of the touch screen capacitive image, and then determine the grayscale sharpness enhancement factor of each grayscale bitmap sub-region. In specific implementation, the processing module 402 is also used to determine the capacitive detail gain image of the touch screen capacitive image according to the grayscale bitmap sub-region set and all the grayscale sharpness enhancement factors, repeat the above steps to determine the remaining capacitive detail gain images. In addition, the processing module 402 in the present application is also used to determine multiple equidistant capacitive detail gain image sequences of the target touch screen through all the capacitive detail gain images, and then determine the neighborhood deviation characteristic value of each equidistant capacitive detail gain image sequence;
[0140] The execution module 403 in the present application is mainly used to determine the touch response abnormality determination entropy of the target touch screen according to all the neighborhood deviation characteristic values, and automatically calibrate the target touch screen through the touch response abnormality determination entropy.
[0141] In addition, the present application also provides a computer device, which includes a memory and a processor, wherein the memory stores codes, and the processor is configured to obtain the codes and execute the above touch screen control method.
[0142] In some embodiments, reference Figure 5 , which is a schematic diagram of the structure of a computer device using a touch screen control method according to some embodiments of the present application. The touch screen control method in the above embodiment can be Figure 5 The computer device 500 shown in the figure is implemented, and the computer device 500 includes at least one processor 501, a communication bus 502, a memory 503 and at least one communication interface 504.
[0143] The processor 501 may be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more processors for controlling the execution of the touch screen control method in the present application.
[0144] Communication bus 502 may include a pathway for transmitting information between the above-mentioned components.
[0145] The memory 503 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 503 may exist independently and be connected to the processor 501 via the communication bus 502. The memory 503 may also be integrated with the processor 501.
[0146] The memory 503 is used to store the program code for executing the solution of the present application, and the execution is controlled by the processor 501. The processor 501 is used to execute the program code stored in the memory 503. The program code may include one or more software modules. The touch screen control method in the above embodiment can be implemented by the processor 501 and one or more software modules in the program code in the memory 503.
[0147] The communication interface 504 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0148] In a specific implementation, as an embodiment, a computer device may include multiple processors, each of which may be a single-CPU processor or a multi-CPU processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0149] The above-mentioned computer device can be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of computer device.
[0150] In addition, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned touch screen control method is implemented.
[0151] In summary, in the touch screen control method, system, device and storage medium disclosed in the embodiments of the present application, first, by selecting a touch screen capacitive image in the touch screen capacitive image set, the grayscale bitmap sub-area set of the touch screen capacitive image is determined, and then the grayscale sharpness enhancement factor of each grayscale bitmap sub-area is determined, and the capacitive detail gain image of the touch screen capacitive image is determined according to the grayscale bitmap sub-area set and all the grayscale sharpness enhancement factors, and the above steps are repeated to determine the remaining capacitive detail gain images, and multiple equidistant capacitive detail gain image sequences of the target touch screen are determined through all the capacitive detail gain images, and then the neighborhood deviation characteristic value of each equidistant capacitive detail gain image sequence is determined, and the touch response abnormality judgment entropy of the target touch screen is determined according to all the neighborhood deviation characteristic values, and the target touch screen is automatically calibrated according to the touch response abnormality judgment entropy, thereby realizing automatic calibration of the touch screen under abnormal response conditions.
[0152] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0153] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A touch screen control method, characterized in that: The steps include: Collecting a touch screen capacitance image set when the target touch screen is touched; Selecting a touch screen capacitive image, determining a grayscale bitmap sub-region set of the touch screen capacitive image, and then determining a grayscale sharpness enhancement factor of each grayscale bitmap sub-region; Determine the capacitive detail gain image of the touch screen capacitive image according to the grayscale bitmap sub-region set and all grayscale sharpness enhancement factors, repeat the above steps of selecting a touch screen capacitive image to determine the capacitive detail gain image of the touch screen capacitive image, and obtain the capacitive detail gain images of the remaining touch screen capacitive images; Determine multiple equidistant capacitive detail gain image sequences of the target touch screen through all the capacitive detail gain images, and then determine the neighborhood deviation characteristic value of each equidistant capacitive detail gain image sequence; Determine the touch response abnormality determination entropy of the target touch screen according to all the neighboring deviation characteristic values, and automatically calibrate the target touch screen according to the touch response abnormality determination entropy; The step of determining the grayscale bitmap sub-area set of the touch screen capacitive image and then determining the grayscale sharpness enhancement factor of each grayscale bitmap sub-area specifically includes: Performing grayscale aggregation on the capacitive image of the touch screen to obtain an inductively aggregated grayscale image; Determine a bitmap rectangular window of the inductively aggregated grayscale image, and segment the inductively aggregated grayscale image according to the bitmap rectangular window to obtain a grayscale bitmap sub-area set of the touch screen capacitive image; Selecting an aggregated grayscale bitmap sub-region from the grayscale bitmap sub-region set, and determining a pixel core domain entropy of the aggregated grayscale bitmap sub-region; Determine the grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-region by using the pixel kernel domain entropy; Repeat the above steps of selecting an aggregated grayscale bitmap sub-region from the grayscale bitmap sub-region set to determine the grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-region to obtain the grayscale sharpness enhancement factors of the remaining aggregated grayscale bitmap sub-regions.
2. The method according to claim 1, characterized in that Determining the grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-region by using the pixel kernel domain entropy specifically includes: Obtain the maximum grayscale aggregation value of all pixels in the aggregated grayscale bitmap sub-area; Obtain the minimum grayscale aggregation value of all pixels in the aggregated grayscale bitmap sub-area; Determine the average value of all pixels in the aggregated grayscale bitmap sub-region; Determine the standard deviation of all grayscale aggregate values in the aggregated grayscale bitmap sub-region; Obtain pixel core domain entropy of the aggregated grayscale bitmap sub-region; The grayscale sharpness enhancement factor of the aggregated grayscale bitmap sub-area is determined according to the maximum grayscale aggregation value of all pixels in the aggregated grayscale bitmap sub-area, the minimum grayscale aggregation value of all pixels in the aggregated grayscale bitmap sub-area, the average value of all pixels in the aggregated grayscale bitmap sub-area, the standard deviation of all grayscale aggregation values in the aggregated grayscale bitmap sub-area and the pixel core domain entropy of the aggregated grayscale bitmap sub-area.
3. The method according to claim 1, characterized in that Determining multiple equidistant capacitive detail gain image sequences of the target touch screen through all capacitive detail gain images, and then determining the neighborhood deviation characteristic value of each equidistant capacitive detail gain image sequence specifically includes: Determine a capacitive detail gain image sequence of the target touch screen through all the capacitive detail gain images; A plurality of equally spaced capacitance detail gain image sequences of the capacitance detail gain image sequence are determined, and then a neighborhood dispersion characteristic value of each equally spaced capacitance detail gain image sequence is determined.
4. The method according to claim 3, characterized in that Determining a plurality of equally spaced capacitance detail gain image sequences of the capacitance detail gain image sequence, and then determining a neighborhood deviation characteristic value of each equally spaced capacitance detail gain image sequence specifically comprises: Determining an offset window length of the capacitive detail gain image sequence; Performing equidistant offset resampling on the capacitance detail gain image sequence according to the offset window length to obtain a plurality of equidistant capacitance detail gain image sequences; The neighborhood dispersion characteristic value of each equidistant capacitive detail gain image sequence is determined.
5. The method according to claim 1, characterized in that Determining the touch response abnormality judgment entropy of the target touch screen according to all the neighboring deviation characteristic values specifically includes: Convert all neighborhood deviation eigenvalues into neighborhood deviation eigensequences; The touch response abnormality determination entropy of the target touch screen is determined according to the neighborhood deviation feature sequence.
6. The method according to claim 1, characterized in that The target touch screen is a capacitive touch screen.
7. A touch screen control system, characterized in that: It is controlled by the method described in any one of claims 1 to 6, and the touch screen control system comprises: An acquisition module, used for acquiring a touch screen capacitance image set when a target touch screen is touched; A processing module, used for selecting a touch screen capacitive image, determining a grayscale bitmap sub-region set of the touch screen capacitive image, and further determining a grayscale sharpness enhancement factor of each grayscale bitmap sub-region; The processing module is further used to determine the capacitive detail gain image of the touch screen capacitive image according to the grayscale bitmap sub-region set and all grayscale sharpness enhancement factors, and repeat the steps of selecting a touch screen capacitive image to determining the capacitive detail gain image of the touch screen capacitive image to obtain the capacitive detail gain images of the remaining touch screen capacitive images; The processing module is further used to determine a plurality of equidistant capacitive detail gain image sequences of the target touch screen through all the capacitive detail gain images, and then determine a neighborhood deviation characteristic value of each equidistant capacitive detail gain image sequence; The execution module is used to determine the touch response abnormality determination entropy of the target touch screen according to all the neighboring deviation characteristic values, and automatically calibrate the target touch screen according to the touch response abnormality determination entropy.
8. A computer device, comprising a memory and a processor, wherein the memory stores a code, characterized in that: The processor is configured to obtain the code and execute the touch screen control method according to any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the touch screen control method according to any one of claims 1 to 6 is implemented.
