CN111316635A - Camera control method and device - Google Patents

Camera control method and device Download PDF

Info

Publication number
CN111316635A
CN111316635A CN201980005410.6A CN201980005410A CN111316635A CN 111316635 A CN111316635 A CN 111316635A CN 201980005410 A CN201980005410 A CN 201980005410A CN 111316635 A CN111316635 A CN 111316635A
Authority
CN
China
Prior art keywords
exposure
brightness
value
exposure parameter
difference value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201980005410.6A
Other languages
Chinese (zh)
Other versions
CN111316635B (en
Inventor
俞利富
梁大奖
王浩伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SZ DJI Technology Co Ltd
Original Assignee
SZ DJI Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SZ DJI Technology Co Ltd filed Critical SZ DJI Technology Co Ltd
Publication of CN111316635A publication Critical patent/CN111316635A/en
Application granted granted Critical
Publication of CN111316635B publication Critical patent/CN111316635B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene

Abstract

A camera control method and device. The method comprises the following steps: determining a first exposure parameter (101) of the camera in a preview mode according to preset target brightness; determining a second exposure parameter (102) of the camera in a shooting mode according to the exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user; determining a brightness difference value (103) according to the first exposure parameter and the second exposure parameter; the brightness of the image presented in the preview mode is controlled (104) according to the brightness difference value. The invention can make the brightness of the image presented in the preview mode consistent with the brightness of the image shot in the shooting mode.

Description

Camera control method and device
Technical Field
The invention relates to the field of cameras, in particular to a camera control method and device.
Background
With the development of society, the application of camera is more and more extensive, for example all can set up the camera in order to carry out image acquisition on equipment such as cell-phone, computer, unmanned aerial vehicle.
In the prior art, when the camera works in the semi-automatic gear mode, a user can adjust partial exposure parameters of the camera. Specifically, in the preview mode, the camera may select a set of exposure parameters (i.e., exposure parameter 1) for rendering the image, which are independent of the user-adjusted partial exposure parameters, according to the target brightness of the image. However, in the shooting mode, in order to make the brightness of the image obtained in the shooting mode consistent with the brightness of the image presented in the preview mode, that is, the brightness of the image presented in the preview mode is the brightness of the image obtained in the shooting mode, the camera may adjust other exposure parameters according to the exposure value corresponding to the part of the exposure parameters and the exposure parameter 1 adjusted by the user, obtain an exposure parameter 2, and shoot the image using the exposure parameter 2.
However, in the prior art, due to the fact that a user adjusts a part of exposure parameters unreasonably, the exposure parameters used in the shooting mode cannot make the brightness of an image obtained in the shooting mode consistent with that of an image presented in the preview mode, namely, the brightness of the image obtained in the shooting mode is inconsistent with that of the image presented in the preview mode.
Disclosure of Invention
The embodiment of the invention provides a camera control method and device, which are used for solving the problem that in the prior art, due to the fact that a user can not adjust partial exposure parameters reasonably, the exposure parameters used in a shooting mode cannot enable the brightness of an image obtained in the shooting mode to be consistent with the brightness of an image presented in a preview mode.
In a first aspect, an embodiment of the present invention provides a camera control method, including:
determining a first exposure parameter of a camera in a preview mode according to preset target brightness;
determining a second exposure parameter of the camera in a shooting mode according to an exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user;
determining a brightness difference value according to the first exposure parameter and the second exposure parameter;
and controlling the brightness of the image presented in the preview mode according to the brightness difference value.
In a second aspect, an embodiment of the present invention provides a camera control apparatus, including: a processor and a memory;
the memory for storing program code;
the processor, invoking the program code, when executed, is configured to:
determining a first exposure parameter of a camera in a preview mode according to preset target brightness;
determining a second exposure parameter of the camera in a shooting mode according to an exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user;
determining a brightness difference value according to the first exposure parameter and the second exposure parameter;
and controlling the brightness of the image presented in the preview mode according to the brightness difference value.
In a third aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program including at least one piece of code, the at least one piece of code being executable by a computer to control the computer to perform the camera control method according to any one of the above first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer program, which is used to implement the camera control method according to any one of the above first aspects when the computer program is executed by a computer.
The camera control method and device provided by the embodiment of the invention determine the first exposure parameter of the camera in the preview mode according to the preset target brightness, determine the second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user, determine the brightness difference value according to the first exposure parameter and the second exposure parameter, and control the brightness of the image presented in the preview mode according to the brightness difference value, because the brightness difference value can represent the brightness of the image presented in the preview mode according to the first exposure parameter and the difference between the brightness of the image photographed in the shooting mode according to the second exposure parameter, the brightness of the image presented in the preview mode is controlled according to the brightness difference value, so that the brightness of the image presented in the preview mode can be consistent with the brightness of the image photographed in the shooting mode, the problem that the brightness of the image obtained in the shooting mode is not consistent with that of the image presented in the preview mode due to the fact that the exposure parameters used in the shooting mode cannot be made to be consistent due to unreasonable adjustment of the partial exposure parameters by a user is solved, the user can know the influence of the image presented in the preview mode on the brightness of the image after the partial exposure parameters are adjusted, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a camera control method according to an embodiment of the invention;
fig. 2 is a schematic flowchart of a camera control method according to another embodiment of the invention;
FIG. 3 is a schematic diagram of a processing sequence of various stages provided by an embodiment of the present invention;
fig. 4 is a flowchart illustrating a camera control method according to another embodiment of the invention;
FIG. 5 is a schematic diagram of a gamma line according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a camera control method according to another embodiment of the invention;
fig. 7 is a camera control apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The camera control method provided by the embodiment of the invention can be applied to any equipment capable of realizing the camera function. It should be noted that the present invention may not be limited to a specific form of the apparatus for implementing the camera function. Optionally, the device for implementing the camera function may specifically be a camera, a mobile phone for implementing the camera function, a tablet computer for implementing the camera function, a pan-tilt camera, an unmanned aerial vehicle for implementing the camera function, and the like.
The camera control method provided by the embodiment may be executed by a camera control device, and specifically, may be executed by a processor of the camera control device. The camera control device may be part or all of a device that implements a camera function through software and/or hardware.
Among other things, the camera may include a preview mode and a capture mode. The camera is in the preview mode, which means that the camera can present an image in the current photographing range, but the presented image is not stored as a photograph or a video. In the preview mode, the user can know the image that can be currently saved by the camera as a photograph or video, and input a shooting instruction. Further, after the user inputs a shooting instruction, the camera may be switched from the preview mode to the shooting mode, and the image in the current shooting range is stored as a photograph or a video in the shooting mode.
For the semi-automatic gear mode, the brightness of the image presented in the preview mode and the image shot in the shooting mode can be kept consistent in the normal exposure range, but when the exposure value corresponding to the exposure parameter of the shooting mode exceeds the exposure range of the preview mode (hereinafter, referred to as a special case), the problem of inconsistency exists. Here, the semi-automatic gear mode may refer to a mode that allows a user to adjust a partial exposure parameter of the camera. For example, the semi-automatic gear mode of the camera may include: the aperture priority mode (A-gear for short), the user adjusts the aperture size and light sensitivity, and then the camera automatically measures light to determine the shutter time; the shutter priority mode (S-gear for short), the user adjusts the shutter time and the light sensitivity, and then the camera automatically measures the light to determine the aperture size; automatic program mode (P-file), user-adjusted sensitivity, aperture and shutter are determined by the camera's automatic light system.
Taking S-file as an example, assuming that when S-file is used for photographing, the exposure parameters of the photographing mode used for normal exposure are as follows: the aperture (i.e., F) value is 2.8, the shutter time is 1/20 seconds, and the light sensitivity (ISO) is 800, but at this time, the user adjusts the shutter time according to his/her preference, and the adjusted shutter time is 4 seconds, since the user adjusts the shutter time to be larger, the longer the exposure time is, the more the light enters the camera, and therefore the Luminance Value (LV) obtained according to the photometry in the preview mode, the camera adjusts the aperture and the ISO to be smaller in order to compensate for the magnitude of the shutter time up-adjustment, and if the aperture is adjusted to be the minimum value F value of 10, and the ISO is adjusted to be the minimum value 100, but the magnitude of the shutter time up-adjustment is still not compensated, the picture taken in the photographing mode is still overexposed. Thus, the image presented in the preview mode is normally exposed, while the image captured in the capture mode is overexposed, resulting in a problem that the brightness of the two images is not the same.
Taking S-file as an example, assuming that when S-file is used for photographing, the exposure parameters of the photographing mode used for normal exposure are as follows: the F value is 2.8, the shutter time is 2 seconds, and the ISO is 800, but at this time, the user adjusts the shutter time according to his/her preference, and the adjusted shutter time is 1/20 seconds, because the user adjusts the shutter time to be smaller, the shorter the exposure time is, the less the light entering the camera is, so according to the LV obtained by the photometry in the preview mode, the camera increases the aperture and the ISO to compensate for the width of the shutter time down-adjustment, and if the aperture and the ISO are both adjusted to the maximum value, but the width of the shutter time down-adjustment is still not compensated, the picture taken in the shooting mode is still underexposed. Thus, the image presented in the preview mode is normally exposed, while the image photographed in the photographing mode is underexposed, and the brightness of the two images is not uniform.
Taking P-range as an example, assume that when taking a picture using P-range, the exposure parameters of the shooting mode used for normal exposure are: if the F value is 2.8, the shutter time is 2 seconds, and the ISO is 800, but the user adjusts the ISO to be according to his/her preference at this time, and if the ISO is 100 after adjustment, the user turns the ISO down and the exposure amount per unit time is small, the camera adjusts the aperture and the shutter time to be large in order to compensate for the ISO down-regulation range according to the LV obtained by photometry in the preview mode, and if the aperture and the shutter time are both adjusted to the maximum value but the ISO down-regulation range is still not compensated, the picture taken in the shooting mode is still underexposed. Thus, the image presented in the preview mode is normally exposed, while the image photographed in the photographing mode is underexposed, and the brightness of the two images is not uniform.
It can be understood that, in the semi-automatic shooting mode, when the user adjusts the partial exposure parameters unreasonably, the adjustment of the exposure parameters other than the partial exposure parameters by the camera cannot compensate the adjustment range of the partial exposure parameters (i.e. in a special case), so that the image presented in the preview mode is normally exposed, and the image shot in the shooting mode is under-exposed or over-exposed, and the brightness of the two images is inconsistent, which is not illustrated here.
In the embodiment of the invention, the brightness of the image presented in the preview mode is controlled, so that the brightness of the image presented in the preview mode and the brightness of the image shot in the shooting mode can be kept consistent under the semi-automatic gear mode for special conditions.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is a flowchart illustrating a camera control method according to an embodiment of the present invention, where an execution subject of the embodiment may be a camera control device, and may specifically be a processor of the camera control device. As shown in fig. 1, the method of this embodiment may include:
step 101, determining a first exposure parameter of a camera in a preview mode according to preset target brightness.
In this step, the target brightness may also be referred to as a nominal exposure value. The target brightness may be understood as a desired image brightness. Here, the target brightness may be related to the photographing scene, i.e., the target brightness may be determined according to the current photographing scene. Illustratively, the shooting scene may include one or more of ambient brightness, shooting weather, shooting time, and shooting location. For example, when the shooting weather in the current shooting scene is fine, the shooting time is midday, and the shooting location is outdoor, the target brightness may be brightness 1, when the shooting weather in the current shooting scene is cloudy, the shooting time is evening, and the shooting location is outdoor, the target brightness may be brightness 2, and brightness 1 may be greater than brightness 2. The present invention is not limited to the determination of the target brightness.
For example, the first Exposure parameter of the camera in the preview mode may be determined according to a preset target brightness and an Auto Exposure Algorithm (AE). Alternatively, the exposure value may be determined by an auto exposure algorithm, the exposure value of the camera may be determined according to a difference between the exposure value determined by the auto exposure algorithm and the target brightness, and the exposure parameter combination (i.e., the first exposure parameter) may be determined according to the exposure value of the camera. It should be noted that, the present invention is not limited to the specific manner in which the camera determines the first exposure parameter according to the preset target brightness in the preview mode.
And 102, determining a second exposure parameter of the camera in a shooting mode according to the exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user.
In this step, the exposure value corresponding to the first exposure parameter may be understood as an exposure value that can be obtained according to the first exposure parameter, and may specifically be the exposure value of the camera used for determining the first exposure parameter. The exposure parameter adjusted by the user may be a part of the total exposure parameters of the camera, and may be, for example, an aperture, a shutter, and a shutter in sensitivity.
For example, according to a principle that the second exposure parameter includes the exposure parameter adjusted by the user, and other exposure parameters except the exposure parameter adjusted by the user in all the exposure parameters of the camera are adjusted, so that an exposure value corresponding to the second exposure parameter reaches an exposure value corresponding to the first exposure parameter as much as possible, the other exposure parameters in the second exposure parameter are determined, thereby obtaining the second exposure parameter. It is understood that the second exposure parameter includes the user-adjusted exposure parameter and the determined other exposure parameters. It should be noted that, the present invention is not limited to the specific embodiment of the second exposure parameter of the camera in the shooting mode, which is determined according to the exposure value corresponding to the first exposure parameter and the exposure parameter adjusted by the user.
The second exposure parameter may be, for example, an F value of 10, a shutter time of 4 seconds, and an ISO of 100. It should be noted that, in the embodiment of the present invention, the shutter may include a shutter time or a shutter speed.
Step 103, determining a brightness difference value according to the first exposure parameter and the second exposure parameter.
In this step, the brightness difference value may represent a difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter, and any specific manner of determining the brightness difference value that can represent the difference belongs to the protection scope of the embodiment of the present invention. Optionally, the brightness difference value may be equal to a difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter (i.e., a result obtained by subtracting the exposure value corresponding to the second exposure parameter from the exposure value corresponding to the first exposure parameter), and at this time, when the exposure value corresponding to the second exposure parameter is overexposed compared to the exposure value corresponding to the first exposure parameter, the brightness difference value may be smaller than 0; when the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, the brightness difference value may be greater than 0; or, the brightness difference value may be equal to a difference between the exposure value corresponding to the second exposure parameter and the exposure value corresponding to the first exposure parameter (i.e., a result obtained by subtracting the exposure value corresponding to the first exposure parameter from the exposure value corresponding to the second exposure parameter), and at this time, when the exposure value corresponding to the second exposure parameter is overexposed compared to the exposure value corresponding to the first exposure parameter, the brightness difference value may be greater than 0; when the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, the brightness difference value may be less than 0.
It is understood that when the adjustment of the partial exposure parameter by the user is reasonable, the adjustment of the exposure parameter other than the partial exposure parameter by the camera can compensate the adjustment range of the partial exposure parameter (i.e. in a non-extreme scene), and the brightness difference value may be equal to 0, or may be less than or equal to a certain threshold value. When the user adjusts the partial exposure parameters unreasonably, the adjustment of the camera on other exposure parameters except the partial exposure parameters cannot compensate the adjustment range of the partial exposure parameters (i.e. in an extreme scene), the brightness difference value may be greater than the certain threshold, and the greater the degree of the user's unreasonable adjustment on the partial exposure parameters, the greater the brightness difference value.
And 104, controlling the brightness of the image presented in the preview mode according to the brightness difference value.
In this step, since the brightness difference value may represent the brightness of the image presented in the preview mode according to the first exposure parameter, and the difference between the brightness of the image captured in the capture mode according to the second exposure parameter, the brightness of the image presented in the preview mode is controlled according to the brightness difference value, so that the brightness of the image presented in the preview mode is consistent with the brightness of the image captured in the capture mode.
Here, the brightness of the image presented in the preview mode and the brightness of the image captured in the capture mode may be understood as: the brightness of the image presented in the preview mode is the same as the brightness of the image captured in the capture mode, or the difference (e.g., the absolute value of the difference) between the brightness of the image presented in the preview mode and the brightness of the image captured in the capture mode is less than or equal to a certain threshold.
For an example of a specific way of controlling the brightness of the image presented in the preview mode according to the brightness difference value, reference may be made to the following description in relation to the embodiments shown in fig. 2 to 6. It should be noted that any specific manner of controlling the brightness of the image presented in the preview mode according to the brightness difference value so as to make the brightness of the image presented in the preview mode consistent with the brightness of the image captured in the capture mode belongs to the protection scope of the embodiment of the present invention.
In the camera control method provided by this embodiment, a first exposure parameter of the camera in the preview mode is determined according to a preset target brightness, a second exposure parameter of the camera in the shooting mode is determined according to an exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user, a brightness difference value is determined according to the first exposure parameter and the second exposure parameter, and the brightness of the image presented in the preview mode is controlled according to the brightness difference value, since the brightness difference value can represent the brightness of the image presented in the preview mode according to the first exposure parameter and the difference between the brightness of the image taken in the shooting mode according to the second exposure parameter, the brightness of the image presented in the preview mode is controlled according to the brightness difference value, so that the brightness of the image presented in the preview mode can be consistent with the brightness of the image taken in the shooting mode, the problem that the brightness of the image obtained in the shooting mode is not consistent with that of the image presented in the preview mode due to the fact that the exposure parameters used in the shooting mode cannot be made to be consistent due to unreasonable adjustment of the partial exposure parameters by a user is solved, the user can know the influence of the image presented in the preview mode on the brightness of the image after the partial exposure parameters are adjusted, and user experience is improved.
Fig. 2 is a flowchart illustrating a camera control method according to another embodiment of the invention. This embodiment mainly describes an alternative implementation manner of controlling the brightness of the image presented in the preview mode according to the brightness difference value on the basis of the embodiment shown in fig. 1. As shown in fig. 2, the method of this embodiment may include:
step 201, determining a first exposure parameter of the camera in the preview mode according to a preset target brightness.
It should be noted that step 201 is similar to step 101, and is not described herein again.
Step 202, determining a second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user.
It should be noted that step 202 is similar to step 102, and is not described herein again.
Step 203, determining a brightness difference value according to the first exposure parameter and the second exposure parameter.
It should be noted that step 203 is similar to step 103, and is not described herein again.
And step 204, determining a digital gain value according to the brightness difference value.
In this step, the digital gain value (Dgain) may be used to realize the control of sensitivity, that is, the digital gain value may be used as a control parameter of sensitivity. In addition to the digital gain value, an analog gain value (Again) may also be used as a control parameter of the sensitivity.
Specifically, the digital gain value may be determined according to a first adjustment target that determines that the larger the difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter is, the larger the adjustment range of the brightness value of the image is before the image is presented in the preview mode, and the smaller the difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter is, the smaller the adjustment range of the brightness value of the image is before the image is presented in the preview mode.
For example, assuming that the brightness difference value is equal to a difference between the exposure value corresponding to the second exposure parameter and the exposure value corresponding to the first exposure parameter, when the brightness difference value is greater than 0, the digital gain value may be greater than 1, and the digital gain value may be positively correlated with the brightness difference value; when the brightness difference value is less than 0, the digital gain value may be less than 1, and the digital gain value is negatively correlated with an absolute value of the brightness difference value.
For example, assuming that the brightness difference value is equal to a difference between the exposure value corresponding to the first exposure parameter and the exposure value corresponding to the second exposure parameter, when the brightness difference value is greater than 0, the digital gain value may be smaller than 1, and the digital gain value may be negatively correlated with the brightness difference value; when the brightness difference value is less than 0, the digital gain value may be greater than 1, and the digital gain value is positively correlated with the absolute value of the brightness difference value.
It should be noted that, for the specific way of determining the digital gain value according to the brightness difference value, the embodiment of the present invention is not limited, and any specific way of determining the digital gain value that meets the first adjustment target is within the protection scope of the present invention. Optionally, step 204 may specifically include: and determining a digital gain value according to the brightness difference value and a preset conversion relation. Here, the specific form of the preset conversion relationship may not be limited in the embodiment of the present invention, and for example, a preset formula, a preset table, and the like may be used.
Considering that when the digital gain value is less than 1, there may be a problem that a highlight region of the image is multiplied by the digital gain value to cause imbalance of a plurality of color channels, thereby causing a hue shift of the image, optionally, before determining the digital gain value according to the brightness difference value, the method further includes the following steps:
judging whether the exposure value corresponding to the second exposure parameter is over-exposed than the exposure value corresponding to the first exposure parameter or not according to the brightness difference value; here, whether the exposure value corresponding to the second exposure parameter is overexposed to the exposure value corresponding to the first exposure parameter may indicate that the digital gain value is greater than 1.
And if the exposure value corresponding to the second exposure parameter is overexposed compared with the exposure value corresponding to the first exposure parameter, executing the step of determining the digital gain value according to the brightness difference value.
Optionally, if the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, the process may be ended (that is, in a scenario where the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, the brightness of the image presented in the preview mode may not be controlled according to the brightness difference value), or the brightness of the image presented in the preview mode may be controlled by using the embodiments shown in fig. 4 to 6. Here, whether the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter may indicate that the digital gain value is less than 1.
Step 205, before presenting the image in the preview mode, adjusting the brightness value of the image according to the digital gain value.
In this step, the digital gain value may be used to adjust a brightness value of the image before the image is presented in the preview mode. Optionally, on the basis of the existing processing stage, a processing stage is newly added for adjusting the brightness value of the image according to the digital gain value before the image is presented in the preview mode; alternatively, before the image is presented in the preview mode, a process of adjusting the brightness value of the image according to the digital gain value may be added in the existing processing stage.
Further optionally, for convenience of implementation, before presenting an image in the preview mode, adjusting a brightness value of the image in a first processing stage according to the digital gain value; the first processing stage is a stage which allows setting of a digital gain value in all stages of processing of raw data obtained by the light metering area by the camera in the preview mode. Illustratively, the first processing stage may be any one of the following stages: white Balance (WBC) stage, Color Correction (CC) stage, Gamma (Gamma) line adjustment stage, Global Tone Mapping (GTM) stage, and red-green-blue (RGB) color space conversion to YUV (also referred to as YCrCb) color space (R2Y for short) stage. The processing sequence between the various stages may be as shown in fig. 3, for example.
In the camera control method provided by this embodiment, a first exposure parameter of the camera in the preview mode is determined according to a preset target brightness, a second exposure parameter of the camera in the shooting mode is determined according to an exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user, a brightness difference value is determined according to the first exposure parameter and the second exposure parameter, a digital gain value is determined according to the brightness difference value, and before an image is presented in the preview mode, a brightness value of the image presented in the preview mode is adjusted according to the digital gain value, so that the brightness of the image presented in the preview mode is controlled according to the brightness difference value, and the brightness of the image presented in the preview mode can be consistent with the brightness of the image shot in the shooting mode.
Fig. 4 is a flowchart illustrating a camera control method according to another embodiment of the invention. This embodiment mainly describes another alternative implementation manner of controlling the brightness of the image presented in the preview mode according to the brightness difference value on the basis of the embodiment shown in fig. 1. As shown in fig. 4, the method of this embodiment may include:
step 401, determining a first exposure parameter of the camera in the preview mode according to preset target brightness.
It should be noted that step 401 is similar to step 101, and is not described herein again.
Step 402, determining a second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user.
It should be noted that step 402 is similar to step 102, and is not described herein again.
Step 403, determining a brightness difference value according to the first exposure parameter and the second exposure parameter.
It should be noted that step 404 is similar to step 101, and is not described herein again.
And step 404, determining gear information according to the brightness difference value.
In this step, optionally, the gear information may be determined according to the brightness difference value and the corresponding relationship between the different brightness difference values and the gear information. Here, in the correspondence between different brightness difference values and the shift information, the granularity of dividing the brightness difference values can be flexibly designed according to design requirements. It can be understood that the coarser the division granularity of the brightness difference value, the less the gear information in the corresponding relationship, the simpler the implementation but the lower the precision; the finer the division granularity of the brightness difference value is, the more the gear information in the corresponding relation is, the more complex the implementation is but the higher the precision is.
Or, optionally, the gear information may be determined according to the brightness value and a preset formula.
The present invention is not limited to the manner of representing the shift position information. Alternatively, it may be represented by letters, such as a-gear, b-gear, c-gear, etc.; alternatively, it may be represented by numerical values, such as 1 st, 2 nd, 3 rd, etc.
Wherein the gear information may represent a relationship between a target gamma line and a standard gamma line of the camera. Here, the standard gamma line may refer to a non-linear gamma line obtained by adjusting a linear gamma line of a camera in order to make a response of the camera to a change of light intensity approximate to a response of a human eye to a change of light intensity in the related art. For example, assuming that the shift information x is a shift, the a shift may represent that the target gamma line is underexposed by 1 shift compared to the standard gamma line, the shift information y is a shift, and the b shift may represent that the target gamma line is underexposed by 2 shifts compared to the standard gamma line. The relationship between the standard gamma line, the gamma line underexposed by 1 step compared to the standard gamma line, and the gamma line underexposed by 2 steps compared to the standard gamma line can be shown in fig. 5. It can be understood that the specific relationship between the gamma line of 1 step relative to the overexposure or underexposure of the target gamma line and the standard gamma line can be flexibly designed according to the requirement, and the present invention is not limited thereto.
In order to make the representation of the shift information consistent with the representation of the gamma line, it is further optional that the shift information is a positive number when the exposure value corresponding to the second exposure parameter is overexposed compared with the exposure value corresponding to the first exposure parameter. At this time, the corresponding gamma line may be an overexposure × file, such as an overexposure 1 file (e.g., may be represented as 1EV gamma), and an overexposure 2 file (e.g., may be represented as 2EV gamma).
In order to make the representation of the gear information consistent with the representation of the gamma line, it is further optional that the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a negative number. At this time, the corresponding gamma line may be under-exposed, such as under-exposed 1-step (e.g., may be represented as-1 EV gamma), and under-exposed 2-step (e.g., may be represented as-2 EV gamma).
When the shift information is represented by a numerical value, the shift information may be an integer (e.g., 1) or a non-integer (e.g., 0.5), and the present invention is not limited thereto.
Step 405, determining a target gamma line used for exposure according to the gear information.
In this step, optionally, a target gamma line used for exposure may be generated in real time according to the gear information; or, optionally, for convenience of implementation, a gamma line corresponding to the gear information may be selected as the target gamma line in a preset gamma line set.
In order to simplify the implementation of the gamma line set, the gamma lines corresponding to partial gear information may be included in the gamma line set, for example, only the gamma lines corresponding to all integer gears may be included, and the gamma lines corresponding to non-integer gears may not be included; alternatively, the gamma lines corresponding to partial integer gears may be included, and the gamma lines corresponding to partial integer gears and the gamma lines corresponding to non-integer gears may not be included. Further optionally, step 405 may specifically include: selecting a first gamma line and a second gamma line corresponding to the gear information from a preset gamma line set; and determining the target gamma line according to the first gamma line and the second gamma line. Optionally, the target gamma line may be determined by interpolation according to the first gamma line and the second gamma line.
In step 406, during the process of presenting the image in the preview mode, the target gamma line is used for exposure.
Here, in the process of presenting an image in the preview mode, exposure is performed using a target gamma line, and it is possible to control the brightness of the image by adjustment of the gamma line, so that the brightness of the image presented in the preview mode can be made to coincide with the brightness of the image photographed in the photographing mode.
In the camera control method provided by this embodiment, a first exposure parameter of the camera in the preview mode is determined according to preset target brightness, a second exposure parameter of the camera in the shooting mode is determined according to an exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user, a brightness difference value is determined according to the first exposure parameter and the second exposure parameter, gear information is determined according to the brightness difference value, a target gamma line used for exposure is determined according to the gear information, and in the process of presenting an image in the preview mode, exposure is performed by using the target gamma line, so that the brightness of the image presented in the preview mode is controlled according to the brightness difference value, and the brightness of the image presented in the preview mode can be consistent with the brightness of the image shot in the shooting mode.
Fig. 6 is a flowchart illustrating a camera control method according to another embodiment of the invention. This embodiment mainly describes another alternative implementation way of controlling the brightness of the image presented in the preview mode according to the brightness difference value on the basis of the embodiment shown in fig. 1. As shown in fig. 6, the method of this embodiment may include:
step 601, determining a first exposure parameter of the camera in the preview mode according to preset target brightness.
It should be noted that step 601 is similar to step 101, and is not described herein again.
Step 602, determining a second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user.
It should be noted that step 602 is similar to step 102, and is not described herein again.
Step 603, determining a brightness difference value according to the first exposure parameter and the second exposure parameter.
It should be noted that step 603 is similar to step 101, and is not described herein again.
Step 604, adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness.
In this step, since the target brightness is used to determine the first exposure parameter, the first exposure parameter can be adjusted by adjusting the target brightness. Further, since the adjustment of the brightness of the target is determined according to the first exposure parameter and the second exposure parameter, the adjustment of the brightness of the target may enable the brightness of the image presented according to the adjusted first exposure parameter in the preview mode to be consistent with the brightness of the image photographed according to the second exposure parameter in the photographing mode.
Specifically, the target brightness value may be adjusted to be larger when the exposure value corresponding to the second exposure parameter is overexposed than the exposure value corresponding to the first exposure parameter, and the target brightness value may be adjusted to be smaller when the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, and the target brightness may be adjusted according to the brightness difference value to obtain the adjusted target brightness.
It should be noted that, as to the specific manner of adjusting the target brightness according to the brightness difference value, the embodiment of the present invention is not limited, and any specific determination manner of adjusting the target brightness that satisfies the third adjustment target falls within the scope of the present invention. Optionally, for convenience of implementation, the exposure value corresponding to the second exposure parameter is overexposed compared with the exposure value corresponding to the first exposure parameter; step 604 may specifically include: and taking the sum of the target brightness and the absolute value of the brightness difference value as the adjusted target brightness. Optionally, for convenience of implementation, the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter; step 604 may specifically include: and taking the difference between the target brightness and the absolute value of the brightness difference value as the adjusted target brightness.
Step 605, adjusting the first exposure parameter according to the adjusted target brightness, to obtain the adjusted first exposure parameter.
In this step, since the first exposure parameter is determined according to the target brightness, after the target brightness is adjusted, the first exposure parameter may be correspondingly adjusted to obtain the adjusted first exposure parameter. Moreover, the exposure value corresponding to the adjusted first exposure parameter may be the same as the exposure value corresponding to the second exposure parameter, that is, the exposure value corresponding to the adjusted first exposure parameter may be the same as the exposure value corresponding to the second exposure parameter, or the difference between the exposure value corresponding to the adjusted first exposure parameter and the exposure value corresponding to the second exposure parameter may be smaller than a certain threshold.
Optionally, the exposure value of the camera may be determined according to a difference between the exposure value determined by the automatic exposure algorithm and the adjusted target brightness, and the first exposure parameter is adjusted according to the exposure value of the camera to obtain the adjusted first exposure parameter.
For example, the aperture, shutter, or sensitivity of the first exposure parameter may be adjusted. For example, assume that the first exposure parameter before adjustment is F value 2.8, the shutter time is 1/20 seconds, and ISO is 800, and the exposure value corresponding to the second exposure parameter is overexposed to the exposure value corresponding to the first exposure parameter, and that the first exposure parameter after adjustment is F value 2.8, the shutter time is 1/20 seconds, and ISO is 400.
For convenience of implementation, a gain value of a sensor of the camera for controlling sensitivity in the first exposure parameter may be adjusted to obtain the adjusted first exposure parameter. That is, the gain value of the sensor changes in the first exposure parameter before adjustment as compared with the first exposure parameter after adjustment. Here, the gain value of the sensor may include a digital gain value and/or an analog gain value. It should be noted that, in the embodiment of the present invention, the gain value of the sensor is adjusted, and the photometric value of the photometric system needs to be determined by the sensor, so that the accuracy of the photometric system may be reduced.
Step 606, in the process of presenting the image in the preview mode, according to the adjusted first exposure parameter, performing exposure processing in the preview mode.
In this step, since the exposure value corresponding to the adjusted first exposure parameter may be consistent with the exposure value corresponding to the second exposure parameter, the brightness of the image presented in the preview mode according to the adjusted first exposure parameter may be consistent with the brightness of the image shot in the shooting mode according to the second exposure parameter.
It should be noted that the embodiment of the present invention may not adjust the second exposure parameter, that is, perform the exposure processing in the shooting mode or using the second exposure parameter.
The camera control method provided by this embodiment determines the first exposure parameter of the camera in the preview mode according to the preset target brightness, determining a second exposure parameter of the camera in the shooting mode according to the exposure value corresponding to the first exposure parameter and the exposure adjustment parameter set by the user, determining a brightness difference value according to the first exposure parameter and the second exposure parameter, adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness, adjusting the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter, and displaying the image in the preview mode according to the adjusted first exposure parameter, the exposure processing is carried out in the preview mode, so that the brightness of the image presented in the preview mode is controlled according to the brightness difference value, so that the brightness of the image presented in the preview mode can be identical to the brightness of the image photographed in the photographing mode.
The embodiment of the present invention also provides a computer-readable storage medium, in which a computer program is stored, where the computer program includes at least one code, and the at least one code is executable by a computer to control the computer to perform some or all of the steps of the camera control method in the above-mentioned method embodiments.
Embodiments of the present invention provide a computer program, which is used to implement some or all of the steps of the camera control method in the above-described method embodiments when the computer program is executed by a computer.
Fig. 7 is a camera control apparatus according to an embodiment of the present invention. As shown in fig. 7, the camera control apparatus 700 may include: a processor 701 and a memory 702;
the memory 702 for storing program code;
the processor 701, invoking the program code, when executed, is configured to perform the following:
determining a first exposure parameter of a camera in a preview mode according to preset target brightness;
determining a second exposure parameter of the camera in a shooting mode according to an exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user;
determining a brightness difference value according to the first exposure parameter and the second exposure parameter;
and controlling the brightness of the image presented in the preview mode according to the brightness difference value.
In a possible implementation, the processor 701 is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, and specifically includes:
determining a digital gain value according to the brightness difference value;
adjusting a brightness value of the image according to the digital gain value before presenting the image in the preview mode.
In a possible implementation, the processor 701 is configured to determine a digital gain value according to the brightness difference value, and specifically includes:
and determining a digital gain value according to the brightness difference value and a preset conversion relation.
In one possible implementation, the processor 701 is further configured to, before determining the digital gain value according to the brightness difference value:
judging whether the exposure value corresponding to the second exposure parameter is over-exposed than the exposure value corresponding to the first exposure parameter or not according to the brightness difference value;
and if the exposure value corresponding to the second exposure parameter is overexposed compared with the exposure value corresponding to the first exposure parameter, executing the step of determining the digital gain value according to the brightness difference value.
In a possible implementation, the processor 701 is configured to, before presenting an image in the preview mode, adjust a brightness value of the image according to the digital gain value, specifically including:
adjusting a brightness value of the image in a first processing stage according to the digital gain value before rendering the image in the preview mode; the first processing stage is a stage which allows setting of a digital gain value in all stages of processing of raw data obtained by the light metering area by the camera in the preview mode.
In a possible implementation, the processor 701 is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, and specifically includes:
determining gear information according to the brightness difference value;
determining a target gamma line used for exposure according to the gear information;
and in the process of presenting the image in a preview mode, exposing by using the target gamma line.
In one possible implementation, the processor 701 is configured to determine a target gamma line used for exposure according to the gear information, and specifically includes:
and selecting a gamma line corresponding to the gear information as the target gamma line in a preset gamma line set.
In one possible implementation, the processor 701 is configured to determine a target gamma line used for exposure according to the gear information, and specifically includes:
selecting a first gamma line and a second gamma line corresponding to the gear information from a preset gamma line set;
and determining the target gamma line according to the first gamma line and the second gamma line.
In a possible implementation, the exposure value corresponding to the second exposure parameter is overexposed compared to the exposure value corresponding to the first exposure parameter, and the gear information is a positive number.
In a possible implementation, the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a negative number.
In a possible implementation, the processor 701 is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, and specifically includes:
adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness;
adjusting the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter;
and in the process of presenting the image in the preview mode, carrying out exposure treatment in the preview mode according to the adjusted first exposure parameter.
In a possible implementation, the processor 701 is configured to adjust the first exposure parameter according to the adjusted target brightness, to obtain the adjusted first exposure parameter, and specifically includes:
and adjusting the gain value of the sensor of the camera in the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter.
In one possible implementation, the exposure value corresponding to the second exposure parameter is overexposed compared to the exposure value corresponding to the first exposure parameter;
the processor 701 is configured to adjust the target brightness according to the brightness difference value to obtain the adjusted target brightness, and specifically includes:
and taking the sum of the target brightness and the absolute value of the brightness difference value as the adjusted target brightness.
In one possible implementation, the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter;
the processor 701 is configured to adjust the target brightness according to the brightness difference value to obtain the adjusted target brightness, and specifically includes:
and taking the difference between the target brightness and the absolute value of the brightness difference value as the adjusted target brightness.
The camera control device provided in this embodiment may be used to implement the technical solution of the above method embodiments of the present invention, and the implementation principle and the technical effect are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks. Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (30)

1. A camera control method, comprising:
determining a first exposure parameter of a camera in a preview mode according to preset target brightness;
determining a second exposure parameter of the camera in a shooting mode according to an exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user;
determining a brightness difference value according to the first exposure parameter and the second exposure parameter;
and controlling the brightness of the image presented in the preview mode according to the brightness difference value.
2. The method of claim 1, wherein the controlling the brightness of the image presented in the preview mode according to the brightness difference value comprises:
determining a digital gain value according to the brightness difference value;
adjusting a brightness value of the image according to the digital gain value before presenting the image in the preview mode.
3. The method of claim 2, wherein determining a digital gain value based on the brightness difference value comprises:
and determining a digital gain value according to the brightness difference value and a preset conversion relation.
4. The method according to claim 2 or 3, wherein before determining the digital gain value according to the brightness difference value, further comprising:
judging whether the exposure value corresponding to the second exposure parameter is over-exposed than the exposure value corresponding to the first exposure parameter or not according to the brightness difference value;
and if the exposure value corresponding to the second exposure parameter is overexposed compared with the exposure value corresponding to the first exposure parameter, executing the step of determining the digital gain value according to the brightness difference value.
5. The method of claim 4, wherein adjusting a brightness value of the image according to the digital gain value before rendering the image in the preview mode comprises:
adjusting a brightness value of the image in a first processing stage according to the digital gain value before rendering the image in the preview mode; the first processing stage is a stage which allows setting of a digital gain value in all stages of processing of raw data obtained by the light metering area by the camera in the preview mode.
6. The method of claim 1, wherein the controlling the brightness of the image presented in the preview mode according to the brightness difference value comprises:
determining gear information according to the brightness difference value;
determining a target gamma line used for exposure according to the gear information;
and in the process of presenting the image in a preview mode, exposing by using the target gamma line.
7. The method of claim 6, wherein determining a target gamma line used for exposure based on the range information comprises:
and selecting a gamma line corresponding to the gear information as the target gamma line in a preset gamma line set.
8. The method of claim 6, wherein determining a target gamma line used for exposure based on the range information comprises:
selecting a first gamma line and a second gamma line corresponding to the gear information from a preset gamma line set;
and determining the target gamma line according to the first gamma line and the second gamma line.
9. The method according to any one of claims 6 to 8, wherein the exposure value corresponding to the second exposure parameter is overexposed compared to the exposure value corresponding to the first exposure parameter, and the gear information is a positive number.
10. The method according to any one of claims 6 to 8, wherein the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a negative number.
11. The method of claim 1, wherein the controlling the brightness of the image presented in the preview mode according to the brightness difference value comprises:
adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness;
adjusting the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter;
and in the process of presenting the image in the preview mode, carrying out exposure treatment in the preview mode according to the adjusted first exposure parameter.
12. The method according to claim 11, wherein the adjusting the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter comprises:
and adjusting the gain value of the sensor of the camera in the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter.
13. The method according to claim 11 or 12, wherein the exposure value corresponding to the second exposure parameter is overexposed compared to the exposure value corresponding to the first exposure parameter;
the adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness includes:
and taking the sum of the target brightness and the absolute value of the brightness difference value as the adjusted target brightness.
14. The method according to claim 11 or 12, wherein the exposure value corresponding to the second exposure parameter is underexposed compared to the exposure value corresponding to the first exposure parameter;
the adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness includes:
and taking the difference between the target brightness and the absolute value of the brightness difference value as the adjusted target brightness.
15. A camera control apparatus, comprising: a processor and a memory;
the memory for storing program code;
the processor, invoking the program code, when executed, is configured to:
determining a first exposure parameter of a camera in a preview mode according to preset target brightness;
determining a second exposure parameter of the camera in a shooting mode according to an exposure value corresponding to the first exposure parameter and an exposure adjustment parameter set by a user;
determining a brightness difference value according to the first exposure parameter and the second exposure parameter;
and controlling the brightness of the image presented in the preview mode according to the brightness difference value.
16. The apparatus of claim 15, wherein the processor is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, and specifically includes:
determining a digital gain value according to the brightness difference value;
adjusting a brightness value of the image according to the digital gain value before presenting the image in the preview mode.
17. The apparatus of claim 16, wherein the processor is configured to determine a digital gain value according to the brightness difference value, and specifically comprises:
and determining a digital gain value according to the brightness difference value and a preset conversion relation.
18. The apparatus of claim 16 or 17, wherein the processor is configured to, before determining the digital gain value according to the brightness difference value, further:
judging whether the exposure value corresponding to the second exposure parameter is over-exposed than the exposure value corresponding to the first exposure parameter or not according to the brightness difference value;
and if the exposure value corresponding to the second exposure parameter is overexposed compared with the exposure value corresponding to the first exposure parameter, executing the step of determining the digital gain value according to the brightness difference value.
19. The apparatus of claim 18, wherein the processor is configured to adjust a brightness value of the image according to the digital gain value before rendering the image in the preview mode, and specifically comprises:
adjusting a brightness value of the image in a first processing stage according to the digital gain value before rendering the image in the preview mode; the first processing stage is a stage which allows setting of a digital gain value in all stages of processing of raw data obtained by the light metering area by the camera in the preview mode.
20. The apparatus of claim 15, wherein the processor is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, and specifically includes:
determining gear information according to the brightness difference value;
determining a target gamma line used for exposure according to the gear information;
and in the process of presenting the image in a preview mode, exposing by using the target gamma line.
21. The apparatus of claim 20, wherein the processor is configured to determine a target gamma line used for exposure according to the gear information, and specifically comprises:
and selecting a gamma line corresponding to the gear information as the target gamma line in a preset gamma line set.
22. The apparatus of claim 20, wherein the processor is configured to determine a target gamma line used for exposure according to the gear information, and specifically comprises:
selecting a first gamma line and a second gamma line corresponding to the gear information from a preset gamma line set;
and determining the target gamma line according to the first gamma line and the second gamma line.
23. The apparatus according to any one of claims 20-22, wherein the exposure value corresponding to the second exposure parameter is overexposed compared to the exposure value corresponding to the first exposure parameter, and the gear information is a positive number.
24. The apparatus according to any one of claims 20-22, wherein the exposure value corresponding to the second exposure parameter is underexposed than the exposure value corresponding to the first exposure parameter, and the gear information is a negative number.
25. The apparatus of claim 15, wherein the processor is configured to control the brightness of the image presented in the preview mode according to the brightness difference value, and specifically includes:
adjusting the target brightness according to the brightness difference value to obtain the adjusted target brightness;
adjusting the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter;
and in the process of presenting the image in the preview mode, carrying out exposure treatment in the preview mode according to the adjusted first exposure parameter.
26. The apparatus according to claim 25, wherein the processor is configured to adjust the first exposure parameter according to the adjusted target brightness, to obtain the adjusted first exposure parameter, and specifically includes:
and adjusting the gain value of the sensor of the camera in the first exposure parameter according to the adjusted target brightness to obtain the adjusted first exposure parameter.
27. The apparatus according to claim 25 or 26, wherein the exposure value corresponding to the second exposure parameter is overexposed compared to the exposure value corresponding to the first exposure parameter;
the processor is configured to adjust the target brightness according to the brightness difference value to obtain the adjusted target brightness, and specifically includes:
and taking the sum of the target brightness and the absolute value of the brightness difference value as the adjusted target brightness.
28. The apparatus according to claim 25 or 26, wherein the exposure value corresponding to the second exposure parameter is underexposed compared to the exposure value corresponding to the first exposure parameter;
the processor is configured to adjust the target brightness according to the brightness difference value to obtain the adjusted target brightness, and specifically includes:
and taking the difference between the target brightness and the absolute value of the brightness difference value as the adjusted target brightness.
29. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program comprising at least one piece of code executable by a computer to control the computer to perform the camera control method of any one of claims 1-14.
30. A computer program for implementing the camera control method according to any one of claims 1 to 14 when the computer program is executed by a computer.
CN201980005410.6A 2019-03-12 2019-03-12 Camera control method and device Expired - Fee Related CN111316635B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/077789 WO2020181483A1 (en) 2019-03-12 2019-03-12 Camera control method and apparatus

Publications (2)

Publication Number Publication Date
CN111316635A true CN111316635A (en) 2020-06-19
CN111316635B CN111316635B (en) 2022-01-25

Family

ID=71157765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980005410.6A Expired - Fee Related CN111316635B (en) 2019-03-12 2019-03-12 Camera control method and device

Country Status (2)

Country Link
CN (1) CN111316635B (en)
WO (1) WO2020181483A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970462A (en) * 2020-08-20 2020-11-20 Oppo(重庆)智能科技有限公司 Exposure processing method, exposure processing apparatus, electronic device, and computer-readable storage medium
CN112312024A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Photographing processing method and device and storage medium
CN112468738A (en) * 2020-11-25 2021-03-09 上海摩象网络科技有限公司 Image display method, image display device, electronic device, and storage medium
CN116033275A (en) * 2023-03-29 2023-04-28 荣耀终端有限公司 Automatic exposure method, electronic equipment and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422715A (en) * 2022-01-17 2022-04-29 苏州中科全象智能科技有限公司 Autonomous adjusting method and device for line laser camera

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1406053A (en) * 2001-08-21 2003-03-26 徐明景 Picture treatment method and apparatus capable of regulating light-sensitive characteristic curve
TW200628968A (en) * 2005-02-14 2006-08-16 Asia Optical Co Inc Method for adjusting exposure system and image shooting device using the same
CN1984255A (en) * 2005-07-29 2007-06-20 奥林巴斯映像株式会社 Electronic blurring correction apparatus
CN101001325A (en) * 2006-01-13 2007-07-18 奥林巴斯映像株式会社 Digital camera
CN101166240A (en) * 2006-10-19 2008-04-23 索尼株式会社 Image processing device, image forming device and image processing method
CN101489047A (en) * 2008-01-18 2009-07-22 卡西欧计算机株式会社 Imaging apparatus and program thereof
CN103037155A (en) * 2011-09-30 2013-04-10 三星电子株式会社 Digital photographing apparatus and method of controlling the same
US20130093945A1 (en) * 2011-10-13 2013-04-18 Panasonic Corporation Imaging apparatus
US20130321664A1 (en) * 2012-05-30 2013-12-05 Samsung Electronics Co., Ltd. Photographing apparatus, method of controlling the same, and computer-readable recording medium
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
US20160182795A1 (en) * 2014-12-17 2016-06-23 Canon Kabushiki Kaisha Image pickup apparatus having live view function, and method of controlling the same
CN106416222A (en) * 2014-05-30 2017-02-15 苹果公司 Real-time capture exposure adjust gestures
CN107277382A (en) * 2016-03-30 2017-10-20 奥林巴斯株式会社 Filming apparatus and image pickup method
CN108322663A (en) * 2018-05-14 2018-07-24 Oppo广东移动通信有限公司 Photographic method, device, terminal and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7027094B2 (en) * 2001-06-21 2006-04-11 Hewlett-Packard Development Company, L.P. Modeless digital still camera using touch-sensitive shutter button
JP4645685B2 (en) * 2008-06-02 2011-03-09 カシオ計算機株式会社 Camera, camera control program, and photographing method
CN101651775B (en) * 2008-08-14 2011-08-24 鸿富锦精密工业(深圳)有限公司 Image capture device and exposure method thereof
JP2010068046A (en) * 2008-09-08 2010-03-25 Olympus Imaging Corp Imaging apparatus
CN102645816B (en) * 2011-02-16 2015-01-14 佳能企业股份有限公司 Exposure parameter correcting method and imaging device
WO2012120952A1 (en) * 2011-03-04 2012-09-13 富士フイルム株式会社 Photography device and display control method
WO2014175234A1 (en) * 2013-04-26 2014-10-30 富士フイルム株式会社 Image capture device and image display method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1406053A (en) * 2001-08-21 2003-03-26 徐明景 Picture treatment method and apparatus capable of regulating light-sensitive characteristic curve
TW200628968A (en) * 2005-02-14 2006-08-16 Asia Optical Co Inc Method for adjusting exposure system and image shooting device using the same
CN1984255A (en) * 2005-07-29 2007-06-20 奥林巴斯映像株式会社 Electronic blurring correction apparatus
CN101001325A (en) * 2006-01-13 2007-07-18 奥林巴斯映像株式会社 Digital camera
CN101166240A (en) * 2006-10-19 2008-04-23 索尼株式会社 Image processing device, image forming device and image processing method
CN101489047A (en) * 2008-01-18 2009-07-22 卡西欧计算机株式会社 Imaging apparatus and program thereof
CN103037155A (en) * 2011-09-30 2013-04-10 三星电子株式会社 Digital photographing apparatus and method of controlling the same
US20130093945A1 (en) * 2011-10-13 2013-04-18 Panasonic Corporation Imaging apparatus
US20130321664A1 (en) * 2012-05-30 2013-12-05 Samsung Electronics Co., Ltd. Photographing apparatus, method of controlling the same, and computer-readable recording medium
CN106416222A (en) * 2014-05-30 2017-02-15 苹果公司 Real-time capture exposure adjust gestures
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
US20160182795A1 (en) * 2014-12-17 2016-06-23 Canon Kabushiki Kaisha Image pickup apparatus having live view function, and method of controlling the same
CN107277382A (en) * 2016-03-30 2017-10-20 奥林巴斯株式会社 Filming apparatus and image pickup method
CN108322663A (en) * 2018-05-14 2018-07-24 Oppo广东移动通信有限公司 Photographic method, device, terminal and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970462A (en) * 2020-08-20 2020-11-20 Oppo(重庆)智能科技有限公司 Exposure processing method, exposure processing apparatus, electronic device, and computer-readable storage medium
CN112312024A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Photographing processing method and device and storage medium
CN112468738A (en) * 2020-11-25 2021-03-09 上海摩象网络科技有限公司 Image display method, image display device, electronic device, and storage medium
CN116033275A (en) * 2023-03-29 2023-04-28 荣耀终端有限公司 Automatic exposure method, electronic equipment and computer readable storage medium
CN116033275B (en) * 2023-03-29 2023-08-15 荣耀终端有限公司 Automatic exposure method, electronic equipment and computer readable storage medium
CN116996762A (en) * 2023-03-29 2023-11-03 荣耀终端有限公司 Automatic exposure method, electronic equipment and computer readable storage medium
CN116996762B (en) * 2023-03-29 2024-04-16 荣耀终端有限公司 Automatic exposure method, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
WO2020181483A1 (en) 2020-09-17
CN111316635B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN111316635B (en) Camera control method and device
EP1689164B1 (en) Method and device for creating enhanced picture by means of several consecutive exposures
US10412296B2 (en) Camera using preview image to select exposure
JP6259185B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
US9936144B2 (en) Imaging device and shooting method capable of generating a bulb exposure image
CN100461828C (en) Device and method for processing images
JP6218389B2 (en) Image processing apparatus and image processing method
US20100103268A1 (en) Digital camera
CN101019416A (en) Imaging apparatus
US20070024721A1 (en) Compensating for improperly exposed areas in digital images
JP2017112461A (en) Imaging device and control method, program thereof, and storage medium
CN111064898B (en) Image shooting method and device, equipment and storage medium
JP4999871B2 (en) Imaging apparatus and control method thereof
JP2017112462A (en) Imaging device and control method, program therefor and storage medium
CN117014733B (en) Shooting correction method, device and equipment
US9674455B1 (en) Programmable manual mode for digital cameras
JP5911340B2 (en) Imaging apparatus and control method thereof
JP5335964B2 (en) Imaging apparatus and control method thereof
CN115633258A (en) Brightness adjusting method, equipment, storage medium and product
JP6300514B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP4077217B2 (en) Automatic exposure control device and program thereof
JP2017068513A (en) Image processing device and method thereof, program, and storage medium
JP2005260738A (en) Imaging apparatus and its exposure control method
JP6148577B2 (en) Imaging apparatus and control method
JP2023126280A (en) Imaging apparatus, control method thereof, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220125