[go: up one dir, main page]

CN108900734B - A wide-angle lens distortion automatic correction device and method - Google Patents

A wide-angle lens distortion automatic correction device and method Download PDF

Info

Publication number
CN108900734B
CN108900734B CN201810780492.9A CN201810780492A CN108900734B CN 108900734 B CN108900734 B CN 108900734B CN 201810780492 A CN201810780492 A CN 201810780492A CN 108900734 B CN108900734 B CN 108900734B
Authority
CN
China
Prior art keywords
module
image
wide
field
angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810780492.9A
Other languages
Chinese (zh)
Other versions
CN108900734A (en
Inventor
赵巨峰
吴超
叶晓杰
崔光茫
华玮平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN201810780492.9A priority Critical patent/CN108900734B/en
Publication of CN108900734A publication Critical patent/CN108900734A/en
Application granted granted Critical
Publication of CN108900734B publication Critical patent/CN108900734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/81Camera processing pipelines; Components thereof for suppressing or minimising disturbance in the image signal generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明公开了一种广角镜头畸变自动校正装置及方法,所述装置包括:图像采集控制电路,可控光阑,CCD成像相机,FPGA畸变校正电路,分视场图像复原融合电路;上位机图像显示与参数控制软件。本装置通过软硬件结合对广角镜头进行畸变分视场自动校正,克服了传统广角镜头成像过程中畸变大校正精度差的问题,极大地提高了成像的质量并提升了校正速率。

Figure 201810780492

The invention discloses a wide-angle lens distortion automatic correction device and method. The device comprises: an image acquisition control circuit, a controllable diaphragm, a CCD imaging camera, an FPGA distortion correction circuit, a split-field image restoration and fusion circuit; a host computer image display with parameter control software. The device automatically corrects the distortion of the wide-angle lens by dividing the field of view through the combination of software and hardware, overcomes the problem of large distortion and poor correction accuracy in the imaging process of the traditional wide-angle lens, greatly improves the imaging quality and improves the correction rate.

Figure 201810780492

Description

一种广角镜头畸变自动校正装置及方法A wide-angle lens distortion automatic correction device and method

技术领域technical field

本发明涉及计算机、电子与光学领域,具体来说,是一种广角镜头畸变自动校正装置及方法。The invention relates to the fields of computer, electronics and optics, and in particular, relates to a wide-angle lens distortion automatic correction device and method.

背景技术Background technique

如今,广角镜头在摄像头在军事、监控、医疗、交通、摄影等领域起着越来越重要的作用。在上述领域中,广角镜头因能获取更大视场的图像信息而被广泛使用。但是,由于广角镜头自身的结构特点,使得所拍摄到的图像通常会产生一定程度的非线性畸变,从而导致图像中物体的几何位置精度受到影响,使其在图像测量、图像识别等几何精度要求较高的领域失去应用价值。毫无疑问,对图像进行畸变校正能有效解决广角镜头成像问题。Today, wide-angle lenses play an increasingly important role in cameras in military, surveillance, medical, transportation, photography, and other fields. In the above fields, wide-angle lenses are widely used because they can acquire image information with a larger field of view. However, due to the structural characteristics of the wide-angle lens itself, the captured image usually produces a certain degree of nonlinear distortion, which affects the geometrical position accuracy of the objects in the image, making it more demanding in image measurement, image recognition and other geometrical accuracy requirements. High fields lose application value. There is no doubt that the distortion correction of the image can effectively solve the problem of wide-angle lens imaging.

目前,广角镜头中出现的非线性畸变主要是径向畸变,已经有了一定的研究并提出了一套被广泛接受的数学模型,该模型基于,具体数学模型如下:At present, the nonlinear distortion in wide-angle lenses is mainly radial distortion, and a set of widely accepted mathematical models have been researched and proposed. The model is based on the following specific mathematical models:

Figure BDA0001732041320000011
Figure BDA0001732041320000011

δx,δy分别表示像素点在x和y方向上的偏移量,k1,k2,k3,r2=x2+y2是畸变系数。δ x , δ y represent the offset of the pixel in the x and y directions, respectively, and k 1 , k 2 , k 3 , r 2 =x 2 +y 2 are the distortion coefficients.

基于上述模型,研究对广角镜头的畸变校正是非常重要的,对于广角成像系统来说,主要需要解决问题如下:(1)畸变校正通常是在计算机上实现的,不便于进行实时处理与观察;(2)不同视场畸变不同,当前校正方法基本都同一对待,导致校正精度差。Based on the above model, it is very important to study the distortion correction of wide-angle lenses. For wide-angle imaging systems, the main problems that need to be solved are as follows: (1) Distortion correction is usually implemented on a computer, which is inconvenient for real-time processing and observation; ( 2) The distortion of different fields of view is different, and the current calibration methods are basically treated the same, resulting in poor calibration accuracy.

发明内容SUMMARY OF THE INVENTION

本发明针对现有技术的不足,提出了一种广角镜头畸变自动校正装置及方法,能够有效缩短校正时间并提高校正精度。其技术方案如下:Aiming at the shortcomings of the prior art, the present invention proposes an automatic correction device and method for wide-angle lens distortion, which can effectively shorten the correction time and improve the correction accuracy. Its technical solutions are as follows:

一种广角镜头畸变自动校正装置,包括广角镜头参数采集模块、图像显示与参数控制模块、广角图像校正模块、FPGA控制处理模块、图像采集模块、分视场图像融合模块、可控光阑控制模块,An automatic correction device for wide-angle lens distortion, comprising a wide-angle lens parameter acquisition module, an image display and parameter control module, a wide-angle image correction module, an FPGA control processing module, an image acquisition module, a split-field image fusion module, and a controllable aperture control module,

广角镜头采集参数模块和图像采集模块的信号输出端与FPGA控制处理模块输入端相连,FPGA控制处理模块输出端分别与图像显示与参数控制模块、可控光阑控制模块输入端相连,广角图像校正模块输出端与分视场图像融合模块输入端相连。The signal output terminals of the wide-angle lens acquisition parameter module and the image acquisition module are connected to the input terminal of the FPGA control processing module, and the output terminal of the FPGA control processing module is respectively connected to the image display and parameter control module and the input terminal of the controllable aperture control module. The output end is connected with the input end of the sub-field image fusion module.

进一步的,在所述图像采集模块的广角透镜与CCD之间插入可控光阑,控制大小和横向位置。Further, a controllable diaphragm is inserted between the wide-angle lens of the image acquisition module and the CCD to control the size and lateral position.

进一步的,所述广角图像校正模块与分视场图像融合模块采用FPGA硬件电路。Further, the wide-angle image correction module and the sub-field-of-view image fusion module use FPGA hardware circuits.

一种广角镜头畸变自动校正方法,包括如下步骤:An automatic correction method for wide-angle lens distortion, comprising the following steps:

步骤一:广角镜头参数采集模块预先采集镜头参数,存入FPGA;Step 1: The wide-angle lens parameter acquisition module pre-collects the lens parameters and stores them in the FPGA;

步骤二:可控光阑控制模块控制视场光阑左右移动和大小,使图像信息分视场呈现在CCD上,与CCD曝光时间同步,从视场角60°开始进行分视场采集,按照每增加10°的视场角进行划分采集分视场图像;Step 2: The controllable diaphragm control module controls the left and right movement and size of the field diaphragm, so that the image information is presented on the CCD in sub-fields, which are synchronized with the CCD exposure time. Divide and collect sub-field images for each additional 10° field of view;

步骤三:在图像采集模块中使用CCD传感器阵列先通过I2C总线将视频流置于RAM中存储,而后在RAM中的畸变图像数据再通过I/O控制端口将每一帧的图像逐帧传入FPGA中;Step 3: Use the CCD sensor array in the image acquisition module to first store the video stream in RAM through the I2C bus, and then transfer the distorted image data in the RAM to the image of each frame frame by frame through the I/O control port FPGA;

步骤四:在广角图像校正模块中,包含查找表模块、图像数据缓冲模块、几何校正模块、灰度校正模块;使用基于双线性插值法的校正算法通过FPGA分别校正不同视场下的每帧图像;Step 4: In the wide-angle image correction module, it includes a lookup table module, an image data buffer module, a geometric correction module, and a grayscale correction module; the correction algorithm based on bilinear interpolation is used to correct each frame under different fields of view through FPGA. image;

步骤五:通过分视场图像融合模块将校正后的分视场图像进行融合,并进行滤波等操作;Step 5: fuse the corrected field-of-view images through the field-of-view image fusion module, and perform operations such as filtering;

步骤六:图像显示模块显示校正后的图像,及相关参数。Step 6: The image display module displays the corrected image and related parameters.

进一步的,步骤五中,对于融合后得到的图像,对其进行中值滤波以及均值滤波以去除其中的噪声。Further, in step 5, median filtering and mean filtering are performed on the image obtained after fusion to remove noise therein.

进一步的,还包括手动控制模式,手动控制模式下向FPGA传输参数以控制硬件设备。Further, it also includes a manual control mode, in which parameters are transmitted to the FPGA to control the hardware device.

本发明的优势在于:The advantages of the present invention are:

针对广角镜头不同视场角内的图像进行了不同程度的校正,得到更精确的图像。采用FPGA作控制电路控制光阑直接获取分视场图像,分别校正各视场的图像,将各视场的校正后图像根据视场划分进行融合,重构得到融合图像,得到的校正图像在精度上非常高,且实时性能较好。Different degrees of correction are performed for images in different fields of view of the wide-angle lens to obtain more accurate images. The FPGA is used as the control circuit to control the diaphragm to directly obtain the images of the divided fields of view, respectively correct the images of each field of view, fuse the corrected images of each field of view according to the division of the field of view, and reconstruct the fused image. is very high, and the real-time performance is better.

附图说明Description of drawings

图1为广角镜头畸变自动校正装置及方法模块流程示意图FIG. 1 is a schematic diagram of a module flow diagram of a wide-angle lens distortion automatic correction device and method.

图2为广角镜头畸变自动校正装置及方法机构示意图Fig. 2 is a schematic diagram of a wide-angle lens distortion automatic correction device and method mechanism

具体实施方式Detailed ways

为了减少广角镜头的畸变,并能实现实时处理,利用光学方法配合FPGA校正。In order to reduce the distortion of the wide-angle lens and realize real-time processing, the optical method is used with FPGA correction.

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用于解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

如图1所示,它包括以下步骤:As shown in Figure 1, it includes the following steps:

步骤一:组装广角镜头,在CCD与广角透镜之间插入可控视场光阑,如图2所示,并进行图像输入、分视场采集图像等操作。整个广角装置系统包括输入物面的图像、广角透镜、可控光阑、CCD成像相机、FPGA。输入物面的图像通过广角透镜和视场光阑呈在CCD上。Step 1: Assemble the wide-angle lens, insert a controllable field diaphragm between the CCD and the wide-angle lens, as shown in Figure 2, and perform operations such as image input, and image acquisition in different fields of view. The whole wide-angle device system includes the image of the input object plane, the wide-angle lens, the controllable diaphragm, the CCD imaging camera, and the FPGA. The image of the input object surface is presented on the CCD through the wide-angle lens and the field diaphragm.

步骤二:通过FPGA实时控制视场光阑左右移动和大小,与CCD曝光时间同步,按照每增加10°的视场角进行划分采集分视场图像。Step 2: Control the left and right movement and size of the field diaphragm in real time through the FPGA, synchronize with the CCD exposure time, and divide and collect sub-field images according to the field angle of every 10° increase.

步骤三:CCD采集视频流信息,将分帧图像逐帧传入FPGA中。FPGA包括控制模块和畸变校正模块,按照视场角分割分别存储到FPGA内部的块RAM中。Step 3: The CCD collects the video stream information, and transfers the framed images to the FPGA frame by frame. The FPGA includes a control module and a distortion correction module, which are separately stored in the block RAM inside the FPGA according to the angle of view.

步骤四:在图像畸变校正模块通过基于双线性插值法的校正方法校正畸变,并传入图像融合模块。Step 4: In the image distortion correction module, the distortion is corrected by the correction method based on the bilinear interpolation method, and passed to the image fusion module.

步骤五:在图像融合模块中融合畸变校正模块所校正好的分视场图像,对于各个视场,将各视场的复原后图像根据视场划分进行融合,重构得到融合图像。Step 5: In the image fusion module, the images of different fields of view corrected by the distortion correction module are fused, and for each field of view, the restored images of each field of view are fused according to the division of the field of view, and reconstructed to obtain a fused image.

对于融合后得到的图像,对其进行中值滤波以及均值滤波以去除其中的噪声。For the image obtained after fusion, perform median filtering and mean filtering to remove noise.

步骤六:在图像显示与参数控制模块中通过使用上位机编写软件通过串口与FPGA通信,负责原始图像以及复原后图像的显示。Step 6: In the image display and parameter control module, use the host computer to write software to communicate with the FPGA through the serial port, and be responsible for the display of the original image and the restored image.

Claims (5)

1. The utility model provides a wide-angle lens distortion automatic correction device, includes wide-angle lens parameter acquisition module, image display and parameter control module, wide-angle image correction module, FPGA control processing module, image acquisition module, divides visual field image fusion module, controllable diaphragm control module, its characterized in that:
the output end of the wide-angle lens acquisition parameter module and the signal output end of the image acquisition module are connected with the input end of the FPGA control processing module, the output end of the FPGA control processing module is respectively connected with the input ends of the image display and parameter control module and the controllable diaphragm control module, and the output end of the wide-angle image correction module is connected with the input end of the sub-field image fusion module; the input end of the wide-angle image correction module is connected with the output end of the FPGA control processing module;
a controllable diaphragm is inserted between the wide-angle lens and the CCD of the image acquisition module to control the size and the transverse position; the controllable diaphragm control module controls the left and right movement and the size of the field diaphragm, so that image information is displayed on the CCD in a sub-field manner, the sub-field acquisition is carried out from the field angle of 60 degrees in synchronization with the exposure time of the CCD, and the sub-field image is acquired in a divided manner according to the field angle increased by 10 degrees.
2. The device of claim 1, wherein the wide-angle image correction module and the sub-field image fusion module are implemented by using FPGA hardware circuits.
3. A wide-angle lens distortion automatic correction method is characterized by comprising the following steps:
the method comprises the following steps: the wide-angle lens parameter acquisition module acquires lens parameters in advance and stores the lens parameters in the FPGA;
step two: the controllable diaphragm control module controls the left and right movement and the size of the field diaphragm, so that image information is displayed on the CCD in a sub-field manner, the exposure time of the CCD is synchronous, sub-field acquisition is carried out from the field angle of 60 degrees, and sub-field images are acquired in a divided manner according to the field angle increased by 10 degrees;
step three: in the image acquisition module, a CCD sensor array is used for firstly storing a video stream in an RAM through an I2C bus, and then distorted image data in the RAM is transmitted into an FPGA frame by frame through an I/O control port;
step four: the wide-angle image correction module comprises a lookup table module, an image data buffer module, a geometric correction module and a gray correction module; respectively correcting each frame of image under different fields of view through the FPGA by using a correction algorithm based on a bilinear interpolation method;
step five: fusing the corrected sub-field images through a sub-field image fusion module, and performing filtering operation;
step six: the image display module displays the corrected image and the related parameters.
4. The wide-angle lens distortion automatic correction method according to claim 3, characterized in that:
and fifthly, performing median filtering and mean filtering on the image obtained after fusion to remove noise in the image.
5. The wide-angle lens distortion automatic correction method according to claim 3, characterized in that: the system also comprises a manual control mode, and parameters are transmitted to the FPGA in the manual control mode to control the hardware equipment.
CN201810780492.9A 2018-07-16 2018-07-16 A wide-angle lens distortion automatic correction device and method Active CN108900734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810780492.9A CN108900734B (en) 2018-07-16 2018-07-16 A wide-angle lens distortion automatic correction device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810780492.9A CN108900734B (en) 2018-07-16 2018-07-16 A wide-angle lens distortion automatic correction device and method

Publications (2)

Publication Number Publication Date
CN108900734A CN108900734A (en) 2018-11-27
CN108900734B true CN108900734B (en) 2020-12-08

Family

ID=64349789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810780492.9A Active CN108900734B (en) 2018-07-16 2018-07-16 A wide-angle lens distortion automatic correction device and method

Country Status (1)

Country Link
CN (1) CN108900734B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109712058B (en) * 2018-12-03 2022-09-30 达闼机器人股份有限公司 Data set collector
CN115147298A (en) * 2022-06-17 2022-10-04 广东省三目汽车电子有限公司 Car electronic rearview mirror CMS image correction system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201690518U (en) * 2010-01-21 2010-12-29 天津理工大学 Embedded fisheye image real-time distortion correction device based on FPGA
CN104360467A (en) * 2014-11-29 2015-02-18 福建福光数码科技有限公司 Large-target-surface high-precision mold high-definition zooming monitoring lens
JP2017116594A (en) * 2015-12-21 2017-06-29 カンタツ株式会社 Imaging lens
CN107577032A (en) * 2017-09-19 2018-01-12 舜宇光学(中山)有限公司 Low distortion wide-angle lens

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4790399B2 (en) * 2005-12-09 2011-10-12 コニカミノルタオプト株式会社 Super wide-angle imaging optical system, super-wide-angle imaging lens device, and imaging device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201690518U (en) * 2010-01-21 2010-12-29 天津理工大学 Embedded fisheye image real-time distortion correction device based on FPGA
CN104360467A (en) * 2014-11-29 2015-02-18 福建福光数码科技有限公司 Large-target-surface high-precision mold high-definition zooming monitoring lens
JP2017116594A (en) * 2015-12-21 2017-06-29 カンタツ株式会社 Imaging lens
CN107577032A (en) * 2017-09-19 2018-01-12 舜宇光学(中山)有限公司 Low distortion wide-angle lens

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
广角摄像头视频图像实时校正系统设计;汤旭涛;《中国优秀硕士学位论文全文数据库》;20091130;全文 *

Also Published As

Publication number Publication date
CN108900734A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN106875339B (en) Fisheye image splicing method based on strip-shaped calibration plate
CN108564617B (en) Three-dimensional reconstruction method and device for multi-view camera, VR camera and panoramic camera
CN111080709B (en) Self-calibration Algorithm for Multispectral Stereo Camera Based on Trajectory Feature Registration
CN110969667B (en) Multispectral Camera Extrinsic Self-Correction Algorithm Based on Edge Feature
US8000559B2 (en) Method of correcting image distortion and apparatus for processing image using the method
CN111199528A (en) Fisheye image distortion correction method
WO2017173735A1 (en) Video see-through-based smart eyeglasses system and see-through method thereof
CN108805839A (en) Combined estimator image defogging method based on convolutional neural networks
KR20040058277A (en) Method for calibration and correction of radial lens distortion
CN104580933A (en) Multi-scale real-time monitoring video stitching device based on feature points and multi-scale real-time monitoring video stitching method
WO2019232793A1 (en) Two-camera calibration method, electronic device and computer-readable storage medium
CN106780374A (en) A kind of fish eye images distortion correction method based on flake imaging model
CN109697705B (en) Chromatic aberration correction method suitable for video-splicing
CN109785225B (en) Method and device for correcting image
CN110942475B (en) Ultraviolet and visible light image fusion system and rapid image registration method
CN111461963A (en) Fisheye image splicing method and device
CN108900734B (en) A wide-angle lens distortion automatic correction device and method
CN105635808B (en) A kind of video-splicing method based on bayesian theory
TWI606421B (en) Method and device for fisheye camera automatic calibration
CN106817575A (en) Image capture equipment and method for generating depth information and method for automatically correcting image capture equipment
CN108055510B (en) A kind of real-time apparatus for correcting of two-way video based on FPGA and method
CN101771796B (en) A method and device for correcting image barrel distortion
CN108109118B (en) A Geometric Correction Method of Aerial Image without Control Points
US20220286611A1 (en) Electrical image stabilization (eis)-assisted digital image stabilization (dis)
CN110910457B (en) Multispectral three-dimensional camera external parameter calculation method based on angular point characteristics

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20181127

Assignee: ZHEJIANG TIMES MEASURE TECHNOLOGY Co.,Ltd.

Assignor: HANGZHOU DIANZI University

Contract record no.: X2023980048728

Denomination of invention: A wide-angle lens distortion automatic correction device and method

Granted publication date: 20201208

License type: Common License

Record date: 20231128