CN111935413A - Aperture control method and camera - Google Patents

Aperture control method and camera Download PDF

Info

Publication number
CN111935413A
CN111935413A CN201910394239.4A CN201910394239A CN111935413A CN 111935413 A CN111935413 A CN 111935413A CN 201910394239 A CN201910394239 A CN 201910394239A CN 111935413 A CN111935413 A CN 111935413A
Authority
CN
China
Prior art keywords
camera
value
control gear
preset
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910394239.4A
Other languages
Chinese (zh)
Other versions
CN111935413B (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910394239.4A priority Critical patent/CN111935413B/en
Publication of CN111935413A publication Critical patent/CN111935413A/en
Application granted granted Critical
Publication of CN111935413B publication Critical patent/CN111935413B/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/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/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Abstract

The embodiment of the invention provides an aperture control method, which is applied to a camera and comprises the following steps: when the image brightness of the currently acquired image is detected to be larger than the preset target brightness and the current shooting parameter of the camera is detected to be the same as the first preset value corresponding to the shooting parameter, the control gear of the aperture is adjusted to the first control gear from the current control gear of the aperture by operating the stepping motor, and the shooting parameter of the camera is adjusted after the stepping motor operates for one step; when the fact that the image brightness of the currently acquired image is smaller than the preset target brightness and the current shooting parameters of the camera are the same as the second preset values corresponding to the shooting parameters is detected, the control gear of the aperture is adjusted to the second control gear from the current control gear of the aperture by operating the stepping motor, and the shooting parameters of the camera are adjusted after the stepping motor operates for one step. Compared with the prior art, the scheme provided by the embodiment of the invention can avoid the diaphragm oscillation phenomenon.

Description

Aperture control method and camera
Technical Field
The invention relates to the technical field of camera imaging, in particular to a diaphragm control method and a camera.
Background
In order to ensure that the camera can obtain a good imaging effect, generally, when focusing the lens of the camera, whether the depth of field of the camera is appropriate after the focusing is completed is considered. In the process of focusing the lens of the camera, the aperture value of the camera is one of the important factors influencing the depth of field.
The P-iris (precision iris) aperture control method is an aperture control method driven by a stepping motor, and can dynamically and precisely control the size of an aperture, and in the P-iris aperture control method, the depth of field is taken as a priority consideration object in the control process, and the aperture value is controlled to a position with better depth of field as far as possible under the condition that the condition allows. In the related art, in the aperture control method based on the P-iris aperture control method, when it is detected that the brightness of the image captured by the camera is not matched with the preset brightness, the size of the aperture is controlled by driving the aperture step by the stepping motor.
However, due to reasons such as manufacturing process, the difference of the light incoming amount between two adjacent steps of the stepping motor at some positions is large, if the size of the aperture is controlled in a step-by-step manner, the problem that the light incoming amount of the previous step is insufficient and the light incoming amount of the next step exceeds easily occurs, so that the stepping motor is switched back and forth between the previous step and the next step, the size of the aperture is changed back and forth, the aperture cannot be stable, the aperture is vibrated, and the camera cannot shoot images with high quality.
Disclosure of Invention
The embodiment of the invention aims to provide an aperture control method and a camera so as to avoid the phenomenon of aperture oscillation. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an aperture control method, which is applied to a camera, where an aperture of the camera is preset with a preset number of control gears, and switching between two adjacent control gears is implemented by operating a stepping motor in multiple steps; the method comprises the following steps:
when the image brightness of the currently acquired image is detected to be larger than the preset target brightness, comparing the parameter value of the current shooting parameter of the camera with a first preset value corresponding to the shooting parameter; wherein the photographing parameters include: shutter and/or gain;
when the current shooting parameters of the camera are the same as the first preset values corresponding to the shooting parameters, the control gear of the aperture is adjusted to a first control gear from the control gear where the aperture is located at present by operating the stepping motor, and the shooting parameters of the camera are adjusted after the stepping motor operates every step; wherein the first control gear is: a control gear adjacent to a control gear where the diaphragm is currently located in the light entrance amount reduction direction;
when the image brightness of the currently acquired image is detected to be smaller than the preset target brightness, comparing the current shooting parameter of the camera with a second preset value corresponding to the shooting parameter;
when the current shooting parameter of the camera is the same as the second preset value corresponding to the shooting parameter, the control gear of the aperture is adjusted to a second control gear from the control gear where the aperture is located at present by operating the stepping motor, and the shooting parameter of the camera is adjusted after the stepping motor operates for one step; wherein the second control gear is: and a control gear adjacent to the control gear where the diaphragm is currently located in the light entrance amount increasing direction.
In a second aspect, an embodiment of the present invention provides a camera, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor, configured to implement any of the method steps of the aperture control method according to the first aspect when executing a program stored in the memory.
As can be seen from the above, with the solution provided by the embodiment of the present invention, since the switching between two adjacent control gears is realized by operating the stepping motor in multiple steps, the light-entering amount difference between two adjacent control gears is greater than the light-entering amount difference between every two steps of the stepping motor in the manner that the stepping motor drives the aperture step by step. Furthermore, when the control gear of the aperture is adjusted, the brightness compensation can be carried out by adjusting the auxiliary parameters of the camera after the stepping motor operates for one step, so that the problem that the light input quantity of the former control gear is insufficient and the light input quantity of the latter control gear is excessive is avoided. Therefore, by applying the scheme provided by the embodiment of the invention, the phenomenon of diaphragm oscillation can be avoided, so that the camera can shoot images with higher quality.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic view of a depth of field of a camera lens;
fig. 2 is a schematic flowchart of a method for controlling an aperture according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a manner of adjusting the shooting parameters of the camera after each step of operation of the stepping motor according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of a control gear of an aperture of a camera;
fig. 5 is a schematic configuration diagram of a camera that performs aperture control.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the related art, in the aperture control method based on the P-iris aperture control method, when it is detected that the brightness of the image captured by the camera is not matched with the preset brightness, the size of the aperture is controlled by driving the aperture step by the stepping motor. However, due to reasons such as manufacturing process, the difference of the light incoming amount between two adjacent steps of the stepping motor at some positions is large, if the size of the aperture is controlled in a step-by-step manner, the problem that the light incoming amount of the previous step is insufficient and the light incoming amount of the next step exceeds easily occurs, so that the stepping motor is switched back and forth between the previous step and the next step, the size of the aperture is changed back and forth, the aperture cannot be stable, the aperture is vibrated, and the camera cannot shoot images with high quality. In order to solve the above technical problem, an embodiment of the present invention provides a diaphragm control method.
In order to better understand the method for controlling the aperture provided by the embodiment of the present invention, first, a description is given of a concept related to a camera according to the embodiment of the present invention.
1. Depth of field: as shown in fig. 1, when the lens of the camera is focused sharply against an object, a point on the same plane perpendicular to the lens axis at the position opposite to the center of the lens can form a relatively sharp image on the film or the imaging sensor, a range of points in front of and behind the plane along the lens axis can also form a relatively sharp image point acceptable to human eyes, and the distance between all the objects in front of and behind the plane is called the depth of field of the camera. The distances between the aperture, the lens and the object are important factors affecting the depth of field.
2. Aperture: a device for controlling the amount of light transmitted through the lens and into the light-sensing surface in the body, usually located in front of the camera lens, is a variable aperture grating made up of a plurality of metal blades stacked on top of each other. The size of the aperture is represented by the f-number. In particular, it is not possible to change the diameter of the lens at will for a lens that has been manufactured, but controlling the lens flux can be achieved by incorporating a polygonal or circular aperture-shaped grating with a variable area inside the lens, a device known as an aperture.
Next, a diaphragm control method according to an embodiment of the present invention will be described.
The method can be applied to any camera needing aperture control, and particularly, the method can be loaded into an existing control module of the camera as a plug-in to operate, and can also be loaded into the camera as a single module to operate, which is reasonable.
Fig. 2 is a flowchart illustrating a method for controlling an aperture according to an embodiment of the present invention.
The diaphragm of the camera is preset with a preset number of control gears, and the switching between two adjacent control gears is realized by operating multiple steps through a stepping motor.
In the P-iris diaphragm control method, the diaphragm size of the camera is changed by driving the stepping motor, and thus, each step of the stepping motor corresponds to one diaphragm value, that is, each step of the stepping motor corresponds to one light-entering amount. In this way, when the preset number of control gear positions are set for the diaphragm of the camera, the size of the diaphragm is different when the diaphragm of the camera is in different control gear positions, so that the light incoming amount of the lens of the camera is different. Because each set control gear corresponds to a light inlet amount, and according to the corresponding relation between each step of the set stepping motor and the light inlet amount in the camera manufacturing process, the rotating position of the stepping motor corresponding to each control gear can be determined. Therefore, when the control gear where the control diaphragm is located is switched between two adjacent control gears, the camera can determine the rotating position of the stepping motor corresponding to the control gear after the switching is finished, so that the stepping motor is driven to run for multiple steps, and the switching of the control gears is realized.
The preset number and the light-entering amount corresponding to each control gear may be limited according to the physical parameters of the camera aperture and the stepping motor, and the shooting requirement of the shot image in practical application, which is not specifically limited in the embodiments of the present invention.
Optionally, when setting the control gear of the aperture, the light-entering amount corresponding to each control gear may be in an equal ratio array. That is, the light amount corresponding to each control gear is arranged in the order of decreasing the light amount corresponding to each control gear, and the ratio of the light amount corresponding to the previous control gear to the light amount corresponding to the next control gear is a constant value.
For example, as shown in fig. 4, the control shift position of the diaphragm may be set to 5-shift, and the light intake amount of the diaphragm having a large light intake amount is 2 times the light intake amount of the diaphragm having a small light intake amount between each adjacent two control shift positions.
In the embodiment shown in fig. 4, the control gear is set to 5, which can avoid the situation that the control gear needs to be switched when the ambient brightness of the camera is slightly changed, thereby reducing the complexity of the control logic, and can also avoid the diaphragm oscillation phenomenon caused by the closer upper and lower bounds of the shutter and/or the gain when the difference of the light incident quantity between two adjacent control gears is large and the shutter and/or the gain needs to perform large brightness compensation.
It should be noted that, besides the implementation manners shown in the above-mentioned examples, other manners for implementing the feature are within the scope of the embodiment of the present invention, that is, the number of control positions of the diaphragm and the amount of light entering corresponding to each control position may be other values.
As shown in fig. 2, a method for controlling an aperture according to an embodiment of the present invention may include the following steps:
s201: when the image brightness of the currently acquired image is detected to be larger than the preset target brightness, comparing the parameter value of the current shooting parameter of the camera with a first preset value corresponding to the shooting parameter;
wherein, the shooting parameters may include: shutter and/or gain;
s202: when the current shooting parameters of the camera are the same as first preset values corresponding to the shooting parameters, the control gear of the aperture is adjusted to a first control gear from the control gear where the aperture is located at present by operating the stepping motor, and the shooting parameters of the camera are adjusted after the stepping motor operates for one step;
wherein, the first control gear is: a control gear adjacent to a control gear where the diaphragm is currently located in the light entrance amount reduction direction;
s203: when the image brightness of the currently acquired image is detected to be smaller than the preset target brightness, comparing the current shooting parameters of the camera with a second preset value corresponding to the shooting parameters;
s204: when the current shooting parameters of the camera are the same as second preset values corresponding to the shooting parameters, the control gear of the aperture is adjusted to a second control gear from the control gear where the aperture is located at present by operating the stepping motor, and the shooting parameters of the camera are adjusted after the stepping motor operates for one step;
wherein the second control gear is: and a control shift position adjacent to the control shift position where the diaphragm is currently located in the light entrance amount increasing direction.
As can be seen from the above, with the solution provided by the embodiment of the present invention, since the switching between two adjacent control gears is realized by operating the stepping motor in multiple steps, the light-entering amount difference between two adjacent control gears is greater than the light-entering amount difference between every two steps of the stepping motor in the manner that the stepping motor drives the aperture step by step. Furthermore, when the control gear of the aperture is adjusted, the brightness compensation can be carried out by adjusting the auxiliary parameters of the camera after the stepping motor operates for one step, so that the problem that the light input quantity of the former control gear is insufficient and the light input quantity of the latter control gear is excessive is avoided. Therefore, by applying the scheme provided by the embodiment of the invention, the phenomenon of diaphragm oscillation can be avoided, so that the camera can shoot images with higher quality.
As can be understood, for a certain photographic subject, the camera lens firstly frames the photographic subject, so as to acquire an image of the photographic subject. And then, detecting whether the acquired image meets the shooting requirement, and if not, adjusting the relevant parameters of the camera so that the image of the shooting object acquired by the camera meets the shooting requirement after the parameters are adjusted. Therefore, the camera can shoot the image, so that the image of the shooting object is obtained, and the obtained image meets the shooting requirement. At this point, one shot of the camera for the photographic subject is completed.
In the above-mentioned one-time shooting process of the camera on the shooting object, adjusting the relevant parameters of the camera may include adjusting the aperture size of the camera, so that the image brightness of the acquired image of the shooting object can be matched with the preset target brightness.
Based on this, after the image is acquired, the camera can acquire the image brightness of the image, and then can detect whether the image brightness of the currently acquired image is matched with the preset target brightness.
Specifically, when the image brightness of the image currently acquired by the camera matches the preset target brightness, it is indicated that the current aperture value of the camera is appropriate, and no adjustment is required.
When the image brightness of the image acquired by the camera at present is not matched with the preset target brightness, it is indicated that the current aperture value of the camera is not appropriate and needs to be adjusted.
The camera can detect whether the image brightness of the currently acquired image is matched with the preset target brightness in various ways.
Optionally, in a specific implementation manner, the camera may determine whether the image brightness of the currently acquired image is the same as a preset target brightness; when the brightness of the acquired image is the same as the preset target brightness, judging that the image brightness of the acquired image is matched with the preset target brightness; otherwise, judging that the image brightness of the currently acquired image is not matched with the preset target brightness.
Optionally, in another specific implementation manner, the manner in which the camera detects whether the image brightness of the currently acquired image matches the preset target brightness may include the following steps a 1-A3:
step A1: calculating the absolute value of the difference value between the image brightness and the target brightness;
step A2: judging whether the absolute value is within a preset error range; if so, go to step A3;
step A3: and judging that the image brightness is matched with the preset target brightness.
In this specific implementation manner, after the camera acquires the image brightness of the currently acquired image, an absolute value of a difference between the image brightness and a preset target brightness may be calculated, and whether the absolute value is within a preset error range is determined. Obviously, when the absolute value is within the preset error range, it can be stated that the difference between the image brightness of the acquired image and the target brightness is small, so that it is determined that the image brightness matches the preset target brightness. That is, the current camera has a suitable aperture size and may not need to be adjusted.
Correspondingly, when the absolute value is not within the preset error range, it can be shown that the difference between the image brightness of the acquired image and the target brightness is large, so that it is determined that the image brightness is not matched with the preset target brightness. That is, the current camera has an inappropriate aperture size and needs to be adjusted.
In this way, when the camera detects that the image brightness of the currently captured image does not match the preset target brightness, the camera may enter the aperture adjustment process, and perform the above steps S201 to S204. Namely: and controlling the diaphragm according to the magnitude relation between the image brightness and the target brightness and based on the current control gear of the diaphragm, and adjusting the shooting parameters of the camera in the process of controlling the diaphragm.
Further, after the aperture control is completed, the image brightness of the image currently acquired by the camera will change. Therefore, the camera will detect the magnitude relationship between the image brightness of the currently captured image and the preset target brightness again, and determine whether to perform the above steps S201-204 again according to the magnitude relationship.
Based on this, after each pair of apertures is adjusted once, the camera acquires the image brightness of the currently acquired image again, and detects the magnitude relation between the image brightness of the currently acquired image and the preset target brightness, so as to determine whether to execute the above steps S201 to S204 again according to the magnitude relation.
That is to say, in the process of completing one image shooting, the camera will cyclically execute the following steps until the shooting of the currently acquired image is completed and the currently acquired image is acquired when the image brightness of the currently acquired image is detected to be matched with or equal to the preset target brightness. Wherein, each step includes:
acquiring the image brightness of the currently acquired image, and detecting whether the image brightness of the currently acquired image is matched with a preset target brightness; when the image brightness of the currently acquired image is detected to be not matched with the preset target brightness, detecting the size relation between the image brightness and the target brightness; according to the detection result, the aperture is controlled based on the current control gear of the aperture, and the shooting parameters of the camera are adjusted in the process of controlling the aperture; and returning to execute the acquisition of the image brightness of the currently acquired image.
The preset target brightness may be determined according to the brightness of the current environment of the camera and the brightness of each object sensed by human eyes, which is not limited in the embodiments of the present invention.
According to the above description, when it is detected that the image brightness of the currently acquired image is not matched with the preset target brightness, the camera may detect the magnitude relation between the image brightness and the target brightness; further, when it is detected that the image brightness of the currently acquired image is greater than the preset target brightness, the camera may execute the step S201; correspondingly, when the image brightness of the currently captured image is detected to be less than the preset target brightness, the camera may perform the step S203. Specifically, the method comprises the following steps:
when it is detected that the image brightness of the currently acquired image is greater than the preset target brightness, it indicates that the image brightness is too high, and the light-entering amount corresponding to the control gear where the diaphragm is located is large, so the light-entering amount of the lens needs to be reduced. At this time, the camera may perform the above step S201, and compare the parameter value of the current shooting parameter of the camera with the first preset value corresponding to the shooting parameter.
The shooting parameters may include only a shutter, only a gain, and both a shutter and a gain.
Further, since it is detected that the image brightness of the currently captured image is greater than the preset target brightness, the camera may determine that the amount of light entering the lens needs to be reduced currently. In this way, the camera can compare the parameter value of the current shooting parameter of the camera with the first preset value corresponding to the shooting parameter, so that the camera can determine the specific mode of reducing the image brightness of the acquired image according to the comparison result.
When the current shooting parameters of the camera are the same as the first preset values corresponding to the shooting parameters, the camera can determine to reduce the image brightness of the acquired image in a mode of combining the aperture control and the brightness compensation.
That is, when the current shooting parameters of the camera are the same as the first preset values corresponding to the shooting parameters, the camera may perform step S202, where the step motor is operated to adjust the control gear of the aperture from the control gear at which the aperture is currently located to the first control gear, and the shooting parameters of the camera are adjusted after each step of operation of the step motor.
However, since the amount of light entering the lens is to be reduced, the first control position is: and a control shift position adjacent to the control shift position where the diaphragm is currently located in the light entrance amount reduction direction. In this way, the amount of light entering corresponding to the control shift position in which the adjusted diaphragm is located is smaller than the amount of light entering corresponding to the control shift position in which the pre-adjusted diaphragm is located. For example, as shown in fig. 4, the control shift position of the pre-adjustment diaphragm is Fmind1, and the control shift position of the post-adjustment diaphragm is Fmid 2.
In addition, because the difference between the light-entering amounts corresponding to two adjacent control gears of the diaphragm is large, after the control gear of the diaphragm is adjusted, the light-entering amount of the camera lens changes greatly, and the image brightness of the image collected by the camera changes greatly. In this way, in order to prevent the image flicker caused by the excessive change of the brightness of the image, in the step S202, during the adjustment of the control shift position where the aperture is located, the camera may appropriately adjust the shooting parameters to perform brightness compensation on the captured image.
In step S202, when the current control position of the diaphragm is adjusted by controlling the stepping motor, the stepping motor will operate multiple steps from the start of adjusting the position of the diaphragm to the completion of adjusting the position of the diaphragm. Therefore, in the process, the camera can adjust the shooting parameters once after the stepping motor operates for one step, so that the brightness compensation of the acquired image is realized once.
Therefore, in the step S201, the manner of comparing the current parameter value of the shooting parameter of the camera with the first preset value corresponding to the shooting parameter is specifically as follows: and aiming at each shooting parameter of the camera, comparing the current parameter value of the shooting parameter with the preset minimum value of the shooting parameter.
Based on this, optionally, in a specific implementation manner, when the shooting parameters of the camera only include a shutter, a specific manner in which the camera performs the step S201 includes:
comparing the current shutter value of the camera with a preset minimum shutter value;
then, when the current shutter value of the camera is the same as the minimum shutter value, judging that the current shooting parameters of the camera are the same as the first preset values corresponding to the shooting parameters;
otherwise, judging that the current shooting parameters of the camera are different from the first preset values corresponding to the shooting parameters.
Because the current shutter value of the camera is the minimum value, the camera cannot reduce the image brightness of the image currently acquired by the camera by reducing the shutter value. Therefore, the camera can adjust the control gear of the aperture, and the light entering amount of the camera lens is changed by changing the light entering amount corresponding to the control gear of the aperture, so that the image brightness of the collected image is reduced and matched with the target brightness.
Furthermore, since the current shutter value of the camera is the minimum value, in the process of adjusting the gear of the aperture, when the stepping motor operates for one step, the camera adjusts the shooting parameters in the following way: the shutter value of the camera is increased.
Optionally, in a specific implementation manner, when the shooting parameters of the camera include only a gain, the implementation manner of the camera performing the step S201 includes:
comparing the current gain value of the camera with a preset minimum gain value;
then, when the current gain value of the camera is the same as the preset minimum gain value, judging that the current shooting parameter of the camera is the same as the first preset value corresponding to the shooting parameter;
otherwise, judging that the current shooting parameters of the camera are different from the first preset values corresponding to the shooting parameters.
Because the current gain value of the camera is the minimum value, the camera cannot reduce the image brightness of the image currently acquired by the camera by reducing the gain value. Therefore, the camera can adjust the control gear of the aperture, and the light entering amount of the camera lens is changed by changing the light entering amount corresponding to the control gear of the aperture, so that the image brightness of the collected image is reduced and matched with the target brightness.
Furthermore, since the current gain value of the camera is the minimum value, in the process of adjusting the gear of the aperture, the camera adjusts the shooting parameters every time the stepping motor runs by one step in the following way: the gain value of the camera is increased stepwise.
Optionally, in a specific implementation manner, when the shooting parameters of the camera include: when the shutter is open and the gain is high, the specific way for the electronic device to execute the step S201 includes:
comparing the current shutter value of the camera with a preset minimum shutter value, and comparing the current gain value of the camera with a preset minimum gain value;
then, when the current shutter value of the camera is the same as the minimum shutter value and the current gain value of the camera is the same as the minimum gain value, judging that the current shooting parameters of the camera are the same as the first preset values corresponding to the shooting parameters;
otherwise, judging that the current shooting parameters of the camera are different from the first preset values corresponding to the shooting parameters.
Because the current shutter value and the gain value of the camera are both minimum values, the camera cannot reduce the image brightness of the image currently acquired by the camera by reducing the shutter value and/or the gain value. Therefore, the camera can adjust the control gear of the aperture, and the light entering amount of the camera lens is changed by changing the light entering amount corresponding to the control gear of the aperture, so that the image brightness of the collected image is reduced and matched with the target brightness.
Furthermore, because the current shutter value and the current gain value of the camera are both minimum values, in the process of adjusting the gear of the aperture, when the stepping motor operates for each step, the mode of adjusting the shooting parameters is as follows: the shutter value and the gain value of the camera are increased stepwise.
Further, preferably, when the shooting parameters include an image capturing shutter and a gain, and when the current shooting parameters of the camera are the same as the first preset values corresponding to the shooting parameters, the step of adjusting the shooting parameters by the camera includes:
the shutter value of the camera is increased, and when the increased shutter value reaches the maximum shutter value, the gain value of the camera is increased.
In this particular implementation, the camera may first increase the shutter, and after the shutter has increased, determine whether the shutter has increased to a maximum value, and then, in the event that the shutter has increased to a maximum value, increase the gain.
Wherein, after the collected optical signal is converted into an electrical signal, the camera may amplify the electrical signal by gain and generate an image on the imaging sensor. While gain, when amplifying an electrical signal, creates noise in the generated image due to electronic interference, and the gain increases with greater noise. In this way, in the present embodiment, first, the shutter is enlarged, so that the image brightness of the captured image can be increased without increasing noise in the captured image, thereby improving the image quality of the captured image.
Compared with the above situation that the detected image brightness of the currently acquired image is greater than the preset target brightness, when the detected image brightness of the currently acquired image is less than the preset target brightness, it indicates that the image brightness is too low, and the light-entering amount corresponding to the control gear where the aperture is located is small, so that the light-entering amount of the lens needs to be increased. At this time, the camera may perform the above step S203, and compare the parameter value of the current shooting parameter of the camera with the second preset value corresponding to the shooting parameter.
Likewise, the shooting parameters may include only the shutter, only the gain, and both the shutter and the gain.
Further, since it is detected that the image brightness of the currently captured image is smaller than the preset target brightness, the camera may determine that the amount of light entering the lens needs to be increased currently. In this way, the camera can compare the parameter value of the current shooting parameter of the camera with the second preset value corresponding to the shooting parameter, so that the camera can determine the specific mode of improving the image brightness of the acquired image according to the comparison result.
When the current shooting parameter of the camera is the same as the second preset value corresponding to the shooting parameter, the camera can determine to improve the image brightness of the acquired image in a mode of combining the aperture control and the brightness compensation.
That is, when the current shooting parameters of the camera are the same as the second preset values corresponding to the shooting parameters, the camera may execute step S204, where the step motor is operated to adjust the control gear of the aperture from the control gear at which the aperture is currently located to the second control gear, and the shooting parameters of the camera are adjusted after each step of operation of the step motor.
However, since the light entering amount of the lens is to be increased, the second control position is: and a control shift position adjacent to the control shift position where the diaphragm is currently located in the light entrance amount increasing direction. In this way, the amount of light entering corresponding to the control shift position in which the adjusted diaphragm is located is larger than the amount of light entering corresponding to the control shift position in which the pre-adjusted diaphragm is located. For example, as shown in fig. 4, the control shift position of the pre-adjustment diaphragm is Fmind2, and the control shift position of the post-adjustment diaphragm is Fmid 1.
In addition, because the difference between the light-entering amounts corresponding to two adjacent control gears of the diaphragm is large, after the control gear of the diaphragm is adjusted, the light-entering amount of the camera lens changes greatly, and the image brightness of the image collected by the camera changes greatly. In this way, in order to prevent the image flicker caused by the excessive change of the brightness of the image, in the step S204, during the adjustment of the control shift position where the aperture is located, the camera may appropriately adjust the shooting parameters to perform brightness compensation on the captured image.
In step S204, when the current control gear of the diaphragm is adjusted by controlling the stepping motor, the stepping motor will operate multiple steps from the start of adjusting the gear of the diaphragm to the completion of adjusting the gear of the diaphragm. Therefore, in the process, the camera can adjust the shooting parameters once after the stepping motor operates for one step, so that the brightness compensation of the acquired image is realized once.
The second preset value corresponding to the shooting parameter may be a maximum value of the preset shooting parameter, and therefore, the manner of comparing the current parameter value of the shooting parameter of the camera with the second preset value corresponding to the shooting parameter in the step S203 by the camera is specifically: and aiming at each shooting parameter of the camera, comparing the current parameter value of the shooting parameter with the preset maximum value of the shooting parameter.
Based on this, optionally, in a specific implementation manner, when the shooting parameters of the camera only include a shutter, a specific manner in which the camera performs the step S203 includes:
comparing the current shutter value of the camera with a preset maximum shutter value;
then, when the current shutter value of the camera is the same as the maximum shutter value, judging that the current shooting parameters of the camera are the same as second preset values corresponding to the shooting parameters;
otherwise, judging that the current shooting parameters of the camera are different from the second preset values corresponding to the shooting parameters.
Because the current shutter value of the camera is the maximum value, the camera cannot increase the image brightness of the image currently acquired by the camera by increasing the shutter value. Therefore, the camera can adjust the control gear of the aperture, and the light entering amount of the camera lens is changed by changing the light entering amount corresponding to the control gear of the aperture, so that the image brightness of the collected image is improved and matched with the target brightness.
Furthermore, since the current shutter value of the camera is the maximum value, in the process of adjusting the gear of the aperture, the camera adjusts the shooting parameters every time the stepping motor runs by one step in the following way: the shutter value of the camera is reduced.
Optionally, in a specific implementation manner, when the shooting parameters of the camera include only a gain, the implementation manner of the camera performing the step S203 includes:
comparing the current gain value of the camera with a preset maximum gain value;
further, when the current gain value of the camera is the same as the preset maximum gain value, judging that the current shooting parameter of the camera is the same as a second preset value corresponding to the shooting parameter;
otherwise, judging that the current shooting parameters of the camera are different from the second preset values corresponding to the shooting parameters.
Since the current gain value of the camera is the maximum value, the camera cannot increase the image brightness of the image currently captured by the camera by increasing the gain value. Therefore, the camera can adjust the control gear of the aperture, and the light entering amount of the camera lens is changed by changing the light entering amount corresponding to the control gear of the aperture, so that the image brightness of the collected image is improved and matched with the target brightness.
Furthermore, since the current gain value of the camera is the maximum value, in the process of adjusting the gear of the aperture, every time the stepping motor runs by one step, the camera adjusts the shooting parameters in the following way: the gain value of the camera is reduced stepwise.
Optionally, in a specific implementation manner, when the shooting parameters of the camera include: when the shutter is open and the gain is high, the specific way for the electronic device to execute the step S203 includes:
comparing the current shutter value of the camera with a preset maximum shutter value, and comparing the current gain value of the camera with a preset maximum gain value;
then, when the current shutter value of the camera is the same as the maximum shutter value and the current gain value of the camera is the same as the maximum gain value, judging that the current shooting parameters of the camera are the same as second preset values corresponding to the shooting parameters;
otherwise, judging that the current shooting parameters of the camera are different from the second preset values corresponding to the shooting parameters.
Because the current shutter value and the gain value of the camera are both maximum values, the camera cannot increase the image brightness of the image currently acquired by the camera by increasing the shutter value and/or the gain value. Therefore, the camera can adjust the control gear of the aperture, and the light entering amount of the camera lens is changed by changing the light entering amount corresponding to the control gear of the aperture, so that the image brightness of the collected image is improved and matched with the target brightness.
Furthermore, because the current shutter value and the current gain value of the camera are both maximum values, in the process of adjusting the gear of the aperture, when the stepping motor operates for each step, the mode of adjusting the shooting parameters is as follows: the shutter value and the gain value of the camera are reduced stepwise.
Further, preferably, when the shooting parameters include an image capturing shutter and a gain, and when the current shooting parameters of the camera are the same as second preset values corresponding to the shooting parameters, the step of adjusting the shooting parameters by the camera includes:
the gain value of the camera is reduced, and when the reduced shutter value reaches the minimum gain value, the shutter value of the camera is reduced.
In this embodiment, the camera may first reduce the gain, and after the gain is reduced, determine whether the gain has been reduced to a minimum value, and then reduce the shutter if the gain has been reduced to the minimum value.
Wherein, after the collected optical signal is converted into an electrical signal, the camera may amplify the electrical signal by gain and generate an image on the imaging sensor. While gain, when amplifying an electrical signal, creates noise in the generated image due to electronic interference, and the gain increases with greater noise. In this way, in the present embodiment, first, the gain is reduced, so that the image brightness of the captured image is reduced, and noise in the captured image is reduced, thereby improving the image quality of the captured image.
Further, optionally, in a specific implementation manner, the camera executes the step S204, the control gear of the diaphragm is adjusted from the control gear at which the diaphragm is currently located to the second control gear by operating the stepping motor, and the manner of adjusting the shooting parameters of the camera after each step of operation of the stepping motor may include the following steps C1-C2:
step C1: the control gear of the aperture is adjusted to the control gear with the maximum light inlet quantity from the control gear of the aperture by operating the stepping motor;
step C2: after the control gear of the aperture is adjusted to the control gear with the maximum light inlet quantity, the control gear of the aperture is adjusted to the second control gear by operating the stepping motor, and the shooting parameters of the camera are adjusted after the stepping motor operates every step.
When the camera detects that the image brightness of the currently acquired image is smaller than the preset target brightness and the current shooting parameters of the camera are the same as the second preset values corresponding to the shooting parameters, the control gear of the aperture needs to be adjusted from the control gear of the current aperture to the second control gear to increase the light intake amount of the camera lens, so that when the image brightness of the acquired image is improved, the control gear of the aperture can be adjusted from the control gear of the current aperture to the control gear of the maximum light intake amount, and then the control gear of the aperture is adjusted from the control gear of the maximum light intake amount to the second control gear.
Due to the manufacturing process and the like, in the P-iris diaphragm control mode, in the process of repeatedly adjusting the diaphragm of the camera for multiple times, the diaphragm of the camera can generate mechanical errors, and the long-term accuracy of diaphragm control is reduced.
According to the above description, in the aperture control method provided in the embodiment of the present invention, when it is detected that the image brightness of the currently acquired image is greater than the preset target brightness and the current shooting parameter of the camera is the same as the first preset value corresponding to the shooting parameter, the camera adjusts the control gear of the aperture from the current control gear of the aperture to the first control gear by operating the stepping motor, and after each step of operation of the stepping motor, adjusts the shooting parameter of the camera;
similarly, when it is detected that the image brightness of the currently acquired image is smaller than the preset target brightness and the current shooting parameter of the camera is the same as the second preset value corresponding to the shooting parameter, the camera adjusts the shooting parameter of the camera after the stepping motor operates each step when the camera adjusts the control gear of the aperture from the control gear of the aperture to the second control gear by operating the stepping motor.
That is, in either case, when the camera changes the control position of the diaphragm by operating the stepping motor, the camera adjusts the shooting parameters of the camera after each operation of the stepping motor. Further, the camera adjusts the shooting parameters of the camera in a manner of increasing the shooting parameters or decreasing the shooting parameters.
Based on this, optionally, in a specific implementation manner, as shown in fig. 3, the manner of adjusting the shooting parameters after each operation of the stepping motor by the camera may include the following steps:
s301: acquiring the current image brightness of an image acquired after the stepping motor operates for one step;
s302: calculating the absolute value of the difference value between the current image brightness and the target brightness, and acquiring a step length coefficient;
wherein the step size coefficient is determined based on a preset step size range;
s303: and calculating the product of the absolute value and the step coefficient, and increasing or decreasing the shooting parameters of the camera according to the product.
Wherein, the product of the absolute value and the step coefficient can be calculated by the following formula:
ae_step0=CLIP(delta_y0*n0,A0,B0)
the method comprises the following steps that ae _ step0 is the product of an absolute value obtained by calculation each time and a step length coefficient, delta _ y0 is the difference value between the current image brightness and the target brightness of an acquired image after the stepping motor operates for one step, n0 is the step length coefficient determined based on a preset step length range, A0 is the minimum value of the preset step length range, and B0 is the maximum value of the preset step length range; CLIP indicates that the product of delta _ y × n0 is limited to the value interval a0, B0.
The step length range can be set according to relevant parameters of the camera, and the step length coefficient is a positive number smaller than 1.
Thus, after the product of the absolute value and the step length coefficient is obtained through calculation, when the shooting parameters of the camera need to be increased, the camera can increase the shooting parameters by the product by the number of step lengths, and the shooting parameters are increased according to the product; correspondingly, when the shooting parameters of the camera need to be reduced, the camera can reduce the shooting parameters by the product by a plurality of steps, so that the shooting parameters are reduced according to the product.
Further, in order to make the image brightness of the image acquired by the camera for the first time closer to the preset target brightness, the number of times of controlling the aperture of the camera can be reduced, the control time is saved, and the shooting efficiency is improved, optionally, in a specific implementation manner, when the camera starts to operate, the initial gear of the aperture of the camera can be set as: and a control gear with the second largest light feeding amount.
The aperture size corresponding to the control shift position with the second largest light input amount is generally the aperture size at which the camera can obtain a better depth of field.
In addition, when it is detected that the image brightness of the currently acquired image is greater than the preset target brightness, when the camera performs the step S201, the parameter value of the current shooting parameter of the camera is compared with the first preset value corresponding to the shooting parameter, and the obtained comparison result is that the current shooting parameter of the camera is different from the first preset value corresponding to the shooting parameter, the camera may determine to reduce the image brightness of the acquired image by adjusting the shooting parameter to perform brightness compensation.
The camera can adjust shooting parameters of the camera based on the image brightness of the collected image and preset target brightness.
Specifically, the first preset value corresponding to the shooting parameter may be a minimum value of the preset shooting parameter, so that the camera may determine an absolute value of a difference between the brightness of the currently acquired image and the preset target brightness, and determine the first coefficient based on a preset first step length range; further, the camera may calculate a product of the absolute value and the first coefficient as a reduction step size, and reduce the shooting parameter of the camera by the reduction step size.
The first step length range can be set according to relevant parameters of the camera, and the first coefficient is a positive number smaller than 1.
Specifically, the camera may calculate the above reduction step size by the following formula:
ae_step1=CLIP(delta_y*n1,A1,B1)
ae _ step1 is the above reduction step, delta _ y is an absolute value of a difference between the image brightness of the currently acquired image and a preset target brightness, n1 is a first coefficient determined based on a preset first step range, a1 is a minimum value of the preset first step range, and B1 is a maximum value of the preset first step range; CLIP indicates that the product of delta _ y × n1 is limited to the value interval a1, B1.
Based on this, optionally, in a specific implementation manner, when the shooting parameters of the camera only include a shutter, the first preset value corresponding to the current shooting parameters and the shooting parameters of the camera is: the current shutter value of the camera is larger than the preset minimum shutter value.
Therefore, the camera can calculate the reduction step size of the shutter through the formula, and further reduce the shutter value of the camera according to the calculated reduction step size.
Optionally, in a specific implementation manner, when the shooting parameters of the camera only include gains, the first preset values corresponding to the current shooting parameters and the shooting parameters of the camera are as follows: the current gain value of the camera is larger than a preset minimum gain value;
therefore, the camera can calculate the reduction step size of the gain through the formula, and further reduce the gain value of the camera according to the calculated reduction step size.
Optionally, in a specific implementation manner, when the shooting parameters of the camera include a shutter and a gain; the current shooting parameters of the camera and the first preset values corresponding to the shooting parameters are as follows: the current shutter value of the camera is larger than the preset minimum shutter value and/or the current gain value of the camera is larger than the preset minimum gain value.
Therefore, when the current shutter value of the camera is larger than the preset minimum shutter value and the current gain value of the camera is the same as the preset minimum gain value, the camera can calculate the reduction step length of the shutter through the formula, and further reduce the shutter value of the camera according to the calculated reduction step length;
when the current shutter value of the camera is the same as the preset minimum shutter value and the current gain value of the camera is larger than the preset minimum gain value, the camera can calculate the reduction step length of the gain through the formula, and further reduce the gain value of the camera according to the calculated reduction step length;
the current shutter value of the camera is larger than the preset minimum shutter value, and the current gain value of the camera is larger than the preset minimum gain value, the camera can firstly calculate the reduction step length of the gain through the formula, then the gain value of the camera is reduced according to the calculated reduction step length, further when the gain of the camera is reduced to the preset minimum gain value, the camera can continuously calculate the reduction step length of the shutter through the formula, and then the shutter value of the camera is reduced according to the calculated reduction step length.
And correspondingly detecting the situation that the image brightness of the currently acquired image is greater than the preset target brightness and the current shooting parameter of the camera is different from the first preset value corresponding to the shooting parameter.
When it is detected that the image brightness of the currently acquired image is smaller than the preset target brightness, the camera may determine to improve the image brightness of the acquired image by adjusting the shooting parameters in a brightness compensation manner when the camera performs the step S203, and compares the parameter value of the current shooting parameter of the camera with the second preset value corresponding to the shooting parameter, and the obtained comparison result is that the current shooting parameter of the camera is different from the second preset value corresponding to the shooting parameter.
The camera can adjust shooting parameters of the camera based on the image brightness of the collected image and preset target brightness.
Specifically, since the second preset value corresponding to the shooting parameter may be the maximum value of the preset shooting parameter, the camera may determine the absolute value of the difference between the brightness of the currently acquired image and the preset target brightness, and determine the second coefficient based on the preset second step length range; further, the camera may calculate a product of the absolute value and the second coefficient as an increase step size, and increase the shooting parameter of the camera by the increase step size.
The second step length range can be set according to relevant parameters of the camera, and the first coefficient is a positive number smaller than 1.
Specifically, the camera may calculate the above reduction step size by the following formula:
ae_step2=CLIP(delta_y*n2,A2,B2)
ae _ step2 is the increase step size, delta _ y is an absolute value of a difference between the image brightness of the currently acquired image and a preset target brightness, n2 is a second coefficient determined based on a preset second step size range, a2 is a minimum value of the preset second step size range, and B2 is a maximum value of the preset second step size range; CLIP indicates that the product of delta _ y × n1 is limited to the value interval a2, B2.
Based on this, optionally, in a specific implementation manner, when the shooting parameters of the camera only include a shutter, the second preset value corresponding to the current shooting parameters and the shooting parameters of the camera is: the current shutter value of the camera is smaller than the preset maximum shutter value.
Therefore, the camera can calculate the increasing step length of the shutter through the formula, and then the shutter value of the camera is increased according to the calculated increasing step length.
Optionally, in a specific implementation manner, when the shooting parameters of the camera only include the gain, the second preset value corresponding to the current shooting parameters and the shooting parameters of the camera is as follows: the current gain value of the camera is smaller than a preset maximum gain value;
therefore, the camera can calculate the gain increase step size through the formula, and then increase the gain value of the camera according to the calculated increase step size.
Optionally, in a specific implementation manner, when the shooting parameters of the camera include a shutter and a gain; the current shooting parameters of the camera and the second preset values corresponding to the shooting parameters are as follows: the current shutter value of the camera is smaller than the preset maximum shutter value and/or the current gain value of the camera is smaller than the preset maximum gain value.
Therefore, when the current shutter value of the camera is smaller than the preset maximum shutter value and the current gain value of the camera is the same as the preset maximum gain value, the camera can calculate the increasing step length of the shutter through the formula, and then the shutter value of the camera is increased according to the calculated increasing step length;
when the current shutter value of the camera is the same as the preset minimum shutter value and the current gain value of the camera is smaller than the preset maximum gain value, the camera can calculate the gain increase step length through the formula, and then the gain value of the camera is increased according to the calculated increase step length;
the current shutter value of the camera is smaller than the preset maximum shutter value, and the current gain value of the camera is smaller than the preset maximum gain value, so that the camera can firstly calculate the increasing step length of the shutter through the formula, then increase the shutter value of the camera according to the increasing step length obtained through calculation, further when the shutter of the camera is increased to the preset maximum shutter value, the camera can continue to calculate the increasing step length of the gain through the formula, and further increase the gain value of the camera according to the increasing step length obtained through calculation.
Corresponding to the method for controlling an aperture provided in the embodiment of the present invention, an embodiment of the present invention further provides a camera, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503, and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to implement the aperture control method according to the embodiment of the present invention when executing the program stored in the memory 503.
Specifically, the aperture control method is applied to a camera, and a preset number of control gears are preset in an aperture of the camera, wherein the switching between two adjacent control gears is realized by operating multiple steps through a stepping motor; the method comprises the following steps:
when the image brightness of the currently acquired image is detected to be larger than the preset target brightness, comparing the parameter value of the current shooting parameter of the camera with a first preset value corresponding to the shooting parameter; wherein, shoot the parameter and include: shutter and/or gain;
when the current shooting parameters of the camera are the same as first preset values corresponding to the shooting parameters, the control gear of the aperture is adjusted to a first control gear from the control gear where the aperture is located at present by operating the stepping motor, and the shooting parameters of the camera are adjusted after the stepping motor operates for one step; wherein the first control gear is: a control gear adjacent to a control gear where the diaphragm is currently located in the light entrance amount reduction direction;
when the image brightness of the currently acquired image is detected to be smaller than the preset target brightness, comparing the current shooting parameters of the camera with a second preset value corresponding to the shooting parameters;
when the current shooting parameters of the camera are the same as second preset values corresponding to the shooting parameters, the control gear of the aperture is adjusted to a second control gear from the control gear where the aperture is located at present by operating the stepping motor, and the shooting parameters of the camera are adjusted after the stepping motor operates for one step; wherein the second control gear is: and a control shift position adjacent to the control shift position where the diaphragm is currently located in the light entrance amount increasing direction.
The processor 501 is realized by executing a program stored in the memory 503. Other implementation manners of an aperture control method are the same as those of the aperture control method embodiment provided in the previous method embodiment section, and are not described herein again.
As can be seen from the above, with the solution provided by the embodiment of the present invention, since the switching between two adjacent control gears is realized by operating the stepping motor in multiple steps, the light-entering amount difference between two adjacent control gears is greater than the light-entering amount difference between every two steps of the stepping motor in the manner that the stepping motor drives the aperture step by step. Furthermore, when the control gear of the aperture is adjusted, the brightness compensation can be carried out by adjusting the auxiliary parameters of the camera after the stepping motor operates for one step, so that the problem that the light input quantity of the former control gear is insufficient and the light input quantity of the latter control gear is excessive is avoided. Therefore, by applying the scheme provided by the embodiment of the invention, the phenomenon of diaphragm oscillation can be avoided, so that the camera can shoot images with higher quality.
The communication bus mentioned in the above-mentioned video camera may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the camera and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the camera embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. The aperture control method is characterized by being applied to a camera, wherein a preset number of control gears are preset in an aperture of the camera, and the switching between two adjacent control gears is realized by operating multiple steps through a stepping motor; the method comprises the following steps:
when the image brightness of the currently acquired image is detected to be larger than the preset target brightness, comparing the parameter value of the current shooting parameter of the camera with a first preset value corresponding to the shooting parameter; wherein the photographing parameters include: shutter and/or gain;
when the current shooting parameters of the camera are the same as the first preset values corresponding to the shooting parameters, the control gear of the aperture is adjusted to a first control gear from the control gear where the aperture is located at present by operating the stepping motor, and the shooting parameters of the camera are adjusted after the stepping motor operates every step; wherein the first control gear is: a control gear adjacent to a control gear where the diaphragm is currently located in the light entrance amount reduction direction;
when the image brightness of the currently acquired image is detected to be smaller than the preset target brightness, comparing the current shooting parameter of the camera with a second preset value corresponding to the shooting parameter;
when the current shooting parameter of the camera is the same as the second preset value corresponding to the shooting parameter, the control gear of the aperture is adjusted to a second control gear from the control gear where the aperture is located at present by operating the stepping motor, and the shooting parameter of the camera is adjusted after the stepping motor operates for one step; wherein the second control gear is: and a control gear adjacent to the control gear where the diaphragm is currently located in the light entrance amount increasing direction.
2. The method according to claim 1, wherein the step of adjusting the control gear of the diaphragm from the control gear in which the diaphragm is currently located to a second control gear by operating the stepper motor, and adjusting the photographing parameters of the camera after each operation of the stepper motor comprises:
adjusting the control gear of the diaphragm to a control gear with the maximum light inlet amount from the control gear of the diaphragm by operating the stepping motor;
and after the control gear of the aperture is adjusted to the control gear with the maximum light inlet quantity, the control gear of the aperture is adjusted to the second control gear by operating the stepping motor, and the shooting parameters of the camera are adjusted after the stepping motor operates every step.
3. The method of claim 1, wherein the shooting parameters comprise: shutter and gain;
the step of comparing the current shooting parameter value of the camera with the first preset value corresponding to the shooting parameter comprises the following steps:
comparing the current shutter value of the camera with a preset minimum shutter value, and comparing the current gain value of the camera with a preset minimum gain value;
when the current shutter value of the camera is the same as the minimum shutter value and the current gain value of the camera is the same as the minimum gain value, judging that the current shooting parameters of the camera are the same as the first preset values corresponding to the shooting parameters;
otherwise, judging that the current shooting parameters of the camera are different from the first preset values corresponding to the shooting parameters;
the step of comparing the current shooting parameters of the camera with a second preset value corresponding to the shooting parameters comprises the following steps:
comparing the current shutter value of the camera with a preset maximum shutter value, and comparing the current gain value of the camera with a preset maximum gain value;
when the current shutter value of the camera is the same as the maximum shutter value and the current gain value of the camera is the same as the maximum gain value, judging that the current shooting parameters of the camera are the same as the second preset values corresponding to the shooting parameters;
otherwise, judging that the current shooting parameters of the camera are different from the second preset values corresponding to the shooting parameters.
4. The method of claim 3,
when the current shooting parameter of the camera is the same as the first preset value corresponding to the shooting parameter, the step of adjusting the shooting parameter of the camera includes:
increasing a shutter value of the camera and increasing a gain value of the camera when the increased shutter value reaches the maximum shutter value;
when the current shooting parameter of the camera is the same as the second preset value corresponding to the shooting parameter, the step of adjusting the shooting parameter of the camera includes:
and reducing the gain value of the camera, and reducing the shutter value of the camera when the reduced shutter value reaches the minimum gain value.
5. The method of any one of claims 1-4, wherein said adjusting said camera parameters after each step of said stepper motor comprises:
obtaining the current image brightness of the image acquired after the stepping motor operates for one step;
calculating the absolute value of the difference value between the current image brightness and the target brightness, and acquiring a step length coefficient; wherein the step size coefficient is determined based on a preset step size range;
and calculating a product of the absolute value and the step coefficient, and increasing or decreasing the shooting parameters of the camera according to the product.
6. The method of claim 1, further comprising:
when the current shooting parameter of the camera is different from the first preset value corresponding to the shooting parameter, or the current shooting parameter of the camera is different from the second preset value corresponding to the shooting parameter, adjusting the shooting parameter of the camera based on the image brightness of the acquired image and the target brightness.
7. The method according to claim 1, wherein the initial control gear of the aperture is: and a control gear with the second largest light feeding amount.
8. A camera is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
CN201910394239.4A 2019-05-13 2019-05-13 Aperture control method and camera Active CN111935413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910394239.4A CN111935413B (en) 2019-05-13 2019-05-13 Aperture control method and camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910394239.4A CN111935413B (en) 2019-05-13 2019-05-13 Aperture control method and camera

Publications (2)

Publication Number Publication Date
CN111935413A true CN111935413A (en) 2020-11-13
CN111935413B CN111935413B (en) 2021-11-05

Family

ID=73282582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910394239.4A Active CN111935413B (en) 2019-05-13 2019-05-13 Aperture control method and camera

Country Status (1)

Country Link
CN (1) CN111935413B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637513A (en) * 2020-12-03 2021-04-09 西安北方光电科技防务有限公司 Weighting control method for mechanical aperture
CN113452924A (en) * 2021-06-30 2021-09-28 广州极飞科技股份有限公司 Camera diaphragm control method, device, equipment and storage medium
CN114125315A (en) * 2021-11-23 2022-03-01 深圳市同为数码科技股份有限公司 Camera aperture area calibration method and device and camera
CN114513602A (en) * 2020-11-17 2022-05-17 浙江宇视科技有限公司 Lens motor step length determining method, device, equipment and medium
CN115482291A (en) * 2022-03-31 2022-12-16 华为技术有限公司 Calibration method, calibration system, shooting method, electronic device and storage medium
WO2023011302A1 (en) * 2021-07-31 2023-02-09 华为技术有限公司 Photographing method and related apparatus
WO2023178464A1 (en) * 2022-03-21 2023-09-28 Qualcomm Incorporated Lens shading correction (lsc) in variable aperture (va) camera systems

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150124146A1 (en) * 2013-11-06 2015-05-07 Panasonic Intellectual Property Management Co., Ltd. Image-capturing apparatus
CN108681182A (en) * 2018-04-24 2018-10-19 浙江大华技术股份有限公司 A kind of diaphragm control method and terminal device
JP2019020669A (en) * 2017-07-21 2019-02-07 キヤノン株式会社 Control device, lens device, imaging device and control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150124146A1 (en) * 2013-11-06 2015-05-07 Panasonic Intellectual Property Management Co., Ltd. Image-capturing apparatus
JP2019020669A (en) * 2017-07-21 2019-02-07 キヤノン株式会社 Control device, lens device, imaging device and control method
CN108681182A (en) * 2018-04-24 2018-10-19 浙江大华技术股份有限公司 A kind of diaphragm control method and terminal device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114513602A (en) * 2020-11-17 2022-05-17 浙江宇视科技有限公司 Lens motor step length determining method, device, equipment and medium
CN114513602B (en) * 2020-11-17 2024-02-20 浙江宇视科技有限公司 Lens motor step length determining method, device, equipment and medium
CN112637513A (en) * 2020-12-03 2021-04-09 西安北方光电科技防务有限公司 Weighting control method for mechanical aperture
CN113452924A (en) * 2021-06-30 2021-09-28 广州极飞科技股份有限公司 Camera diaphragm control method, device, equipment and storage medium
WO2023011302A1 (en) * 2021-07-31 2023-02-09 华为技术有限公司 Photographing method and related apparatus
CN114125315A (en) * 2021-11-23 2022-03-01 深圳市同为数码科技股份有限公司 Camera aperture area calibration method and device and camera
CN114125315B (en) * 2021-11-23 2023-12-05 深圳市同为数码科技股份有限公司 Camera aperture area calibration method and device and camera
WO2023178464A1 (en) * 2022-03-21 2023-09-28 Qualcomm Incorporated Lens shading correction (lsc) in variable aperture (va) camera systems
CN115482291A (en) * 2022-03-31 2022-12-16 华为技术有限公司 Calibration method, calibration system, shooting method, electronic device and storage medium
CN115482291B (en) * 2022-03-31 2023-09-29 华为技术有限公司 Calibration method, calibration system, shooting method, electronic device and storage medium
WO2023185674A1 (en) * 2022-03-31 2023-10-05 华为技术有限公司 Calibration method, calibration system, photographing method, electronic device and storage medium

Also Published As

Publication number Publication date
CN111935413B (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN111935413B (en) Aperture control method and camera
US9438815B2 (en) Control device, control method, and control system with multiple dynamic ranges
US20110149129A1 (en) Multi-step exposed image acquisition method by electronic shutter and photographing apparatus using the same
JP3097146B2 (en) Exposure control circuit
US9693041B2 (en) Image capturing device and method for calibrating image deformation thereof
JPH07307889A (en) Automatic exposure control camera using variable exposure index ccd sensor
US10175451B2 (en) Imaging apparatus and focus adjustment method
JP2011097141A (en) Imaging device, method for controlling the same, and program
ITTO20070865A1 (en) IMAGE FORMATION AND AUTOMATIC FOCUSING METHOD
US8810712B2 (en) Camera system and auto focus method
US9456145B2 (en) Apparatus for photographing that carries out a pre-flash photography
US20150181095A1 (en) Control device, control method, and exposure control system
JP3513164B2 (en) Lens control device
JP4922768B2 (en) Imaging device, focus automatic adjustment method
US20060132627A1 (en) Imaging apparatus, imaging method and imaging processing program
JPWO2013099636A1 (en) Imaging device, control method thereof, interchangeable lens and interchangeable lens imaging device body
US20140118606A1 (en) Smart cameras
CN108881734B (en) Image acquisition method and device
US8488020B2 (en) Imaging device, method for controlling the imaging device, and recording medium recording the method
JP2006033519A (en) Image pickup device
CN112532889B (en) Method and device for determining aperture value of image acquisition equipment
CN110839126B (en) Zoom tracking method and device and zoom camera
JP5251203B2 (en) Image processing apparatus and image processing program
JP5439971B2 (en) Photometric device and imaging device
JPH06153066A (en) Image pickup device

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