CN-122027729-A - Detection method and electronic equipment
Abstract
The embodiment of the application provides a detection method and electronic equipment, and by the method provided by the embodiment of the application, the electronic equipment can timely detect the film tearing behavior of a user when the user tears a film and timely send out a prompt that the film cannot be torn.
Inventors
- CHEN KANG
- ZHENG YONG
- WEI GANGGANG
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251015
Claims (20)
- 1. A detection method, wherein the method is applied to an electronic device, the electronic device includes a screen, the screen includes a protective film, and the protective film is on an outer layer of the screen, the method includes: The electronic equipment receives a film tearing operation of a user, wherein the film tearing operation is the operation of the user on the protective film; in response to the film tearing operation, the electronic device generates a first alert for alerting a user that the protective film cannot be torn off.
- 2. The method of claim 1, wherein the electronic device receives a user's film tearing operation, specifically comprising: the electronic equipment acquires sensor data; the electronic device determines that the user is tearing the protective film based on the sensor data.
- 3. The method of claim 1, wherein the electronic device determining that the film tearing operation was received based on the sensor data comprises: The electronic equipment inputs the sensor data into an inference model, and the inference model outputs a first result, wherein the first result indicates that the electronic equipment receives the film tearing operation; the reasoning model is obtained by training a plurality of training samples, the plurality of training samples comprise a first training sample and a second training sample, the first training sample comprises a first input sample and a first output sample, the second training sample comprises a second input sample and a second output sample, the first output sample is a judgment result of a film tearing operation of a received user, the first input sample is sensor data acquired by the electronic equipment in the film tearing operation process of an actual user, the second output sample is a judgment result of a film tearing operation of a non-received user, and the first input sample is sensor data acquired by the electronic equipment in the film tearing operation process of the actual user.
- 4. A method according to any of claims 1-3, wherein a touch sensor is included in the screen, the protective film being over the touch sensor, the sensor data comprising capacitance values acquired by the touch sensor.
- 5. The method of claim 4, wherein the electronic device determining that the film tearing operation was received based on the sensor data comprises: And under the condition that the capacitance value acquired by the touch sensor is larger than a first threshold value, the electronic equipment determines that the protective film is torn by a user, and the touch sensor is further provided with a second threshold value, wherein the second threshold value is used for detecting whether the screen is touched or not by the touch sensor.
- 6. The method of claim 4, wherein the electronic device determining that the film tearing operation was received based on the sensor data comprises: and under the condition that the capacitance value of a first area in the screen acquired by the touch sensor is larger than a first threshold value, the electronic equipment determines that the user tears the protective film.
- 7. The method of any one of claims 5 or 6, wherein the electronic device further comprises a motion sensor, and wherein the sensor data further comprises motion data collected by the motion sensor.
- 8. The method of claim 7, wherein the electronic device determining that the film tearing operation was received based on the sensor data comprises: And under the condition that the capacitance value acquired by the touch sensor is larger than a first threshold value and the motion data acquired by the motion sensor is larger than a second threshold value, the electronic equipment determines that the user tears the protective film.
- 9. The method of claim 7, wherein the electronic device determining that the film tearing operation was received based on the sensor data comprises: And under the condition that the capacitance value of a first area in the screen acquired by the touch sensor is larger than a first threshold value and the motion data acquired by the motion sensor is larger than a second threshold value, the electronic equipment determines that the user tears the protective film.
- 10. The method of claim 7, wherein the electronic device determining that the film tearing operation was received based on the sensor data comprises: under the condition that the capacitance value acquired by the touch sensor is larger than a first threshold value, the electronic equipment triggers the motion sensor to acquire motion data; and under the condition that the motion data is larger than a second threshold value, the electronic equipment determines that the user tears the protective film.
- 11. The method according to claim 10, wherein the method further comprises: The touch sensor acquires a capacitance value at a first working frequency in a screen off state; And the electronic equipment sets the working frequency of the touch sensor to be a second working frequency under the condition that the capacitance value acquired by the touch sensor is larger than a first threshold value in the screen-off state, and the power consumption required by the touch sensor at the first working frequency is lower than the power consumption required by the touch sensor at the second working frequency.
- 12. The method of claim 11, wherein the screen of the electronic device remains off-screen when the electronic device sets the operating frequency of the touch sensor to the second operating frequency.
- 13. The method of claim 12, wherein after the touch sensor acquires the capacitance value at the first operating frequency in the off-screen state, the method further comprises: the electronic equipment receives the first event, the electronic equipment powers on the screen, and the screen is changed from a screen-off state to a screen-on state.
- 14. The method of claim 13, wherein the first event comprises a user operating a power key of the electronic device, the electronic device receiving a first notification message, an alarm in the electronic device ringing, the electronic device receiving an incoming call.
- 15. The method of any one of claims 6 or 9, wherein the first region is a corner region of the screen, the corner region of the screen comprising one or more of an upper left corner, an upper right corner, a lower left corner, a lower right corner, an upper bezel, a left bezel, a lower bezel, and a right bezel of the screen.
- 16. The method of any of claims 1-15, wherein the first reminder includes one or more of displaying reminder text in the screen, displaying an animated reminder in the screen, displaying a video reminder, a voice reminder, a ringer reminder, a vibration reminder in the screen.
- 17. An electronic device comprising a processor, a memory, a screen, the screen comprising a protective film, a touch screen, and a display screen, the memory being coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when read from the memory by the processor, cause the electronic device to perform the method of any of claims 1-16.
- 18. A chip system for application to an electronic device, the chip system comprising one or more processors configured to invoke computer instructions to cause performance of the method of any of claims 1-16.
- 19. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-16.
- 20. A computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-16.
Description
Detection method and electronic equipment Technical Field The present application relates to the field of terminals and electronic technologies, and in particular, to a detection method and an electronic device. Background Currently, some electronic devices (e.g., folding screen devices) have a layer of screen protective film thereon that is not tearable. Some users can tear off the screen protection film by mistake, so that the screen is damaged and cannot be used. Disclosure of Invention The application provides a detection method and electronic equipment, by the method, when a user tears a protective film, the film tearing behavior of the user can be detected in time, and the user is reminded that the protective film cannot be torn. In a first aspect, the application provides a detection method which can be applied to electronic equipment, the electronic equipment can comprise a screen, a protective film can be included in the screen, the method can comprise the steps that the electronic equipment receives film tearing operation of a user, the film tearing operation is operation of the user on the protective film, and in response to the film tearing operation, the electronic equipment generates a first prompt, and the first prompt is used for reminding the user that the protective film cannot be torn off. Through the method provided by the first aspect, when the user mistakenly tears off the protective film and performs film tearing operation, the electronic equipment can timely detect the film tearing behavior of the user and timely remind the user that the protective film cannot be torn off. In one possible implementation, the electronic device receiving a film tearing operation of a user may specifically include the electronic device acquiring sensor data in response to the film tearing operation, the electronic device determining that the user is tearing the protective film based on the sensor data, and the electronic device generating a first alert. In this way, the electronic device can determine that the user is tearing the protective film based on the sensor data. In a possible implementation mode, the electronic device determines that the film tearing operation is received based on sensor data, the electronic device inputs the sensor data into an inference model, the inference model outputs a first result, the first result indicates that the electronic device receives the film tearing operation, the inference model is trained by a plurality of training samples, the plurality of training samples comprise a first training sample and a second training sample, the first training sample comprises a first input sample and a first output sample, the second training sample comprises a second input sample and a second output sample, the first output sample is a judgment result of the film tearing operation of a user, the first input sample is sensor data acquired by the electronic device in the film tearing operation process of an actual user, the second output sample is a judgment result of the film tearing operation of the user, and the first input sample is sensor data acquired by the electronic device in the film tearing operation process of the actual user. The inference model may be a neural network (e.g., deep neural network, convolutional neural network, recurrent neural network), and embodiments of the present application are not limited in particular to this inference model. Thus, the electronic equipment can accurately identify the dyestripping behavior of the user through the inference model. In one possible implementation, a touch sensor may be included in the screen, and the sensor data includes capacitance values acquired by the touch sensor. When the protective film is torn off by the fingers of the user or by the object, the fingers or the object of the user can contact the screen, so that the capacitance value acquired by the touch sensor can be changed. Thus, the electronic device can determine that the user is tearing the protective film based on the capacitance value acquired by the touch sensor. In one possible implementation, the electronic device determining that the user is tearing the protective film based on the sensor data may include determining, by the electronic device, that the user is tearing the protective film if the capacitance value acquired by the touch sensor is greater than a first threshold value. In this way, the electronic device can judge whether the user tears the protective film through whether the capacitance value is larger than the first threshold value. If the capacitance value acquired by the touch sensor is smaller than or equal to the first threshold value, determining that the user is tearing the protective film. In one possible implementation, the electronic device determining that the user is tearing the protective film based on the sensor data may include the electronic device determining that the user is tearing the protective film if a capacitanc