Ambient brightness acquisition method and device and screen brightness adjustment method and device

By capturing the target image through the shooting device in the multimedia device and combining it with the exposure parameters to obtain the ambient brightness value, the problem of increased cost of the photosensitive device is solved, and the accurate acquisition of the ambient brightness and automatic adjustment of the screen brightness are achieved.

CN120711297APending Publication Date: 2025-09-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410346460.3
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

Technical Problem

Existing multimedia devices use light sensors to obtain the brightness of ambient light, which increases installation costs.

Method used

The target image is captured by a shooting device in the multimedia device, the brightness value is calculated, and the ambient brightness value is obtained in combination with the exposure parameters. The light sensing conditions of the shooting device are utilized without the need to add a separate light sensing device.

Benefits of technology

It reduces the cost of obtaining ambient light, improves the accuracy and stability of ambient brightness values, and realizes automatic adjustment of screen brightness and improvement of display effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120711297A_ABST
    Figure CN120711297A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an environment brightness obtaining method and device and a screen brightness adjusting method and device. The method comprises the steps of calculating a brightness value of a target image according to the shot target image, obtaining an environment brightness value of an environment where the multimedia equipment is located based on the brightness value and an exposure parameter of the shooting device, and displaying the environment brightness value of the environment where the multimedia equipment is located according to the brightness value and the exposure parameter of the shooting device. The exposure parameters comprise exposure time, aperture and light sensitivity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of image processing technology, and in particular to a method and device for obtaining ambient brightness and adjusting screen brightness. Background Art

[0002] Most multimedia devices currently have light sensors, typically using photoresistors or photodiodes, to measure ambient light intensity. When ambient light strikes a photoresistor or photodiode, a photoelectric effect occurs, generating a current or voltage. Multimedia devices can detect changes in this current or voltage to determine the brightness of the ambient light.

[0003] However, the light sensor is a separate device for obtaining ambient brightness. Using the light sensor to obtain the brightness of ambient light will increase the installation cost of the multimedia device. Summary of the Invention

[0004] To overcome the problems existing in the related art, this specification provides a method and device for obtaining ambient brightness and adjusting screen brightness.

[0005] According to a first aspect of any embodiment of this specification, a method for obtaining ambient brightness is provided, the method comprising:

[0006] Calculating a brightness value of a captured target image based on the captured target image, where the target image is captured by a capturing device in a multimedia device;

[0007] Based on the brightness value and exposure parameters of the shooting device, an ambient brightness value of the environment in which the multimedia device is located is acquired, where the exposure parameters include: exposure time, aperture, and sensitivity.

[0008] According to a second aspect of any embodiment of this specification, a method for adjusting screen brightness is provided, the method comprising:

[0009] Obtaining an ambient brightness value, where the ambient brightness value is obtained by the ambient brightness acquisition method described in any embodiment of this specification;

[0010] The screen brightness of the multimedia device is adjusted according to the ambient brightness value.

[0011] According to a third aspect of any embodiment of this specification, there is provided an apparatus for obtaining ambient brightness, the apparatus comprising:

[0012] a brightness value calculation module, configured to calculate the brightness value of a target image according to a captured target image, wherein the target image is captured by a capturing device in a multimedia device;

[0013] The ambient brightness value acquisition module is used to acquire the ambient brightness value of the environment in which the multimedia device is located based on the brightness value and exposure parameters of the shooting device, where the exposure parameters include: exposure time, aperture and sensitivity.

[0014] According to a fourth aspect of any embodiment of this specification, a screen brightness adjustment device is provided, the device comprising:

[0015] a brightness value acquisition module, configured to acquire an ambient brightness value, wherein the ambient brightness value is obtained by the ambient brightness acquisition method described in any embodiment of this specification;

[0016] The screen brightness adjustment module is used to adjust the screen brightness of the multimedia device according to the ambient brightness value.

[0017] According to a fifth aspect of any embodiment of this specification, there is provided an electronic device, including:

[0018] processor;

[0019] a memory for storing processor-executable instructions;

[0020] The processor implements the method described in any embodiment of this specification by running the executable instructions.

[0021] According to a sixth aspect of any embodiment of this specification, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps of the method described in any embodiment of this specification are implemented.

[0022] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0023] According to the above embodiments, by calculating the brightness value of the target image based on the target image captured by the shooting device in the multimedia device, the ambient brightness value of the environment in which the multimedia device is located is obtained based on the brightness value, as well as the exposure time, aperture and sensitivity of the shooting device. The ambient brightness value is directly determined according to the target image captured by the shooting device in the multimedia device, and the ambient brightness value is obtained using the existing light sensing conditions of the shooting device. There is no need to add a separate light sensing device to obtain ambient light information, thereby reducing the cost of obtaining ambient light.

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

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0026] Figure 1 is a flow chart of a method for obtaining ambient brightness according to an exemplary embodiment of this specification;

[0027] Figure 2 is a flow chart of a method for compensating ambient brightness value according to an exemplary embodiment of this specification;

[0028] Figure 3 This is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment of this specification;

[0029] Figure 4 is a flowchart of another method for adjusting screen brightness according to an exemplary embodiment of this specification;

[0030] Figure 5 is a structural diagram of an electronic device according to an exemplary embodiment of this specification;

[0031] Figure 6 is a block diagram of a device for obtaining ambient brightness according to an exemplary embodiment of this specification;

[0032] Figure 7 This is a block diagram of a screen brightness adjustment device according to an exemplary embodiment of the present specification. DETAILED DESCRIPTION

[0033] 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 embodiments consistent with this specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of this specification, as detailed in the appended claims.

[0034] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. As used in this specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0035] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information without departing from the scope of this specification. Depending on the context, the term "if" as used herein may be interpreted as "when," "when," or "in response to determining."

[0036] Currently, most multimedia devices obtain the brightness of ambient light through light sensors. However, adding light sensors to multimedia devices will increase the installation cost of the multimedia devices.

[0037] In order to solve the above problems, the embodiments of this specification propose a method for obtaining ambient brightness. To further illustrate this specification, the following embodiments are provided:

[0038] like Figure 1 As shown, Figure 1 This is a flowchart of a method for obtaining ambient brightness according to an exemplary embodiment of this specification. This method can be applied to multimedia devices, which are electronic devices with a camera, such as mobile phones, tablets (Portable Android Devices, PADs), robots, and vehicles. The camera can be used to capture images and includes a photosensitive device such as a charge-coupled device (CCD) or a complementary metal oxide semiconductor (CMOS).

[0039] The method for obtaining ambient brightness may include the following steps:

[0040] Step 102: Calculate the brightness value of the target image according to the captured target image, where the target image is captured by a capturing device in the multimedia device.

[0041] In this step, the shooting device in the multimedia device can shoot a target image, which is an image of the surrounding environment of the multimedia device.

[0042] The multimedia device can calculate the brightness value of the target image based on the captured target image. The embodiments of this specification do not limit the specific method of calculating the brightness value, and may include but is not limited to the following examples:

[0043] For example, the brightness values ​​of all pixels in the target image may be added together and then divided by the total number of pixels to calculate the average brightness of the target image, and the obtained average brightness is used as the brightness value of the target image.

[0044] For another example, the multimedia device may convert the captured target image into a grayscale image, and calculate the mean value of the grayscale image as the brightness value of the target image.

[0045] Furthermore, before calculating the brightness value of the captured target image, the multimedia device may capture the target image based on an exposure parameter within a preset range. The multimedia device may detect the captured target image to determine whether the target image is overexposed.

[0046] The multimedia device can calculate the exposure value of the target image and, if it detects that the exposure value of the target image is greater than a preset exposure threshold, adjust the exposure parameters, such as reducing the aperture, shutter speed, or sensitivity. After adjusting the exposure parameters, the target image is captured again until the exposure value of the target image is less than or equal to the preset exposure threshold, thereby bringing the target image within the usable range.

[0047] Exposure parameters include, but are not limited to, exposure time, aperture, and sensitivity. Exposure time is the amount of time the shutter remains open to project light onto the photosensitive surface of the photosensitive device in the camera. Aperture controls the amount of light that passes through the lens and enters the photosensitive surface. Sensitivity sets the level of light sensitivity.

[0048] As described above, by adjusting the exposure parameters until the exposure value of the target image is less than or equal to the preset exposure threshold when it is detected that the exposure value of the target image is greater than the preset exposure threshold, the use of an overexposed target image to determine the ambient brightness value is avoided, thereby ensuring the accuracy of the ambient brightness value determined based on the target image.

[0049] Step 104: Acquire the ambient brightness value of the environment in which the multimedia device is located based on the brightness value and exposure parameters of the shooting device, where the exposure parameters include exposure time, aperture, and sensitivity.

[0050] In this step, when the multimedia device captures an image, the amount of light flux reaching the photosensitive element in the capture device is determined by the physical scene brightness, exposure time, aperture, and sensitivity. Therefore, when sensing ambient brightness, the multimedia device can obtain the brightness value of the target image captured by the multimedia device in step 102 as the physical scene brightness. Combined with the exposure parameters of the capture device when capturing the target image—namely, exposure time, aperture, and sensitivity—the ambient brightness value of the multimedia device's environment is obtained.

[0051] Specifically, a calibration coefficient can be pre-set by conducting experiments on multimedia devices and shooting devices. The calibration coefficient is used to calibrate the difference in ambient brightness values ​​of different multimedia devices. The multimedia device can calculate the ambient brightness value according to the following formula (1):

[0052]

[0053] Where DAC_raw is the ambient brightness value, IB is the brightness value of the target image, ISO is the sensitivity, t is the exposure time, f is the aperture, and ε is the calibration coefficient.

[0054] After obtaining the ambient brightness value, the multimedia device can implement brightness monitoring functions based on the ambient brightness value, such as automatically adjusting the screen brightness, monitoring the light intensity of pharmaceutical and planting environments, etc.

[0055] Furthermore, the multimedia device may obtain a reference image captured, where the reference image and the target image are captured from different directions. The reference image and the target image may be captured by different capturing devices in the multimedia device, for example, the reference image is captured using a front camera and the target image is captured using a rear camera. The reference image and the target image may also be captured by the same capturing device in the multimedia device from different directions.

[0056] The multimedia device can calculate a reference brightness value for the captured reference image based on the captured reference image, and obtain a reference ambient brightness value corresponding to the reference image based on the reference brightness value and the exposure parameters of the capture device corresponding to the reference image. The methods for calculating the reference brightness value and the reference ambient brightness value are consistent with the methods for calculating the brightness value and the ambient brightness value in the above-described embodiment and are not further described here.

[0057] The multimedia device can adjust the ambient brightness value based on the reference ambient brightness value. The ambient brightness value can be adjusted, for example, by using the reference ambient brightness value as the ambient brightness value when the reference ambient brightness value is greater than the ambient brightness value. Alternatively, the ambient brightness value can be adjusted by calculating the average of the reference ambient brightness value and the ambient brightness value, which is not limited in this embodiment of the present specification.

[0058] As mentioned above, by obtaining the reference ambient brightness value corresponding to the captured reference image, since the reference image and the target image are shot in different directions, the ambient brightness value can be avoided from being dark in backlit scenes such as when the multimedia device is facing away from a point light source. By adjusting the ambient brightness value according to the reference ambient brightness value in different shooting directions, the ambient brightness value can be made more accurate.

[0059] The ambient brightness acquisition method of this embodiment calculates the brightness value of the target image based on the target image captured by the shooting device in the multimedia device, and obtains the ambient brightness value of the environment in which the multimedia device is located based on the brightness value, as well as the exposure time, aperture and sensitivity of the shooting device. The ambient brightness value is directly determined based on the target image captured by the shooting device in the multimedia device, and the ambient brightness value is obtained using the existing light sensing conditions of the shooting device. There is no need to add a separate light sensing device to obtain ambient light information, thereby reducing the cost of obtaining ambient light.

[0060] The aforementioned embodiments describe obtaining the ambient brightness value of the multimedia device's environment based on a captured target image and exposure parameters of a capture device. However, the ambient brightness value obtained by the multimedia device may vary depending on the light source type and illumination angle. The following embodiments provide a more detailed explanation of how to compensate for the ambient brightness value, which is applicable to any of the aforementioned embodiments.

[0061] In one embodiment, the multimedia device can obtain ambient lighting information based on the target image captured by the camera and compensate for the ambient brightness based on the ambient lighting information, wherein the ambient lighting information includes, for example, light source type, illumination angle, illumination distance, etc.

[0062] Taking the light source type as an example, the multimedia device can obtain brightness difference information between each pixel in the target image, and determine the light source type of the ambient light source corresponding to the target image based on the brightness difference information.

[0063] The brightness difference information can be, for example, image processing of the target image to calculate the mean square error of brightness between each pixel, or measuring the brightness level corresponding to each pixel. The ambient light source is the light source in the environment where the multimedia device is located, such as a point light source, a line light source, a surface light source, a multi-point light source, a diffuse light source, etc.

[0064] The method for confirming the light source type is, for example, if the mean square error of the brightness between each pixel point on the acquired target image is less than or equal to the preset mean square error threshold, then the difference between each pixel point on the target image is small, and it can be determined that the ambient light source comes from a surface light source or a diffuse reflection light source.

[0065] If the brightness mean square error between each pixel on the acquired target image is greater than the mean square error threshold, the difference between each pixel on the target image is large, and there may be a large bright spot on the target image. It can be determined that the ambient light source comes from a point light source or a line light source.

[0066] The multimedia device can also further determine the distribution state, contour features, etc. of the pixels in the target image and determine the light source type of the ambient light source through image processing technology.

[0067] After determining the light source type of the ambient light source, the multimedia device can compensate for the ambient brightness value based on the light source type using a preset compensation coefficient corresponding to the light source type, wherein the preset compensation coefficient is obtained by pre-testing the multimedia device under different light source types.

[0068] The multimedia device can also perform weighted processing, convolution processing, and other operations on the brightness values ​​of each pixel in the target image based on the determined light source type to obtain a compensated target image. The compensated brightness value of the compensated target image is calculated, and the compensated ambient brightness value is obtained based on the compensated brightness value and the exposure parameters of the camera.

[0069] As described above, the light source type of the ambient light source corresponding to the target image is determined based on the brightness difference information between each pixel point in the target image, and the ambient brightness value is compensated according to the light source type. Since the stability of the light intensity obtained by different light source types is inconsistent, the ambient brightness value is compensated according to the identified light source type. This can make the brightness displayed in the current scene as consistent as possible, thereby improving the stability of the ambient brightness value.

[0070] For further information, see Figure 2 , Figure 2 This specification is a flowchart illustrating a method for compensating ambient brightness values ​​according to an exemplary embodiment. The method for compensating ambient brightness values ​​may include the following steps:

[0071] Step 202: Acquire the illumination angle of the ambient light source according to the captured field of view angle and the light source position, where the light source position is the position of the ambient light source in the target image.

[0072] In this step, the multimedia device can use image processing technology to obtain the brightness and color information of the target image, detect the light source position of the ambient light source in the target image, and calculate the position of the ambient light source relative to the multimedia device itself and the angle of illumination of the ambient light source relative to the multimedia device based on the field of view (FOV) when the target image was captured. The field of view refers to the angular range within which the camera can receive images, also often referred to as the field of view.

[0073] As described above, by obtaining the illumination angle of the ambient light source according to the captured field angle and the light source position, the obtained illumination angle can be made more accurate, thereby compensating through the accurate illumination angle and improving the accuracy of the ambient light brightness value.

[0074] Step 204: Determine a light compensation coefficient according to the light source type and the illumination angle of the ambient light source.

[0075] In this step, the multimedia device can determine the light compensation coefficient corresponding to the illumination angle under the light source type according to the light source type and the illumination angle of the ambient light source obtained in step 202. The light compensation coefficient is obtained in advance by testing the multimedia device under different light source types and illumination angles.

[0076] Step 206: Compensate the ambient brightness value based on the light compensation coefficient.

[0077] In this step, the multimedia device may compensate for the ambient brightness value based on the light compensation coefficient determined in step 204. The multimedia device may calculate the compensated ambient brightness value according to the following formula (2):

[0078] DAC=DAC_raw*θ (2)

[0079] Wherein, DAC is the compensated ambient brightness value, DAC_raw is the ambient brightness value obtained based on the brightness value of the target image and the exposure parameters, and θ is the light compensation coefficient.

[0080] For example, if it is determined that the light source type of the ambient light source corresponding to the target image is a point light source, in the illumination scene of the point light source, when it is detected that the illumination angle between the point light source and the multimedia device is 30°, compared with the state where the point light source directly illuminates the multimedia device, the ambient brightness value calculated based on the target image when the illumination angle is 30° will be smaller than the ambient brightness value calculated when the ambient light source is in the direct state.

[0081] The multimedia device may obtain a light compensation coefficient θ corresponding to a point light source type and an illumination angle of 30°, and calculate a compensated ambient brightness value based on the light compensation coefficient θ and the ambient brightness value calculated according to the target image.

[0082] As described above, by determining the light compensation coefficient based on the light source type and the illumination angle of the ambient light source, since the light intensity calculated when the ambient light source illuminates the multimedia device at different angles is different, the ambient brightness value is compensated based on the light compensation coefficient corresponding to the illumination angle and the light source type, the ambient light brightness value can be made more accurate.

[0083] Furthermore, after compensating for the ambient brightness value, the multimedia device may delete the target image to prevent the target image from occupying storage space of the multimedia device and reduce storage pressure on the multimedia device.

[0084] In the above embodiments, a method for obtaining and compensating an ambient brightness value is described. In the following embodiments, how to apply the obtained ambient brightness value will be described in more detail, and can be applied to any of the above embodiments.

[0085] See also Figure 3 , Figure 3 This is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment of this specification. This method can be applied to multimedia devices, including but not limited to: a camera for capturing a target image. This method can include the following steps:

[0086] Step 302: Acquire an ambient brightness value, where the ambient brightness value is obtained by the ambient brightness acquisition method in any of the above embodiments.

[0087] In this step, the multimedia device may obtain an ambient brightness value obtained according to the ambient brightness acquisition method in any of the above embodiments.

[0088] Step 304: Adjust the screen brightness of the multimedia device according to the ambient brightness value.

[0089] In this step, the multimedia device can automatically adjust the screen brightness of the multimedia device by obtaining a screen brightness value corresponding to the ambient brightness value in a preset brightness mapping relationship based on the ambient brightness value. The screen brightness refers to the brightness of the display screen of the multimedia device. The brightness mapping relationship is a mapping relationship between ambient brightness values ​​and screen brightness values ​​pre-stored in the form of a brightness curve, table, or the like.

[0090] It is understandable that using the ambient brightness value to adjust the screen brightness is only an example, and the ambient brightness value can also be applied to other scenarios as long as the scenario can implement the method described in the embodiments of this specification. The embodiments of this specification do not limit this.

[0091] The screen brightness adjustment method of this embodiment adjusts the screen brightness of the multimedia device by determining the ambient brightness value based on the captured target image and exposure parameters, and realizes automatic adjustment of the screen brightness by replacing the additional light-sensing device with the capturing device, which can reduce the cost of automatically adjusting the screen brightness; and, based on the light source type and the illumination angle of the ambient light source, compensates for the ambient brightness value, and uses the compensated ambient brightness value to adjust the screen brightness, thereby improving the display effect of the screen brightness and enhancing the user experience of automatically adjusting the screen brightness in different light source scenarios.

[0092] To further explain the process of obtaining the ambient brightness value and adjusting the screen brightness of multimedia devices, see Figure 4 , Figure 4 This specification provides a flowchart of another method for adjusting screen brightness according to an exemplary embodiment. The method for adjusting screen brightness may include the following steps:

[0093] Step 402: Capture a target image.

[0094] In this step, the shooting device in the multimedia device can shoot the target image based on the exposure time, aperture and sensitivity within the preset range.

[0095] Step 404: Determine whether the target image is overexposed.

[0096] In this step, the multimedia device may detect the exposure value of the target image, compare the exposure value of the target image with a preset exposure threshold, and determine whether the target image is in an overexposed state.

[0097] If the exposure value of the target image is greater than the preset exposure threshold, the target image is in an overexposed state, and step 406 is continued.

[0098] If the exposure value of the target image is less than or equal to the preset exposure threshold, the target image is not in an overexposed state, and step 408 is executed.

[0099] Step 406: Adjust exposure parameters.

[0100] In this step, the multimedia device may adjust the exposure parameters until the exposure value of the target image captured by the capturing device is less than or equal to a preset exposure threshold.

[0101] Step 408: Calculate the brightness value of the target image.

[0102] In this step, the multimedia device may calculate the brightness value of the target image based on the captured target image.

[0103] Step 410: Obtain the ambient brightness value.

[0104] In this step, the multimedia device may obtain the ambient brightness value of the environment in which the multimedia device is located based on the brightness value calculated in step 408 and in combination with the exposure time, aperture and sensitivity of the shooting device when shooting the target image.

[0105] Step 412: Determine the light source type of the ambient light source.

[0106] In this step, the multimedia device may obtain brightness difference information between pixels in the target image and determine the light source type of the ambient light source corresponding to the target image.

[0107] Step 414: Obtain the illumination angle of the ambient light source.

[0108] In this step, the multimedia device may obtain the irradiation angle of the ambient light source according to the captured field of view angle and the light source position of the ambient light source in the target image.

[0109] Step 416: Determine the light compensation coefficient.

[0110] In this step, the multimedia device may determine a light compensation coefficient according to the light source type determined in step 412 and the illumination angle of the ambient light source obtained in step 414 .

[0111] Step 418: Compensate for the ambient brightness value.

[0112] In this step, the multimedia device may compensate for the ambient brightness value based on the light compensation coefficient determined in step 416 .

[0113] Step 420: Adjust the screen brightness of the multimedia device.

[0114] In this step, the multimedia device may adjust the screen brightness of the multimedia device according to the ambient brightness value compensated in step 418 , and display the screen brightness corresponding to the ambient brightness value.

[0115] Figure 5 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of this specification. The electronic device may be, for example, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a personal digital assistant, a server, a smart home appliance, a vehicle, a robot, etc. Figure 5 At the hardware level, the electronic device includes a processor 502, an internal bus 504, a network interface 506, a memory 508, and a non-volatile memory 510. Of course, it may also include hardware required for other services. The processor 502 reads the corresponding computer program from the non-volatile memory 510 into the memory 508 and then runs it, forming an ambient brightness acquisition device at the logical level. Of course, in addition to software implementation, this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0116] Figure 6 This is a block diagram of an ambient brightness acquisition device according to an exemplary embodiment of the present specification. Figure 6 The device may include: a brightness value calculation module 602 and an environment brightness value acquisition module 604, wherein:

[0117] The brightness value calculation module 602 is used to calculate the brightness value of the target image according to the captured target image, where the target image is captured by a capturing device in the multimedia device;

[0118] The ambient brightness value acquisition module 604 is configured to acquire the ambient brightness value of the environment in which the multimedia device is located based on the brightness value and exposure parameters of the shooting device, where the exposure parameters include exposure time, aperture, and sensitivity.

[0119] In one example, the ambient brightness value acquisition module 604 is further used to determine the light source type of the ambient light source corresponding to the target image based on the brightness difference information between each pixel point in the target image; and compensate the ambient brightness value according to the light source type.

[0120] In one example, the ambient brightness value acquisition module 604, when compensating the ambient brightness value according to the light source type, is further used to: determine a light compensation coefficient according to the light source type and the illumination angle of the ambient light source; and compensate the ambient brightness value based on the light compensation coefficient.

[0121] In one example, the ambient brightness value acquisition module 604, before determining the light compensation coefficient based on the light source type and the illumination angle of the ambient light source, is also used to: obtain the illumination angle of the ambient light source based on the captured field of view angle and the light source position, where the light source position is the position of the ambient light source in the target image.

[0122] In one example, the brightness value calculation module 602, before calculating the brightness value of the target image based on the captured target image, is also used to adjust the exposure parameters when it is detected that the exposure value of the target image is greater than a preset exposure threshold, until the exposure value of the target image is less than or equal to the preset exposure threshold.

[0123] In one example, the ambient brightness value acquisition module 604 is further used to obtain a reference ambient brightness value corresponding to a captured reference image, where the reference image and the target image are shot in different directions; and adjust the ambient brightness value according to the reference ambient brightness value.

[0124] Figure 7 This is a block diagram of a screen brightness adjustment device according to an exemplary embodiment of the present specification. Figure 7 The device may include: a brightness value acquisition module 702 and a screen brightness adjustment module 704, wherein:

[0125] The brightness value acquisition module 702 is used to acquire an ambient brightness value, where the ambient brightness value is obtained by the ambient brightness acquisition method described in any embodiment of this specification;

[0126] The screen brightness adjustment module 704 is configured to adjust the screen brightness of the multimedia device according to the ambient brightness value.

[0127] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0128] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0129] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions. The above instructions can be executed by a processor of the ambient brightness acquisition device to implement any method as described in the above embodiments.

[0130] The non-temporary computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc., and this application does not limit this.

[0131] In an exemplary embodiment, a computer program product including a computer program / instruction is further provided. The computer program / instruction can be executed by a processor of a data synchronization device to implement any of the methods described in the above embodiments.

[0132] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

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

[0134] It should be understood that the present description is not limited to the exact structure that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

[0135] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A method for obtaining ambient brightness, characterized in that: The method comprises: Calculating a brightness value of a captured target image based on the captured target image, where the target image is captured by a capturing device in a multimedia device; Based on the brightness value and exposure parameters of the shooting device, an ambient brightness value of the environment in which the multimedia device is located is acquired, where the exposure parameters include: exposure time, aperture, and sensitivity.

2. The method according to claim 1, characterized in that The method further comprises: Determining the light source type of the ambient light source corresponding to the target image based on brightness difference information between each pixel in the target image; The ambient brightness value is compensated according to the light source type.

3. The method according to claim 2, characterized in that The compensating the ambient brightness value according to the light source type includes: determining a light compensation coefficient according to the light source type and the illumination angle of the ambient light source; The ambient brightness value is compensated based on the light compensation coefficient.

4. The method according to claim 3, characterized in that Before determining the light compensation coefficient according to the light source type and the illumination angle of the ambient light source, the method further includes: The illumination angle of the ambient light source is obtained according to the captured field of view angle and the light source position, where the light source position is the position of the ambient light source in the target image.

5. The method according to claim 1, wherein Before calculating the brightness value of the target image based on the captured target image, the method further includes: When it is detected that the exposure value of the target image is greater than a preset exposure threshold, the exposure parameter is adjusted until the exposure value of the target image is less than or equal to the preset exposure threshold.

6. The method according to claim 1, wherein The method further comprises: Obtaining a reference environment brightness value corresponding to a captured reference image, where the reference image and the target image are captured in different directions; Adjust the ambient brightness value according to the reference ambient brightness value.

7. A screen brightness adjustment method, characterized in that: The method comprises: Acquire an ambient brightness value, wherein the ambient brightness value is obtained by the ambient brightness acquisition method according to any one of claims 1 to 6; The screen brightness of the multimedia device is adjusted according to the ambient brightness value.

8. An ambient brightness acquisition device, characterized in that: The device comprises: a brightness value calculation module, configured to calculate the brightness value of a target image according to a captured target image, wherein the target image is captured by a capturing device in a multimedia device; The ambient brightness value acquisition module is used to acquire the ambient brightness value of the environment in which the multimedia device is located based on the brightness value and exposure parameters of the shooting device, where the exposure parameters include: exposure time, aperture and sensitivity.

9. A screen brightness adjustment device, characterized in that: The device comprises: A brightness value acquisition module, configured to acquire an ambient brightness value, wherein the ambient brightness value is obtained by the ambient brightness acquisition method according to any one of claims 1 to 6; The screen brightness adjustment module is used to adjust the screen brightness of the multimedia device according to the ambient brightness value.

10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 7 by running the executable instructions.

11. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the method according to any one of claims 1 to 7 is implemented.