Screen film pasting detection method, terminal, storage medium and program product
By using an infrared detector and dye together, the system can detect whether a screen protector is applied, solving the problem that brightness adjustment is affected after a screen protector is applied. This enables seamless detection and function adjustment, improving the user experience.
Patent Information
- Application Number
- CN202410619597.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2025-11-25
AI Technical Summary
After a screen protector is applied, the automatic brightness adjustment function of the terminal screen is affected, resulting in a screen brightness that is not suitable for human eyes to view. A solution is needed to detect whether a terminal screen is covered with a screen protector.
An infrared detector is used to detect whether a target protective film is affixed to the screen. The presence of a film is determined by detecting the intensity of infrared light reflection. The use of multiple infrared emitters and dyes improves the accuracy and flexibility of the detection.
It enables accurate detection of screen protector application without user intervention, improving user experience. It also adjusts related functions based on the type of screen protector, reducing the impact of screen protector on screen brightness and touch sensitivity.
Smart Images

Figure CN121008331A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and more particularly to a screen protector detection method, terminal, storage medium, and program product. Background Technology
[0002] To meet diverse user needs, various types of screen protectors have emerged in recent years. These screen protectors not only protect the device's screen but also offer unique functions. For example, privacy screen protectors enhance the security of screen content, matte screen protectors alter the screen's feel, and blue light filters filter emitted blue light from the screen.
[0003] However, applying a screen protector to a device may affect some functions. For example, mobile phones typically adjust screen brightness automatically based on ambient light intensity. Since some screen protectors block light, applying a screen protector can affect the light intensity detection, thus impacting the automatic brightness adjustment function and making the adjusted screen brightness unsuitable for human viewing.
[0004] In view of the above, a screen protector detection solution is needed to detect whether the terminal screen has a screen protector, so as to facilitate specific actions based on the detection results. Summary of the Invention
[0005] In view of this, this application provides a screen protector detection method, a terminal, a storage medium, and a program product to detect whether the screen of the terminal has a screen protector.
[0006] In a first aspect, embodiments of this application provide a screen protector detection method, applied to a terminal, the method comprising:
[0007] Obtain the first detection value of the infrared light emitted by the first infrared emitter by the infrared light detector;
[0008] Based on the first detection report value, it is detected whether the screen is pasted with a target protective film, and a film pasting detection result is obtained. The target protective film has a first dye that can reflect infrared light printed on the first area of the first infrared emitter on the first film surface that contacts the screen.
[0009] It can be seen from the above that when detecting whether the screen is pasted with the film by using the scheme provided in the embodiments of the present application, a first detection value of the infrared light detector for the infrared light emitted by the first infrared emitter can be obtained, and then whether the screen is pasted with the target protective film can be detected based on the first detection value, and a pasting film detection result is obtained. The first region of the first infrared emitter is printed with the first dye capable of reflecting infrared light on the first film surface of the target protective film contacting the screen. In this way, if the screen is pasted with the target protective film, the infrared light emitted by the first infrared emitter will irradiate the first region after passing through the screen, the first dye printed on the first region reflects the infrared light, and reflected infrared light is generated, so that the intensity of the reflected infrared light detected by the infrared light detector is high, that is, the first detection value is large; if the screen is not pasted with the target protective film, the infrared light emitted by the first infrared emitter will directly pass through the screen, and the infrared light may not contact external objects at a long distance, so that the intensity of the reflected infrared light reflected by the external objects is extremely low, so that the intensity of the reflected infrared light detected by the infrared light detector is extremely low, that is, the first detection value is small. It can be seen that the size of the first detection value is closely related to whether the screen is pasted with the film, and then whether the screen is pasted with the target protective film can be detected more directly and accurately based on the first detection value.
[0010] In addition, by using the scheme provided in the embodiments of the present application, the terminal can actively detect whether the screen is pasted with the film, without the user actively reporting whether the film is pasted through the user interface provided by the terminal, thereby bringing a more humanized and intelligent experience to the user.
[0011] In an embodiment of the present application, the detecting whether the screen is pasted with the target protective film based on the first detection value comprises:
[0012] calculating a first difference value between the first detection value and a first reference value, wherein the first reference value is a detection value of the infrared light detector for the infrared light emitted by the first infrared emitter in a state that the screen of the terminal is not pasted with the film and is not blocked;
[0013] if the first difference value is greater than a first preset threshold, it is determined that the screen is pasted with the target protective film;
[0014] otherwise, it is determined that the screen is pasted with the target protective film.
[0015] It can be seen that, in the embodiment, the first reference value is the value obtained by the infrared detector in the state that the screen is not pasted with the film and is not blocked. Therefore, if the screen is not pasted with the film, the first detection value obtained by the infrared detector should be close to the first reference value, that is, the first difference between the first detection value and the first reference value is small. If the screen is pasted with the film, the first detection value should be greatly different from the first reference value, that is, the first difference between the first detection value and the first reference value is large. Therefore, the size of the first difference can be used to conveniently and accurately determine whether the screen is pasted with the film.
[0016] In an embodiment of the present application, the second dye capable of reflecting infrared light is printed on the second region of the first film surface covering the second infrared emitter, and the infrared light reflectivity of the second dye is different from that of the first dye.
[0017] The method further includes:
[0018] obtaining a second detection value of the infrared light detector for the infrared light emitted by the second infrared emitter;
[0019] detecting whether the screen is pasted with the target protective film based on the first detection value and the second detection value.
[0020] As can be seen from the above, in the embodiment, not only is the first dye capable of reflecting infrared light printed on the first region of the first film surface covering the first infrared emitter, but also the second dye capable of reflecting infrared light is printed on the second region of the first film surface covering the second infrared emitter. In this way, when performing the film pasting detection, not only is the first detection value of the infrared light detector for the infrared light emitted by the first infrared emitter considered, but also the second detection value of the infrared light detector for the infrared light emitted by the second infrared emitter is further considered. In this way, the film pasting detection can be performed more comprehensively and accurately based on the two detection values, and the accuracy of the film pasting detection result is further improved.
[0021] In an embodiment of the present application, the method further includes:
[0022] calculating a second difference between the first detection value and the second detection value;
[0023] detecting whether the screen is pasted with the target protective film based on the second difference.
[0024] The second difference is closely related to whether the screen is pasted with the film, and the screen can be conveniently and accurately detected based on the second difference.
[0025] In one embodiment of the present application, the detecting whether the screen is pasted with the target protective film based on the second difference value comprises:
[0026] calculating a third difference value between the second difference value and a reference difference value, wherein the reference difference value is a difference between a detection report value of the infrared light detector for the infrared light emitted by the first infrared emitter and a detection report value of the infrared light detector for the infrared light emitted by the second infrared emitter in a state that the screen of the terminal is not pasted with the film;
[0027] if the third difference value is greater than a second preset threshold value, it is determined that the screen is pasted with the target protective film;
[0028] otherwise, it is determined that the screen is not pasted with the target protective film.
[0029] In the state that the screen is not pasted with the film, the difference between the detection report values of the infrared light detector for the first infrared emitter and the second infrared emitter is related to the distances between the first infrared emitter and the second infrared emitter and the infrared light detector and the powers of the first infrared emitter and the second infrared emitter, and the value is small, that is, the reference difference value is small. If the screen is not pasted with the film, the second difference value between the first detection report value and the second detection report value obtained by the infrared detector should tend to the reference difference value, that is, the third difference value is small. If the screen is pasted with the film, because the dyes printed in the first area and the second area are special dyes capable of reflecting infrared light, and the infrared reflectivity of the two dyes is different, the difference between the detection report values of the infrared light detector for the infrared light emitted by the first infrared emitter and the second infrared emitter is large, that is, the second difference value is large, so that the third difference value between the second difference value and the reference difference value is large. Therefore, the size of the third difference value is closely related to whether the screen is pasted with the film, and whether the screen is pasted with the film can be determined based on the size of the third difference value.
[0030] In addition, because the difference between the detection report values of the infrared light detector for the first infrared emitter and the second infrared emitter is related to the distances between the first infrared emitter and the second infrared emitter and the infrared light detector and the powers of the first infrared emitter and the second infrared emitter, and is irrelevant to whether the screen is blocked, the size of the second difference value is relatively constant regardless of whether the screen is blocked, so that the third difference value between the second difference value and the reference difference value is large regardless of whether the screen is blocked, and whether the screen is pasted with the film can still be detected according to the size of the third difference value. It can be seen that the scheme provided in the embodiment will not be affected by the screen blocking on the detection result when detecting whether the screen is pasted with the film, that is, there is no limitation on the environment in which the terminal is located, and the flexibility and accuracy of the scheme are improved.
[0031] In one embodiment of the present application,
[0032] The third region outside the display region of the screen on the first film surface is printed with a third dye capable of absorbing visible light and transmitting infrared light, wherein the first dye and the second dye cover the third dye, and the color of the third dye is black.
[0033] In this way, after the target protective film is pasted on the screen, the color of the third region on the target protective film corresponding to the periphery of the screen is black to the human eye, and the colors of the first dye printed on the first region and the second dye printed on the second region are imperceptible to the user, thereby improving the aesthetic level of the screen after the film is pasted and not affecting the experience of the user when watching the screen. Moreover, since the third dye can transmit infrared light, the third dye will not affect the detection of the infrared detector on the infrared light reflected by the first dye and the infrared light reflected by the second dye.
[0034] In an embodiment of the present application, a fourth region on the first film surface is printed with a fourth dye capable of absorbing visible light and infrared light, the first region and the second region are printed with the third dye, and the first dye and the second dye cover the fourth dye, wherein the fourth region is a region in the third region other than the first region and the second region, and the color of the fourth dye is black.
[0035] In this way, after the target protective film is pasted on the screen, the color of the third region on the target protective film corresponding to the periphery of the screen is black to the human eye, and the colors of the first dye printed on the first region and the second dye printed on the second region are imperceptible to the user, thereby improving the aesthetic level of the screen after the film is pasted and not affecting the experience of the user when watching the screen. Moreover, since the third dye can transmit infrared light, the third dye will not affect the detection of the infrared detector on the infrared light reflected by the first dye and the infrared light reflected by the second dye. In addition, in this embodiment, only the fourth region of the target protective film needs to be printed with the third dye with high cost, and the third dye does not need to be printed on all the third regions, thereby reducing the cost.
[0036] In an embodiment of the present application, before the first detection value of the infrared light detector for the infrared light emitted by the first infrared emitter is obtained, the method further comprises:
[0037] The first infrared emitter, the second infrared emitter, and the third infrared emitter are controlled to emit infrared light in a preset order and emission mode, wherein the emission mode is that after one infrared emitter stops emitting infrared light, another infrared emitter starts emitting infrared light.
[0038] The method further comprises:
[0039] The third detection value of the infrared light detector for the infrared light emitted by the third infrared emitter is obtained.
[0040] According to the third detection value, it is detected whether the screen is blocked.
[0041] The terminal can detect whether the screen is blocked according to the detection result of the infrared light detector on the infrared light emitted by the infrared emitter. Since the third detection value is not affected by the protective film, the screen can be accurately detected according to the third detection value.
[0042] In an embodiment of the present application, a third region of the first film surface, which is outside the display region of the screen, is printed with a third dye capable of absorbing visible light and transmitting infrared light, wherein the color of the third dye is black.
[0043] In this way, after the target protective film is pasted on the screen, the color of the third region of the target protective film corresponding to the periphery of the screen is black to the human eye, and the color of the first dye printed on the first region is not perceived by the user, thereby improving the aesthetic level of the screen after pasting the film and not affecting the user's experience when watching the screen. Moreover, since the third dye can transmit infrared light, the third dye will not affect the detection of infrared light reflected by the first dye by the infrared detector.
[0044] In an embodiment of the present application, a fifth region of the first film surface is printed with a fourth dye capable of absorbing visible light and infrared light, the first region is printed with the third dye, and the first dye covers the third dye, wherein the fifth region is a region in the third region other than the first region, and the color of the fourth dye is black.
[0045] In this way, after the target protective film is pasted on the screen, the color of the third region of the target protective film corresponding to the periphery of the screen is black to the human eye, and the color of the first dye printed on the first region is not perceived by the user, thereby improving the aesthetic level of the screen after pasting the film and not affecting the user's experience when watching the screen. Moreover, since the third dye can transmit infrared light, the third dye will not affect the detection of infrared light reflected by the first dye by the infrared detector. In addition, in this embodiment, only the third dye with high printing cost needs to be printed on the fifth region of the target protective film, and the third dye does not need to be printed on all third regions, thereby reducing the cost.
[0046] In an embodiment of the present application, before the first detection value of the infrared light detector on the infrared light emitted by the first infrared emitter is obtained, the method further comprises:
[0047] controlling the first infrared emitter and the fourth infrared emitter to emit infrared light according to a preset order and a preset emission mode, wherein the emission mode is that after one infrared emitter stops emitting infrared light, another infrared emitter starts emitting infrared light;
[0048] The method further includes:
[0049] obtaining a fourth detection value of the infrared light detector for the infrared light emitted by the fourth infrared emitter;
[0050] detecting whether the screen is blocked according to the fourth detection value.
[0051] The terminal can detect whether the screen is blocked according to the detection result of the infrared light detector for the infrared light emitted by the infrared emitter. Since the fourth detection value is not affected by the film, the screen can be accurately detected according to the fourth detection value.
[0052] In an embodiment of the present application, the method further includes:
[0053] obtaining a first light intensity detection value of the front camera for ambient light, wherein the target protective film is provided with an opening, and the area where the opening is located covers the front camera;
[0054] obtaining a second light intensity detection value of the ambient light sensor for ambient light;
[0055] verifying the film detection result based on the first light intensity detection value and the second light intensity detection value.
[0056] Since the target protective film is provided with an opening, and the area where the opening is located covers the front camera, the first light intensity detection value of the front camera for ambient light is not affected by the film. The ambient light sensor is arranged under the screen, so the second light intensity detection value of the ambient light sensor for ambient light is affected by the film. In this way, the difference between the first light intensity detection value and the second light intensity detection value can reflect whether the screen is pasted with a film, so the film detection result can be verified according to the difference between the first light intensity detection value and the second light intensity detection value, and the accuracy of the film detection can be further improved according to the verification result.
[0057] In an embodiment of the present application, the verification of the film detection result based on the first light intensity detection value and the second light intensity detection value includes:
[0058] calculating a fourth difference value between the first light intensity detection value and the second light intensity detection value;
[0059] If the fourth difference is greater than a third preset threshold, and the screen film detection result indicates that the screen is pasted with the target protective film, it is determined that the screen film detection result is correct, otherwise it is determined that the screen film detection result is incorrect.
[0060] If the fourth difference is less than or equal to the third preset threshold, and the screen film detection result indicates that the screen is not pasted with the target protective film, it is determined that the screen film detection result is correct, otherwise it is determined that the screen film detection result is incorrect.
[0061] In the state without pasting the film, the first light intensity detection value tends to the second light intensity detection value, that is, the fourth difference is small; in the state of pasting the film, the second light intensity detection value will be affected by the pasting film, and the second light intensity detection value will be greater than the first light intensity detection value, that is, the fourth difference is large. It can be seen that the fourth difference can accurately reflect whether the screen is pasted with the film, and therefore, the screen film detection result can be verified according to the fourth difference, and the accuracy of the film detection can be further improved according to the verification result.
[0062] In an embodiment of the present application, the method further comprises:
[0063] In the case that the screen film detection result indicates that the screen is pasted with the target protective film, a strategy of adjusting the function to be adjusted is determined;
[0064] The function to be adjusted is adjusted according to the determined strategy.
[0065] As can be seen from the above, in the case that the screen film detection result indicates that the screen is pasted with the target protective film, a strategy of adjusting the function to be adjusted can be determined, and the function to be adjusted can be adjusted according to the determined strategy, which can reduce the impact of the film on the terminal function to be adjusted and improve the user experience.
[0066] In an embodiment of the present application, the strategy of adjusting the function to be adjusted comprises:
[0067] Based on the first detection value, the protective film type of the target protective film is determined;
[0068] According to the protective film type, a strategy of adjusting the function to be adjusted corresponding to the protective film type is selected from the preset adjustment strategies.
[0069] In this way, different adjustment strategies can be used to adjust the function to be adjusted according to the different protective film types, improving the flexibility and applicability of the scheme.
[0070] In an embodiment of the present application, the strategy of adjusting the function to be adjusted corresponding to the protective film type is selected from the preset adjustment strategies according to the protective film type, comprising:
[0071] If the protective film type is the type that has a blocking effect on light, a strategy of adjusting the screen brightness adjustment function and / or a strategy of adjusting the screen shielding function are selected from the preset adjustment strategies.
[0072] If the protective film type is the type that has a changing effect on the screen touch feeling, a strategy of adjusting the screen touch sensitivity adjustment function is selected from the preset adjustment strategies.
[0073] In this way, in the case where the protective film type is the type that has a blocking effect on light, the strategy of adjusting the screen brightness adjustment function and / or the strategy of adjusting the screen shielding function can be used to adjust the function, so that the influence of the protective film on the screen brightness adjustment function and / or the screen shielding detection function can be reduced, the normal work of the screen brightness adjustment function and / or the screen shielding detection function is ensured, and the user experience is improved.
[0074] In addition, in the case where the protective film type is the type that has a changing effect on the screen touch feeling, the strategy of adjusting the screen touch sensitivity adjustment function can be used to adjust the function, so that the influence of the protective film on the screen touch sensitivity can be reduced, the accuracy when the user touches the screen is improved, and the user experience is improved.
[0075] In a second aspect, an embodiment of the present application provides a terminal, comprising:
[0076] one or more processors and a memory;
[0077] The memory is coupled with the one or more processors, and the memory is configured to store computer program codes, the computer program codes comprising computer instructions, and the one or more processors are configured to invoke the computer instructions to enable the terminal to execute the method in the first aspect.
[0078] In a third aspect, an embodiment of the present application provides a computer readable storage medium, comprising a computer program, when the computer program is executed on a terminal, the computer program enables the terminal to execute the method in the first aspect.
[0079] In a fourth aspect, an embodiment of the present application provides a computer program product, the computer program product comprises executable instructions, when the executable instructions are executed on a terminal, the executable instructions enable the terminal to execute the method in the first aspect.
[0080] In a fifth aspect, an embodiment of the present application provides a chip system applied to a terminal, the chip system comprising one or more processors, the processor being configured to invoke computer instructions to enable the terminal to input data into the chip system and perform the method of the first aspect to detect a screen film.
[0081] The beneficial effects of the solutions provided by the embodiments of the second aspect to the fifth aspect can be referred to the beneficial effects of the solutions provided by the embodiments of the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0082] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0083] Figure 1 A structural schematic diagram of a terminal provided by an embodiment of the present application is shown in FIG. 1.
[0084] Figure 2 A software structural block diagram of a terminal provided by an embodiment of the present application is shown in FIG. 2.
[0085] Figure 3a A schematic diagram of a privacy film transmittance curve provided by an embodiment of the present application is shown in FIG. 3.
[0086] Figure 3b A schematic diagram of a privacy direction provided by an embodiment of the present application is shown in FIG. 4.
[0087] Figure 3c A screen brightness contrast schematic diagram provided by an embodiment of the present application is shown in FIG. 5.
[0088] Figure 3d A schematic diagram of a proximity detection distance provided by an embodiment of the present application is shown in FIG. 6.
[0089] Figure 4a A schematic diagram of a transmitter and detector provided by an embodiment of the present application is shown in FIG. 7.
[0090] Figure 4b A schematic diagram of a first area provided by an embodiment of the present application is shown in FIG. 8.
[0091] Figure 5 A flowchart of a first screen film detection method provided by an embodiment of the present application is shown in FIG. 9.
[0092] Figure 6 A first dye printing schematic diagram provided by an embodiment of the present application is shown in FIG. 10.
[0093] Figure 7aA second dye printing schematic diagram provided for the embodiment of the present application;
[0094] Figure 7b A post-film viewing effect schematic diagram provided for the embodiment of the present application;
[0095] Figure 7c A third dye printing schematic diagram provided for the embodiment of the present application;
[0096] Figure 8 A first control command timing diagram provided for the embodiment of the present application;
[0097] Figure 9 A second area schematic diagram provided for the embodiment of the present application;
[0098] Figure 10 A fourth dye printing schematic diagram provided for the embodiment of the present application;
[0099] Figure 11 A second screen film detection method flowchart provided for the embodiment of the present application;
[0100] Figure 12a A fifth dye printing schematic diagram provided for the embodiment of the present application;
[0101] Figure 12b A sixth dye printing schematic diagram provided for the embodiment of the present application;
[0102] Figure 13 A second control command timing diagram provided for the embodiment of the present application;
[0103] Figure 14 A light intensity detection flowchart provided for the embodiment of the present application;
[0104] Figure 15 A chip system structure schematic diagram provided for the embodiment of the present application. DETAILED DESCRIPTION
[0105] In order to better understand the technical solutions of the present application, the embodiments of the present application will be described in detail below in conjunction with the drawings.
[0106] In order to facilitate clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the same items or similar items with basically the same functions and effects are distinguished by using "first", "second", etc. For example, the first instruction and the second instruction are to distinguish different user instructions, and do not limit the order. Those skilled in the art can understand that "first", "second", etc. do not limit the quantity and execution order, and "first", "second", etc. also do not necessarily mean different.
[0107] It should be noted that the terms "exemplary" or "for example" are used herein to mean "an example of" or "an example," which is not necessarily to "preferred" or "advantageous over other examples." Rather, these terms mean to present concepts in a concrete manner.
[0108] The scheme provided by the embodiments of the present application can be applied to any terminal with a display screen and proximity light detection function, such as a mobile phone, a tablet computer, a desktop computer, a smart watch, a wearable electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a vehicle-mounted device, a smart car, a robot, and the like.
[0109] Exemplarily, Figure 1 A structural schematic diagram of the terminal 100 is shown. The terminal 100 can include a processor 110, a display screen 120, a camera 130, an internal memory 140, a subscriber identification module (SIM) card interface 150, a universal serial bus (USB) interface 160, a charging management module 170, a battery management module 171, a battery 172, a sensor module 180, a mobile communication module 190, a wireless communication module 200, an antenna 1, and an antenna 2, and the like. The sensor module 180 can include a pressure sensor 180A, an infrared emitter 180B, an infrared light detector 180C, a touch sensor 180D, an ambient light sensor 180E, and the like.
[0110] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the terminal 100. In other embodiments of the present application, the terminal 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0111] The processor 110 can include one or more processing units, e.g., the processor 110 can include a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent components or integrated in one or more processors. In some embodiments, the terminal 100 can also include one or more processors 110. Among them, the controller can generate operation control signals according to instruction operation codes and timing signals, complete the control of fetching instructions and executing instructions. In other embodiments, the processor 110 can also be provided with a memory for storing instructions and data. Exemplarily, the memory in the processor 110 can be a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. In this way, repeated access is avoided, the waiting time of the processor 110 is reduced, and thus the efficiency of the terminal 100 in processing data or executing instructions is improved.
[0112] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include Inter-Integrated Circuit (I2C) interfaces, Inter-Integrated Circuit Sound (I2S) interfaces, Pulse Code Modulation (PCM) interfaces, Universal Asynchronous Receiver / Transmitter (UART) interfaces, Mobile Industry Processor Interface (MIPI), General-Purpose Input / Output (GPIO) interfaces, SIM card interfaces, and / or USB interfaces, etc. The USB interface 160 is an interface that conforms to the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 160 can be used to connect a charger to charge the terminal 100, and can also be used to transmit data between the terminal 100 and a peripheral device. The USB interface 160 can also be used to connect a headset to play audio through the headset.
[0113] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is used for illustrative description, and does not constitute a structural limitation of the terminal 100. In some other embodiments of the present application, the terminal 100 can also use different interface connection modes or combinations of multiple interface connection modes in the above embodiments.
[0114] The wireless communication function of the terminal 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 190, the wireless communication module 200, the modem processor, and the baseband processor, etc.
[0115] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antennas can be used in combination with tuning switches.
[0116] The terminal 100 realizes the display function through the GPU, the display screen 120, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 120 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.
[0117] The display screen 120 is configured to display images, videos, and the like. The display screen 120 includes a display panel. The display panel can be a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), an Active-Matrix Organic Light Emitting Diode (AMOLED), a Flex Light-Emitting Diode (FLED), a Miniled, a Micro Led, a Micro-oLed, a Quantum Dot Light Emitting Diodes (QLED), or the like. In some embodiments, the terminal 100 can include one or more display screens 120.
[0118] In some embodiments of the present application, when the display panel is made of OLED, AMOLED, FLED, or the like, the display screen 120 in the above description can be bent. Here, the display screen 120 can be bent at any part to any angle and can be kept at the angle, for example, the display screen 120 can be folded left and right from the middle. It can also be folded up and down from the middle. Figure 1
[0119] The display screen 120 of the terminal 100 can be a flexible screen. At present, the flexible screen is attracting much attention due to its unique characteristics and great potential. Compared with the traditional screen, the flexible screen has the characteristics of strong flexibility and bendability, and can provide a new interaction mode based on the bendable characteristics for users and meet more needs of users for the terminal. For the terminal with a foldable display screen, the foldable display screen on the terminal can be switched between the small screen in the folded form and the large screen in the unfolded form at any time. Therefore, the user uses the split screen function on the terminal with the foldable display screen more and more frequently.
[0120] The terminal 100 can realize the photographing function through an ISP, a camera 130, a video codec, a GPU, a display screen 120, and an application processor, and the like, wherein the camera 130 includes a front camera and a rear camera.
[0121] ISP is used to process the data fed back by the camera 130. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and conversion into a visible image. The ISP can optimize the noise, brightness and color of the image through algorithms, and the ISP can also optimize the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be arranged in the camera 130.
[0122] The camera 130 is used to take photos or videos. Objects generate optical images through lenses and project them onto photosensitive elements. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard Red Green Blue (RGB), YUV, etc. format image signal. In some embodiments, the terminal 100 can include one or N cameras 130, where N is a positive integer greater than 1.
[0123] The digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0124] The video codec is used to compress or decompress digital video. The terminal 100 can support one or more video codecs. In this way, the terminal 100 can play or record videos in multiple encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, and MPEG 4.
[0125] The NPU is a neural network (NN) computing processor that learns from the structure of biological neural networks, such as the transmission mode between human brain neurons, and can quickly process input information and continuously self-learn. Through the NPU, the terminal 100 can realize intelligent cognition and other applications, such as image recognition, face recognition, voice recognition, and text understanding.
[0126] The internal memory 140 can be used to store one or more computer programs including instructions. The processor 110 can cause the terminal 100 to perform the screen film detection method provided in some embodiments of the present application, various applications and data processing, etc. by running the above-mentioned instructions stored in the internal memory 140. The internal memory 140 can include a program storage area and a data storage area. The program storage area can store an operating system, and can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data created during the use of the terminal 100 (such as photos, contacts, etc.). In addition, the internal memory 140 can include a high-speed random access memory, and can also include a non-volatile memory such as one or more disk storage components, flash memory components, universal flash storage (UFS), etc. In some embodiments, the processor 110 can cause the terminal 100 to perform the screen film detection method provided in the embodiments of the present application and other applications and data processing by running the instructions stored in the internal memory 140 and / or the instructions stored in the memory disposed in the processor 110.
[0127] The internal memory 140 can be used to store the related programs of the screen film detection method provided in the embodiments of the present application, and the processor 110 can be used to call the related programs of the screen film detection method stored in the internal memory 140 when displaying information, and execute the screen film detection method of the embodiments of the present application.
[0128] The sensor module 180 can include a pressure sensor 180A, an infrared emitter 180B, an infrared light detector 180C, a touch sensor 180D, an ambient light sensor 180E, etc.
[0129] The pressure sensor 180A is configured to sense a pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display 120. The pressure sensor 180A can be of various types, such as a resistive pressure sensor, an inductive pressure sensor, or a capacitive pressure sensor. The capacitive pressure sensor can include at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes, and the terminal 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is applied to the display 120, the terminal 100 detects the touch operation based on the pressure sensor 180A. The terminal 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed; when a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
[0130] The infrared emitter 180B is configured to emit infrared light, and the infrared detector 180C is configured to detect the energy of infrared light reflected by the infrared light emitted by the infrared emitter. Details are described later, and will not be described here.
[0131] The touch sensor 180D, also referred to as a touch device. The touch sensor 180D can be disposed on the display 120, and the touch sensor 180D and the display 120 form a touch screen, also referred to as a touch screen. The touch sensor 180D is configured to detect a touch operation applied thereto or in the vicinity thereof. The touch sensor 180D can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display 120. In other embodiments, the touch sensor 180D can also be disposed on the surface of the terminal 100 and disposed at a different position from the display 120.
[0132] The ambient light sensor 180E is configured to sense the brightness of ambient light. The terminal 100 can adaptively adjust the brightness of the display 120 based on the sensed brightness of the ambient light. The ambient light sensor 180E can also be used to automatically adjust the white balance when shooting. The ambient light sensor 180E can also transmit information about the environment in which the device is located to the GPU.
[0133] The ambient light sensor 180E is also used to obtain the brightness, light ratio, color temperature, etc. of the environment in which the camera 130 collects images.
[0134] Figure 2A software structure diagram of a terminal applicable to embodiments of the present application. The software system of the terminal can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
[0135] The layered architecture divides the software system of the terminal into several layers, each of which has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software system can be divided into five layers, namely, an applications layer, an application framework layer, a system library, a hardware abstraction layer (HAL), and a kernel layer.
[0136] The applications layer can include a series of application packages, and the applications layer runs the applications by calling the application programming interfaces (APIs) provided by the application framework layer. As shown in Figure 2 the application packages can include camera, browser, gallery, music, and the like. It can be understood that each of the above-mentioned application ports can be used to receive data.
[0137] The application framework layer provides APIs and programming frameworks for the applications of the applications layer. The application framework layer includes some pre-defined functions. As shown in Figure 2 the application framework layer can include a window manager, a content provider, a view system, a resource manager, a notification manager, and a dynamic host configuration protocol (DHCP) module, and the like.
[0138] The system library can include a plurality of functional modules, such as a surface manager, a three-dimensional graphics processing library, a two-dimensional graphics engine, and a file library, and the like.
[0139] The hardware abstraction layer can include a plurality of library modules, such as a display library module and a motor library module, and the like. The terminal system can load the corresponding library modules for the device hardware, thereby achieving the purpose of the application framework layer accessing the device hardware, for example, the terminal system can load the corresponding library modules for the camera, thereby achieving the purpose of the camera application accessing the camera, and the like.
[0140] The kernel layer is a layer between hardware and software. The kernel layer is deployed with an operating system for driving hardware so that the hardware works. The kernel layer contains at least display driver, camera driver, sensor driver, motor driver, etc., which are not limited by the embodiments of the present application. Understandably, the display driver, the camera driver, the sensor driver, and the motor driver can be regarded as a driving node. Each of the above driving nodes includes an interface that can be used to receive data.
[0141] The operating system deployed in the kernel layer of the terminal can create the screen film detection process at startup, and the screen film detection process can execute the screen film detection scheme provided by the embodiments of the present application according to a certain period.
[0142] First, the application scenario of the scheme provided by the embodiments of the present application is introduced.
[0143] The application scenario of the scheme provided by the embodiments of the present application is a scenario in which the terminal actively detects whether the screen is pasted with a target protective film.
[0144] Because some screen protective films are specially treated, for example, have a certain blocking effect on light or have a changing effect on screen touch, after the user pastes a film on the screen of the terminal, some functions can be affected.
[0145] Next, the influence of the film on the terminal function is exemplarily illustrated by taking a privacy film as an example.
[0146] Referring to FIG. 1, a schematic diagram of a privacy film transmittance curve is provided for the embodiments of the present application. Figure 3a
[0147] The horizontal axis of the coordinate represents the frequency of light, and the unit is hertz (Hz). The vertical axis of the coordinate represents the light transmittance of the privacy film.
[0148] It can be seen that the privacy film has different degrees of blocking effect on light with a frequency between 400 Hz and 988 Hz.
[0149] Referring to FIG. 2, a schematic diagram of a privacy direction is provided for the embodiments of the present application, reflecting the privacy effect of the privacy film in the short side direction of the mobile phone. Figure 3b
[0150] The horizontal axis of the coordinate represents the incident angle of light irradiated to the privacy film, and the unit is degree. The vertical axis of the coordinate represents the proportion of the light energy received by the screen relative to the light energy received by the screen when the light is vertically incident.
[0151] It can be seen that the light transmittance of the privacy film sharply decreases when the incident light angle is greater than 40 degrees or less than -40 degrees, i.e. the ratio of the light energy received by the screen to the light energy received by the screen when the light is vertically incident decreases extremely, in other words, the light energy received by the screen sharply attenuates when the incident light angle is greater than 40 degrees or less than -40 degrees. Thus, under a large enough area light source, the light intensity received after the film is pasted is less than the light intensity before the film is pasted multiplied by the light transmittance of the privacy film. Thus, for the human eye, the screen content is almost invisible when the screen content is viewed from the above angle.
[0152] The influence of the privacy film on the screen brightness automatic adjustment function is described below.
[0153] Referring to Table 1 below, the difference between the light intensity reported by the environmental light sensor arranged in the terminal and the actual light intensity when the screen is pasted with the privacy film and when the screen is not pasted with the privacy film is reflected:
[0154] Table 1
[0155]
[0156] In Table 1, the unit of the light intensity is lux (LUX). It can be directly seen from Table 1 that in the environment with different color temperatures and almost the same light intensity, the error between the light intensity reported by the terminal and the actual light intensity is less than 20% when the screen is not pasted with the privacy film, and the error is small; when the screen is pasted with the privacy film, the error between the light intensity reported by the terminal and the actual light intensity exceeds 50% due to the influence of the light transmittance of the privacy film, and the error is extremely large.
[0157] Thus, the screen brightness automatic adjustment function is affected, as shown in Figure 3c The screen brightness of the terminal on the left is the screen brightness automatically adjusted before the film is pasted, and the screen brightness of the terminal on the right is the screen brightness automatically adjusted after the film is pasted. It can be seen that the screen brightness automatically adjusted after the film is pasted is not suitable for the human eye to view. Among them, Figure 3c only the screen brightness automatically adjusted before and after the film is pasted is shown, Figure 3c the text content displayed on the screen of the terminal does not need to be concerned.
[0158] The influence of the privacy film on the screen shielding function is described below.
[0159] Referring to Figure 3d , a schematic diagram of the proximity detection distance provided by the embodiment of the present application.
[0160] Among them, the horizontal axis of the coordinate represents the distance of the obstacle determined by the terminal, and the unit is centimeter (cm); the vertical axis of the coordinate represents the detection report value of the infrared light detector for the infrared light emitted by the infrared emitter, and the unit is count.
[0161] Figure 3d In the figure, the upper curve is the corresponding curve in the case of no privacy film being pasted, and the lower curve is the corresponding curve in the case of the privacy film being pasted.
[0162] As can be seen from the point (3, 10100) and the point (5, 8200), in the case of the approaching threshold being 10100 count and the faraway threshold being 8200 count, if the screen is not pasted with the privacy film, the detection report value of the terminal is greater than 10100 count in the case of the screen being less than 3 cm away from the obstacle, and the terminal determines that the screen is blocked (the obstacle is close to the screen) at this time. The detection report value of the terminal is less than 8200 count in the case of the screen being greater than 5 cm away from the obstacle, and the terminal determines that the screen is not blocked (the obstacle is not close to the screen) at this time. It can be seen that the screen blocking function at this time is normal.
[0163] As can be seen from the point (1.1, 10100) and the point (1.8, 8200), if the screen is pasted with the privacy film, the detection report value of the terminal is greater than 10100 count in the case of the screen being less than 1.1 cm away from the obstacle, and the terminal determines that the screen is blocked (the obstacle is close to the screen) at this time. However, as long as the screen is less than 3 cm away from the obstacle, people will think that the screen is blocked, and obviously, the terminal determines that the screen is blocked only when the screen is less than 1.1 cm away from the obstacle is not in line with people's usage habits. The detection report value of the terminal is less than 8200 count in the case of the screen being greater than 1.8 cm away from the obstacle, and the terminal determines that the screen is not blocked (the obstacle is not close to the screen) at this time. However, 1.8 cm is still a relatively close distance that people usually think, and obviously, the terminal determines that the screen is not blocked when the screen is greater than 1.8 cm away from the obstacle is also not in line with people's usage habits.
[0164] It can be seen that in the case of the screen being pasted with the privacy film, the screen blocking detection function will be greatly affected, and in the call scene, it will cause a series of problems such as not turning off the screen when the face is close to the screen and not turning off the screen when the face is away from the screen after the call ends.
[0165] In view of the above situation, the embodiment of the present application provides a screen film detection scheme, which prints a first dye capable of reflecting infrared light on a part of the first film surface of the target protective film in contact with the screen, so as to realize the terminal self-detection of whether the screen is pasted with the film, so as to facilitate subsequent specific response according to the detection result, and reduce the impact of the film on the terminal function.
[0166] In order to facilitate understanding of the scheme provided by the embodiment of the present application, first, some concepts related to the embodiment of the present application will be introduced.
[0167] 1, infrared emitter, infrared light detector
[0168] Referring to Figure 4aA schematic diagram of a transmitter and a detector provided for an embodiment of the present application.
[0169] As can be seen, the infrared transmitter and the infrared light detector are devices provided in the terminal, the infrared transmitter can include multiple, and the infrared light detector is generally one.
[0170] The infrared transmitter is configured to emit infrared light, and the infrared light detector is configured to detect the energy of the reflected infrared light emitted by the infrared transmitter, or in other words, to detect the intensity of the reflected infrared light emitted by the infrared transmitter.
[0171] Specifically, the infrared light emitted by the infrared transmitter can be reflected back when it contacts an external object, and the reflected infrared light can be received by the infrared light detector. For example, when an obstacle object approaches the screen, the infrared light emitted by the infrared transmitter can be reflected back by the obstacle object and received by the infrared light detector. The infrared light detector can determine the size of the received infrared light energy and determine the distance between the obstacle object and the screen according to the size of the energy.
[0172] Generally, an intermediate isolation region is provided between the infrared transmitter and the infrared light detector to prevent light source crosstalk, i.e., to prevent the infrared light detector from directly receiving the infrared light emitted by the infrared transmitter.
[0173] As can be seen, the infrared light detector determines the distance between the obstacle object and the screen by determining the light intensity of the reflected infrared light emitted by the infrared transmitter, i.e., to determine whether an object is approaching, and therefore, from the functional point of view, the infrared transmitter, the infrared light detector, and the intermediate isolation region can be referred to as a proximity light sensor.
[0174] 2, the first area
[0175] The side of the target protective film that contacts the screen is referred to as the first film surface, and the first area is the area on the first film surface that covers the first infrared transmitter.
[0176] Referring to Figure 4b A schematic diagram of a first area provided for an embodiment of the present application is shown in the figure.
[0177] Figure 4b In the figure, the curved arrow represents the pasting direction of the target protective film, and as can be seen, after the target protective film is pasted on the screen, the first area on the first film surface of the target protective film can cover the first infrared transmitter under the screen.
[0178] The area size of the first region can be the same as the area size of the region where the first infrared emitter is located under the screen, so that the first region can just cover the first infrared emitter; of course, the area size of the first region can also be slightly larger than the area size of the region where the first infrared emitter is located under the screen, which is reasonable.
[0179] The screen film detection scheme provided by the embodiment of the application is described in detail below.
[0180] Referring to Figure 5 The flowchart of the first screen film detection method provided by the embodiment of the application is shown in FIG. 1, and the method includes the following steps S501-S502.
[0181] Step S501: Obtain a first detection value of an infrared light detector for infrared light emitted by a first infrared emitter.
[0182] As can be known from the foregoing description of the concept, the infrared emitter can detect the energy or intensity of the infrared light reflected by the infrared light emitted by the infrared emitter, and the first detection value is used to reflect the size of the energy or intensity.
[0183] Specifically, the first detection value can be in a positive correlation with the energy or intensity of the infrared light detected by the infrared light detector, so that the size of the first detection value can reflect the energy or intensity of the infrared light detected by the infrared light detector.
[0184] Step S502: Detect whether a target protective film is attached to the screen based on the first detection value, and obtain a film detection result.
[0185] The first region on the first film surface of the target protective film is printed with a first dye capable of reflecting infrared light.
[0186] The embodiment of the application does not limit the material of the first dye, which can be various dyes capable of being printed on the first region, such as oil-based dyes, water-based dyes, etc.; and the color of the first dye is not limited, which can be white, red, etc.
[0187] Referring to Figure 6 The first dye printing diagram provided by the embodiment of the application shows the first region where the first dye is printed, wherein the cross-sectional view is a cross-sectional view obtained by truncating from the dotted line, and the cross-sectional view is obtained by truncating from the dashed line. Figure 6 As can be seen from the top view and the cross-sectional view of the target protective film shown in FIG. 2, the first region of the first film surface of the target protective film that contacts the screen and covers the first infrared emitter is printed with the first dye.
[0188] In one case, the first dye can be an ink made of ultrafine glass powder (particle size between 0.125 mm and 0.177 mm) having high reflectivity to light, and the first dye is printed on the first area by silk printing.
[0189] In this case, if the screen is pasted with the target protective film, the infrared light emitted by the first infrared emitter is irradiated to the first area of the first film surface, and according to the principle of lens refraction and concave spherical reflection, the ink in the first area can generate a relatively high intensity of reflected light.
[0190] The size of the first detection value in the screen pasted film and the screen not pasted film state will be described in detail below.
[0191] If the screen is pasted with the target protective film, since the first dye in the first area is a special dye capable of reflecting infrared light, the infrared light emitted by the first infrared emitter will pass through the screen (the screen hardly reflects infrared light) and irradiate the first area of the first film surface. The first dye in the first area will reflect the above-mentioned infrared light to generate reflected infrared light. Therefore, in the screen pasted film state, the intensity of the reflected infrared light detected by the infrared light detector is relatively high, that is, the first detection value is relatively large.
[0192] If the screen is not pasted with the target protective film, the infrared light emitted by the first infrared emitter will directly pass through the screen, and the above-mentioned infrared light can not contact external objects at a relatively far distance, resulting in that the intensity of the reflected infrared light reflected by external objects is extremely low. Therefore, in this case, the intensity of the reflected infrared light detected by the infrared light detector is extremely low, that is, the first detection value is relatively small.
[0193] The specific way of detecting whether the screen is pasted with the target protective film based on the first detection value will be introduced below.
[0194] In one embodiment, a first difference value between the first detection value and a first reference value can be calculated, and if the first difference value is greater than a first preset threshold value, it is determined that the screen is pasted with the target protective film, otherwise, it is determined that the screen is not pasted with the target protective film.
[0195] The first reference value is the detection value of the infrared light detector for the infrared light emitted by the first infrared emitter when the screen of the terminal is not pasted with a film and is not blocked.
[0196] For example, if the first detection value is d1, the first reference value is D1, and the first preset threshold value is T1, if d1-D1>T1, it is determined that the screen is pasted with the target protective film; if d1-D1≤T1, it is determined that the screen is not pasted with the target protective film.
[0197] The first preset threshold value can be set by the staff according to experience, and embodiments of the present application do not limit this.
[0198] The screen of the terminal is almost not reflective to infrared light. In the state that the screen of the terminal is not pasted with a film and is not blocked, the infrared light emitted by the first infrared emitter can pass through the screen. Since the screen is not blocked, the above-mentioned infrared light cannot contact external objects at a long distance. Since the infrared light is attenuated during propagation, when finally contacting external objects, the intensity of the infrared light emitted by the first infrared emitter is extremely low, resulting in that the intensity of the reflected infrared light reflected by the external objects is also extremely low. Therefore, in this case, the intensity of the reflected infrared light detected by the infrared light detector is extremely low, that is, the first reference value is small.
[0199] The meaning represented by the size of the first difference value will be introduced below.
[0200] As can be seen from the foregoing description, in the state that the screen is pasted with a film, the first detection value is large, and therefore, the first difference value between the first detection value and the first reference value is large. In the state that the screen is not pasted with a film, the first detection value is small, and therefore, the first difference value between the first detection value and the first reference value is small.
[0201] That is, if the first difference value is large and greater than the first preset threshold value, it represents that the screen can be pasted with the target protective film. If the first difference value is small and less than or equal to the first preset threshold value, it represents that the screen can not be pasted with the target protective film.
[0202] As can be seen from the foregoing description, in the state that the screen is pasted with a film, the first detection value is large, and therefore, the first difference value between the first detection value and the first reference value is large. In the state that the screen is not pasted with a film, the first detection value is small, and therefore, the first difference value between the first detection value and the first reference value is small.
[0203] In another implementation, it can be judged whether the first detection value is located in a preset value range. If yes, it is determined that the screen is pasted with the target protective film, otherwise, it is determined that the screen is not pasted with the target protective film.
[0204] The above-mentioned value range can be set according to the detection value of the infrared light detector for the infrared light emitted by the first infrared emitter in the state that the screen is pasted with a film.
[0205] For example, in the screen film pasting state, a plurality of the above detection values can be obtained in advance, and the minimum detection value and the maximum detection value among the obtained detection values are determined, and the above value range is set as a range between the minimum detection value and the maximum detection value.
[0206] In another embodiment, in addition to the first region, a second region of the first film surface of the target protective film covering the second infrared emitter can also be printed with a second dye capable of reflecting infrared light. In this case, the screen pasting the target protective film can be detected according to the first detection value and a second detection value of the infrared light detector for the infrared light emitted by the second infrared emitter. This embodiment will be described in detail in the following Figure 11 The details are not described here.
[0207] As can be seen from the above, when detecting whether the screen is pasted with a film by using the scheme provided in the embodiments of the present application, a first detection value of the infrared light detector for the infrared light emitted by the first infrared emitter can be obtained, and then the screen pasting the target protective film can be detected based on the first detection value to obtain a film pasting detection result. The first region of the first film surface of the target protective film covering the first infrared emitter is printed with a first dye capable of reflecting infrared light. In this way, if the screen pastes the target protective film, the infrared light emitted by the first infrared emitter will irradiate the first region after passing through the screen, the first dye printed on the first region will reflect the infrared light, and reflected infrared light will be generated, so that the intensity of the reflected infrared light detected by the infrared light detector is high, that is, the first detection value is large. If the screen does not paste the target protective film, the infrared light emitted by the first infrared emitter will directly pass through the screen, and the infrared light may not contact external objects at a long distance, resulting in that the intensity of the reflected infrared light reflected by the external objects is extremely low, so that the intensity of the reflected infrared light detected by the infrared light detector is extremely low, that is, the first detection value is small. It can be seen that the size of the first detection value is closely related to whether the screen is pasted with a film, and then the screen pasting the target protective film can be detected more directly and accurately based on the first detection value.
[0208] In addition, by using the scheme provided in the embodiments of the present application, the terminal can actively detect whether the screen is pasted with a film, without the user actively reporting whether the film is pasted through the user interface provided by the terminal, thereby bringing a more personalized and intelligent experience to the user.
[0209] On the basis of the embodiment shown in Figure 5 In order to improve the aesthetic degree of the screen pasting the target protective film, black dye can be printed on the first film surface of the target protective film covering the periphery of the screen. The printing method of the black dye will be introduced below.
[0210] In one embodiment, the third region outside the display region of the screen on the first film surface is printed with a third dye capable of absorbing visible light and transmitting infrared light, and the first dye covers the third dye, and the color of the third dye is black.
[0211] The third region outside the display region (Active Area, AA) of the screen on the first film surface corresponds to a region on the screen where no content is displayed, that is, a region with a relatively narrow width around the screen.
[0212] Referring to Figure 7a The second dye printing schematic diagram provided by the embodiment of the present application shows the first region printed with the first dye and the third dye, and the third region printed with the black third dye, from Figure 7a The top view and the cross-sectional view of the target protective film shown can be directly observed that the third region (the third region includes the first region) on the first film surface is printed with the black third dye, and the first region covering the first infrared emitter on the first film surface is printed with the first dye and the third dye, and the first dye covers the third dye.
[0213] The third dye printed in the third region is a black dye capable of absorbing visible light, and the first dye covers the third dye. After the target protective film is pasted on the screen, the human eye sees the second film surface of the target protective film, that is, the black third dye is on the upper layer of the first dye, as shown in Figure 7b As shown in the schematic diagram of the viewing effect after pasting the film provided by the embodiment of the present application, it can be seen that for the human eye, the third region of the second film surface is black, and the color of the first dye printed in the first region cannot be seen. In this way, after the target protective film is pasted on the screen, for the human eye, the color of the third region on the target protective film corresponding to the periphery of the screen is black, and the color of the first dye printed in the first region is not perceived by the user, which improves the aesthetic degree of the screen after pasting the film and does not affect the experience of the user when watching the screen. Moreover, since the third dye can transmit infrared light, the third dye will not affect the detection of the infrared light reflected by the first dye by the infrared detector.
[0214] In another embodiment, the fifth region on the first film surface is printed with a fourth dye capable of absorbing visible light and infrared light, the first region is printed with the third dye, and the first dye covers the third dye, and the color of the fourth dye is black.
[0215] The fifth region is the region in the third region excluding the first region, that is, the region in the region with a relatively narrow width around the screen excluding the region where the first infrared emitter is located.
[0216] Referring to Figure 7c The second dye printing schematic diagram provided by the embodiment of the present application shows the first region printed with the first dye and the third dye, and the third region printed with the black third dye, fromFigure 7c The top view and the cross-sectional view of the target protective film can be directly observed. The first region of the first film surface covering the first infrared emitter is printed with the first dye and the third dye. The first dye of the first region covers the third dye. The fifth region is printed with the fourth dye which is black.
[0217] The third dye printed on the fifth region is a black dye capable of absorbing visible light. For the human eye, the fifth region is black. The first region is printed with the first dye and the third dye. The first dye covers the third dye. After the target protective film is pasted on the screen, the human eye sees the second film surface of the target protective film, i.e., the black third dye is on the upper layer of the first dye. As described above Figure 7b For the human eye, the first region is also black, and the color of the first dye printed on the first region cannot be seen. Therefore, in general, the third region is black for the human eye. Thus, after the target protective film is pasted on the screen, the color of the third region of the target protective film corresponding to the periphery of the screen is black for the human eye. The color of the first dye printed on the first region is not perceived by the user, which improves the aesthetic appearance of the screen after pasting the film and does not affect the user's experience when watching the screen. In addition, since the third dye can transmit infrared light, the third dye will not affect the detection of infrared light reflected by the first dye by the infrared detector. In addition, in the present embodiment, only the third dye with high printing cost needs to be printed on the fifth region of the target protective film, and the third dye does not need to be printed on all third regions, thereby reducing the cost.
[0218] In an embodiment of the present application, before the step S501, the first infrared emitter and the fourth infrared emitter can be controlled to emit infrared light in a preset order and emission mode. In this case, in addition to the first detection value, a fourth detection value of the infrared light detector for the infrared light emitted by the fourth infrared emitter can also be obtained, and whether the screen is blocked can be detected according to the fourth detection value.
[0219] The fourth infrared emitter can be at least one infrared emitter other than the first infrared emitter among the infrared emitters provided in the terminal.
[0220] The preset order is not limited in the present application. For example, the first infrared emitter can be controlled to emit infrared light first, and then the fourth infrared emitter can be controlled to emit infrared light. Alternatively, the fourth infrared emitter can be controlled to emit infrared light first, and then the first infrared emitter can be controlled to emit infrared light.
[0221] The above emission manner is that after one infrared emitter stops emitting infrared light, another infrared emitter starts emitting infrared light. In this way, the infrared light detector can detect the infrared light emitted by each infrared emitter one by one without being disturbed by other infrared emitters.
[0222] Referring to Figure 8 The first control command timing diagram provided by the embodiment of the application can be seen. The fourth infrared emitter can be controlled to emit infrared light first, then the fourth infrared emitter is controlled to stop emitting infrared light, then the first infrared emitter is controlled to emit infrared light, and then the first infrared emitter is controlled to stop emitting infrared light. The height and the low of the broken line are used to distinguish different control commands, and can also reflect the detection values detected by the infrared detector for the infrared light emitted by the first infrared emitter and the fourth infrared emitter.
[0223] Since the area covered by the fourth emitter on the first film surface of the target protective film is not printed with the dye, the infrared light emitted by the fourth infrared emitter can directly penetrate the screen and the target protective film, and then is detected by the infrared light detector after being reflected. That is, the target protective film attached to the screen does not affect the fourth detection value detected by the infrared light detector for the infrared light emitted by the fourth infrared emitter.
[0224] As can be seen from the foregoing description of the concept introduction, the terminal can detect whether the screen is blocked according to the detection result of the infrared light detector for the infrared light emitted by the infrared emitter. Since the fourth detection value is not affected by the attached film, the screen can be accurately detected according to the fourth detection value. In this case, the fourth infrared emitter is equivalent to an emitter for maintaining the screen blocking detection function.
[0225] In Figure 5 On the basis of the embodiment shown in the figure, in addition to the first area, the second area covered by the second infrared emitter on the first film surface of the target protective film can also be printed with the second dye capable of reflecting infrared light. The description of the second dye can be referred to the foregoing description of the first dye, and the only difference is that the infrared reflectivity of the second dye is different from that of the first dye.
[0226] In this case, the screen attached with the target protective film can be detected according to the foregoing first detection value and the second detection value of the infrared light emitted by the second infrared emitter. In view of the above, the embodiment of the application provides a second screen film detection method.
[0227] First, the second area and the second dye are introduced intuitively in combination with the figures.
[0228] Referring to Figure 9A second area schematic diagram provided by the embodiment of the present application shows a first area covering the first infrared emitter and a second area covering the second infrared emitter, wherein the curved arrow represents the pasting direction of the target protective film, and it can be seen that the second area on the first film surface of the target protective film can cover the second infrared emitter under the screen after the target protective film is pasted on the screen.
[0229] The area size of the second area can be the same as the area size of the region where the second infrared emitter is located under the screen, so that the second area can cover the second infrared emitter exactly; of course, the area size of the second area can also be slightly larger than the area size of the region where the second infrared emitter is located under the screen, which is reasonable.
[0230] Referring again to Figure 10 The fourth dye printing schematic diagram provided by the embodiment of the present application shows a first area printing the first dye and a second area printing the second dye, from Figure 10 The top view and the cross-sectional view of the target protective film shown can be directly observed, the first area covering the first infrared emitter on the first film surface of the target protective film contacting the screen is printed with the first dye, and the second area covering the second infrared emitter on the first film surface is printed with the second dye.
[0231] The second screen pasting film detection method provided by the embodiment of the present application will be described in detail below.
[0232] Referring again to Figure 11 The flowchart of the second screen pasting film detection method provided by the embodiment of the present application, the above method comprises the following steps S1101-S1103.
[0233] Step S1101: obtaining a first detection value of the infrared light detector for the infrared light emitted by the first infrared emitter.
[0234] The above step S1101 is the same as the step S501 in the foregoing Figure 5 embodiment, which will not be described here.
[0235] Step S1102: obtaining a second detection value of the infrared light detector for the infrared light emitted by the second infrared emitter.
[0236] In this step, the meaning and obtaining method of the second detection value can refer to the meaning and obtaining method of the first detection value introduced in the foregoing step S501, which will not be described here.
[0237] Step S1103: detecting whether the screen is pasted with the target protective film based on the first detection value and the second detection value, and obtaining a pasting film detection result.
[0238] Specifically, the following method can be used to detect whether the screen is pasted with the target protective film.
[0239] In an implementation, a second difference between the first detection value and the second detection value can be calculated, and whether the screen is pasted with the target protective film is detected based on the second difference.
[0240] Since the reflectivity of the first dye and the second dye to infrared light is different, the first detection value and the second detection value detected by the infrared light detector for the infrared light emitted by the first infrared emitter and the second infrared emitter are different, and a second difference between the first detection value and the second detection value exists.
[0241] In the first mode, a third difference between the second difference and a reference difference can be calculated, and if the third difference is greater than a second preset threshold, it is determined that the screen is pasted with the target protective film, otherwise, it is determined that the screen is not pasted with the target protective film. The third difference can be set by the staff according to experience, which is not limited in the present application.
[0242] The reference difference is a difference between a detection value of infrared light emitted by the first infrared emitter and a detection value of infrared light emitted by the second infrared emitter detected by the infrared light detector when the screen of the terminal is not pasted with the film.
[0243] For example, if the first detection value is d1, the second detection value is d2, and the reference difference is δ, if d1-d2>δ, it is determined that the screen is pasted with the target protective film; if d1-d2≤δ, it is determined that the screen is not pasted with the target protective film.
[0244] The difference between the detection values measured by the infrared light detector for the first infrared emitter and the second infrared emitter when the screen is not pasted with the film is related to the distance between the first infrared emitter and the second infrared emitter and the power of the first infrared emitter and the second infrared emitter, and the value is small, that is, the reference difference is small. If the screen is not pasted with the film, the second difference between the first detection value and the second detection value obtained by the infrared detector should tend to the reference difference, that is, the third difference is small; if the screen is pasted with the film, since the dyes printed in the first area and the second area are special dyes that can reflect infrared light, and the infrared reflectivity of the two dyes is different, the difference between the detection values of the infrared light emitted by the first infrared emitter and the second infrared emitter for the infrared light detector is large, that is, the second difference is large, so the third difference between the second difference and the reference difference is large. Therefore, the size of the third difference is closely related to whether the screen is pasted with the film, and whether the screen is pasted with the film can be determined based on the size of the third difference.
[0245] In addition, since the difference between the detection values measured by the infrared light detector for the first infrared emitter and the second infrared emitter is related to the distance between the first infrared emitter and the second infrared emitter and the power of the first infrared emitter and the second infrared emitter, and is irrelevant to whether the screen is blocked, the size of the second difference value is relatively constant regardless of whether the screen is blocked, so that the third difference value between the second difference value and the reference difference value is large regardless of whether the screen is blocked, and whether the screen is pasted with the protective film can still be detected according to the size of the third difference value. It can be seen that the scheme provided in the embodiment will not be affected by the screen blocking on the detection result when detecting whether the screen is pasted with the protective film, that is, there is no limitation on the environment in which the terminal is located, and the flexibility and accuracy of the scheme are improved.
[0246] In the second mode, it can be judged whether the second difference value between the first detection value and the second detection value is located in a preset difference value range. If yes, it is determined that the screen is pasted with the target protective film; otherwise, it is determined that the screen is pasted with the target protective film.
[0247] The difference value range can be set according to the difference between the detection values of the infrared light detector for the infrared light emitted by the first infrared emitter and the second infrared emitter in the screen pasting film state.
[0248] For example, in the screen pasting film state, a plurality of differences between the detection values can be obtained in advance, and the minimum difference and the maximum difference in the obtained detection values are determined. The difference value range is set to a range between the minimum difference and the maximum difference.
[0249] As can be seen from the above, the second difference value is closely related to whether the screen is pasted with the film, and the screen pasting film can be conveniently and accurately detected based on the second difference value.
[0250] In another embodiment, the screen pasting film can be detected based on the first detection value first, and then detected based on the second detection value. If the detection results represent that the screen is pasted with the film, it is determined that the screen is pasted with the target protective film.
[0251] The way of detecting whether the screen is pasted with the film based on the first detection value is described in detail in the foregoing Figure 5 The way of detecting whether the screen is pasted with the film based on the second detection value is similar to the way of detecting whether the screen is pasted with the film based on the first detection value, and the difference is only that the detection is based on different values, which will not be described here.
[0252] In this way, the film pasting detection is first performed based on the first detection value to obtain a detection result, and then the first obtained detection result is verified based on the second detection value. If the verification is passed, it is determined that the screen is pasted with the target protective film.
[0253] As can be seen from the above, in the embodiment, not only is the first dye capable of reflecting infrared light printed on the first region of the first infrared emitter on the first film surface of the target protective film, but also the second dye capable of reflecting infrared light is printed on the second region of the second infrared emitter on the first film surface. In this way, when the film pasting detection is performed, not only is the first detection value of the infrared light detector for the infrared light emitted by the first infrared emitter considered, but also the second detection value of the infrared light detector for the infrared light emitted by the second infrared emitter is further considered, so that the film pasting detection can be performed more comprehensively and accurately based on the two detection values, and the accuracy of the film pasting detection result is further improved.
[0254] In Figure 11 On the basis of the embodiment shown in the figure, in order to improve the aesthetic degree after the target protective film is pasted on the screen, black dye can be printed on the region of the first film surface of the target protective film covering the periphery of the screen. The printing method of the black dye is described below.
[0255] In an embodiment, the third dye capable of absorbing visible light and transmitting infrared light is printed on the third region outside the display region of the screen on the first film surface, and the first dye and the second dye cover the third dye.
[0256] As can be seen from the foregoing description, the third region corresponds to the region on the screen that does not display content, that is, the region with a narrow width around the screen.
[0257] Referring to Figure 12a The fifth dye printing schematic diagram provided by the embodiment of the present application shows the first region in which the first dye and the third dye are printed, the second region in which the second dye and the third dye are printed, and the third region in which the third dye is printed, from Figure 12a As can be seen from the top view and the cross-sectional view of the target protective film shown in the figure, the third region (including the first region and the second region) on the first film surface is printed with the third dye which is black, the first region covering the first infrared emitter and the second region on the first film surface are printed with the first dye and the second dye, and the first dye and the second dye cover the third dye.
[0258] The third dye printed on the third region is black dye capable of absorbing visible light, and the first dye and the second dye cover the third dye. After the target protective film is pasted on the screen, the second film surface of the target protective film is seen by the human eye, that is, the third dye which is black is on the upper layer of the first dye, as described above Figure 7bAs shown, it can be seen that for the human eye, the third area seen is black, and the color of the first dye printed in the first area and the color of the second dye printed in the second area cannot be seen. In this way, after the target protective film is pasted on the screen, for the human eye, the color of the third area of the target protective film corresponding to the periphery of the screen is black, and the color of the first dye printed in the first area and the color of the second dye printed in the second area are not perceived by the user, which improves the aesthetic degree of the screen after the film is pasted and does not affect the experience of the user when watching the screen. Moreover, since the third dye can transmit infrared light, the third dye will not affect the detection of the infrared detector on the infrared light reflected by the first dye and the infrared light reflected by the second dye.
[0259] In another embodiment, the fourth area on the first film surface is printed with a fourth dye capable of absorbing visible light and infrared light, the first area is printed with the third dye, and the first dye covers the third dye, and the color of the fourth dye is black.
[0260] The fourth area is an area in the third area excluding the first area and the second area, that is, an area in the area corresponding to the periphery of the screen with a narrower width excluding the area where the first infrared emitter and the second infrared emitter are located.
[0261] Referring to Figure 12b The sixth dye printing schematic diagram provided by the embodiment of the present application shows the first area printed with the first dye and the third dye, the second area printed with the second dye and the third dye, and the fourth area printed with the black fourth dye, from Figure 12b As shown in the top view and the cross-sectional view of the target protective film, the fifth area (excluding the first area and the third area) on the first film surface is printed with the black fourth dye, the first area covering the first infrared emitter is printed with the third dye, and the first area is further printed with the first dye, and the second area is further printed with the second dye, and the first dye and the second dye cover the third dye.
[0262] The third dye printed in the fourth area is a black dye capable of absorbing visible light, and for the human eye, the fourth area seen is black; the first area is printed with the first dye and the third dye, and the first dye covers the third dye; similarly, the second area is printed with the second dye and the third dye, and the first dye covers the third dye; after the target protective film is pasted on the screen, the human eye sees the second film surface of the target protective film, that is, the black third dye is on the upper layer of the first dye, as shown in Figure 7bAs shown, for the human eye, the first area and the second area are also black, and the color of the first dye printed in the first area and the color of the second dye printed in the second area cannot be seen. Therefore, in general, the third area is black for the human eye. In this way, after the target protective film is pasted on the screen, the color of the third area of the target protective film corresponding to the periphery of the screen is black for the human eye, and the color of the first dye printed in the first area and the color of the second dye printed in the second area are not perceived by the user, thereby improving the aesthetic level of the screen after the film is pasted and not affecting the experience of the user when watching the screen. Moreover, since the third dye can transmit infrared light, the third dye will not affect the detection of the infrared detector on the infrared light reflected by the first dye and the infrared light reflected by the second dye. In addition, in the present embodiment, only the third dye with high cost needs to be printed in the fourth area of the target protective film, and the third dye does not need to be printed in all third areas, thereby reducing the cost.
[0263] In one embodiment of the present application, before the above step S1101, the first infrared emitter, the second infrared emitter and the third infrared emitter can be controlled to emit infrared light in a preset order and emission mode. In this case, in addition to the above first detection value, a third detection value of the infrared light detector for the infrared light emitted by the third infrared emitter can also be obtained, and the screen is detected whether it is blocked according to the third detection value. Similarly, the present embodiment does not limit the above preset order.
[0264] The above third infrared emitter can be at least one infrared emitter in addition to the first infrared emitter among the infrared emitters arranged in the terminal.
[0265] The above emission mode is that after one infrared emitter stops emitting infrared light, another infrared emitter starts emitting infrared light. In this way, the infrared light detector can detect the infrared light emitted by each infrared emitter one by one without being disturbed by other infrared emitters.
[0266] Referring to Figure 13 The second control command timing diagram provided by the present embodiment can be seen. The third infrared emitter can be controlled to emit infrared light first, then the third infrared emitter can be controlled to stop emitting infrared light, then the first infrared emitter can be controlled to emit infrared light, then the first infrared emitter can be controlled to stop emitting infrared light, then the second infrared emitter can be controlled to emit infrared light, and then the second infrared emitter can be controlled to stop emitting infrared light. The height of the broken line is used to distinguish different control commands, and can also reflect the detection value detected by the infrared detector for the infrared light emitted by different infrared emitters.
[0267] Since the area covering the third emitter on the first film surface of the target protective film is not printed with dye, the infrared light emitted by the third infrared emitter can directly penetrate the screen and the target protective film, and then is detected by the infrared light detector after being reflected. That is, the target protective film does not affect the third detection value obtained by the infrared light detector for the infrared light emitted by the third infrared emitter.
[0268] As can be seen from the foregoing description, the terminal can detect whether the screen is blocked according to the detection result of the infrared light detector for the infrared light emitted by the infrared emitter. Since the third detection value is not affected by the protective film, the terminal can accurately detect whether the screen is blocked according to the third detection value. In this case, the third infrared emitter is equivalent to an emitter for maintaining the screen blocking detection function.
[0269] In the embodiments shown in Figure 5 and Figure 11 , after obtaining the detection result of the protective film, the terminal can further verify the detection result of the protective film according to the light intensity detection values of the ambient light sensor and the front camera.
[0270] Specifically, in one embodiment of the present application, after obtaining the detection result, the terminal can further perform the following steps A and B.
[0271] Step A: Obtain a first light intensity detection value of the front camera for ambient light.
[0272] In the embodiments shown in and
[0273] , the target protective film is provided with an opening, and the area where the opening is located covers the front camera. In this way, the first light intensity detection value of the front camera for ambient light is not affected whether the protective film is attached or not.
[0274] The present application does not limit the specific way of calculating the first light intensity detection value and the second light intensity detection value, which will be described below in combination with Figure 14 .
[0275] Referring to Figure 14 , a schematic diagram of a light intensity detection process provided by an embodiment of the present application is shown.
[0276] The following will first describe a way of calculating the first light intensity detection value shown in Figure 14 .
[0277] Firstly, the front camera can detect the incident ambient light, convert the light signal of the incident ambient light into an electrical signal, and assign the electrical signal with a preset exposure time and gain, i.e. adjust the electrical signal by using the exposure time and gain, generate a brightness image based on the adjusted electrical signal, obtain the pixel point count of the RGB (Red Green Blue) channel in the image, then judge whether it is greater than a first value or less than a preset minimum value, if yes, it means that the exposure time and gain of the image need to be adjusted, therefore, the exposure time and gain can be optimized to ensure no overexposure and ensure resolution, finally, a curve is fitted and the light intensity is calculated, i.e. the first light intensity detection value is obtained according to the adjusted image and the fitted curve. The first value and the preset minimum value can be set by the staff according to experience, which is not limited in the embodiments of the present application.
[0278] Again Figure 14 The way of calculating the second light intensity detection value is described as follows:
[0279] Firstly, the front camera can detect the incident ambient light, convert the light signal of the incident ambient light into an electrical signal, and assign the electrical signal with a preset exposure time and gain, i.e. adjust the electrical signal by using the exposure time and gain, generate a brightness image based on the adjusted electrical signal, obtain the pixel point count of the RGB channel in the image, then calculate the average brightness of the image picture according to the count, compare the average brightness with a target brightness, adjust the exposure time and gain according to the comparison result to ensure that the picture brightness is appropriate (a small amount of overexposure or underexposure can be accepted), finally, calculate the light intensity based on the APEX (The Additive System of Photographic Exposure) algorithm according to the adjusted image to obtain the second light intensity detection value. The target brightness can be set by the staff according to experience, which is not limited in the embodiments of the present application.
[0280] Step C: verifying the screen film detection result based on the first light intensity detection value and the second light intensity detection value.
[0281] Specifically, the fourth difference between the first light intensity detection value and the second light intensity detection value can be calculated first, and then the screen film detection result is verified according to the fourth difference in the following way.
[0282] In an implementation, if the fourth difference is greater than a third preset threshold value and the screen film detection result represents that the target protective film is pasted on the screen, it is determined that the screen film detection result is correct, otherwise it is determined that the screen film detection result is incorrect; if the fourth difference is less than or equal to the third preset threshold value and the screen film detection result represents that the target protective film is not pasted on the screen, it is determined that the screen film detection result is correct, otherwise it is determined that the screen film detection result is incorrect.
[0283] Since the target protective film is provided with the opening, the area where the opening is located covers the front camera, so that the first light intensity detection value of the front camera for the ambient light is not affected by the protective film; and the ambient light sensor is arranged under the screen, so that the second light intensity detection value of the ambient light sensor for the ambient light is affected by the protective film. Therefore, in the state without the protective film, the first light intensity detection value tends to be close to the second light intensity detection value, that is, the fourth difference is small; in the state with the protective film, the second light intensity detection value is affected by the protective film, and the second light intensity detection value is greater than the first light intensity detection value, that is, the fourth difference is large. It can be seen that the fourth difference can accurately reflect whether the screen is pasted with the protective film, so that the screen pasting detection result can be verified according to the fourth difference, and the accuracy of the protective film detection can be further improved according to the verification result.
[0284] In another mode, it can be judged whether the above fourth difference is located in a preset difference range. If the above fourth difference is located in the preset difference range, and the protective film detection result represents that the screen is pasted with the target protective film, it is determined that the protective film detection result is correct, otherwise it is determined that the protective film detection result is incorrect. If the above fourth difference is not located in the preset difference range, and the protective film detection result represents that the screen is not pasted with the target protective film, it is determined that the protective film detection result is correct, otherwise it is determined that the protective film detection result is incorrect.
[0285] Since the target protective film is provided with the opening, the area where the opening is located covers the front camera, so that the first light intensity detection value of the front camera for the ambient light is not affected by the protective film; and the ambient light sensor is arranged under the screen, so that the second light intensity detection value of the ambient light sensor for the ambient light is affected by the protective film. Therefore, in the state without the protective film, the first light intensity detection value tends to be close to the second light intensity detection value, that is, the fourth difference is small; in the state with the protective film, the second light intensity detection value is affected by the protective film, and the second light intensity detection value is greater than the first light intensity detection value, that is, the fourth difference is large. It can be seen that the fourth difference can accurately reflect whether the screen is pasted with the protective film, so that the screen pasting detection result can be verified according to the fourth difference, and the accuracy of the protective film detection can be further improved according to the verification result.
[0286] In an embodiment of the present application, in the case that the protective film detection result represents that the screen is pasted with the target protective film, the strategy for adjusting the function to be adjusted can also be determined, and the function to be adjusted is adjusted according to the determined strategy.
[0287] Specifically, in the case that the protective film detection result represents that the screen is pasted with the target protective film, the preset strategy can be directly used as the strategy for adjusting the function to be adjusted, and the function to be adjusted is adjusted according to the determined strategy. The above preset strategy can be a strategy for adjusting the screen brightness adjustment function, a strategy for adjusting the screen shielding function, a strategy for adjusting the screen touch sensitivity adjustment function, etc., which is not limited in the embodiments of the present application.
[0288] In an implementation, the target protective film type can be determined based on the first detection value, and then a strategy for adjusting a function corresponding to the protective film type can be selected from the preset adjustment strategies.
[0289] For various target protective films, the reference detection value of the infrared light detector for the first infrared emitter can be measured in advance in the state of the protective film being attached, and then the difference between the first detection value and the reference detection value is calculated. If the difference is less than a preset threshold, the type of the protective film attached to the screen is determined to be the type of the target protective film.
[0290] The strategy for adjusting a function corresponding to the protective film type can be selected from the preset adjustment strategies according to the preset correspondence between the protective film type and the adjustment strategy.
[0291] In this way, different adjustment strategies can be used to adjust the function to be adjusted according to the different protective film types, improving the flexibility and applicability of the scheme.
[0292] In an embodiment of the present application, if the protective film type is a type that has a blocking effect on light, a strategy for adjusting the screen brightness adjustment function and / or a strategy for adjusting the screen shielding function can be selected from the preset adjustment strategies.
[0293] Specifically, the screen brightness adjustment function adjustment strategy can be an adjustment strategy suitable for the protective film type and set in advance through experiments, such as setting a brightness automatic adjustment threshold suitable for the protective film type to make the adjusted brightness suitable for human eye viewing. The screen shielding function adjustment strategy can be an adjustment strategy suitable for the protective film type and set in advance through experiments, such as setting a proximity detection threshold suitable for the protective film type to improve the accuracy of the adjusted proximity detection.
[0294] In this way, in the case where the protective film type is a type that has a blocking effect on light, the function can be adjusted by using the strategy for adjusting the screen brightness adjustment function and / or the strategy for adjusting the screen shielding function, thereby reducing the impact of the protective film on the screen brightness adjustment function and / or the screen shielding detection function, ensuring the normal operation of the screen brightness adjustment function and / or the screen shielding detection function, and improving the user experience.
[0295] In another embodiment of the present application, if the protective film type is a type that has a changing effect on the screen touch feeling, a strategy for adjusting the screen touch sensitivity adjustment function can be selected from the preset adjustment strategies.
[0296] Specifically, the screen touch sensitivity adjustment strategy can be an adjustment strategy suitable for the protective film type and set in advance through experiments, so that the adjusted screen touch sensitivity is suitable for user operation of the screen.
[0297] In this way, in the case where the protective film type is the type that has a changing effect on the screen touch feeling, the function adjustment strategy for adjusting the screen touch sensitivity adjustment function can be adopted to adjust the function, so that the influence of the protective film on the screen touch sensitivity is reduced, the accuracy of user touch on the screen is improved, and the user experience is improved.
[0298] As can be seen from the above, in the embodiment, in the case where the protective film detection result indicates that the screen is pasted with the target protective film, the function adjustment strategy is determined, and the function to be adjusted is adjusted according to the determined strategy, so that the influence of the protective film on the terminal function to be adjusted is reduced, and the user experience is improved.
[0299] In one embodiment of the present application, in the case where the protective film detection result indicates that the screen is pasted with the target protective film, the user interface can also prompt the user whether to adjust the function to be adjusted through a pop-up window or the like, and if the user's confirmation instruction is received, the function to be adjusted is adjusted according to the above strategy.
[0300] In a specific implementation, the present application also provides a computer storage medium, wherein the computer storage medium can store a program, wherein when the program is executed, the device in which the computer readable storage medium is located executes part or all of the steps in the above embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), or the like.
[0301] In a specific implementation, the present application also provides a computer program product, which contains executable instructions, when the executable instructions are executed on the terminal, the terminal executes part or all of the steps in the above method embodiments.
[0302] In a specific implementation, the present application also provides a terminal, which includes:
[0303] one or more processors and a memory;
[0304] The memory is coupled to the one or more processors, and the memory is configured to store computer program code, the computer program code including computer instructions, and the one or more processors invoke the computer instructions to cause the terminal to execute the above screen protective film detection method.
[0305] AsFigure 15 As shown, the application further provides a chip system applied to the terminal 100, the chip system comprising one or more processors 1501, the processor 1501 being configured to invoke computer instructions to enable the terminal 100 to input data to be processed into the chip system, the chip system performing screen film detection based on the screen film detection method provided by the embodiments of the application, and outputting a film detection result.
[0306] In a possible implementation, the chip system further comprises an input and output interface for inputting and outputting data.
[0307] Embodiments of the mechanism disclosed in the application can be implemented in hardware, software, firmware or a combination of these implementation methods. Embodiments of the application can be implemented as computer programs or program codes executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memories and / or storage elements), at least one input device and at least one output device.
[0308] Program codes can be applied to input instructions to perform functions described in the application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purpose of the application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC) or a microprocessor.
[0309] Program codes can be implemented in a high-level programming language or an object-oriented programming language to communicate with a processing system. If necessary, program codes can also be implemented in assembly language or machine language. In fact, the mechanism described in the application is not limited to the scope of any specific programming language. In any case, the language can be a compiled language or an interpreted language.
[0310] In some cases, the disclosed embodiments can be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried by or stored on a transitory or non-transitory machine-readable (e.g., computer-readable) medium, which can be read and executed by one or more processors. For example, the instructions can be downloaded from a network or by way of another computer readable medium. Thus, a machine-readable medium can include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including without limitation floppy disks, optical disks, optical disks, Compact Disc Read Only Memories (CD-ROMs), magnetic cased or optical cased cards, read-only memories, random access memories, erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical tape, flash memory, or any other suitable medium upon which information can be stored or transmitted. Thus, a machine-readable medium includes any type of medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0311] In the drawings, some of the structural or methodological features can be shown in particular arrangements and / or orders. However, it should be understood that such particular arrangements and / or orders can not be required. Instead, in some embodiments, the features can be arranged differently than shown in the figures of the specification. Also, inclusion of a structural or methodological feature in a particular figure does not imply that the feature is required in all embodiments, and in some embodiments, the feature can not be included or can be combined with other features.
[0312] It should be noted that each unit / module mentioned in the embodiments of the present application is a logical unit / module, in physical, one logical unit / module can be one physical unit / module, or a part of a physical unit / module, or a combination of multiple physical unit / modules, the physical implementation of the logical unit / module itself is not the most important, the combination of the functions implemented by the logical unit / module is the key to solve the technical problems proposed in the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned each device embodiment of the present application does not introduce the unit / module which is not closely related to solving the technical problems proposed in the present application, which does not mean that the above-mentioned device embodiment does not have other units / modules.
[0313] It has to be noted that, in the description of the application, the terms "first", "second", etc. are used only for distinguishing between similar elements, and do not connote any order, sequence or priority. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0314] While the application has been illustrated and described in detail in the drawings and foregoing description, the same is to be considered as illustrative and not restrictive in character, it being understood that only the preferred embodiments have been shown and described and that all changes and modifications that come within the spirit of the application are desired to be protected.
Claims
1. A method for detecting a screen protector, characterized by, Applied to a terminal, the method comprises: obtaining a first detection value of an infrared light detector for infrared light emitted by a first infrared emitter; based on the first detection value, detecting whether the screen is pasted with a target protective film, obtaining a pasting film detection result, wherein the first area of the target protective film contacting the screen is printed with a first dye capable of reflecting infrared light.
2. The method of claim 1, wherein, The first detection value, the first detection value, and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated.
3. The method of claim 1, wherein, The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated.
4. The method of claim 3, wherein, The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated.
5. The method of claim 4, wherein, The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection value and the first detection value are calculated. The first detection 7. The method of claim 3, wherein, Before the first detection value of the infrared light detector for the infrared light emitted by the first infrared emitter is obtained, the method further comprises: controlling the first infrared emitter, the second infrared emitter and the third infrared emitter to emit infrared light in a preset order and emission mode, wherein the emission mode is that after the infrared light emission of one infrared emitter is controlled to end, the infrared light emission of another infrared emitter is controlled to start; The method further comprises: obtaining a third detection value of the infrared light detector for the infrared light emitted by the third infrared emitter; detecting whether the screen is blocked according to the third detection value.
8. The method of claim 1, wherein the third region of the first film surface outside the display region of the screen is printed with a third dye capable of absorbing visible light and transmitting infrared light, and the first dye covers the third dye, wherein the color of the third dye is black; or a fifth region of the first film surface is printed with a fourth dye capable of absorbing visible light and infrared light, the first region is printed with the third dye, and the first dye covers the third dye, wherein the fifth region is a region in the third region other than the first region, and the color of the fourth dye is black.
9. The method of claim 1, wherein, Before the first detection value of the infrared light detector for the infrared light emitted by the first infrared emitter is obtained, the method further comprises: controlling the first infrared emitter and the fourth infrared emitter to emit infrared light in a preset order and emission mode, wherein the emission mode is that after the infrared light emission of one infrared emitter is controlled to end, the infrared light emission of another infrared emitter is controlled to start; The method further comprises: obtaining a fourth detection value of the infrared light detector for the infrared light emitted by the fourth infrared emitter; detecting whether the screen is blocked according to the fourth detection value.
10. The method according to any one of claims 1-9, characterized in that, The method further comprises: obtaining a first light intensity detection value of the front camera for the ambient light, wherein the target protective film is provided with an opening, and the region where the opening is located covers the front camera; obtaining a second light intensity detection value of the ambient light sensor for the ambient light; verifying the film detection result based on the first light intensity detection value and the second light intensity detection value.
11. The method of claim 10, wherein, The verification of the film detection result based on the first light intensity detection value and the second light intensity detection value comprises: calculating a fourth difference value between the first light intensity detection value and the second light intensity detection value; if the fourth difference value is greater than a third preset threshold value, and the film detection result represents that the screen is pasted with the target protective film, it is determined that the film detection result is correct, otherwise it is determined that the film detection result is incorrect; if the fourth difference value is less than or equal to the third preset threshold value, and the film detection result represents that the screen is not pasted with the target protective film, it is determined that the film detection result is correct, otherwise it is determined that the film detection result is incorrect.
12. The method according to any one of claims 1-9, characterized in that, The method further comprises: in the case that the film detection result represents that the screen is pasted with the target protective film, determining a strategy for adjusting the function to be adjusted; adjusting the function to be adjusted according to the determined strategy.
13. The method of claim 12, wherein, The determining the strategy of adjusting the function to be adjusted comprises: determining a protective film type of the target protective film based on the first detection value; selecting a strategy of adjusting the function to be adjusted corresponding to the protective film type from preset adjustment strategies according to the protective film type.
14. The method of claim 13, wherein, The selecting a strategy of adjusting the function to be adjusted corresponding to the protective film type from preset adjustment strategies according to the protective film type comprises: if the protective film type is a type having a blocking effect on light, selecting a strategy of adjusting a screen brightness adjusting function and / or a strategy of adjusting a screen shielding detection function from the preset adjustment strategies; if the protective film type is a type having a changing effect on screen touch, selecting a strategy of adjusting a screen touch sensitivity adjusting function from the preset adjustment strategies.
15. A terminal, characterized by comprise: one or more processors and a memory; The memory is coupled with the one or more processors, and the memory is configured to store computer program codes, the computer program codes comprising computer instructions, and the one or more processors are configured to invoke the computer instructions to enable the terminal to perform the method according to any one of claims 1 to 14.
16. A computer-readable storage medium, characterized in that, The computer program comprises computer instructions, and when the computer program is executed on the terminal, the computer program enables the terminal to perform the method according to any one of claims 1 to 14.
17. A computer program product, characterised in that, The computer program product comprises executable instructions, and when the executable instructions are executed on the terminal, the executable instructions enable the terminal to perform the method according to any one of claims 1 to 14.
18. A chip system, characterized by The chip system is applied to a terminal, and the chip system comprises one or more processors, and the processor is configured to invoke computer instructions to enable the terminal to input data into the chip system and perform the method according to any one of claims 1 to 14 for film detection.