CN113766145B - Camera adjusting method, device, electronic equipment and storage medium - Google Patents

Camera adjusting method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113766145B
CN113766145B CN202111151945.XA CN202111151945A CN113766145B CN 113766145 B CN113766145 B CN 113766145B CN 202111151945 A CN202111151945 A CN 202111151945A CN 113766145 B CN113766145 B CN 113766145B
Authority
CN
China
Prior art keywords
exposure
adjusted
value
current
determining
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.)
Active
Application number
CN202111151945.XA
Other languages
Chinese (zh)
Other versions
CN113766145A (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.)
Chongqing Unisinsight Technology Co Ltd
Original Assignee
Chongqing Unisinsight 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 Chongqing Unisinsight Technology Co Ltd filed Critical Chongqing Unisinsight Technology Co Ltd
Priority to CN202111151945.XA priority Critical patent/CN113766145B/en
Publication of CN113766145A publication Critical patent/CN113766145A/en
Application granted granted Critical
Publication of CN113766145B publication Critical patent/CN113766145B/en
Active 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
    • H04N23/745Detection of flicker frequency or suppression of flicker wherein the flicker is caused by illumination, e.g. due to fluorescent tube illumination or pulsed LED illumination
    • 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
    • H04N23/72Combination of two or more compensation controls
    • 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
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • 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
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Abstract

The application discloses a camera adjusting method, a camera adjusting device, electronic equipment and a storage medium, which solve the problem of image flickering caused by adjusting an aperture in a zooming process. In the embodiment of the application, the size of the optimal aperture under different multiplying powers is calibrated in advance, the sizes of different apertures are adjusted according to different multiplying powers in the zooming process, the phenomena of image fogging, large chromatic aberration and poor definition are avoided in the multiplying power changing process, meanwhile, the exposure is adjusted according to the adjusted aperture size, the phenomenon of picture flickering which does not occur in the smooth transition of picture brightness in the aperture adjusting process is ensured, the stable and smooth picture brightness in the whole zooming adjusting process is ensured, and the better image effect of the image under different multiplying powers is met.

Description

Camera adjusting method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of video image processing technologies, and in particular, to a camera adjustment method, a camera adjustment device, an electronic device, and a storage medium.
Background
With the wide application of the monitoring camera, the adaptability requirement on the camera is higher and higher, and the current view is far from the original view. With the wide application of high magnification lens, the camera can meet the requirements of monitoring scenes at different distances through zooming.
The lens mainly comprises a plurality of lenses, and in the zooming process, a scene image of the monitoring scene is transmitted into an image Sensor (Sensor) through an aperture by adjusting the lenses. Due to the movement of the lens, the angles of light rays under different multiplying powers are changed, and meanwhile, the phenomena of purple edges, dark corners and the like of images under different multiplying powers are easily caused if the aperture size is unsuitable, so that the image effect is greatly influenced. In order to eliminate the influence on the image caused by the unreasonable aperture size at the time of such magnification change, the most direct and effective way is to adjust the size of the lens aperture at the time of magnification change. However, in the process of adjusting the aperture of the lens, because the size of the aperture is suddenly adjusted in the process of changing the magnification, abrupt image brightness changes occur, and image flickering is caused.
Disclosure of Invention
The purpose of the application is to provide a camera adjusting method, a camera adjusting device, an electronic device and a storage medium, which are used for solving the problem of image flickering caused by adjusting an aperture in a zooming process.
In a first aspect, an embodiment of the present application provides a camera adjustment method, including:
in the process of collecting video streams, responding to an adjusting instruction of a user for multiplying power, and determining an adjusting multiplying power corresponding to the adjusting instruction;
Determining an aperture to be adjusted corresponding to the adjustment multiplying power according to the corresponding relation between the preset multiplying power and the aperture, and determining a first exposure corresponding to the aperture to be adjusted according to the corresponding relation between the preset aperture and the exposure;
determining a shutter value to be adjusted of the camera and a gain value to be adjusted of an image sensor according to the first exposure;
and adjusting the current aperture, the current shutter value and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted and the gain value to be adjusted.
In the embodiment of the application, the shutter value and the gain value are adjusted while the aperture is adjusted in the zooming process, so that the problems of image flickering and poor definition caused when the aperture is adjusted according to the magnification are solved, the process of adjusting the magnification smoothly of a picture is realized, the smoothness of the picture in the zooming process is ensured, and the condition that images under different magnifications can have better image effects is met.
In some possible embodiments, the determining a shutter value to be adjusted of the camera and a gain value to be adjusted of an image sensor according to the first exposure amount includes:
determining the adjusting trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted;
According to the adjustment trend, the current shutter value and the current gain value, determining candidate exposure lines from a plurality of exposure lines included in an exposure line; wherein each exposure line corresponds to a range of parameters including at least: shutter and gain;
determining the adjustment sequence of the candidate exposure lines according to the adjustment trend and the sequence of the candidate exposure lines in the exposure path;
and determining a shutter value to be adjusted and a gain value to be adjusted according to the first exposure and the adjustment sequence.
In this application, can set up the order of exposure line in the exposure path according to the difference of the camera lens and the sensor sensitivity that different products used for this application all is suitable for to various products, has improved the universality of this application.
In some possible embodiments, the determining the adjusting trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted includes:
if the comparison result shows that the current aperture is larger than the aperture to be adjusted, determining that the adjustment trend is to be adjusted according to the upper limit value of the exposure line;
and if the comparison result shows that the current aperture is smaller than the aperture to be adjusted, determining that the adjustment trend is to be adjusted according to the lower limit value of the exposure line.
In the embodiment of the application, the adjusting trend of the exposure line is determined according to the comparison result, so that the adjustment of each exposure line in the exposure line device is more accurate.
In some possible embodiments, the determining, according to the adjustment trend, the current shutter value and the current gain value, a candidate exposure line from a plurality of exposure lines included in an exposure line includes:
if the adjustment trend is that the adjustment is carried out according to the upper limit value of the exposure line, determining the upper limit value of the exposure line where the current shutter value is located and the upper limit value of the exposure line where the current gain value is located; determining the candidate exposure line according to the upper limit value of the exposure line where the current shutter value is located, the upper limit value of the exposure line where the current gain value is located and the sequence, wherein the sequence is the sequence of the candidate exposure line in the exposure path; or (b)
If the adjustment trend is that the adjustment is carried out according to the lower limit value of the exposure line, determining the lower limit value of the exposure line where the current shutter value is located and the lower limit value of the exposure line where the current gain value is located; and determining the candidate exposure line according to the lower limit value of the exposure line where the current shutter value is located, the lower limit value of the exposure line where the current gain value is located and the sequence.
In the embodiment of the application, the candidate exposure lines are determined according to different sequences and the upper limit value and the lower limit value of the exposure lines, so that the efficiency of determining the gain to be adjusted and the shutter to be adjusted is improved.
In some possible embodiments, the determining the shutter value to be adjusted and the gain value to be adjusted according to the first exposure and the adjustment sequence includes:
if the adjustment trend indicates that the adjustment is performed according to the upper limit value of the exposure line, determining a first exposure line to be adjusted according to the adjustment sequence; the first exposure line to be adjusted is an exposure line which is ordered as a first exposure line in the adjusting sequence; determining the current value of the parameter in the first exposure line to be adjusted, and determining the exposure required by the current value to be adjusted to an upper limit value;
if the required exposure is larger than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to a preset algorithm and the current value; if the required exposure is equal to or smaller than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to the upper limit value of the parameter corresponding to the first exposure to be adjusted; or (b)
If the adjustment trend indicates adjustment according to the lower limit value of the exposure line, determining a second exposure line to be adjusted according to the adjustment sequence; the second exposure line to be adjusted is the exposure line which is ordered into the first exposure line in the adjusting sequence; determining the current value of a parameter in the second exposure line to be adjusted, and determining the exposure amount required by adjusting the current value to a lower limit value;
If the required exposure is larger than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to a preset algorithm and the current value; and if the exposure is equal to or smaller than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to the lower limit value of the parameter corresponding to the second exposure line to be adjusted.
In the embodiment of the application, the gain to be adjusted and the shutter to be adjusted are determined according to the preset algorithm and the first exposure, and the gain to be adjusted and the exposure can be accurately determined, so that the transition of the picture in the zooming process is smoother.
In some possible embodiments, before the adjusting the current aperture, the current shutter value, and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted, and the gain value to be adjusted, the method further includes:
and determining that the adjustment multiplying power is different from the current multiplying power, wherein the current multiplying power is the multiplying power stored before responding to the user's adjusting instruction of the multiplying power.
In the embodiment of the application, when the adjusting multiplying power is different from the current multiplying power, the aperture is adjusted, so that flicker of a picture in the zooming process is avoided.
In some possible embodiments, the method further comprises:
and if the adjustment multiplying power is the same as the multiplying power stored in advance, not adjusting the gains of the current aperture, the current shutter and the current image sensor of the camera.
In the embodiment of the application, when the adjustment multiplying power is the same as the current multiplying power, the aperture, the shutter and the gain of the camera are not adjusted, so that the resource waste caused by adjusting the aperture shutter and the gain each time is avoided.
Second aspect the present application also provides a camera adjustment device, the device comprising:
the system comprises a multiplying power determining module, a multiplying power determining module and a multiplying power processing module, wherein the multiplying power determining module is used for responding to an adjusting instruction of a user for multiplying power in the acquisition process of a video stream and determining an adjusting multiplying power corresponding to the adjusting instruction;
the first exposure determining module is used for determining an aperture to be adjusted corresponding to the adjustment multiplying power according to the corresponding relation between the preset multiplying power and the aperture, and determining a first exposure corresponding to the aperture to be adjusted according to the corresponding relation between the preset aperture and the exposure;
a shutter gain determining module, configured to determine a shutter value to be adjusted of the camera and a gain value to be adjusted of the image sensor according to the first exposure;
And the adjusting module is used for adjusting the current aperture, the current shutter value and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted and the gain value to be adjusted.
In some possible embodiments, the shutter gain determination module, when executing determining a shutter value to be adjusted of the camera and a gain value to be adjusted of an image sensor according to the first exposure amount, is configured to:
determining the adjusting trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted;
according to the adjustment trend, the current shutter value and the current gain value, determining candidate exposure lines from a plurality of exposure lines included in an exposure line; wherein each exposure line corresponds to a range of parameters including at least: shutter and gain;
determining the adjustment sequence of the candidate exposure lines according to the adjustment trend and the sequence of the candidate exposure lines in the exposure path;
and determining a shutter value to be adjusted and a gain value to be adjusted according to the first exposure and the adjustment sequence.
In some possible embodiments, the shutter gain determining module, when executing the determination of the adjustment trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted, is configured to:
If the comparison result shows that the current aperture is larger than the aperture to be adjusted, determining that the adjustment trend is to be adjusted according to the upper limit value of the exposure line;
and if the comparison result shows that the current aperture is smaller than the aperture to be adjusted, determining that the adjustment trend is to be adjusted according to the lower limit value of the exposure line.
In some possible embodiments, when the shutter gain determining module determines a candidate exposure line from a plurality of exposure lines included in an exposure line according to the adjustment trend and the current shutter value and the current gain value, the shutter gain determining module is configured to:
if the adjustment trend is that the adjustment is carried out according to the upper limit value of the exposure line, determining the upper limit value of the exposure line where the current shutter value is located and the upper limit value of the exposure line where the current gain value is located; determining the candidate exposure line according to the upper limit value of the exposure line where the current shutter value is located, the upper limit value of the exposure line where the current gain value is located and the sequence, wherein the sequence is the sequence of the candidate exposure line in the exposure path; or (b)
If the adjustment trend is that the adjustment is carried out according to the lower limit value of the exposure line, determining the lower limit value of the exposure line where the current shutter value is located and the lower limit value of the exposure line where the current gain value is located; and determining the candidate exposure line according to the lower limit value of the exposure line where the current shutter value is located, the lower limit value of the exposure line where the current gain value is located and the sequence.
In some possible embodiments, the shutter gain determination module, when executing the determination of the shutter value to be adjusted and the gain value to be adjusted according to the first exposure and the adjustment order, is configured to:
if the adjustment trend indicates that the adjustment is performed according to the upper limit value of the exposure line, determining a first exposure line to be adjusted according to the adjustment sequence; the first exposure line to be adjusted is an exposure line which is ordered as a first exposure line in the adjusting sequence; determining the current value of the parameter in the first exposure line to be adjusted, and determining the exposure required by the current value to be adjusted to an upper limit value;
if the required exposure is larger than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to a preset algorithm and the current value; if the required exposure is equal to or smaller than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to the upper limit value of the parameter corresponding to the first exposure to be adjusted; or (b)
If the adjustment trend indicates adjustment according to the lower limit value of the exposure line, determining a second exposure line to be adjusted according to the adjustment sequence; the second exposure line to be adjusted is the exposure line which is ordered into the first exposure line in the adjusting sequence; determining the current value of a parameter in the second exposure line to be adjusted, and determining the exposure amount required by adjusting the current value to a lower limit value;
If the required exposure is larger than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to a preset algorithm and the current value; and if the exposure is equal to or smaller than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to the lower limit value of the parameter corresponding to the second exposure line to be adjusted.
In some possible embodiments, before the adjusting module performs the adjustment of the current aperture, the current shutter value, and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted, and the gain value to be adjusted, the adjusting module is further configured to:
and determining that the adjustment multiplying power is different from the current multiplying power, wherein the current multiplying power is the multiplying power stored before responding to the user's adjusting instruction of the multiplying power.
In some possible embodiments, the apparatus further comprises:
and if the adjustment multiplying power is the same as the multiplying power stored in advance, not adjusting the gains of the current aperture, the current shutter and the current image sensor of the camera.
In a third aspect, another embodiment of the present application also provides an electronic device, including at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the methods provided by the embodiments of the first aspect of the present application.
In a fourth aspect, another embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program for causing a computer to perform any one of the methods provided by the embodiments of the first aspect of the present application.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, and it is obvious that the drawings that are described below are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario diagram of a camera adjustment method provided in an embodiment of the present application;
fig. 2 is an overall flowchart of a camera adjustment method according to an embodiment of the present application;
Fig. 3 is a diagram showing a correspondence relationship between an aperture and an exposure amount in a camera adjusting method according to an embodiment of the present application;
fig. 4 is a schematic diagram of determining a shutter value to be adjusted and a gain value to be adjusted of a camera according to a first exposure according to a camera adjustment method provided in an embodiment of the present application;
fig. 5 is a schematic diagram of an exposure path of a camera adjusting method according to an embodiment of the present application;
FIG. 6 is a flowchart of a camera adjustment method according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a camera adjusting method according to an embodiment of the present disclosure;
FIG. 8 is another schematic diagram of a camera adjustment method according to an embodiment of the present disclosure;
FIG. 9 is a flowchart of a camera adjustment method according to an embodiment of the present disclosure;
fig. 10 is a schematic diagram of a camera adjusting method according to an embodiment of the present disclosure;
FIG. 11 is another schematic diagram of a camera adjustment method according to the embodiment of the present disclosure;
FIG. 12 is a flowchart of a camera adjustment method according to an embodiment of the present disclosure;
fig. 13 is a schematic diagram of a camera adjusting method according to an embodiment of the present disclosure;
fig. 14 is a schematic diagram of determining a shutter value to be adjusted and a gain value to be adjusted according to a camera adjustment method provided in an embodiment of the present application;
FIG. 15 is a flowchart of a camera adjustment method according to an embodiment of the present disclosure;
FIG. 16 is a schematic diagram of a camera adjustment method according to an embodiment of the present disclosure;
FIG. 17 is an overall flowchart of a camera adjustment method according to an embodiment of the present disclosure;
fig. 18 is a schematic device diagram of a camera adjustment method according to an embodiment of the present application;
fig. 19 is a schematic diagram of an electronic device according to a camera adjustment method according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and in the claims are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
For ease of understanding, the terms referred to in this application are explained first:
a shutter: the faster the shutter speed of the light-entering quantity is controlled, the shorter the light passing time is, and the darker the picture is. The slower the shutter speed, the longer the light passing time, the brighter the picture;
gain: the signal of the Sensor of the camera is amplified by a video amplifier, the amplification factor of which is called gain. If the gain of the amplifier remains unchanged, the video signal will saturate in a high brightness environment. The gain of the amplifier can be automatically adjusted along with the change of the illuminance inside and outside the environment by utilizing the automatic gain control circuit of the camera, so that the camera can work in a larger illumination range;
Exposure amount: the light rays passing through the finger can make the photosensitive element obtain a clear image;
an aperture: means for controlling the amount of light transmitted through the lens and into the light sensing surface of the body, typically within the lens;
multiplying power: the optical lens performance parameter refers to the ratio of the imaging size of an object through the lens at the focal plane to the actual size of the object.
The inventor researches and discovers that along with the wide application of the monitoring camera, the adaptability requirement on the camera is higher and higher, and the current view is far from the original view. With the wide application of high magnification lens, the camera can meet the requirements of monitoring scenes at different distances through zooming.
The lens mainly comprises a plurality of lenses, and in the zooming process, the monitoring scene picture is transmitted into the Sensor through the aperture by adjusting the lenses. Due to the movement of the lens, the angles of light rays under different multiplying powers are changed, and meanwhile, the phenomena of purple edges, dark corners and the like of images under different multiplying powers are easily caused if the aperture size is unsuitable, so that the image effect is greatly influenced. In order to eliminate the influence on the image caused by the unreasonable aperture size at the time of such magnification change, the most direct and effective way is to adjust the size of the lens aperture at the time of magnification change. However, in the process of adjusting the aperture of the lens, because the size of the aperture is suddenly adjusted in the process of changing the magnification, abrupt image brightness changes occur, and image flickering is caused.
In view of the foregoing, the present application proposes a camera adjustment method, apparatus, electronic device, and storage medium for solving the above-mentioned problems. The inventive concepts of the present application can be summarized as follows: the optimal aperture sizes under different multiplying powers are calibrated in advance, the sizes of different apertures are adjusted according to different multiplying powers in the zooming process, the phenomena of image fogging, large chromatic aberration and poor definition are avoided in the multiplying power changing process, meanwhile, the exposure is adjusted according to the adjusted aperture sizes, the phenomenon of image flickering is avoided in the smooth transition of the image brightness in the aperture adjusting process, the stable and smooth image brightness in the whole zooming adjusting process is ensured, and the better image effect of images under different multiplying powers is achieved.
The following describes a camera adjusting method according to an embodiment of the present application in detail with reference to the accompanying drawings:
fig. 1 is an application scenario diagram of a camera adjustment method according to an embodiment of the present application. The drawings include: a memory 10, a camera 20; wherein:
in the process of collecting video streams, a camera responds to an adjusting instruction of a user on the multiplying power, and the adjusting multiplying power corresponding to the adjusting instruction is determined; and acquires the aperture to be adjusted and the first exposure corresponding to the magnification from the memory 10; and determining a shutter to be adjusted and a gain to be adjusted according to the first exposure, and adjusting the current aperture, shutter and gain of the camera according to the aperture to be adjusted, the shutter to be adjusted and the gain to be adjusted.
In the embodiment of the present application, the memory may be disposed inside the camera, or may be a separate external memory, which is not limited in this application. All cameras with adjustable magnification are suitable for the application, which is not limited in this application.
Only a single camera is detailed in the description herein, but it will be understood by those skilled in the art that the illustrated camera 20, memory 10 are intended to represent the operation of the camera and memory involved in the technical solution of the present application. The details of a single camera and memory are provided for convenience of explanation at least and not to imply limitations on the number, type, location, etc. of cameras. It should be noted that the underlying concepts of the example embodiments of the present application are not altered if additional modules are added to or individual modules are removed from the illustrated environment.
It should be noted that, the memory in the embodiments of the present application may be, for example, a cache system, or may also be a hard disk storage, a memory storage, or the like. In addition, the camera adjusting method provided by the application is not only suitable for the application scene shown in fig. 1, but also suitable for any device with camera adjusting requirements.
As shown in fig. 2, an overall flowchart of a camera adjustment method according to an embodiment of the present application is provided, where:
In step 201: in the process of collecting video streams, responding to an adjusting instruction of a user on the multiplying power, and determining an adjusting multiplying power corresponding to the adjusting instruction;
in step 202: determining an aperture to be adjusted corresponding to the adjustment multiplying power according to the corresponding relation between the preset multiplying power and the aperture, and determining a first exposure corresponding to the aperture to be adjusted according to the corresponding relation between the preset aperture and the exposure;
in step 203: determining a shutter value to be adjusted of the camera and a gain value to be adjusted of the image sensor according to the first exposure;
in step 204: and adjusting the current aperture, the current shutter value and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted and the gain value to be adjusted.
In some embodiments, a person skilled in the art marks an optimal aperture value corresponding to different multiplying powers according to the image effect, and the value can ensure that the problems of spot light source starburst, image blurring and the like do not occur under the multiplying powers; in practical application, the aperture value is finally converted into a stepping value of the motor. Such as: when the multiplying power is 1X, the optimal aperture value is a step of 250; when the multiplying power is 10X, the optimal aperture value is 200 steps; when the multiplying power is 16X, the optimal aperture value is 300 steps; when the magnification is 45X, the optimal aperture value is 300 steps. When the corresponding conditions are met, the optimal effect of the image can be ensured, and the image can not be blurred, the phenomena of star burst of point light sources, chromatic aberration and the like. In order to quickly determine the optimal aperture value corresponding to the multiplying power, the corresponding relation between the aperture and the multiplying power can be stored in a memory, and the optimal aperture value corresponding to the multiplying power can be acquired from the memory according to the multiplying power by a table look-up method in the later application. It is of course understood that a person skilled in the art can set an aperture range for each magnification according to the display effect of the image, for example: when the multiplying power is 1X, the optimal aperture value is a step of 250+/-10; when the multiplying power is 10X, the optimal aperture value is 200+/-10 steps; by this method the versatility of the present application is increased.
Because the aperture can be used for controlling light to pass through the lens, the brightness of the picture can be correspondingly changed by changing the size of the aperture. For example, if the aperture becomes large, the screen brightness becomes large; the aperture becomes smaller and the screen brightness becomes smaller. When the aperture is smaller, the exposure is greatly affected by the change of the aperture; when the aperture is large, the exposure amount is not changed much when the aperture is changed as when the aperture is small. In the embodiment of the application, in order to avoid flicker of a screen caused by a change in aperture, the exposure amount is adjusted while adjusting the aperture. In order to determine the exposure amount corresponding to the aperture, in this application, the correspondence relationship between the aperture and the exposure amount is calibrated in advance, and as shown in fig. 3, when the aperture is changed, the exposure amount corresponding to the aperture is determined according to the correspondence relationship shown in fig. 3.
The adjustment of the exposure amount can be achieved by adjusting the shutter and the gain in the camera, and the determination of the shutter value to be adjusted and the gain value to be adjusted of the Sensor of the camera according to the first exposure amount can be implemented as the steps shown in fig. 4:
in step 401: determining the adjusting trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted;
in the embodiment of the application, when determining the adjustment trend according to the comparison result, if the comparison result indicates that the current aperture is larger than the aperture to be adjusted, determining the adjustment trend to be adjusted according to the upper limit value of the exposure line; if the comparison result shows that the current aperture is smaller than the aperture to be adjusted, determining the adjustment trend to be adjusted according to the lower limit value of the exposure line.
In step 402: according to the adjustment trend, the current shutter value and the current gain value, determining a candidate exposure line from a plurality of exposure lines included in the exposure line; wherein, each exposure line corresponds to a range of parameters, and the parameters at least comprise: shutter and gain;
in the implementation process, since the lens and Sensor photosensitivity of different cameras are different, the exposure line requirements of different cameras on the exposure line are different, and in the embodiment of the application, the exposure line with different quantity and sequence can be set according to the requirements of the cameras. For example: as shown in fig. 5, the order in which the exposure lines may be set in the exposure path 1 is: aperture, shutter, gain, aperture, gain; the order of setting exposure lines in the exposure path 2 is: shutter, gain, aperture, shutter, gain.
In this embodiment of the present application, the adjustment trend may be divided into an adjustment sequence for determining the candidate exposure line according to the upper limit value of the exposure line and an adjustment sequence for determining the candidate exposure line according to the lower limit value of the exposure line, which are described below:
1. determining candidate exposure lines according to the upper limit value of the exposure lines
When the adjustment is performed according to the upper limit value of the exposure line, the steps shown in fig. 6 may be performed:
In step 601: determining the upper limit value of the exposure line where the current shutter value is located and the upper limit value of the exposure line where the current gain value is located;
in step 602: and determining the candidate exposure lines according to the upper limit value of the exposure line where the current shutter value is located, the upper limit value of the exposure line where the current gain value is located and the sequence, wherein the sequence is the sequence of the candidate exposure lines in the exposure path.
For ease of understanding, the following examples are illustrated as shown in fig. 7:
the current shutter value is 1/500, the current gain value is 35, and the sequence of exposure lines in the current exposure path is as follows: aperture 1, shutter 1, gain 1, aperture 2, shutter 2, gain 2; the current shutter value is on shutter 1 and the current gain value is on gain 2; the upper limit of the shutter 1 is 1/100, the upper limit of the shutter 2 is 1/10, the upper limit of the gain 1 is 30, the upper limit of the gain 2 is 50, the aperture is adjusted from the current value 300 to 400, the shutter and the gain are required to be adjusted to be large, the current shutter value is 1/500, and the maximum adjustable value in the current exposure path is 1/10; the current gain value is 35, and the maximum value can be adjusted to 50, so that the candidate exposure lines can be determined to be shutter 1, shutter 2 and gain 2.
In another embodiment, as shown in FIG. 8, the current shutter value is 1/50, the current gain value is 20, and the order of exposure lines in the current exposure path is: aperture 1, shutter 1, gain 1, aperture 2, shutter 2, gain 2; the current shutter value is on shutter 2 and the current gain value is on gain 1; the upper limit of the shutter 1 is 1/100, the upper limit of the shutter 2 is 1/10, the upper limit of the gain 1 is 30, the upper limit of the gain 2 is 50, the aperture is adjusted from the current value 300 to 400, the shutter and the gain are required to be adjusted to be large, the current shutter value is 1/50, and the maximum adjustable value in the current exposure path is 1/10; the current gain value is 20, and the maximum value can be adjusted to 50, so that the candidate exposure lines can be determined to be gain 1, shutter 2 and gain 2.
2. Determining candidate exposure line according to lower limit value of exposure line
In some embodiments, when the adjustment is performed according to the lower limit value of the exposure line, the steps shown in fig. 9 may be implemented:
in step 901: determining the lower limit value of the exposure line where the current shutter value is located and the lower limit value of the exposure line where the current gain value is located;
in step 902: and determining the candidate exposure line according to the lower limit value of the exposure line where the current shutter value is located, the lower limit value of the exposure line where the current gain value is located and the sequence.
For ease of understanding, the following examples are illustrated as shown in fig. 10:
the current shutter value is 1/500, the current gain value is 35, and the sequence of exposure lines in the current exposure path is as follows: aperture 1, shutter 1, gain 1, aperture 2, shutter 2, gain 2; the current shutter value is on shutter 1 and the current gain value is on gain 2; the lower limit of the shutter 1 is 1/1000, the lower limit of the shutter 2 is 1/100, the lower limit of the gain 1 is 0, the lower limit of the gain 2 is 30, the aperture is adjusted from the current value 400 to 300, the shutter and the gain are required to be adjusted to be smaller, the current shutter value is 1/500, and the minimum adjustable value in the current exposure path is 1/1000; the current gain value is 35, and the minimum value can be adjusted to 0, so that the candidate exposure lines can be determined to be shutter 1, gain 1 and gain 2.
In another embodiment, as shown in FIG. 11, the current shutter value is 1/50, the current gain value is 40, and the order of exposure lines in the current exposure path is: aperture 1, shutter 1, gain 1, aperture 2, shutter 2, gain 2; the current shutter value is on shutter 2 and the current gain value is on gain 2; the lower limit of the shutter 1 is 1/1000, the lower limit of the shutter 2 is 1/100, the lower limit of the gain 1 is 0, the lower limit of the gain 2 is 30, the aperture is adjusted from the current value 400 to 300, the shutter and the gain are required to be adjusted to be smaller, the current shutter value is 1/50, and the minimum adjustable value in the current exposure path is 1/1000; the current gain value is 40, and the minimum is adjusted to 0, so that the candidate exposure lines can be determined to be shutter 1, gain 1, shutter 2 and gain 2.
In step 403: determining the adjustment sequence of the candidate exposure lines according to the adjustment trend and the sequence of the candidate exposure lines in the exposure path;
taking fig. 7 as an example, the candidate exposure lines are shutter 1, shutter 2 and gain 2, and the adjustment trend is to determine the candidate exposure line according to the upper limit value of the exposure line, and then the adjustment sequence of the candidate exposure lines is as follows: shutter 1, shutter 2, gain 2. Taking fig. 8 as an example, the candidate exposure is gain 1, shutter 2, gain 2, and the adjustment trend is to determine the candidate exposure according to the upper limit value of the exposure, and then the adjustment sequence of the candidate exposure is as follows: gain 1, shutter 2, gain 2.
Taking fig. 10 as an example, the candidate exposure lines are shutter 1, gain 2, and the adjustment trend is to determine the candidate exposure line according to the lower limit value of the exposure line, and then the adjustment sequence of the candidate exposure lines is as follows: gain 2, gain 1, shutter 1; taking fig. 11 as an example, the candidate exposure lines are shutter 1, gain 1, shutter 2, and gain 2, and the adjustment trend is to determine the candidate exposure line according to the lower limit value of the exposure line, and then the adjustment sequence of the candidate exposure lines is as follows: gain 2, shutter 2, gain 1, shutter 1.
In step 404: and determining a shutter value to be adjusted and a gain value to be adjusted according to the first exposure and the adjustment sequence.
For easy understanding, a method for determining the shutter value to be adjusted and the gain value to be adjusted according to the adjustment trend is described below:
1. adjusting according to the upper limit value of the exposure line
The method can be implemented as the steps shown in fig. 12:
step 1201: determining a first exposure line to be adjusted according to the adjustment sequence; the first exposure line to be adjusted is the exposure line which is ordered as the first in the adjusting sequence;
as shown in fig. 13, the adjustment trend is adjusted according to the upper limit of the exposure line, and the candidate exposure line at this time is: shutter 1, shutter 2, gain 2, then the first exposure to be adjusted is shutter 1.
Step 1202: determining a current value of a parameter in a first exposure line to be adjusted;
step 1203: the amount of exposure required for the current value to adjust to the upper limit value is determined.
In this embodiment, in determining the exposure amount, according to the difference of the parameter values in the first exposure line to be adjusted, the determination may be performed by using equation 1 or equation 2:
Figure BDA0003287481100000151
wherein SnsGain is the gain value,
Figure BDA0003287481100000152
representing the fineness of the exposure as a weight coefficient, wherein Luma is the current brightness, and Ev is the exposure;
Figure BDA0003287481100000153
the shift is the value of the Shutter,
Figure BDA0003287481100000154
as the weight coefficient, the fineness of the exposure amount is represented, luma is the current brightness, ev is the exposure amount.
The exposure amount required for adjusting the current value of the parameter in the first exposure line to be adjusted to the upper limit of the exposure line can be accurately calculated by the above-described formulas 1 and 2.
In the embodiment of the application, if the required exposure is greater than the first exposure, determining a shutter value to be adjusted and a gain value to be adjusted according to a preset algorithm and a current value; if the required exposure is equal to or smaller than the first exposure, determining a shutter value to be adjusted and a gain value to be adjusted according to the upper limit value of the parameter corresponding to the first exposure to be adjusted; for example:
as shown in fig. 14, the current shutter value is 1/500, the current gain value is 20, and the order of exposure lines in the current exposure path is: aperture 1, shutter 1, gain 1, aperture 2, shutter 2, gain 2; the current shutter value is on shutter 1 and the current gain value is on gain 1; the upper limit of the shutter 1 is 1/100, the upper limit of the shutter 2 is 1/10, the upper limit of the gain 1 is 30, the upper limit of the gain 2 is 50, the aperture is adjusted from the current value 300 to 400, and the corresponding first exposure amount is a; the shutter and gain need to be adjusted to be large. The candidate exposure lines are: shutter 1, gain 1, shutter 2, gain 2,; the first exposure to be adjusted is shutter 1, and the exposure amount required to adjust the current value 1/500 in shutter 1 to 1/100 is:
Figure BDA0003287481100000161
If a < b at this time, it means that the first exposure amount corresponding to the aperture being adjusted from 300 to 400 is insufficient to adjust the shutter from 1/500 to 1/100, so that the gain does not need to be adjusted any more, and at this time, the value of the shutter to be adjusted can be determined according to the first exposure amount and formula 2; the value of the gain to be adjusted is the value of the current gain;
if at this time a>b, the exposure amount required for adjusting the aperture from 300 to 400 to adjust the shutter from 1/500 to 1/100 is remained, the gain 1 needs to be continuously adjusted, and the current value in the gain 1 is adjusted from 20 to 30, namely:
Figure BDA0003287481100000162
if at this time a>b+c, indicating that the first exposure remains after the gain is adjusted from 20 to 30, then continuing to adjust the shutter 2 is necessary to determine the exposure necessary to adjust the shutter from 1/100 to 1/10->
Figure BDA0003287481100000163
If at this time a>b+c+d, then indicates that after the shutter is adjusted to 1/10, the first exposure remains, then gain 2 needs to be continuously adjusted at this time, the exposure required to adjust gain 2 from 30 to 50 is determined,
Figure BDA0003287481100000164
if at this time a>b+c+d+e, which indicates that the first exposure remains but the shutter and gain cannot be continuously adjusted, the current camera parameters are adjusted by using a shutter value of 1/10, a gain value of 50, and an aperture value of 400.
Continuing with the above example, if a > b, a > b+c, a > b+c+d, a is less than or equal to b+c+d+e, then the shutter value to be adjusted is determined to be 1/10, and the gain value to be adjusted is determined according to formula 1;
if a is greater than b, a is greater than b+c, and a is less than or equal to b+c+d, the gain value to be adjusted is 30 at the moment, and the shutter value to be adjusted is determined according to a formula 2;
if a is larger than b and a is smaller than or equal to b+c, the shutter value to be adjusted is 1/100, and the gain value to be adjusted is determined according to the formula 1;
if a is less than or equal to b, the gain value to be adjusted is 20 at the moment, and the shutter value to be adjusted is determined according to the formula 2.
2. Adjusting according to the lower limit value of the exposure
The method can be implemented as the steps shown in fig. 15:
in step 1501: determining a second exposure line to be adjusted; the second exposure line to be adjusted is the exposure line which is sequenced to be the first exposure line in the adjusting sequence;
as shown in fig. 13, the adjustment trend is adjusted according to the lower limit of the exposure, and the candidate exposure at this time is: gain 2, gain 1, shutter 1, then the first exposure line to be adjusted is gain 2.
In step 1502: determining a current value of a parameter in the second exposure line to be adjusted;
in step 1503: the exposure amount of which the current value is adjusted to the lower limit value is determined.
In the embodiment of the application, if the required exposure is greater than the first exposure, determining a shutter value to be adjusted and a gain value to be adjusted according to a preset algorithm and a current value; if the exposure is equal to or smaller than the first exposure, determining a shutter value to be adjusted and a gain value to be adjusted according to the lower limit value of the parameter corresponding to the second exposure to be adjusted; for example:
As shown in fig. 16, the current shutter value is 1/50, the current gain value is 40, and the order of exposure lines in the current exposure path is: gain 2, shutter 2, aperture 2, gain 2, shutter 1, aperture 1; the current shutter value is on shutter 2 and the current gain value is on gain 2; the lower limit of the shutter 2 is 1/100, the lower limit of the shutter 1 is 1/1000, the lower limit of the gain 1 is 0, the lower limit of the gain 2 is 30, the aperture is adjusted from the current value 400 to 300, and the corresponding exposure amount is a; the shutter and gain need to be adjusted down. The candidate exposure lines are: shutter 1, gain 1, shutter 2, gain 2,; the second exposure to be adjusted is gain 2, and the exposure required to adjust the current value 40 in gain 2 to 30 is:
Figure BDA0003287481100000181
if a < b at this time, it means that the exposure amount corresponding to the aperture from 300 to 400 is not enough to adjust the gain from 40 to 30, so that the adjustment of the shutter is not needed, and at this time, the value of the gain to be adjusted can be determined according to the exposure amount (first exposure amount) corresponding to the aperture from 300 to 400 and equation 1; the value of the shutter to be adjusted is the value of the current shutter;
if at this time a>b, the exposure amount required for adjusting the current value in the shutter 2 from 1/50 to 1/100 is that the exposure amount corresponding to the aperture being adjusted from 400 to 300 is that the gain is adjusted from 40 to 30, and the shutter 2 needs to be continuously adjusted:
Figure BDA0003287481100000182
If at this time a>b+c, indicating that the first exposure remains after the shutter is adjusted from 1/50 to 1/100, then continuing to adjust the gain 1 at this time to determine the exposure necessary to adjust the gain from 30 to 0->
Figure BDA0003287481100000183
If at this time a>b+c+d, then means thatAfter the gain adjustment to 0, the first exposure remains, and then the shutter 1 needs to be continuously adjusted at this time, the exposure required to adjust the shutter 1 from 1/100 to 1/1000 is determined,
Figure BDA0003287481100000184
Figure BDA0003287481100000185
if at this time a>b+c+d+e, which indicates that the first exposure remains but the shutter and gain cannot be continuously adjusted, the current camera parameters are adjusted by using a shutter value of 1/1000, a gain value of 0, and an aperture value of 300.
Continuing with the above example, if a > b, a > b+c, a > b+c+d, a is less than or equal to b+c+d+e, then the gain value to be adjusted may be determined to be 0, and the shutter value to be adjusted may be determined according to formula 1;
if a is greater than b, a is greater than b+c, and a is less than or equal to b+c+d, the gain value to be adjusted is 30 at the moment, and the shutter value to be adjusted is determined according to a formula 2;
if a is larger than b and a is smaller than or equal to b+c, the shutter value to be adjusted is 1/100, and the gain value to be adjusted is determined according to the formula 1;
if a is less than or equal to b, the shutter value to be adjusted is 1/50 at the moment, and the gain value to be adjusted is determined according to the formula 2.
In some embodiments, the user may not adjust the magnification of the camera, and if the step shown in fig. 2 is continued, resources are wasted, so in the embodiments of the present application, before adjusting the camera parameters, it is required to determine that the adjustment magnification is different from the current magnification, and then the step in fig. 2 is continued, where the current magnification is the magnification stored before responding to the user's adjustment command for the magnification.
If the adjustment magnification is the same as the pre-saved magnification, the parameters of the camera may not be adjusted, and it is of course required to know that the order of determining the relationship between the adjustment magnification and the pre-saved magnification and determining the current parameters of the camera is not limited in comparison.
For easy understanding, the following describes in detail the overall flow of the camera adjustment method provided in the embodiment of the present application, as shown in fig. 17:
step 1701: responding to an adjusting instruction of a user on the multiplying power, and determining the adjusting multiplying power corresponding to the adjusting instruction;
step 1702: determining whether the adjustment multiplying power is the same as the current stored multiplying power, if so, entering step 1703, and if not, entering step 1704;
step 1703: collecting a video stream by adopting a current parameter value;
Step 1704: determining an aperture to be adjusted corresponding to the adjustment multiplying power;
step 1705: determining a first exposure corresponding to an aperture to be adjusted;
step 1706: determining the adjusting trend of the exposure line to be adjusted according to the upper limit; if yes, go to step 1707, otherwise go to step 1708;
step 1707: determining the upper limit value of the exposure line where the current shutter value is located and the upper limit value of the exposure line where the current gain value is located; determining candidate exposure lines according to the upper limit value of the exposure line where the current shutter value is located, the upper limit value of the exposure line where the current gain value is located and the sequence;
step 1708: determining the lower limit value of the exposure line where the current shutter value is located and the lower limit value of the exposure line where the current gain value is located; determining candidate exposure lines according to the lower limit value of the exposure line where the current shutter value is located, the lower limit value of the exposure line where the current gain value is located and the sequence;
step 1709: determining a first exposure line to be adjusted according to the adjustment sequence; the first exposure line to be adjusted is the exposure line which is ordered as the first in the adjusting sequence; determining the current value of the parameter in the first exposure line to be adjusted, and determining the exposure amount required by adjusting the current value to the upper limit value;
Step 1710: determining whether the required exposure is greater than the first exposure, if so, proceeding to step 1711, otherwise proceeding to step 1712;
step 1711: determining a shutter value to be adjusted and a gain value to be adjusted according to a preset algorithm and a current value;
step 1712: determining a shutter value to be adjusted and a gain value to be adjusted according to the upper limit value of the parameter corresponding to the first exposure line to be adjusted;
step 1713: determining a second exposure line to be adjusted according to the adjustment sequence; the second exposure line to be adjusted is the exposure line which is sequenced to be the first exposure line in the adjusting sequence; determining the current value of the parameter in the second exposure line to be adjusted, and determining the exposure amount required by adjusting the current value to the lower limit value;
step 1714: if the required exposure is greater than the first exposure, go to step 1711, otherwise go to step 1715;
in step 1715: determining a shutter value to be adjusted and a gain value to be adjusted according to the lower limit value of the parameter corresponding to the second exposure line to be adjusted;
in step 1716: and adjusting the current aperture, the current shutter value and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted and the gain value to be adjusted.
As shown in fig. 18, based on the same inventive concept, the embodiment of the present application further proposes a camera adjusting device 1800, including:
The multiplying power determining module 18001 is configured to determine, in response to an adjustment instruction of a user to a multiplying power during a video stream acquisition process, an adjustment multiplying power corresponding to the adjustment instruction;
the first exposure determining module 18002 is configured to determine, according to a preset corresponding relationship between a magnification and an aperture, a to-be-adjusted aperture corresponding to the adjustment magnification, and determine, according to a preset corresponding relationship between the aperture and an exposure, a first exposure corresponding to the to-be-adjusted aperture;
a shutter gain determining module 18003, configured to determine a shutter value to be adjusted of the camera and a gain value to be adjusted of the image Sensor according to the first exposure;
the adjusting module 18004 is configured to adjust a current aperture, a current shutter value, and a current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted, and the gain value to be adjusted.
In some possible embodiments, the shutter gain determination module, when executing the determination of the shutter value to be adjusted of the camera and the gain value to be adjusted of the image Sensor according to the first exposure amount, is configured to:
determining the adjusting trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted;
According to the adjustment trend, the current shutter value and the current gain value, determining candidate exposure lines from a plurality of exposure lines included in an exposure line; wherein each exposure line corresponds to a range of parameters including at least: shutter and gain;
determining the adjustment sequence of the candidate exposure lines according to the adjustment trend and the sequence of the candidate exposure lines in the exposure path;
and determining a shutter value to be adjusted and a gain value to be adjusted according to the first exposure and the adjustment sequence.
In some possible embodiments, the shutter gain determining module, when executing the determination of the adjustment trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted, is configured to:
if the comparison result shows that the current aperture is larger than the aperture to be adjusted, determining that the adjustment trend is to be adjusted according to the upper limit value of the exposure line;
and if the comparison result shows that the current aperture is smaller than the aperture to be adjusted, determining that the adjustment trend is to be adjusted according to the lower limit value of the exposure line.
In some possible embodiments, when the shutter gain determining module determines a candidate exposure line from a plurality of exposure lines included in an exposure line according to the adjustment trend and the current shutter value and the current gain value, the shutter gain determining module is configured to:
If the adjustment trend is that the adjustment is carried out according to the upper limit value of the exposure line, determining the upper limit value of the exposure line where the current shutter value is located and the upper limit value of the exposure line where the current gain value is located; determining the candidate exposure line according to the upper limit value of the exposure line where the current shutter value is located, the upper limit value of the exposure line where the current gain value is located and the sequence, wherein the sequence is the sequence of the candidate exposure line in the exposure path; or (b)
If the adjustment trend is that the adjustment is carried out according to the lower limit value of the exposure line, determining the lower limit value of the exposure line where the current shutter value is located and the lower limit value of the exposure line where the current gain value is located; and determining the candidate exposure line according to the lower limit value of the exposure line where the current shutter value is located, the lower limit value of the exposure line where the current gain value is located and the sequence.
In some possible embodiments, the shutter gain determination module, when executing the determination of the shutter value to be adjusted and the gain value to be adjusted according to the first exposure and the adjustment order, is configured to:
if the adjustment trend indicates that the adjustment is performed according to the upper limit value of the exposure line, determining a first exposure line to be adjusted according to the adjustment sequence; the first exposure line to be adjusted is an exposure line which is ordered as a first exposure line in the adjusting sequence; determining the current value of the parameter in the first exposure line to be adjusted, and determining the exposure required by the current value to be adjusted to an upper limit value;
If the required exposure is larger than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to a preset algorithm and the current value; if the required exposure is equal to or smaller than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to the upper limit value of the parameter corresponding to the first exposure to be adjusted; or (b)
If the adjustment trend indicates adjustment according to the lower limit value of the exposure line, determining a second exposure line to be adjusted according to the adjustment sequence; the second exposure line to be adjusted is the exposure line which is ordered into the first exposure line in the adjusting sequence; determining the current value of a parameter in the second exposure line to be adjusted, and determining the exposure amount required by adjusting the current value to a lower limit value;
if the required exposure is larger than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to a preset algorithm and the current value; and if the exposure is equal to or smaller than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to the lower limit value of the parameter corresponding to the second exposure line to be adjusted.
In some possible embodiments, before the adjusting module performs the adjustment of the current aperture, the current shutter value, and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted, and the gain value to be adjusted, the adjusting module is further configured to:
and determining that the adjustment multiplying power is different from the current multiplying power, wherein the current multiplying power is the multiplying power stored before responding to the user's adjusting instruction of the multiplying power.
In some possible embodiments, the apparatus further comprises:
if the adjustment multiplying power is the same as the multiplying power stored in advance, the gains of the current aperture, the current shutter and the current Sensor of the camera are not adjusted.
Having described the camera adjustment method and apparatus of exemplary embodiments of the present application, next, an electronic device according to another exemplary embodiment of the present application is described.
Those skilled in the art will appreciate that the various aspects of the present application may be implemented as a system, method, or program product. Accordingly, aspects of the present application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
In some possible implementations, an electronic device according to the present application may include at least one processor, and at least one memory. Wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps in the camera adjustment method according to various exemplary embodiments of the present application described above in this specification.
An electronic device 130 according to this embodiment of the present application is described below with reference to fig. 19. The electronic device 130 shown in fig. 19 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 19, the electronic device 130 is in the form of a general-purpose electronic device. Components of electronic device 130 may include, but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting the various system components, including the memory 132 and the processor 131.
Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, and a local bus using any of a variety of bus architectures.
Memory 132 may include readable media in the form of volatile memory such as Random Access Memory (RAM) 1321 and/or cache memory 1322, and may further include Read Only Memory (ROM) 1323.
Memory 132 may also include a program/utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with the electronic device 130, and/or any device (e.g., router, modem, etc.) that enables the electronic device 130 to communicate with one or more other electronic devices. Such communication may occur through an input/output (I/O) interface 135. Also, electronic device 130 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 136. As shown, network adapter 136 communicates with other modules for electronic device 130 over bus 133. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 130, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In some possible embodiments, aspects of a camera adjustment method provided herein may also be implemented in the form of a program product comprising program code for causing a computer device to carry out the steps of a camera adjustment method according to various exemplary embodiments of the present application as described herein above, when the program product is run on a computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for camera adjustment of embodiments of the present application may employ a portable compact disc read only memory (CD-ROM) and include program code and may run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device, partly on the remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic device may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., connected through the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the elements described above may be embodied in one element in accordance with embodiments of the present application. Conversely, the features and functions of one unit described above may be further divided into a plurality of units to be embodied.
Furthermore, although the operations of the methods of the present application are depicted in the drawings in a particular order, this is not required to or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (9)

1. A method of camera adjustment, the method comprising:
in the process of collecting video streams, responding to an adjusting instruction of a user for multiplying power, and determining an adjusting multiplying power corresponding to the adjusting instruction;
determining an aperture to be adjusted corresponding to the adjustment multiplying power according to the corresponding relation between the preset multiplying power and the aperture, and determining a first exposure corresponding to the aperture to be adjusted according to the corresponding relation between the preset aperture and the exposure;
Determining a shutter value to be adjusted of the camera and a gain value to be adjusted of an image sensor according to the first exposure; wherein the determining the shutter value to be adjusted of the camera and the gain value to be adjusted of the image sensor according to the first exposure amount includes: determining the adjusting trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted; according to the adjustment trend, the current shutter value and the current gain value, determining candidate exposure lines from a plurality of exposure lines included in an exposure line; wherein each exposure line corresponds to a range of parameters including at least: shutter and gain; determining the adjustment sequence of the candidate exposure lines according to the adjustment trend and the sequence of the candidate exposure lines in the exposure path; determining a shutter value to be adjusted and a gain value to be adjusted according to the first exposure and the adjustment sequence;
and adjusting the current aperture, the current shutter value and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted and the gain value to be adjusted.
2. The method according to claim 1, wherein the determining the adjustment trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted comprises:
If the comparison result shows that the current aperture is larger than the aperture to be adjusted, determining that the adjustment trend is to be adjusted according to the upper limit value of the exposure line;
and if the comparison result shows that the current aperture is smaller than the aperture to be adjusted, determining that the adjustment trend is to be adjusted according to the lower limit value of the exposure line.
3. The method of claim 2, wherein determining a candidate exposure line from a plurality of exposure lines included in an exposure line according to the adjustment trend and the current shutter value and the current gain value comprises:
if the adjustment trend is that the adjustment is carried out according to the upper limit value of the exposure line, determining the upper limit value of the exposure line where the current shutter value is located and the upper limit value of the exposure line where the current gain value is located; determining the candidate exposure line according to the upper limit value of the exposure line where the current shutter value is located, the upper limit value of the exposure line where the current gain value is located and the sequence, wherein the sequence is the sequence of the candidate exposure line in the exposure path; or (b)
If the adjustment trend is that the adjustment is carried out according to the lower limit value of the exposure line, determining the lower limit value of the exposure line where the current shutter value is located and the lower limit value of the exposure line where the current gain value is located; and determining the candidate exposure line according to the lower limit value of the exposure line where the current shutter value is located, the lower limit value of the exposure line where the current gain value is located and the sequence.
4. The method of claim 2, wherein the determining a shutter value to be adjusted and a gain value to be adjusted according to the first exposure and the adjustment sequence comprises:
if the adjustment trend indicates that the adjustment is performed according to the upper limit value of the exposure line, determining a first exposure line to be adjusted according to the adjustment sequence; the first exposure line to be adjusted is an exposure line which is ordered as a first exposure line in the adjusting sequence; determining the current value of the parameter in the first exposure line to be adjusted, and determining the exposure required by the current value to be adjusted to an upper limit value;
if the required exposure is larger than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to a preset algorithm and the current value; if the required exposure is equal to or smaller than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to the upper limit value of the parameter corresponding to the first exposure to be adjusted; or (b)
If the adjustment trend indicates adjustment according to the lower limit value of the exposure line, determining a second exposure line to be adjusted according to the adjustment sequence; the second exposure line to be adjusted is the exposure line which is ordered into the first exposure line in the adjusting sequence; determining the current value of a parameter in the second exposure line to be adjusted, and determining the exposure amount required by adjusting the current value to a lower limit value;
If the required exposure is larger than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to a preset algorithm and the current value; and if the exposure is equal to or smaller than the first exposure, determining the shutter value to be adjusted and the gain value to be adjusted according to the lower limit value of the parameter corresponding to the second exposure line to be adjusted.
5. The method according to any one of claims 1 to 4, wherein before adjusting the current aperture, the current shutter value, and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted, and the gain value to be adjusted, the method further comprises:
and determining that the adjustment multiplying power is different from the current multiplying power, wherein the current multiplying power is the multiplying power stored before responding to the user's adjusting instruction of the multiplying power.
6. The method of claim 5, wherein the method further comprises:
and if the adjustment multiplying power is the same as the multiplying power stored in advance, not adjusting the gains of the current aperture, the current shutter and the current image sensor of the camera.
7. A camera adjustment device, the device comprising:
The system comprises a multiplying power determining module, a multiplying power determining module and a multiplying power processing module, wherein the multiplying power determining module is used for responding to an adjusting instruction of a user for multiplying power in the acquisition process of a video stream and determining an adjusting multiplying power corresponding to the adjusting instruction;
the first exposure determining module is used for determining an aperture to be adjusted corresponding to the adjustment multiplying power according to the corresponding relation between the preset multiplying power and the aperture, and determining a first exposure corresponding to the aperture to be adjusted according to the corresponding relation between the preset aperture and the exposure;
a shutter gain determining module, configured to determine a shutter value to be adjusted of the camera and a gain value to be adjusted of the image sensor according to the first exposure; the shutter gain determining module is specifically configured to, when determining a shutter value to be adjusted of the camera and a gain value to be adjusted of the image sensor according to the first exposure amount: determining the adjusting trend of the exposure line according to the comparison result of the current aperture and the aperture to be adjusted; according to the adjustment trend, the current shutter value and the current gain value, determining candidate exposure lines from a plurality of exposure lines included in an exposure line; wherein each exposure line corresponds to a range of parameters including at least: shutter and gain; determining the adjustment sequence of the candidate exposure lines according to the adjustment trend and the sequence of the candidate exposure lines in the exposure path; determining a shutter value to be adjusted and a gain value to be adjusted according to the first exposure and the adjustment sequence;
And the adjusting module is used for adjusting the current aperture, the current shutter value and the current gain value of the camera according to the aperture to be adjusted, the shutter value to be adjusted and the gain value to be adjusted.
8. An electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. A computer storage medium, characterized in that the computer storage medium stores a computer program for causing a computer to perform the method of any one of claims 1-6.
CN202111151945.XA 2021-09-29 2021-09-29 Camera adjusting method, device, electronic equipment and storage medium Active CN113766145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111151945.XA CN113766145B (en) 2021-09-29 2021-09-29 Camera adjusting method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111151945.XA CN113766145B (en) 2021-09-29 2021-09-29 Camera adjusting method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113766145A CN113766145A (en) 2021-12-07
CN113766145B true CN113766145B (en) 2023-06-02

Family

ID=78798184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111151945.XA Active CN113766145B (en) 2021-09-29 2021-09-29 Camera adjusting method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113766145B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672071A (en) * 2021-03-16 2021-04-16 浙江华创视讯科技有限公司 Automatic exposure method, device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090002544A1 (en) * 2007-06-29 2009-01-01 Sony Ericsson Mobile Communications Ab Methods of adding additional parameters during automatic exposure for a digital camera and related electronic devices and computer program products
CN105450936B (en) * 2014-05-30 2019-02-15 杭州海康威视数字技术股份有限公司 Intelligent adjusting method and its device when video camera automatic exposure
CN111447372B (en) * 2020-03-31 2021-07-20 浙江大华技术股份有限公司 Control method, device, equipment and medium for brightness parameter adjustment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672071A (en) * 2021-03-16 2021-04-16 浙江华创视讯科技有限公司 Automatic exposure method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113766145A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN108769542B (en) Exposure parameter determination method and device and readable medium
CN101185322B (en) Method, device and controller for digital imaging
JP4236433B2 (en) System and method for simulating fill flash in photography
WO2020037959A1 (en) Image processing method, image processing apparatus, electronic device and storage medium
TWI521964B (en) Exposure value adjustment apparatus, method, and computer program product thereof
CN106357987B (en) A kind of exposure method and device
JP2006227613A (en) Camera exposure program combined with image stabilizing function
CN112217999B (en) Wide dynamic mode adjusting method and device, electronic equipment and storage medium
KR930701761A (en) The process of determining the extra system speed and automatically optimizing the exposure parameters of the picture.
JP6537288B2 (en) Focusing device and focusing method
CN104980647A (en) Image processing apparatus, imaging apparatus, determination method and driving method
JP5910852B2 (en) OPERATION CONTROL DEVICE, OPERATION CONTROL METHOD, IMAGING DEVICE, AND PROGRAM
CN113766145B (en) Camera adjusting method, device, electronic equipment and storage medium
US9237275B2 (en) Flash photography
CN114785966B (en) Exposure control method, shooting processing method, device and medium
JP2011043776A (en) Electronic camera
CN101790037B (en) Imaging device and imaging method
JP2023078061A (en) Imaging exposure control method and apparatus, device and storage medium
JPH02125218A (en) Automatic focusing camera
JP5549813B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD AND PROGRAM
CN105430290A (en) Water ripple pre-elimination method and photographing device
US20190052803A1 (en) Image processing system, imaging apparatus, image processing apparatus, control method, and storage medium
CN110336938B (en) Photosensitive element, image acquisition device, lens driving method, and storage medium
JP2007256562A (en) Microcamera
JPH02100027A (en) Measuring method for subject brightness

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