Exposure convergence method, device, electronic device and computer-readable storage medium

By determining the corresponding exposure parameter determination method based on the startup scene of the camera application, obtaining the initial exposure parameters and performing exposure convergence, the problem of unreasonable setting of the initial exposure parameter when the camera application is started in the prior art is solved, and the effect of shortening the exposure convergence time and improving the user experience is achieved.

CN114928700BActive Publication Date: 2025-03-28XIAN WINGTECH INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210745405.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2025-03-28
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

Existing camera applications cannot reasonably set the initial exposure parameters when starting, resulting in a long exposure convergence process and poor user experience.

Method used

Determine the corresponding exposure parameter determination method based on the startup scene (cold start, hot start or warm start) of the camera application, obtain the initial exposure parameters, and perform exposure convergence.

Benefits of technology

By setting appropriate initial exposure parameters, the time required for exposure convergence is shortened, the user experience is improved, and the problem of underexposed or excessive exposure is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114928700B_ABST
    Figure CN114928700B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing, and provides an exposure convergence method, device, electronic device, and computer-readable storage medium. The method includes: in response to a startup operation of a camera application, determining a startup scenario of the camera application; the startup scenario includes a cold start, a hot start, or a warm start; based on the startup scenario, executing an exposure parameter determination method corresponding to the startup scenario to obtain initial exposure parameters for this startup; different exposure parameter determination methods corresponding to different startup scenarios; and performing exposure convergence based on the initial exposure parameters for this startup. The use of this method can shorten the time required for exposure convergence, while fully avoiding underexposure or overexposure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an exposure convergence method, device, electronic device and computer-readable storage medium. Background Art

[0002] Camera is the most widely used configuration in smart terminals today. In practice, when a camera application is started, the exposure parameters of the camera application need to be adjusted so that the captured image has a normal exposure (i.e., moderate brightness and darkness). This adjustment process is also called exposure convergence.

[0003] Currently, although the camera application can accurately determine the final exposure parameters for normal image exposure based on the ambient light information, it is unable to reasonably set the initial exposure parameters used when the camera application is started, which makes the exposure convergence process take a long time, bringing a poor user experience. Summary of the invention

[0004] Based on this, it is necessary to provide an exposure convergence method, device, electronic device and computer-readable storage medium that can substantially shorten the time required for exposure convergence in order to address the above technical problems.

[0005] An embodiment of the present application provides an exposure convergence method, the method comprising:

[0006] In response to a startup operation of a camera application, determining a startup scenario of the camera application; the startup scenario includes a cold start, a hot start, or a warm start;

[0007] Based on the startup scene, executing the exposure parameter determination method corresponding to the startup scene to obtain the initial exposure parameters of this startup; and the exposure parameter determination method corresponding to different startup scenes is different;

[0008] Exposure convergence is performed based on the initial exposure parameters of this startup.

[0009] In one embodiment, a method for determining exposure parameters corresponding to the cold start includes:

[0010] Get the current ambient light brightness information;

[0011] Based on the current ambient light brightness information, determine the initial exposure parameters for this startup.

[0012] In one embodiment, determining the initial exposure parameter for this startup based on the current ambient light brightness information includes:

[0013] Obtain the corresponding relationship between ambient light brightness information and exposure parameters;

[0014] Based on the current ambient light brightness information and the corresponding relationship, the initial exposure parameters for this startup are determined.

[0015] In one embodiment, a method for determining exposure parameters corresponding to the hot start includes:

[0016] Obtain the ambient light brightness change amount of this startup; the ambient light brightness change amount is obtained based on the current ambient light brightness information and the ambient light brightness information when the camera application was last exited;

[0017] If the ambient light brightness change is less than or equal to the set brightness threshold, the exposure parameters when the camera application was last exited are used as the initial exposure parameters for this startup.

[0018] In one embodiment, the exposure parameter determination method corresponding to the hot start further includes:

[0019] If the change in ambient light brightness is greater than the set brightness threshold, the exposure parameter when the camera application was last exited is used as the first exposure parameter; based on the current ambient light brightness information, the second exposure parameter is determined; based on the first exposure parameter and the second exposure parameter, the initial exposure parameter for this startup is determined.

[0020] In one embodiment, a method for determining exposure parameters corresponding to the warm start includes:

[0021] Obtaining a statistical value of a first frame of image captured by the camera application;

[0022] If the statistical value is not within the set threshold range, determining the initial exposure parameter for this startup based on the current ambient light brightness information;

[0023] If the statistical value is within the set threshold range, the initial exposure parameter for this startup is determined based on the statistical value.

[0024] In one embodiment, the exposure parameters include at least one of the following:

[0025] Exposure time, image signal processing chip gain, and image sensor gain.

[0026] An embodiment of the present application provides an exposure convergence device, the device comprising:

[0027] A scene determination module, configured to determine a startup scene of the camera application in response to a startup operation of the camera application; the startup scene includes a cold start, a hot start, or a warm start;

[0028] An execution module, configured to execute, based on the startup scene, an exposure parameter determination method corresponding to the startup scene to obtain initial exposure parameters for this startup; and different exposure parameter determination methods corresponding to different startup scenes;

[0029] The convergence module is used to perform exposure convergence based on the initial exposure parameters of this startup.

[0030] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the exposure convergence method provided in any embodiment of the present application are implemented.

[0031] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the exposure convergence method provided by any embodiment of the present application are implemented.

[0032] The exposure convergence method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application determine the startup scenario of the camera application by setting a startup operation in response to the camera application; the startup scenario includes cold startup, hot startup or warm startup; based on the startup scenario, the exposure parameter determination method corresponding to the startup scenario is executed to obtain the initial exposure parameters of this startup; the exposure parameter determination method corresponding to different startup scenarios is different; based on the initial exposure parameters of this startup, exposure convergence is performed. The essence is to set the most appropriate initial exposure parameter determination scheme for each startup scenario according to its characteristics, so as to obtain initial exposure parameters that are relatively close to the target exposure parameters, and finally achieve the purpose of shortening the time required for exposure convergence, and the above scheme can fully avoid the phenomenon of underexposure or overexposure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a schematic flow chart of an exposure convergence method in one embodiment;

[0034] Figure 2 is a structural block diagram of an exposure convergence device in one embodiment;

[0035] Figure 3 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] Figure 1A flowchart of an exposure convergence method provided in an embodiment of the present disclosure. This embodiment is applicable to the case where exposure convergence is performed when entering a camera application. The method can be executed by an exposure convergence device, which can be implemented in software and / or hardware. The device can be configured in an electronic device, such as a terminal, specifically including but not limited to smartphones, PDAs, tablet computers, wearable devices with display screens, desktop computers, laptop computers, all-in-one computers, smart home devices, etc.

[0038] like Figure 1 As shown, the method may specifically include:

[0039] S110 . In response to a startup operation of the camera application, determine a startup scenario of the camera application; the startup scenario includes a cold start, a hot start, or a warm start.

[0040] A cold start refers to the first time the camera app is started after the electronic device is restarted.

[0041] When the electronic device is not restarted, if the time interval between the time when the camera application is started this time and the time when the camera application was started last time does not exceed the set time length, the current start of the camera application is a hot start.

[0042] When the electronic device is not restarted, if the time interval between the time when the camera application is started this time and the time when the camera application was last started exceeds the set time length, the current start of the camera application is a warm start.

[0043] It should be noted that the present application does not limit the specific value of the set time length used to distinguish whether the current camera application startup is a hot start or a warm start. For example, in practice, it can be determined based on the work experience of R&D personnel or based on the user's own usage habits.

[0044] Specifically, in response to a startup operation of the camera application, the electronic device determines a startup scenario of the camera application.

[0045] There are many specific implementation methods for this step, and this application does not limit this. Exemplarily, the specific implementation method of this step includes: obtaining multiple groups of identification condition groups; one startup scene corresponds to one group of identification condition groups; in response to the startup operation of the camera application, obtaining information associated with the current camera application startup; based on the information associated with the current camera application startup, determining the identification condition group that is satisfied; and using the startup scene corresponding to the satisfied identification condition group as the startup scene of the current camera application.

[0046] Exemplarily, the recognition condition group corresponding to the cold start is the first recognition condition group, the recognition condition group corresponding to the hot start is the second recognition condition group, and the recognition condition group corresponding to the warm start is the third recognition condition group. If the camera application is started at a certain moment, information associated with the current camera application startup is obtained; if it is determined based on the information associated with the current camera application startup that the first recognition condition group is satisfied, the cold start is used as the startup scenario of the current camera application.

[0047] A set of identification conditions includes one or more identification conditions. If a set of identification conditions includes multiple identification conditions, the relationship between the multiple identification conditions is an "and" relationship.

[0048] If a set of identification condition groups includes a plurality of identification conditions, the identification conditions included in the identification condition groups corresponding to different startup scenarios are at least partially different.

[0049] The present application does not limit the specific identification conditions included in the identification condition groups corresponding to different startup scenarios, as long as the startup scenarios can be distinguished. In practice, the settings can be made according to the definitions of the startup scenarios.

[0050] S120: Based on the startup scene, execute an exposure parameter determination method corresponding to the startup scene to obtain initial exposure parameters for this startup; the exposure parameter determination methods corresponding to different startup scenes are different.

[0051] The exposure parameters include at least one of the following: exposure time, image signal processing chip gain, and image sensor gain.

[0052] Optionally, the electronic device executes an exposure parameter determination method corresponding to the startup scene based on the startup scene to obtain initial exposure parameters for this startup. The essence of this step is to set a corresponding exposure parameter determination scheme for each startup scene.

[0053] S130: Perform exposure convergence based on the initial exposure parameters of this startup.

[0054] Exposure convergence refers to the process of adjusting the initial exposure parameters of this launch to the target exposure parameters of this launch when the camera application is launched, so that the camera preview screen tends to have normal exposure. Under the target exposure parameters of this launch, the camera preview screen has normal exposure.

[0055] Exposure convergence is a dynamic adjustment process. Obviously, the closer the initial exposure parameters are to the target exposure parameters, the shorter the exposure convergence time will be. Those skilled in the art can also understand that if the initial exposure parameters are significantly different from the target exposure parameters, serious underexposure or overexposure will occur in the early stage of exposure convergence. If the camera is underexposed, the camera preview screen will appear too dark to the user. If the camera is overexposed, the camera preview screen will appear too bright to the user.

[0056] The above technical solution determines the startup scene of the camera application by setting a response to the startup operation of the camera application; the startup scene includes cold start, hot start or warm start; based on the startup scene, the exposure parameter determination method corresponding to the startup scene is executed to obtain the initial exposure parameters of this startup; the exposure parameter determination methods corresponding to different startup scenes are different; based on the initial exposure parameters of this startup, exposure convergence is performed. Its essence is to set the most appropriate initial exposure parameter determination scheme for each startup scene according to its characteristics, so as to obtain initial exposure parameters that are relatively close to the target exposure parameters, and finally achieve the purpose of shortening the time required for exposure convergence, and the above scheme can fully avoid the phenomenon of underexposure or overexposure.

[0057] On the basis of the above technical solution, optionally, the exposure parameter determination method corresponding to the cold start includes: obtaining the current ambient light brightness information; determining the initial exposure parameters for this startup based on the current ambient light brightness information. The reason for this setting is that before the cold start, there is no camera application process in the system, and there is no record of the exposure parameters used by the camera application last time, so it is impossible to determine the initial exposure parameters for this startup based on the exposure parameters used by the camera application last time. Compared with the solution of determining the initial exposure parameters for this startup based on the statistical values ​​of the first frame image collected by the camera application, the current ambient light brightness information is used to determine the initial exposure parameters for this startup, which can fully narrow the gap between the initial exposure parameters and the target exposure parameters, and achieve the purpose of fully shortening the time required for cold start exposure convergence.

[0058] Furthermore, “determining the initial exposure parameters for this startup based on the current ambient light brightness information” includes: obtaining the correspondence between the ambient light brightness information and the exposure parameters; and determining the initial exposure parameters for this startup based on the current ambient light brightness information and the correspondence.

[0059] There are many methods for obtaining the "correspondence between ambient light brightness information and exposure parameters". For example, the correspondence between ambient light brightness information and exposure parameters is pre-constructed, and the correspondence is stored in the storage space of the electronic device. When the step of "obtaining the correspondence between ambient light brightness information and exposure parameters" is executed, the correspondence between ambient light brightness information and exposure parameters stored in the storage space of the electronic device is directly read. Alternatively, the correspondence between ambient light brightness information and exposure parameters is pre-constructed, and the correspondence is stored in a cloud server that is connected to the electronic device for communication. When the step of "obtaining the correspondence between ambient light brightness information and exposure parameters" is executed, the correspondence between ambient light brightness information and exposure parameters is received from the cloud server. This method is particularly suitable for situations where the correspondence between ambient light brightness information and exposure parameters needs to be updated.

[0060] Furthermore, there are many methods for "constructing the correspondence between ambient light brightness information and exposure parameters", and the present application does not limit this. Exemplarily, if the exposure parameters include exposure time, image signal processing chip gain, and image sensor gain. The method for constructing the correspondence between ambient light brightness information and exposure parameters includes: obtaining the gain value range of the electronic device image sensor; setting an exposure table based on the gain value range of the electronic device image sensor; wherein the exposure table includes multiple exposure parameter groups, each exposure parameter group has a unique exposure index, and the exposure index can be regarded as the identification information of the exposure parameter group. When setting the exposure table, the exposure time, image signal processing chip gain, and image sensor gain values ​​are specified for each exposure parameter group. The image sensor gain values ​​are different in different exposure parameter groups; the image sensor and the ambient light sensor are calibrated using a light source box (also called an LSB light box, or light source BOX) to obtain the correspondence between the ambient light brightness information and the exposure index, and the correspondence between the ambient light brightness information and the exposure index is also the correspondence between the ambient light brightness information and the exposure parameters.

[0061] The image sensor and the ambient light sensor are calibrated using a light source box, specifically including: using the light source box to form ambient light of different brightness; under ambient light of the same brightness, the camera application in the electronic device is started, and the AE exposure algorithm of the camera application is used to determine the exposure index corresponding to the ambient light brightness; and the ambient light brightness information is collected using the ambient light sensor. A corresponding relationship is established between the ambient light brightness information and the exposure index corresponding to the same ambient light brightness. Since the exposure index can be regarded as the identification information of the exposure parameter group. Each exposure index represents an exposure parameter group. In this way, the corresponding relationship between the ambient light brightness information and the exposure parameter can be obtained.

[0062] In another embodiment, a method for determining exposure parameters corresponding to a hot start includes: obtaining an amount of change in ambient light brightness for this start-up; the amount of change in ambient light brightness is obtained based on current ambient light brightness information and ambient light brightness information when a camera application was last exited; if the amount of change in ambient light brightness is less than or equal to a set brightness threshold, using the exposure parameters when the camera application was last exited as the initial exposure parameters for this start-up; if the amount of change in ambient light brightness is greater than the set brightness threshold, using the exposure parameters when the camera application was last exited as the first exposure parameters; based on the current ambient light brightness information, determining the second exposure parameters; based on the first exposure parameters and the second exposure parameters, determining the initial exposure parameters for this start-up.

[0063] There are many methods for "determining the initial exposure parameter for this startup based on the first exposure parameter and the second exposure parameter", and this application does not limit this. Exemplarily, the initial exposure parameter for this startup is determined based on the first exposure parameter, the weight of the first exposure parameter, the second exposure parameter, and the weight of the second exposure parameter. This application does not limit the specific values ​​of the weight of the first exposure parameter and the weight of the second exposure parameter. In practice, it can be determined as needed.

[0064] Optionally, the amount of change in ambient light brightness is the difference between the current ambient light brightness information and the ambient light brightness information when the camera application was last exited. Before the hot start, there is a process of the camera application in the system, and there is also a record of the exposure parameters used by the camera application last time. Hot start, and the amount of change in ambient light brightness is less than or equal to the set brightness threshold, it can be considered that the environment in which the user is currently starting the camera application is the same as the environment in which the camera application was last used. In this case, it is obvious that the exposure parameters when the camera application was last exited are close to the target exposure parameters. Hot start (the time interval between the time when the camera application is started this time and the time when the camera was last closed is less than the set time length), and the amount of change in ambient light brightness is greater than the set brightness threshold, it can be considered that the environment in which the user is currently starting the camera application is slightly different from the environment in which the camera was last started, but the difference is not large. Therefore, the initial exposure parameters of this startup are determined in combination with the exposure parameters when the camera application was last exited and the current ambient light brightness information, so that the final determined initial exposure parameters are as close to the target exposure parameters as possible.

[0065] Furthermore, there are many methods for "determining the second exposure parameter based on the current ambient light brightness information", and this application does not limit this. Exemplarily, the second exposure parameter is determined based on the current ambient light brightness information and the correspondence between the ambient light brightness information and the exposure parameter. Among them, the method for obtaining the correspondence between the ambient light brightness information and the exposure parameter is similar to the method for obtaining the correspondence between the ambient light brightness information and the exposure parameter in the cold start scenario, and will not be repeated here.

[0066] In another embodiment, a method for determining exposure parameters corresponding to a warm start includes: obtaining a statistical value of a first frame image captured by a camera application; if the statistical value is not within a set threshold range, determining an initial exposure parameter for this start-up based on current ambient light brightness information; if the statistical value is within a set threshold range, determining an initial exposure parameter for this start-up based on the statistical value.

[0067] Warm start: Since the time interval between the time when the camera application is started and the time when the camera application is last exited is long, it is considered that the environment of the electronic device has changed significantly. Obviously, in this case, the ambient light brightness often changes significantly. If the initial exposure parameters of this start are determined based on the exposure parameters when the camera application was last exited, the determined initial exposure parameters will be significantly different from the target exposure parameters.

[0068] In a warm start, if the statistical value is not within the set threshold range (such as 50-200), it means that if the initial exposure parameters are determined based on the statistical values, the picture will be too bright or too dark. Therefore, the initial exposure parameters for this startup are determined based on the current ambient light brightness information. If the statistical value is within the set threshold range, it means that if the initial exposure parameters are determined based on the statistical value, the picture will not be too bright or too dark. In this case, the initial exposure parameters determined based on the statistical values ​​are often closer to the target exposure parameters. Therefore, the initial exposure parameters for this startup are determined based on the statistical values ​​to fully shorten the time taken for exposure convergence.

[0069] Among them, in the warm start scenario, the specific method of "determining the initial exposure parameters for this startup based on the current ambient light brightness information" is similar to the specific method of "determining the initial exposure parameters for this startup based on the current ambient light brightness information" in the cold start scenario, and will not be repeated here.

[0070] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0071] In one embodiment, Figure 2 As shown, an exposure convergence device is provided, comprising: a scene determination module 510, an execution module 520 and a convergence module 530, wherein:

[0072] The scene determination module 510 is used to determine the startup scene of the camera application in response to the startup operation of the camera application; the startup scene includes cold startup, hot startup or warm startup;

[0073] An execution module 520 is used to execute an exposure parameter determination method corresponding to the startup scene based on the startup scene to obtain initial exposure parameters for this startup; and the exposure parameter determination method corresponding to different startup scenes is different;

[0074] The convergence module 530 is used to perform exposure convergence based on the initial exposure parameters of this startup.

[0075] Furthermore, a method for determining exposure parameters corresponding to the cold start includes:

[0076] Get the current ambient light brightness information;

[0077] Based on the current ambient light brightness information, determine the initial exposure parameters for this startup.

[0078] Furthermore, the initial exposure parameters for this startup are determined based on the current ambient light brightness information, including:

[0079] Obtain the corresponding relationship between ambient light brightness information and exposure parameters;

[0080] Based on the current ambient light brightness information and the corresponding relationship, the initial exposure parameters for this startup are determined.

[0081] Furthermore, a method for determining exposure parameters corresponding to the hot start includes:

[0082] Obtain the ambient light brightness change amount of this startup; the ambient light brightness change amount is obtained based on the current ambient light brightness information and the ambient light brightness information when the camera application was last exited;

[0083] If the ambient light brightness change is less than or equal to the set brightness threshold, the exposure parameters when the camera application was last exited are used as the initial exposure parameters for this startup.

[0084] Furthermore, the exposure parameter determination method corresponding to the hot start also includes:

[0085] If the change in ambient light brightness is greater than the set brightness threshold, the exposure parameter when the camera application was last exited is used as the first exposure parameter; based on the current ambient light brightness information, the second exposure parameter is determined; based on the first exposure parameter and the second exposure parameter, the initial exposure parameter for this startup is determined.

[0086] Furthermore, a method for determining exposure parameters corresponding to the warm start includes:

[0087] Obtaining a statistical value of a first frame of image captured by the camera application;

[0088] If the statistical value is not within the set threshold range, determining the initial exposure parameter for this startup based on the current ambient light brightness information;

[0089] If the statistical value is within the set threshold range, the initial exposure parameter for this startup is determined based on the statistical value.

[0090] Further, the exposure parameter includes at least one of the following:

[0091] Exposure time, image signal processing chip gain, and image sensor gain.

[0092] The above technical solution, by setting a scene determination module, is used to determine the startup scene of the camera application in response to the startup operation of the camera application; the startup scene includes cold start, hot start or warm start; the execution module is used to execute the exposure parameter determination method corresponding to the startup scene based on the startup scene to obtain the initial exposure parameters of this startup; the exposure parameter determination method corresponding to different startup scenes is different; the convergence module is used to perform exposure convergence based on the initial exposure parameters of this startup. Its essence is to set the most appropriate initial exposure parameter determination scheme for each startup scene according to its characteristics, so as to obtain the initial exposure parameters that are closer to the target exposure parameters, and finally achieve the purpose of shortening the time required for exposure convergence, and the above scheme can fully avoid the phenomenon of underexposure or overexposure.

[0093] For the specific definition of the exposure convergence device, please refer to the definition of the exposure convergence method above, which will not be repeated here. Each module in the above-mentioned exposure convergence device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0094] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 3As shown. The electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, an exposure convergence method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0095] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0096] In one embodiment, the exposure convergence device provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 3 The memory of the electronic device may store various program modules constituting the exposure convergence device, for example, Figure 2 The scene determination module, execution module and convergence module shown in the figure. The computer program composed of various program modules enables the processor to execute the steps of the exposure convergence method of each embodiment of the present application described in this specification.

[0097] For example, Figure 3 The electronic device shown can be Figure 2 The scene determination module execution step in the exposure convergence device shown is in response to the startup operation of the camera application to determine the startup scene of the camera application; the startup scene includes cold start, hot start or warm start. The electronic device can execute the exposure parameter determination method corresponding to the startup scene based on the startup scene through the execution module execution step to obtain the initial exposure parameters of this startup; the exposure parameter determination method corresponding to different startup scenes is different. The electronic device can perform exposure convergence based on the initial exposure parameters of this startup through the convergence module execution step.

[0098] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0099] In response to a startup operation of a camera application, a startup scenario of the camera application is determined; the startup scenario includes a cold start, a hot start or a warm start; based on the startup scenario, an exposure parameter determination method corresponding to the startup scenario is executed to obtain initial exposure parameters for this startup; the exposure parameter determination methods corresponding to different startup scenarios are different; and exposure convergence is performed based on the initial exposure parameters for this startup.

[0100] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining current ambient light brightness information; and determining initial exposure parameters for this startup based on the current ambient light brightness information.

[0101] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining the correspondence between the ambient light brightness information and the exposure parameters; and determining the initial exposure parameters for this startup based on the current ambient light brightness information and the correspondence.

[0102] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the ambient light brightness change at this startup; the ambient light brightness change is obtained based on the current ambient light brightness information and the ambient light brightness information when the camera application was last exited; if the ambient light brightness change is less than or equal to the set brightness threshold, the exposure parameters when the camera application was last exited are used as the initial exposure parameters for this startup.

[0103] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the change in the ambient light brightness is greater than a set brightness threshold, the exposure parameter when the camera application was last exited is used as the first exposure parameter; based on the current ambient light brightness information, the second exposure parameter is determined; based on the first exposure parameter and the second exposure parameter, the initial exposure parameter for this startup is determined.

[0104] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the exposure parameter determination method corresponding to the warm start includes: obtaining the statistical value of the first frame image collected by the camera application; if the statistical value is not within the set threshold range, determining the initial exposure parameter of this startup based on the current ambient light brightness information; if the statistical value is within the set threshold range, determining the initial exposure parameter of this startup based on the statistical value.

[0105] The above technical solution determines the startup scene of the camera application by setting a response to the startup operation of the camera application; the startup scene includes cold start, hot start or warm start; based on the startup scene, the exposure parameter determination method corresponding to the startup scene is executed to obtain the initial exposure parameters of this startup; the exposure parameter determination methods corresponding to different startup scenes are different; based on the initial exposure parameters of this startup, exposure convergence is performed. Its essence is to set the most appropriate initial exposure parameter determination scheme for each startup scene according to its characteristics, so as to obtain initial exposure parameters that are relatively close to the target exposure parameters, and finally achieve the purpose of shortening the time required for exposure convergence, and the above scheme can fully avoid the phenomenon of underexposure or overexposure.

[0106] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: in response to a startup operation of a camera application, determining a startup scenario of the camera application; the startup scenario includes a cold start, a hot start, or a warm start; based on the startup scenario, executing an exposure parameter determination method corresponding to the startup scenario to obtain initial exposure parameters for this startup; different exposure parameter determination methods corresponding to different startup scenarios are used; and exposure convergence is performed based on the initial exposure parameters for this startup.

[0107] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining current ambient light brightness information; and determining initial exposure parameters for this startup based on the current ambient light brightness information.

[0108] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the correspondence between the ambient light brightness information and the exposure parameters; and determining the initial exposure parameters for this startup based on the current ambient light brightness information and the correspondence.

[0109] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the ambient light brightness change at this startup; the ambient light brightness change is obtained based on the current ambient light brightness information and the ambient light brightness information when the camera application was last exited; if the ambient light brightness change is less than or equal to the set brightness threshold, the exposure parameters when the camera application was last exited are used as the initial exposure parameters for this startup.

[0110] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the change in the ambient light brightness is greater than a set brightness threshold, the exposure parameter when the camera application was last exited is used as the first exposure parameter; based on the current ambient light brightness information, the second exposure parameter is determined; based on the first exposure parameter and the second exposure parameter, the initial exposure parameter for this startup is determined.

[0111] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the statistical value of the first frame image captured by the camera application; if the statistical value is not within the set threshold range, determining the initial exposure parameters for this startup based on the current ambient light brightness information; if the statistical value is within the set threshold range, determining the initial exposure parameters for this startup based on the statistical value.

[0112] The above technical solution determines the startup scene of the camera application by setting a response to the startup operation of the camera application; the startup scene includes cold start, hot start or warm start; based on the startup scene, the exposure parameter determination method corresponding to the startup scene is executed to obtain the initial exposure parameters of this startup; the exposure parameter determination methods corresponding to different startup scenes are different; based on the initial exposure parameters of this startup, exposure convergence is performed. Its essence is to set the most appropriate initial exposure parameter determination scheme for each startup scene according to its characteristics, so as to obtain initial exposure parameters that are relatively close to the target exposure parameters, and finally achieve the purpose of shortening the time required for exposure convergence, and the above scheme can fully avoid the phenomenon of underexposure or overexposure.

[0113] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).

[0114] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0115] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An exposure convergence method, characterized in that: include: In response to a camera application startup operation, determining a startup scenario of the camera application; the startup scenario includes a cold startup, a hot startup or a warm startup; wherein the cold startup refers to a startup scenario of the camera application being started for the first time after the electronic device is restarted; the hot startup refers to a scenario in which the electronic device is not restarted and the time interval between the time when the camera application is started this time and the time when the camera application was last started does not exceed a set time length; the warm startup refers to a scenario in which the electronic device is not restarted and the time interval between the time when the camera application is started this time and the time when the camera application was last started exceeds a set time length; Based on the startup scene, executing the exposure parameter determination method corresponding to the startup scene to obtain the initial exposure parameters of this startup; and the exposure parameter determination method corresponding to different startup scenes is different; Performing exposure convergence based on the initial exposure parameters of this startup; The exposure parameter determination method corresponding to the cold start includes: obtaining current ambient light brightness information; determining the initial exposure parameter of this start-up based on the current ambient light brightness information; The exposure parameter determination method corresponding to the hot start includes: obtaining the amount of change in ambient light brightness for this start; the amount of change in ambient light brightness is obtained based on the current ambient light brightness information and the ambient light brightness information when the camera application was last exited; if the amount of change in ambient light brightness is less than or equal to the set brightness threshold, using the exposure parameter when the camera application was last exited as the initial exposure parameter for this start; if the amount of change in ambient light brightness is greater than the set brightness threshold, using the exposure parameter when the camera application was last exited as the first exposure parameter; determining the second exposure parameter based on the current ambient light brightness information; determining the initial exposure parameter for this start based on the first exposure parameter and the second exposure parameter; The exposure parameter determination method corresponding to the warm start includes: obtaining the brightness statistical value of the first frame image collected by the camera application; if the statistical value is not within the set threshold range, determining the initial exposure parameter of this startup based on the current ambient light brightness information; if the statistical value is within the set threshold range, determining the initial exposure parameter of this startup based on the brightness statistical value.

2. The method according to claim 1, characterized in that In the exposure parameter determination method corresponding to the cold start, determining the initial exposure parameter for this startup based on the current ambient light brightness information includes: Obtain the corresponding relationship between ambient light brightness information and exposure parameters; Based on the current ambient light brightness information and the corresponding relationship, the initial exposure parameters for this startup are determined.

3. The method according to claim 1, characterized in that The exposure parameters include at least one of the following: Exposure time, image signal processing chip gain, and image sensor gain.

4. An exposure convergence device, characterized in that: include: A scene determination module, configured to determine a startup scene of the camera application in response to a startup operation of the camera application; The startup scenarios include cold startup, hot startup or warm startup; wherein the cold startup refers to the startup scenario of the camera application being started for the first time after the electronic device is restarted; the hot startup refers to the scenario in which the electronic device is not restarted, and the time interval between the time when the camera application is started this time and the time when the camera application was last started does not exceed a set time length; the warm startup refers to the scenario in which the electronic device is not restarted, and the time interval between the time when the camera application is started this time and the time when the camera application was last started exceeds a set time length; An execution module, configured to execute, based on the startup scene, an exposure parameter determination method corresponding to the startup scene to obtain initial exposure parameters for this startup; and different exposure parameter determination methods corresponding to different startup scenes; A convergence module, used for performing exposure convergence based on the initial exposure parameters of this startup; The exposure parameter determination method corresponding to the cold start includes: obtaining current ambient light brightness information; determining the initial exposure parameter of this start-up based on the current ambient light brightness information; The exposure parameter determination method corresponding to the hot start includes: obtaining the amount of change in ambient light brightness for this start; the amount of change in ambient light brightness is obtained based on the current ambient light brightness information and the ambient light brightness information when the camera application was last exited; if the amount of change in ambient light brightness is less than or equal to the set brightness threshold, using the exposure parameter when the camera application was last exited as the initial exposure parameter for this start; if the amount of change in ambient light brightness is greater than the set brightness threshold, using the exposure parameter when the camera application was last exited as the first exposure parameter; determining the second exposure parameter based on the current ambient light brightness information; determining the initial exposure parameter for this start based on the first exposure parameter and the second exposure parameter; The exposure parameter determination method corresponding to the warm start includes: obtaining the brightness statistical value of the first frame image collected by the camera application; if the statistical value is not within the set threshold range, determining the initial exposure parameter of this startup based on the current ambient light brightness information; if the statistical value is within the set threshold range, determining the initial exposure parameter of this startup based on the brightness statistical value.

5. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Photographing method and device, electronic equipment and computer-readable storage medium

    CN109413336A

  • Method and device for adjusting exposure, storage medium and electronic equipment

    CN114339060A