CN109151257B - Image processing method and camera - Google Patents

Image processing method and camera Download PDF

Info

Publication number
CN109151257B
CN109151257B CN201811100203.2A CN201811100203A CN109151257B CN 109151257 B CN109151257 B CN 109151257B CN 201811100203 A CN201811100203 A CN 201811100203A CN 109151257 B CN109151257 B CN 109151257B
Authority
CN
China
Prior art keywords
camera
value
shooting
noise reduction
parameter
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
CN201811100203.2A
Other languages
Chinese (zh)
Other versions
CN109151257A (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201811100203.2A priority Critical patent/CN109151257B/en
Publication of CN109151257A publication Critical patent/CN109151257A/en
Application granted granted Critical
Publication of CN109151257B publication Critical patent/CN109151257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/62Detection or reduction of noise due to excess charges produced by the exposure, e.g. smear, blooming, ghost image, crosstalk or leakage between pixels

Abstract

The invention discloses an image processing method and a camera, which are used for solving the problem of smear of images in the prior art. The image processing method comprises the following steps: acquiring a value of an exposure parameter shot by a camera, wherein the exposure parameter is used for indicating an illumination environment shot by the camera and comprises one or more of a shutter value, an aperture value and a gain value; if the value indicates a low-illumination environment, acquiring a value of a shooting parameter of the camera, wherein the ambient brightness of the low-illumination environment is less than or equal to a first preset threshold, and the shooting parameter comprises a shooting angle and/or a focal length multiple of the camera; if the shooting parameters change in the shooting process of the camera, determining an adjustment value of an image parameter according to the shooting parameters, wherein the image parameter comprises a noise reduction value and/or a sharpness value; and adjusting the image shot by the camera according to the adjustment value.

Description

Image processing method and camera
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image processing method and a camera.
Background
Under the condition of weak illumination intensity, if the video monitoring equipment acquires an image, the shooting parameters of the video monitoring equipment are changed; for example, in a camera with a variable-magnification cloud platform, when a cloud platform rotates or the magnification of the camera changes, the whole image obtained by the camera moves, and then the current noise reduction algorithm judges that an object in the image which is static per se is dynamic, so that the static object in the image is subjected to time domain noise reduction, and consequently, the tail of the image is subjected to a smear phenomenon, and the whole image is subjected to the smear phenomenon, so that the whole image cannot be clearly presented even if the noise reduction is adopted.
It can be seen that, under the conditions that the illumination intensity of the existing camera is low, and the pan-tilt rotates or the magnification changes, the obtained image has a smear phenomenon, and the image quality is poor.
Disclosure of Invention
The embodiment of the invention provides an image processing method and a camera, which are used for solving the problem of smear of an image in the prior art.
In a first aspect, a method of image processing is provided, the method comprising:
acquiring a value of an exposure parameter shot by a camera, wherein the exposure parameter is used for indicating an illumination environment shot by the camera and comprises one or more of a shutter value, an aperture value and a gain value;
if the value of the exposure parameter indicates a low-illumination environment, acquiring the value of a shooting parameter of the camera, wherein the ambient brightness of the low-illumination environment is less than or equal to a first preset threshold;
if the shooting parameters change in the shooting process of the camera, determining an adjustment value of the image parameters according to the shooting parameters;
and adjusting the image shot by the camera according to the adjustment value.
In the embodiment of the invention, the camera is in a low-illumination environment, and in the shooting process, the value of the shooting parameter of the camera, such as the shooting angle and/or the focal length multiple, is changed, so that the adjustment value of the noise reduction value and/or the sharpness value can be determined according to the shooting parameter. The adjustment value of the noise reduction value and/or the sharpness value takes the shooting parameters into consideration, so that the image shot by the camera is adjusted through the adjustment value of the noise reduction value and/or the sharpness value, and the phenomenon of image smear caused by the change of the shooting parameters can be solved.
Optionally, the shooting parameters include a shooting angle of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and if the shooting parameters change in a shooting process of the camera, the adjustment values of the image parameters are determined according to the shooting parameters, including:
determining the movement speed of the camera according to the shooting angle;
and determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the motion speed and the exposure parameter.
In the embodiment of the invention, if the shooting angle of the camera is changed in the shooting process, the tail of the shot image may have a smear phenomenon, and at this time, the adjustment value of the image parameter needs to be determined according to the rotation movement speed of the camera and the illumination condition of the camera, so that the smear phenomenon of the image caused by the change of the shooting angle can be solved.
Optionally, the shooting parameters include focal length multiples of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and if the shooting parameters change in the shooting process of the camera, the adjustment values of the image parameters are determined according to the shooting parameters, including:
determining the zooming speed of the camera according to the focal length multiple;
and determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the zooming speed and the exposure parameter.
In the embodiment of the invention, if the focal length of the camera is changed in the shooting process, the tail of the shot image may have a smear phenomenon, and at this time, the adjustment value of the image parameter needs to be determined according to the zoom speed of the camera and the illumination condition of the camera, so that the smear phenomenon of the image caused by the change of the focal length can be solved.
Optionally, determining the moving speed of the camera according to the shooting angle includes:
determining whether the camera shoots according to a first preset rule, wherein the first preset rule is used for indicating the shooting angle of the camera;
if the camera is determined to shoot according to the first preset rule, coordinate values of any two preset shooting points on a shooting path corresponding to the first preset rule and the acceleration of the camera are respectively obtained, and the motion speed of the camera is determined according to the obtained coordinate values and the acceleration;
and if the camera is determined not to shoot according to the first preset rule, acquiring the current movement speed of the camera.
In the embodiment of the present invention, if the shooting angle of the camera changes, the camera may be carried by the rotation of the pan/tilt head, and the pan/tilt head may rotate regularly or irregularly. And determining the movement speed of the camera according to the actual rotation condition of the holder so as to improve the accuracy of the determined movement speed as much as possible.
Optionally, determining the zoom speed of the camera according to the focal length multiple includes:
determining whether the camera shoots according to a second preset rule, wherein the second preset rule is used for indicating the shooting focal length of the camera;
if the camera is determined to shoot according to the second preset rule, coordinate values of any two preset shooting points on a shooting focal section corresponding to the second preset rule and the acceleration of the camera are respectively obtained, and the zooming speed of the camera is determined according to the obtained coordinate values and the acceleration; wherein the focal length corresponds to at least two focal lengths;
and if the camera is determined not to shoot according to the second preset rule, acquiring the current zooming speed of the camera.
In the embodiment of the present invention, if the focal length of the camera changes, the focal length of the camera may be changed regularly or artificially irregularly. And determining the movement speed of the camera according to the condition that the actual focal length of the camera is changed so as to improve the accuracy of the determined movement speed as much as possible.
Alternatively to this, the first and second parts may,
before determining an adjustment value of an image parameter according to the shooting parameter if the shooting parameter changes in the shooting process of the camera, the method further includes:
obtaining the value of the exposure parameter shot by the camera again;
if the value of the exposure parameter indicates an ultra-low illumination environment, determining an adjustment value of an image parameter according to the shooting parameter, and further comprising:
determining a reduction value of a small edge sharpness value according to the exposure parameter and the shooting parameter;
the environment brightness of the ultra-low illumination environment is smaller than or equal to a second preset threshold, and the second preset threshold is smaller than the first preset threshold.
In the embodiment of the invention, if the current illumination is lower, the camera considers the factor of small edge sharpness value before adjusting the image so as to reduce the influence of illumination on the image as much as possible, thereby reducing the fine noise problem of the image caused by the reduction of time domain noise reduction in an ultra-low illumination environment and improving the definition of the adjusted image.
Optionally, the method further includes:
if the shooting parameters change, recording the initial time of the change of the shooting parameters;
recording the determined time of the adjustment value of the image parameter;
and if the difference value between the determined moment and the starting moment is greater than or equal to a third preset threshold value, re-determining the adjustment value of the image parameter.
It is considered that if the time period from the finding of the change in the value of the shooting parameter of the camera to the determination of the adjustment value is long, during which if the illumination brightness becomes darker, the effect of adjusting the subsequently shot image may be poor even if the adjustment value is obtained at this time. Therefore, in the embodiment of the invention, if the time length from the time when the value of the shooting parameter of the camera is found to be changed to the time when the adjustment value is determined is longer, the adjustment value can be determined again, so that the definition of the adjusted image is improved as much as possible.
In a second aspect, there is provided a camera comprising:
a memory to store instructions;
a processor for reading the instructions in the memory, performing the following processes:
acquiring a value of an exposure parameter shot by a camera, wherein the exposure parameter is used for indicating an illumination environment shot by the camera and comprises one or more of a shutter value, an aperture value and a gain value;
if the value of the exposure parameter indicates a low-illumination environment, acquiring the value of a shooting parameter of the camera, wherein the ambient brightness of the low-illumination environment is less than or equal to a first preset threshold;
if the shooting parameters change in the shooting process of the camera, determining an adjustment value of the image parameters according to the shooting parameters;
and adjusting the image shot by the camera according to the adjustment value.
Optionally, the shooting parameters include a shooting angle of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and the processor is specifically configured to:
determining the movement speed of the camera according to the shooting angle;
and determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the motion speed and the exposure parameter.
Optionally, the shooting parameters include a shooting angle of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and the processor is specifically configured to:
determining the zooming speed of the camera according to the focal length multiple;
and determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the zooming speed and the exposure parameter.
Optionally, the processor is specifically configured to:
determining whether the camera shoots according to a first preset rule, wherein the first preset rule is used for indicating the shooting angle of the camera;
if the camera is determined to shoot according to the first preset rule, coordinate values of any two preset shooting points on a shooting path corresponding to the first preset rule and the acceleration of the camera are respectively obtained, and the motion speed of the camera is determined according to the obtained coordinate values and the acceleration;
and if the camera is determined not to shoot according to the first preset rule, acquiring the current movement speed of the camera.
Optionally, the processor is specifically configured to:
determining whether the camera shoots according to a second preset rule, wherein the second preset rule is used for indicating the shooting focal length of the camera;
if the camera is determined to shoot according to the second preset rule, coordinate values of any two preset shooting points on a shooting focal section corresponding to the second preset rule and the acceleration of the camera are respectively obtained, and the zooming speed of the camera is determined according to the obtained coordinate values and the acceleration; wherein the focal length corresponds to at least two focal lengths;
and if the camera is determined not to shoot according to the second preset rule, acquiring the current zooming speed of the camera.
Optionally, the processor is further configured to:
obtaining the value of the exposure parameter shot by the camera again;
if the value of the exposure parameter indicates an ultra-low illumination environment, determining an adjustment value of an image parameter according to the shooting parameter, and further comprising:
determining a reduction value of a small edge sharpness value according to the exposure parameter and the shooting parameter;
the environment brightness of the ultra-low illumination environment is smaller than or equal to a second preset threshold, and the second preset threshold is smaller than the first preset threshold.
Optionally, the processor is further configured to:
if the shooting parameters change, recording the initial time of the change of the shooting parameters;
recording the determined time of the adjustment value of the image parameter;
and if the difference value between the determined moment and the starting moment is greater than or equal to a third preset threshold value, re-determining the adjustment value of the image parameter.
In a third aspect, a camera is provided, which includes:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring the value of an exposure parameter shot by a camera, and the exposure parameter is used for indicating the illumination environment shot by the camera and comprises one or more of a shutter value, an aperture value and a gain value;
a second obtaining unit, configured to obtain a value of a shooting parameter of the camera if the value of the exposure parameter indicates a low-light environment, where ambient brightness of the low-light environment is less than or equal to a first preset threshold;
the determining unit is used for determining an adjusting value of an image parameter according to the shooting parameter if the shooting parameter changes in the shooting process of the camera;
and the adjusting unit is used for adjusting the image shot by the camera according to the adjusting value.
In a fourth aspect, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the first aspects.
In the embodiment of the present invention, if it is determined that the camera is in a low-light environment and the value of the shooting parameter of the camera, for example, the shooting angle and/or the focal length multiple, is changed during the shooting process, the adjustment value of the noise reduction value and/or the sharpness value may be determined according to the shooting parameter. The adjustment value of the noise reduction value and/or the sharpness value takes the shooting parameters into consideration, so that the image shot by the camera is adjusted through the adjustment value of the noise reduction value and/or the sharpness value, and the phenomenon of image smear caused by the change of the shooting parameters can be solved.
Drawings
Fig. 1 is a schematic flowchart of a method for image processing according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a process for determining a lighting environment according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a camera according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another camera according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly and completely understood, the technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
Under the condition of weak illumination intensity, the noise of the image actually obtained by the video monitoring equipment becomes more obvious, so that the definition of the image is reduced. In order to reduce the influence of noise on an image, it is necessary to perform noise reduction processing on the image. However, if the illumination intensity is weak, when the video monitoring device acquires an image, the shooting parameters of the video monitoring device change, for example, a camera with a variable magnification on a cloud platform, and when the camera rotates on the cloud platform or the magnification changes, the image acquired by the camera has a smear phenomenon in the whole image, that is, the tail of the image has obvious noise, and the current noise reduction processing is performed on the noise which locally appears on an object in the image, so that the whole image cannot be clearly presented even if the noise reduction processing is performed.
In view of this, embodiments of the present invention provide an image processing method, in which if it is determined that a camera is in a low-light environment and a value of a shooting parameter of the camera, such as a shooting angle and/or a focal length multiple, changes during shooting, an adjustment value of a noise reduction value and/or a sharpness value may be determined according to the shooting parameter. The adjustment value of the noise reduction value and/or the sharpness value takes the shooting parameters into consideration, so that the image shot by the camera is adjusted through the adjustment value of the noise reduction value and/or the sharpness value, and the phenomenon of image smear caused by the change of the shooting parameters can be solved.
The technical scheme provided by the embodiment of the invention is described in the following with the accompanying drawings of the specification.
Referring to fig. 1, an embodiment of the present invention provides an image processing method, which may be executed by a camera or an electronic device controlling the camera, and a specific flow is described as follows.
S101, obtaining values of exposure parameters shot by a camera, wherein the exposure parameters are used for indicating the illumination environment shot by the camera and comprise one or more of a shutter value, an aperture value and a gain value.
If the illumination intensity of the environment where the camera is located is low, for example, at night or in the evening, the objects in the image captured by the camera may be significantly noisy, especially if the captured objects are moving, and the objects in the image may still have a smear phenomenon, i.e., the image captured by the camera has poor quality.
Because the quality of the image picture shot by the camera is usually related to exposure, when the value of the exposure parameter tends to a better value, the quality of the shot image picture is usually higher, and the presented visual effect is better. Therefore, in the embodiment of the invention, the camera can acquire the value of the exposure parameter during shooting, so that the illumination condition of the camera during shooting is determined through the exposure parameter.
Specifically, the exposure parameters may include a shutter, a gain, an aperture, a brightness, and the like, where a value of the shutter may include a shutter statistic value when the camera is currently shooting. The gain value may include a gain statistic when the camera is currently shooting. The value of the aperture may include the aperture statistics when the camera is currently shooting. The value of the brightness can also comprise a brightness statistic value of an image picture currently shot by the camera. Or, the value of the shutter may also include a shutter target value that enables the image quality of the image to be better in the current environment determined by the camera according to the shooting environment, that is, the shutter needs to be adjusted to be close to the shutter target value when the camera adjusts the value of the shutter. Similarly, the gain value, the aperture value, and the brightness value may also include corresponding target values, which are not described herein again. The camera may acquire any of the above-described exposure parameters to more quickly determine the lighting environment in which the camera is located. The camera can also acquire a plurality of exposure parameters to comprehensively consider the plurality of exposure parameters and accurately determine the illumination environment of the camera.
In the embodiment of the invention, the camera firstly needs to determine the illumination condition of the current shooting environment. Methods of determining lighting conditions may include, but are not limited to, the following two:
firstly, the camera can determine the illumination condition of the current shooting environment of the camera according to the value of any one parameter of the shutter, the gain and the aperture. For example, the camera may set a plurality of preset gain ranges according to the gain, where different preset gain ranges correspond to different ranges of the lighting conditions, and the gain is taken as an example for description below.
For example, the shooting environment corresponding to the value in the first preset gain range is an ultra-low lighting environment, where the ultra-low lighting environment may be, for example, a non-luminance environment, the first preset gain range may be, for example, a range in which the gain value is greater than or equal to a first gain threshold, and the first gain threshold may be set according to actual requirements of the device, and may be set to, for example, 42 decibels (dB), that is, when the gain value is greater than or equal to 42dB, the current shooting environment may be considered as the ultra-low lighting environment, and of course, the value of the first gain threshold is not limited in the embodiment of the present invention.
The shooting environment corresponding to the value in the second preset gain range is a low-light environment, where the low-light environment may be an environment with poor night light, for example, the second preset gain range may be a range in which the gain value is greater than the first gain threshold and is less than or equal to the second gain threshold, the second gain threshold is greater than the first gain threshold, the specific size may be set according to the actual requirement of the device, for example, the specific size may be set to 30dB, that is, when the gain value is between 30dB and 42dB, the current shooting environment may be considered as the low-light environment, and of course, the value of the second gain threshold is not limited in the embodiment of the present invention.
The shooting environment corresponding to the value in the third preset gain range is an environment with sufficient illumination, and the third preset gain range may be, for example, a range in which the gain value is smaller than the second gain threshold, that is, when the gain value is smaller than 30dB, the current shooting environment may be considered as an environment with sufficient illumination.
After the camera acquires the gain value, the current illumination condition can be determined according to the following steps:
s1011: the camera determines whether the gain value is within a first preset gain range.
Specifically, the camera may first determine whether the gain value is within a first preset gain range to determine whether the current photographing environment is an ultra-low light environment. The camera can determine whether the current shooting environment is an ultra-low illumination environment by determining whether the gain value is greater than or equal to a first gain threshold value, and if the gain value is greater than or equal to the first gain threshold value, the current shooting environment is the ultra-low illumination environment; and if the gain value is smaller than the first gain threshold value, the current shooting environment is not an ultralow illumination environment.
S1012: and if the camera determines that the gain value is within the first preset gain range, the camera determines that the current shooting environment is an ultra-low illumination environment.
S1013: if the camera determines that the gain value is not within the first predetermined gain range, the camera determines whether the gain value is within a second predetermined gain range.
When the camera determines that the current environment is not an ultra-low light environment, the camera may continue to determine whether the gain value is within a second preset gain range to determine whether the current photographing environment is a low light environment. The camera can determine whether the current shooting environment is a low-illumination environment by determining whether the gain value is smaller than a first gain threshold and larger than or equal to a second gain threshold, and if the gain value is smaller than the first gain threshold and larger than or equal to the second gain threshold, the current shooting environment is the low-illumination environment; and if the gain value is smaller than the second gain threshold value, the current shooting environment is an environment with sufficient illumination.
S1014: and if the camera determines that the gain value is within the second preset gain range, the camera determines that the current shooting environment is a low-light environment.
S1015: and if the camera determines that the gain value is not within the second preset gain range, the camera determines that the current shooting environment is a sufficiently-lighted environment.
Second, the camera may determine the illumination of the current shooting environment of the camera based on the shutter, gain, and aperture. For example, an algorithm is set according to the shutter, the gain and the aperture to obtain a comprehensive reference value, and then ranges of different illumination conditions are set according to the comprehensive reference value, so that the values of multiple parameters of the comprehensive reference of the illumination conditions are judged, and the comprehensive reference is more comprehensive and accurate.
When the camera determines that the current environment is not a low-light environment, i.e., the gain value is less than the second gain threshold, then the camera may determine that the current shooting environment is a well-lit environment. When the illumination is sufficient, the quality of the image picture shot by the camera is better, and the shooting can be directly carried out.
And when the camera determines that the current environment is a low-light environment, that is, the gain value is greater than the second gain threshold and less than the first gain threshold, the camera may determine that the current shooting environment is a low-light environment. Because the quality of the image shot by the camera is poor when the low-light environment is not sufficiently illuminated, the subsequent noise reduction processing on the image is required, for example, the sharpness is reduced, the time domain noise reduction is reduced, the spatial domain noise reduction is improved, and the like, and then the subsequent shooting is performed.
If the camera determines that the current environment is a low-light environment, and the value of the shooting parameter of the camera may change during the shooting process of the camera, for example, when a pan-tilt for fixing the camera rotates, the camera moves along with the rotation of the pan-tilt, and the shooting angle of the camera changes. For another example, during shooting of the camera, the focal length of the camera changes; or, the shooting angle of the camera changes, and the focal length of the camera also changes. When the shooting parameters of the camera are changed, the whole image picture of the image shot by the camera has a smear phenomenon. At this time, if only the influence of the low-light environment on the image picture is considered, and the noise reduction processing is performed on the image according to the low-light environment, only the smear of the local object in the image can be processed, and the smear which can appear in the whole image picture still exists.
Therefore, in the embodiment of the present invention, the camera determines that the camera is in a low-light environment, and should also determine whether a value of a shooting parameter of the camera changes, so as to determine how to process the image to obtain a clearer image.
Specifically, in step S102, if the exposure parameter indicates a low-light environment, the camera acquires a value of a shooting parameter of the camera.
In the embodiment of the present invention, the shooting parameters may include a shooting angle of the camera, and may also include a zoom multiple. The camera can periodically acquire the values of the shooting parameters of the camera, so that whether the values of the shooting parameters change or not in the shooting process of the camera is determined. Or, the camera can judge whether a pan-tilt for fixing the camera rotates or not, so as to determine whether the camera moves or not, and indirectly determine whether the shooting angle of the camera changes or not. If the camera determines that the shooting parameters are not changed, the camera can process the shot images through the previously determined image parameters, such as the adjustment values of sharpness, time domain noise reduction or space domain noise reduction, and the like, so as to obtain clearer images. If the camera determines that the shooting parameters change, the camera needs to take the influence of the values of the shooting parameters on the shot image into consideration, so as to re-determine the adjustment values of the image parameters to adjust the subsequently shot images.
S103, if the shooting parameters change in the shooting process of the camera, the camera determines the adjustment value of the image parameters according to the shooting parameters.
In particular, the image parameters may include noise reduction values, such as temporal noise reduction values or spatial noise reduction values. The image parameters may also include sharpness values.
The adjustment values of the image parameters determined by the camera are different according to different shooting parameters, and the manner of determining the adjustment values of the image parameters by the camera is described below with respect to the shooting parameters as shooting angles or focal length multiples.
In the first case: the shooting parameter is a shooting angle.
If the photographing parameter is a photographing angle, and if the camera determines that the photographing angle is changed during photographing, the moving speed of the camera may be determined according to the photographing angle, so that the adjustment value of the image parameter may be determined according to the determined moving speed.
The camera is usually used for monitoring, and for some purpose of monitoring, a monitoring point may be preset in a monitoring scene in advance, and in the embodiment of the present invention, the monitoring point is referred to as a shooting point. For example, the camera is in the running and cruising group, that is, the camera regularly monitors a certain number of shooting points, the monitoring scene monitored by the camera may be a playground, and the preset shooting points may be positions of four corners of the playground, and may also include other positions of the playground to be monitored. The tripod head used for fixing the camera can rotate from the first preset shooting point, so that the camera is sequentially aligned to the second preset shooting point, the third preset shooting point and the like, and the operation is circulated in this way, and the monitoring of the playground is realized. Under the condition, the holder rotates according to a preset rule so as to drive the camera to rotate, and at the moment, the shooting angle of the camera also changes regularly. In the embodiment of the present invention, the shooting angle of such a camera is changed regularly, and the camera is referred to as shooting according to a preset rule.
It is also possible that the camera is actively switched by the user to the shooting point to be monitored during the shooting process for some purpose of monitoring. In this case, the shooting angle of the camera is changed autonomously by the user and irregularly. In the embodiment of the invention, the shooting angle of the camera is not changed regularly, and the camera does not shoot according to the preset rule.
In the embodiment of the invention, the determined movement speed of the camera is different according to whether the camera shoots according to the preset rule or not.
If the camera determines to shoot according to the first preset rule, the camera can respectively acquire coordinate values of any two preset shooting points on a shooting path corresponding to the first preset rule, and acquire the acceleration of the camera, so that the movement speed of the camera can be calculated according to the two acquired coordinate values and the acceleration.
For example, the camera acquires the coordinate values (X1, Y1) of the preset photographing point a, the coordinate values (X2, Y2) of the preset photographing point B, and the acceleration a, and then the moving speed of the camera may be calculated according to the following equations (1) and (2):
Figure BDA0001806478490000131
Figure BDA0001806478490000132
if the camera determines that the shooting is not performed according to the first preset rule, the camera can directly acquire the current movement speed of the camera.
Since the camera is in a low-light environment, the light condition of the environment where the camera is located may change, for example, may become darker during the shooting process of the camera, and then the camera should determine the adjustment value of the image parameter according to the determined motion speed and the current light condition, so as to obtain a clearer image as much as possible.
Therefore, after the camera determines the movement speed, the camera can re-acquire the value of the current exposure parameter to determine the current illumination environment of the camera, and determine the adjustment value of the image parameter according to the current illumination environment and the determined movement speed.
If the camera determines that the camera is in a low-light environment according to the value of the current exposure parameter, the camera can determine that the image parameter needing to be adjusted is a space domain noise reduction value and a time domain noise reduction value. If the camera determines that the camera is in an ultra-low illumination environment according to the value of the current exposure parameter, the camera can determine that the image parameters needing to be adjusted are a space domain noise reduction value, a time domain noise reduction value and a sharpness value, so that the influence of the illumination condition on the sharpness is considered as much as possible, and a clear image is obtained.
Specifically, when the camera is determined to be in a low-light environment, the camera may calculate an adjustment value of the spatial domain noise reduction value and an adjustment value of the temporal domain noise reduction value according to a value of a current exposure parameter, such as a gain value and a motion speed of the camera, that is, enhance the spatial domain noise reduction value and reduce the temporal domain noise reduction value, so as to reduce a smear caused by a motion of the camera.
When the camera is determined to be in an ultra-low illumination environment, the camera can calculate an adjustment value of a spatial domain noise reduction value and an adjustment value of a temporal domain noise reduction value according to a value of a current exposure parameter, such as a gain value and a motion speed of the camera, and calculate an adjustment value of small edge sharpness. Because the camera determines that the contour of the obtained image, namely the noise of the large edge, is more when the camera is in an ultra-low illumination environment, in this case, the camera can maintain the sharpness of the large edge, and calculate the adjustment value of the sharpness of the small edge, namely reduce the sharpness value of the small edge, so as to reduce the fine crushing noise.
In the second case: the shooting parameters are focal length multiples.
If the shooting parameter is a focal length multiple, and if the camera determines that the focal length multiple changes in the shooting process, the zoom speed of the camera can be determined according to the focal length multiple, so that the adjustment value of the image parameter can be determined according to the determined zoom speed.
As with the shooting angle, the focal length multiple of the camera may or may not change regularly during the shooting process, and is not described here again. In the embodiment of the invention, the focal length multiple of the camera is changed regularly, and the camera shoots according to a preset rule.
In the embodiment of the invention, if the focal length multiple of the camera is changed in shooting, whether the camera is in the running cruise group or not can be continuously determined, and the zoom speed of the camera is determined to be different according to whether the camera is in the running cruise group or not.
If the camera shoots according to the second preset rule, namely the focal length multiple of the camera is changed regularly, the camera can respectively acquire coordinate values of any two preset shooting points on a shooting path corresponding to the second preset rule at the moment, and acquire the acceleration of the camera, so that the zooming speed of the camera can be calculated according to the two acquired coordinate values and the acceleration. The method for calculating the zoom speed of the camera at this time is similar to the above equation (1) and equation (2), and will not be described again here.
If the camera determines that the shooting is not performed according to the second preset rule, at this time, the camera can directly acquire the current zoom speed of the camera.
Similarly, since the camera is in a low-light environment, the light condition of the environment in which the camera is located may change, for example, may become darker during the shooting process of the camera, and then the camera should determine the adjustment value of the image parameter according to the determined zoom speed and the current light condition to try to obtain a clearer image.
Therefore, after the camera determines the zoom speed, the camera may re-acquire the value of the current exposure parameter to determine the current illumination environment of the camera, and determine the adjustment value of the image parameter according to the current illumination environment and the determined zoom speed.
Specifically, in the embodiment of the present invention, the camera may pre-establish a mapping relationship between a moving speed of the camera, a value of the exposure parameter, and a spatial domain noise reduction value, a temporal domain noise reduction value, or a sharpness value. After the camera determines the movement speed and the value of the exposure parameter, such as the gain value, the spatial domain noise reduction value and the time domain noise reduction value can be determined according to the mapping table, so that the adjustment value of the spatial domain noise reduction value and the adjustment value of the time domain noise reduction value or the adjustment value of the sharpness value can be further determined.
Similarly, the camera may pre-establish a mapping relationship between the zoom speed and the value of the exposure parameter of the camera and the spatial domain noise reduction value, the time domain noise reduction value or the sharpness value. After the camera determines the zoom speed and the exposure parameters, such as the gain value, the spatial domain noise reduction value and the time domain noise reduction value can be determined according to the mapping table, so that the adjustment value of the spatial domain noise reduction value and the adjustment value of the time domain noise reduction value or the adjustment value of the sharpness value can be further determined.
If the camera determines that the camera is in a low-light environment according to the value of the current exposure parameter, the camera can determine that the image parameter needing to be adjusted is a space domain noise reduction value and a time domain noise reduction value. If the camera determines that the camera is in an ultra-low illumination environment according to the value of the current exposure parameter, the camera can determine that the image parameters needing to be adjusted are a space domain noise reduction value, a time domain noise reduction value and a sharpness value, so that the influence of the illumination condition on the sharpness is considered as much as possible, and a clear image is obtained.
Specifically, when the camera is determined to be in a low-light environment, the camera may calculate an adjustment value of the spatial domain noise reduction value and an adjustment value of the temporal domain noise reduction value according to a value of a current exposure parameter, such as a gain value and a zoom speed of the camera, that is, enhance the spatial domain noise reduction value and reduce the temporal domain noise reduction value.
When the camera is determined to be in an ultra-low illumination environment, the camera can calculate an adjustment value of a spatial domain noise reduction value and an adjustment value of a temporal domain noise reduction value according to a value of a current exposure parameter, such as a gain value and a zoom speed of the camera, and calculate an adjustment value of a small edge sharpness. Since the contour of the obtained image, i.e. the noise of the large edge, is more when the camera determines that the camera is in an ultra-low illumination environment, in this case, the camera can maintain the sharpness of the large edge, and calculate the adjustment value of the sharpness of the small edge, i.e. reduce the sharpness value of the small edge.
And S104, adjusting the image shot by the camera according to the adjustment value of the image parameter.
In the embodiment of the invention, after the camera determines the adjustment value of the image parameter, the image parameter of the camera can be adjusted according to the adjustment value, so that the value of the image parameter of the camera keeps a normal value, and the obtained image is clearer. For example, the camera may perform an operation of reducing the small edge sharpness value when the gain value is within a certain interval according to the determined adjustment value of the spatial domain noise reduction value and the adjustment value of the temporal domain noise reduction value.
The above describes the way of determining the adjustment value of the image parameter by the camera when the shooting parameter is the shooting angle or the focal length multiple. In practice, there may be shooting parameters of a shooting angle and a focal length multiple, that is, the shooting angle of the camera is changed during shooting, and the focal length multiple is also changed, at this time, the moving speed of the camera corresponding to the shooting angle and the zooming speed of the camera corresponding to the focal length multiple can be respectively calculated according to whether the camera is running and cruising. And determining the adjustment value of the image parameter according to the movement speed and the value of the current exposure parameter of the camera, and determining the adjustment value of the image parameter according to the zoom speed and the value of the current exposure parameter of the camera. And selecting an adjusting value for adjusting the image from the adjusting value of the image parameter corresponding to the determined shooting angle and the adjusting value of the image parameter corresponding to the focal length multiple to obtain a clearer image.
If the time period from the time when the camera determines that the shooting parameters are changed to the time when the camera determines the adjustment values of the image parameters is longer, and in the time period, if the shooting parameters of the camera are still changed or the shooting parameters of the camera are still changed after the camera determines the adjustment values of the image parameters, then the influence of the changed shooting parameters on images obtained by subsequent shooting is possibly larger when the camera performs subsequent shooting. Then the subsequently captured image continues to be adjusted with the previously determined adjustment values for the image parameters, and it is clear that the sharpness of the resulting image may still be poor.
Therefore, in the embodiment of the present invention, if the camera determines that the shooting parameters have changed, the camera can record the starting time of the change of the shooting parameters. The camera may record the time of determination of the adjustment value of the image parameter when determining the adjustment value of the image parameter. If the time duration between the determination time and the start time is long, it can be assumed that the camera should re-determine the adjustment value of the image parameter. For example, the difference between the determined time and the starting time is greater than or equal to a third preset threshold, and the adjustment value of the image parameter is re-determined. I.e. re-determining the camera's movement speed or zoom speed and the current exposure parameters of the camera, and thereby determining the adjustment values for the image parameters. If the difference value between the determined time and the starting time is smaller than the third preset threshold, the determined adjustment value of the image parameter is considered to be a more proper adjustment value for adjusting the image, the determined adjustment value of the image parameter can be maintained, and the subsequent image is processed through the determined adjustment value of the image parameter, so that a clearer image is obtained. The third preset threshold may be a preset possible value, and the shooting parameter is changed to a value between the determination of the adjustment value of the image parameter, which has a smaller influence on the subsequent image shooting.
In summary, in the embodiment of the present invention, if it is determined that the camera is in a low-light environment and the value of the shooting parameter of the camera, for example, the shooting angle and/or the focal length multiple, is changed during the shooting process, the adjustment value of the noise reduction value and/or the sharpness value may be determined according to the shooting parameter. The adjustment value of the noise reduction value and/or the sharpness value takes the shooting parameters into consideration, so that the image shot by the camera is adjusted through the adjustment value of the noise reduction value and/or the sharpness value, and the phenomenon of image smear caused by the change of the shooting parameters can be solved.
When the shooting parameters of the camera are changed in the shooting process of the camera, the movement speed or the zooming speed of the camera can be calculated and obtained according to the current shooting parameters, and the adjustment value of the image parameters is determined by combining the current exposure parameters of the camera, so that the determined adjustment value of the image parameters is obtained according to the current illumination environment of the camera, and is more accurate.
After the camera determines the adjustment value of the image parameter, if the time length between the determination time of the adjustment value and the initial time of the change of the shooting parameter is long, the camera re-determines the adjustment value of the image parameter so as to obtain a more accurate adjustment value as much as possible and obtain a clearer image.
The following describes the equipment provided by the embodiment of the invention with the attached drawings of the specification
Referring to fig. 3, based on the same inventive concept, an embodiment of the present invention provides a camera, which may include a memory 301 and a processor 302, wherein the processor 302 is configured to read instructions in the memory 301 to implement the steps of the method for image processing shown in fig. 1: acquiring a value of an exposure parameter shot by a camera, wherein the exposure parameter is used for indicating an illumination environment shot by the camera and comprises one or more of a shutter value, an aperture value and a gain value; if the value of the exposure parameter indicates a low-illumination environment, acquiring the value of a shooting parameter of the camera, wherein the ambient brightness of the low-illumination environment is less than or equal to a first preset threshold; if the shooting parameters change in the shooting process of the camera, determining the adjustment values of the image parameters according to the shooting parameters; and adjusting the image shot by the camera according to the adjustment value.
Optionally, the processor 302 may be one or more, and specifically, the processor 302 may be a central processing unit 302, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits for controlling program execution.
Alternatively, the Memory 301 may include a Read Only Memory 301 (ROM), a Random Access Memory 301 (RAM), and a disk Memory 301. The memory 301 is used for storing data required by the processor 302 during operation, that is, storing instructions executable by the at least one processor 302, and the at least one processor 302 executes the method shown in fig. 1 by executing the instructions stored in the memory 301. The number of the memories 301 is one or more. The memory 301 is also shown in fig. 3, but it should be noted that the memory 301 is not an optional functional module, and is shown by a dotted line in the figure.
Optionally, the shooting parameters include a shooting angle of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and the processor 302 may be specifically configured to:
determining the movement speed of the camera according to the shooting angle;
and determining an adjustment value of the space domain noise reduction value and an adjustment value of the time domain noise reduction value according to the motion speed and the exposure parameter.
Optionally, the shooting parameters include a shooting angle of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and the processor 302 may be specifically configured to:
determining the zooming speed of the camera according to the focal length multiple;
and determining an adjustment value of the space domain noise reduction value and an adjustment value of the time domain noise reduction value according to the zooming speed and the exposure parameter.
Optionally, the processor 302 may be specifically configured to:
determining whether the camera shoots according to a first preset rule, wherein the first preset rule is used for indicating the shooting angle of the camera;
if the camera is determined to shoot according to a first preset rule, coordinate values of any two preset shooting points on a shooting path corresponding to the first preset rule and the acceleration of the camera are respectively obtained, and the motion speed of the camera is determined according to the obtained coordinate values and the acceleration;
and if the camera is determined not to shoot according to the first preset rule, acquiring the current movement speed of the camera.
Optionally, the processor 302 may be specifically configured to:
determining whether the camera shoots according to a second preset rule, wherein the second preset rule is used for indicating the shooting focal length of the camera;
if the camera is determined to shoot according to a second preset rule, coordinate values of any two preset shooting points on a shooting focal section corresponding to the second preset rule and the acceleration of the camera are respectively obtained, and the zooming speed of the camera is determined according to the obtained coordinate values and the acceleration; wherein the focal length corresponds to at least two focal lengths;
and if the camera is determined not to shoot according to the second preset rule, acquiring the current zooming speed of the camera.
Optionally, the processor 302 may be specifically configured to:
obtaining the value of the exposure parameter shot by the camera again;
if the value of the exposure parameter indicates an ultra-low illumination environment, determining an adjustment value of the image parameter according to the shooting parameter, and further comprising:
determining a reduction value of the small edge sharpness value according to the exposure parameter and the shooting parameter;
the environment brightness of the ultra-low illumination environment is smaller than or equal to a second preset threshold, and the second preset threshold is smaller than the first preset threshold.
Optionally, the processor 302 may be specifically configured to:
if the shooting parameters change, recording the initial time of the change of the shooting parameters;
recording the determining moment of the adjusting value of the image parameter;
and if the difference value between the determined moment and the starting moment is greater than or equal to a third preset threshold value, re-determining the adjustment value of the image parameter.
The device may be configured to execute the methods provided in the embodiments shown in fig. 1 to fig. 2, and therefore, for functions and the like that can be realized by each functional module of the device, reference may be made to the description of the method part, which is not described in detail.
Referring to fig. 4, based on the same inventive concept, an embodiment of the present invention provides a camera, which may include a first acquisition unit 401, a second acquisition unit 402, a determination unit 403, and an adjustment unit 404.
The first obtaining unit 401 is configured to obtain a value of an exposure parameter captured by a camera, where the exposure parameter is used to indicate an illumination environment captured by the camera, and the exposure parameter includes one or more of a shutter value, an aperture value, and a gain value. The second obtaining unit 402 is configured to obtain a value of a shooting parameter of the camera if the value of the exposure parameter indicates a low-light environment, where ambient brightness of the low-light environment is less than or equal to a first preset threshold. The determining unit 403 is configured to determine an adjustment value of the image parameter according to the shooting parameter if the shooting parameter changes during the shooting process of the camera. The adjusting unit 404 is configured to adjust the image captured by the camera according to the adjustment value.
Optionally, the shooting parameters include a shooting angle of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and the determining unit 403 may be specifically configured to:
determining the movement speed of the camera according to the shooting angle;
and determining an adjustment value of the space domain noise reduction value and an adjustment value of the time domain noise reduction value according to the motion speed and the exposure parameter.
Optionally, the shooting parameters include a shooting angle of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and the determining unit 403 may be specifically configured to:
determining the zooming speed of the camera according to the focal length multiple;
and determining an adjustment value of the space domain noise reduction value and an adjustment value of the time domain noise reduction value according to the zooming speed and the exposure parameter.
Optionally, the determining unit 403 may specifically be configured to:
determining whether the camera shoots according to a first preset rule, wherein the first preset rule is used for indicating the shooting angle of the camera;
if the camera is determined to shoot according to a first preset rule, coordinate values of any two preset shooting points on a shooting path corresponding to the first preset rule and the acceleration of the camera are respectively obtained, and the motion speed of the camera is determined according to the obtained coordinate values and the acceleration;
and if the camera is determined not to shoot according to the first preset rule, acquiring the current movement speed of the camera.
Optionally, the determining unit 403 may specifically be configured to:
determining whether the camera shoots according to a second preset rule, wherein the second preset rule is used for indicating the shooting focal length of the camera;
if the camera is determined to shoot according to a second preset rule, coordinate values of any two preset shooting points on a shooting focal section corresponding to the second preset rule and the acceleration of the camera are respectively obtained, and the zooming speed of the camera is determined according to the obtained coordinate values and the acceleration; wherein the focal length corresponds to at least two focal lengths;
and if the camera is determined not to shoot according to the second preset rule, acquiring the current zooming speed of the camera.
Alternatively to this, the first and second parts may,
the first obtaining unit 401 may further be configured to: obtaining the value of the exposure parameter shot by the camera again;
the determination unit 403 is further configured to:
determining a reduction value of the small edge sharpness value according to the exposure parameter and the shooting parameter;
the environment brightness of the ultra-low illumination environment is smaller than or equal to a second preset threshold, and the second preset threshold is smaller than the first preset threshold.
Optionally, the determining unit 403 may specifically be configured to:
if the shooting parameters change, recording the initial time of the change of the shooting parameters;
recording the determining moment of the adjusting value of the image parameter;
and if the difference value between the determined moment and the starting moment is greater than or equal to a third preset threshold value, re-determining the adjustment value of the image parameter.
The physical devices corresponding to the first obtaining unit 401, the second obtaining unit 402, the determining unit 403, and the adjusting unit 404 may be the processor 302. The camera may be used to perform the method provided by the embodiment shown in fig. 1-2. Therefore, regarding the functions that can be realized by each functional module in the device, reference may be made to the corresponding descriptions in the embodiments shown in fig. 1-2, which are not repeated.
Embodiments of the present invention also provide a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the method as described in fig. 1-2.
In particular implementations, the computer-readable storage medium includes: various storage media capable of storing program codes, such as a Universal Serial Bus flash drive (USB), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Universal Serial bus flash disk (usb flash disk), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. A method of image processing, comprising:
acquiring a value of an exposure parameter shot by a camera, wherein the exposure parameter is used for indicating an illumination environment shot by the camera and comprises one or more of a shutter value, an aperture value and a gain value;
if the value of the exposure parameter indicates a low-illumination environment, acquiring the value of a shooting parameter of the camera, wherein the ambient brightness of the low-illumination environment is less than or equal to a first preset threshold;
if the shooting parameters change in the shooting process of the camera, determining an adjustment value of the image parameters according to the shooting parameters;
adjusting the image shot by the camera according to the adjustment value;
wherein, the shooting parameter includes the shooting angle of the camera, the image parameter includes a noise reduction value, the noise reduction value includes a space domain noise reduction value and a time domain noise reduction value, if the shooting parameter changes in the shooting process of the camera, the adjusting value of the image parameter is determined according to the shooting parameter, which includes:
determining the movement speed of the camera according to the shooting angle;
determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the movement speed and the exposure parameter; and/or the presence of a gas in the gas,
the shooting parameters comprise focal length multiples of the camera, the image parameters comprise noise reduction values, the noise reduction values comprise space domain noise reduction values and time domain noise reduction values, and if the shooting parameters change in the shooting process of the camera, the adjustment values of the image parameters are determined according to the shooting parameters, and the method comprises the following steps:
determining the zooming speed of the camera according to the focal length multiple;
and determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the zooming speed and the exposure parameter.
2. The method of claim 1, wherein determining the speed of movement of the camera based on the camera angle comprises:
determining whether the camera shoots according to a first preset rule, wherein the first preset rule is used for indicating the shooting angle of the camera;
if the camera is determined to shoot according to the first preset rule, coordinate values of any two preset shooting points on a shooting path corresponding to the first preset rule and the acceleration of the camera are respectively obtained, and the motion speed of the camera is determined according to the obtained coordinate values and the acceleration;
and if the camera is determined not to shoot according to the first preset rule, acquiring the current movement speed of the camera.
3. The method of claim 1, wherein determining the zoom speed of the camera from the focal length multiple comprises:
determining whether the camera shoots according to a second preset rule, wherein the second preset rule is used for indicating the shooting focal length of the camera;
if the camera is determined to shoot according to the second preset rule, coordinate values of any two preset shooting points on a shooting focal section corresponding to the second preset rule and the acceleration of the camera are respectively obtained, and the zooming speed of the camera is determined according to the obtained coordinate values and the acceleration; wherein the focal length corresponds to at least two focal lengths;
and if the camera is determined not to shoot according to the second preset rule, acquiring the current zooming speed of the camera.
4. The method of claim 1, further comprising, before determining an adjustment value for an image parameter based on the shooting parameters if the shooting parameters change during the shooting by the camera:
obtaining the value of the exposure parameter shot by the camera again;
if the value of the exposure parameter indicates an ultra-low illumination environment, determining an adjustment value of an image parameter according to the shooting parameter, and further comprising:
determining a reduction value of a small edge sharpness value according to the exposure parameter and the shooting parameter;
the environment brightness of the ultra-low illumination environment is smaller than or equal to a second preset threshold, and the second preset threshold is smaller than the first preset threshold.
5. The method of claim 1, wherein the method further comprises:
if the shooting parameters change, recording the initial time of the change of the shooting parameters;
recording the determined time of the adjustment value of the image parameter;
and if the difference value between the determined moment and the starting moment is greater than or equal to a third preset threshold value, re-determining the adjustment value of the image parameter.
6. A camera, comprising:
a memory to store instructions;
a processor for reading instructions in the memory for:
acquiring a value of an exposure parameter shot by a camera, wherein the exposure parameter is used for indicating an illumination environment shot by the camera and comprises one or more of a shutter value, an aperture value and a gain value;
if the value of the exposure parameter indicates a low-illumination environment, acquiring the value of a shooting parameter of the camera, wherein the ambient brightness of the low-illumination environment is less than or equal to a first preset threshold;
if the shooting parameters change in the shooting process of the camera, determining an adjustment value of the image parameters according to the shooting parameters;
adjusting the image shot by the camera according to the adjustment value;
the shooting parameters include a shooting angle of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and the processor is specifically configured to:
determining the movement speed of the camera according to the shooting angle;
determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the movement speed and the exposure parameter; and/or the presence of a gas in the gas,
the shooting parameters include focal length multiples of the camera, the image parameters include noise reduction values, the noise reduction values include space domain noise reduction values and time domain noise reduction values, and the processor is specifically configured to:
determining the zooming speed of the camera according to the focal length multiple;
and determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the zooming speed and the exposure parameter.
7. The camera of claim 6, wherein the processor is specifically configured to:
determining whether the camera shoots according to a first preset rule, wherein the first preset rule is used for indicating the shooting angle of the camera;
if the camera is determined to shoot according to the first preset rule, coordinate values of any two preset shooting points on a shooting path corresponding to the first preset rule and the acceleration of the camera are respectively obtained, and the motion speed of the camera is determined according to the obtained coordinate values and the acceleration;
and if the camera is determined not to shoot according to the first preset rule, acquiring the current movement speed of the camera.
8. The camera of claim 6, wherein the processor is specifically configured to:
determining whether the camera shoots according to a second preset rule, wherein the second preset rule is used for indicating the shooting focal length of the camera;
if the camera is determined to shoot according to the second preset rule, coordinate values of any two preset shooting points on a shooting focal section corresponding to the second preset rule and the acceleration of the camera are respectively obtained, and the zooming speed of the camera is determined according to the obtained coordinate values and the acceleration; wherein the focal length corresponds to at least two focal lengths;
and if the camera is determined not to shoot according to the second preset rule, acquiring the current zooming speed of the camera.
9. The camera of claim 6, wherein the processor is further configured to:
obtaining the value of the exposure parameter shot by the camera again;
if the value of the exposure parameter indicates an ultra-low illumination environment, determining an adjustment value of an image parameter according to the shooting parameter, and further comprising:
determining a reduction value of a small edge sharpness value according to the exposure parameter and the shooting parameter;
the environment brightness of the ultra-low illumination environment is smaller than or equal to a second preset threshold, and the second preset threshold is smaller than the first preset threshold.
10. The camera of claim 6, wherein the processor is further configured to:
if the shooting parameters change, recording the initial time of the change of the shooting parameters;
recording the determined time of the adjustment value of the image parameter;
and if the difference value between the determined moment and the starting moment is greater than or equal to a third preset threshold value, re-determining the adjustment value of the image parameter.
11. A camera, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring the value of an exposure parameter shot by a camera, and the exposure parameter is used for indicating the illumination environment shot by the camera and comprises one or more of a shutter value, an aperture value and a gain value;
a second obtaining unit, configured to obtain a value of a shooting parameter of the camera if the value of the exposure parameter indicates a low-light environment, where ambient brightness of the low-light environment is less than or equal to a first preset threshold;
the determining unit is used for determining an adjusting value of an image parameter according to the shooting parameter if the shooting parameter changes in the shooting process of the camera;
the adjusting unit is used for adjusting the image shot by the camera according to the adjusting value;
the shooting parameters include a shooting angle of the camera, the image parameters include noise reduction values, the noise reduction values include spatial noise reduction values and temporal noise reduction values, and the determining unit is specifically configured to:
determining the movement speed of the camera according to the shooting angle;
determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the movement speed and the exposure parameter; and/or the presence of a gas in the gas,
the shooting parameters comprise focal length multiples of the camera, the image parameters comprise noise reduction values, the noise reduction values comprise space domain noise reduction values and time domain noise reduction values, and the determining unit is specifically used for:
determining the zooming speed of the camera according to the focal length multiple;
and determining an adjustment value of a space domain noise reduction value and an adjustment value of a time domain noise reduction value according to the zooming speed and the exposure parameter.
12. A computer storage medium on which a computer program is stored, which computer program, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201811100203.2A 2018-09-20 2018-09-20 Image processing method and camera Active CN109151257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811100203.2A CN109151257B (en) 2018-09-20 2018-09-20 Image processing method and camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811100203.2A CN109151257B (en) 2018-09-20 2018-09-20 Image processing method and camera

Publications (2)

Publication Number Publication Date
CN109151257A CN109151257A (en) 2019-01-04
CN109151257B true CN109151257B (en) 2020-12-08

Family

ID=64815328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811100203.2A Active CN109151257B (en) 2018-09-20 2018-09-20 Image processing method and camera

Country Status (1)

Country Link
CN (1) CN109151257B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290289B (en) * 2019-06-13 2021-07-09 Oppo广东移动通信有限公司 Image noise reduction method and device, electronic equipment and storage medium
CN110944114B (en) * 2019-11-28 2021-06-08 维沃移动通信有限公司 Photographing method and electronic equipment
CN111050026B (en) * 2019-12-13 2022-08-19 努比亚技术有限公司 Image noise reduction control method, terminal and computer readable storage medium
CN112261287B (en) * 2020-10-10 2023-03-21 Oppo(重庆)智能科技有限公司 Zoom control method, device, electronic equipment and computer-readable storage medium
CN113542591A (en) * 2021-06-02 2021-10-22 惠州Tcl移动通信有限公司 Time-lapse shooting processing method and device, mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012086188A1 (en) * 2010-12-24 2012-06-28 パナソニック株式会社 Camera device, image processing system, image processing method and image processing program
CN102724402A (en) * 2012-06-08 2012-10-10 中兴通讯股份有限公司 Shooting device as well as processing method and processing device of shooting image
CN105306788A (en) * 2015-10-27 2016-02-03 广东欧珀移动通信有限公司 Denoising method and device for photographed image
CN107820024A (en) * 2017-12-05 2018-03-20 北京小米移动软件有限公司 Image capturing method, device and storage medium
CN108377335A (en) * 2018-04-20 2018-08-07 浙江大华技术股份有限公司 A kind of video camera focus method and video camera

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012086188A1 (en) * 2010-12-24 2012-06-28 パナソニック株式会社 Camera device, image processing system, image processing method and image processing program
CN102724402A (en) * 2012-06-08 2012-10-10 中兴通讯股份有限公司 Shooting device as well as processing method and processing device of shooting image
CN105306788A (en) * 2015-10-27 2016-02-03 广东欧珀移动通信有限公司 Denoising method and device for photographed image
CN107820024A (en) * 2017-12-05 2018-03-20 北京小米移动软件有限公司 Image capturing method, device and storage medium
CN108377335A (en) * 2018-04-20 2018-08-07 浙江大华技术股份有限公司 A kind of video camera focus method and video camera

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
低照度图像降噪技术研究;夏咏梅;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20100115;I138-338 *

Also Published As

Publication number Publication date
CN109151257A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109151257B (en) Image processing method and camera
EP3566432B1 (en) Method and apparatus for selecting capture configuration based on scene analysis
CN108377335B (en) Camera focusing method and camera
CN110248105B (en) Image processing method, camera and computer storage medium
US10516877B2 (en) Light field collection control methods and apparatuses, light field collection devices
TWI530911B (en) Dynamic exposure adjusting method and electronic apparatus using the same
US10033936B2 (en) Control apparatus, control method, and imaging apparatus
KR102316061B1 (en) Image processing apparatus, method, and computer program
CN109922275B (en) Self-adaptive adjustment method and device of exposure parameters and shooting equipment
CN104917973B (en) Dynamic exposure method of adjustment and its electronic device
US20130113962A1 (en) Image processing method for producing background blurred image and image capturing device thereof
US10609265B2 (en) Methods and apparatus for synchronizing camera flash and sensor blanking
CN111917991B (en) Image quality control method, device, equipment and storage medium
CN111756996A (en) Video processing method, video processing apparatus, electronic device, and computer-readable storage medium
US11144762B2 (en) Image processing apparatus, image processing method, and medium
CN110708463A (en) Focusing method, focusing device, storage medium and electronic equipment
CN105657262B (en) A kind of image processing method and device
JP2020087005A (en) Image processor, image generation method and program
CN108737721B (en) Camera limiting adjustment method and device
CN113645397A (en) Tracking method, device and system for moving target object
CN113992863B (en) Automatic exposure method, device, electronic equipment and computer readable storage medium
CN110072050B (en) Self-adaptive adjustment method and device of exposure parameters and shooting equipment
CN112415834B (en) Laser lamp control method and device
WO2020187197A1 (en) Zooming method for imaging device, and image processing method and imaging device
WO2015158953A1 (en) Transformations for image stabilization and refocus

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