WO2012092758A1 - Method and device for correcting translation error of images picked up by two cameras - Google Patents

Method and device for correcting translation error of images picked up by two cameras Download PDF

Info

Publication number
WO2012092758A1
WO2012092758A1 PCT/CN2011/076160 CN2011076160W WO2012092758A1 WO 2012092758 A1 WO2012092758 A1 WO 2012092758A1 CN 2011076160 W CN2011076160 W CN 2011076160W WO 2012092758 A1 WO2012092758 A1 WO 2012092758A1
Authority
WO
WIPO (PCT)
Prior art keywords
calibration
image
calibration object
translation error
error
Prior art date
Application number
PCT/CN2011/076160
Other languages
French (fr)
Chinese (zh)
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 WO2012092758A1 publication Critical patent/WO2012092758A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/204Image signal generators using stereoscopic image cameras
    • H04N13/239Image signal generators using stereoscopic image cameras using two 2D image sensors having a relative position equal to or related to the interocular distance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/204Image signal generators using stereoscopic image cameras
    • H04N13/246Calibration of cameras

Abstract

A method for correcting translation error of images picked up by two cameras is disclosed by the present invention. The method includes: picking up calibration objects by using the two cameras simultaneously to obtain a left eye calibration image and a right eye calibration image respectively (401); determining the translation error between the two cameras according to the positions of the calibration objects in the two calibration images and saving the translation error (402); and correcting the images picked up by the two cameras according to the saved translation error (403). A device for correcting translation error of images picked up by the two cameras is also disclosed by the present invention. According to the method and device, the translation error between the two cameras can be eliminated effectively, and viewers can watch clear stereo images.

Description

一种糾正双摄像头所拍摄图像的平移误差的方法和装置 技术领域  Method and device for correcting translation error of image captured by dual camera
本发明涉及双摄像头立体拍摄技术, 特别是指一种纠正双摄像头所拍 摄图像的平移误差的方法和装置。 背景技术  The present invention relates to a dual camera stereoscopic imaging technique, and more particularly to a method and apparatus for correcting translational errors of images captured by dual cameras. Background technique
在现有技术中, 图片或影像的立体显示都是通过双眼的视差特性来实 现, 其方式主要有: 色分法、 光分法、 时分法和光栅法等。 虽然具体实现 方式各不相同, 但基本出发点相同, 而且原理大体相似, 即利用两台并列 放置的摄影机分别代表人的左眼和右眼, 利用两台摄影机同步拍摄出两条 略带水平视差的画面。 放映时将左眼影片和右眼影片分别装入左眼放映装 置和右眼放映装置, 左眼放映装置与右眼放映装置同步运转将画面放映出 来, 形成包括左眼图像、 右眼图像的双影图像。 观众通过一些特殊设备, 例如偏光眼镜, 使观众的左眼只能看到左眼图像, 而右眼只能看到右眼图 像。 再通过观众双眼的汇聚功能, 分别将左眼图像和右眼图像叠合在视网 膜上, 由大脑神经产生三维立体的视觉效果。  In the prior art, the stereoscopic display of pictures or images is realized by the parallax characteristics of both eyes, and the main methods are: color division method, photo division method, time division method and grating method. Although the specific implementation methods are different, the basic starting point is the same, and the principle is similar. That is, using two cameras placed side by side to represent the left and right eyes of the person respectively, two cameras are used to simultaneously capture two horizontal parallaxes. Picture. During the screening, the left-eye film and the right-eye film are respectively loaded into the left-eye projection device and the right-eye projection device, and the left-eye projection device and the right-eye projection device are synchronized to display the screen, and a double image including the left-eye image and the right-eye image is formed. Shadow image. Through some special equipment, such as polarized glasses, the viewer can only see the left eye image of the viewer's left eye, while the right eye can only see the right eye image. Then, through the convergence function of the eyes of the audience, the left eye image and the right eye image are respectively superimposed on the retina film, and the three-dimensional visual effect is generated by the brain nerve.
上述四种立体显示与拍摄的技术, 都要求使用双摄像头进行拍摄, 图 The above four stereo display and shooting techniques require the use of dual cameras for shooting,
1(a)和图 1(b)为双摄像头正确安装时左眼图像和右眼图像的示意图,如图 1(a) 和图 1(b)所示, 两个图像分别为左眼摄影机和右眼摄影机拍摄的左眼图像 和右眼图像。 然而, 将双摄像头安装到拍摄装置上时双摄像头的位置可能 会存在误差, 或者使用过程中的震动磕碰也可能会使拍摄装置的双摄像头 位置存在误差, 例如: 双摄像头存在左右、 上下的位置偏移等。 当两个摄 像头中某个摄像头, 例如右眼摄像头出现左右偏移时, 拍摄出来的影像就 会发生偏移,图 2(a)和图 2(b)为右眼摄像头位置偏移时双摄像头拍摄的图像 的示意图,如图 2(a)和图 2(b)所示, 由于右眼摄像头的偏移使右眼图像略微 向左偏移。 图 3 为右眼摄像头位置偏移时左眼图像和右眼图像叠加的示意 图, 如图 3 所示, 叠加的图像出现了偏移使得观看者感觉图像的边缘模糊 不清, 甚至重影。 1(a) and Fig. 1(b) are schematic diagrams of the left-eye image and the right-eye image when the dual camera is properly installed, as shown in Fig. 1(a) and Fig. 1(b), the two images are left-eye cameras and The left eye image and the right eye image taken by the right eye camera. However, there may be errors in the position of the dual camera when the dual camera is mounted on the camera, or the vibration of the camera may cause errors in the camera's dual camera position. For example: Dual camera has left and right, up and down positions Offset, etc. When one of the two cameras, such as the right-eye camera, has a left-right offset, the captured image will shift. Figures 2(a) and 2(b) show the dual-camera position when the right-eye camera is offset. Captured image The schematic diagram, as shown in Figures 2(a) and 2(b), shifts the right eye image slightly to the left due to the offset of the right eye camera. Figure 3 is a schematic diagram of superimposition of the left-eye image and the right-eye image when the right-eye camera is shifted. As shown in Figure 3, the superimposed image appears offset so that the viewer perceives that the edges of the image are blurred or even ghosted.
当前, 双摄像头拍摄装置在出厂前都会进行摄像头的标定, 来纠正摄 像头径向畸变等问题, 使拍摄出来的影像不至于明显失真。 常用的有双平 面标定方法、 Tsai 两步法、 自标定法等。 然而, 这些标定技术一般说来都 是分别对单独一个摄像头自身进行标定, 而不是摄像头彼此之间标定。 因 此, 不能完全消除双摄像头之间的安装误差。 发明内容  Currently, the dual camera unit performs calibration of the camera before leaving the factory to correct problems such as radial distortion of the camera, so that the captured image is not significantly distorted. Commonly used are double plane calibration methods, Tsai two-step method, self-calibration method, and so on. However, these calibration techniques generally calibrate a single camera itself, rather than the cameras. Therefore, the mounting error between the dual cameras cannot be completely eliminated. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种纠正双摄像头所拍摄图像 的平移误差的方法和装置, 能够完全消除双摄像头之间的位置误差, 导致 叠加图像出现偏移的问题。  In view of the above, it is a primary object of the present invention to provide a method and apparatus for correcting a translation error of an image captured by a dual camera, which can completely eliminate the positional error between the dual cameras, resulting in a problem of offset of the superimposed image.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供了一种纠正双摄像头所拍摄图像的平移误差的方法, 所述 方法包括:  The present invention provides a method of correcting a translation error of an image captured by a dual camera, the method comprising:
使用双摄像头同时拍摄标定物体, 分别得到左眼标定图像与右眼标定 图像;  Using a dual camera to simultaneously capture the calibration object, respectively obtaining a left eye calibration image and a right eye calibration image;
根据标定物体在两个标定图像中的位置确定双摄像头之间的平移误 差, 并保存所述平移误差;  Determining a translation error between the dual cameras based on the position of the calibration object in the two calibration images, and saving the translation error;
根据保存的平移误差纠正双摄像头拍摄的图像。  Corrects the image captured by the dual camera based on the saved translation error.
其中, 所述标定物体为: 处于同一平面的四个标定物体, 该平面垂直 于地面且平行于双摄像头光心的连线, 第一标定物体和第二标定物体的横 坐标间距等于双摄像头光心的间距, 并且第三标定物体和第四标定物体的 横坐标间距也等于双摄像头光心的间距。 其中, 所述确定双摄像头之间的平移误差是: 分别确定标定物体在左 眼标定图像和右眼标定图像中的纵向误差和横向误差。 Wherein, the calibration object is: four calibration objects in the same plane, the plane is perpendicular to the ground and parallel to the connection of the optical center of the dual camera, and the horizontal coordinate spacing of the first calibration object and the second calibration object is equal to the dual camera light The spacing of the hearts, and the abscissa spacing of the third and fourth calibration objects is also equal to the spacing of the optical centers of the dual cameras. Wherein, determining the translation error between the dual cameras is: respectively determining a longitudinal error and a lateral error of the calibration object in the left eye calibration image and the right eye calibration image.
其中, 所述纵向误差通过计算第一标定物体和第三标定物体左眼纵坐 标平均值, 与第二标定物体和第四标定物体右眼纵坐标平均值的差值得到; 所述横向误差通过计算第一标定物体和第三标定物体左眼横坐标平均 值, 与第二标定物体和第四标定物体右眼横坐标平均值的差值得到。  Wherein, the longitudinal error is obtained by calculating a difference between an average value of a left eye ordinate of the first calibration object and the third calibration object, and a difference between an average value of the right eye ordinate of the second calibration object and the fourth calibration object; Calculating the difference between the average value of the left eye abscissa of the first calibration object and the third calibration object, and the difference between the average value of the right eye and the right eye of the fourth calibration object.
其中, 所述纠正双摄像头拍摄的图像, 具体是: 根据平移误差对左眼 图像, 和 /或右眼图像进行纵向, 和 /或横向平移。  Wherein, the correcting the image captured by the dual camera is: performing longitudinal, and/or lateral translation on the left eye image, and/or the right eye image according to the translation error.
本发明还提供了一种纠正双摄像头所拍摄图像的平移误差的装置, 所 述装置包括: 标定图像釆集模块、 平移误差确定模块和图像纠正模块, 其 中,  The present invention also provides an apparatus for correcting a translation error of an image captured by a dual camera, the apparatus comprising: a calibration image collection module, a translation error determination module, and an image correction module, wherein
所述标定图像釆集模块, 用于釆集使用双摄像头同时拍摄标定物体, 分别得到左眼标定图像与右眼标定图像, 将两个标定图像发送给平移误差 确定模块;  The calibration image collection module is configured to simultaneously capture a calibration object by using a dual camera, respectively obtain a left eye calibration image and a right eye calibration image, and send the two calibration images to the translation error determination module;
所述平移误差确定模块, 用于根据标定物体在两个标定图像中的位置 确定双摄像头之间的平移误差, 并保存所述平移误差;  The translation error determining module is configured to determine a translation error between the dual cameras according to the position of the calibration object in the two calibration images, and save the translation error;
所述图像纠正模块, 用于根据保存的平移误差纠正双摄像头拍摄的图 像。  The image correction module is configured to correct the image captured by the dual camera according to the saved translation error.
其中, 所述标定图像釆集模块釆集的双摄像头同时拍摄的标定物体为: 处于同一平面的四个标定物体, 该平面垂直于地面且平行于双摄像头光心 的连线, 第一标定物体和第二标定物体的横坐标间距等于双摄像头光心的 间距, 并且第三标定物体和第四标定物体的横坐标间距也等于双摄像头光 心的间距。  Wherein, the calibration object simultaneously captured by the dual camera of the calibration image collection module is: four calibration objects in the same plane, the plane is perpendicular to the ground and parallel to the connection of the optical center of the dual camera, the first calibration object The abscissa spacing of the second calibration object is equal to the spacing of the optical centers of the dual cameras, and the abscissa spacing of the third calibration object and the fourth calibration object is also equal to the spacing of the optical centers of the dual cameras.
本发明所提供的纠正双摄像头所拍摄图像的平移误差的方法和装置, 使用双摄像头同时拍摄标定物体, 分别得到左眼标定图像与右眼标定图像; 根据标定物体在两个标定图像中的位置确定双摄像头之间的平移误差, 并 保存所述平移误差; 根据保存的平移误差纠正双摄像头拍摄的图像。 能够 有效的消除双摄像头彼此之间的平移误差, 使得观看者能够看到清晰的立 体影像。 进一步的, 如果拍摄装置在使用过程中发生埴碰, 导致双摄像头 发生偏移, 利用本发明的方法和装置可以由使用者自己重新标定, 不需要 送回厂商进行维修, 方便了用户的后期使用中的维护。 附图说明 The method and device for correcting the translation error of the image captured by the dual camera provided by the invention, using the dual camera to simultaneously capture the calibration object, respectively obtaining the left eye calibration image and the right eye calibration image; The translation error between the dual cameras is determined according to the position of the calibration object in the two calibration images, and the translation error is saved; the image captured by the dual camera is corrected according to the saved translation error. It can effectively eliminate the translation error between the two cameras, so that the viewer can see the clear stereo image. Further, if the camera is bumped during use, causing the dual camera to be offset, the method and the device of the present invention can be recalibrated by the user, and the manufacturer does not need to be sent back for maintenance, which facilitates the user's later use. Maintenance in the middle. DRAWINGS
图 1(a)和图 1(b)为双摄像头正确安装时左眼图像和右眼图像的示意图; 图 2(a)和图 2(b)为右眼摄像头位置偏移时双摄像头拍摄的图像的示意 图;  Figure 1 (a) and Figure 1 (b) are schematic diagrams of the left eye image and the right eye image when the dual camera is properly installed; Figure 2 (a) and Figure 2 (b) are taken by the dual camera when the right eye camera is offset. Schematic diagram of the image;
图 3为右眼摄像头位置偏移时左眼图像和右眼图像叠加的示意图; 图 4为本发明一种纠正双摄像头所拍摄图像的平移误差的方法流程示 意图;  3 is a schematic diagram of superimposition of a left eye image and a right eye image when a right eye camera position is shifted; FIG. 4 is a schematic flow chart of a method for correcting a translation error of an image captured by a dual camera according to the present invention;
图 5为本发明实施例中左眼标定图像的效果示意图;  FIG. 5 is a schematic diagram of an effect of calibrating an image of a left eye according to an embodiment of the present invention; FIG.
图 6为本发明实施例中右眼标定图像的效果示意图;  6 is a schematic diagram of an effect of calibrating an image of a right eye according to an embodiment of the present invention;
图 7为本发明一种纠正双摄像头所拍摄图像的平移误差的装置结构示 意图。 具体实施方式  Fig. 7 is a schematic view showing the structure of a device for correcting a translation error of an image captured by a dual camera. detailed description
在现有技术中, 摄像头都釆用透镜作为镜头, 以达到成像的目的。 一 切方向的光线通过透镜时, 都会产生偏折, 使光线传播方向发生变化。 但 透镜上有一点, 任意方向的光线通过该点时, 光线的传播方向不变, 即出 射方向和入射方向相互平行, 这一点叫透镜的光学中心, 简称光心。 本发 明中确定摄像头的标定位置以透镜的光心为准。  In the prior art, the camera uses a lens as a lens for imaging purposes. When light in all directions passes through the lens, it will deflect and change the direction of light propagation. However, there is a point on the lens. When the light passing through any direction passes through the point, the direction of propagation of the light is constant, that is, the direction of the exit and the direction of the incident are parallel to each other. This is called the optical center of the lens, referred to as the optical center. In the present invention, it is determined that the calibration position of the camera is based on the optical center of the lens.
本发明的基本思想是: 使用双摄像头同时拍摄标定物体, 分别得到左 眼标定图像与右眼标定图像; 根据标定物体在两个标定图像中的位置确定 双摄像头之间的平移误差, 并保存所述平移误差; 根据保存的平移误差纠 正双摄像头拍摄的图像。 The basic idea of the invention is: using a dual camera to simultaneously capture the calibration object, respectively, to get left The eye calibration image and the right eye calibration image; determining a translation error between the dual cameras according to the position of the calibration object in the two calibration images, and saving the translation error; correcting the image captured by the dual camera according to the saved translation error.
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。 图 4为本发明一种纠正双摄像头所拍摄图像的平移误差的方法流程示 意图, 如图 4所示, 所述纠正双摄像头所拍摄图像的平移误差的方法, 包 括以下步骤:  The technical solutions of the present invention are further elaborated below in conjunction with the accompanying drawings and specific embodiments. 4 is a schematic flow chart of a method for correcting a translation error of an image captured by a dual camera according to the present invention. As shown in FIG. 4, the method for correcting a translation error of an image captured by a dual camera includes the following steps:
步骤 401 ,使用双摄像头同时拍摄标定物体, 分别得到左眼标定图像与 右眼标定图像;  Step 401, using a dual camera to simultaneously capture a calibration object, and obtaining a left eye calibration image and a right eye calibration image, respectively;
具体的, 所述标定物体处于同一平面, 该平面垂直于地面且平行于双 摄像头光心的连线, 同时, 第一标定物体和第二标定物体的横坐标间距与 第三标定物体和第四标定物体均等于双摄像头光心的间距。  Specifically, the calibration object is in the same plane, the plane is perpendicular to the ground and parallel to the line connecting the optical centers of the dual cameras, and the abscissa distance between the first calibration object and the second calibration object is the same as the third calibration object and the fourth The calibration object is equal to the pitch of the optical center of the dual camera.
步骤 402,根据标定物体在两个标定图像中的位置确定双摄像头之间的 平移误差, 并保存所述平移误差;  Step 402: Determine a translation error between the dual cameras according to the position of the calibration object in the two calibration images, and save the translation error;
具体的, 所述确定双摄像头之间的平移误差, 具体是: 分别确定标定 物体在左眼标定图像和右眼标定图像中的纵向误差和横向误差。 具体的实 现方式为: 计算第一标定物体和第三标定物体左眼纵坐标平均值, 与第二 标定物体和第四标定物体右眼纵坐标平均值的差值作为纵向误差; 计算第 一标定物体和第三标定物体左眼横坐标平均值, 与第二标定物体和第四标 定物体右眼横坐标平均值的差值作为横向误差。  Specifically, the determining a translation error between the dual cameras is specifically: determining a longitudinal error and a lateral error of the calibration object in the left eye calibration image and the right eye calibration image, respectively. The specific implementation manner is: calculating the average value of the left eye ordinate of the first calibration object and the third calibration object, and the difference between the second calibration object and the average value of the right eye ordinate of the fourth calibration object as a longitudinal error; calculating the first calibration The difference between the average of the left eye abscissa of the object and the third calibration object, and the difference between the average value of the right eye and the right eye of the fourth calibration object as the lateral error.
步骤 403 , 根据保存的平移误差纠正双摄像头拍摄的图像。  Step 403: Correct the image captured by the dual camera according to the saved translation error.
具体的, 所述纠正双摄像头拍摄的图像, 具体是根据平移误差对左眼 图像, 和 /或右眼图像进行纵向, 和 /或横向平移, 以纠正图像的平移误差。 在现有技术中, 数字图像处理技术非常成熟, 因此, 完全可对数字图像进 行平移、 扭转、 拉伸、 缩放、 裁剪处理。 数字图像的变形变换, 例如压缩 变换或拉伸变换, 就是原图像到目标图像的坐标变换, 简单地说, 就是把 原图像每个点的坐标通过变形运算转为目标图像的相应点的新坐标。 因此, 完全可以实现对数字图像进行压缩变换处理或拉伸变换处理。 数字图像的 分割技术, 就是基于像素点的坐标, 把数字图像按照一定规则, 将部分像 素点组成新的一幅数字图像的技术。 数字图像的合并技术, 就是基于像素 点的坐标, 把两幅或多幅数字图像按照一定规则, 组成新的一幅数字图像 的技术。 通过上述数字图像处理技术可以很容易的将需要纠正的图像平移, 进一步还可以通过分割等技术对糾正的图像进行优化。 Specifically, the correcting the image captured by the dual camera is specifically performing longitudinal, and/or lateral translation on the left eye image and/or the right eye image according to the translation error to correct the translation error of the image. In the prior art, the digital image processing technology is very mature, so that the digital image can be fully translated, twisted, stretched, scaled, and cropped. Deformation transformation of digital images, such as compression Transform or stretch transformation is the coordinate transformation of the original image to the target image. Simply put, the coordinates of each point of the original image are converted into the new coordinates of the corresponding points of the target image by the deformation operation. Therefore, it is completely possible to perform compression conversion processing or stretch transformation processing on a digital image. The digital image segmentation technique is based on the coordinates of pixel points, and the digital image is formed into a new digital image according to certain rules. The merging technique of digital images is based on the coordinates of pixel points, and two or more digital images are combined according to certain rules to form a new digital image. The image to be corrected can be easily translated by the above digital image processing technology, and the corrected image can be further optimized by a technique such as segmentation.
下面结合一个具体的实施例对本发明的方法进行详述。  The method of the present invention will now be described in detail in connection with a specific embodiment.
图 5为本发明实施例中左眼标定图像的效果示意图, 如图 5所示, 左 眼标定图像中横坐标为 31、 纵坐标为 32, 第一标定物体 1 坐标为 (xl l , yl l )、 第二标定物体 2坐标为 (xl2 , yl2 )、 第三标定物体 3坐标为 (xl3 , yl3 )、 第四标定物体 4坐标为 (xl4, yl4 )。 图 6为本发明实施例中右眼标 定图像的效果示意图, 如图 6所示, 右眼标定图像中横坐标为 41、 纵坐标 为 42, 第一标定物体 1坐标为 (x21 , y21 )、 第二标定物体 2坐标为 (x22 , y22 )、 第三标定物体 3坐标为 (x23 , y23 )、 第四标定物体 4坐标为 (x24, y24 )。 同时, Xl2-xl l=xl4-xl3=x22-x21=x24-x23等于左摄像头 15和右摄 像头 16的光心间距。  FIG. 5 is a schematic diagram showing the effect of the calibration image of the left eye in the embodiment of the present invention. As shown in FIG. 5, the left-eye calibration image has an abscissa of 31 and an ordinate of 32, and the first calibration object 1 has coordinates (xl l , yl l ), the second calibration object 2 coordinates are (xl2, yl2), the third calibration object 3 coordinates are (xl3, yl3), and the fourth calibration object 4 coordinates are (xl4, yl4). 6 is a schematic diagram showing the effect of the right eye calibration image in the embodiment of the present invention. As shown in FIG. 6, the right eye calibration image has an abscissa of 41 and an ordinate of 42, and the first calibration object 1 has coordinates (x21, y21), The coordinates of the second calibration object 2 are (x22, y22), the coordinates of the third calibration object 3 are (x23, y23), and the coordinates of the fourth calibration object 4 are (x24, y24). Meanwhile, Xl2-xl l = xl4 - xl3 = x22 - x21 = x24 - x23 is equal to the optical distance between the left camera 15 and the right camera 16.
假设双摄像头安装正确, 即没有偏移问题, 则 4个标定物体在两张标 定图像各自的坐标系中, 纵坐标数值是相同的, 即有: yl l=y21; yl2=y22; yl3=y23; yl4=y24。  Assuming that the dual camera is installed correctly, that is, there is no offset problem, the four calibration objects are in the same coordinate system of the two calibration images, and the ordinate values are the same, namely: yl l=y21; yl2=y22; yl3=y23 ; yl4=y24.
由于第一标定物体 1、 第二标定物体 2在左眼横坐标 31上的间距等于 双摄像头各自光心的间距, 则左眼标定图像与右眼标定图像中, 第一标定 物体 1、 第二标定物体 2在两张标定图像各自的坐标系中, 横坐标相同, 即 有: xl l=x22。 由于第三标定物体 3、 第四标定物体 4在右眼横坐标 41上的间距等于 双摄像头各自光心的间距, 则左眼标定图像与右眼标定图像中, 第三标定 物体 3、 第四标定物体 4在两张图片各自的坐标系中, 横坐标相同, 即有: xl3=x24。 Since the distance between the first calibration object 1 and the second calibration object 2 on the left-eye abscissa 31 is equal to the distance between the respective optical centers of the dual cameras, in the left-eye calibration image and the right-eye calibration image, the first calibration object 1 and the second The calibration object 2 has the same abscissa in the coordinate system of each of the two calibration images, that is, xl l=x22. Since the distance between the third calibration object 3 and the fourth calibration object 4 on the right eye abscissa 41 is equal to the distance between the respective optical centers of the dual cameras, the left eye calibration image and the right eye calibration image, the third calibration object 3, the fourth The calibration object 4 has the same abscissa in the coordinate system of each of the two pictures, that is, xl3=x24.
假设右摄像头安装时, 向右偏移 2像素的误差, 则左摄像头拍摄到的 标定物体在左眼标定图像中的坐标如下:  Assume that when the right camera is installed, the error of 2 pixels is shifted to the right, and the coordinates of the calibration object captured by the left camera in the left-eye calibration image are as follows:
第一标定物体 1, 坐标为 (xll, yll ), 即 (75, 2000),  The first calibration object 1, the coordinates are (xll, yll), ie (75, 2000),
第二标定物体 2, 坐标为 (xl2, yl2), 即 ( 140, 1800),  The second calibration object 2, the coordinates are (xl2, yl2), ie (140, 1800),
第三标定物体 3, 坐标为 (xl3, yl3 ), 即 ( 1075, 210),  The third calibration object 3, the coordinates are (xl3, yl3), ie (1075, 210),
第四标定物体 4, 坐标为 (xl4, yl4), 即 (1140, 10)。  The fourth calibration object 4, the coordinates are (xl4, yl4), ie (1140, 10).
右摄像头拍摄到的标定物体在右眼标定图像中的坐标如下:  The coordinates of the calibration object captured by the right camera in the calibration image of the right eye are as follows:
第一标定物体 1, 坐标为 (x21, y21 ), 即 (8, 2000),  The first calibration object 1, the coordinates are (x21, y21), ie (8, 2000),
第二标定物体 2, 坐标为 (x22, y22), 即 (73, 1800),  The second calibration object 2, the coordinates are (x22, y22), ie (73, 1800),
第三标定物体 3, 坐标为 (x23, y23 ), 即 ( 1008, 210),  The third calibration object 3, the coordinates are (x23, y23), ie (1008, 210),
第四标定物体 4, 坐标为 (x24, y24), 即 ( 1073, 10)。  The fourth calibration object 4, the coordinates are (x24, y24), ie (1073, 10).
计算第一标定物体 1、 第三标定物体 3在左眼纵坐标 32上的左眼纵坐 标平均值 Y— Nol, 计算第二标定物体 2、 第四标定物体 4在右眼纵坐标 42 上的右眼纵坐标平均值 Y— No2;  Calculating the left-eye ordinate average Y_Nol of the first calibration object 1 and the third calibration object 3 on the left-eye ordinate 32, and calculating the second calibration object 2 and the fourth calibration object 4 on the right-eye ordinate 42 Right eye ordinate mean Y—No2;
Y Nol = (yll+yl3 ) 12= (2000+210) /2= 1105  Y Nol = (yll+yl3 ) 12= (2000+210) /2= 1105
Y_No2 = ( y21+ y23 ) /2 = ( 2000+210 ) 12 = 1105  Y_No2 = ( y21+ y23 ) /2 = ( 2000+210 ) 12 = 1105
计算第一标定物体 1、 第三标定物体 3在左眼横坐标 31上的左眼横坐 标平均值 X— Nol, 计算第二标定物体 2、 第四标定物体 4在右眼横坐标 41 上的右眼横坐标平均值 X— No2;  Calculating the left-eye horizontal coordinate X_Nol of the first calibration object 1 and the third calibration object 3 on the left-eye abscissa 31, and calculating the second calibration object 2 and the fourth calibration object 4 on the right-eye abscissa 41 Right eye horizontal coordinate average X—No2;
X— Nol = ( xll+xl3 ) /2= ( 75+1075 ) 12 = 575  X— Nol = ( xll+xl3 ) /2= ( 75+1075 ) 12 = 575
X No2 = ( x21+x23 ) 12= { 73+1073 ) 12 = 573 将右眼纵坐标平均值减去左眼纵坐标平均值,所获得的纵坐标差值 DY 为纵向误差, 将右眼横坐标平均值减去左眼横坐标平均值, 所获得的横坐 标差值 DX为横向误差。 同时, 保存平移误差用于拍摄图像时的图像纠正。 X No2 = ( x21+x23 ) 12= { 73+1073 ) 12 = 573 The average value of the ordinate of the right eye is subtracted from the average value of the ordinate of the left eye, and the obtained ordinate difference DY is the longitudinal error, and the average value of the right eye abscissa is subtracted from the left eye horizontal coordinate average, and the obtained horizontal coordinate difference is obtained. The value DX is the lateral error. At the same time, the translation error is saved for image correction when the image is taken.
DY = Y_No2 - Y Nol = 1105 - 1105 = 0  DY = Y_No2 - Y Nol = 1105 - 1105 = 0
DX = X_No2 - X Nol = 575 - 573 = 2  DX = X_No2 - X Nol = 575 - 573 = 2
将右眼图像沿着纵坐标正方向, 向上平移纵坐标差值 DY个像素单位; 将右眼图像沿着横坐标正方向, 向右平移横坐标差值 DX个像素单位, 即 将右眼图像向上平移 0像素; 将右眼图像沿着横坐标向右平移 2个像素, 则完成了根据保存的平移误差纠正双摄像头拍摄的图像。  The right eye image is translated along the positive direction of the ordinate, and the ordinate difference is DY pixel units upward; the right eye image is translated along the positive direction of the horizontal coordinate, and the horizontal coordinate difference is DX pixel units to the right, that is, the right eye image is upward. Panning 0 pixels; Shifting the right eye image to the right by 2 pixels along the abscissa, then correcting the image taken by the dual camera according to the saved translation error.
图 7为本发明一种纠正双摄像头所拍摄图像的平移误差的装置结构示 意图, 如图 7所示, 所述纠正双摄像头所拍摄图像的平移误差的装置包括: 标定图像釆集模块 71、 平移误差确定模块 72和图像纠正模块 73 , 其中, 所述标定图像釆集模块 71 ,用于釆集使用双摄像头同时拍摄标定物体, 分别得到左眼标定图像与右眼标定图像, 将两个标定图像发送给平移误差 确定模块 72;  7 is a schematic structural diagram of an apparatus for correcting a translation error of an image captured by a dual camera according to the present invention. As shown in FIG. 7, the apparatus for correcting a translation error of an image captured by a dual camera includes: a calibration image collection module 71, and a translation The error determining module 72 and the image correcting module 73, wherein the calibration image collecting module 71 is configured to simultaneously capture a calibration object by using a dual camera, and obtain a left eye calibration image and a right eye calibration image, respectively, and two calibration images. Send to the translation error determination module 72;
具体的, 所述标定物体处于同一平面, 该平面垂直于地面且平行于双 摄像头光心的连线, 同时, 第一标定物体和第二标定物体的横坐标间距与 第三标定物体和第四标定物体均等于双摄像头光心的间距。  Specifically, the calibration object is in the same plane, the plane is perpendicular to the ground and parallel to the line connecting the optical centers of the dual cameras, and the abscissa distance between the first calibration object and the second calibration object is the same as the third calibration object and the fourth The calibration object is equal to the pitch of the optical center of the dual camera.
所述平移误差确定模块 72, 用于根据标定物体在两个标定图像中的位 置确定双摄像头之间的平移误差, 并保存所述平移误差;  The translation error determination module 72 is configured to determine a translation error between the dual cameras according to the position of the calibration object in the two calibration images, and save the translation error;
具体的,平移误差确定模块 72确定双摄像头之间的平移误差,具体是: 分别确定标定物体在左眼标定图像和右眼标定图像中的纵向误差和横向误 差。 具体的实现方式为: 计算第一标定物体和第三标定物体左眼纵坐标平 均值, 与第二标定物体和第四标定物体右眼纵坐标平均值的差值作为纵向 误差; 计算第一标定物体和第三标定物体左眼横坐标平均值, 与第二标定 物体和第四标定物体右眼横坐标平均值的差值作为横向误差。 所述图像纠正模块 73 , 用于根据保存的平移误差纠正双摄像头拍摄的 图像。 Specifically, the translation error determination module 72 determines a translation error between the dual cameras, specifically: determining longitudinal and lateral errors of the calibration object in the left-eye calibration image and the right-eye calibration image, respectively. The specific implementation manner is: calculating the average value of the left eye ordinate of the first calibration object and the third calibration object, and the difference between the second calibration object and the average value of the right eye ordinate of the fourth calibration object as a longitudinal error; calculating the first calibration The difference between the average of the left eye abscissa of the object and the third calibration object, and the difference between the average value of the right eye and the right eye of the fourth calibration object as the lateral error. The image correction module 73 is configured to correct an image captured by the dual camera according to the saved translation error.
具体的, 所述图像纠正模块 73纠正双摄像头拍摄的图像, 具体是根据 平移误差对左眼图像, 和 /或右眼图像进行纵向, 和 /或横向平移, 以纠正图 像的平移误差。 在现有技术中, 数字图像处理技术非常成熟, 因此, 完全 可对数字图像进行平移、 扭转、 拉伸、 缩放、 裁剪处理。 数字图像的变形 变换, 例如压缩变换或拉伸变换, 就是原图像到目标图像的坐标变换, 简 单地说, 就是把原图像每个点的坐标通过变形运算转为目标图像的相应点 的新坐标。 因此, 完全可实现对数字图像进行压缩变换处理或拉伸变换处 理。 数字图像的分割技术, 就是基于像素点的坐标, 把数字图像按照一定 规则, 将部分像素点组成新的一幅数字图像的技术。 数字图像的合并技术, 就是基于像素点的坐标, 把两幅或多幅数字图像按照一定规则, 组成新的 一幅数字图像的技术。 通过上述数字图像处理技术可以很容易的将需要纠 正的图像平移, 进一步还可以通过分割等技术对纠正的图像进行优化。  Specifically, the image correction module 73 corrects the image captured by the dual camera, specifically performing longitudinal, and/or lateral translation on the left eye image and/or the right eye image according to the translation error to correct the translation error of the image. In the prior art, digital image processing technology is very mature, so that digital images can be panned, twisted, stretched, scaled, and cropped. The deformation transformation of the digital image, such as compression transformation or stretch transformation, is the coordinate transformation of the original image to the target image. Simply put, the coordinates of each point of the original image are converted into the new coordinates of the corresponding point of the target image by the deformation operation. . Therefore, it is completely possible to perform compression conversion processing or stretch transformation processing on a digital image. The digital image segmentation technique is based on the coordinates of pixel points, and the digital image is formed into a new digital image according to certain rules. The merging technique of digital images is based on the coordinates of pixel points, and two or more digital images are combined according to certain rules to form a new digital image. The image to be corrected can be easily translated by the above digital image processing technology, and the corrected image can be further optimized by a technique such as segmentation.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。  The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.

Claims

权利要求书 Claim
1、 一种纠正双摄像头所拍摄图像的平移误差的方法, 其特征在于, 所 述方法包括:  A method for correcting a translation error of an image captured by a dual camera, the method comprising:
使用双摄像头同时拍摄标定物体, 分别得到左眼标定图像与右眼标定 图像;  Using a dual camera to simultaneously capture the calibration object, respectively obtaining a left eye calibration image and a right eye calibration image;
根据标定物体在两个标定图像中的位置确定双摄像头之间的平移误 差, 并保存所述平移误差;  Determining a translation error between the dual cameras based on the position of the calibration object in the two calibration images, and saving the translation error;
根据保存的平移误差纠正双摄像头拍摄的图像。  Corrects the image captured by the dual camera based on the saved translation error.
2、 根据权利要求 1所述的方法, 其特征在于, 所述标定物体为: 处于 同一平面的四个标定物体, 该平面垂直于地面且平行于双摄像头光心的连 线, 第一标定物体和第二标定物体的横坐标间距等于双摄像头光心的间距, 且第三标定物体和第四标定物体的横坐标间距等于双摄像头光心的间距。  2. The method according to claim 1, wherein the calibration object is: four calibration objects in the same plane, the plane is perpendicular to the ground and parallel to the connection of the optical center of the dual camera, the first calibration object The abscissa spacing of the second calibration object is equal to the spacing of the optical centers of the dual cameras, and the abscissa spacing of the third calibration object and the fourth calibration object is equal to the spacing of the optical centers of the dual cameras.
3、 根据权利要求 2所述的方法, 其特征在于, 所述确定双摄像头之间 的平移误差是: 分别确定标定物体在左眼标定图像和右眼标定图像中的纵 向误差和横向误差。  3. The method according to claim 2, wherein the determining a translation error between the dual cameras is: determining a longitudinal error and a lateral error of the calibration object in the left eye calibration image and the right eye calibration image, respectively.
4、 根据权利要求 3所述的方法, 其特征在于, 所述纵向误差通过计算 第一标定物体和第三标定物体左眼纵坐标平均值, 与第二标定物体和第四 标定物体右眼纵坐标平均值的差值得到;  4. The method according to claim 3, wherein the longitudinal error is calculated by calculating a mean value of a left eye ordinate of the first calibration object and the third calibration object, and a right calibration of the second calibration object and the fourth calibration object The difference between the mean values of the coordinates is obtained;
所述横向误差通过计算第一标定物体和第三标定物体左眼横坐标平均 值, 与第二标定物体和第四标定物体右眼横坐标平均值的差值得到。  The lateral error is obtained by calculating a difference between the left-axis abscissa mean value of the first calibration object and the third calibration object, and the difference between the average value of the right-eye abscissa of the second calibration object and the fourth calibration object.
5、 根据权利要求 1或 2所述的方法, 其特征在于, 所述纠正双摄像头 拍摄的图像是: 根据平移误差对左眼图像、 和 /或右眼图像进行纵向、 和 / 或横向平移。  The method according to claim 1 or 2, wherein the correcting the image captured by the dual camera is: performing longitudinal, and/or lateral translation of the left eye image, and/or the right eye image according to the translation error.
6、 一种纠正双摄像头所拍摄图像的平移误差的装置, 其特征在于, 所 述装置包括: 标定图像釆集模块、 平移误差确定模块和图像纠正模块, 其 中, 6. A device for correcting a translation error of an image captured by a dual camera, the device comprising: a calibration image collection module, a translation error determination module, and an image correction module, Medium,
所述标定图像釆集模块, 用于釆集使用双摄像头同时拍摄标定物体, 分别得到左眼标定图像与右眼标定图像, 将两个标定图像发送给平移误差 确定模块;  The calibration image collection module is configured to simultaneously capture a calibration object by using a dual camera, respectively obtain a left eye calibration image and a right eye calibration image, and send the two calibration images to the translation error determination module;
所述平移误差确定模块, 用于根据标定物体在两个标定图像中的位置 确定双摄像头之间的平移误差, 并保存所述平移误差;  The translation error determining module is configured to determine a translation error between the dual cameras according to the position of the calibration object in the two calibration images, and save the translation error;
所述图像纠正模块, 用于根据保存的平移误差纠正双摄像头拍摄的图 像。  The image correction module is configured to correct the image captured by the dual camera according to the saved translation error.
7、 根据权利要求 6所述的装置, 其特征在于, 所述标定图像釆集模块 釆集的双摄像头同时拍摄的标定物体为: 处于同一平面的四个标定物体, 该平面垂直于地面且平行于双摄像头光心的连线, 第一标定物体和第二标 定物体的横坐标间距等于双摄像头光心的间距, 并且第三标定物体和第四 标定物体的横坐标间距也等于双摄像头光心的间距。  The apparatus according to claim 6, wherein the calibration object simultaneously captured by the dual camera of the calibration image collection module is: four calibration objects in the same plane, the plane is perpendicular to the ground and parallel In the connection of the optical center of the dual camera, the abscissa distance between the first calibration object and the second calibration object is equal to the distance between the optical centers of the dual cameras, and the abscissa distance between the third calibration object and the fourth calibration object is also equal to the dual camera optical center. Pitch.
8、 根据权利要求 7所述的装置, 其特征在于, 所述平移误差确定模块 确定双摄像头之间的平移误差是: 分别确定标定物体在左眼标定图像和右 眼标定图像中的纵向误差和横向误差。  8. The apparatus according to claim 7, wherein the translation error determination module determines that a translation error between the dual cameras is: respectively determining a longitudinal error of the calibration object in the left-eye calibration image and the right-eye calibration image. Lateral error.
9、 根据权利要求 8所述的装置, 其特征在于, 所述平移误差确定模块 确定纵向误差是通过计算第一标定物体和第三标定物体左眼纵坐标平均 值, 与第二标定物体和第四标定物体右眼纵坐标平均值的差值得到;  9. The apparatus according to claim 8, wherein the translation error determination module determines that the longitudinal error is obtained by calculating the average of the left eye ordinate of the first calibration object and the third calibration object, and the second calibration object and the The difference between the average values of the right eye ordinates of the four calibration objects is obtained;
所述平移误差确定模块确定横向误差是通过计算第一标定物体和第三 标定物体左眼横坐标平均值, 与第二标定物体和第四标定物体右眼横坐标 平均值的差值得到。  The translation error determination module determines that the lateral error is obtained by calculating a difference between the average value of the left eye abscissa of the first calibration object and the third calibration object, and the average value of the right eye abscissa of the second calibration object and the fourth calibration object.
10、 根据权利要求 6或 7所述的装置, 其特征在于, 所述图像纠正模 块纠正双摄像头拍摄的图像是: 根据平移误差对左眼图像、 和 /或右眼图像 进行 έ从向、 和 /或横向平移。  10. The apparatus according to claim 6 or 7, wherein the image correcting module corrects the image captured by the dual camera is: performing a slanting direction on the left eye image, and/or the right eye image according to the translation error / or lateral translation.
PCT/CN2011/076160 2011-01-05 2011-06-22 Method and device for correcting translation error of images picked up by two cameras WO2012092758A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110001263.0A CN102123290B (en) 2011-01-05 2011-01-05 Method and device for correcting translation error between images shot by two cameras
CN201110001263.0 2011-01-05

Publications (1)

Publication Number Publication Date
WO2012092758A1 true WO2012092758A1 (en) 2012-07-12

Family

ID=44251715

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076160 WO2012092758A1 (en) 2011-01-05 2011-06-22 Method and device for correcting translation error of images picked up by two cameras

Country Status (2)

Country Link
CN (1) CN102123290B (en)
WO (1) WO2012092758A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581106B (en) * 2013-10-16 2018-07-20 深圳市云立方信息科技有限公司 It is a kind of to the corrected device and method of 3D cameras
CN104581107B (en) * 2013-10-16 2018-07-20 深圳市云立方信息科技有限公司 It is a kind of to the corrected device and method of 3D cameras
CN105554492A (en) * 2015-12-13 2016-05-04 大巨龙立体科技有限公司 Synthesizing method of 3D image
CN106871900A (en) * 2017-01-23 2017-06-20 中国人民解放军海军工程大学 Image matching positioning method in ship magnetic field dynamic detection
CN109146977A (en) * 2017-06-16 2019-01-04 中兴通讯股份有限公司 Image translation error correcting method, mobile terminal and computer readable storage medium
CN111833394A (en) * 2020-07-27 2020-10-27 深圳惠牛科技有限公司 Camera calibration method and measuring method based on binocular measuring device
CN112456334B (en) * 2020-12-02 2022-10-28 太原重工股份有限公司 Multi-winch lifting sling leveling method and system
CN112929535B (en) * 2021-01-25 2022-09-20 北京中科慧眼科技有限公司 Binocular camera-based lens attitude correction method and system and intelligent terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1235439A2 (en) * 2001-02-23 2002-08-28 Sharp Kabushiki Kaisha Method and apparatus for transforming stereoscopic images
CN101149836A (en) * 2007-11-05 2008-03-26 中山大学 Three-dimensional reconfiguration double pick-up camera calibration method
CN101505433A (en) * 2009-03-13 2009-08-12 四川大学 Real acquisition real display multi-lens digital stereo system
WO2010104089A1 (en) * 2009-03-11 2010-09-16 Fujifilm Corporation Imaging apparatus, image correction method, and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1235439A2 (en) * 2001-02-23 2002-08-28 Sharp Kabushiki Kaisha Method and apparatus for transforming stereoscopic images
CN101149836A (en) * 2007-11-05 2008-03-26 中山大学 Three-dimensional reconfiguration double pick-up camera calibration method
WO2010104089A1 (en) * 2009-03-11 2010-09-16 Fujifilm Corporation Imaging apparatus, image correction method, and computer-readable recording medium
CN101505433A (en) * 2009-03-13 2009-08-12 四川大学 Real acquisition real display multi-lens digital stereo system

Also Published As

Publication number Publication date
CN102123290A (en) 2011-07-13
CN102123290B (en) 2014-12-10

Similar Documents

Publication Publication Date Title
WO2012092758A1 (en) Method and device for correcting translation error of images picked up by two cameras
CN106875339B (en) Fisheye image splicing method based on strip-shaped calibration plate
US20210266516A1 (en) Primary and auxiliary image capture devices for image processing and related methods
US20210144356A1 (en) Auto-Alignment of Image Sensors in a Multi-Camera System
US10055816B2 (en) Target-less auto-alignment of image sensors in a multi-camera system
CN108886611B (en) Splicing method and device of panoramic stereo video system
JP4852591B2 (en) Stereoscopic image processing apparatus, method, recording medium, and stereoscopic imaging apparatus
US8300086B2 (en) Image processing for supporting a stereoscopic presentation
CN103546708A (en) System and method of image correction for multi-projection
CN109040728B (en) Ultra-short-focus projection equipment with double-camera trapezoidal correction and method thereof
CN102722080A (en) Multifunctional three-dimensional shooting method based on multiple-lens shooting
KR20130035422A (en) Calibration apparatus for camera module
EP3120542A2 (en) Auto-alignment of image sensors in a multi-camera system
CN104185004A (en) Image processing method and image processing system
CN103079083B (en) Method for correcting array multiple-view image of calibrated parallel cameras
WO2012100495A1 (en) Processing method and apparatus for stereoscopic capture of dual cameras
WO2023036218A1 (en) Method and apparatus for determining width of viewpoint
JP2011250177A (en) Camera module and image recording method
WO2012014695A1 (en) Three-dimensional imaging device and imaging method for same
JP4360180B2 (en) 3D image shooting device
TWI382267B (en) Auto depth field capturing system and method thereof
JP2013192152A (en) Imaging apparatus, imaging system, and image processing method
JP5950197B2 (en) Video signal processing device
TW201325201A (en) 3-dimensional display which is capable of tracking viewer
Atanassov et al. Unassisted 3D camera calibration

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: 11854900

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: 11854900

Country of ref document: EP

Kind code of ref document: A1