Detection model training method, protective film detection method, device and equipment

By performing touch operations on the touch screen under different film thicknesses in the terminal operation scenario, and using deep learning technology to train the detection model, the problems of low detection accuracy and high cost in the existing technology are solved, and efficient protective film thickness detection is achieved. , which improves the user experience.

CN118781173APending Publication Date: 2024-10-15GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310380055.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of detecting the thickness of the touch screen protective film is low, the technology is difficult, and the production cost is high, which affects the user's device experience.

Method used

By performing touch operations on the touch screen with different film thicknesses in the terminal operation scenario, the capacitive array data is obtained and converted into channel image data. The deep learning image recognition strategy is used to train the detection model to eliminate interference from non-film factors and improve detection accuracy. , and no additional under-screen optical devices are required in practical applications.

Benefits of technology

It improves the accuracy of touch screen protective film thickness detection, reduces technical difficulty and production costs, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118781173A_ABST
    Figure CN118781173A_ABST
Patent Text Reader

Abstract

The invention provides a detection model training method and device, a protection film detection method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of terminal control. The training method of the detection model comprises the following steps: in response to touch operations performed on a touch screen under different film thicknesses in a terminal operation scene, respectively determining channel image data according to capacitor array data corresponding to the touch operations, so as to obtain multiple pieces of channel image data of the terminal operation scene; determining a training sample according to the plurality of channel image data of the plurality of terminal operation scenes; and training the detection model by using the training sample. The detection accuracy of the thickness of the protective film of the touch screen can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] As a major human-computer interaction tool, capacitive touch screens are widely used in terminal devices due to their advantages such as fast response speed, fast reaction sensitivity, high transparency, and support for multi-touch. In the process of using terminal devices, in order to protect the touch screen, a film is often applied. However, after applying the film, the intermediate medium on the touch screen is added, which affects the touch performance of the touch screen.

[0003] At present, the key to solving the above problems lies in the detection of the thickness of the protective film of the touch screen. However, the detection method of the thickness of the protective film of the touch screen in the related art has the disadvantages of low detection accuracy, high technical difficulty and high production cost, which in turn affects the user's equipment experience. Summary of the invention

[0004] The purpose of the present disclosure is to provide a detection model training method, a protective film detection method, a detection model training device, a protective film detection device, an electronic device and a computer-readable storage medium, thereby improving the detection accuracy of the protective film thickness of the touch screen at least to a certain extent.

[0005] According to a first aspect of the present disclosure, a detection model training method is provided, comprising: responding to touch operations performed on a touch screen at different film thicknesses in a terminal operation scenario, determining channel image data according to capacitance array data corresponding to the touch operations, to obtain multiple channel image data of the terminal operation scenario; determining training samples according to the multiple channel image data of the multiple terminal operation scenarios; and training the detection model using the training samples.

[0006] According to a second aspect of the present disclosure, a protective film detection method is provided, including: in response to a current touch operation on a touch screen to be detected, obtaining current capacitance array data; determining current channel image data corresponding to the current touch operation based on the current capacitance array data; inputting the current channel image data into a target detection model to obtain a film thickness detection result of the touch screen to be detected; wherein the target detection model is obtained by training a detection model using any of the above detection model training methods.

[0007] According to a third aspect of the present disclosure, a detection model training device is provided, including: a data acquisition module, used to respond to touch operations performed on a touch screen under different film thicknesses in a terminal operation scenario, and determine channel image data according to the capacitance array data corresponding to the touch operation to obtain multiple channel image data of the terminal operation scenario; a sample determination module, used to determine training samples according to the multiple channel image data of multiple terminal operation scenarios; and a model training module, used to train the detection model using the training samples.

[0008] According to a fourth aspect of the present disclosure, a protective film detection device is provided, including: a touch response module, used to obtain current capacitance array data in response to a current touch operation on a touch screen to be detected; a data determination module, used to determine current channel image data corresponding to the current touch operation based on the current capacitance array data; a detection module, used to input the current channel image data into a target detection model to obtain a film thickness detection result of the touch screen to be detected; wherein the target detection model is obtained by training the detection model using any of the above-mentioned detection model training methods.

[0009] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing one or more programs, which, when the one or more programs are executed by one or more processors, enables the one or more processors to implement the above method.

[0010] According to a sixth aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and the computer program implements the above method when executed by a processor.

[0011] The technical solution involved in the embodiment of the present disclosure is that in the training stage of the detection model, in each terminal operation scenario, the touch screen is subjected to touch operation under different film thicknesses, and the channel image data is determined according to the capacitance array data corresponding to the touch operation, so as to obtain multiple channel image data of each terminal operation scenario, and then the multiple channel image data of multiple terminal operation scenarios are determined as training samples for training the detection model. On the one hand, in different terminal operation scenarios, the touch screen is subjected to touch operation under the condition of being covered with protective films of different thicknesses, and the capacitance array data obtained by each touch operation is regarded as channel image data. The detection model is trained using the channel image data with an image recognition strategy based on deep learning, and the non-film factors that interfere with the capacitance signal in the operation scenarios of various terminals can be introduced into the model training process, so that the output result of the detection model is only related to the film state of the touch screen, and the interference of non-film factors is eliminated, so as to improve the true accuracy of the detection model in detecting the film thickness of the touch screen; on the other hand, when the detection model is actually applied, there is no need to introduce additional under-screen optical devices in the device, which reduces the technical difficulty and production cost.

[0012] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0014] Figure 1 A schematic diagram showing the stages involved in the protective film detection solution of the embodiment of the present disclosure is shown;

[0015] Figure 2 A diagram schematically illustrates an application scenario of an exemplary embodiment of the present disclosure;

[0016] Figure 3 Another application scenario diagram of an exemplary embodiment of the present disclosure is schematically shown;

[0017] Figure 4 A flowchart schematically illustrates a method for training a detection model in an exemplary embodiment of the present disclosure;

[0018] Figure 5 A schematic diagram schematically showing a plurality of channel image data corresponding to a plurality of terminal operation scenarios respectively in an exemplary embodiment of the present disclosure;

[0019] Figure 6 A schematic diagram of the structure of a detection model in an exemplary embodiment of the present disclosure is schematically shown;

[0020] Figure 7 A flowchart schematically illustrates an implementation method of determining channel image data according to a touch operation according to an exemplary embodiment of the present disclosure;

[0021] Figure 8 A schematic diagram of acquiring multiple target capacitance array data in an exemplary embodiment of the present disclosure is schematically shown;

[0022] Fig. 9 A schematic diagram schematically illustrates a method of grouping touch image data in an exemplary embodiment of the present disclosure;

[0023] Fig.10 A flowchart for determining the validity of a touch operation in an exemplary embodiment of the present disclosure is schematically shown;

[0024] Fig.11 A flowchart schematically shows a protective film detection method in an exemplary embodiment of the present disclosure;

[0025] Fig.12 A flowchart of obtaining a film thickness detection result of a touch screen to be detected by a result fusion method in an exemplary embodiment of the present disclosure is schematically shown;

[0026] Fig.13 A schematic diagram schematically illustrates an interactive interface in an exemplary embodiment of the present disclosure;

[0027] Fig.14 A schematic diagram schematically illustrates another interactive interface in an exemplary embodiment of the present disclosure;

[0028] Fig.15 A complete flow chart of a protective film detection solution in an exemplary embodiment of the present disclosure is schematically shown;

[0029] Fig.16 A schematic diagram schematically shows the composition of a training device for a detection model in an exemplary embodiment of the present disclosure;

[0030] Fig.17 A schematic diagram schematically shows the composition of a protective film detection device in an exemplary embodiment of the present disclosure;

[0031] Fig.18 A schematic diagram of an electronic device to which the embodiments of the present disclosure can be applied is shown. DETAILED DESCRIPTION

[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0033] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0034] Figure 1 The schematic diagram of the stages involved in the protective film detection scheme of the embodiment of the present disclosure is shown as follows: Figure 1 As shown, the technical solution of the embodiment of the present disclosure includes a model training stage and a model application stage.

[0035] In an embodiment of the present disclosure, the provided detection model training method can be executed by a terminal device. During the training stage of the detection model, the terminal device can respond to touch operations performed on the touch screen under different film thicknesses in a terminal operation scenario, and determine channel image data according to the capacitance array data corresponding to the touch operations to obtain multiple channel image data of the terminal operation scenario; determine training samples according to the multiple channel image data of multiple terminal operation scenarios; and train the detection model using the training samples. The application stage of the detection model can also be executed in the terminal device. During the protective film detection stage, the terminal device can respond to the current touch operation on the touch screen to be detected, obtain current capacitance array data; determine current channel image data corresponding to the current touch operation based on the current capacitance array data; and input the current channel image data into the target detection model to obtain the film thickness detection result of the touch screen to be detected. For example, Figure 2 As shown, when all steps in the detection model training method and the protective film detection method provided in the embodiments of the present disclosure can be executed by the terminal device, all steps can be executed by the processor of the terminal device 100.

[0036] The terminal device can be an intelligent device with data processing capabilities, such as a smart phone, computer, tablet computer, vehicle-mounted device, wearable device, monitoring device and other intelligent devices. The terminal device can also be called a mobile terminal, terminal, mobile device, etc. The present disclosure does not limit the type of terminal device.

[0037] Furthermore, the technical solution provided in the embodiment of the present disclosure may also be executed by a server. Correspondingly, in this mode of execution by a server, the server may start executing the steps in the technical solution of the embodiment of the present disclosure in response to a trigger command, wherein the trigger command may be sent by a terminal device used by a user, or may be triggered locally by the server in response to some automation events. The server may be a background system that provides relevant services in the embodiment of the present disclosure, and may include one electronic device with computing functions such as a portable computer, a desktop computer, a smart phone, or a cluster formed by multiple electronic devices.

[0038] In addition, the technical solution of the embodiment of the present disclosure can also be executed by the terminal device and the server in collaboration. In this way of being executed by the electronic device and the server in collaboration, some steps in the technical solution provided by the embodiment of the present disclosure are executed by the terminal device, while other steps are executed by the server. For example, the technical solution provided by the embodiment of the present disclosure can be executed by the server in the training phase of the detection model, and the trained target detection model is sent to the terminal device, and the terminal device executes the model application phase. Exemplary, such as Figure 3As shown, the server 200 can execute the training method of the detection model, obtain the trained target detection model and send it to the terminal device 100, and then the terminal device 100 executes the protective film detection method to obtain the film thickness detection result.

[0039] It should be noted that in this method in which the terminal device and the server are executed collaboratively, the steps executed by the terminal device and the server respectively can be dynamically adjusted according to actual conditions, and there is no special restriction on this.

[0040] In the embodiments of the present disclosure, the technical solution is executed by a terminal device as an example for description.

[0041] Capacitive touch screen is a touch sensor device based on the principle of electrostatic field induction of human body capacitance. It is widely used in electronic devices such as smart phones, tablet computers, and thin and light laptops. During use, users usually apply a protective film to the touch screen to protect it. However, the protective film adds an intermediate medium, which weakens the capacitive touch signal and reduces the sensitivity of the touch screen to a certain extent, resulting in insensitive clicks, broken touches, insensitive edges, and swipe failures, affecting the user experience.

[0042] The thickness type of the protective film of the touch screen can be detected to improve the sensitivity of the touch screen according to the thickness type detection result. The manual detection method in the related art increases the learning cost and the cost of using the touch screen, and has poor practicality. The current automatic detection methods include the capacitance signal change strategy and the under-screen optical strategy, which have the following defects:

[0043] In the capacitance signal change strategy, the thickness of the film is determined by comparing the difference in signal characteristics when the touch screen is touched before and after the film is applied. However, the above schemes roughly attribute the change in the screen capacitance signal to whether the touch screen is covered with a film, ignoring the impact of many other factors on the capacitance signal in the actual use scenario of the touch screen. Taking the smartphone screen as an example, whether the phone has a thick case, whether it is in a suspended state, the operator's gender, and the type of touch medium used by the operator may all cause capacitance signal attenuation to a certain extent, thereby showing a touch insensitivity problem similar to that after the touch screen is filmed, affecting the accuracy of the detection of the thickness type of the touch screen film.

[0044] In the under-screen optical strategy, in order to receive the detection light signal, additional related sensors need to be introduced into the device. For example, the optical sensor module is located under the screen, which increases the technical difficulty and production cost of the equipment production.

[0045] Based on one or more of the above problems, the exemplary embodiments of the present disclosure first provide a method for training a detection model. Figure 4As shown, the model training method may include the following steps S410 to S430:

[0046] In step S410, in response to touch operations performed on the touch screen with different film thicknesses in a terminal operation scenario, channel image data are determined according to capacitance array data corresponding to the touch operations to obtain multiple channel image data of the terminal operation scenario.

[0047] In the exemplary embodiments of the present disclosure, the terminal operation scenario refers to one or more combinations of relevant scenario factors that can affect the capacitive signal of the touch screen when the terminal device with a touch screen is in use. The relevant scenario factors may include but are not limited to device status, user attributes, touch actions, and touch medium types.

[0048] Exemplary device states include whether the terminal device has a protective case, whether the terminal device has protective cases of different thicknesses, the type of protective film applied to the terminal device (such as tempered film, hydrogel film), the holding state and floating state of the terminal device, etc.; user attributes include the gender of the operator, the type of finger used by the user for operation, the area of ​​the finger, etc.; touch actions include various basic operations such as clicking, sliding, drawing circles, and other complex touch actions; touch medium types such as user fingers and stylus, etc. The disclosed embodiments may construct a terminal operation scenario by combining one or more of the above-mentioned related scenario factors. For example, a terminal operation scenario is that the terminal device has a thick case and is in a vertical holding state. Another example is that the terminal device has a thick case and is covered with a tempered film, etc. The disclosed embodiments will not list them one by one.

[0049] Taking smart phones as an example, relevant scenario factors such as whether the phone has a thick case, whether it is in a suspended state, and the type of touch medium used will all cause capacitive signal attenuation to a certain extent. The existence of these relevant scenario factors manifests touch insensitivity problems similar to different film thicknesses, affecting the true prediction of the film thickness of the touch screen. Therefore, by introducing one or more combinations of these relevant scenario factors as terminal operation scenarios into the training process of the detection model, through model training, the final detection result after the detection model is learned is only related to the film thickness of the touch screen, thereby improving the detection accuracy of the thickness type of the touch screen protective film.

[0050] It should be noted that the above-mentioned relevant scenario factors are only exemplary. The embodiments of the present disclosure may include various scenario factors that may affect the capacitive signal of the touch screen when the terminal device is in use, so as to introduce these relevant scenario factors in the training stage of the detection model and eliminate the influence of non-membrane factors on the detection accuracy of the detection model.

[0051] The disclosed embodiments may include a variety of film thicknesses. In each terminal operation scenario, protective films of different thicknesses are applied to the touch screen and touch operations are performed separately, so that each terminal operation scenario includes multiple channel image data corresponding to different film thicknesses.

[0052] In a possible embodiment, the various film thicknesses may include no film (thickness is zero), thin film and thick film, and the thin film and thick film correspond to different film thicknesses respectively.

[0053] In another possible embodiment, thin films and thick films can be divided more finely, such as thin films including multiple levels of film thickness, such as first-level thin films, second-level thin films, and third-level thin films corresponding to different film thicknesses. Correspondingly, thick films can also include multiple levels of film thickness. By dividing the thickness of each film more finely, a more accurate prediction of the film thickness of the touch screen can be achieved.

[0054] Touch operations may include basic operations such as clicking, sliding, drawing circles, moving two fingers up / down at the same time, moving two fingers left / right at the same time, pinching / opening, or other complex operation types. The touch operation of the touch medium on the touch screen can change the electric field between the vertical and horizontal electrodes of the touch screen to change the capacitance between the electrodes, that is, the touch operation affects the capacitance data, such as capacitance array data.

[0055] In the disclosed embodiment, each touch operation generates corresponding capacitance array data, and the channel image data corresponding to the touch operation is determined based on the capacitance array data. Channel image data refers to multi-channel image data converted after the capacitance array data corresponding to the touch operation is processed, such as three-channel image data, which is equivalent to the RGB three channels of the image. By converting the capacitance array data into channel image data, the subsequent deep learning-based image recognition strategy can realize the training and application of the detection model.

[0056] Figure 5 A schematic diagram showing a plurality of channel image data corresponding to a plurality of terminal operation scenarios according to an exemplary embodiment of the present disclosure is shown. Figure 5 , the terminal operation scenario of "having a thick case and holding it vertically" and the thickness of the film is a thin film is used for explanation. The terminal operation scenario includes p n2 Channel image data, where p n2 The specific number can be determined according to the number of samples required for model training, that is, the touch screen can be touched multiple times in the terminal operation scenario and when the touch screen is covered with a film to increase the number of channel image data included in the terminal operation scenario. The embodiment of the present disclosure can adjust the number of channel image data included in each terminal operation scenario according to actual needs.

[0057] It should be noted that, in each terminal operation scenario, performing a touch operation on the touch screen under a specific film thickness can obtain one or more channel image data, which will be set according to the implementation requirements and will be introduced later.

[0058] In step S420, training samples are determined according to a plurality of channel image data of a plurality of terminal operation scenarios.

[0059] In an exemplary embodiment of the present disclosure, after obtaining a plurality of channel image data in different terminal operation scenarios, the plurality of channel image data in these terminal operation scenarios are used as training samples to train the detection model.

[0060] In step S430, the detection model is trained using the training samples.

[0061] In an exemplary embodiment of the present disclosure, channel image data is used as input of a detection model, and the actual film thickness corresponding to the channel image data is determined as label data, and the predicted film thickness detection result corresponding to the channel image data is used as the output of the detection model to implement training of the detection model.

[0062] Among them, the detection model can be selected from any one of the image-based convolutional neural networks LeNet, AlexNet, VGG, GoogLeNet and ResNet (Deep Residual Network), etc. Of course, the detection model can also be a self-built image-based convolutional neural network. The embodiment of the present disclosure can select the type of detection model according to actual needs, and there is no special limitation on this.

[0063] Figure 6 A structural schematic diagram of a detection model according to an exemplary embodiment of the present disclosure is shown. Figure 6 The detection model includes the first convolution layer, the first global pooling layer, the second convolution layer, the second global pooling layer, the fully connected layer and the activation layer. The channel image data is input into the detection model as a training sample, and the predicted film thickness of the channel image data is output. A loss function can be constructed based on the predicted film thickness and the label data to adjust the parameters in the detection model according to the loss function to obtain a trained detection model. Of course, Figure 6 The structure of the detection model shown is only exemplary, and the embodiments of the present disclosure can build the detection model according to the needs.

[0064] In an exemplary embodiment, a method for determining channel image data according to a touch operation is provided. Figure 7 For each touch operation, the channel image data is determined according to the capacitance array data corresponding to the touch operation, steps S710 to S730:

[0065] Step S710: Acquire a plurality of target capacitance array data from capacitance array data generated by a touch operation.

[0066] Capacitance array data corresponding to the touch track is generated along the touch track of the touch operation. The embodiment of the present disclosure can select a plurality of target capacitance array data from the capacitance array data generated by the touch operation.

[0067] In some possible embodiments, based on a preset acquisition frame rate, multiple target capacitance array data may be sequentially acquired from each capacitance array data generated by the touch operation along the operation track of the touch operation. Figure 8 As shown in FIG. 1 , if the preset acquisition frame rate is 30 Hz and the duration of a sliding touch operation is 1 second, 30 target capacitance array data (Q 1 To Q 30 ). Of course, the preset acquisition frame rate can also be set to other acquisition frame rates according to actual needs, such as any acquisition frame rate selected from 30Hz-200Hz. It is worth noting that the setting principle of the preset acquisition frame rate is based on the target capacitance array data obtained based on the preset acquisition frame rate, and the image difference between each channel in the subsequent channel image data formed based on the target capacitance array data cannot be too large, so as to avoid the impact of the subsequent touch screen film thickness detection accuracy due to the large image difference between each channel. Based on this, by collecting the target capacitance array data in each capacitance array data generated by the touch operation, it is possible to characterize the capacitance data change of the entire touch operation and reduce the amount of data collection. It is worth noting that Figure 8 The touch points between the circular touch points shown are not shown.

[0068] In some other possible embodiments, multiple target capacitance array data may be sequentially obtained from each capacitance array data generated by a specific track segment of the operation track of the touch operation. To completely perform a touch operation, the force and touch contact surface used by the user are usually relatively smooth and uniform in the middle segment of the operation track. Therefore, multiple target capacitance array data may be sequentially obtained from each capacitance array data generated by the middle segment of the operation track, so that the target capacitance array data accurately represents the user's touch behavior. For example, Figure 8 The target capacitor array data is selected from the capacitor array data Q9 to Q24 shown.

[0069] Step S720: determining a plurality of touch image data according to a plurality of target capacitance array data; wherein the target capacitance array data and the touch image data correspond one to one.

[0070] The target capacitance array data is capacitance array difference data. In the embodiment of the present disclosure, each target capacitance array data is used as a two-dimensional touch image data. After obtaining multiple target capacitance array data, multiple touch image data corresponding to the multiple target capacitance array data are determined accordingly. Figure 8 In the example shown, 30 touch image data can be obtained.

[0071] It is worth noting that the embodiment of the present disclosure regards the capacitive array signal as image data, and utilizes the capacitive array signal generated by the touch operation to train the detection model through a deep learning image recognition strategy to obtain a detection model for film thickness detection, so as to improve the detection accuracy of the detection model for the film thickness.

[0072] Step S730, determining channel image data corresponding to the touch operation according to the plurality of touch image data.

[0073] Each touch operation obtains a corresponding plurality of touch image data, and the channel image data corresponding to the touch operation can be determined according to the plurality of touch image data.

[0074] In an exemplary embodiment of the present disclosure, step S730 may further include: first grouping multiple touch image data, then determining the channel image data of each group according to the touch image data in the group, and finally obtaining the channel image data corresponding to a touch operation according to the channel image data of each group.

[0075] In some possible embodiments, grouping multiple touch images can be performed along the operation trajectory of the touch operation, and N touch image data are sequentially acquired as a group in the order of acquiring the multiple touch image data, until the number of ungrouped touch image data in the multiple touch image data is less than N, and N is less than the number of the multiple touch image data.

[0076] For example, Fig. 9 If P touch image data are obtained in sequence along the operation track of the touch operation, a non-overlapping method can be used to treat N adjacent touch image data in the P touch image data as a group from front to back, treat N+1 to 2N adjacent touch image data as a group, and so on, until the number of ungrouped remaining touch image data in the multiple touch image data is less than N, and a total of J groups are obtained, that is, P≥N×J. Among them, N is the number of touch image data in each group, and is also the number of channels of channel image data obtained based on the touch image data of the group, which can be set according to actual needs, such as N=3, and the embodiment of the present disclosure does not make special requirements for this.

[0077] In some other possible embodiments, an overlapping method may also be adopted. Fig. 9, from front to back, N adjacent touch image data among P touch image data are regarded as a group, and N-1 to 2N+2 adjacent touch image data are regarded as a group, and so on, until the number of remaining touch image data that are not grouped in the multiple touch image data is less than N. Adjacent groups contain overlapping touch image data, which increases the utilization rate of the overlapping touch image data, and can also increase the number of obtained groups, thereby increasing the number of training samples obtained in one touch operation.

[0078] In an exemplary embodiment, after the plurality of touch image data are grouped, the number of touch image data in each group is N, where N is a positive integer and is less than the number of the plurality of touch image data. Determining the channel image data of each group according to the touch image data in each group may include:

[0079] The N touch image data in the group are fused to obtain the channel image data of the group, wherein the number of channels of the channel image data of the group is N.

[0080] Exemplarily, if N=3, the three touch image data in each group are fused to obtain the three-channel image data of the group. Correspondingly, if N=4, the four-channel image data of the group is obtained, and so on. When the multiple touch image data in each group are fused, similar to the fusion process of the three channels of RGB in the picture, the embodiment of the present disclosure fuses the multiple touch image data to obtain the multi-channel image data corresponding to the group, and the number of channels is equal to the number of the multiple touch image data.

[0081] After obtaining the channel image data of each group, all the channel image data obtained from all the groups can be used as the channel image data corresponding to the touch operation, that is, the channel image data of a touch operation in a terminal operation scenario when the touch screen is covered with a film of a certain thickness is obtained.

[0082] The disclosed embodiment uses the capacitor array signal as image data and a multi-channel image fusion strategy to obtain channel image data of each group, so that the disclosed embodiment can detect changes in capacitor array data based on a deep learning image recognition strategy and predict the film thickness type of the touch screen.

[0083] In an exemplary embodiment, in order to improve the accuracy of model detection and reduce interference factors, the embodiment of the present disclosure also provides an implementation method for determining the validity of a touch operation. Fig.10 For each touch operation, after determining the channel image data according to the capacitance array data corresponding to the touch operation, the method may further include step S1010 and step S1020:

[0084] Step S1010: Acquire a first quantity of channel image data corresponding to the touch operation.

[0085] Step S1020: determining the validity of the touch operation based on the first quantity; wherein the channel image data corresponding to the valid touch operation is used as a training sample.

[0086] Wherein, determining the validity of the touch operation based on the first number may be to compare the first number with a preset number threshold, and if the first number is greater than or equal to the preset number threshold, the touch operation is determined to be a valid touch operation, and conversely, if the first number is less than the preset number threshold, the touch operation is determined to be an invalid touch operation. The preset number threshold may be 3, 4, or 5, etc.

[0087] Since the channel image data of invalid touch operations is of little significance for detecting the film thickness and adjusting the touch screen sensitivity based on the film thickness, the embodiment of the present disclosure adopts a rejection mechanism to eliminate the channel image data of invalid touch operations and does not use them as training samples for the detection model. Based on this, the accuracy of the training samples can be improved, thereby improving the training accuracy of the detection model.

[0088] Through the training method of the detection model of the embodiment of the present disclosure, touch operations are performed on the touch screen when it is covered with protective films of different thicknesses in different terminal operation scenarios, and the capacitance array data obtained from each touch operation is regarded as channel image data. The detection model is trained using the channel image data using an image recognition strategy based on deep learning. Non-film factors that interfere with the capacitance signal in various terminal operation scenarios can be introduced into the model training process, so that the output result of the detection model is only related to the film state of the touch screen, eliminating the interference of non-film factors, so as to improve the true accuracy of the detection model in detecting the film thickness of the touch screen.

[0089] Furthermore, in the application stage of the detection model, the present disclosure also provides a protective film detection method, see Fig.11 As shown, the protective film detection method of the embodiment of the present disclosure includes steps S1110 to S1130:

[0090] In step S1110, in response to a current touch operation on the touch screen to be detected, current capacitance array data is acquired.

[0091] In an exemplary embodiment of the present disclosure, the touch screen to be detected is a touch screen of the type that needs to detect the film thickness, and the current touch operation may also include basic operations such as clicking, sliding, drawing circles, two fingers simultaneously up / down, two fingers simultaneously left / right, pinching / opening and closing, or other complex operation types. Optionally, when a user uses a terminal device with a touch screen to be detected, after the user triggers a film thickness detection instruction (such as a new protective film of the touch screen), in response to the current touch operation of the touch screen to be detected, the current capacitance array data is obtained and a subsequent detection process is performed; optionally, in the process of the user using the touch screen, in response to the current touch operation of the touch screen to be detected, the current capacitance array data is obtained according to a preset period (such as one day, one week) to achieve a timed update of the detection result.

[0092] It is worth noting that the detailed process of obtaining the current array data based on the current touch operation can refer to the recorded content of obtaining the target capacitance array data corresponding to each touch operation in step S710, which will not be repeated here.

[0093] In step S1120: current channel image data corresponding to the current touch operation is determined based on the current capacitance array data.

[0094] In an exemplary embodiment of the present disclosure, the current channel image data corresponding to the current touch operation can be determined based on the current capacitor array data. The specific process can be referred to the detailed description of determining multiple touch image data based on the target capacitor array data and determining the channel image data corresponding to the touch operation based on the multiple touch image data in step S720 and step S730, which will not be repeated here.

[0095] In step S1130, the current channel image data is input into the target detection model to obtain the film thickness detection result of the touch screen to be detected; wherein the target detection model is obtained by training the detection model through the exemplary embodiment of the above-mentioned detection model training method.

[0096] In the exemplary embodiment of the present disclosure, the training process of the target detection model can refer to the embodiment described in the above model training part. The current channel image data obtained by the current touch operation is used as the input of the target detection model to perform the film thickness type detection process.

[0097] In an exemplary embodiment, if the current channel image data corresponding to the current touch operation is multiple, inputting the current channel image data into the target detection model to obtain the film thickness detection result of the touch screen to be detected may include step S1210 and step S1220:

[0098] Step S1210: inputting the current channel image data into the target detection model respectively to obtain the film thickness detection result corresponding to each current channel image data.

[0099] The target detection model is used to perform prediction processing on each current channel image data to obtain the film thickness type corresponding to each current channel image data, such as no film, thin film, thick film, etc.

[0100] Step S1220: Determine the film thickness detection result of the touch screen to be detected according to the film thickness detection result corresponding to each current channel image data.

[0101] After obtaining a plurality of film thickness detection results corresponding to a current touch operation, the embodiment of the present disclosure determines a final film thickness detection result of the touch screen to be detected according to the plurality of film thickness detection results.

[0102] In some possible embodiments, the film thickness detection results corresponding to the image data of each current channel may be fused, and the film thickness detection result of the touch screen to be detected may be determined according to the fusion result.

[0103] For example, if no film, thin film, and thick film correspond to 0, 1, and 2 respectively, the film thickness detection results corresponding to the image data of each current channel can be averaged, and the degree of proximity between the average and 0, 1, and 2 can be determined to obtain the closest category as the final film thickness detection result of the touch screen to be detected. For example, if the average is 1.8, it is determined that the film thickness of the touch screen to be detected is a thick film.

[0104] In an exemplary embodiment, the thickness type with the largest number in the film thickness detection results corresponding to the current channel image data can be obtained as the film thickness of the touch screen to be detected. If the film thickness detection results corresponding to more than 2 / 3 of the current channel image data are thin films, it is determined that the film thickness of the touch screen to be detected is thin films.

[0105] In another exemplary embodiment, the largest number of film thickness detection results corresponding to the current channel image data may be used as the film thickness of the touch screen to be detected.

[0106] It should be noted that the embodiments of the present disclosure may also adopt other fusion methods to fuse the film thickness detection results corresponding to the current channel image data, so as to determine the film thickness detection result of the touch screen to be detected based on the fusion result. Different from only detecting the protective film thickness type based on a single detection method, the embodiments of the present disclosure can further improve the authenticity and reliability of the detection of the protective film thickness type through the result fusion strategy.

[0107] In an exemplary embodiment, in order to further improve the detection accuracy of the protective film thickness type, it is also possible to respond to multiple current touch operations on the touch screen to be detected, obtain the film thickness detection results corresponding to each current touch operation respectively, and determine the film thickness detection results of the touch screen to be detected based on the film thickness detection results corresponding to the multiple current touch operations.

[0108] The multiple current touch operations may be of the same type, or of different types, or of different types, and there is no special limitation on this. Optionally, during the process of the user using the terminal device to perform touch operations on the touch screen, multiple touch operations may be automatically selected to perform the film thickness detection process, so that the user is unaware of the detection process; optionally, Fig.13 The interactive interface shown prompts the user to perform different types of touch operations.

[0109] The disclosed embodiment can fuse the film thickness detection results corresponding to multiple current touch operations to determine the film thickness detection result of the touch screen to be detected based on the fusion result. The fusion method can refer to the above-mentioned embodiment of fusing the film thickness detection results corresponding to the current channel image data, and the disclosed embodiment does not specifically limit this. By fusing the film thickness detection results corresponding to multiple current touch operations, the variability of the channel image data and the detection results is fully considered to improve the accuracy of the final detection result.

[0110] In an exemplary embodiment, before inputting the current channel image data into the target detection model to obtain the film thickness detection result of the touch screen to be detected, the validity of the current touch operation can also be determined according to the second quantity of the current channel image data.

[0111] Among them, if the second number of the current channel image data is greater than or equal to the preset number threshold, the current touch operation is determined to be a valid touch operation, and the film thickness prediction is continued. On the contrary, if the second number of the current channel image data is less than the preset number threshold, the current touch operation is determined to be an invalid touch operation. If continuing the film thickness prediction may affect the detection accuracy, the user may be prompted to perform a valid touch operation again to perform the film thickness detection to ensure the validity of the detection result.

[0112] In an exemplary embodiment, after obtaining the film thickness detection result of the touch screen to be detected, the response sensitivity of the touch screen to be detected can also be adjusted according to the film thickness detection result of the touch screen to be detected; wherein the response sensitivity of the touch screen to be detected is used to characterize the sensitivity of the touch screen to be detected in responding to the user's touch operation. The sensitivity refers to the touch screen sensitivity that can correctly perceive the user's touch operation and will not cause erroneous operation.

[0113] In some possible embodiments, adjusting the response sensitivity of the touch screen to be detected according to the film thickness detection result of the touch screen to be detected may include:

[0114] According to the correspondence between the film thickness type and the touch screen response threshold, the target response threshold corresponding to the film thickness detection result of the touch screen to be detected is determined, and the response sensitivity of the touch screen to be detected is adjusted according to the target response threshold.

[0115] Among them, if the touch condition of the touch operation is greater than the target response threshold, the touch operation can be considered as a touch event. On the contrary, if the touch condition of the touch operation is less than the target response threshold, the touch operation is considered not to be a touch event.

[0116] In an exemplary embodiment, a method for implementing a user-selectable touch screen response sensitivity is also provided. Adjusting the response sensitivity of the touch screen to be detected according to the film thickness detection result of the touch screen to be detected may also include:

[0117] First, multiple candidate sensitivity options corresponding to the film thickness detection result of the touch screen to be detected are obtained, and in response to a selection operation of determining a target sensitivity option from the multiple candidate sensitivity options, the response sensitivity of the touch screen to be detected is adjusted according to the target sensitivity option; wherein each candidate sensitivity option corresponds to a different touch screen response threshold.

[0118] It should be noted that the multiple candidate sensitivity options provided are determined based on the film thickness test results of the touch screen to be tested, and the touch screen response thresholds corresponding to these candidate sensitivity options enable users to have different touch screen response speeds when using the touch screen without causing user misoperation. The corresponding relationship between different film thickness test results and sensitivity options can be pre-set to provide them to users for selection.

[0119] See also Fig.14 A schematic diagram of an interactive interface for selecting response sensitivity according to an exemplary embodiment of the present disclosure is shown. A user can select Fig.14 The interactive interface shown selects the desired touch screen response sensitivity so that the response speed of the touch screen is closer to each user's operating habits and real experience.

[0120] Through the protective film detection method of the embodiment of the present disclosure, when the detection model is actually applied, there is no need to introduce additional under-screen optical devices in the device, which reduces technical difficulty and production costs. The capacitive array data generated by the actual touch operation is converted into channel image data, and the automatic recognition of the film thickness type of the touch screen is realized by an image recognition strategy based on deep learning, which greatly improves the accuracy of film recognition. Based on the accurately identified film thickness, other non-film factors are checked for interference, and the response sensitivity of the touch screen of the terminal device can be accurately adjusted in any terminal operation scenario, thereby improving the user experience of using the terminal device.

[0121] Fig.15 A complete flow chart of a protective film detection solution according to an embodiment of the present disclosure is shown, which includes a model training phase and a model application node. Fig.15 The protective film detection scheme of the embodiment of the present disclosure is described.

[0122] First, determine the terminal operation scenario and different film thicknesses (protective film thickness types).

[0123] Secondly, in the terminal operation scenario, touch operations are performed on the touch screen with different film thicknesses, and channel image data are determined according to the capacitance array data corresponding to the touch operations, so as to obtain multiple channel image data of the terminal operation scenario. Among them, multiple target capacitance array data are obtained from the capacitance array data generated by the touch operation, and multiple touch image data are determined according to the multiple target capacitance array data, so as to group the multiple touch image data and perform data fusion within the group respectively, so as to determine the channel image data corresponding to the touch operation.

[0124] Then, a first quantity of channel image data corresponding to the touch operation is obtained, and the validity of the touch operation is determined based on the first quantity, and training samples and sample labels (real film thickness type) are constructed according to the channel image data corresponding to the valid touch operation.

[0125] Furthermore, the detection model is trained using the training samples to obtain a target detection model.

[0126] Furthermore, in response to the current touch operation on the touch screen to be detected, the current capacitor array data is obtained, and the current channel image data corresponding to the current touch operation is determined based on the current capacitor array data. The obtained current channel image data (0, 1, 2, ..., q) is input into the target detection model to obtain the film thickness detection result corresponding to each current channel image data.

[0127] Finally, the film thickness detection results corresponding to the image data of each current channel are fused to obtain the film thickness detection result of the touch screen to be detected.

[0128] The protective film detection scheme of the disclosed embodiment, on the one hand, performs touch operations on the touch screen when it is covered with protective films of different thicknesses in different terminal operation scenarios, and regards the capacitance array data obtained from each touch operation as channel image data. The detection model is trained using the channel image data with an image recognition strategy based on deep learning, and non-film factors that interfere with the capacitance signal in various terminal operation scenarios can be introduced into the model training process, so that the output result of the detection model is only related to the film state of the touch screen, eliminating the interference of non-film factors, so as to improve the true accuracy of the detection model in detecting the film thickness of the touch screen; on the other hand, when the detection model is actually applied, there is no need to introduce additional under-screen optical devices in the device, thereby reducing technical difficulty and production costs.

[0129] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0130] For further reference, Fig.16 As shown, in an exemplary embodiment of the present disclosure, a detection model training device 1600 is provided, including a data acquisition module 1610, a sample determination module 1620 and a model training module 1630. Among them:

[0131] The data acquisition module 1610 is used to respond to the touch operation performed on the touch screen with different film thicknesses in the terminal operation scenario, and determine the channel image data according to the capacitance array data corresponding to the touch operation to obtain multiple channel image data of the terminal operation scenario;

[0132] A sample determination module 1620, configured to determine training samples according to the plurality of channel image data of the plurality of terminal operation scenarios;

[0133] The model training module 1630 is used to train the detection model using training samples.

[0134] In an exemplary embodiment, the data acquisition module 1610 is configured to perform: for each touch operation, obtain multiple target capacitor array data from the capacitor array data generated by the touch operation; determine multiple touch image data based on the multiple target capacitor array data; wherein the target capacitor array data corresponds one-to-one to the touch image data; and determine the channel image data corresponding to the touch operation based on the multiple touch image data.

[0135] In an exemplary embodiment, the data acquisition module 1610 is configured to perform: based on a preset acquisition frame rate, along the operation track of the touch operation, sequentially acquiring a plurality of target capacitance array data from each capacitance array data generated by the touch operation.

[0136] In an exemplary embodiment, the data acquisition module 1610 is configured to execute: grouping multiple touch image data; determining the channel image data of each group according to the touch image data in each group; and obtaining the channel image data corresponding to the touch operation according to the channel image data of each group.

[0137] In an exemplary embodiment, the data acquisition module 1610 is configured to perform: along the operation trajectory of the touch operation, in the order of acquiring the multiple touch image data, sequentially acquiring N touch image data as a group until the number of ungrouped touch image data in the multiple touch image data is less than N; wherein N is less than the number of the multiple touch image data.

[0138] In an exemplary embodiment, the number of touch image data in each group is N, and the data acquisition module 1610 is configured to execute: fusing the N touch image data in the group to obtain the channel image data of the group; wherein the number of channels of the channel image data of the group is N.

[0139] In an exemplary embodiment, the data acquisition module 1610 is configured to perform: for each touch operation, obtain a first quantity of channel image data corresponding to the touch operation; determine the validity of the touch operation based on the first quantity; wherein the channel image data corresponding to the valid touch operation is used as a training sample.

[0140] The specific details of each module in the above device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0141] In addition, if Fig.17 As shown, the embodiment of the present disclosure also provides a protective film detection device 1700, see Fig.17 The protective film detection device 1700 includes a touch response module 1710, a data determination module 1720 and a detection module 1730. Specifically:

[0142] A touch response module 1710 is used to obtain current capacitance array data in response to a current touch operation on the touch screen to be detected;

[0143] A data determination module 1720, configured to determine current channel image data corresponding to the current touch operation based on current capacitance array data;

[0144] The detection module 1730 is used to input the current channel image data into the target detection model to obtain the film thickness detection result of the touch screen to be detected; wherein the target detection model is obtained by training the detection model through the above-mentioned detection model training method.

[0145] In an exemplary embodiment, the number of current channel image data corresponding to the current touch operation is multiple; the detection module 1730 is configured to execute: input the current channel image data into the target detection model respectively to obtain the film thickness detection result corresponding to each current channel image data; determine the film thickness detection result of the touch screen to be detected according to the film thickness detection result corresponding to each current channel image data.

[0146] In an exemplary embodiment, the detection module 1730 is configured to execute: fusing the film thickness detection results corresponding to the image data of each current channel; and determining the film thickness detection result of the touch screen to be detected according to the fusion result.

[0147] In an exemplary embodiment, the protective film detection device 1700 is also configured to perform: in response to multiple current touch operations on the touch screen to be detected, respectively obtain the film thickness detection results corresponding to each current touch operation; based on the film thickness detection results corresponding to the multiple current touch operations, determine the film thickness detection result of the touch screen to be detected.

[0148] In an exemplary embodiment, the data determination module 1720 is further configured to perform: determining the validity of the current touch operation according to the second quantity of the current channel image data.

[0149] In an exemplary embodiment, the protective film detection device 1700 is further configured to perform: adjusting the response sensitivity of the touch screen to be detected according to the film thickness detection result of the touch screen to be detected; wherein the response sensitivity of the touch screen to be detected is used to characterize the sensitivity of the touch screen to be detected in responding to the user's touch operation.

[0150] In an exemplary embodiment, the protective film detection device 1700 is further configured to perform: determining a target response threshold corresponding to the film thickness detection result of the touch screen to be detected based on the correspondence between the film thickness type and the touch screen response threshold; and adjusting the response sensitivity of the touch screen to be detected based on the target response threshold.

[0151] In an exemplary embodiment, the protective film detection device 1700 is also configured to perform: obtaining multiple candidate sensitivity options corresponding to the film thickness detection results of the touch screen to be detected; in response to a selection operation of determining a target sensitivity option from the multiple candidate sensitivity options, adjusting the response sensitivity of the touch screen to be detected according to the target sensitivity option; wherein each candidate sensitivity option corresponds to a different touch screen response threshold.

[0152] The specific details of each module in the above device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0153] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0154] The exemplary embodiments of the present disclosure also provide an electronic device for the above method, which may be the above imaging device or server. Generally, the electronic device includes at least a processor and a memory, the memory is used to store executable instructions of the processor, and the processor is configured to execute the above method by executing the executable instructions.

[0155] Below Fig.18 Taking the mobile terminal 1800 in the example, the structure of the electronic device in the embodiment of the present disclosure is exemplarily described. It should be understood by those skilled in the art that in addition to the components specifically used for mobile purposes, Fig.18 The structure in the figure can also be applied to fixed type devices. In other embodiments, the mobile terminal 1800 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware. The interface connection relationship between the components is only shown schematically and does not constitute a structural limitation of the mobile terminal 1800. In other embodiments, the mobile terminal may also adopt the same Fig.18 Different interface connection methods, or a combination of multiple interface connection methods.

[0156] like Fig.18 As shown, the mobile terminal 1800 may specifically include: a processor 1801, a memory 1802, a bus 1803, a mobile communication module 1804, an antenna 1, a wireless communication module 1805, an antenna 2, a display screen 1806, a camera module 1807, an audio module 1808, a power module 1809, and a sensor module 1810.

[0157] Processor 1801 may include one or more processing units, for example: processor 1801 may include AP (Application Processor), modem processor, GPU (Graphics Processing Unit), ISP (Image Signal Processor), controller, encoder, decoder, DSP (Digital Signal Processor), baseband processor and / or NPU (Neural-Network Processing Unit), etc.

[0158] The encoder can encode (i.e. compress) an image or video to reduce the data size for easy storage or transmission. The decoder can decode (i.e. decompress) the encoded data of the image or video to restore the image or video data. The mobile terminal 1800 can support one or more encoders and decoders, such as: image formats such as JPEG (Joint Photographic Experts Group), PNG (Portable Network Graphics), BMP (Bitmap), and video formats such as MPEG (Moving Picture Experts Group) 1, MPEG10, H.1063, H.1064, and HEVC (High Efficiency Video Coding).

[0159] The processor 1801 may be connected to the memory 1802 or other components via a bus 1803 .

[0160] The memory 1802 may be used to store computer executable program codes, which may include instructions. The processor 1801 executes various functional applications and data processing of the mobile terminal 1800 by running the instructions stored in the memory 1802. The memory 1802 may also store application data, such as images, videos, and other files.

[0161] The communication function of the mobile terminal 1800 can be implemented by the mobile communication module 1804, antenna 1, wireless communication module 1805, antenna 2, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 1804 can provide 3G, 4G, 5G and other mobile communication solutions applied to the mobile terminal 1800. The wireless communication module 1805 can provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. applied to the mobile terminal 1800.

[0162] The display screen 1806 is used to implement display functions, such as displaying user interfaces, images, videos, etc., and displaying abnormal prompt information. The camera module 1807 is used to implement shooting functions, such as shooting images, videos, etc., to collect scene images. The audio module 1808 is used to implement audio functions, such as playing audio, collecting voice, etc. The power module 1809 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc. The sensor module 1810 may include one or more sensors to implement corresponding induction detection functions.

[0163] In addition, the exemplary embodiments of the present disclosure further provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.

[0164] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0165] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0166] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0167] Other embodiments of the present disclosure will be readily apparent to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be considered merely as exemplary, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A method for training a detection model, It is characterized in that include: In response to touch operations performed on the touch screen at different film thicknesses in a terminal operation scenario, channel image data are determined according to capacitance array data corresponding to the touch operations to obtain a plurality of channel image data of the terminal operation scenario; Determine training samples according to the plurality of channel image data of the plurality of terminal operation scenarios; The detection model is trained using the training samples.

2. The method according to claim 1, It is characterized in that For each of the touch operations, determining channel image data according to the capacitance array data corresponding to the touch operation includes: Acquire a plurality of target capacitance array data from the capacitance array data generated by the touch operation; Determine a plurality of touch image data according to the plurality of target capacitance array data; wherein the target capacitance array data corresponds to the touch image data one by one; The channel image data corresponding to the touch operation is determined according to the plurality of touch image data.

3. The method according to claim 2, It is characterized in that The acquiring a plurality of target capacitance array data from the capacitance array data generated by the touch operation includes: Based on a preset acquisition frame rate, the plurality of target capacitance array data are sequentially acquired from each capacitance array data generated by the touch operation along an operation track of the touch operation.

4. The method according to claim 2, It is characterized in that The determining the channel image data corresponding to the touch operation according to the plurality of touch image data comprises: Grouping the plurality of touch image data; Determine the channel image data of each group according to the touch image data in the group; The channel image data corresponding to the touch operation is obtained according to the channel image data of each group.

5. The method according to claim 4, It is characterized in that The grouping of the plurality of touch image data comprises: Acquire N touch image data in sequence as a group along the operation track of the touch operation according to the order in which the multiple touch image data are acquired, until the number of ungrouped touch image data in the multiple touch image data is less than N; Wherein, N is smaller than the number of the plurality of touch image data.

6. The method according to claim 4, It is characterized in that The number of touch image data in each group is N, and determining the channel image data of the group according to the touch image data in each group includes: The N touch image data in the group are merged to obtain the channel image data of the group; wherein the number of channels of the channel image data of the group is N.

7. The method according to any one of claims 1 to 6, It is characterized in that For each of the touch operations, after determining the channel image data according to the capacitance array data corresponding to the touch operation, the method further includes: Acquire a first quantity of channel image data corresponding to the touch operation; The validity of the touch operation is determined based on the first number; wherein the channel image data corresponding to the valid touch operation is used as a training sample.

8. A protective film detection method, It is characterized in that include: In response to a current touch operation on the touch screen to be detected, obtaining current capacitance array data; Determine current channel image data corresponding to the current touch operation based on the current capacitor array data; The current channel image data is input into a target detection model to obtain a film thickness detection result of the touch screen to be detected; wherein the target detection model is obtained by training the detection model using the detection model training method described in any one of claims 1 to 7.

9. The method according to claim 8, It is characterized in that The number of current channel image data corresponding to the current touch operation is multiple; The step of inputting the current channel image data into the target detection model to obtain the film thickness detection result of the touch screen to be detected includes: Inputting the current channel image data into the target detection model respectively to obtain the film thickness detection result corresponding to each current channel image data; The film thickness detection result of the touch screen to be detected is determined according to the film thickness detection result corresponding to each of the current channel image data.

10. The method according to claim 9, It is characterized in that The step of determining the film thickness detection result of the touch screen to be detected according to the film thickness detection result corresponding to each of the current channel image data comprises: Fusing the film thickness detection results corresponding to the current channel image data; The film thickness detection result of the touch screen to be detected is determined according to the fusion result.

11. The method according to claim 8, It is characterized in that The method further comprises: In response to multiple current touch operations on the touch screen to be detected, respectively obtain a film thickness detection result corresponding to each current touch operation; The film thickness detection result of the touch screen to be detected is determined according to the film thickness detection results corresponding to the multiple current touch operations.

12. The method according to claim 8, It is characterized in that Before inputting the current channel image data into the target detection model to obtain the film thickness detection result of the touch screen to be detected, the method further includes: The validity of the current touch operation is determined according to the second amount of the current channel image data.

13. The method according to claim 8, It is characterized in that After obtaining the film thickness detection result of the touch screen to be detected, the method further includes: Adjusting the response sensitivity of the touch screen to be detected according to the film thickness detection result of the touch screen to be detected; The response sensitivity of the touch screen to be detected is used to represent the sensitivity of the touch screen to be detected in responding to the user's touch operation.

14. The method according to claim 13, It is characterized in that The step of adjusting the response sensitivity of the touch screen to be detected according to the film thickness detection result of the touch screen to be detected includes: Determine the target response threshold corresponding to the film thickness detection result of the touch screen to be detected according to the corresponding relationship between the film thickness type and the touch screen response threshold; The response sensitivity of the touch screen to be detected is adjusted according to the target response threshold.

15. The method according to claim 13, It is characterized in that The step of adjusting the response sensitivity of the touch screen to be detected according to the film thickness detection result of the touch screen to be detected includes: Acquire multiple candidate sensitivity options corresponding to the film thickness detection result of the touch screen to be detected; In response to a selection operation of determining a target sensitivity option from the plurality of candidate sensitivity options, adjusting the response sensitivity of the touch screen to be detected according to the target sensitivity option; Wherein, each of the candidate sensitivity options corresponds to a different touch screen response threshold.

16. A training device for a detection model, It is characterized in that include: A data acquisition module, for responding to touch operations performed on the touch screen at different film thicknesses in a terminal operation scenario, and determining channel image data according to the capacitance array data corresponding to the touch operations, so as to obtain a plurality of channel image data of the terminal operation scenario; A sample determination module, used to determine training samples according to the plurality of channel image data of the plurality of terminal operation scenarios; The model training module is used to train the detection model using the training samples.

17. A protective film detection device, It is characterized in that include: A touch response module, used for acquiring current capacitance array data in response to a current touch operation on the touch screen to be detected; A data determination module, configured to determine current channel image data corresponding to the current touch operation based on the current capacitor array data; A detection module is used to input the current channel image data into a target detection model to obtain a film thickness detection result of the touch screen to be detected; wherein the target detection model is obtained by training the detection model using the detection model training method described in any one of claims 1 to 7.

18. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 15 by executing the executable instructions.

19. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.