WO2013007164A1 - 一种拍摄防抖方法及装置 - Google Patents

一种拍摄防抖方法及装置 Download PDF

Info

Publication number
WO2013007164A1
WO2013007164A1 PCT/CN2012/078262 CN2012078262W WO2013007164A1 WO 2013007164 A1 WO2013007164 A1 WO 2013007164A1 CN 2012078262 W CN2012078262 W CN 2012078262W WO 2013007164 A1 WO2013007164 A1 WO 2013007164A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
image
position change
change parameter
image captured
Prior art date
Application number
PCT/CN2012/078262
Other languages
English (en)
French (fr)
Inventor
骆磊
Original Assignee
中国移动通信集团公司
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 中国移动通信集团公司 filed Critical 中国移动通信集团公司
Publication of WO2013007164A1 publication Critical patent/WO2013007164A1/zh

Links

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B5/00Adjustment of optical system relative to image or object surface other than for focusing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/683Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory

Definitions

  • the present invention claims the priority of the Chinese patent application filed on July 14, 2011 by the Chinese Patent Office, the application number is 201110196560.5, and the invention is entitled "A method and device for preventing image stabilization". The entire contents are incorporated herein by reference.
  • TECHNICAL FIELD The present invention relates to the field of image capture processing technologies, and in particular, to a method and device for capturing an image stabilization.
  • Background Art In the conventional photographing technique, when photographing is performed using a photographing device, light is sensed by a photosensitive device in a photographing time period corresponding to one photographing, and all images obtained by photographing in a photographing period are superimposed as one image.
  • the prior art proposes to use an electronic anti-shake technology to anti-shake the image collected during shooting, so that when the user uses the shooting device to shake during the shooting process, the image can still be captured clearly.
  • the existing electronic anti-shake technology solutions are as follows:
  • an image may be specified in the plurality of images.
  • the position change parameter of each of the plurality of images relative to the specified image is determined, and the average value of each position change parameter obtained is determined, and then the remaining The image is corrected to obtain a corrected image, and finally the specified image is superimposed with each corrected image to form a relatively clear image.
  • electronic anti-shake processing is performed according to the same principle, except that it is a plurality of images required to be combined into one frame image at a frame rate.
  • the embodiment of the invention provides a method and a device for shooting anti-shake, which are used to improve the anti-shake effect of anti-shake processing, thereby improving the clarity of the captured image.
  • An embodiment of the present invention provides a method for capturing an anti-shake, comprising: acquiring an image captured by a second camera whose lens direction is opposite to a lens direction of the first camera at a shooting time of the image captured by the first camera; according to the acquired image, Determining a first position change parameter required for performing the electronic image stabilization process; and performing an electronic image stabilization process on the image captured by the first camera at the shooting time based on the determined first position change parameter.
  • the embodiment of the present invention further provides a shooting anti-shake device, comprising: an acquiring unit, configured to acquire an image of a second camera whose lens direction is opposite to a lens direction of the first camera at a shooting moment of the first camera capturing image a parameter determining unit, configured to determine, according to the acquired image, a first position change parameter required for performing an electronic image stabilization process; and a processing unit, configured to change the parameter according to the determined first position, to the first camera
  • a shooting anti-shake device comprising: an acquiring unit, configured to acquire an image of a second camera whose lens direction is opposite to a lens direction of the first camera at a shooting moment of the first camera capturing image a parameter determining unit, configured to determine, according to the acquired image, a first position change parameter required for performing an electronic image stabilization process; and a processing unit, configured to change the parameter according to the determined first position, to the first camera
  • the images collected at the shooting time are subjected to electronic image stabilization processing.
  • the camera used in the current shooting is the first camera, but when the image captured by the first camera at the shooting time is subjected to the anti-shake processing, the lens direction is based on the lens direction and the lens direction of the first camera.
  • the opposite second camera performs the first position change parameter determined by the image captured at the shooting time, so when the shooting environment where the first camera is located is worse than the shooting environment where the second camera is located, Since the first position change parameter determined according to the captured image of the second camera is more accurate than the position change parameter determined according to the captured image of the first camera, the first camera is photographed based on the first position change parameter.
  • FIG. 1 is a flowchart of a method for photographing anti-shake according to an embodiment of the present invention
  • Embodiment 2 is a flowchart of a method for photographing anti-shake provided in Embodiment 1 of the present invention
  • FIG. 3 is a schematic diagram of a translational displacement angle generated by a panning of a photographing device according to Embodiment 1 of the present invention
  • FIG. 4 is a schematic view showing a rotation angle generated by a rotation of a photographing apparatus according to Embodiment 1 of the present invention.
  • FIG. 5 is a flowchart of a method for photographing anti-shake provided in Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural diagram of a camera anti-shake device according to Embodiment 3 of the present invention.
  • DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT In order to provide an anti-shake effect of an anti-shake process, thereby improving the degree of clarity of a captured image, an embodiment of the present invention provides a method and an apparatus for preventing image stabilization, and the present invention is hereinafter described with reference to the accompanying drawings. Preferred implementation The preferred embodiments described herein are for illustrative purposes only and are not intended to limit the invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
  • An embodiment of the present invention provides a method for shooting an anti-shake, as shown in FIG. 1 , including:
  • Step S101 Acquire an image captured by the second camera whose lens direction is opposite to the lens direction of the first camera at the shooting time of the first camera captured image.
  • Step S102 Determine, according to the acquired image, a first position change parameter required when performing the electronic anti-shake processing.
  • Step S103 Perform an electronic image stabilization process on the image captured by the first camera at the shooting time based on the determined first position change parameter.
  • the first camera and the second camera are two cameras belonging to the same photographing device, and the lenses of the two cameras are opposite in direction, that is, 180 degrees apart, that is, the so-called forward camera and
  • the camera currently responsible for shooting in the two cameras is referred to as a first camera, and the other camera is referred to as a second camera.
  • the shooting environment of the second camera when the shooting environment of the second camera is better than the shooting environment where the first camera is located, for example, the second camera is in a smooth environment, and the first camera is in a backlight environment, and the second camera
  • the sharpness of the captured image will be greater than the sharpness of the image captured by the first camera, so the position change parameters required for the electronic anti-shake processing determined according to the image captured by the second camera (for ease of differentiation,
  • the position change parameter is referred to as a first position change parameter), and a position change parameter required for performing an electronic image stabilization process determined according to an image captured by the first camera (for convenience of distinction, the position change parameter is referred to as a Compared with the two position change parameters, it will be more accurate.
  • the anti-shake effect obtained by electronically anti-shake processing the image captured by the first camera at the shooting time based on the first position change parameter is It will be better than electronically anti-shake the image collected by the first camera at the shooting time based on the second position change parameter.
  • the obtained stabilization effect i.e. through a clear degree of stabilization of the image capture processing higher.
  • Step S201 After the first camera used for the current shooting is turned on, the first camera will collect images in real time. , and cache.
  • the photographing device to which the first camera belongs obtains the image of the first camera, and may be obtained by periodically acquiring the latest image collected by the current camera. The acquisition period may be determined according to the properties of the camera, the experience of use, and actual needs.
  • Step S202 Determine whether the sharpness of the image captured by the first camera is less than a set definition threshold. If yes, go to step S203, otherwise, go to step S207.
  • the sharpness of the image captured by the camera will change, for example, when the light intensity is weak, or the first camera is in backlight, the first camera will be collected.
  • the sharpness of the image is low; if the light intensity is strong, or the first camera is in a smooth environment, then ⁇
  • the set image has a higher definition.
  • Step S203 Turn on the second camera, and the second camera collects images in real time and caches them.
  • the photographing device acquires an image of the second camera, specifically, periodically acquiring the latest image of the currently collected image, and the acquisition period can be determined according to the properties of the camera, the experience of use, and actual needs.
  • Step S204 It is determined whether the sharpness of the image captured by the second camera is less than the set sharpness threshold. If no, the process proceeds to step S205, otherwise, the process proceeds to step S207.
  • the sharpness of the image captured by the second camera may also be lower, that is, smaller than the Set the sharpness threshold, and if the image of the first camera is low in clarity due to the backlight in the first camera, since the lens direction of the second camera and the first camera are 180 degrees apart, The two cameras must be in a smooth environment, and the sharpness of the image captured by the second camera may be higher, that is, greater than the set sharpness threshold.
  • Step S205 When the first camera performs image capturing, determine, according to the image captured by the second camera at the shooting time of the first camera captured image, the first position change parameter required for performing the electronic image stabilization processing, and determining in the step
  • the image according to the first position change parameter is an image collected during the second camera shooting, and the time at which the image is captured is the same as the time at which the image is captured during the first camera shooting.
  • the specific determination method of the position change parameter can use the solution in the existing electronic image stabilization technology, and will not be described in detail here, but in order to facilitate the understanding of the solution, the principle of the electronic image stabilization technology is described as follows:
  • the actual depth of field of the image can be regarded as a cube, as shown in Fig. 3, because the translation makes the depth of the two images at an angle ", this angle is called the translational displacement angle.
  • the shooting device rotates during shooting as shown in Figure 4, the corresponding angle will also be generated, which is called the angle of rotation.
  • the translational displacement angle and the rotation angle are both position change parameters, and the translational displacement angle may specifically include a translational displacement angle along the X-axis and a translational displacement angle along the Y-axis, due to the imaging device along the Z-axis.
  • the translation has less influence on the sharpness of the image, so the translational displacement angle along the Z-axis can be disregarded.
  • the rotation angle may specifically include a rotation angle with the X-axis as the axis, a rotation angle with the Y-axis as the axis, and a rotation axis as the axis. The angle of rotation.
  • the electronic image stabilization is based on the first sub-image collected during the shooting time of one shot, and the image matching algorithm compares the remaining sub-images collected in the shooting duration with the first sub-image to determine The translational displacement angle and the rotation angle between the remaining sub-images and the first image are obtained, and then the average value of each translational displacement angle and the average value of each rotation angle are obtained, and then the average value of the translational displacement angle and the average value of the rotation angle are obtained.
  • Using the image correction algorithm to calculate the translational displacement angle difference between the translational displacement angle and the translational displacement angle average of the remaining sub-images relative to the first image, and using the translational displacement angle difference as the translational displacement angle adjustment value ⁇ « , the rotation angle difference between the rotation angle and the rotation angle average value of the remaining sub-images relative to the first image is also calculated, and the rotation angle difference value is used as the rotation angle adjustment value ⁇ , and then used Each translational displacement angle adjustment value and each rotation angle adjustment value are respectively corrected for the remaining sub-images
  • the first position change parameter determined in the step may specifically include: corresponding to the second camera, corresponding to the second camera, the i-th image in each of the sub-images collected in one shooting time
  • the Y-axis as an axis of rotation angle adjustment value ⁇ ⁇ ⁇ 2 'and the value [zeta] rotational angle adjustment of the shaft axis ⁇ ⁇ ⁇ 2', where i is an integer value in the 1-N, N once The number of images captured during the duration of the shot.
  • Step S206 Perform an electronic anti-shake processing on the image collected by the first camera at the shooting time based on the determined first position change parameter, which may specifically include:
  • the lens directions of the first camera and the second camera are 180 degrees apart, and the two cameras are relatively stationary at any time, there is no relative displacement and relative angle change between the two, so the camera shakes.
  • the absolute displacement and rotation of the object and the photosensitive device in the first camera are equal to the absolute displacement and rotation of the object and the photosensitive device in the second camera, so that the images of the synchronized images of the two cameras correspond to the images of the respective images.
  • the second position change parameter may specifically include: corresponding to the first camera, corresponding to the ith image in each of the sub-images collected in one shooting time
  • the translational displacement angle adjustment value ⁇ along the X axis, the translational displacement angle adjustment value along the ⁇ axis, the rotation angle adjustment value with the X axis as the axis, the rotation angle adjustment value with the ⁇ axis as the axis, and the ⁇ axis The rotation angle adjustment value of the axis, where i is an integer within 1-N, and N is the number of images collected during one shooting time;
  • the image captured by the first camera at the shooting time is subjected to electronic anti-shake processing according to the second position change parameter, and the specific anti-shake processing scheme can use the prior art, and will not be described in detail herein.
  • the determining the second position change parameter based on the first position change parameter is based on whether the focal lengths of the first camera and the second camera are the same, and may specifically include the following two methods:
  • the first mode when the focal length of the first camera is the same as the focal length of the second camera, the determined first position change parameter is used as the second position change parameter required for the first camera to perform electronic anti-shake processing.
  • the second way when the focal length of the first camera is different from the focal length of the second camera, if the determined first position change parameter is directly used as the second position change parameter required for the first camera to perform electronic anti-shake processing, The difference in focal length between the two cameras may make the final anti-shake processing effect less than ideal. Therefore, in the present method, first, based on the determined first position change parameter, according to the equivalent focal length of the second camera relative to the specified camera and the first The ratio of the camera to the equivalent focal length of the specified camera determines the second position change parameter required for the first camera to perform electronic anti-shake processing.
  • a r /A ru // 2 ; wherein, the equivalent focal length of the first camera relative to the specified camera is the equivalent focal length of the second camera relative to the specified camera;
  • the rotation angle adjustment value in the position change parameter since the rotation angle value and the rotation direction of the three axes are completely the same, the rotation angle adjustment value in the first position change parameter can be directly used as the rotation angle in the second position change parameter. Adjust the value as follows:
  • Step S207 Determine, according to the image captured by the first camera at the shooting time, a second position change parameter required for performing the electronic image stabilization process, and determine an image according to the second position change parameter in the step, which is in the first camera.
  • the images collected during the shooting process are the images collected during the shooting process.
  • Step S208 Perform an electronic anti-shake processing on the image collected by the first camera at the shooting time according to the second position change parameter.
  • the specific anti-shake processing scheme may use the prior art, and will not be described in detail herein.
  • step S207 and step S208 in the method flow shown in FIG. 2 the second position change parameter required for performing the electronic anti-shake processing is determined according to the image collected by the first camera at the shooting time, and only according to the second The position change parameter performs electronic anti-shake processing on the image captured by the first camera at the shooting time.
  • the second position change parameter and the determination determined in step S205 are performed.
  • the first position change parameter performs electronic anti-shake processing on the image collected by the first camera at the shooting time, as follows:
  • the step S208 may further be: determining an average position change parameter of the second position change parameter and the first position change parameter, and performing an electronic anti-shake process on the image captured by the first camera at the shooting time according to the average position change parameter.
  • the shooting anti-shake method provided by the above-mentioned first embodiment of the present invention, when the resolution of the image captured by the first camera responsible for shooting is low, for example, less than the set definition threshold, and the lens direction and the first camera
  • the sharpness of the image captured by the second camera with the opposite lens direction is higher, for example, greater than the set sharpness threshold, that is, the sharpness of the image captured by the second camera is greater than the sharpness of the image captured by the first camera.
  • the first position change parameter required for performing the electronic image stabilization process determined according to the image captured by the second camera, and the second position required for the electronic image stabilization process determined according to the image captured by the first camera Compared with the change parameter, it will be more accurate.
  • the anti-shake effect obtained by performing electronic anti-shake processing on the image captured by the first camera based on the first position change parameter will be better than the first position change parameter based on the second position change parameter.
  • the second position change parameter required for performing the electronic anti-shake processing according to the image captured by the first camera can satisfy the electronic defense based on the second position change parameter. Shake processing, and obtain the requirement of better anti-shake effect, so in order to save the use of the second camera and the use of the corresponding processing resources, the image captured by the first camera at the shooting time can be performed only according to the second position change parameter.
  • Electronic anti-shake processing
  • FIG. 5 is a flowchart of a method for photographing anti-shake provided in Embodiment 2 of the present invention, which specifically includes the following processing steps: Step S501: After the first camera used for the current shooting is turned on, the first camera will collect images in real time. , and cache.
  • the photographing device to which the first camera belongs obtains the image of the first camera, and may be obtained by periodically acquiring the latest image collected by the current camera. The acquisition period may be determined according to the properties of the camera, the experience of use, and actual needs.
  • Step S502 When the first camera used for the current shooting is turned on, the second camera is simultaneously turned on, and the second camera collects the image in real time and caches.
  • the photographing device obtains the image of the second camera, and may periodically obtain the latest image of the current captured image.
  • the acquisition period may be determined according to the properties of the camera, the experience of use, and actual needs, for example, in step S501.
  • the period of the image obtained by the first camera is the same.
  • Step S503 determining whether the sharpness of the image captured by the second camera is greater than the sharpness of the image collected by the first camera, and if yes, proceeding to step S504, otherwise, proceeding to step S506.
  • the sharpness of the image captured by the camera will change, for example, when the light intensity is weak, or the camera is in a backlight environment, the image captured by the camera will be clear.
  • the degree is low; if the light intensity is strong, or the camera is in a smooth environment, the sharpness of the image is higher.
  • Step S504 When the first camera performs image capturing, determine, according to the image captured by the second camera at the shooting time of the first camera captured image, the first position change parameter required for performing the electronic image stabilization processing, and determining in the step
  • the image according to the first position change parameter is an image collected during the first camera shooting, and the time at which the image is captured is the same as the time at which the image is captured during the first camera shooting.
  • step S205 For the specific determination method and the specific characterization value of the position change parameter, refer to the above step S205, which will not be described in detail herein.
  • Step S505 Perform an electronic anti-shake processing on the image captured by the first camera at the shooting time based on the determined first position change parameter.
  • step S206 For details, refer to step S206 above, and detailed description is not provided herein.
  • Step S506 Determine, according to the image captured by the first camera at the shooting time, a second position change parameter required for performing the electronic image stabilization process, and determine an image according to the second position change parameter in the step, which is in the first camera. The images collected during the shooting process.
  • Step S507 Perform electronic anti-shake on the image collected by the first camera at the shooting time according to the second position change parameter.
  • the specific anti-shake processing scheme can be applied to the prior art and will not be described in detail herein.
  • the image stabilization method provided by the above-mentioned Embodiment 2 of the present invention compares the sharpness of the image captured by the first camera responsible for the shooting and the sharpness of the image captured by the second camera, because the image is determined according to the sharpness.
  • the position change parameter required for the electronic anti-shake processing is more accurate than the position change parameter required for performing the electronic anti-shake processing based on the image with small definition, so the selection is based on the sharpness.
  • the image determines a position change parameter required for the electronic anti-shake processing, and accordingly, based on the position change parameter, the image stabilization of the image captured by the first camera at the shooting time is performed, and a more anti-shake effect is obtained, that is, The images captured by the anti-shake process are more clearly visible.
  • the second position change parameter may be determined according to the image captured by the first camera at the shooting time, and the image captured by the first camera at the shooting time is electronically prevented based on the determined second position change parameter.
  • Shake processing obtaining a captured image, and determining a first position change parameter according to the image captured by the second camera at the shooting time, and performing an electronic image on the image captured by the first camera at the shooting time based on the determined first position change parameter
  • the anti-shake processing also obtains a captured image, so that when the shooting environment in which the first camera is located is inferior to the shooting environment in which the second camera is located, a clear captured image can also be obtained, and the images of the two cameras are not required to be collected in advance.
  • the sharpness is compared; further, the degree of clarity of the two captured images can be compared, and a clearer captured image is selected as the final captured image.
  • the image capturing anti-shake method according to the above embodiment of the present invention correspondingly, the third embodiment of the present invention further provides a shooting anti-shake device, which can be installed with a lens direction difference of 180 degrees.
  • the structure diagram is as shown in FIG. 6, which specifically includes:
  • the acquiring unit 601 is configured to acquire an image that is collected by the second camera whose lens direction is opposite to the lens direction of the first camera at the shooting time of the image captured by the first camera;
  • the parameter determining unit 602 is configured to determine, according to the acquired image, a first position change parameter required when performing the electronic image stabilization processing;
  • the processing unit 603 is configured to perform an electronic anti-shake processing on the image that is collected by the first camera at the shooting time based on the determined first position change parameter.
  • the acquiring unit 601 is further configured to acquire an image of the first camera set before acquiring an image captured by the second camera at the shooting time;
  • the method further includes: a definition determining unit 604, configured to determine, before the acquiring unit 601 acquires an image captured by the second camera at the shooting time, that the image of the first camera is less sharp than the set definition Threshold; Determining, by the processing unit 603, the image clarity of the image captured by the second camera before the electronic camera is subjected to electronic image stabilization processing based on the determined first position change parameter Not less than the set sharpness threshold.
  • a definition determining unit 604 configured to determine, before the acquiring unit 601 acquires an image captured by the second camera at the shooting time, that the image of the first camera is less sharp than the set definition Threshold
  • the definition determining unit 604 is further configured to: determine that the resolution of the image captured by the first camera is not less than a set definition threshold, or determine the clarity of the image collected by the second camera. Degree is less than the set sharpness threshold;
  • the parameter determining unit 602 is further configured to: when the definition determining unit 604 determines that the resolution of the image captured by the first camera is not less than a set definition threshold, or determine an image of the second camera When the resolution is less than the set sharpness threshold, determining, according to the image captured by the first camera at the shooting time, a second position change parameter required for performing the electronic image stabilization processing;
  • the processing unit 603 is further configured to perform an electronic anti-shake processing on the image collected by the first camera at the shooting time according to the second position change parameter.
  • the definition determining unit 604 is further configured to determine that the resolution of the image captured by the second camera is less than a set definition threshold
  • the parameter determining unit 602 is further configured to: before the processing unit 603 performs the electronic image stabilization processing on the image captured by the first camera based on the determined first position change parameter, according to the first position change parameter Determining, by the first camera, the image acquired at the shooting time, a second position change parameter required when performing the electronic anti-shake processing;
  • the processing unit 603 is specifically configured to determine an average position change parameter of the first position change parameter and the second position change parameter; and, according to the average position change parameter, the first camera at the shooting time The image of the collection is electronically stabilized.
  • the method further includes: a definition determining unit 604, configured to determine, after the parameter determining unit 602 determines, according to the acquired image, the first position change parameter required for performing the electronic anti-shake processing, determining the second camera The sharpness of the captured image is greater than the sharpness of the image captured by the first camera.
  • a definition determining unit 604 configured to determine, after the parameter determining unit 602 determines, according to the acquired image, the first position change parameter required for performing the electronic anti-shake processing, determining the second camera The sharpness of the captured image is greater than the sharpness of the image captured by the first camera.
  • the processing unit 603 is specifically configured to: when the focal length of the first camera is the same as the focal length of the second camera, according to the determined first position change parameter, the first camera is The image captured at the shooting time is subjected to electronic image stabilization processing; or
  • the focal length of the first camera is different from the focal length of the second camera, based on the determined first position change parameter, according to the equivalent focal length of the second camera relative to the specified camera, the first camera is opposite to the first camera. Determining a ratio of an equivalent focal length of the camera, determining a second position change parameter required when the first camera performs an electronic anti-shake process, and according to the second position change parameter, the first camera is in the The image captured at the time of shooting is subjected to electronic image stabilization processing.
  • the solution provided by the embodiment of the present invention includes: acquiring a lens direction and a lens direction of the first camera The image captured by the opposite camera at the shooting time of the first camera capture image; and determining, according to the acquired image, a first position change parameter required for performing the electronic image stabilization process; and determining the first position change parameter based on the determined And performing an electronic anti-shake processing on the image collected by the first camera at the shooting time.
  • a better anti-shake effect can be obtained, that is, the clearness of the captured image is improved. degree.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the present invention can be embodied in the form of a computer program product embodied on one or more computer-usable storage interfaces (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
  • computer-usable storage interfaces including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

一种拍摄防抖方法及装置,包括:获取镜头方向与第一摄像头的镜头方向相反的第二摄像头在第一摄像头拍摄图像的拍摄时刻采集的图像;并根据获取的图像,确定进行电子防抖处理时所需要的第一位置变化参量;以及基于确定的第一位置变化参量,对第一摄像头在该拍摄时刻采集的图像进行电子防抖处理。采用本发明实施例提供的方案,在第一摄像头所处的拍摄环境比第二摄像头所处的拍摄环境差的环境情况下,能够得到更佳的防抖效果,即提高了拍摄图像的清楚程度。

Description

一种拍摄防抖方法及装置 本申请要求在 2011年 7月 14日提交中国专利局、申请号为 201110196560.5、发明名称为"一 种拍摄防抖方法及装置"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及图像摄取处理技术领域, 尤其涉及一种拍摄防抖方法及装置。 背景技术 现有的拍摄技术中, 当使用拍摄设备进行拍摄时, 将在一次拍摄对应的拍摄时长内由 感光器件进行感光, 并将在拍摄时长内感光得到的所有图像叠加为一幅图像。 但是, 由于 用户在拍摄的过程中可能使得拍摄设备发生抖动, 导致一次拍摄时长内不同时刻感光得到 图像之间产生了微小的位置变化, 包括位移变化和角度变化等, 所以会存在将位置发生变 化的多幅图像叠加在一起, 得到模糊和重影的图像, 进而导致拍摄图像不清楚的问题。
为了解决这一技术问题, 现有技术中提出了使用电子防抖技术对拍摄时釆集的图像进 行防抖处理, 从而当用户使用拍摄设备在拍摄的过程中发生抖动时, 仍然能够拍摄出清楚 的图像。 目前, 现有的电子防抖技术方案如下:
将一次拍摄时所釆集的多幅图像进行对比分析,通过对每幅图像的清晰多区域 /锐利物 体边缘进行图像对比, 确定图像之间的双轴平移位移角 (震动中微小震动产生的镜头前后 移动由于比较轻微, 而且微小前后运动对最终图像影响甚微, 所以电子防抖中往往不考虑 前后方向的移动) 与三轴转动角, 具体可以是在这多幅图像中指定一幅图像, 如将第一幅 图像作为指定图像, 然后确定这多幅图像中其余每幅图像相对该指定图像的位置变化参 量,并确定得到的各位置变化参量的平均值,然后根据该平均值对其余每幅图像进行校正, 得到校正后的图像, 最后将该指定图像与各校正后图像进行叠加, 合成一幅相对清晰的图 像。 对于视频拍摄, 按照同样的原理进行电子防抖处理, 区别在于是按照帧率釆集合成一 帧图像所需的多个图像。
然而, 在上述电子防抖的方案中, 在确定釆集的多个图像之间的位置变化时, 如果摄 像头当前所处的拍摄环境较差, 可能导致所釆集图像的清晰度较低, 从而导致所确定的图 像之间的位置变化情况不够准确, 从而导致后续按照所确定的位置变化情况进行电子防抖 处理时无法获得较佳的防抖效果。 发明内容 本发明实施例提供一种拍摄防抖方法及装置, 用以提高进行防抖处理的防抖效果, 从 而提高拍摄图像的清楚程度。
本发明实施例提供一种拍摄防抖方法, 包括: 获取镜头方向与第一摄像头的镜头方向 相反的第二摄像头在所述第一摄像头拍摄图像的拍摄时刻釆集的图像; 根据获取的图像, 确定进行电子防抖处理时所需要的第一位置变化参量; 基于确定的所述第一位置变化参 量, 对所述第一摄像头在所述拍摄时刻釆集的图像进行电子防抖处理。
本发明实施例还提供一种拍摄防抖装置, 包括: 获取单元, 用于获取镜头方向与第一 摄像头的镜头方向相反的第二摄像头在所述第一摄像头拍摄图像的拍摄时刻釆集的图像; 参量确定单元, 用于根据获取的图像, 确定进行电子防抖处理时所需要的第一位置变化参 量; 处理单元, 用于基于确定的所述第一位置变化参量, 对所述第一摄像头在所述拍摄时 刻釆集的图像进行电子防抖处理。
本发明有益效果包括:
本发明实施例提供的方法中, 当前拍摄所使用的摄像头为第一摄像头, 但在对第一摄 像头在拍摄时刻釆集的图像进行防抖处理时, 是根据镜头方向与第一摄像头的镜头方向相 反的第二摄像头在该拍摄时刻所釆集的图像确定的第一位置变化参量进行的, 所以, 当在 第一摄像头所处的拍摄环境比第二摄像头所处的拍摄环境差的情况下, 由于根据第二摄像 头所釆集图像确定的第一位置变化参量, 相比根据第一摄像头所釆集图像确定的位置变化 参量更准确, 所以基于该第一位置变化参量, 对第一摄像头在拍摄时刻釆集的图像进行电 子防抖处理, 能够得到更佳的防抖效果, 从而在这种拍摄环境下, 相比现有技术能够得到 更清楚的拍摄图像。 附图说明 图 1为本发明实施例提供的拍摄防抖方法的流程图;
图 2为本发明实施例 1中提供的拍摄防抖方法的流程图;
图 3为本发明实施例 1中由于拍摄设备发生平移产生平移位移角的示意图;
图 4为本发明实施例 1中由于拍摄设备发生转动产生转动角的示意图;
图 5为本发明实施例 2中提供的拍摄防抖方法的流程图;
图 6为本发明实施例 3中提供的拍摄防抖装置的结构示意图。 具体实施方式 为了给出提高进行防抖处理的防抖效果, 从而提高拍摄图像的清楚程度的实现方案, 本发明实施例提供了一种拍摄防抖方法及装置, 以下结合说明书附图对本发明的优选实施 例进行说明, 应当理解, 此处所描述的优选实施例仅用于说明和解释本发明, 并不用于限 定本发明。 并且在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。
本发明实施例提供一种拍摄防抖方法, 如图 1所示, 包括:
步骤 S 101、 获取镜头方向与第一摄像头的镜头方向相反的第二摄像头在第一摄像头拍 摄图像的拍摄时刻釆集的图像。
步骤 S 102、 根据获取的图像, 确定进行电子防抖处理时所需要的第一位置变化参量。 步骤 S 103、 基于确定的第一位置变化参量, 对第一摄像头在该拍摄时刻釆集的图像进 行电子防抖处理。
上述拍摄防抖方法中, 第一摄像头与第二摄像头为属于同一个拍摄设备的两个摄像 头, 且这两个摄像头的镜头方向相反, 即相差 180度, 也就是通常所说的前向摄像头和后 向摄像头, 本申请实施例中, 为了便于方案的描述和理解, 将这两个摄像头中当前负责拍 摄的摄像头称作第一摄像头, 将另一个摄像头称作第二摄像头。
本发明实施例中, 当第二摄像头所处拍摄环境好于第一摄像头所处拍摄环境时,例如, 第二摄像头处于顺光环境下, 而第一摄像头处于逆光环境下, 此时第二摄像头釆集的图像 的清晰度将大于第一摄像头釆集的图像的清晰度, 所以根据第二摄像头釆集的图像确定的 进行电子防抖处理时所需要的位置变化参量(为便于区分, 后续将该位置变化参量称作第 一位置变化参量), 与根据第一摄像头釆集的图像确定的进行电子防抖处理时所需要的位 置变化参量(为便于区分, 后续将该位置变化参量称作第二位置变化参量)相比, 将更准 确, 所以, 在这种拍摄环境下, 基于第一位置变化参量对第一摄像头在拍摄时刻釆集的图 像进行电子防抖处理所得到的防抖效果, 将优于基于第二位置变化参量对第一摄像头在拍 摄时刻釆集的图像进行电子防抖处理所得到的防抖效果, 即经过防抖处理的拍摄出的图像 的清楚程度更高。
下面结合附图, 用具体实施例对本发明提供的方法及装置进行详细描述。
实施例 1 :
图 2所示为本发明实施例 1中提供的拍摄防抖方法的流程图, 具体包括如下处理步骤: 步骤 S201、 在开启当前拍摄所使用的第一摄像头后, 第一摄像头将实时釆集图像, 并 緩存。 第一摄像头所属的拍摄设备则获取第一摄像头釆集的图像, 具体可以是周期性的获 取当前所釆集的最新图像,获取周期可根据摄像头的属性、使用经验和实际需要进行确定。
步骤 S202、 判断第一摄像头釆集的图像的清晰度是否小于设定清晰度阈值, 如果是, 进入步骤 S203、 否则, 进入步骤 S207。
由于受到当前拍摄设备所处拍摄环境中光线的影响, 摄像头釆集的图像的清晰度将发 生变化, 例如在光线强度比较弱, 或者第一摄像头处于逆光的环境下, 将使得第一摄像头 釆集的图像的清晰度较低; 而光线强度比较强, 或者第一摄像头处于顺光的环境下, 则釆 集的图像的清晰度较高。
步骤 S203、 开启第二摄像头, 第二摄像头实时釆集图像, 并緩存。 该拍摄设备则获取 第二摄像头釆集的图像, 具体可以是周期性的获取当前所釆集的最新图像, 获取周期可根 据摄像头的属性、 使用经验和实际需要进行确定。
步骤 S204、 判断第二摄像头釆集的图像的清晰度是否小于设定清晰度阈值, 如果否, 进入步骤 S205、 否则, 进入步骤 S207。
此时如果是由于光线强度较弱导致第一摄像头釆集的图像的清晰度较低, 小于设定清 晰度阈值,则第二摄像头釆集的图像的清晰度也可能比较低, 即也小于该设定清晰度阈值, 而如果是由于第一摄像头处于逆光环境导致第一摄像头釆集的图像的清晰度较低, 则由于 第二摄像头与第一摄像头的镜头方向相差 180度, 所以此时第二摄像头一定处于顺光环境, 则第二摄像头釆集的图像的清晰度将可能较高, 即大于该设定清晰度阈值。
步骤 S205、 在第一摄像头进行图像拍摄时, 根据第二摄像头在第一摄像头拍摄图像的 拍摄时刻釆集的图像, 确定进行电子防抖处理时所需要的第一位置变化参量, 本步骤中确 定第一位置变化参量所根据的图像, 是在第二摄像头拍摄的过程中所釆集的图像, 且釆集 图像的时刻与第一摄像头拍摄的过程中釆集图像的时刻相同。
位置变化参量的具体确定方法可釆用现有电子防抖技术中的方案, 在此不再进行详细 描述, 但为了便于方案的理解, 将电子防抖技术的原理描述如下:
由于近大远小的视觉成像原理以及凸透镜的成像原理, 当拍摄过程中拍摄设备发生平 移时, 离镜头越近的物体在实际图像中的位移越大, 离镜头越远的物体在实际图像中的位 移越小, 对无穷远的物体则位移为 0。 所以, 可以把图像的实际景深看成一个立方体, 如 图 3所示, 由于平移使两幅图像景深方向成一个角度《, 将这个角度称作平移位移角。 当 拍摄过程中拍摄设备发生转动时, 如图 4所示, 相应的也将产生一个角度 , 将这个角度 称作转动角。 电子防抖技术中, 平移位移角与转动角均属于位置变化参量, 平移位移角具 体可以包括沿 X轴的平移位移角 °^和沿 Y轴的平移位移角 ^ , 由于拍摄设备沿 Z轴的平移 对图像清晰度的影响较小, 所以可以不考虑沿 Z轴的平移位移角, 转动角具体可以包括以 X 轴为轴的转动角 、 以 Y轴为轴的转动角 和以 Ζ轴为轴的转动角 。
电子防抖就是以一次拍摄的拍摄时长内釆集的第一副图像为标准, 釆用图像比对算法 将在该拍摄时长内釆集的其余各副图像与第一副图像进行比对, 确定出其余各副图像相对 第一幅图像之间的平移位移角与转动角, 然后求出各平移位移角的平均值和各转动角的平 均值, 然后基于平移位移角平均值和转动角平均值, 釆用图像校正算法计算出其余各副图 像相对第一幅图像之间的平移位移角与平移位移角平均值的平移位移角差值, 并将该平移 位移角差值作为平移位移角调整值 Δ« , 还计算出其余各副图像相对第一幅图像之间的转 动角与转动角平均值的转动角差值, 并将该转动角差值作为转动角调整值^^ , 然后釆用 各平移位移角调整值和各转动角调整值, 分别对应对其余各副图像进行校正, 然后将第一 幅图像与校正后的各副图像进行叠加, 得到最终的拍摄图像。
基于上述电子防抖技术的原理,本步骤中所确定的第一位置变化参量,具体可以包括: 与第二摄像头对应的, 在一次拍摄时长内釆集的各副图像中第 i副图像对应的沿 X轴的平移 位移角调整值 Δ 、 沿 Υ轴的平移位移角调整值八^ 、 以 X轴为轴的转动角调整值
、 以 Y轴为轴的转动角调整值 Α^ΐ 2 '和以 Ζ轴为轴的转动角调整值 Α^Ζ 2' , 其中, i的 取值为 1-N内的整数, N为一次拍摄时长内所釆集的图像的数量。
步骤 S206、 基于确定的第一位置变化参量, 对第一摄像头在拍摄时刻釆集的图像进行 电子防抖处理, 具体可以包括:
首先, 由于第一摄像头与第二摄像头的镜头方向相差 180度, 且两个摄像头在任意时 刻均是相对静止的, 两者之间没有任何相对位移和相对角度变化, 所以, 在拍摄设备发生 抖动时, 第一摄像头中物体和感光器件的绝对位移和转动等于第二摄像头中物体和感光器 件的绝对位移和转动, 所以两个摄像头中同步釆集的图像相比, 各自釆集的图像所对应的 平移位移角和转动位移角存在着确定的对应关系, 因此, 能够基于第一位置变化参量, 确 定出第一摄像头进行电子防抖处理时所需要的第二位置变化参量。
对应上述第一位置变化参量所包括的各具体参量, 第二位置变化参量可以相应的具体 包括: 与第一摄像头对应的, 在一次拍摄时长内釆集的各副图像中第 i副图像对应的沿 X轴 的平移位移角调整值 Δ 、 沿 Υ轴的平移位移角调整值八^ 、 以 X轴为轴的转动角调整 值 、 以 Υ轴为轴的转动角调整值 '和以 Ζ轴为轴的转动角调整值 , 其中, i 的取值为 1-N内的整数, N为一次拍摄时长内所釆集的图像的数量;
然后, 根据第二位置变化参量对第一摄像头在拍摄时刻釆集的图像进行电子防抖处 理, 具体的防抖处理方案可釆用现有技术, 在此不再进行详细描述。
其中, 基于第一位置变化参量确定第二位置变化参量时, 根据第一摄像头与第二摄像 头的焦距是否相同, 具体可以包括如下两种方式:
第一种方式: 当第一摄像头的焦距与第二摄像头的焦距相同时, 将确定的第一位置变 化参量作为第一摄像头进行电子防抖处理时所需要的第二位置变化参量。
第二种方式: 当第一摄像头的焦距与第二摄像头的焦距不同时, 如果直接将确定的第 一位置变化参量作为第一摄像头进行电子防抖处理时所需要的第二位置变化参量, 由于两 个摄像头的焦距的差异, 可能使得最后的防抖处理效果不够理想, 所以, 本方式中提出, 首先基于确定的第一位置变化参量, 根据第二摄像头相对指定摄像头的等效焦距与第一摄 像头相对指定摄像头的等效焦距的比例, 确定第一摄像头进行电子防抖处理时所需要的第 二位置变化参量, 对于位置变化参量中的平移位移角调整值, 由于两轴的平移位移角的比 值等于两个摄像头相对指定摄像头的等效焦距的比值, 所以具体可釆用如下公式确定: A X l /A XM = f, /f2 .
A r /A r u = //2 ; 其中, 为第一摄像头相对指定摄像头的等效焦距, 为第二摄像头相对指定摄像头 的等效焦距;
对于位置变化参量中的转动角调整值, 由于三轴的转动角值和转动方向完全相同, 所 以具体可以直接将第一位置变化参量中的转动角调整值作为第二位置变化参量中的转动 角调整值, 具体如下:
L = d
步骤 S207、 根据第一摄像头在拍摄时刻釆集的图像, 确定进行电子防抖处理时所需要 的第二位置变化参量, 本步骤中确定第二位置变化参量所根据的图像, 是在第一摄像头拍 摄的过程中所釆集的图像。
步骤 S208、 根据第二位置变化参量对第一摄像头在拍摄时刻釆集的图像进行电子防抖 处理, 具体的防抖处理方案可釆用现有技术, 在此不再进行详细描述。
上述图 2所示方法流程中的步骤 S207和步骤 S208中, 是根据第一摄像头在拍摄时刻釆 集的图像, 确定进行电子防抖处理时所需要的第二位置变化参量, 并仅根据第二位置变化 参量对第一摄像头在拍摄时刻釆集的图像进行电子防抖处理, 其它实施例中, 还可以在确 定出第二位置变化参量后, 基于第二位置变化参量和上述步骤 S205中确定的第一位置变化 参量, 对第一摄像头在拍摄时刻釆集的图像进行电子防抖处理, 具体如下:
即步骤 S208具体还可以为: 确定第二位置变化参量与第一位置变化参量的平均位置变 化参量, 并根据该平均位置变化参量对第一摄像头在拍摄时刻釆集的图像进行电子防抖处 理。
釆用本发明上述实施例 1提供的拍摄防抖方法, 当负责进行拍摄的第一摄像头所釆集 图像的清晰度较低时, 比如, 小于设定清晰度阈值, 而镜头方向与第一摄像头的镜头方向 相反的第二摄像头所釆集图像的清晰度较高时, 比如, 大于设定清晰度阈值, 即第二摄像 头所釆集图像的清晰度大于第一摄像头所釆集图像的清晰度时, 根据第二摄像头釆集的图 像确定的进行电子防抖处理时所需要的第一位置变化参量, 与根据第一摄像头釆集的图像 确定的进行电子防抖处理时所需要的第二位置变化参量相比, 将更准确, 所以, 此时基于 第一位置变化参量对第一摄像头拍摄的图像进行电子防抖处理所得到的防抖效果, 将优于 基于第二位置变化参量对第一摄像头在拍摄时刻釆集的图像进行电子防抖处理所得到的 防抖效果, 即经过防抖处理的拍摄出的图像的清楚程度更高。
而当第一摄像头所釆集图像的清晰度不小于设定清晰度阈值时, 或当第二摄像头所釆 集图像的清晰度小于设定清晰度阈值时, 根据第一摄像头釆集的图像确定的进行电子防抖 处理时所需要的第二位置变化参量, 已经能够满足基于第二位置变化参量进行电子防抖处 理, 并获得较佳防抖效果的要求, 所以为了节省第二摄像头的使用和相应的处理资源的使 用, 可以仅根据第二位置变化参量, 对第一摄像头在拍摄时刻釆集的图像进行电子防抖处 理。
实施例 2:
图 5所示为本发明实施例 2中提供的拍摄防抖方法的流程图, 具体包括如下处理步骤: 步骤 S501、 在开启当前拍摄所使用的第一摄像头后, 第一摄像头将实时釆集图像, 并 緩存。 第一摄像头所属的拍摄设备则获取第一摄像头釆集的图像, 具体可以是周期性的获 取当前所釆集的最新图像,获取周期可根据摄像头的属性、使用经验和实际需要进行确定。
步骤 S502、 在开启当前拍摄所使用的第一摄像头时, 同时开启第二摄像头, 第二摄像 头实时釆集图像, 并緩存。 该拍摄设备则获取第二摄像头釆集的图像, 具体可以是周期性 的获取当前所釆集的最新图像, 获取周期可根据摄像头的属性、 使用经验和实际需要进行 确定, 例如, 与步骤 S501中获取第一摄像头釆集的图像的周期相同。
步骤 S503、 判断第二摄像头釆集的图像的清晰度是否大于第一摄像头釆集的图像的清 晰度, 如果是, 进入步骤 S504 , 否则, 进入步骤 S506。
由于受到当前拍摄设备所处拍摄环境中光线的影响, 摄像头釆集的图像的清晰度将发 生变化, 例如在光线强度比较弱, 或者摄像头处于逆光的环境下, 将使得摄像头釆集的图 像的清晰度较低; 而光线强度比较强, 或者摄像头处于顺光的环境下, 则釆集的图像的清 晰度较高。
步骤 S504、 在第一摄像头进行图像拍摄时, 根据第二摄像头在第一摄像头拍摄图像的 拍摄时刻釆集的图像, 确定进行电子防抖处理时所需要的第一位置变化参量, 本步骤中确 定第一位置变化参量所根据的图像, 是在第一摄像头拍摄的过程中所釆集的图像, 且釆集 图像的时刻与第一摄像头拍摄的过程中釆集图像的时刻相同。
位置变化参量的具体确定方法和具体表征值, 可参照上述步骤 S205 , 在此不再进行详 细描述。
步骤 S505、 基于确定的第一位置变化参量, 对第一摄像头在拍摄时刻釆集的图像进行 电子防抖处理。
具体方案可参照上述步骤 S206 , 在此不再进行详细描述。
步骤 S506、 根据第一摄像头在拍摄时刻釆集的图像, 确定进行电子防抖处理时所需要 的第二位置变化参量, 本步骤中确定第二位置变化参量所根据的图像, 是在第一摄像头拍 摄的过程中所釆集的图像。
步骤 S507、 根据第二位置变化参量对第一摄像头在拍摄时刻釆集的图像进行电子防抖 处理, 具体的防抖处理方案可釆用现有技术, 在此不再进行详细描述。
釆用本发明上述实施例 2提供的拍摄防抖方法, 比较负责进行拍摄的第一摄像头所釆 集图像的清晰度与第二摄像头所釆集图像的清晰度, 由于根据清晰度大的图像确定的进行 电子防抖处理时所需要的位置变化参量, 与根据清晰度小的图像确定的进行电子防抖处理 时所需要的位置变化参量相比, 将更准确, 所以, 选择根据清晰度大的图像确定进行电子 防抖处理时所需要的位置变化参量, 相应的, 基于该位置变化参量对第一摄像头在拍摄时 刻釆集的图像进行电子防抖处理, 将得到更加的防抖效果, 即经过防抖处理的拍摄出的图 像的清楚程度更高。
本发明上述实施例 1和实施例 2的方法中, 均是基于第一摄像头所釆集图像的清晰度和 第二摄像头所釆集图像的清晰度, 确定根据哪个摄像头釆集的图像确定位置变化参量, 并 基于确定的位置变化参量, 对第一摄像头在拍摄时刻釆集的图像进行电子防抖处理。 在其 它实施例中, 还可以根据第一摄像头在拍摄时刻釆集的图像确定第二位置变化参量, 并基 于确定的第二位置变化参量, 对第一摄像头在拍摄时刻釆集的图像进行电子防抖处理, 得 到拍摄图像, 同时还根据第二摄像头在拍摄时刻釆集的图像确定第一位置变化参量, 并基 于确定的第一位置变化参量, 对第一摄像头在拍摄时刻釆集的图像进行电子防抖处理, 也 得到拍摄图像, 使得当第一摄像头所处拍摄环境比第二摄像头所处拍摄环境差时, 也能够 得到清楚的拍摄图像, 并且不需要预先对两个摄像头所釆集图像的清晰度进行比较; 进一 步的, 还可以比较得到的两个拍摄图像的清楚程度, 选取更清楚的拍摄图像作为最终的拍 摄图像, 详细方案的处理流程在此不再进行详细描述。
实施例 3 :
基于同一发明构思, 根据本发明上述实施例提供的拍摄防抖方法, 相应地, 本发明实 施例 3还提供了一种拍摄防抖装置, 该拍摄防抖装置可安装于具有镜头方向相差 180度的两 个摄像头的拍摄设备中, 其结构示意图如图 6所示, 具体包括:
获取单元 601 , 用于获取镜头方向与第一摄像头的镜头方向相反的第二摄像头在所述 第一摄像头拍摄图像的拍摄时刻釆集的图像;
参量确定单元 602, 用于根据获取的图像, 确定进行电子防抖处理时所需要的第一位 置变化参量;
处理单元 603 , 用于基于确定的所述第一位置变化参量, 对所述第一摄像头在所述拍 摄时刻釆集的图像进行电子防抖处理。
较佳的, 所述获取单元 601 , 还用于在获取第二摄像头在所述拍摄时刻釆集的图像之 前, 获取所述第一摄像头釆集的图像;
还包括: 清晰度确定单元 604, 用于在所述获取单元 601获取第二摄像头在所述拍摄时 刻釆集的图像之前, 确定所述第一摄像头釆集的图像的清晰度小于设定清晰度阈值; 以及 在所述处理单元 603基于确定的所述第一位置变化参量, 对所述第一摄像头在拍摄时刻釆 集的图像进行电子防抖处理之前, 确定所述第二摄像头釆集的图像的清晰度不小于设定清 晰度阈值。
较佳的, 所述清晰度确定单元 604 , 还用于, 确定所述第一摄像头釆集的图像的清晰 度不小于设定清晰度阈值, 或者确定所述第二摄像头釆集的图像的清晰度小于设定清晰度 阈值;
所述参量确定单元 602, 还用于当所述清晰度确定单元 604确定所述第一摄像头釆集的 图像的清晰度不小于设定清晰度阈值, 或者确定所述第二摄像头釆集的图像的清晰度小于 设定清晰度阈值时, 根据所述第一摄像头在所述拍摄时刻釆集的图像, 确定进行电子防抖 处理时所需要的第二位置变化参量;
所述处理单元 603 , 还用于根据所述第二位置变化参量对所述第一摄像头在所述拍摄 时刻釆集的图像进行电子防抖处理。
较佳的, 所述清晰度确定单元 604 , 还用于确定所述第二摄像头釆集的图像的清晰度 小于设定清晰度阈值;
所述参量确定单元 602 , 还用于在所述处理单元 603基于确定的所述第一位置变化参 量, 对所述第一摄像头在所述拍摄时刻釆集的图像进行电子防抖处理之前, 根据所述第一 摄像头在所述拍摄时刻釆集的图像, 确定进行电子防抖处理时所需要的第二位置变化参 量;
所述处理单元 603 , 具体用于确定所述第一位置变化参量与所述第二位置变化参量的 平均位置变化参量; 并根据所述平均位置变化参量对所述第一摄像头在所述拍摄时刻釆集 的图像进行电子防抖处理。
较佳的,还包括: 清晰度确定单元 604, 用于在所述参量确定单元 602根据获取的图像, 确定进行电子防抖处理时所需要的第一位置变化参量之前, 确定所述第二摄像头釆集的图 像的清晰度大于所述第一摄像头釆集的图像的清晰度。
较佳的, 所述处理单元 603 , 具体用于当所述第一摄像头的焦距与所述第二摄像头的 焦距相同时, 根据确定的所述第一位置变化参量, 对所述第一摄像头在所述拍摄时刻釆集 的图像进行电子防抖处理; 或者
当所述第一摄像头的焦距与所述第二摄像头的焦距不同时, 基于确定的所述第一位置 变化参量, 根据所述第二摄像头相对指定摄像头的等效焦距与所述第一摄像头相对所述指 定摄像头的等效焦距的比例, 确定所述第一摄像头进行电子防抖处理时所需要的第二位置 变化参量, 并根据所述第二位置变化参量对所述第一摄像头在所述拍摄时刻釆集的图像进 行电子防抖处理。
综上所述, 本发明实施例提供的方案, 包括: 获取镜头方向与第一摄像头的镜头方向 相反的第二摄像头在第一摄像头拍摄图像的拍摄时刻釆集的图像; 并根据获取的图像, 确 定进行电子防抖处理时所需要的第一位置变化参量; 以及基于确定的第一位置变化参量, 对第一摄像头在该拍摄时刻釆集的图像进行电子防抖处理。 釆用本发明实施例提供的方 案, 在第一摄像头所处的拍摄环境比第二摄像头所处的拍摄环境差的环境情况下, 能够得 到更佳的防抖效果, 即提高了拍摄图像的清楚程度。
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产 品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实 施例的形式。 而且, 本发明可釆用在一个或多个其中包含有计算机可用程序代码的计算机 可用存储介盾 (包括但不限于磁盘存储器、 CD-ROM、 光学存储器等)上实施的计算机程 序产品的形式。
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序产品的流程图 和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图和 /或方框图中的每一流 程和 /或方框、 以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机 程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器 以产生一个机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用 于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方 式工作的计算机可读存储器中, 使得存储在该计算机可读存储器中的指令产生包括指令装 置的制造品, 该指令装置实现在流程图一个流程或多个流程和 /或方框图一个方框或多个 方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机 或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理, 从而在计算机或其他 可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和 /或方框图一个 方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知了基本创造性概 念, 则可对这些实施例作出另外的变更和修改。 所以, 所附权利要求意欲解释为包括优选 实施例以及落入本发明范围的所有变更和修改。
显然, 本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实 施例的精神和范围。 这样, 倘若本发明实施例的这些修改和变型属于本发明权利要求及其 等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权 利 要 求
1、 一种拍摄防抖方法, 其特征在于, 包括:
获取镜头方向与第一摄像头的镜头方向相反的第二摄像头在所述第一摄像头拍摄图 像的拍摄时刻釆集的图像;
根据获取的图像, 确定进行电子防抖处理时所需要的第一位置变化参量;
基于确定的所述第一位置变化参量, 对所述第一摄像头在所述拍摄时刻釆集的图像进 行电子防抖处理。
2、 如权利要求 1所述的方法, 其特征在于, 在获取所述第二摄像头在所述拍摄时刻釆 集的图像之前, 还包括:
获取所述第一摄像头釆集的图像;
确定所述第一摄像头釆集的图像的清晰度小于设定清晰度阈值;
在基于确定的所述第一位置变化参量, 对所述第一摄像头在所述拍摄时刻釆集的图像 进行电子防抖处理之前, 还包括:
确定所述第二摄像头釆集的图像的清晰度不小于设定清晰度阈值。
3、 如权利要求 2所述的方法, 其特征在于, 当确定所述第一摄像头釆集的图像的清晰 度不小于设定清晰度阈值时, 或者当确定所述第二摄像头釆集的图像的清晰度小于设定清 晰度阈值时, 还包括:
根据所述第一摄像头在所述拍摄时刻釆集的图像, 确定进行电子防抖处理时所需要的 第二位置变化参量;
根据所述第二位置变化参量对所述第一摄像头在所述拍摄时刻釆集的图像进行电子 防抖处理。
4、 如权利要求 2所述的方法, 其特征在于, 当确定所述第二摄像头釆集的图像的清晰 度小于设定清晰度阈值时, 在基于确定的所述第一位置变化参量, 对所述第一摄像头在所 述拍摄时刻釆集的图像进行电子防抖处理之前, 还包括:
根据所述第一摄像头在所述拍摄时刻釆集的图像, 确定进行电子防抖处理时所需要的 第二位置变化参量;
基于确定的所述第一位置变化参量, 对所述第一摄像头在所述拍摄时刻釆集的图像进 行电子防抖处理, 具体包括:
确定所述第一位置变化参量与所述第二位置变化参量的平均位置变化参量; 根据所述平均位置变化参量对所述第一摄像头在所述拍摄时刻釆集的图像进行电子 防抖处理。
5、 如权利要求 1所述的方法, 其特征在于, 在根据获取的图像, 确定进行电子防抖处 理时所需要的第一位置变化参量之前, 还包括:
确定所述第二摄像头釆集的图像的清晰度大于所述第一摄像头釆集的图像的清晰度。
6、 如权利要求 1所述的方法, 其特征在于, 基于确定的所述第一位置变化参量, 对所 述第一摄像头在所述拍摄时刻釆集的图像进行电子防抖处理, 具体包括:
当所述第一摄像头的焦距与所述第二摄像头的焦距相同时, 才 居确定的所述第一位置 变化参量, 对所述第一摄像头在所述拍摄时刻釆集的图像进行电子防抖处理; 或者
当所述第一摄像头的焦距与所述第二摄像头的焦距不同时, 基于确定的所述第一位置 变化参量, 根据所述第二摄像头相对指定摄像头的等效焦距与所述第一摄像头相对所述指 定摄像头的等效焦距的比例, 确定进行电子防抖处理时所需要的第二位置变化参量, 并根 据所述第二位置变化参量对所述第一摄像头在所述拍摄时刻釆集的图像进行电子防抖处 理。
7、 一种拍摄防抖装置, 其特征在于, 包括:
获取单元, 用于获取镜头方向与第一摄像头的镜头方向相反的第二摄像头在所述第一 摄像头拍摄图像的拍摄时刻釆集的图像;
参量确定单元, 用于根据获取的图像, 确定进行电子防抖处理时所需要的第一位置变 化参量;
处理单元, 用于基于确定的所述第一位置变化参量, 对所述第一摄像头在所述拍摄时 刻釆集的图像进行电子防抖处理。
8、 如权利要求 7所述的装置, 其特征在于, 所述获取单元, 还用于在获取第二摄像头 在所述拍摄时刻釆集的图像之前, 获取所述第一摄像头釆集的图像;
还包括: 清晰度确定单元, 用于在所述获取单元获取第二摄像头在所述拍摄时刻釆集 的图像之前, 确定所述第一摄像头釆集的图像的清晰度小于设定清晰度阈值; 以及在所述 处理单元基于确定的所述第一位置变化参量, 对所述第一摄像头在所述拍摄时刻釆集的图 像进行电子防抖处理之前, 确定所述第二摄像头釆集的图像的清晰度不小于设定清晰度阈 值。
9、 如权利要求 8所述的装置, 其特征在于, 所述清晰度确定单元, 还用于, 确定所述 第一摄像头釆集的图像的清晰度不小于设定清晰度阈值, 或者确定所述第二摄像头釆集的 图像的清晰度小于设定清晰度阈值;
所述参量确定单元, 还用于当所述清晰度确定单元确定所述第一摄像头釆集的图像的 清晰度不小于设定清晰度阈值, 或者确定所述第二摄像头釆集的图像的清晰度小于设定清 晰度阈值时, 根据所述第一摄像头在所述拍摄时刻釆集的图像, 确定进行电子防抖处理时 所需要的第二位置变化参量;
所述处理单元, 还用于根据所述第二位置变化参量对所述第一摄像头在所述拍摄时刻 釆集的图像进行电子防抖处理。
10、 如权利要求 8所述的装置, 其特征在于, 所述清晰度确定单元, 还用于确定所述 第二摄像头釆集的图像的清晰度小于设定清晰度阈值;
所述参量确定单元, 还用于在所述处理单元基于确定的所述第一位置变化参量, 对所 述第一摄像头在所述拍摄时刻釆集的图像进行电子防抖处理之前, 根据所述第一摄像头在 所述拍摄时刻釆集的图像, 确定进行电子防抖处理时所需要的第二位置变化参量;
所述处理单元, 具体用于确定所述第一位置变化参量与所述第二位置变化参量的平均 位置变化参量; 并根据所述平均位置变化参量对所述第一摄像头在所述拍摄时刻釆集的图 像进行电子防抖处理。
11、 如权利要求 7所述的装置, 其特征在于, 还包括:
清晰度确定单元, 用于在所述参量确定单元根据获取的图像, 确定进行电子防抖处理 时所需要的第一位置变化参量之前, 确定所述第二摄像头釆集的图像的清晰度大于所述第 一摄像头釆集的图像的清晰度。
12、 如权利要求 7所述的装置, 其特征在于, 所述处理单元, 具体用于当所述第一摄 像头的焦距与所述第二摄像头的焦距相同时, 根据确定的所述第一位置变化参量, 对所述 第一摄像头在所述拍摄时刻釆集的图像进行电子防抖处理; 或者
当所述第一摄像头的焦距与所述第二摄像头的焦距不同时, 基于确定的所述第一位置 变化参量, 根据所述第二摄像头相对指定摄像头的等效焦距与所述第一摄像头相对所述指 定摄像头的等效焦距的比例, 确定所述第一摄像头进行电子防抖处理时所需要的第二位置 变化参量, 并根据所述第二位置变化参量对所述第一摄像头在所述拍摄时刻釆集的图像进 行电子防抖处理。
PCT/CN2012/078262 2011-07-14 2012-07-06 一种拍摄防抖方法及装置 WO2013007164A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110196560.5A CN102883099B (zh) 2011-07-14 2011-07-14 一种拍摄防抖方法及装置
CN201110196560.5 2011-07-14

Publications (1)

Publication Number Publication Date
WO2013007164A1 true WO2013007164A1 (zh) 2013-01-17

Family

ID=47484226

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078262 WO2013007164A1 (zh) 2011-07-14 2012-07-06 一种拍摄防抖方法及装置

Country Status (2)

Country Link
CN (1) CN102883099B (zh)
WO (1) WO2013007164A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113875220A (zh) * 2019-08-26 2021-12-31 Oppo广东移动通信有限公司 拍摄防抖方法、装置、终端及存储介质

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826065B (zh) * 2013-12-12 2017-07-21 小米科技有限责任公司 一种图像处理方法和装置
CN103763483A (zh) * 2014-01-23 2014-04-30 贝壳网际(北京)安全技术有限公司 一种移动终端拍照防抖方法、装置以及移动终端
CN104093014A (zh) * 2014-07-21 2014-10-08 宇龙计算机通信科技(深圳)有限公司 图像处理方法和图像处理装置
CN104580907B (zh) * 2014-12-31 2018-11-23 广东欧珀移动通信有限公司 一种防抖的拍照方法及装置
CN106303203B (zh) * 2015-06-10 2019-06-25 联想(北京)有限公司 一种信息处理方法及电子设备
JP6629454B2 (ja) 2015-12-28 2020-01-15 華為技術有限公司Huawei Technologies Co.,Ltd. 画像フュージョン方法と装置、および端末装置
CN107071263B (zh) * 2016-12-30 2020-02-18 努比亚技术有限公司 一种图像处理方法及终端
CN107040722B (zh) 2017-04-27 2019-02-15 维沃移动通信有限公司 一种拍摄方法及移动终端
CN107370957B (zh) * 2017-08-24 2019-03-05 维沃移动通信有限公司 一种图像处理方法及移动终端
CN109429004B (zh) * 2017-08-29 2021-06-04 中兴通讯股份有限公司 一种拍照方法、装置及移动终端
CN107493438B (zh) * 2017-09-26 2020-05-15 华勤通讯技术有限公司 双摄像头的连拍方法以及装置、电子设备
CN108881636B (zh) * 2018-06-30 2021-05-04 成都西纬科技有限公司 逆光模式自动切换方法、装置、电子设备及计算机可读存储介质
CN110213479B (zh) * 2019-04-30 2021-05-04 北京迈格威科技有限公司 一种视频拍摄防抖方法和装置
CN112087593B (zh) * 2019-06-14 2022-10-14 富士通株式会社 视频配置的更新装置、方法以及电子设备
CN110991550B (zh) * 2019-12-13 2023-10-17 歌尔科技有限公司 一种视频监控方法、装置、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007036363A (ja) * 2005-07-22 2007-02-08 Sharp Corp 撮像装置
CN1912685A (zh) * 2005-05-05 2007-02-14 阿瓦戈科技通用Ip(新加坡)股份有限公司 使用作为陀螺仪的光运动传感器的成像装置
CN1917587A (zh) * 2005-08-15 2007-02-21 卡西欧计算机株式会社 摄像装置及图像处理方法
CN101485199A (zh) * 2006-06-30 2009-07-15 摩托罗拉公司 用于静态相机运动的视频校正的方法和设备
US7724284B2 (en) * 2005-09-29 2010-05-25 Aptina Imaging Corporation Multi-camera system and method having a common processing block
US7817187B2 (en) * 2007-06-27 2010-10-19 Aptina Imaging Corporation Image blur correction using a secondary camera

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2678461B1 (fr) * 1991-06-25 1993-10-15 Aerospatiale Ste Nat Indle Procede pour determiner la position au repos de la ligne de visee d'un dispositif de prise de vue soumis a des vibrations, dispositif pour sa mise en óoeuvre et application a l'harmonisation de dispositifs de prise de vue.

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912685A (zh) * 2005-05-05 2007-02-14 阿瓦戈科技通用Ip(新加坡)股份有限公司 使用作为陀螺仪的光运动传感器的成像装置
JP2007036363A (ja) * 2005-07-22 2007-02-08 Sharp Corp 撮像装置
CN1917587A (zh) * 2005-08-15 2007-02-21 卡西欧计算机株式会社 摄像装置及图像处理方法
US7724284B2 (en) * 2005-09-29 2010-05-25 Aptina Imaging Corporation Multi-camera system and method having a common processing block
CN101485199A (zh) * 2006-06-30 2009-07-15 摩托罗拉公司 用于静态相机运动的视频校正的方法和设备
US7817187B2 (en) * 2007-06-27 2010-10-19 Aptina Imaging Corporation Image blur correction using a secondary camera

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113875220A (zh) * 2019-08-26 2021-12-31 Oppo广东移动通信有限公司 拍摄防抖方法、装置、终端及存储介质
CN113875220B (zh) * 2019-08-26 2023-08-18 Oppo广东移动通信有限公司 拍摄防抖方法、装置、终端及存储介质
US11902662B2 (en) 2019-08-26 2024-02-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Image stabilization method and apparatus, terminal and storage medium

Also Published As

Publication number Publication date
CN102883099B (zh) 2015-03-11
CN102883099A (zh) 2013-01-16

Similar Documents

Publication Publication Date Title
WO2013007164A1 (zh) 一种拍摄防抖方法及装置
JP5413344B2 (ja) 撮像装置、画像合成方法及びプログラム
TW201239807A (en) Image capture device and method for monitoring specified scene using the image capture device
US9531938B2 (en) Image-capturing apparatus
US20190289207A1 (en) Fast scan-type panoramic image synthesis method and device
JP2004198732A (ja) 撮影補助器、画像処理方法、画像処理装置、コンピュータプログラム、プログラムを格納した記録媒体
US10728529B2 (en) Synchronization of frame captures from multiple cameras with different fields of capture
TW201205181A (en) Video camera providing videos with perceived depth
JP2011066635A (ja) 画像処理装置および方法、並びにプログラム
TW200928572A (en) Imaging device and its shutter drive mode selection method
CN109191506B (zh) 深度图的处理方法、系统及计算机可读存储介质
WO2013080697A1 (ja) 画像処理装置、および画像処理方法、並びにプログラム
JP6128109B2 (ja) 撮影装置、撮影方向の制御方法及びプログラム
US11895403B2 (en) Imaging support device that performs registration control for setting a detected subject image position, imaging support system, imaging system, imaging support method, and program
CN108234898A (zh) 多摄像头的同步拍摄方法、拍摄装置、移动终端和可读存储介质
CN107615744A (zh) 一种图像拍摄参数的确定方法及摄像装置
US9699378B2 (en) Image processing apparatus, method, and storage medium capable of generating wide angle image
JP2012090259A (ja) 撮像装置
JP2011015299A5 (zh)
CN110086994A (zh) 一种基于相机阵列的全景光场的综合系统
JP5393877B2 (ja) 撮像装置および集積回路
US9398232B2 (en) Special effect video camera
US20130083963A1 (en) Electronic camera
WO2020187197A1 (zh) 成像设备的变焦方法、图像处理方法及成像设备
JP7087187B2 (ja) ぶれ補正装置、撮像装置、監視システム、及びプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12811286

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12811286

Country of ref document: EP

Kind code of ref document: A1