CN108900734B - Wide-angle lens distortion automatic correction device and method - Google Patents
Wide-angle lens distortion automatic correction device and method Download PDFInfo
- 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
Links
- 238000012937 correction Methods 0.000 title claims abstract description 34
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000004927 fusion Effects 0.000 claims abstract description 14
- 238000003702 image correction Methods 0.000 claims description 9
- 238000001914 filtration Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 8
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 230000000007 visual effect Effects 0.000 claims 1
- 238000003384 imaging method Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 2
- 238000013178 mathematical model Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/81—Camera processing pipelines; Components thereof for suppressing or minimising disturbance in the image signal generation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a wide-angle lens distortion automatic correction device and a method, wherein the device comprises: the system comprises an image acquisition control circuit, a controllable diaphragm, a CCD imaging camera, an FPGA distortion correction circuit and a sub-field image restoration fusion circuit; and the upper computer image display and parameter control software. The device carries out distortion sub-field automatic correction on the wide-angle lens through the combination of software and hardware, overcomes the problem of poor distortion large correction precision in the imaging process of the traditional wide-angle lens, greatly improves the imaging quality and improves the correction rate.
Description
Technical Field
The invention relates to the field of computers, electronics and optics, in particular to a wide-angle lens distortion automatic correction device and method.
Background
Nowadays, wide-angle lenses play an increasingly important role in the fields of military affairs, monitoring, medical treatment, traffic, photography and the like. In the above-mentioned fields, wide-angle lenses are widely used because they can acquire image information of a larger field of view. However, due to the structural characteristics of the wide-angle lens, a captured image usually generates a certain degree of nonlinear distortion, so that the geometric position accuracy of an object in the image is affected, and the wide-angle lens loses application value in the fields with higher geometric accuracy requirements such as image measurement and image recognition. Distortion correction of the image can effectively solve the imaging problem of the wide-angle lens.
At present, the nonlinear distortion appearing in the wide-angle lens is mainly radial distortion, and a set of widely accepted mathematical models based on the following specific mathematical models have been studied and proposed:
x,yrespectively representing the offset, k, of a pixel point in the x and y directions1,k2,k3,r2=x2+y2Is the distortion coefficient.
Based on the model, the study on the distortion correction of the wide-angle lens is very important, and for a wide-angle imaging system, the problems are mainly solved as follows, (1) the distortion correction is usually realized on a computer and is not convenient for real-time processing and observation; (2) the distortion of different fields is different, and the current correction method is basically treated in the same way, so that the correction precision is poor.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a wide-angle lens distortion automatic correction device and method, which can effectively shorten the correction time and improve the correction precision. The technical scheme is as follows:
an automatic correction device for wide-angle lens distortion comprises 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 sub-field image fusion module and a controllable diaphragm control 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.
Furthermore, a controllable diaphragm is inserted between the wide-angle lens of the image acquisition module and the CCD, and the size and the transverse position are controlled.
Furthermore, the wide-angle image correction module and the sub-field image fusion module adopt FPGA hardware circuits.
A wide-angle lens distortion automatic correction method comprises 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 carrying out operations such as filtering;
step six: the image display module displays the corrected image and the related parameters.
Further, in the fifth step, for the image obtained after the fusion, median filtering and mean filtering are performed to remove noise therein.
Furthermore, 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.
The invention has the advantages that:
the images in different field angles of the wide-angle lens are corrected to different degrees, so that a more accurate image is obtained. The FPGA is used as a control circuit to control the diaphragm to directly acquire the images of the sub-fields, the images of the sub-fields are respectively corrected, the corrected images of the sub-fields are fused according to the field division, the fused images are obtained through reconstruction, and the obtained corrected images are very high in precision and good in real-time performance.
Drawings
FIG. 1 is a block diagram of an apparatus and method for automatically correcting wide-angle lens distortion
FIG. 2 is a schematic diagram of an apparatus and a method for automatically correcting wide-angle lens distortion
Detailed Description
In order to reduce the distortion of the wide-angle lens and realize real-time processing, an optical method is used for matching with FPGA (field programmable gate array) correction.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, it comprises the following steps:
the method comprises the following steps: assembling the wide-angle lens, inserting a controllable field diaphragm between the CCD and the wide-angle lens as shown in FIG. 2, and performing operations such as image input and image acquisition in different fields. The whole wide-angle device system comprises an image input object plane, a wide-angle lens, a controllable diaphragm, a CCD imaging camera and an FPGA. The image of the input object plane is presented on the CCD through the wide angle lens and the field stop.
Step two: the left and right movement and the size of the field diaphragm are controlled in real time through the FPGA, the field diaphragm is synchronous with the CCD exposure time, and the field images are divided and collected according to the field angle increased by 10 degrees.
Step three: the CCD collects video stream information and transmits the frame images into the FPGA frame by frame. The FPGA comprises a control module and a distortion correction module, and the control module and the distortion correction module are respectively stored in a block RAM in the FPGA according to the field angle division.
Step four: and correcting distortion in an image distortion correction module by a correction method based on a bilinear interpolation method, and transmitting the distortion into an image fusion module.
Step five: and fusing the view-divided images corrected by the distortion correction module in the image fusion module, fusing the restored images of each view field according to view field division for each view field, and reconstructing to obtain a fused image.
And performing median filtering and mean filtering on the image obtained after fusion to remove noise in the image.
Step six: and the image display and parameter control module is in communication with the FPGA through a serial port by using upper computer programming software and is responsible for displaying 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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810780492.9A CN108900734B (en) | 2018-07-16 | 2018-07-16 | 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 | 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 | Wide-angle lens distortion automatic correction device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108900734B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109712058B (en) * | 2018-12-03 | 2022-09-30 | 达闼机器人股份有限公司 | Data set collector |
Citations (4)
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 | カンタツ株式会社 | Image capturing lens |
CN107577032A (en) * | 2017-09-19 | 2018-01-12 | 舜宇光学(中山)有限公司 | Low distortion wide-angle lens |
Family Cites Families (1)
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 |
-
2018
- 2018-07-16 CN CN201810780492.9A patent/CN108900734B/en active Active
Patent Citations (4)
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 | カンタツ株式会社 | Image capturing lens |
CN107577032A (en) * | 2017-09-19 | 2018-01-12 | 舜宇光学(中山)有限公司 | Low distortion wide-angle lens |
Non-Patent Citations (1)
Title |
---|
广角摄像头视频图像实时校正系统设计;汤旭涛;《中国优秀硕士学位论文全文数据库》;20091130;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN108900734A (en) | 2018-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8000559B2 (en) | Method of correcting image distortion and apparatus for processing image using the method | |
WO2017173735A1 (en) | Video see-through-based smart eyeglasses system and see-through method thereof | |
CN104537616A (en) | Correction method for fisheye image distortion | |
CN111741281A (en) | Image processing method, terminal and storage medium | |
KR20040058277A (en) | Method for calibration and correction of radial lens distortion | |
CN111199528A (en) | Fisheye image distortion correction method | |
TWI606421B (en) | Method and device for fisheye camera automatic calibration | |
CN109767472B (en) | Method for measuring FOV of eye-worn display | |
CN103283214A (en) | Camera, distortion correction device and distortion correction method | |
CN108053373A (en) | One kind is based on deep learning model fisheye image correcting method | |
CN113875219B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
CN110099268B (en) | Blind area perspective display method with natural color matching and natural display area fusion | |
US20190050671A1 (en) | Image breathing correction systems and related methods | |
CN108900734B (en) | Wide-angle lens distortion automatic correction device and method | |
CN114339042A (en) | Image processing method and device based on multiple cameras and computer readable storage medium | |
CN108055510B (en) | A kind of real-time apparatus for correcting of two-way video based on FPGA and method | |
CN112465705B (en) | Visual field expanding system and method based on two-aperture rotating biprism | |
CN107454326B (en) | Method for panoramic shooting by using fisheye lens, camera and panoramic shooting system | |
CN111064900A (en) | Self-adaptive white balance method and vehicle-mounted panoramic looking-around system | |
CN111179180A (en) | Image correction method and device | |
CN109218602A (en) | Image capture unit, image treatment method and electronic device | |
CN113066011B (en) | Image processing method, device, system, medium and electronic equipment | |
CN108848302A (en) | A kind of acquisition of micro-imaging, control and automated processing system and processing method | |
DE102021121674A1 (en) | METHOD AND SYSTEM FOR IMAGE PROCESSING OF OMNIDIRECTIONAL IMAGES WITH VIEWPOINT SHIFT | |
EP2634750B1 (en) | A viewing device with object dimension measurement |
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 |
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 |
|
EE01 | Entry into force of recordation of patent licensing contract |