Display processing method and device, electronic equipment and readable storage medium
By detecting light information through the under-screen light sensor and camera module, it is determined whether there is a protective film on the surface of the display screen and the display effect is adjusted, solving the problems of inaccurate ambient light judgment and display after the film is applied, and improving the user experience.
Patent Information
- Application Number
- CN202410346016.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2025-09-26
AI Technical Summary
When a protective film is attached to the display screen of an electronic device, it causes inaccurate ambient light judgment and display, affecting the user experience.
Light information is collected through the under-screen light sensor and camera module, detection information is obtained, characteristic parameters are calculated, it is determined whether a preset film layer is affixed to the surface of the display screen, and the display effect is adjusted based on the judgment results.
When the film is applied, the user's viewing experience is improved and the accuracy and consistency of the display effect are ensured.
Smart Images

Figure CN120708552A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a display processing method, device, electronic device, and readable storage medium. Background Art
[0002] With the continuous development of science and technology, electronic devices have become more and more functional. Among them, the display effect of electronic devices is an important parameter in the evaluation of user experience.
[0003] In electronic devices in related technologies, when a protective film layer is attached to the surface of the display screen, the protective film layer will block ambient light, display light, etc., causing the electronic device to inaccurately judge the ambient light and display inaccurately, affecting the user experience. Summary of the Invention
[0004] To overcome the problems existing in the related art, the present disclosure provides a display processing method applied to an electronic device with a camera function, comprising:
[0005] Obtaining first detection information generated by the under-screen light sensor and second detection information generated by the camera module;
[0006] Obtaining a first characteristic parameter based on the first detection information and the second detection information, where the first characteristic parameter is used to characterize a relationship between the first detection information and the second detection information;
[0007] Determining a surface state of the display screen of the electronic device based on a relationship between the first characteristic parameter and a pre-stored reference characteristic parameter, wherein the surface state is used to indicate whether a preset film layer is attached to the surface of the display screen of the electronic device;
[0008] Based on the surface state of the display screen, the display effect of the display screen is adjusted.
[0009] In some embodiments, obtaining a first characteristic parameter based on the first detection information and the second detection information includes:
[0010] The ratio of the first detection information to the second detection information is used as the first characteristic parameter.
[0011] In some embodiments, the first detection information includes light intensity and / or light color temperature;
[0012] The second detection information includes light intensity and / or light color temperature.
[0013] In some embodiments, the display processing method further includes:
[0014] When the preset film layer is not attached to the surface of the display screen, obtaining third detection information generated by the under-screen light sensor and fourth detection information generated by the camera module;
[0015] The ratio of the third detection information to the fourth detection information is used as the reference characteristic parameter.
[0016] In some embodiments, determining the surface state of the display screen of the electronic device based on the relationship between the first characteristic parameter and a pre-stored reference characteristic parameter includes:
[0017] If the first characteristic parameter is inconsistent with the reference characteristic parameter, it is determined that the surface of the display screen of the electronic device is affixed with the preset film layer.
[0018] In some embodiments, adjusting the display effect of the display screen based on the surface state of the display screen includes:
[0019] The pre-stored first spectral coefficient is used to adjust the parameters of the under-screen light sensor to adjust the display effect of the electronic device.
[0020] In some embodiments, determining the surface state of the display screen of the electronic device based on the relationship between the first characteristic parameter and a pre-stored reference characteristic parameter further includes:
[0021] If the first characteristic parameter is consistent with the reference characteristic parameter, it is determined that the surface of the display screen is not affixed with the preset film layer;
[0022] The pre-stored second spectral coefficient is used to adjust the parameters of the under-screen light sensor to adjust the display effect of the electronic device.
[0023] In some embodiments, the display effect of the electronic device includes at least one of display brightness and display color temperature;
[0024] and / or,
[0025] The preset film layer includes any one of a hydrogel film, a tempered film and a radiation cooling protective film, wherein an avoidance hole is provided in an area of the preset film layer corresponding to the camera module.
[0026] According to a second aspect of the present disclosure, a display processing device is provided, the display processing device comprising:
[0027] an acquisition module configured to acquire first detection information generated by the under-screen light sensor and second detection information generated by the camera module;
[0028] a first determining module configured to obtain a first characteristic parameter based on the first detection information and the second detection information, where the first characteristic parameter is used to characterize a relationship between the first detection information and the second detection information;
[0029] a second determining module configured to determine a surface state of a display screen of an electronic device based on a relationship between the first characteristic parameter and a pre-stored reference characteristic parameter, wherein the surface state is used to indicate whether a preset film layer is affixed to the surface of the display screen of the electronic device;
[0030] The third determining module is configured to adjust the display effect of the display screen based on the surface state of the display screen.
[0031] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0032] processor;
[0033] a memory for storing executable instructions for the processor;
[0034] Wherein, the processor is configured to execute the display processing method as described in the first aspect.
[0035] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can perform the display processing method as described in the first aspect.
[0036] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: based on the fact that the camera module will not be affected by the obstruction of the preset film layer, while the under-screen light sensor will be affected by the obstruction of the preset film layer, the light information collected by the under-screen light sensor and the camera module is used to determine whether the surface of the electronic device is affixed with a preset film layer, and calibrate the display effect of the display screen, so that the user can still have a good viewing experience when the film is applied, thereby improving the user experience.
[0037] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0039] Figure 1 The figure is a flowchart showing a display processing method according to an exemplary embodiment.
[0040] Figure 2 The figure is a flowchart showing a display processing method according to an exemplary embodiment.
[0041] Figure 3 The figure is a flowchart showing a display processing method according to an exemplary embodiment.
[0042] Figure 4 The figure is a flowchart showing a display processing method according to an exemplary embodiment.
[0043] Figure 5 The figure is a schematic diagram showing a display processing device according to an exemplary embodiment.
[0044] Figure 6 The figure is a block diagram showing a display processing device according to an exemplary embodiment.
[0045] Figure 7 is a curve of a simulation test according to an exemplary embodiment. DETAILED DESCRIPTION
[0046] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0047] When using electronic devices, users usually attach protective films to the display screens of the electronic devices, such as tempered films to improve the impact resistance of electronic devices, or radiation cooling protective films to improve the heat dissipation capacity of electronic devices.
[0048] The protective film will cover the surface of the display screen. When the protective film is affixed to the display screen of an electronic device, the protective film layer blocks the ambient light, causing the ambient light collected by the light sensor below the display screen to be different from the actual ambient light, which in turn causes the light sensor to inaccurately judge the environment.
[0049] In addition, the protective film layer will also affect the light (displayed image) emitted from the display screen to the outside of the electronic device, causing the display effect of the display screen to be inaccurate, affecting the user experience.
[0050] To address the problems existing in the related art, the embodiments of the present disclosure provide a display processing method, device, electronic device, and readable storage medium. The display processing method is applied to an electronic device with a camera function, and the detection method includes: obtaining first detection information generated by an under-screen light sensor and second detection information generated by a camera module; obtaining a first characteristic parameter based on the first detection information and the second detection information, the first characteristic parameter being used to characterize the relationship between the first detection information and the second detection information; determining the surface state of the display screen of the electronic device based on the relationship between the first characteristic parameter and a pre-stored reference characteristic parameter, the surface state being used to characterize whether a preset film layer is affixed to the surface of the display screen of the electronic device; and adjusting the display effect of the display screen based on the surface state of the display screen. In the present disclosure, based on the fact that the camera module will not be affected by the obstruction of the preset film layer, while the under-screen light sensor will be affected by the obstruction of the preset film layer, the light information collected by the under-screen light sensor and the camera module is used to determine whether the surface of the electronic device is affixed to the preset film layer, and calibrate the display effect of the display screen, so that the user still has a good viewing experience even when the film is affixed, thereby improving the user experience.
[0051] According to an exemplary embodiment of the present disclosure, Figure 1 As shown, the embodiment of the present disclosure provides a display processing method, which is applied to electronic devices with camera functions, such as smart phones, laptops, smart wearable devices, etc. The display processing method includes the following steps:
[0052] Step S110: Obtain first detection information generated by the under-screen light sensor and second detection information generated by the camera module.
[0053] In this step, a control unit is provided in the electronic device. The control unit may be, for example, a system-on-chip (SoC), a core processor (CPU), etc. The control unit is electrically connected to the under-screen light sensor and the camera module of the electronic device. The control unit can control the under-screen light sensor and the camera module to collect light information, and obtain information generated by the under-screen light sensor and the camera module.
[0054] The control unit can obtain first detection information generated by an under-screen light sensor. The under-screen light sensor is an ambient light sensor disposed below the display screen of an electronic device and has the function of collecting and measuring ambient light. The control unit can adjust parameters such as the brightness and color temperature of the display screen based on the detection results of the under-screen light sensor.
[0055] The control unit can obtain the second detection information generated by the camera module. The camera module can be a front camera module or a rear camera module of the electronic device. The front camera module is a camera located on the display side of the electronic device, which can capture images of the display side of the electronic device. For example, a user can take selfies and other operations through the front camera module. The rear camera module is a camera set on the back shell of the electronic device, which includes multiple cameras with different functions, such as a main camera, a telephoto lens, and a wide-angle lens. Since the front camera module and the under-screen light sensor can capture ambient light on the same side of the electronic device, in order to improve detection accuracy, under normal circumstances, the front camera module of the electronic device is used to capture ambient light to generate the second detection information.
[0056] It should be noted here that when a preset film layer (described in detail later) is attached to the surface of the display screen of an electronic device, the preset film layer will affect the light incident on the display screen. For example, the preset film layer causes less light to enter the interior of the electronic device through the display screen, resulting in weaker brightness, or it blocks a certain spectrum, causing the color temperature of the light entering the interior of the electronic device through the display screen to change. The preset film layer includes any one of a hydrogel film, a tempered film, and a radiation cooling protective film. Among them, the radiation cooling protective film is a protective film that can absorb infrared radiation energy to reduce the temperature of the electronic device and improve the operating performance of the electronic device. However, when the radiation cooling protective film is affixed to the display screen of an electronic device, the radiation cooling protective film has a greater blocking effect on light, which can easily lead to errors in the recognition of light brightness and color temperature.
[0057] Because the under-screen light sensor is located beneath the display screen, the preset film layer causes changes in the ambient light detected by the under-screen light sensor. Since the camera module is a device used to capture images, the preset film layer is typically provided with a clearance hole. When the preset film layer is attached to the electronic device, the clearance hole of the preset film layer will be directly aligned with the camera module to prevent the preset film layer from affecting the user's selfie effect. In other words, the second detection information generated by the camera module is not affected by the preset film layer. Therefore, by processing the first and second detection information, it is possible to determine whether a film is applied to the surface of the electronic device.
[0058] Step S120: Obtain a first characteristic parameter based on the first detection information and the second detection information, where the first characteristic parameter is used to characterize the relationship between the first detection information and the second detection information.
[0059] In this step, it can be understood that no matter whether the surface of the electronic device is covered with a preset film layer, as long as the ambient light changes, the detection information generated by the under-screen light sensor and camera module will also change accordingly.
[0060] However, under the same ambient light, the relative relationship between the detection information generated by the under-screen light sensor and the camera module is only affected by the preset film layer. For example, when the display screen of the electronic device is not affixed with a preset film layer, neither the under-screen light sensor nor the camera module is affected by the preset film layer, so that the first detection information generated by the under-screen light sensor is basically the same as the second detection information generated by the module. When the display screen of the electronic device is affixed with a preset film layer, the ambient light collected by the under-screen light sensor is filtered by the preset film layer, while the ambient light collected by the camera module is not filtered by the preset film layer, so that the first detection information and the second detection information are significantly different, and the specific degree of difference is affected by the type of preset film layer.
[0061] Therefore, a first characteristic parameter is obtained based on the first detection information and the second detection information. The first characteristic parameter can characterize the relationship between the first detection information and the second detection information, so that the display processing method provided by the embodiment of the present disclosure can be executed in any ambient light (any usage scenario) and has high detection accuracy. In one example, the first characteristic parameter can be the ratio of the parameters in the first detection information to the second detection information.
[0062] In another example, the first characteristic parameter may be a difference between the first detection information and the second detection information.
[0063] Step S130 : determining a surface state of the display screen of the electronic device based on a relationship between the first characteristic parameter and a pre-stored reference characteristic parameter, where the surface state is used to indicate whether a preset film layer is attached to the surface of the display screen of the electronic device.
[0064] In this step, when it has been determined whether the electronic device has a film, reference characteristic parameters can be obtained based on the detection information of the under-screen light sensor and the camera module. The reference characteristic parameters are used as a reference. By comparing the first characteristic parameters (i.e., the characteristic parameters in the current scene) with the reference characteristic parameters, the surface state of the display screen of the electronic device can be determined. The surface state can characterize whether the surface of the display screen of the electronic device is affixed with a display film layer.
[0065] It should be noted that in the display processing method provided in the embodiment, reference characteristic parameters can be obtained based on the detection information of the under-screen light sensor and the camera module in the unfilmed state, and reference characteristic parameters can be obtained based on the detection information of the under-screen light sensor and the camera module in the filmed state.
[0066] Step S140: Adjust the display effect of the display screen based on the surface state of the display screen.
[0067] In this step, the control unit can determine whether a preset film layer is attached to the surface of the display screen based on the surface state of the display screen. Since the display film layer will block the light incident into the electronic device, it will also block the light emitted from the display screen to the outside of the electronic device. Therefore, when the control unit determines that a preset film layer is attached to the display screen of the electronic device, the control unit will adjust the display effect of the display screen.
[0068] In one example, after determining that a predetermined film layer is attached to the surface of the display screen, the control unit may control the display screen to display using pre-stored display parameters. In another example, after determining that a predetermined film layer is attached to the surface of the display screen, the control unit may adaptively adjust the display parameters based on the ratio of the first characteristic parameter to the reference characteristic parameter.
[0069] In the embodiment of the present disclosure, based on the fact that the camera module will not be affected by the obstruction of the preset film layer, while the under-screen light sensor will be affected by the obstruction of the preset film layer, the light information collected by the under-screen light sensor and the camera module is used to determine whether the surface of the electronic device is affixed with the preset film layer, and the display effect of the display screen is calibrated, so that the user can still have a good viewing experience even when the film is affixed, thereby improving the user experience.
[0070] Furthermore, electronic devices using the display processing method provided by the embodiments of the present disclosure can use a radiation cooling protective film to reduce surface temperature and improve performance without deteriorating the display effect.
[0071] In an exemplary embodiment, Figure 2 As shown, the embodiment of the present disclosure provides a display processing method, which includes the following steps:
[0072] Step S210: When no preset film layer is attached to the surface of the display screen, third detection information generated by the under-screen light sensor and fourth detection information generated by the camera module are obtained.
[0073] In this step, during the research and development and production process of the electronic device before it leaves the factory, the surface of the display screen is not affixed with a preset film layer. The control unit can control the under-screen light sensor to obtain ambient light information and generate third detection information, and control the camera module to obtain ambient light information and generate fourth detection information.
[0074] In one example, the third detection information and the fourth detection information may be acquired in an environment with a light intensity of 200 luk and a color temperature of 5000 k.
[0075] Step S220: Use the ratio of the third detection information to the fourth detection information as a reference characteristic parameter.
[0076] In this step, the control unit calculates the ratio of the third detection information to the fourth detection information, and uses the ratio as a reference characteristic parameter.
[0077] The reference characteristic parameters may include a ratio of a light intensity parameter (unit: lux) to a light color temperature parameter (unit: Kelvin, K), and the like.
[0078] In one example, since the surface of the display screen is covered with a preset film layer, the ambient light detected by the under-screen light sensor and the camera module is the same, that is, the light intensity ratio in the reference characteristic parameters is 1:1, and the light color temperature ratio is 1:1.
[0079] Step S230: Obtain first detection information generated by the under-screen light sensor and second detection information generated by the camera module.
[0080] It is understandable that users may have different usage habits after purchasing electronic devices. For example, they may use the included pre-applied protective film or a pre-purchased protective film. Therefore, step S230 can be performed after the user activates the device and registers an account. Regardless of the user's usage habits, it can accurately determine whether to apply a protective film.
[0081] The first detection information and the second detection information can be obtained at regular intervals to avoid situations such as changing different preset film layers or removing the preset film layers during use. The interval can be, for example, 30 minutes or 1 day. This does not limit the technical solution of the present disclosure, and can also be set to obtain information in real time.
[0082] Step S240: Use the ratio of the first detection information to the second detection information as a first characteristic parameter, where the first characteristic parameter is used to characterize the relationship between the first detection information and the second detection information.
[0083] In this step, the first and third detection information are both generated by the under-screen light sensor, and both contain light intensity parameters and light color temperature parameters. The second detection information is similar to the second detection information and will not be repeated here.
[0084] The first characteristic parameter can be determined in the same manner as in the aforementioned step S220. The first characteristic parameter is used to characterize the detection information obtained by the under-screen light sensor and the camera module during user use.
[0085] Step S250: determining a surface state of the display screen of the electronic device based on a relationship between the first characteristic parameter and the reference characteristic parameter, where the surface state is used to indicate whether a preset film layer is attached to the surface of the electronic device.
[0086] In this step, the surface state of the display screen includes being attached with a preset film layer and not being attached with a preset film layer. In some optional implementations, the relationship between the first characteristic parameter and the reference characteristic parameter can also be used to determine which preset film layer is attached.
[0087] Step S260: Adjust the display effect of the display screen based on the surface state of the display screen.
[0088] In this step, when the surface state indicates that the display screen has a preset film layer attached to the surface, the control unit controls the display screen to adjust the effect. When the surface state indicates that the display screen does not have a preset film layer attached to the surface, the control unit controls the display screen to still display with the preset display parameters.
[0089] For example, if it is determined that a predetermined film layer is affixed to the surface of the display screen, for example, if the predetermined film layer blocks light, causing the display brightness of the electronic device's display screen to dim, the control unit can control the electronic device to increase the display brightness. For another example, if the predetermined film layer blocks the green spectrum, causing the electronic device's color to be inaccurate, the control unit can control the electronic device's display screen to increase the intensity of the green spectrum, allowing the electronic device to display accurate colors.
[0090] In an exemplary embodiment, Figure 3 As shown, the embodiment of the present disclosure provides a display processing method, which may include the following steps:
[0091] Step S310: Obtain first detection information generated by the under-screen light sensor and second detection information generated by the camera module.
[0092] This step is implemented in the same manner and principle as step S110 in the aforementioned embodiment and will not be described in detail.
[0093] Step S320: Obtain a first characteristic parameter based on the first detection information and the second detection information, where the first characteristic parameter is used to characterize the relationship between the first detection information and the second detection information.
[0094] This step is implemented in the same manner and principle as step S120 in the aforementioned embodiment and will not be described in detail.
[0095] Step S330: Determine whether the first characteristic parameter is the same as the reference characteristic parameter. If not, execute step S340; if so, execute step S360.
[0096] In this step, exemplarily, detection information of the under-screen sensor and camera module of the electronic device in the unfilmed state is obtained, and reference characteristic parameters are obtained based on the detection information of the two devices. Since the preset film layer is not affixed, the ambient light collected by the under-screen light sensor and the camera module is basically the same.
[0097] It is understood that during the user's use of the electronic device, if the electronic device does not have a protective film applied, the first characteristic parameter obtained based on the first detection information and the second detection information will be the same as the reference characteristic parameter, and step S360 can be executed. If the electronic device has a protective film applied, then based on the difference between the first characteristic parameter and the reference characteristic parameter, step S340 can be executed.
[0098] Step S340: If the first characteristic parameter is inconsistent with the reference characteristic parameter, it is determined that a preset film layer is attached to the surface of the display screen of the electronic device.
[0099] It can be seen from step S330 that when the surface of the display screen of the electronic device is affixed with a preset film layer, the first characteristic parameter is different from the reference characteristic parameter, and the preset film layer blocks the ambient light detected by the under-screen light sensor, resulting in different parameters of the ambient light collected by the under-screen light sensor and the camera module. Based on this, when the first characteristic parameter is inconsistent with the reference characteristic parameter, it can be reversely determined that the surface of the electronic device is affixed with a preset film layer.
[0100] For example, refer to Figure 7 The light parameter ratio in the reference characteristic parameter may be 1, and the light parameter ratio in the first characteristic parameter may be 0.8, which can determine that a preset film layer is attached to the surface of the display screen of the electronic device.
[0101] Step S350: Use the pre-stored first spectral coefficient to adjust the parameters of the under-screen light sensor to adjust the display effect of the electronic device.
[0102] In this step, illustratively, when the electronic device is in a state without a film attached, the calculation formula of the reference light sensitivity parameter L is as follows:
[0103] L=a1*C+a2*R+a3*G+a4*B
[0104] Wherein, C: Clear spectrum; a1, Clear calculation coefficient; R: Red light spectrum; a2, Red light calculation coefficient; G, Green light spectrum; a3, Green light calculation coefficient; B, Blue light spectrum; a4, Blue light calculation coefficient.
[0105] When a preset film layer is affixed to the surface of the display screen of an electronic device, any one or more of the clear spectrum, red light spectrum, green light spectrum and blue spectrum will change, causing a1, a2, a3 and a4 to no longer be applicable. Therefore, the spectral coefficient needs to be adjusted to the first spectral coefficient so that the final calculated light sensitivity parameter L is the same as the reference light sensitivity parameter when the film is not affixed.
[0106] Exemplarily, a1 is adjusted to b1, so that a1*C=b1*C', where C' is the Clear spectrum in the film-attached state.
[0107] Step S360: If the first characteristic parameter is consistent with the reference characteristic parameter, it is determined that no preset film layer is attached to the surface of the display screen.
[0108] First of all, it should be noted that during the display processing process, due to the influence of factors such as the under-screen light sensor, the characteristics of the display itself, foreign matter on the display surface, and the ambient temperature, there is no strict requirement that the first characteristic parameter be completely consistent with the reference characteristic parameter. For example, there can be an allowable error range of ±10% to avoid misjudgment.
[0109] When the surface of the display screen of the electronic device is not affixed with a preset film layer, the first characteristic parameter is substantially the same as the reference characteristic parameter. Based on this, when the first characteristic parameter is consistent with the reference characteristic parameter, it can be inferred that the surface of the electronic device is affixed with a preset film layer.
[0110] Exemplarily, the light parameter ratio in the reference characteristic parameter may be 1, and the light parameter ratio in the first characteristic parameter may be 0.95, which can determine that the surface of the display screen of the electronic device is not affixed with a preset film layer.
[0111] Step S370: Use the pre-stored second spectral coefficient to adjust the parameters of the under-screen light sensor to adjust the display effect of the electronic device.
[0112] In this step, it can be known from step S350 that the pre-stored second spectrum coefficients are a1, a2, a3 and a4.
[0113] In an exemplary embodiment, Figure 4 As shown, the embodiment of the present disclosure provides a display processing method, which may include the following steps:
[0114] Step S410: When no preset film layer is attached to the surface of the display screen, third detection information generated by the under-screen light sensor and fourth detection information generated by the camera module are obtained.
[0115] Step S420: Use the ratio of the third detection information to the fourth detection information as a reference characteristic parameter.
[0116] Step S430: Obtain first detection information generated by the under-screen light sensor and second detection information generated by the camera module.
[0117] Step S440: Use the ratio of the first detection information to the second detection information as a first characteristic parameter, where the first characteristic parameter is used to characterize the relationship between the first detection information and the second detection information.
[0118] Step S450: Determine whether the first characteristic parameter is the same as the reference characteristic parameter. If not, execute step S460; if so, execute step S480.
[0119] Step S460: If the first characteristic parameter is inconsistent with the reference characteristic parameter, it is determined that a preset film layer is attached to the surface of the display screen of the electronic device.
[0120] Step S470: Use the pre-stored first spectral coefficient to adjust the parameters of the under-screen light sensor to adjust the display effect of the electronic device.
[0121] Step S480: If the first characteristic parameter is consistent with the reference characteristic parameter, it is determined that the surface of the display screen is not affixed with a preset film layer.
[0122] Step S490: Use the pre-stored second spectral coefficient to adjust the parameters of the under-screen light sensor to adjust the display effect of the electronic device.
[0123] Among them, steps S410 to S440 are implemented in the same manner and principle as steps S210 to S240 in the aforementioned embodiment, and steps S450 to S490 are implemented in the same manner and principle as steps S330 to S370 in the aforementioned embodiment, and are not repeated here.
[0124] According to an exemplary embodiment of the present disclosure, Figure 5 As shown, an embodiment of the present disclosure provides a display processing device for executing the display processing method provided by any of the foregoing embodiments of the present disclosure, the display processing device comprising:
[0125] Acquisition module 100 is configured to obtain the first detection information generated by the under-screen light sensor and the second detection information generated by the camera module.
[0126] The first determining module 200 is configured to obtain a first characteristic parameter based on the first detection information and the second detection information, where the first characteristic parameter is used to characterize the relationship between the first detection information and the second detection information.
[0127] The second determination module 300 is configured to determine the surface state of the display screen of the electronic device based on the relationship between the first characteristic parameter and the pre-stored reference characteristic parameter, where the surface state is used to indicate whether a preset film layer is attached to the surface of the display screen of the electronic device.
[0128] The third determining module 400 is configured to adjust the display effect of the display screen based on the surface state of the display screen.
[0129] According to an exemplary embodiment of the present disclosure, Figure 6 As shown, an exemplary embodiment of the present disclosure provides an electronic device, such as a mobile phone, a laptop computer, a tablet computer, and a wearable device.
[0130] See also Figure 6As shown, electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0131] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 602 may include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
[0132] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0133] The power supply assembly 606 provides power to the various components of the electronic device 600. The power supply assembly 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0134] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera module and / or a rear camera module. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera module and / or the rear camera module can receive external multimedia data. Each front camera module and the rear camera module can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0135] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0136] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0137] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of components, such as the display and keypad of the electronic device 600. The sensor assembly 614 can also detect changes in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and temperature changes of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0138] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other terminals. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0139] Exemplarily, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing terminals (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.
[0140] In an exemplary embodiment, the present disclosure further provides a non-transitory computer-readable storage medium including instructions, such as a memory 604 including instructions. The instructions can be executed by the processor 620 of the electronic device 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium can be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage terminal. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to perform the methods shown in the above-described embodiments.
[0141] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the embodiments disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow from the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0142] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A display processing method, characterized in that: Applicable to electronic devices with camera functions, including: Obtaining first detection information generated by the under-screen light sensor and second detection information generated by the camera module; Obtaining a first characteristic parameter based on the first detection information and the second detection information, where the first characteristic parameter is used to characterize a relationship between the first detection information and the second detection information; Determining a surface state of the display screen of the electronic device based on a relationship between the first characteristic parameter and a pre-stored reference characteristic parameter, wherein the surface state is used to indicate whether a preset film layer is attached to the surface of the display screen of the electronic device; Based on the surface state of the display screen, the display effect of the display screen is adjusted.
2. The display processing method according to claim 1, wherein: The obtaining of a first characteristic parameter based on the first detection information and the second detection information includes: The ratio of the first detection information to the second detection information is used as the first characteristic parameter.
3. The display processing method according to claim 2, wherein: The first detection information includes light intensity and / or light color temperature; The second detection information includes light intensity and / or light color temperature.
4. The display processing method according to claim 2, wherein: The display processing method further includes: When the preset film layer is not attached to the surface of the display screen, obtaining third detection information generated by the under-screen light sensor and fourth detection information generated by the camera module; The ratio of the third detection information to the fourth detection information is used as the reference characteristic parameter.
5. The display processing method according to any one of claims 1 to 4, characterized in that: The determining the surface state of the display screen of the electronic device based on the relationship between the first characteristic parameter and the pre-stored reference characteristic parameter includes: If the first characteristic parameter is inconsistent with the reference characteristic parameter, it is determined that the surface of the display screen of the electronic device is affixed with the preset film layer.
6. The display processing method according to claim 5, characterized in that: The adjusting the display effect of the display screen based on the surface state of the display screen includes: The pre-stored first spectral coefficient is used to adjust the parameters of the under-screen light sensor to adjust the display effect of the electronic device.
7. The display processing method according to claim 5, characterized in that: The determining of the surface state of the display screen of the electronic device based on the relationship between the first characteristic parameter and the pre-stored reference characteristic parameter further includes: If the first characteristic parameter is consistent with the reference characteristic parameter, it is determined that the surface of the display screen is not affixed with the preset film layer; The pre-stored second spectral coefficient is used to adjust the parameters of the under-screen light sensor to adjust the display effect of the electronic device.
8. The display processing method according to claim 6 or 7, characterized in that: The display effect of the electronic device includes at least one of display brightness and display color temperature; and / or, The preset film layer includes any one of a hydrogel film, a tempered film and a radiation cooling protective film, wherein an avoidance hole is provided in an area of the preset film layer corresponding to the camera module.
9. A display processing device, characterized in that: The display processing device includes: an acquisition module configured to acquire first detection information generated by the under-screen light sensor and second detection information generated by the camera module; a first determining module configured to obtain a first characteristic parameter based on the first detection information and the second detection information, where the first characteristic parameter is used to characterize a relationship between the first detection information and the second detection information; a second determining module configured to determine a surface state of a display screen of an electronic device based on a relationship between the first characteristic parameter and a pre-stored reference characteristic parameter, wherein the surface state is used to indicate whether a preset film layer is affixed to the surface of the display screen of the electronic device; The third determining module is configured to adjust the display effect of the display screen based on the surface state of the display screen.
10. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the display processing method according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the display processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Under-screen optical device and detection method of display screen film
CN111524480A
Terminal control method and device, electronic equipment and storage medium
CN117348826A
Cover layer detection for touch input devices
US20230280868A1
In-screen optical apparatus and method for detecting protective film on display screen
WO2022000471A1