Brightness detection method and device, electronic equipment and storage medium

CN115876436BActive Publication Date: 2026-08-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111144350.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-28
Publication Date
2026-08-28
Estimated Expiration
2041-09-28

AI Technical Summary

Technical Problem

此类设备不适用于普通用户日常的检测需求,不能有效核查或获知发光体的亮度

Benefits of technology

[0062] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: In the method of this disclosure, electronic equipment can be used to detect the brightness of the light source under test, and the quality of the luminescent product can be easily and effectively determined based on the brightness. The detection method is more convenient, making it easier for users to test the quality of luminescent products themselves, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115876436B_ABST
    Figure CN115876436B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a brightness detection method and device, electronic equipment and storage medium. The method comprises: issuing a voice control instruction when the electronic equipment is in a first position and a preset detection condition is met. In the condition that a to-be-detected light source is turned on, environmental light data is determined according to data detected by a first photosensitive element. Average photosensitive data of a third photosensitive element is determined on a preset path of movement of the electronic equipment. The brightness of the to-be-detected light source is determined according to the environmental light data and the average photosensitive data. In the method of the present disclosure, the brightness of the to-be-detected light source can be detected by using the electronic equipment, and the quality of the light-emitting product can be determined intuitively and effectively according to the brightness. The detection method is more convenient, and is more conducive to self-detection of the quality of the light-emitting product by the user, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of electronic devices, and more particularly to a brightness detection method, apparatus, electronic device, and storage medium. Background Technology

[0002] For light-emitting bodies such as light sources or displays of various devices, brightness is a common testing indicator and an important standard for evaluating the quality of light-emitting bodies.

[0003] In related technologies, the equipment used for brightness detection is highly specialized and expensive, generally requiring use in a darkroom or the equipment itself needing to create a darkroom environment. Such equipment is not suitable for the daily testing needs of ordinary users and cannot effectively verify or determine the brightness of a light source. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a brightness detection method, apparatus, electronic device, and storage medium.

[0005] According to a first aspect of the present disclosure, a brightness detection method is proposed, applied to an electronic device, the electronic device comprising: a first photosensitive element located on the side of the display screen, a second photosensitive element located on the side of the housing, and a third photosensitive element located on the top of the middle frame; wherein the method comprises:

[0006] When the electronic device is in a first position and the preset detection conditions are met, a voice control command is issued; wherein, in the first position, the display screen of the electronic device is away from the light source to be tested, and the distance between the third photosensitive element and the light source to be tested is less than a preset distance; the preset detection conditions are used to characterize the darkroom conditions, and the voice control command is used to instruct the light source to be tested to be turned on;

[0007] With the light source under test turned on, ambient light data is determined based on the data detected by the first photosensitive element;

[0008] On a preset path of movement of the electronic device, the average photosensitive data of the third photosensitive element is determined; wherein, the starting point of the preset path is the first position;

[0009] The brightness of the light source under test is determined based on the ambient light data and the average photosensitivity data.

[0010] In some embodiments, prior to issuing the voice control command, the method further includes:

[0011] The initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element at the first position are determined respectively;

[0012] In response to the fact that the initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element are all not greater than the first threshold, it is determined that the preset detection condition is met;

[0013] In response to at least one of the initial data from the first photosensitive element, the second photosensitive element, and the third photosensitive element being greater than the first threshold, a prompt message is output, wherein the prompt message is used to indicate that the preset detection conditions are not met.

[0014] In some embodiments, determining the initial data for the first photosensitive element, the second photosensitive element, and the third photosensitive element at the first location includes:

[0015] At the first position, multiple data points collected by the first photosensitive element at a preset frequency, multiple data points collected by the second photosensitive element at a preset frequency, and multiple data points collected by the third photosensitive element at a preset frequency are acquired respectively.

[0016] The first mean value of multiple data collected by the first photosensitive element is determined as the initial data of the first photosensitive element;

[0017] The second mean of multiple data collected by the second photosensitive element is determined as the initial data of the second photosensitive element;

[0018] The third mean of multiple data collected by the third photosensitive element is determined as the initial data of the third photosensitive element.

[0019] In some embodiments, determining the average photosensitivity data of the third photosensitive element along a preset path of movement of the electronic device includes:

[0020] From the first position to the end point of the preset path, in response to the first data detected by the first photosensitive element and the second data detected by the second photosensitive element remaining stable, multiple sets of test data are acquired; wherein, each set of target data includes one set of the first data, the corresponding second data, and the corresponding third data detected by the third photosensitive element;

[0021] In each set of test data, a target third data point within the threshold range is identified;

[0022] The average photosensitivity data is determined based on the target third data within the threshold range from multiple sets of test data.

[0023] In some embodiments, the method further includes:

[0024] In each set of test data, the lower limit of the corresponding threshold range is determined based on the first data and the second data;

[0025] Based on the corresponding first data, second data, and first preset parameters, the upper limit of the corresponding threshold range is determined.

[0026] In some embodiments, determining the brightness of the light source under test based on the ambient light data and the average photosensitivity data includes:

[0027] The brightness is determined based on the ambient light data, the average light sensitivity data, and a pre-stored second preset parameter, wherein the second preset parameter is related to the reflectance coefficient of the display screen.

[0028] In some embodiments, the method further includes:

[0029] Obtain configuration information, which includes the correspondence between light source types and light source parameters, including the brightness of the light source;

[0030] Based on the brightness and the configuration information, output the type of light source corresponding to the brightness.

[0031] According to a second aspect of the present disclosure, a brightness detection device is provided for use in an electronic device, the electronic device comprising: a first photosensitive element located on the side of the display screen, a second photosensitive element located on the side of the housing, and a third photosensitive element located on the top of the middle frame; wherein the device comprises:

[0032] The publishing module is used to publish a voice control command when the electronic device is in a first position and a preset detection condition is met; wherein, in the first position, the display screen of the electronic device is away from the light source to be tested, and the distance between the third photosensitive element and the light source to be tested is less than a preset distance; the preset detection condition is used to characterize the darkroom conditions, and the voice control command is used to instruct the light source to be tested to be turned on;

[0033] The first determining module is used to determine ambient light data based on the data detected by the first photosensitive element when the light source to be tested is turned on.

[0034] The second determining module is used to determine the average photosensitive data of the third photosensitive element along a preset path of movement of the electronic device; wherein the starting point of the preset path is the first position;

[0035] The third determining module is used to determine the brightness of the light source to be tested based on the ambient light data and the average photosensitivity data.

[0036] In some embodiments, the apparatus further includes: a fourth determining module, the fourth determining module being configured to:

[0037] The initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element at the first position are determined respectively;

[0038] In response to the fact that the initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element are all not greater than the first threshold, it is determined that the preset detection condition is met;

[0039] In response to at least one of the initial data from the first photosensitive element, the second photosensitive element, and the third photosensitive element being greater than the first threshold, a prompt message is output, wherein the prompt message is used to indicate that the preset detection conditions are not met.

[0040] In some embodiments, the fourth determining module is further configured to:

[0041] At the first position, multiple data points collected by the first photosensitive element at a preset frequency, multiple data points collected by the second photosensitive element at a preset frequency, and multiple data points collected by the third photosensitive element at a preset frequency are acquired respectively.

[0042] The first mean value of multiple data collected by the first photosensitive element is determined as the initial data of the first photosensitive element;

[0043] The second mean of multiple data collected by the second photosensitive element is determined as the initial data of the second photosensitive element;

[0044] The third mean of multiple data collected by the third photosensitive element is determined as the initial data of the third photosensitive element.

[0045] In some embodiments, the second determining module is further configured to:

[0046] From the first position to the end point of the preset path, in response to the first data detected by the first photosensitive element and the second data detected by the second photosensitive element remaining stable, multiple sets of test data are acquired; wherein, each set of target data includes one set of the first data, the corresponding second data, and the corresponding third data detected by the third photosensitive element;

[0047] In each set of test data, a target third data point within the threshold range is identified;

[0048] The average photosensitivity data is determined based on the target third data within the threshold range from multiple sets of test data.

[0049] In some embodiments, the second determining module is further configured to:

[0050] In each set of test data, the lower limit of the corresponding threshold range is determined based on the first data and the second data;

[0051] Based on the corresponding first data, second data, and first preset parameters, the upper limit of the corresponding threshold range is determined.

[0052] In some embodiments, the third determining module is further configured to:

[0053] The brightness is determined based on the ambient light data, the average photosensitivity data, and a pre-stored second preset parameter, wherein the second preset parameter is related to the reflectivity of the display screen.

[0054] In some embodiments, the apparatus further includes:

[0055] The acquisition module is used to acquire configuration information, which includes the correspondence between light source types and light source parameters, and the light source parameters include the brightness of the light source;

[0056] The output module is used to output the type of light source corresponding to the brightness, based on the brightness and the configuration information.

[0057] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0058] processor;

[0059] Memory used to store the processor's executable instructions;

[0060] The processor is configured to perform the brightness detection method as described in any of the preceding claims.

[0061] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the brightness detection method as described in any of the preceding claims.

[0062] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: In the method of this disclosure, electronic equipment can be used to detect the brightness of the light source under test, and the quality of the luminescent product can be easily and effectively determined based on the brightness. The detection method is more convenient, making it easier for users to test the quality of luminescent products themselves, thus improving the user experience.

[0063] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0064] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0065] Figure 1 This is a flowchart illustrating a method according to an exemplary embodiment.

[0066] Figure 2 This is a flowchart illustrating a method according to an exemplary embodiment.

[0067] Figure 3 This is a flowchart illustrating a method according to an exemplary embodiment.

[0068] Figure 4 This is a flowchart illustrating a method according to an exemplary embodiment.

[0069] Figure 5 This is a flowchart illustrating a method according to an exemplary embodiment.

[0070] Figure 6 This is a schematic diagram of an electronic device according to an exemplary embodiment.

[0071] Figure 7 This is a top view of an electronic device and the field of view of a photosensitive element according to an exemplary embodiment.

[0072] Figure 8 This is a schematic diagram illustrating a test process according to an exemplary embodiment.

[0073] Figure 9 This is a block diagram of an apparatus according to an exemplary embodiment.

[0074] Figure 10 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0075] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0076] This disclosure proposes a brightness detection method for an electronic device. The electronic device includes a first photosensitive element located on the display screen side, a second photosensitive element located on the housing side, and a third photosensitive element located on the top of the mid-frame. The method includes: when the electronic device is in a first position and preset detection conditions are met, issuing a voice control command. In the first position, the display screen of the electronic device is away from the light source to be tested, and the distance between the third photosensitive element and the light source to be tested is less than a preset distance. The preset detection conditions characterize darkroom conditions, and the voice control command instructs the light source to be tested to be turned on. With the light source to be tested turned on, ambient light data is determined based on data detected by the first photosensitive element. Average photosensitive data of the third photosensitive element is determined along a preset path of movement of the electronic device; the starting point of the preset path is the first position. The brightness of the light source to be tested is determined based on the ambient light data and the average photosensitive data. This method allows the use of an electronic device to detect the brightness of the light source to be tested, facilitating a direct and effective determination of the quality of the luminescent product. The detection method is more convenient, allowing users to independently test the quality of luminescent products and improving the user experience.

[0077] In one exemplary embodiment, the brightness detection method of this embodiment is applied to an electronic device. The electronic device may be a terminal device such as a mobile phone, tablet computer, or laptop computer. The electronic device includes a display screen, a housing facing away from the display screen, and a mid-frame for fixing the display screen. The housing and mid-frame may be an integral structure or separate structures.

[0078] In this embodiment, the electronic device further includes: a first photosensitive element located on the side of the display screen, a second photosensitive element located on the side of the housing, and a third photosensitive element located on the top. Combined with Figures 6 to 8 As shown, the first photosensitive element 11 can be disposed below the display screen 100, in which case the cover panel of the display screen 100 needs to have an opening. Alternatively, a light-entry channel can be provided between the edge of the display screen 100 and the mid-frame 300, and the first photosensitive element 11 can be disposed in the light-entry channel, in which case the relevant structure of the display screen does not need to have an opening. The second photosensitive element 12 can be disposed at the location of the rear camera module of the housing 200. The third photosensitive element 13 can be embedded in the top of the mid-frame 300, spatially located between the first photosensitive element 11 and the second photosensitive element 12. The top of the mid-frame 300, for example, is relative to the orientation shown in Figure 6, and the top of the mid-frame 300 can refer to the earpiece side of the electronic device.

[0079] like Figures 6 to 8As shown, the field of view (FOV) range α of the first photosensitive element 11 is on the display screen side, the field of view range β of the second photosensitive element 12 is on the housing side, and the field of view range γ of the third photosensitive element 13 is on the top of the electronic device. α and β can be, for example, in the range of 90°-120°, and γ can be in the range of 90°-120° or greater than 90°.

[0080] like Figure 1 As shown, the method in this embodiment may include the following steps:

[0081] S110. When the electronic device is in the first position and the preset detection conditions are met, issue a voice control command.

[0082] S120. With the light source to be tested turned on, determine the ambient light data based on the data detected by the first photosensitive element.

[0083] S130. Determine the average photosensitive data of the third photosensitive element along the preset path of the electronic device's movement.

[0084] S140. Determine the brightness of the light source to be tested based on ambient light data and average photosensitive data.

[0085] The electronic device may have a pre-installed application program used to detect parameters such as brightness or color temperature of the light source under test. Users can open the pre-installed application and select to enter the brightness detection process.

[0086] In step S110, to ensure accurate detection data, the electronic device should be placed close to the light source under test. (Combined with...) Figure 8 As shown, in the first position, the display screen 100 of the electronic device is away from the light source 400 under test, and the distance between the third photosensitive element and the light source 400 under test is less than a preset distance, such as 1 cm.

[0087] In this step, the preset detection conditions are used to characterize the darkroom conditions. When it is necessary to measure the brightness of the light source under test, the detection environment must meet the darkroom conditions. In the darkroom, it should be ensured that there is no interfering light. All light sources, such as the displays of electronic devices, the light source under test, or other light sources in the environment, should be turned off.

[0088] Even in a darkroom environment, the three photosensitive elements can still collect data in real time. The electronic device's processor or pre-installed application determines whether the current environment meets the darkroom requirements based on the data from the three photosensitive elements. When in a darkroom environment, the processor or pre-installed application can issue voice control commands.

[0089] In this step, voice control commands are used to instruct the user to turn on the light source under test. Once the user's commands are executed and the brightness detection process begins in the preset application, the application can automatically lock the screen and interact with the user via voice to prevent the display screen's illumination from affecting measurement accuracy. Other light sources must be manually turned off by the user or based on voice prompts from the electronic device.

[0090] The light source to be tested can be, for example, a television, laptop, tablet, mobile phone, indoor lighting fixture, car headlights, etc.

[0091] In step S120, combined Figure 6 As shown, the field of view of the first photosensitive element 11 is on one side of the display screen 100. After the light source under test is turned on, the initial position of the electronic device is at the first position. At the first position, the first photosensitive element 11 does not directly collect the light from the light source under test, but mainly collects the ambient light. The first photosensitive element 11 does not change drastically before and after the light source under test is turned on.

[0092] In this step, the processor or preset application of the electronic device can determine the ambient light data L1 based on the detection data of the first photosensitive element. init .

[0093] In step S130, after obtaining the ambient light data in step S120, the electronic device can issue a voice command to prompt the user to slowly move the electronic device along a preset path. The starting point of the preset path is the first position, and the preset path is related to the shape of the light source to be tested.

[0094] In one example, when the light source under test is square, the preset path can be the same as the extension direction of the light source under test. Combined with... Figure 8 As shown, the preset path is the length extension direction or width extension direction of the light source to be tested. The first position is, for example, the first end of the light source to be tested, and the end point of the preset path is, for example, the second end of the light source to be tested.

[0095] In other examples, when the light source under test is circular, the preset path may extend in the same direction as the diameter of the light source under test. Alternatively, when the light source under test is a point light source, the start and end points of the preset path may be the same (without moving) or move circumferentially along the light source under test.

[0096] During the movement, the processor or preset application can continuously acquire detection data from the first, second, and third photosensitive elements. The field of view of the third photosensitive element always includes the light from the light source under test and a portion of the ambient light; therefore, the data acquired by the third photosensitive element directly reflects the brightness of the light source under test. The processor or preset application can determine the average photosensitive data L3 of the third photosensitive element. A .

[0097] In step S140, the third photosensing element can be a common light sensor. The processor or a preset application combines ambient light data and average photosensitivity data to determine the brightness of the light source under test. In this step, based on the brightness of the light source under test, the user can evaluate the quality of the light source themselves. Alternatively, the preset application can automatically evaluate the quality of the light source under test based on further user instructions.

[0098] In this embodiment, the brightness of the light source under test is used as an example. In other embodiments, parameters such as the color temperature of the light source under test can also be detected by referring to the method of this embodiment. For example, when the third photosensitive element is a spectral sensor, the processor or preset application can combine ambient light data and average photosensitive data to determine the spectral information of the light emitted by the light source under test, and then determine the color temperature.

[0099] In an exemplary embodiment, step S140 may include the following steps:

[0100] S1401. Determine the brightness based on ambient light data, average photosensitive data, and the pre-stored second preset parameters.

[0101] In this step, the second preset parameter is related to the reflectivity of the display screen and can be set and stored during the factory testing of the electronic device. The processor or preset application can retrieve the second preset parameter from the storage location.

[0102] In this embodiment, the brightness of the light source to be tested is equal to the average photosensitivity data L3. A -f(L1) init ), where f(L1) init (Regarding L1) init The function can be derived from L1. init Confirmed. The processor or preset application combines the ambient light data L1 determined in step S120. init and the average photosensitivity data L3 determined in step S130 A Determine the brightness of the light source to be tested.

[0103] In one example, f(L1) init )=K2*L1 init Where K2 is the second preset parameter. The brightness of the light source under test = average photosensitivity data L3 A -K2*L1 init The processor or preset application combines the ambient light data L1 determined in step S120. init The average photosensitivity data L3 determined in step S130 A The brightness of the light source to be tested is determined by the second preset parameter K2.

[0104] In one exemplary embodiment, such as Figure 2 As shown, before step S110, the method in this embodiment further includes the following steps:

[0105] S101. Determine the initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element at the first position, respectively.

[0106] S102. In response to the fact that the initial data of the first photosensitive element, the second photosensitive element and the third photosensitive element are all not greater than the first threshold, it is determined that the preset detection conditions are met.

[0107] S103. In response to the fact that at least one of the initial data of the first photosensitive element, the second photosensitive element and the third photosensitive element is greater than a first threshold, a prompt message is output.

[0108] In this embodiment, it is applicable to determining whether the current environment meets preset detection conditions before detecting the brightness of the light source to be tested. Before executing the method of this embodiment, the light source to be tested and other light sources should be turned off. Step S101 to S103 should be used to further verify that the preset detection conditions are met before executing step S110.

[0109] In step S101, the initial data may be, for example, the average data corresponding to the corresponding photosensitive element.

[0110] In this step, the processor or preset application of the electronic device can acquire the detection data from the first, second, and third photosensitive elements, and determine the corresponding initial data based on the detection data from the three photosensitive elements. When the initial data from all three photosensitive elements meet the conditions, it can be determined that the current environment is a dark room and there is no interfering light. This is assuming all light sources are turned off.

[0111] In step S102, the first threshold may be, for example, the brightness threshold corresponding to the dark room condition. If it is not greater than the first threshold, it indicates that the condition is dark room condition, and if it is greater than the first threshold, it indicates that the brightness is greater than the brightness under the dark room condition.

[0112] If the initial data from all three photosensitive elements are not greater than the first threshold, it indicates that the environment within the three field-of-view angles of the electronic device is in a dark room. The electronic device is generally in a dark room environment with no interfering light, thus meeting the preset detection conditions of the light source under test.

[0113] When the preset detection conditions are met, i.e. the initial data of the three photosensitive elements are not greater than the first threshold, the processor or preset application program can control the execution of step S110.

[0114] In step S103, the prompt information is used to indicate that the preset detection conditions are not met, such as voice prompt information.

[0115] If at least one of the initial data from the three photosensitive elements exceeds the first threshold, it indicates that there is interfering light in at least one field of view within the three field-of-view ranges of the electronic device. Since the environment in which the electronic device is located is not a strictly darkroom environment, it is prone to interfering with the detection results of the light source under test; therefore, it is determined that the preset detection conditions for the light source under test are not met.

[0116] When the preset detection conditions are not met, the processor or preset application can control the output of voice prompts to inform the user that the current environment is not suitable for measurement.

[0117] In this embodiment, the prompt message may also include reference information for adjusting environmental conditions. For example, when preset detection conditions are not met, the processor or preset application may use voice prompts to prompt the user to turn off interfering light sources, handle interfering light, or adjust the position of electronic devices.

[0118] In an exemplary embodiment, step S101 may include the following steps:

[0119] S1011, at the first position, acquire multiple data points collected by the first photosensitive element at a preset frequency, multiple data points collected by the second photosensitive element at a preset frequency, and multiple data points collected by the third photosensitive element at a preset frequency.

[0120] S1012. Determine the first average value of the data detected by multiple first photosensitive elements as the initial data of the first photosensitive elements.

[0121] S1013. Determine the second average value of the data detected by multiple second photosensitive elements as the initial data of the second photosensitive elements.

[0122] S1014. Determine the third mean of the data detected by multiple third photosensitive elements as the initial data of the third photosensitive elements.

[0123] In step S1011, the electronic device remains stationary in the first position. The preset frequency is, for example, 10Hz, meaning the photosensitive element collects data 10 times per second. The total sampling duration can be a system-set duration or determined according to user instructions. The electronic device's processor or preset application program can acquire the data collected by the first, second, and third photosensitive elements.

[0124] In step S1012, after the processor or preset application of the electronic device acquires multiple data detected by the first photosensitive element, a first average value can be obtained based on the multiple data, and the first average value can be used as the initial data of the first photosensitive element.

[0125] In step S1013, after the processor or preset application of the electronic device acquires multiple data detected by the second photosensitive element, the second average value can be obtained based on the multiple data.

[0126] In step S1014, after the processor or preset application of the electronic device acquires multiple data detected by the third photosensitive element, the third average value can be obtained based on the multiple data.

[0127] Therefore, in this embodiment, initial data from three photosensitive elements can be obtained in a darkroom setting. The initial data from the three photosensitive elements can be the same or similar.

[0128] Based on this, in the subsequent step S120 of this embodiment, step S120 determines the ambient light data L1 based on the data collected by the first photosensitive element. init The following conditions must be met:

[0129] L1 init The difference from the first mean, L1 init The difference from the second mean and L1 init The differences from the third mean are all within the set range, i.e., L1. init It is close to the first, second, or third mean.

[0130] Furthermore, during the determination of ambient light data, the data collected by the first photosensitive element should remain stable (the change in data between two consecutive data points should be within a set threshold). When the data collected by the first photosensitive element remains stable, accurate ambient light data can be obtained, and step S130 can continue. When the data collected by the first photosensitive element is unstable (the change in data between two consecutive data points should be outside the set threshold), the processor or a preset application program can issue a prompt message to the user.

[0131] Understandably, the foregoing embodiments illustrate the influence of light sources with different regular shapes on the preset path. However, when the light source is highly irregular, then L1... init Once the above conditions are met, step S130 can be continued. At this time, in the first position, the third photosensitive element of the electronic device should be in continuous contact with the light source to be tested.

[0132] In one exemplary embodiment, such as Figure 3 As shown, step S130 in this embodiment may include the following steps:

[0133] S1301. From the first position of the preset path to the end point, in response to the first data detected by the first photosensitive element and the second data detected by the second photosensitive element remaining stable, multiple sets of test data are acquired.

[0134] S1302. In each set of test data, determine the target third data within the threshold range.

[0135] S1303. Determine the average photosensitive data based on the third data of the target within the threshold range from multiple sets of target data.

[0136] During step S130, the light source under test is turned on. The user actively or according to voice commands from the electronic device slowly moves the electronic device along a preset path.

[0137] In step S1301, during the movement, the three photosensitive elements can collect data in real time, and the processor or preset application can obtain the data collected by the three sensors.

[0138] In this step, each set of test data includes a first data L1 detected by the first photosensitive element, a corresponding second data L2 detected by the second photosensitive element, and a corresponding third data L3 detected by the third photosensitive element. There is a one-to-one mapping relationship between the first data L1, the second data L2, and the third data L3. For example, during the movement along a preset path, there can be a set of test data at any given moment, which includes a first data, a second data, and a third data.

[0139] Once a sufficient amount of test data has been obtained, the processor or preset application can control the cessation of sampling. The amount of test data can be set or adjusted based on the frequency of light source changes, the speed of electronic device movement, or the sampling rate.

[0140] Before this step, determine whether the first and second data remain stable. For example, you can use the following method:

[0141] S1300: Within a preset time interval, determine the difference between the maximum and minimum data detected by the first photosensitive element, and the difference between the maximum and minimum data detected by the second photosensitive element.

[0142] In one example of step S1300, in response to the difference between the maximum and minimum data detected by the first photosensitive element being within a preset range, it is determined that the first data remains stable. Similarly, in response to the difference between the maximum and minimum data detected by the second photosensitive element being within a preset range, it is determined that the second data remains stable.

[0143] In this example, when the detection data of the first and second photosensitive elements remain stable, it is consistent with the condition that the sampling data is stable only under the light source of the light source under test, which facilitates the next step of verifying the third data with the first and second data.

[0144] In another example of step S1300, if the difference between the maximum and minimum data detected by the first photosensitive element is outside a preset range, it indicates that the first data is unstable. Alternatively, if the difference between the maximum and minimum data detected by the second photosensitive element is outside a preset range, it indicates that the second data is unstable.

[0145] In this example, when the first or second data is unstable, the processor or a preset application can control the issuance of a voice warning message to inform the user to adjust the position of the electronic device or environmental conditions. Alternatively, if the instability lasts for a certain period of time, the measurement process can be terminated.

[0146] Among the multiple sets of test data obtained, the processor or preset application can discard test data containing unstable data. Alternatively, step S1301 can be executed to acquire multiple sets of test data only when the data remains stable. In step S1302, the threshold range can be, for example, pre-tested and stored in the electronic device according to different light source scenarios; or determined based on real-time acquired data during the test. Each set of test data has a corresponding threshold range. In this step, based on the threshold range of each set of test data, it is determined whether the third data in that set of test data is within the threshold range.

[0147] In step S1303, based on the comparison results of each set of test data with the corresponding threshold range, multiple third data points within the threshold range are retained, while third data points outside the threshold range are discarded. The average value is calculated based on the multiple third data points within the threshold range to obtain the average photosensitivity data.

[0148] In one exemplary embodiment, such as Figure 4 As shown, prior to step S1302, this embodiment may also include the following steps:

[0149] S131. In each set of test data, determine the lower limit of the corresponding threshold range based on the first data and the second data.

[0150] S132. Determine the upper limit of the corresponding threshold range based on the corresponding first data, second data, and first preset parameters.

[0151] In this embodiment, the threshold range is determined during the testing process.

[0152] In step S131, either the first data L1 or the second data L2 can be used as the lower limit of the threshold range, or the average of the first data L1 and the second data L2 can be used as the lower limit of the threshold range.

[0153] In step S132, the first preset coefficient K1 can be obtained in advance and stored in the electronic device. The first preset coefficient K1 is related to the correlation coefficient of the electronic device's display screen, such as being strongly correlated with the screen coefficient. The first preset coefficient K1 can be obtained by learning the correlation coefficient of the current display screen through a neural network using a preset training algorithm. The upper limit of the threshold range is, for example, K1*(L1+L2).

[0154] Combining steps S132 and S134, the threshold range corresponding to each set of test data can be determined. Therefore, in step S1302, the target third data L3-1 satisfies either L1 or L2. <L3-1<K1*(L1+L2)。

[0155] In one exemplary embodiment, such as Figure 5 As shown, after step S140, the method in this embodiment may further include the following steps:

[0156] S150, Obtain configuration information.

[0157] S160. Based on the brightness and configuration information, output the type of light source corresponding to the brightness.

[0158] In step S150, the configuration information includes the correspondence between light source types and light source parameters. The light source parameters include brightness, color temperature, and production standards. This configuration information can be obtained and stored during the manufacturing process of the electronic device by testing the corresponding light source parameters for different light sources.

[0159] Light sources can be of various types, such as xenon, LED, and halogen lamps. Each type of light source has corresponding parameters, including set brightness values, recommended color temperatures, and national standards.

[0160] In step S160, the processor or preset application can query the configuration information in a traversal manner based on the detected brightness to obtain the type of light source corresponding to the brightness of the light source under test, as well as other corresponding light source parameters. For example, it can obtain the national standard that the light source under test should correspond to.

[0161] In this step, after determining the type of light source, the processor or pre-installed application of the electronic device can perform a quality evaluation of the light source under test. For example, it can determine whether the light source under test conforms to the corresponding national standard.

[0162] In other embodiments, other parameters of the light source under test besides brightness, such as color temperature, can also be measured using the method described above. Furthermore, this embodiment can be used to determine whether the color temperature of the light source under test is safe and comfortable (e.g., blue light at wavelengths of 400–475 nm is harmful), and an evaluation result can be output.

[0163] Based on the determined parameters such as brightness or color temperature of the light source under test, the evaluation results can include: whether it meets national standards, or the corresponding level; or whether blue light exceeds the standard, etc. The interface of the preset application can display the evaluation results, intuitively informing the user of the brightness and other parameters of the light source under test.

[0164] In one exemplary embodiment, this disclosure also provides a brightness detection device applied to an electronic device, the electronic device including: a first photosensitive element located on the display screen side, a second photosensitive element located on the housing side, and a third photosensitive element located on the top of the mid-frame. Wherein, as Figure 9 As shown, the apparatus of this embodiment includes: a publishing module 110, a first determining module 120, a second determining module 130, and a third determining module 140. The apparatus of this embodiment is used to implement... Figure 1 The method is illustrated below. The issuing module 110 is used to issue a voice control command when the electronic device is in a first position and preset detection conditions are met. In the first position, the display screen of the electronic device is away from the light source under test, and the distance between the third photosensitive element and the light source under test is less than a preset distance. The preset detection conditions characterize the darkroom conditions, and the voice control command instructs the light source under test to be turned on. The first determining module 120 is used to determine ambient light data based on data detected by the first photosensitive element when the light source under test is turned on. The second determining module 130 is used to determine the average photosensitive data of the third photosensitive element along a preset path of movement of the electronic device; the starting point of the preset path is the first position. The third determining module 140 is used to determine the brightness of the light source under test based on the ambient light data and the average photosensitive data. In this embodiment, the third determining module 140 is further used to determine the brightness based on the ambient light data, the average photosensitive data, and a pre-stored second preset parameter, wherein the second preset parameter is related to the reflectance coefficient of the display screen.

[0165] In one exemplary embodiment, the apparatus of this embodiment further includes: a fourth determining module. The apparatus of this embodiment is used to implement as follows: Figure 2The method is illustrated. The fourth determining module is used to: determine the initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element at the first position; determine that a preset detection condition is met in response to the fact that the initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element are all not greater than a first threshold; and output a prompt message in response to the fact that at least one of the initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element is greater than the first threshold, wherein the prompt message is used to indicate that the preset detection condition is not met. In this embodiment, the fourth determining module is further used to: at the first position, acquire multiple data collected by the first photosensitive element at a preset frequency, multiple data collected by the second photosensitive element at a preset frequency, and multiple data collected by the third photosensitive element at a preset frequency; determine the first average value of the multiple data collected by the first photosensitive element as the initial data of the first photosensitive element; determine the second average value of the multiple data collected by the second photosensitive element as the initial data of the second photosensitive element; and determine the third average value of the multiple data collected by the third photosensitive element as the initial data of the third photosensitive element.

[0166] In one exemplary embodiment, the apparatus of this embodiment still refers to Figure 9 As shown, the apparatus of this embodiment includes: a publishing module 110, a first determining module 120, a second determining module 130, and a third determining module 140. The apparatus of this embodiment is used to implement... Figure 3 The method shown. The second determining module 130 is further configured to: acquire multiple sets of test data from a first position to the endpoint of a preset path, in response to the stability of first data detected by a first photosensitive element and second data detected by a second photosensitive element; wherein each set of target data includes a first set of data, a corresponding second set of data, and a corresponding third set of data detected by a third photosensitive element; in each set of test data, determine the target third set of data within a threshold range; and determine the average photosensitive data based on the target third set of data within the threshold range from the multiple sets of test data.

[0167] In one exemplary embodiment, the apparatus of this embodiment still refers to Figure 9 As shown, the apparatus of this embodiment includes: a publishing module 110, a first determining module 120, a second determining module 130, and a third determining module 140. The apparatus of this embodiment is used to implement... Figure 4 The method shown. The second determining module 130 is further configured to: in each set of test data, determine the lower limit of the corresponding threshold range based on the first data and the second data; and determine the upper limit of the corresponding threshold range based on the corresponding first data, the second data, and the first preset parameter.

[0168] In one exemplary embodiment, the apparatus further includes an acquisition module and an output module. The apparatus of this embodiment is used to implement... Figure 5The method is illustrated. The acquisition module acquires configuration information, including the correspondence between light source types and light source parameters, such as brightness. The output module outputs the light source type corresponding to the brightness, based on the brightness and configuration information.

[0169] like Figure 10 The diagram shown is a block diagram of an electronic device. This disclosure also provides an electronic device, for example, device 500 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.

[0170] Device 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input / output (I / O) interface 512, sensor component 514, and communication component 516.

[0171] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.

[0172] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of this data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device 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 storage, flash memory, magnetic disk, or optical disk.

[0173] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 500.

[0174] Multimedia component 508 includes a screen that provides an output interface between device 500 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0175] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.

[0176] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0177] Sensor assembly 514 includes one or more sensors for providing state assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0178] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0179] In an exemplary embodiment, device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0180] Another exemplary embodiment of this disclosure provides a non-transitory computer-readable storage medium, such as a memory 504 including instructions that can be executed by a processor 520 of a device 500 to perform the described method. For example, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device. When the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to perform the described method.

[0181] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.

[0182] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A brightness detection method, characterized in that, The method is applied to an electronic device, which includes: a first photosensitive element located on the side of the display screen, a second photosensitive element located on the side of the housing, and a third photosensitive element located on the top of the mid-frame; wherein the method includes: When the electronic device is in a first position and the preset detection conditions are met, a voice control command is issued; wherein, in the first position, the display screen of the electronic device is away from the light source to be tested, and the distance between the third photosensitive element and the light source to be tested is less than a preset distance; the preset detection conditions are used to characterize the darkroom conditions, and the voice control command is used to instruct the light source to be tested to be turned on; With the light source under test turned on, ambient light data is determined based on the data detected by the first photosensitive element; On a preset path of movement of the electronic device, the average photosensitive data of the third photosensitive element is determined; wherein, the starting point of the preset path is the first position; The brightness of the light source to be tested is determined based on the ambient light data and the average photosensitivity data. Before issuing the voice control command, the method further includes: The initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element at the first position are determined respectively; In response to the fact that the initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element are all not greater than the first threshold, it is determined that the preset detection condition is met; In response to at least one of the initial data from the first photosensitive element, the second photosensitive element, and the third photosensitive element being greater than the first threshold, a prompt message is output, wherein the prompt message is used to indicate that the preset detection conditions are not met.

2. The brightness detection method according to claim 1, characterized in that, The process of determining the initial data for the first photosensitive element, the second photosensitive element, and the third photosensitive element at the first position includes: At the first position, multiple data points collected by the first photosensitive element at a preset frequency, multiple data points collected by the second photosensitive element at a preset frequency, and multiple data points collected by the third photosensitive element at a preset frequency are acquired respectively. The first mean value of multiple data collected by the first photosensitive element is determined as the initial data of the first photosensitive element; The second mean of multiple data collected by the second photosensitive element is determined as the initial data of the second photosensitive element; The third mean of multiple data collected by the third photosensitive element is determined as the initial data of the third photosensitive element.

3. The brightness detection method according to claim 1, characterized in that, Determining the average photosensitivity data of the third photosensitive element along a preset path of movement of the electronic device includes: From the first position to the end point of the preset path, in response to the first data detected by the first photosensitive element and the second data detected by the second photosensitive element remaining stable, multiple sets of test data are acquired; wherein, each set of target data includes one set of the first data, the corresponding second data, and the corresponding third data detected by the third photosensitive element; In each set of test data, a target third data point within the threshold range is identified; The average photosensitivity data is determined based on the target third data within the threshold range from multiple sets of test data.

4. The brightness detection method according to claim 3, characterized in that, The method further includes: In each set of test data, the lower limit of the corresponding threshold range is determined based on the first data and the second data; Based on the corresponding first data, second data, and first preset parameters, the upper limit of the corresponding threshold range is determined.

5. The brightness detection method according to any one of claims 1 to 4, characterized in that, Determining the brightness of the light source to be tested based on the ambient light data and the average photosensitivity data includes: The brightness is determined based on the ambient light data, the average photosensitivity data, and a pre-stored second preset parameter, wherein the second preset parameter is related to the reflectivity of the display screen.

6. The brightness detection method according to any one of claims 1 to 4, characterized in that, The method further includes: Obtain configuration information, which includes the correspondence between light source types and light source parameters, including the brightness of the light source; Based on the brightness and the configuration information, output the type of light source corresponding to the brightness.

7. A brightness detection device, characterized in that, Applied to an electronic device, the electronic device includes: a first photosensitive element located on the side of the display screen, a second photosensitive element located on the side of the housing, and a third photosensitive element located on the top of the middle frame; wherein, the device includes: The publishing module is used to publish a voice control command when the electronic device is in a first position and a preset detection condition is met; wherein, in the first position, the display screen of the electronic device is away from the light source to be tested, and the distance between the third photosensitive element and the light source to be tested is less than a preset distance; the preset detection condition is used to characterize the darkroom conditions, and the voice control command is used to instruct the light source to be tested to be turned on; The first determining module is used to determine ambient light data based on the data detected by the first photosensitive element when the light source to be tested is turned on. The second determining module is used to determine the average photosensitive data of the third photosensitive element along a preset path of movement of the electronic device; wherein the starting point of the preset path is the first position; The third determining module is used to determine the brightness of the light source to be tested based on the ambient light data and the average photosensitivity data. The fourth determining module is used to determine the initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element at the first position, respectively; In response to the fact that the initial data of the first photosensitive element, the second photosensitive element, and the third photosensitive element are all not greater than the first threshold, it is determined that the preset detection condition is met; In response to at least one of the initial data from the first photosensitive element, the second photosensitive element, and the third photosensitive element being greater than the first threshold, a prompt message is output, wherein the prompt message is used to indicate that the preset detection conditions are not met.

8. The brightness detection device according to claim 7, characterized in that, The fourth determining module is also used for: At the first position, multiple data points collected by the first photosensitive element at a preset frequency, multiple data points collected by the second photosensitive element at a preset frequency, and multiple data points collected by the third photosensitive element at a preset frequency are acquired respectively. The first mean value of multiple data collected by the first photosensitive element is determined as the initial data of the first photosensitive element; The second mean of multiple data collected by the second photosensitive element is determined as the initial data of the second photosensitive element; The third mean of multiple data collected by the third photosensitive element is determined as the initial data of the third photosensitive element.

9. The brightness detection device according to claim 7, characterized in that, The second determining module is also used for: From the first position to the end point of the preset path, in response to the first data detected by the first photosensitive element and the second data detected by the second photosensitive element remaining stable, multiple sets of test data are acquired; wherein, each set of target data includes one set of the first data, the corresponding second data, and the corresponding third data detected by the third photosensitive element; In each set of test data, a target third data point within the threshold range is identified; The average photosensitivity data is determined based on the target third data within the threshold range from multiple sets of test data.

10. The brightness detection device according to claim 9, characterized in that, The second determining module is also used for: In each set of test data, the lower limit of the corresponding threshold range is determined based on the first data and the second data; Based on the corresponding first data, second data, and first preset parameters, the upper limit of the corresponding threshold range is determined.

11. The brightness detection device according to any one of claims 7 to 10, characterized in that, The third determining module is also used for: The brightness is determined based on the ambient light data, the average photosensitivity data, and a pre-stored second preset parameter, wherein the second preset parameter is related to the reflectivity of the display screen.

12. The brightness detection device according to any one of claims 7 to 10, characterized in that, The device further includes: The acquisition module is used to acquire configuration information, which includes the correspondence between light source types and light source parameters, and the light source parameters include the brightness of the light source; The output module is used to output the type of light source corresponding to the brightness, based on the brightness and the configuration information.

13. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to perform the brightness detection method as described in any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the brightness detection method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Electronic equipment, display control method and readable storage medium

    CN112489603A