TWI663421B - Wide angle lens distortion correction method, device and system - Google Patents

Wide angle lens distortion correction method, device and system Download PDF

Info

Publication number
TWI663421B
TWI663421B TW107103694A TW107103694A TWI663421B TW I663421 B TWI663421 B TW I663421B TW 107103694 A TW107103694 A TW 107103694A TW 107103694 A TW107103694 A TW 107103694A TW I663421 B TWI663421 B TW I663421B
Authority
TW
Taiwan
Prior art keywords
field
angle
wide
image height
lens
Prior art date
Application number
TW107103694A
Other languages
Chinese (zh)
Other versions
TW201935072A (en
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 大陸商江西聯創電子有限公司
Priority to TW107103694A priority Critical patent/TWI663421B/en
Application granted granted Critical
Publication of TWI663421B publication Critical patent/TWI663421B/en
Publication of TW201935072A publication Critical patent/TW201935072A/en

Links

Abstract

本發明揭露了一種廣角鏡頭的畸變矯正方法、裝置及系統,其中,方法包括:獲取廣角鏡頭的n個半視場角θ1至θn,並根據n個半視場角獲取相鄰視場比值β1至β(n-1);根據n個半視場角得到n個半視場角對應的像高r1至rn;根據相鄰視場比值β1至β(n-1)和n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高;根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變。該方法可以根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變,使中心視場的取樣速率高於邊緣,有效提高矯正效率,降低成本,簡單易實現。 The invention discloses a method, a device and a system for correcting a distortion of a wide-angle lens, wherein the method includes: obtaining n half-field angles θ 1 to θ n of the wide-angle lens, and obtaining an adjacent field-of-view ratio β according to the n half-field angles 1 to β (n-1) ; get image heights r 1 to r n corresponding to n half field angles according to n half field angles; according to adjacent field ratio β 1 to β (n-1) and n The image heights r 1 to r n corresponding to the half field angles are used to obtain the image height relationship of the adjacent half field angles. Based on the relationship between the image height corresponding to the maximum field angle and the image height relationship of the adjacent half field angles, it is calculated recursively. Obtain the image height of each half field of view angle; correct the distortion of the wide-angle lens in the central field of view according to the image height of each half field of view. This method can sequentially correct the distortion of the wide-angle lens in the central field of view according to the image height of each half of the field of view, so that the sampling rate of the central field of view is higher than the edge, which effectively improves the correction efficiency, reduces costs, and is simple and easy to implement.

Description

廣角鏡頭的畸變矯正方法、裝置及系統 Distortion correction method, device and system for wide-angle lens

本發明涉及影像處理技術領域,特別涉及一種廣角鏡頭的畸變矯正方法、裝置及系統。 The invention relates to the technical field of image processing, and in particular, to a method, a device, and a system for correcting distortion of a wide-angle lens.

ADAS(Advanced Driver Assistance System,先進駕駛輔助系統)是利用安裝在車上的各式各樣的感測器,在第一時間收集車內外的環境資料,進行靜、動態物體的辨識、偵測與追蹤等技術上的處理,從而能夠讓駕駛者在最快的時間察覺到可能發生的危險,有效增加汽車駕駛的舒適性和安全性。因此,ADAS在實現自動駕駛的過程中扮演著非常重要的角色。 ADAS (Advanced Driver Assistance System) uses various sensors installed on the car to collect environmental data inside and outside the car at the first time for the identification, detection and detection of static and dynamic objects. Technical processing such as tracking can enable the driver to detect the possible danger in the fastest time, effectively increasing the comfort and safety of the car. Therefore, ADAS plays a very important role in the realization of autonomous driving.

相關技術中,典型的ADAS系統一般在車輛前端設有三攝像頭,視場角度大概為42度、60度和120度,如果需要雙目視覺,攝像頭的數目還需要加倍;每攝像頭配備有一2MP(Mega-Pixels,百萬像素),即200萬像素的CMOS感測器。 In related technologies, a typical ADAS system generally has three cameras at the front of the vehicle, and the field of view angles are approximately 42 degrees, 60 degrees, and 120 degrees. If binocular vision is required, the number of cameras needs to be doubled; each camera is equipped with a 2MP (Mega -Pixels (megapixels), which is a 2-megapixel CMOS sensor.

然而,相關技術中的設置存在很大的冗餘度,如42度相機本身的視場被60度相機和120度相機視場所覆蓋,使得複數相機不但增加了系統連接的複雜度以及各相機之間通訊和同步的複雜度,而且使整個系統的成本隨之升 高,並且各相機之間需要很好的保證視場的重疊,導致相互之間需要有一固定的角度關係,同時整體和汽車本身也要保證角度,因此需要定期的做相機之間以及相機與車體之間的矯正,三相機矯正的本身導致相對複雜且工作量大,亟待解決。 However, there is a lot of redundancy in the related technology settings. For example, the field of view of the 42-degree camera is covered by the field of view of the 60-degree camera and the 120-degree camera. This makes the multiple cameras not only increase the complexity of the system connection and the various cameras. The complexity of communication and synchronization, and the cost of the entire system High, and the cameras need to ensure a good overlap of the field of view, resulting in a fixed angular relationship between each other, at the same time the overall and the car itself must also ensure the angle, so it is necessary to regularly do between the camera and camera and car Inter-body correction, the three-camera correction itself results in relatively complicated and heavy workload, which needs to be solved urgently.

本發明旨在至少在一定程度上解決相關技術中的技術問題之一。 The present invention aims to solve at least one of the technical problems in the related technology.

為此,本發明的一目的在於提出一種廣角鏡頭的畸變矯正方法,該方法可以實現廣角鏡頭的中心視場取樣速率高於邊緣,從而可使用一相機系統代替三相機系統。 For this reason, an object of the present invention is to propose a method for correcting distortion of a wide-angle lens. This method can realize that the sampling rate of the central field of view of the wide-angle lens is higher than the edge, so that a one-camera system can be used instead of a three-camera system.

本發明的另一目的在於提出一種廣角鏡頭的畸變矯正裝置。 Another object of the present invention is to provide a distortion correction device for a wide-angle lens.

本發明的再一目的在於提出一種廣角鏡頭的畸變矯正系統。 Another object of the present invention is to provide a distortion correction system for a wide-angle lens.

為達到上述目的,本發明一方面實施例提出了一種廣角鏡頭的畸變矯正方法,包括以下步驟:獲取廣角鏡頭的n個半視場角θ1至θn,其中,θn為θ(n-1)的相鄰半視場角,並根據該n個半視場角θ1至θn獲取該相鄰視場比值β1至β(n-1),n為正整數;根據該n個半視場角θ1至θn得到該n個半視場角對應的像高r1至rn;根據該相鄰視場比值β1至β(n-1)和該n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和該相鄰半視場角的像高關係通過遞迴計算得到該每半視場角的像高;根據該每半視場角的像高依次矯正該廣角鏡頭在中心視場的畸變。 To achieve the above object, an embodiment of the present invention provides a method for correcting distortion of a wide-angle lens, including the following steps: obtaining n half-field angles θ 1 to θ n of the wide-angle lens, where θ n is θ (n-1) Adjacent half-field angles of angles, and obtain the adjacent field-view ratios β 1 to β (n-1) according to the n half-field angles θ 1 to θ n , where n is a positive integer; according to the n half-field angles Field angles θ 1 to θ n obtain the image heights r 1 to r n corresponding to the n half field angles; according to the adjacent field ratio β 1 to β (n-1) and the n half field angles Get the image height relationship of the adjacent half field angles from the image heights r 1 to r n , and recursively calculate each half according to the image height relationship corresponding to the maximum field angle and the image height relationship of the adjacent half field angles. The image height of the field of view angle; sequentially corrects the distortion of the wide-angle lens in the central field of view according to the image height of each half of the field of view angle.

本發明實施例的廣角鏡頭的畸變矯正方法,可以根據相鄰視場比 值和複數半視場角對應的像高得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高,從而根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變,實現了廣角鏡頭中心視場的取樣速率高於邊緣,提高矯正的準確性和可靠性的同時,提高矯正效率,有效降低成本,簡單易實現。 The distortion correction method of the wide-angle lens according to the embodiment of the present invention can be based on the adjacent field of view ratio. Value and the image height corresponding to the complex half field of view angle to obtain the image height relationship of adjacent half field angles, and based on the relationship between the image height corresponding to the maximum field angle and the image height relationship of adjacent half field angles, each The image height at half field angle, so that the distortion of the wide field lens in the central field of view is corrected sequentially according to the image field height of each half field of view, so that the sampling rate of the central field of view of the wide angle lens is higher than the edge, which improves the accuracy and reliability of the correction. At the same time, improving correction efficiency and effectively reducing costs is simple and easy to implement.

另外,根據本發明上述實施例的廣角鏡頭的畸變矯正方法還可以具有以下附加的技術特徵:進一步地,在本發明的一實施例中,該獲取廣角鏡頭的n個半視場角θ1至θn,進一步包括:收集該廣角鏡頭的最大視場角和預設個數的相鄰視場角;根據該廣角鏡頭的最大視場角得到該半視場角θ1,並根據該預設個數的相鄰視場角得到半視場角θ2至θnIn addition, the method for correcting the distortion of the wide-angle lens according to the above embodiment of the present invention may also have the following additional technical features: Further, in an embodiment of the present invention, the n half-field angles θ 1 to θ n of the wide-angle lens are obtained. Further comprising: collecting the maximum field angle of the wide-angle lens and a preset number of adjacent field angles; obtaining the half field angle θ 1 according to the maximum field angle of the wide-angle lens, and according to the phase of the preset number The adjacent field angles give the half field angles θ 2 to θ n .

進一步地,在本發明的一實施例中,該根據該相鄰視場比值β1至β(n-1)和該n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,進一步包括:通過視場角關係式對該n個半視場角對應的像高r1至rn進行取樣處理,其中,該取樣處理採用插值方法;根據該視場角關係式得到相鄰半視場角的像高關係式。 Further, in an embodiment of the present invention, the adjacent halves are obtained according to the adjacent field ratios β 1 to β (n-1) and the image heights r 1 to r n corresponding to the n half field angles. The image height relationship of the viewing angle further includes: performing sampling processing on the image heights r 1 to r n corresponding to the n half viewing angles according to the viewing angle relationship, wherein the sampling processing adopts an interpolation method; The field angle relation gives the image height relation of the adjacent half field angles.

進一步地,在本發明的一個實施例中,該視場角關係式為: 以此類推, Further, in an embodiment of the present invention, the field angle relationship is: And so on,

進一步地,在本發明的一實施例中,該相鄰半視場角的像高關係式為: 並且,該根據最大視場角對應的像高和該相鄰半視場角的像高關係通過遞迴計算得到該每半視場角的像高: 其中,r(n-1)為半視場角θ(n-1)對應的像高,rn為半視場角θn對應的像高,β 1為θ1和θ2的比值,β 2為θ2和θ3的比值,β (n-1)為θ(n-1)和θn的比值。 Further, in an embodiment of the present invention, the image height relationship of the adjacent half-field angles is: In addition, the image height of each half field angle is obtained by recursively calculating the relationship between the image height corresponding to the maximum field angle and the image height of the adjacent half field angle: Among them, r (n-1) is the image height corresponding to the half field angle θ (n-1) , r n is the image height corresponding to the half field angle θ n , β 1 is the ratio of θ 1 and θ 2 , β 2 is a ratio of θ 2 and θ 3 , and β ( n -1) is a ratio of θ (n-1) and θ n .

進一步地,在本發明的一實施例中,該最大視場角大於等於70°。 Further, in an embodiment of the present invention, the maximum field angle is greater than or equal to 70 °.

進一步地,在本發明的一實施例中,該最大視場角大於等於100°且小於等於190°。 Further, in an embodiment of the present invention, the maximum field angle is 100 ° or more and 190 ° or less.

為達到上述目的,本發明另一方面實施例提出了一種廣角鏡頭的畸變矯正裝置,包括:收集模組,用於獲取廣角鏡頭的n個半視場角θ1至θn,其中,θn為θ(n-1)的相鄰半視場角,並根據該n個半視場角θ1至θn獲取該相鄰視場比值β1至β(n-1),n為正整數;獲取模組,用於根據該n個半視場角θ1至θn得到該n個半視場角對應的像高r1至rn;計算模組,用於根據該相鄰視場比值β1至β(n-1)和該n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,並根據最大視場角對應 的像高和該相鄰半視場角的像高關係通過遞迴計算得到該每半視場角的像高;矯正模組,用於根據該每半視場角的像高依次矯正該廣角鏡頭在中心視場的畸變。 In order to achieve the above object, an embodiment of another aspect of the present invention proposes a distortion correction device for a wide-angle lens, including: a collection module for obtaining n half-field angles θ 1 to θ n of the wide-angle lens, where θ n is θ (n-1) adjacent half field angles, and obtain the adjacent field ratios β 1 to β (n-1) according to the n half field angles θ 1 to θ n , where n is a positive integer; A module for obtaining the image heights r 1 to r n corresponding to the n half field angles θ 1 to θ n according to the n half field angles θ; 1 to β (n-1) and the image heights r 1 to r n corresponding to the n half field angles are used to obtain the image height relationship of the adjacent half field angles, and according to the image height corresponding to the maximum field angle and the phase The image height relationship of the adjacent half field angles is obtained through the recursive calculation of the image height of each half field angle; a correction module is used to sequentially correct the distortion of the wide-angle lens in the central field of view according to the image height of each half field angle. .

本發明實施例的廣角鏡頭的畸變矯正裝置,可以根據相鄰視場比值和複數半視場角對應的像高得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高,從而根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變,實現了廣角鏡頭中心視場的取樣速率高於邊緣,提高矯正的準確性和可靠性的同時,提高矯正效率,有效降低成本,簡單易實現。 The distortion correction device for the wide-angle lens according to the embodiment of the present invention can obtain the image height relationship of the adjacent half field angles according to the adjacent field ratio and the image height corresponding to the complex half field angle, and according to the image height corresponding to the maximum field angle The relationship between the image height of adjacent half-field angles and the image height of each half-field angle is calculated recursively, so that the distortion of the wide-angle lens in the central field of view is corrected in turn according to the image height of each half-field angle, and the wide-angle lens center view is realized. The sampling rate of the field is higher than the edge. While improving the accuracy and reliability of the correction, the correction efficiency is improved, the cost is effectively reduced, and it is simple and easy to implement.

另外,根據本發明上述實施例的廣角鏡頭的畸變矯正裝置還可以具有以下附加的技術特徵:進一步地,在本發明的一實施例中,該收集模組,進一步包括:收集單元,用於收集該廣角鏡頭的最大視場角;選取單元,用於根據該廣角鏡頭的最大視場角得到該半視場角θ1,並根據相鄰的前一項半視場角θ(n-1)得到半視場角θnIn addition, the distortion correction device for the wide-angle lens according to the above embodiment of the present invention may also have the following additional technical features: Further, in an embodiment of the present invention, the collecting module further includes: a collecting unit for collecting the The maximum field angle of the wide-angle lens; a selection unit for obtaining the half field angle θ 1 according to the maximum field angle of the wide angle lens, and obtaining the half field angle according to the adjacent previous half field angle θ (n-1) Field angle θ n .

進一步地,在本發明的一實施例中,該計算模組,進一步包括:處理單元,用於通過視場角關係式對該n個半視場角對應的像高r1至rn進行取樣處理,其中,該取樣處理採用插值方法;獲取單元,用於根據該視場角關係式得到相鄰半視場角的像高關係式。 Further, in an embodiment of the present invention, the calculation module further includes: a processing unit, configured to sample the image heights r 1 to r n corresponding to the n half field angles according to the field angle relation formula. Processing, in which the sampling process adopts an interpolation method; and an obtaining unit, configured to obtain an image height relationship of adjacent half-field angles according to the view angle relationship.

進一步地,在本發明的一個實施例中,該視場角關係式為: 以此類推, Further, in an embodiment of the present invention, the field angle relationship is: And so on,

進一步地,在本發明的一實施例中,該相鄰半視場角的像高關係式為: 並且,該根據最大視場角對應的像高和該相鄰半視場角的像高關係通過遞迴計算得到該每半視場角的像高: 其中,r(n-1)為半視場角θ(n-1)對應的像高,rn為半視場角θn對應的像高,β 1為θ1和θ2的比值,β 2為θ2和θ3的比值,β (n-1)為θ(n-1)和θn的比值。 Further, in an embodiment of the present invention, the image height relationship of the adjacent half-field angles is: In addition, the image height of each half field angle is obtained by recursively calculating the relationship between the image height corresponding to the maximum field angle and the image height of the adjacent half field angle: Among them, r (n-1) is the image height corresponding to the half field angle θ (n-1) , r n is the image height corresponding to the half field angle θ n , β 1 is the ratio of θ 1 and θ 2 , β 2 is a ratio of θ 2 and θ 3 , and β ( n -1) is a ratio of θ (n-1) and θ n .

進一步地,在本發明的一實施例中,該最大視場角大於或等於70°。 Further, in an embodiment of the present invention, the maximum field angle is greater than or equal to 70 °.

進一步地,在本發明的一實施例中,該最大視場角大於等於100°且小於等於190°。 Further, in an embodiment of the present invention, the maximum field angle is 100 ° or more and 190 ° or less.

為達到上述目的,本發明再一方面實施例提出一種廣角鏡頭的畸 變矯正系統,其包括上述的廣角鏡頭的畸變矯正裝置矯正過的廣角鏡頭和像素感測器。 In order to achieve the above object, another embodiment of the present invention provides a distortion of a wide-angle lens. A variable correction system includes the wide-angle lens and the pixel sensor corrected by the distortion correction device of the wide-angle lens.

本發明實施例的廣角鏡頭的畸變矯正系統,可以根據相鄰視場比值和複數半視場角對應的像高得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高,從而根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變,實現了廣角鏡頭中心視場的取樣速率高於邊緣,提高矯正的準確性和可靠性的同時,提高矯正效率,有效降低成本,簡單易實現。 The distortion correction system of the wide-angle lens according to the embodiment of the present invention can obtain the image height relationship of the adjacent half field angles according to the adjacent field ratio and the image height corresponding to the complex half field angle, and according to the image height corresponding to the maximum field angle The relationship between the image height of adjacent half-field angles and the image height of each half-field angle is calculated recursively, so that the distortion of the wide-angle lens in the central field of view is corrected in turn according to the image height of each half-field angle, and the wide-angle lens center view is realized. The sampling rate of the field is higher than the edge. While improving the accuracy and reliability of the correction, the correction efficiency is improved, the cost is effectively reduced, and it is simple and easy to implement.

進一步地,在本發明的一實施例中,該廣角鏡頭從物側到像側依次包括第一透鏡、第二透鏡、第三透鏡、光圈、第四透鏡、第五透鏡、第六透鏡、第七透鏡、濾光片。 Further, in an embodiment of the present invention, the wide-angle lens includes a first lens, a second lens, a third lens, an aperture, a fourth lens, a fifth lens, a sixth lens, and a seventh lens in order from the object side to the image side. Lenses, filters.

進一步地,在本發明的一實施例中,該第一透鏡、該第二透鏡和該第七透鏡均採用非球面透鏡。 Further, in an embodiment of the present invention, the first lens, the second lens, and the seventh lens are all aspherical lenses.

本發明附加的方面和優點將在下面的描述中部分給出,部分將從下面的描述中變得明顯,或通過本發明的實踐瞭解到。 Additional aspects and advantages of the present invention will be given in part in the following description, part of which will become apparent from the following description, or be learned through the practice of the present invention.

10‧‧‧廣角鏡頭的畸變矯正裝置 10‧‧‧Distortion correction device for wide-angle lens

100‧‧‧收集模組 100‧‧‧ Collection Module

200‧‧‧獲取模組 200‧‧‧Get Module

300‧‧‧計算模組 300‧‧‧ Computing Module

400‧‧‧矯正模組 400‧‧‧correction module

CMOS‧‧‧Complementary Metal Oxide Semiconductor,互補金屬氧化物半導體 CMOS‧‧‧Complementary Metal Oxide Semiconductor

L1、L2、L3、L4、L5、L6、L7‧‧‧透鏡 L1, L2, L3, L4, L5, L6, L7‧‧‧ lenses

S1‧‧‧光圈 S1‧‧‧ aperture

S2‧‧‧濾光片 S2‧‧‧ Filter

S101、S102、S103、S104‧‧‧步驟 S101, S102, S103, S104‧‧‧ steps

本發明上述的和/或附加的方面和優點從下面結合附圖對實施例的描述中將變得明顯和容易理解,其中:第1圖為根據本發明實施例的廣角鏡頭的畸變矯正方法的流程圖; 第2圖為根據本發明一實施例的廣角鏡頭在相鄰視場角的像高關係示意圖;第3圖為根據本發明實施例的廣角鏡頭的畸變矯正裝置的結構示意圖;第4圖為根據本發明一實施例的採用遞迴畸變矯正的廣角鏡頭的結構示意圖;第5圖為根據本發明一具體實施例的廣角鏡頭畸變矯正系統在降取樣前的格點圖示意圖;以及第6圖為根據本發明一具體實施例的廣角鏡頭畸變矯正系統在降取樣後的格點圖示意圖。 The above and / or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments with reference to the accompanying drawings, wherein: FIG. 1 is a flow chart of a method for correcting a distortion of a wide-angle lens according to an embodiment of the present invention Figure; FIG. 2 is a schematic diagram of the relationship between the image height of a wide-angle lens according to an embodiment of the present invention at adjacent field angles; FIG. 3 is a schematic structural diagram of a distortion correction device of the wide-angle lens according to an embodiment of the present invention; FIG. 5 is a schematic structural view of a wide-angle lens using recursive distortion correction; FIG. 5 is a schematic diagram of a grid point of a wide-angle lens distortion correction system before down-sampling according to a specific embodiment of the present invention; Schematic diagram of the grid pattern of the wide-angle lens distortion correction system in a specific embodiment after downsampling.

下面詳細描述本發明的實施例,該實施例的示例在附圖中示出,其中自始至終相同或類似的標號表示相同或類似的元件或具有相同或類似功能的元件。下面通過參考附圖描述的實施例是示例性的,旨在用於解釋本發明,而不能理解為對本發明的限制。 An embodiment of the present invention is described in detail below. An example of the embodiment is shown in the drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are exemplary and are intended to explain the present invention, but should not be construed as limiting the present invention.

在介紹本發明實施例的廣角鏡頭的畸變矯正方法、裝置及系統之前,先簡單介紹下相關技術中的廣角鏡頭的畸變矯正方法。 Before introducing the method, device, and system for correcting the distortion of the wide-angle lens according to the embodiments of the present invention, the method for correcting the distortion of the wide-angle lens in the related art will be briefly introduced.

市場上和ADAS系統攝像頭配備的像素數為2MP的感測器本身尺寸約為1/3",並且下一代即將推出的感測器,像素數為8MP。基於此,能否設計一款相機,使用一高像素感測器相機而達到現有三感測器相機的效果?如果簡單的根據像素的疊加,那麼最新的8MP感測器的像素數已經超過了三2MP 感測器的總和。然而,8MP的感測器可以滿足最大視場角120°的像素要求,但是不一定滿足中心視場角60°和42°的2MP的像素要求。 The sensor equipped with 2MP pixels on the market and ADAS system camera is about 1/3 "in size, and the next-generation sensor will be launched with 8MP pixels. Based on this, can you design a camera, Using a high-pixel sensor camera to achieve the effect of the existing three-sensor camera? If simply based on the superposition of pixels, then the number of pixels of the latest 8MP sensor has exceeded three 2MP The sum of the sensors. However, an 8MP sensor can meet the pixel requirements of a maximum field angle of 120 °, but may not meet the 2MP pixel requirements of a central field angle of 60 ° and 42 °.

相關技術中,典型的成像光學系統存在靠近中心視場的取樣速率低、邊緣取樣速率高的問題,同時邊緣的照度也會由於視場角的加大而下降。如果成像系統按照理想畸變曲線矯正(r=f*tanθθ為半視場角),假設120度橫向視場的相對像高為1,那麼中心60度全視場所對應的相對像高為tan(30°)/tan(60°)0.333,中心42度全視場對應像高tan(21°)/tan(60°)0.222。如此以來,120度時8MP的圖片,在截取了中心對應60度的區域後僅為0.9MP,對應於42度全視場更是下降到了0.4MP。這種理想畸變的矯正方法顯然無法實現最初的要求。 In the related art, a typical imaging optical system has the problems of a low sampling rate near the center of the field of view and a high sampling rate at the edge, and at the same time, the illuminance at the edge also decreases due to the increase of the field angle. If the imaging system is corrected according to the ideal distortion curve ( r = f * tanθ , θ is the half field angle), assuming that the relative image height of the 120-degree horizontal field of view is 1, then the relative image height corresponding to the 60-degree center of view field is tan (30 °) / tan (60 °) 0.333, 42 degree center of view full field of view corresponds to image height tan (21 °) / tan (60 °) 0.222. In this way, the image of 8MP at 120 degrees is only 0.9MP after intercepting the area corresponding to 60 degrees in the center, and the full field of view corresponding to 42 degrees has dropped to 0.4MP. This method of correcting the ideal distortion obviously cannot meet the original requirements.

類似的,如果系統按照完美的f-theta畸變矯正(r=f*θθ為半視場角)方法,那麼中心60度全視場所對應的相對像高為(30°)/(60°)=0.5,中心42度全視場對應像高(21°)/(60°)=0.35,於是120度時8MP的圖片,在截取了中心對應60度區域後為2MP,在截取中心對應的42度視場後為1MP,f-theta畸變矯正方法,顯然也無法達到最初的期望。 Similarly, if the system is based on the perfect f-theta distortion correction ( r = f * θ , θ is the half field angle) method, the relative image height corresponding to the full field of view at the center of 60 degrees is (30 °) / (60 ° ) = 0.5, the full field of view at the center of 42 degrees corresponds to the image height (21 °) / (60 °) = 0.35, so the 8MP picture at 120 degrees is 2MP after the center corresponds to the 60 degree area, and the corresponding at the intercept center 1MP after 42-degree field of view, the f-theta distortion correction method obviously did not meet the original expectations.

綜合來看,相關技術中的理想畸變矯正方法和f-theta畸變矯正方法最主要的問題是邊緣過高的取樣速率。對於理想畸變矯正而言,邊緣取樣速率高於中心視場,即邊緣使力過大;對於f-theta畸變矯正,則是邊緣和中心取樣速率一致,即均勻使力。 In summary, the main problem of the ideal distortion correction method and f-theta distortion correction method in the related art is the high sampling rate of the edges. For ideal distortion correction, the edge sampling rate is higher than the central field of view, that is, the edge makes the force too large; for f-theta distortion correction, the edge and center sampling rate are the same, that is, the force is uniform.

本發明正是基於上述問題,而提出的一種廣角鏡頭的畸變矯正方法及裝置。 The present invention is based on the above-mentioned problems, and proposes a distortion correction method and device for a wide-angle lens.

下面參照附圖描述根據本發明實施例提出的廣角鏡頭的畸變矯正方法、裝置及系統,首先將參照附圖描述根據本發明實施例提出的廣角鏡頭的畸變矯正方法。 The distortion correction method, device, and system of the wide-angle lens according to the embodiments of the present invention are described below with reference to the drawings. First, the distortion correction method of the wide-angle lens according to the embodiments of the present invention will be described with reference to the drawings.

第1圖是本發明實施例的廣角鏡頭的畸變矯正方法的流程圖。 FIG. 1 is a flowchart of a distortion correction method of a wide-angle lens according to an embodiment of the present invention.

如第1圖所示,該廣角鏡頭的畸變矯正方法包括以下步驟: As shown in Figure 1, the distortion correction method of the wide-angle lens includes the following steps:

在步驟S101中,獲取廣角鏡頭的n個半視場角θ1至θn,其中,θn為θ(n-1)的相鄰半視場角,並根據n個半視場角θ1至θn獲取相鄰視場比值β1至β(n-1),n為正整數。 In step S101, n half-field angles θ 1 to θ n of the wide-angle lens are obtained, where θ n is an adjacent half-field angle θ (n-1) , and according to the n half-field angles θ 1 to θ n obtains adjacent field ratios β 1 to β (n-1) , where n is a positive integer.

進一步地,在本發明的一實施例中,獲取廣角鏡頭的n個半視場角θ1至θn,進一步包括:收集廣角鏡頭的最大視場角和該預設個數的相鄰視場角;根據廣角鏡頭的最大視場角得到半視場角θ1,並根據該預設個數的相鄰視場角得到半視場角θ2至θnFurther, in an embodiment of the present invention, acquiring n half field angles θ 1 to θ n of the wide-angle lens further includes: collecting the maximum field angle of the wide-angle lens and the preset number of adjacent field angles; The half field angle θ1 is obtained according to the maximum field angle of the wide-angle lens, and the half field angles θ 2 to θ n are obtained according to the preset number of adjacent field angles.

較佳地,在本發明的一實施例中,最大視場角大於或等於70°。 Preferably, in an embodiment of the present invention, the maximum field angle is greater than or equal to 70 °.

較佳地,在本發明的一實施例中,最大視場角大於等於100°且小於等於190°。 Preferably, in an embodiment of the present invention, the maximum field angle is 100 ° or more and 190 ° or less.

可以理解的是,廣角鏡頭又稱短焦距鏡頭,是視場角度大於60°的鏡頭;對於攝像機上的變焦鏡頭而言是焦距小於25mm的部分,廣角鏡頭的使用有利於近距離表現大範圍景物,並且廣角鏡頭適於展現畫面主體及其所處的環境,利用廣角鏡頭景深的特點,可以對物體進行多層次的表現,增加畫面的容量和資訊量;利用廣角鏡頭近距離接近拍攝物件,可以完成搶拍和偷拍;同時有利於維持移動攝像的平穩畫面。 It can be understood that a wide-angle lens, also known as a short focal length lens, is a lens with a field of view greater than 60 °; for a zoom lens on a camera, the focal length is less than 25mm. The use of a wide-angle lens is conducive to the performance of large-scale scenes at close range, The wide-angle lens is suitable for displaying the main body of the picture and its environment. Using the characteristics of the depth of field of the wide-angle lens, you can perform multi-level representation of objects, increasing the capacity and information of the picture; using the wide-angle lens to approach the object at close range, you can complete snap shots and candid shots. ; At the same time, it is conducive to maintaining a smooth picture of mobile photography.

可以理解的是,本發明實施例可以首先獲取廣角鏡頭的最大HFOV(Horizontal Field Of View,視場角),並依次選取n個廣角鏡頭相鄰的半視場角,如依次選取廣角鏡頭相鄰的半視場角θ 1θ 2 θ n ,其中,θ 1=HFOV/2,n>=3,θ 1>θ 2>θ 3>...>θ n ,需要說明的是,廣角鏡頭的最大視場角可以大於或等於70°,較佳的廣角鏡頭的最大視場角大於等於100°且小於等於190°。 It can be understood that, in the embodiment of the present invention, the maximum HFOV (Horizontal Field Of View) of the wide-angle lens can be obtained first, and the half field angles adjacent to the n wide-angle lenses can be sequentially selected. Field angle θ 1 , θ 2 θ n , where θ 1 = HFOV / 2, n > = 3, θ 1 > θ 2 > θ 3 >...> θ n , it should be noted that the maximum field angle of the wide-angle lens can be greater than or equal to 70 ° The maximum field angle of the preferred wide-angle lens is 100 ° or more and 190 ° or less.

在步驟S102中,根據n個半視場角θ1至θn得到n個半視場角對應的像高r1至rnIn step S102, the n according to the half field angle θ 1 to obtain [theta] n n half angle of view corresponding to the image height r 1 to r n.

在步驟S103中,根據相鄰視場比值β1至β(n-1)和n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高。 In step S103, the image height relationship between the adjacent half field angles is obtained according to the adjacent field ratios β 1 to β (n-1) and the image heights r 1 to r n corresponding to the n half field angles, and according to The relationship between the image height corresponding to the maximum field angle and the image height of the adjacent half-field angles is obtained by recursively calculating the image height of each half-field angle.

進一步地,在本發明的一實施例中,根據相鄰視場比值β1至β(n-1)和n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,進一步包括:通過視場角關係式對n個半視場角對應的像高r1至rn進行取樣處理,其中,取樣處理採用插值方法;根據視場角關係式得到相鄰半視場角的像高關係式。 Further, in an embodiment of the present invention, the adjacent half field angles are obtained according to the adjacent field ratios β 1 to β (n-1) and the image heights r 1 to r n corresponding to the n half field angles. The image height relationship further includes: performing sampling processing on the image heights r 1 to r n corresponding to n half field angles through the field angle relationship formula, wherein the sampling processing adopts an interpolation method; and the phase is obtained according to the field angle relationship formula. Image height relationship of adjacent half field angle.

進一步地,在本發明的一個實施例中,視場角關係式為: 以此類推, Further, in an embodiment of the present invention, the field angle relationship is: And so on,

其中,在本發明的一實施例中,相鄰半視場角的像高關係式為: 並且,根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高: 其中,r(n-1)為半視場角θ(n-1)對應的像高,rn為半視場角θn對應的像高,β 1為θ1和θ2的比值,β 2為θ2和θ3的比值,β (n-1)為θ(n-1)和θn的比值。 Wherein, in an embodiment of the present invention, the relationship between the image heights of adjacent half-field angles is: In addition, according to the relationship between the image height corresponding to the maximum field angle and the image height relationship of adjacent half field angles, the image height of each half field angle is calculated recursively: Among them, r (n-1) is the image height corresponding to the half field angle θ (n-1) , r n is the image height corresponding to the half field angle θ n , β 1 is the ratio of θ 1 and θ 2 , β 2 is a ratio of θ 2 and θ 3 , and β ( n -1) is a ratio of θ (n-1) and θ n .

可以理解的是,本發明實施例可以根據依次選取n個廣角鏡頭相鄰的半視場角θ 1θ 2 θ n ,並定義n個半視場角θ 1θ 2 θ n 的每半視場角對應的像高r 1r 2 r n ,其中,θ 1=HFOV/2,n>=3,θ 1>θ 2>θ 3>...>θ n ,相鄰半視場角的像高關係示意圖如第2圖所示。 It can be understood that according to the embodiment of the present invention, the half-field angles θ 1 and θ 2 adjacent to the n wide-angle lenses can be selected in sequence. θ n , and define n half field angles θ 1 , θ 2 Image heights r 1 , r 2 corresponding to each half field angle of θ n r n , where θ 1 = HFOV / 2, n > = 3, θ 1 > θ 2 > θ 3 >...> θ n , the schematic diagram of the image height relationship between adjacent half field angles is shown in Fig. 2 .

另外,本發明實施例可以定義相鄰視場比值依次為:β 1=θ 1/θ 2β 2=θ 2/θ 3 β (n-1)=θ (n-1)/θ n ,從而根據相鄰半視場角的比值對n個半視場角的像高通過插值進行取樣處理,以得到關係式,其中,對廣角鏡頭的n個半視場角的像高通過插值進行取樣處理可以通過以下關係式得到實現: In addition, in the embodiment of the present invention, the ratios of the adjacent fields of view may be defined as follows: β 1 = θ 1 / θ 2 , β 2 = θ 2 / θ 3 , Β ( n -1) = θ ( n -1) / θ n , so that the image heights of n half-field angles are sampled by interpolation according to the ratio of adjacent half-field angles to obtain the relationship, where The sampling processing of the image heights of the n half-field angles of the wide-angle lens by interpolation can be achieved by the following relationship:

…… ...

其中,r1為半視場角θ1對應的像高,r2為半視場角θ2對應的像高,r3為半視場角θ3對應的像高,r(n-1)為半視場角θ(n-1)對應的像高,rn為半視場角θn對應的像高,β 1為θ1和θ2的比值,β 2為θ2和θ3的比值,β (n-1)為θ(n-1)和θn的比值,n為大於等於3的整數。 Among them, r 1 is the image height corresponding to the half field angle θ 1 , r 2 is the image height corresponding to the half field angle θ 2 , r 3 is the image height corresponding to the half field angle θ 3 , and r (n-1) Is the image height corresponding to the half field angle θ (n-1) , r n is the image height corresponding to the half field angle θ n , β 1 is the ratio of θ 1 and θ 2 and β 2 is the ratio of θ 2 and θ 3 The ratio β ( n -1) is a ratio of θ (n-1) and θ n , and n is an integer of 3 or more.

需要說明的是,關係式(3)的含義為高解析度的中心小視場θ n 對應的像高r n ,在相鄰的大視場θ (n-1)時可以進行降取樣,線性降取樣的倍率為視場比值β (n-1),而新加入的大視場像高(r (n-1)-r n )部分,理想狀況下不需要重新取樣,即不會浪費現有的像素解析度,其結果是大視場θ (n-1)本身實現和相鄰小視場θ n 完全一致的像素解析度,即降取樣後的大視場像高等於r n Incidentally, the meaning of the relation (3) is the center of a small field of high resolution corresponding to image height θ n r n, can be down-sampled at adjacent large field of view (n -1) θ, linear The downsampling magnification is the field ratio β ( n -1) , and the newly added large field image height ( r ( n -1) -r n ) part, ideally does not need to be resampled, that is, it will not waste the existing As a result, the large field of view θ ( n -1) itself achieves a pixel resolution that is completely consistent with the adjacent small field of view θ n , that is, the image height of the large field of view after downsampling is equal to r n .

另外,本發明實施例可以將上述關係式(1)至(3)進一步優化,獲得相鄰半視場角的像高關係: In addition, in the embodiment of the present invention, the above-mentioned relational expressions (1) to (3) can be further optimized to obtain the image height relationship of adjacent half-field angles:

…… ...

也就是說,由於已知廣角鏡頭最大半視場角對應的像高為r 1,從而本發明實施例可以通過遞迴計算像高關係: That is, since the image height corresponding to the maximum half-field angle of the wide-angle lens is known to be r 1 , the embodiment of the present invention can calculate the image height relationship by recursion:

在步驟S104中,根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變。 In step S104, the distortion of the wide-angle lens in the central field of view is sequentially corrected according to the image height of each half of the field of view.

可以理解的是,本發明實施例可以根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變。 It can be understood that the embodiment of the present invention can sequentially correct the distortion of the wide-angle lens in the central field of view according to the image height of each half of the field of view.

舉例而言,本發明實施例採用遞迴畸變矯正的廣角鏡頭系統,並且較佳為8MP的CMOS(Complementary Metal Oxide Semiconductor,互補金屬氧化物半導體)感測器和最大視場角為120度的廣角鏡頭組成的光學系統,可以實現有效替換三鏡頭(視場角分別為120度、60度和42度)和三2MP感測器的系統,也即要實現整個廣角鏡頭的視場為120度,對應的解析度為8MP,中心60度和42度的小視場,同樣可實現中心2MP的解像度;具體步驟如下:首先,本發明實施例選取廣角鏡頭的最大視場角120度的一半θ 1為60度,其半視場角對應的像高為r 1;相鄰的中視場角60度的一半θ 2為30度,其半視場角對應的像高為r 2;中心小視場角42度的一半θ 3為21度,其半視場角對應的像高為r 3;從而得到相鄰視場比值:β 1=θ 1/θ 2=60/30=2,β 2=θ 2/θ 3=30/21=10/7; 其次,本發明實施例對半視場角θ 2θ 3對應的像高分別進行取樣處理,通過以下關係式處理: For example, the embodiment of the present invention uses a wide-angle lens system with recursive distortion correction, and is preferably composed of a 8MP CMOS (Complementary Metal Oxide Semiconductor) sensor and a wide-angle lens with a maximum field angle of 120 degrees. The optical system can effectively replace the three-lens (field of view angles of 120 degrees, 60 degrees, and 42 degrees) and three 2MP sensor systems, that is, to achieve the entire wide-angle lens field of view of 120 degrees, the corresponding analysis degrees 8MP, center 60 degrees and 42 degrees Small field, can achieve the same resolution center 2MP; the following steps: first, the maximum angle of view embodiment selected the wide angle lens of the embodiment of the present invention is 120 degrees half θ 1 is 60 degrees, The image height corresponding to its half field angle is r 1 ; half of the adjacent middle field angle of 60 degrees θ 2 is 30 degrees, and the image height corresponding to its half field angle is r 2 ; the center small field angle is 42 degrees The half θ 3 is 21 degrees, and the image height corresponding to the half field angle is r 3 ; thus, the ratio of adjacent fields of view is obtained: β 1 = θ 1 / θ 2 = 60/30 = 2, β 2 = θ 2 / θ 3 = 30/21 = 10/7; Secondly, in the embodiment of the present invention, the half field angles θ 2 and θ 3 are The corresponding image height is sampled separately and processed by the following relationship:

將上述關係式進一步優化,以獲得相鄰半視場角的像高關係: The above relationship is further optimized to obtain the image height relationship of adjacent half-field angles:

由於已知廣角鏡頭最大半視場角對應的像高為r 1,通過遞迴計算像高關係: Since it is known that the image height corresponding to the maximum half field angle of the wide-angle lens is r 1 , the relationship of the image height is calculated recursively:

從而根據求得的每半視場角的像高依次對上述廣角鏡頭進行畸變矯正設計。 Therefore, the above-mentioned wide-angle lens is subjected to a distortion correction design according to the obtained image height of each half of the field angle.

根據關係式(12)和(13),假設120度視場角對應的像高r 1為1,那相鄰的60度視場角對應的歸一化像高r 2=2/3*r 1 0.6667;在計算中心42度視場角的像高時,本發明實施例可以採取遞迴演算法,對應的歸一化像高r 1=10/13*2/3*r 1=20/390.5128。 According to the relational expressions (12) and (13), assuming that the image height r 1 corresponding to the 120-degree field of view angle is 1, the normalized image height r 2 corresponding to the adjacent 60-degree field of view angle r 2 = 2/3 * r 1 0.6667; when calculating the image height of the center of view angle of 42 degrees, the embodiment of the present invention can adopt a recursive algorithm, and the corresponding normalized image height r 1 = 10/13 * 2/3 * r 1 = 20/39 0.5128.

另外,本發明實施例提供的遞迴畸變矯正方法與相關技術中的常 見畸變矯正方法帶來的有益效果如表1所示。由於這種畸變要求是基於系統的非線性取樣提出的,並不是以人眼的本身喜好而來,而是完全針對機器視覺,而且本發明實施例採用的這種取樣的具體實現是插值,而插值點本身是非線性的分佈,因此可以提前計算出插值位置從而提高速度。表1為本發明實施例的遞迴畸變控制與相關技術中的畸變控制的像高對比表。 In addition, the recursive distortion correction method provided by the embodiment of the present invention and the See Table 1 for the beneficial effects of distortion correction methods. Because this distortion requirement is based on the system's non-linear sampling, it is not based on the human eye's own preference, but is completely aimed at machine vision. Moreover, the specific implementation of this sampling used in the embodiment of the present invention is interpolation, and The interpolation point itself is a non-linear distribution, so the interpolation position can be calculated in advance to increase the speed. Table 1 is a comparison table of the image heights of the recursive distortion control in the embodiment of the present invention and the distortion control in the related art.

本發明實施例採用的是像素數為8MP的CMOS感測器及最大視場角為120度的廣角鏡頭,如果將像高關係換算成像素關係,比如安森美8MP的ARO820,像素為3840*2160,那麼半視場的像素為1920*1080,可以得到本發明實施例的遞迴畸變控制與相關技術中的畸變控制像素的對應關係,如表2所示。表2為本發明實施例的遞迴畸變控制與相關技術中的畸變控制的橫向像素對比表。 This embodiment of the present invention uses a CMOS sensor with 8MP pixels and a wide-angle lens with a maximum field of view of 120 degrees. If the image height relationship is converted into a pixel relationship, such as the ARO820 from ON Semiconductor's 8MP, the pixels are 3840 * 2160. Then the pixels of the half-field of view are 1920 * 1080, and the correspondence between the recursive distortion control and the distortion control pixels in the related technology according to the embodiment of the present invention can be obtained, as shown in Table 2. Table 2 is a horizontal pixel comparison table between the recursive distortion control and the distortion control in the related art according to the embodiment of the present invention.

從表1和表2可以看出,本發明實施例採用的遞迴畸變矯正控制的結果是可以保證廣角鏡頭中心部分在截取後實現2MP的解析度。具體而言,根據表2可知,如果只截取中心部分半視場角21度以內的資訊,則對應像素數為985,和安森美2MP的AR0231的964(1928/2)像素基本一致。也就是說,這部分所包含的像素資訊量和單獨為之設計一鏡頭並配備AR0231是一致的。 As can be seen from Tables 1 and 2, the result of the recursive distortion correction control used in the embodiment of the present invention is to ensure that the central part of the wide-angle lens achieves a resolution of 2MP after being intercepted. Specifically, according to Table 2, it can be seen that if only the information within the central half-field angle of 21 degrees is intercepted, the corresponding number of pixels is 985, which is basically the same as the 964 (1928/2) pixels of AR0231 of ON Semiconductor 2MP. In other words, the amount of pixel information contained in this section is the same as if you designed a lens and equipped it with AR0231.

進一步地,對於半視場角30度,在對中心21度部分降取樣後,所包含像素一樣為985(985*7/10+1280-985=985)。類似的,在60度視場情況下,對30度視場降取樣以後的有效像素分辨同樣為985。 Further, for a half field of view angle of 30 degrees, after down-sampling the 21 degree part of the center, the included pixels are also 985 (985 * 7/10 + 1280-985 = 985). Similarly, in a 60-degree field of view, the effective pixel resolution after down-sampling a 30-degree field of view is also 985.

綜上,本發明實施例提供的採用非線性遞迴畸變矯正的廣角鏡頭,120度視場角對應的解析度為8MP,截取中心42度的小視場,可以實現中心2MP的解像度;對中心42度視場做降取樣,並結合相鄰60度視場資訊,同樣可實現2MP的解像度;進一步對這個60度視場的圖像降取樣,結合60度和120度之間的資訊,能夠實現全視場的2MP解析度。因此,本發明實施例可以由一更高像素的感測器和一遞迴畸變矯正的廣角鏡頭取代複數低像素的感測器和複數鏡頭系統。 In summary, the wide-angle lens with non-linear recursive distortion correction provided by the embodiment of the present invention has a resolution of 8MP at a 120-degree field of view angle and a small field of view of 42 degrees at the center, which can achieve a resolution of 2MP at the center; for the center 42 Down-sampling the field of view and combining the adjacent 60-degree field of view information can also achieve 2MP resolution; further down-sampling this 60-degree field of view image, combining information between 60 and 120 degrees, can achieve 2MP resolution for full field of view. Therefore, in the embodiments of the present invention, a higher-pixel sensor and a recursive distortion-correcting wide-angle lens can replace the plurality of low-pixel sensors and the plurality of lens systems.

由於中心部分取樣速率更高,在降取樣的過程中,可以加入去雜訊的演算法,解決由於像素尺寸減小而引起的暗雜訊(dark noise)增大的問題。比如中心部分像素的取均值(binning)。舉例而言,如果是兩倍的降取樣,可以簡單的先對中心部分做一2×2的矩陣核(Kernel)卷積,然後取樣。 Because the sampling rate of the central part is higher, in the process of downsampling, a noise reduction algorithm can be added to solve the problem of increasing dark noise due to the reduction in pixel size. For example, the binning of the pixels in the center. For example, if it is double downsampling, you can simply do a 2 × 2 matrix kernel (Kernel) convolution on the center part, and then sample.

一典型的應用場景是白天光線充足時,中心部分比如42度視場 角內解像力足夠,信號強度足夠,ADAS系統可以看的很遠;晚上光線不足,由於車燈路燈的照度限制,42度的相機看的雖遠,但是獲得的照片雜訊很大,照度不夠,此時可以對60度視場進行降取樣處理,去除部分雜訊。此時雖然犧牲了42度以內中心部分的解像力,但是提高了系統的低光敏感度。由於夜間行車速度可以低一些,所需要辨別的物體解像力低些也是可以接受的。更進一步,如果照度更低,可見度更差,可以基於120度視場的情況,對中心的60度和42度同時去雜訊和降取樣。 A typical application scenario is when the daylight is sufficient, the central part such as a 42 degree field of view The resolution in the angle is sufficient, the signal strength is sufficient, and the ADAS system can see far away; at night, there is insufficient light. Due to the limitation of the illuminance of the headlights and street lights, the 42-degree camera can look far, but the obtained photos are very noisy and the illumination is not enough. At this time, down-sampling can be performed on the 60-degree field of view to remove some noise. At this time, although the resolution of the central part within 42 degrees was sacrificed, the low light sensitivity of the system was improved. Since the driving speed at night can be lower, the resolution of the objects to be discriminated is lower. Furthermore, if the illuminance is lower and the visibility is worse, based on the 120-degree field of view, the center 60-degree and 42-degree can be de-noised and down-sampled simultaneously.

換言之,本發明實施例可以用一8MP的CMOS晶片,現在產生了三2MP的圖像,分別對應於42度視場、60度視場和120度視場。光線充足時可以同時用42度視場和120度視場服務ADAS系統,此時42度視場保證ADAS系統可以看的很遠。光線稍弱時靠60度視場和120度視場。光線非常弱的時候可以只靠120度視場產生的2MP圖像。此時8MP的感測器晶片,像素尺寸為2.1um,實現的效果相當於對感測器做了2×2的取均值(binning),有效像素尺寸為4.2um,這個尺寸和低光表現非常好的AR0220晶片是一致的。 In other words, an embodiment of the present invention can use an 8MP CMOS chip, and now produces three 2MP images, which respectively correspond to a 42-degree field of view, a 60-degree field of view, and a 120-degree field of view. When the light is sufficient, the 42-degree field of view and the 120-degree field of view can serve the ADAS system at the same time. At this time, the 42-degree field of view ensures that the ADAS system can see far. When the light is weak, it depends on the field of view of 60 degrees and 120 degrees. When the light is very weak, you can rely on a 2MP image generated by a 120-degree field of view. At this time, the 8MP sensor chip has a pixel size of 2.1um, and the effect achieved is equivalent to a 2 × 2 binning of the sensor, and the effective pixel size is 4.2um. This size and low-light performance are very good. Good AR0220 wafers are consistent.

與相關技術中的畸變矯正控制方法相比,本發明實施例的廣角鏡頭畸變矯正方法還具有以下有益效果:(1)本發明實施例有效矯正了廣角鏡頭的畸變,實現了中心視場的取樣速率高於邊緣,使廣角鏡頭中心視場的解析度可以隨系統需要實現定量調節;(2)由於很大度數的資訊被壓縮到了中心視場比較小的區域,使得鏡頭系統的相對照度可以甚至大於1,使得在光學設計時可以提高CRA(Chief Ray Angle,光線入射角),從而減小系統的總長,使整個系統更緊湊。 Compared with the distortion correction control method in the related art, the wide-angle lens distortion correction method of the embodiment of the present invention also has the following beneficial effects: (1) The embodiment of the present invention effectively corrects the distortion of the wide-angle lens and achieves a high sampling rate of the central field of view At the edges, the resolution of the central field of view of the wide-angle lens can be quantitatively adjusted as the system needs; (2) The large degree of information is compressed to a relatively small center field of view, making the contrast of the lens system even greater than 1, This makes it possible to increase the CRA (Chief Ray Angle) during optical design, thereby reducing the overall length of the system and making the entire system more compact.

以表2為例,在實際的光學鏡頭設計中,對畸變的控制可以加入幾個關鍵點,具體需要控制的是1920像素和985像素處的像高,如需要可以加入1280像素處畸變點,保證畸變曲線在此三點中光滑過渡。 Taking Table 2 as an example, in the actual optical lens design, several key points can be added to the distortion control. The specific needs to control the image height at 1920 pixels and 985 pixels. If necessary, the distortion point at 1280 pixels can be added. Ensure that the distortion curve transitions smoothly in these three points.

這裡強調對1280像素處畸變無需嚴格控制,主要原因是此處接近中心視場,即21度半視場和30度半視場距離很近,對主光線的有效控制可能有一定挑戰。換言之,即使30度的視場無法有效控制,其直接結果就是在對30度視場取樣時,所得到的圖片的大小超過2MP(比如3MP),這種情況很容易由後續的數文書處理進行進一步矯正;另外一可以考慮的折衷是對30度半視場嚴格控制,而21度半視場本身就比較難做畸變矯正,其後果是21度半視場所切割出來的圖片本身沒有2MP。具體方案的選擇,需要本領域技術人員根據實際情況進行決定,但是,60度處的畸變是實現這個演算法的一關鍵,此處畸變需要有效控制。 It is emphasized here that there is no need to strictly control the distortion at 1280 pixels, the main reason is that it is close to the central field of view, that is, the 21-degree half field of view and the 30-degree half field of view are very close, and effective control of the main light may have certain challenges. In other words, even if the 30-degree field of view cannot be effectively controlled, the direct result is that when the 30-degree field of view is sampled, the size of the obtained picture exceeds 2MP (such as 3MP). This situation can be easily handled by subsequent mathematical processing. Further correction; Another compromise that can be considered is the strict control of the 30-degree half-field of view, while the 21-degree half-field of view itself is more difficult to do distortion correction, and the consequence is that the picture cut out of the 21-degree half-view field itself does not have 2MP. The choice of a specific scheme needs to be determined by those skilled in the art according to the actual situation, but distortion at 60 degrees is a key to achieving this algorithm, and distortion needs to be effectively controlled here.

根據本發明實施例提出的廣角鏡頭的畸變矯正方法,可以根據相鄰視場比值和複數半視場角對應的像高得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高,從而根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變,實現了廣角鏡頭中心視場的取樣速率高於邊緣,使廣角鏡頭中心視場的解析度可以隨系統需要實現定量調節,並且可以通過提高光線入射角以減小系統的總長,使整個系統更緊湊;通過一高像素相機有效取代複數低像素相機,節省ADAS系統成本的同時簡化了系統矯正和系統計算方面的要求,提高矯正的準確性和可靠性的同時,提高矯正效率,有效降低成本,簡單易實現。 According to the method for correcting a distortion of a wide-angle lens according to an embodiment of the present invention, an image height relationship of adjacent half-field angles can be obtained according to an adjacent field-of-view ratio and an image height corresponding to a complex half-field angle, and according to a maximum field-of-view angle corresponding The relationship between the image height and the image height of adjacent half-field angles is calculated recursively to obtain the image height of each half-field angle, so that according to the image height of each half-field angle, the distortion of the wide-angle lens in the central field of view is corrected in order, and a wide-angle lens is realized. The sampling rate of the central field of view is higher than the edge, so that the resolution of the central field of view of the wide-angle lens can be quantitatively adjusted according to the needs of the system, and the total angle of the system can be reduced by increasing the incident angle of the light, making the entire system more compact; through a high pixel The camera effectively replaces the complex low-pixel camera, saves the cost of ADAS system, simplifies the requirements of system correction and system calculation, improves the accuracy and reliability of correction, improves the correction efficiency, effectively reduces the cost, and is easy to implement.

其次參照附圖描述根據本發明實施例提出的廣角鏡頭的畸變矯正裝置。 Next, a distortion correction device for a wide-angle lens according to an embodiment of the present invention will be described with reference to the drawings.

第3圖是本發明實施例的廣角鏡頭的畸變矯正裝置的結構示意圖。 FIG. 3 is a schematic structural diagram of a distortion correction device for a wide-angle lens according to an embodiment of the present invention.

如第3圖所示,該廣角鏡頭的畸變矯正裝置10包括:收集模組100、獲取模組200、計算模組300和矯正模組400。 As shown in FIG. 3, the distortion correction device 10 for the wide-angle lens includes a collection module 100, an acquisition module 200, a calculation module 300, and a correction module 400.

其中,收集模組100用於獲取廣角鏡頭的n個半視場角θ1至θn,其中,θn為θ(n-1)的相鄰半視場角,並根據n個半視場角θ1至θn獲取相鄰視場比值β1至β(n-1),n為正整數。獲取模組200用於根據n個半視場角θ1至θn得到n個半視場角對應的像高r1至rn。計算模組300用於根據相鄰視場比值β1至β(n-1)和n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高。矯正模組400用於根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變。本發明實施例的裝置10可以根據相鄰半視場角的像高關係矯正廣角鏡頭在中心視場的畸變,使得中心視場的取樣速率高於邊緣,降低成本,簡單易實現。 The collection module 100 is configured to obtain n half-field angles θ 1 to θ n of the wide-angle lens, where θ n is an adjacent half-field angle of θ (n-1) , and according to the n half-field angles θ 1 to θ n obtain adjacent field ratios β 1 to β (n-1) , where n is a positive integer. N acquisition module 200 for obtaining a half angle of view corresponding to the image height r 1 to r n n The half field angle θ 1 to θ n. The calculation module 300 is configured to obtain the image height relationship of the adjacent half field angles according to the adjacent field ratios β 1 to β (n-1) and the image heights r 1 to r n corresponding to the n half field angles, and According to the relationship between the image height corresponding to the maximum field angle and the image height relationship of adjacent half-field angles, the image height of each half-field angle is obtained through recursive calculation. The correction module 400 is used to sequentially correct the distortion of the wide-angle lens in the central field of view according to the image height of each half of the field of view. The device 10 according to the embodiment of the present invention can correct the distortion of the wide-angle lens in the central field of view according to the image height relationship of the adjacent half-field angles, so that the sampling rate of the central field of view is higher than the edge, which reduces costs and is simple and easy to implement.

進一步地,在本發明的一實施例中,收集模組100進一步包括:收集單元和選取單元。其中,收集單元用於收集廣角鏡頭的最大視場角和預設個數的相鄰視場角。選取單元用於根據廣角鏡頭的最大視場角得到半視場角θ1,並根據預設個數的相鄰視場角得到半視場角θ2至θnFurther, in an embodiment of the present invention, the collection module 100 further includes: a collection unit and a selection unit. The collection unit is configured to collect a maximum field angle of the wide-angle lens and a preset number of adjacent field angles. The selecting unit is configured to obtain a half field angle θ 1 according to a maximum field angle of the wide-angle lens, and obtain half field angles θ 2 to θ n according to a preset number of adjacent field angles.

進一步地,在本發明的一實施例中,計算模組300進一步包括: 處理單元和計算單元。其中,處理單元用於通過視場角關係式對n個半視場角對應的像高r1至rn進行取樣處理,其中,取樣處理採用插值方法。獲取單元用於根據視場角關係式得到相鄰半視場角的像高關係式。 Further, in an embodiment of the present invention, the calculation module 300 further includes: a processing unit and a calculation unit. The processing unit is configured to perform sampling processing on the image heights r 1 to r n corresponding to the n half-view angles by using the field angle relation formula, wherein the sampling process adopts an interpolation method. The obtaining unit is used to obtain the image height relationship of adjacent half-field angles according to the view angle relationship.

進一步地,在本發明的一個實施例中,視場角關係式為: 以此類推, Further, in an embodiment of the present invention, the field angle relationship is: And so on,

進一步地,在本發明的一實施例中,相鄰半視場角的像高關係式為: 並且,根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高: 其中,r(n-1)為半視場角θ(n-1)對應的像高,rn為半視場角θn對應的像高,β 1為θ1和θ2的比值,β 2為θ2和θ3的比值,β (n-1)為θ(n-1)和θn的比值。 Further, in an embodiment of the present invention, the relationship between the image heights of adjacent half field angles is: In addition, according to the relationship between the image height corresponding to the maximum field angle and the image height relationship of adjacent half field angles, the image height of each half field angle is calculated recursively: Among them, r (n-1) is the image height corresponding to the half field angle θ (n-1) , r n is the image height corresponding to the half field angle θ n , β 1 is the ratio of θ 1 and θ 2 , β 2 is a ratio of θ 2 and θ 3 , and β ( n -1) is a ratio of θ (n-1) and θ n .

進一步地,在本發明的一實施例中,最大視場角大於或等於70°。 Further, in an embodiment of the present invention, the maximum field angle is greater than or equal to 70 °.

進一步地,在本發明的一實施例中,最大視場角大於等於100°且小於等於190°。 Further, in an embodiment of the present invention, the maximum field angle is 100 ° or more and 190 ° or less.

需要說明的是,前述對廣角鏡頭的畸變矯正方法實施例的解釋說明也適用於該實施例的廣角鏡頭的畸變矯正裝置,此處不再贅述。 It should be noted that, the foregoing explanation of the embodiment of the method for correcting distortion of a wide-angle lens is also applicable to the device for correcting distortion of a wide-angle lens of this embodiment, and details are not described herein again.

根據本發明實施例提出的廣角鏡頭的畸變矯正裝置,可以根據相鄰視場比值和複數半視場角對應的像高得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高,從而根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變,實現了廣角鏡頭中心視場的取樣速率高於邊緣,使廣角鏡頭中心視場的解析度可以隨系統需要實現定量調節,並且可以通過提高光線入射角以減小系統的總長,使整個系統更緊湊。 According to the distortion correction device of the wide-angle lens provided by the embodiment of the present invention, the relationship between the image heights of adjacent half-field angles can be obtained according to the adjacent field-of-view ratio and the image height corresponding to the complex half-field angle, and according to the maximum field-of-view angle corresponding The relationship between the image height and the image height of adjacent half-field angles is calculated recursively to obtain the image height of each half-field angle, so that according to the image height of each half-field angle, the distortion of the wide-angle lens in the central field of view is corrected in order, and a wide-angle lens is realized. The sampling rate of the central field of view is higher than the edge, so that the resolution of the central field of view of the wide-angle lens can be quantitatively adjusted as the system needs, and the total length of the system can be reduced by increasing the incident angle of the light, making the entire system more compact.

此外,本發明實施例還提出了一種廣角鏡頭的畸變矯正系統,該系統包括上述的廣角鏡頭的畸變矯正裝置矯正過的廣角鏡頭和像素感測器。 In addition, an embodiment of the present invention also proposes a distortion correction system for a wide-angle lens. The system includes a wide-angle lens and a pixel sensor corrected by the distortion correction device of the wide-angle lens.

進一步地,在本發明的一實施例中,採用上述畸變矯正裝置矯正過的廣角鏡頭從物側到像側依次包括第一透鏡、第二透鏡、第三透鏡、光圈、第四透鏡、第五透鏡、第六透鏡、第七透鏡、濾光片。 Further, in an embodiment of the present invention, the wide-angle lens corrected by using the distortion correction device includes a first lens, a second lens, a third lens, an aperture, a fourth lens, and a fifth lens in order from the object side to the image side. , Sixth lens, seventh lens, and filter.

進一步地,在本發明的一實施例中,第一透鏡、第二透鏡和第七透鏡均採用非球面透鏡。 Further, in an embodiment of the present invention, the first lens, the second lens, and the seventh lens are all aspheric lenses.

進一步地,在本發明的一實施例中,該第一透鏡、該第二透鏡、該第七透鏡的非球面表面形狀均滿足下列方程式: 其中,z為半徑所對應的曲率,h為徑向座標,c為曲面頂點的曲率,K為圓錐二次曲線係數,B、C、D、E分別表示四階、六階、八階、十階徑向座標所對應的係數。 Further, in an embodiment of the present invention, the aspheric surface shapes of the first lens, the second lens, and the seventh lens all satisfy the following equations: Among them, z is the curvature corresponding to the radius, h is the radial coordinate, c is the curvature of the vertex of the surface, K is the conic quadric curve coefficient, and B, C, D, and E respectively represent fourth, sixth, eighth, and ten The coefficient corresponding to the radial coordinate of the first order.

可以理解的是,如第4圖所示,本發明實施例採用的遞迴畸變矯正的廣角鏡頭(最大視場角為120度)從物側到成像面依次包括:第一透鏡L1、第二透鏡L2、第三透鏡L3、光圈S1、第四透鏡L4、第五透鏡L5、第六透鏡L6、第七透鏡L7、濾光片S2,並且第一透鏡L1、第二透鏡L2、第七透鏡L7為非球面透鏡。本發明實施例的廣角鏡頭中各鏡片的設計參數如表3所示,各透鏡的非球面參數如表4所示。 It can be understood that, as shown in FIG. 4, the wide-angle lens for recursive distortion correction (the maximum field angle is 120 degrees) used in the embodiment of the present invention includes the first lens L1 and the second lens in order from the object side to the imaging surface. L2, third lens L3, aperture S1, fourth lens L4, fifth lens L5, sixth lens L6, seventh lens L7, filter S2, and first lens L1, second lens L2, seventh lens L7 Aspheric lens. The design parameters of each lens in the wide-angle lens of the embodiment of the present invention are shown in Table 3, and the aspheric parameters of each lens are shown in Table 4.

進一步地,如第5圖所示,小x是主光線對視場的一均勻取樣,在投影到了CMOS感測器後,由於畸變的存在,整體發生了形變,結果是中心部分沒有太大畸變,一小x可以對應大概9個像素的取樣,因此解析度高,而邊上的一小x只對應一像素的取樣,解析度低,圖中的黑色小方格代表一像素。在經過降取樣後,這些小x又會均勻的分佈,重建的圖像如第6圖所示。這個重新取樣的頻率,可以計算為((30/21)*(60/30))^2=8.2。因此,本發明實施例提供的廣角鏡頭,在重新取樣後同時實現了畸變的矯正。 Further, as shown in FIG. 5, small x is a uniform sampling of the field of view by the main ray. After being projected onto the CMOS sensor, due to the existence of distortion, the entire deformation occurs, and as a result, there is not much distortion in the central part. A small x can correspond to a sample of about 9 pixels, so the resolution is high, while a small x on the side only corresponds to a sample of one pixel, and the resolution is low. The small black square in the figure represents a pixel. After downsampling, these small x will be evenly distributed, and the reconstructed image is shown in Figure 6. This resampling frequency can be calculated as ((30/21) * (60/30)) ^ 2 = 8.2. Therefore, the wide-angle lens provided by the embodiment of the present invention simultaneously achieves correction of distortion after resampling.

表5是本實施例提供的廣角鏡頭在不同半視場角時對應的像高及像素參數,從表5中可以看出,本發明實施例的廣角鏡頭和本發明遞迴畸變矯正方法的理論值基本一致,說明本發明實施例的遞迴畸變矯正方法能夠有效矯正廣角鏡頭在中心視場的畸變,能夠實現中心視場的取樣速率高於邊緣的取樣 速率。 Table 5 is the corresponding image height and pixel parameters of the wide-angle lens provided in this embodiment at different half-field angles. As can be seen from Table 5, the theoretical values of the wide-angle lens of the embodiment of the invention and the recursive distortion correction method of the invention are basic. Consistent, it shows that the recursive distortion correction method of the embodiment of the present invention can effectively correct the distortion of the wide-angle lens in the central field of view, and the sampling rate of the central field of view can be higher than that of the edge. rate.

舉例而言,在本發明的另一實施例中,通過採用遞迴畸變矯正的廣角鏡頭,並且假定採用一160度的廣角鏡頭和12.4MP的CMOS感測器的系統,如果依然保持中心42度視場的解析度為2MP,那麼根據表6可知,如果增加橫向視場到160度以後,感測器需要的像素為4802*2702,即12.4MP。另外如果保持橫向視場120度不變,在感測器增加到12MP以後,中心42度的視場的像素數目也增加到3MP。因此,下一代廣角鏡頭產品的發展可以有兩個方向,一是提高視場覆蓋,保持中心解像度;二是保持視場覆蓋,提高中心解像度。需要說明的是,本發明實施例可以根據ADAS的發展和演算法決定更適合的方案。 For example, in another embodiment of the present invention, by using a wide-angle lens with recursive distortion correction, and assuming a system of a 160-degree wide-angle lens and a 12.4MP CMOS sensor, if the central 42-degree field of view is still maintained The resolution is 2MP. According to Table 6, if the horizontal field of view is increased to 160 degrees, the pixels required by the sensor are 4802 * 2702, which is 12.4MP. In addition, if the horizontal field of view is maintained at 120 degrees, after the sensor is increased to 12 MP, the number of pixels in the central field of view of 42 degrees is also increased to 3 MP. Therefore, the development of next-generation wide-angle lens products can have two directions. One is to increase the field of view coverage and maintain the center resolution; the second is to maintain the field of view coverage and improve the center resolution. It should be noted that, in the embodiment of the present invention, a more suitable solution may be determined according to the development of the ADAS and the algorithm.

根據表6可知,在HFOV達到160度的時候,如果需要保證中心42度有2MP的覆蓋,那麼整個感測器像素為4802*2702(即12.4MP)。 According to Table 6, when the HFOV reaches 160 degrees, if it is necessary to ensure 2MP coverage at the center of 42 degrees, the entire sensor pixel is 4802 * 2702 (that is, 12.4MP).

需要說明的是,前述對廣角鏡頭的畸變矯正方法實施例的解釋說明也適用於該實施例的廣角鏡頭的畸變矯正系統,此處不再贅述。 It should be noted that the foregoing explanation of the embodiment of the method for correcting the distortion of the wide-angle lens is also applicable to the distortion correction system of the wide-angle lens of this embodiment, and details are not described herein again.

根據本發明實施例提出的廣角鏡頭的畸變矯正系統,可以根據相鄰視場比值和複數半視場角對應的像高得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和相鄰半視場角的像高關係通過遞迴計算得到每半視場角的像高,從而根據每半視場角的像高依次矯正廣角鏡頭在中心視場的畸變,實現了廣角鏡頭中心視場的取樣速率高於邊緣,使廣角鏡頭中心視場的解析度可以隨系統需要實現定量調節,並且可以通過提高光線入射角以減小系統的總長,使整個系統更緊湊;通過一高像素相機有效取代複數低像素相機,節省ADAS系統成本的同時簡化了系統矯正和系統計算方面的要求,提高矯正的準確性和可靠性的同時,提高矯正效率,有效降低成本,簡單易實現。 According to the distortion correction system of the wide-angle lens according to the embodiment of the present invention, the image height relationship of the adjacent half-field angles can be obtained according to the adjacent field-of-view ratio and the image height corresponding to the complex half-field angle. The relationship between the image height and the image height of adjacent half-field angles is calculated recursively to obtain the image height of each half-field angle, so that according to the image height of each half-field angle, the distortion of the wide-angle lens in the central field of view is corrected in order, and a wide-angle lens is realized. The sampling rate of the central field of view is higher than the edge, so that the resolution of the central field of view of the wide-angle lens can be quantitatively adjusted according to the needs of the system, and the total angle of the system can be reduced by increasing the incident angle of the light, making the entire system more compact; through a high pixel The camera effectively replaces the complex low-pixel camera, saves the cost of ADAS system, simplifies the requirements of system correction and system calculation, improves the accuracy and reliability of correction, improves the correction efficiency, effectively reduces the cost, and is easy to implement.

在本發明的描述中,需要理解的是,術語“中心”、“縱向”、“橫向”、“長度”、“寬度”、“厚度”、“上”、“下”、“前”、“後”、“左”、“右”、“垂直”、“水準”、“頂”、“底”、“內”、“外”、“順時針”、“逆時針”、“軸向”、“徑向”、“周向”等指示的方位或位置關係為基於附圖所示的方位或位置關係,僅是為了便於描述本發明和簡化描述,而不是指示或暗示所指的裝置或元件必須具有特定的方 位、以特定的方位構造和操作,因此不能理解為對本發明的限制。 In the description of the present invention, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", " Rear "," left "," right "," vertical "," level "," top "," bottom "," inside "," outside "," clockwise "," counterclockwise "," axial ", The azimuth or position relationship indicated by "radial", "circumferential", etc. is based on the azimuth or position relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply the device or element referred to. Must have a specific approach Position, structure and operation in a specific orientation, so it cannot be understood as a limitation of the present invention.

此外,術語“第一”、“第二”僅用於描述目的,而不能理解為指示或暗示相對重要性或者隱含指明所指示的技術特徵的數量。由此,限定有“第一”、“第二”的特徵可以明示或者隱含地包括至少一該特徵。在本發明的描述中,“複數”的含義是至少兩個,例如兩個,三等,除非另有明確具體的限定。 In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless it is specifically and specifically defined otherwise.

在本發明中,除非另有明確的規定和限定,術語“安裝”、“相連”、“連接”、“固定”等術語應做廣義理解,例如,可以是固定連接,也可以是可拆卸連接,或成一體;可以是機械連接,也可以是電連接;可以是直接相連,也可以通過中間媒介間接相連,可以是兩個元件內部的連通或兩個元件的相互作用關係,除非另有明確的限定。對於本領域的普通技術人員而言,可以根據具體情況理解上述術語在本發明中的具體含義。 In the present invention, the terms "installation", "connected", "connected", "fixed" and other terms shall be understood in a broad sense unless otherwise specified and defined, for example, they may be fixed connections or removable connections , Or integrated; it can be mechanical or electrical; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of the two elements or the interaction between the two elements, unless otherwise specified The limit. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.

在本發明中,除非另有明確的規定和限定,第一特徵在第二特徵“上”或“下”可以是第一和第二特徵直接接觸,或第一和第二特徵通過中間媒介間接接觸。而且,第一特徵在第二特徵“之上”、“上方”和“上面”可是第一特徵在第二特徵正上方或斜上方,或僅僅表示第一特徵水準高度高於第二特徵。第一特徵在第二特徵“之下”、“下方”和“下面”可以是第一特徵在第二特徵正下方或斜下方,或僅僅表示第一特徵水準高度小於第二特徵。 In the present invention, unless explicitly stated and defined otherwise, the first feature "on" or "down" of the second feature may be the first and second features in direct contact, or the first and second features indirectly through an intermediate medium. contact. Moreover, the first feature is "above", "above", and "above" the second feature. The first feature is directly above or obliquely above the second feature, or simply indicates that the level of the first feature is higher than the second feature. The “below”, “below”, and “below” of the first feature may be directly below or obliquely below the second feature, or simply indicate that the level of the first feature is smaller than the second feature.

在本說明書的描述中,參考術語“一實施例”、“一些實施例”、“示例”、“具體示例”、或“一些示例”等的描述意指結合該實施例或示例描述的具體特徵、結構、材料或者特點包含於本發明的至少一實施例或示例中。在本說明書中,對上述術語的示意性表述不必須針對的是相同的實施例或示例。而且, 描述的具體特徵、結構、材料或者特點可以在任一或複數實施例或示例中以合適的方式結合。此外,在不相互矛盾的情況下,本領域的技術人員可以將本說明書中描述的不同實施例或示例以及不同實施例或示例的特徵進行結合和組合。 In the description of this specification, the description with reference to the terms “an embodiment”, “some embodiments”, “examples”, “specific examples”, or “some examples” and the like means specific features described in conjunction with the embodiments or examples , Structures, materials, or features are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. and, The specific features, structures, materials, or characteristics described may be combined in any suitable manner in any or multiple embodiments or examples. In addition, without any contradiction, those skilled in the art may combine and combine different embodiments or examples and features of the different embodiments or examples described in this specification.

儘管上面已經示出和描述了本發明的實施例,可以理解的是,上述實施例是示例性的,不能理解為對本發明的限制,本領域的普通技術人員在本發明的範圍內可以對上述實施例進行變化、修改、替換和變型。 Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present invention. Those skilled in the art can interpret the above within the scope of the present invention. Embodiments are subject to change, modification, substitution, and modification.

Claims (13)

一種廣角鏡頭的畸變矯正方法,其特徵在於,包括以下步驟:獲取一廣角鏡頭的n個半視場角θ1至θn,其中,θn為θ(n-1)的一相鄰半視場角,並根據該n個半視場角θ1至θn獲取該相鄰視場比值β1至β(n-1),n為正整數;根據該n個半視場角θ1至θn得到該n個半視場角對應的像高r1至rn;根據該相鄰視場比值β1至β(n-1)和該n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和該相鄰半視場角的像高關係通過遞迴計算得到該每半視場角的像高;以及根據該每半視場角的像高依次矯正該廣角鏡頭在中心視場的畸變;其中,該根據該相鄰視場比值β1至β(n-1)和該n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,進一步包括:通過一視場角關係式對該n個半視場角對應的像高r1至rn進行一取樣處理,其中,該取樣處理採用插值方法;根據該視場角關係式得到相鄰半視場角的像高關係式;該相鄰半視場角的像高關係式為:並且,該根據最大視場角對應的像高和該相鄰半視場角的像高關係通過遞迴計算得到該每半視場角的像高:其中,r(n-1)為半視場角θ(n-1)對應的像高,rn為半視場角θn對應的像高,β 1為θ1和θ2的比值,β 2為θ2和θ3的比值,β (n-1)為θ(n-1)和θn的比值。A method for correcting distortion of a wide-angle lens, comprising the following steps: obtaining n half-field angles θ 1 to θ n of a wide-angle lens, where θ n is an adjacent half-field angle of θ (n-1) , n and the half field angle θ 1 to obtain [theta] n of the adjacent fields of view according to a ratio β 1 to β (n-1), n is a positive integer; n the basis of the half field angle θ 1 to [theta] n Get the image heights r 1 to r n corresponding to the n half field angles; according to the adjacent field ratio β 1 to β (n-1) and the image heights r 1 to r corresponding to the n half field angles n Obtain the image height relationship of adjacent half field angles, and recursively calculate the image height of each half field angle according to the image height relationship corresponding to the maximum field angle and the image height relationship of the adjacent half field angle; And sequentially correct the distortion of the wide-angle lens in the central field of view according to the image height of each half field of view angle; wherein, according to the adjacent field of view ratios β 1 to β (n-1) corresponding to the n half field of view angles Obtaining the image height relationship of the adjacent half-field angles from the image heights r 1 to r n of the image height, further including: sampling the image heights r 1 to r n corresponding to the n half-field angles through a field angle relationship formula Processing, where, Sampling process using the interpolation method; obtain image height relationship adjacent half angle of view according to the viewing angle relationship; image height relationship of the adjacent half angle of view is: In addition, the image height of each half field angle is obtained by recursively calculating the relationship between the image height corresponding to the maximum field angle and the image height of the adjacent half field angle: Among them, r (n-1) is the image height corresponding to the half field angle θ (n-1) , r n is the image height corresponding to the half field angle θ n , β 1 is the ratio of θ 1 and θ 2 , β 2 is a ratio of θ 2 and θ 3 , and β ( n -1) is a ratio of θ (n-1) and θ n . 如申請專利範圍第1項所述之廣角鏡頭的畸變矯正方法,其中,該獲取廣角鏡頭的n個半視場角θ1至θn,進一步包括:收集該廣角鏡頭的最大視場角和預設個數的相鄰視場角;根據該廣角鏡頭的最大視場角得到該半視場角θ1,並根據該預設個數的相鄰視場角得到半視場角θ2至θnThe method for correcting distortion of a wide-angle lens according to item 1 of the scope of the patent application, wherein the obtaining of the n half-field angles θ 1 to θ n of the wide-angle lens further includes: collecting a maximum field angle and a preset number of the wide-angle lens And the half-field angle θ 1 is obtained according to the maximum field-angle of the wide-angle lens, and the half-field angles θ 2 to θ n are obtained according to the preset number of adjacent field angles. 如申請專利範圍第1項所述之廣角鏡頭的畸變矯正方法,其中,該視場角關係式為:以此類推, The distortion correction method of the wide-angle lens according to item 1 of the scope of patent application, wherein the field angle relationship is: And so on, 如申請專利範圍第2項所述之廣角鏡頭的畸變矯正方法,其中,該最大視場角大於或等於70°。The distortion correction method of the wide-angle lens according to item 2 of the scope of the patent application, wherein the maximum field angle is greater than or equal to 70 °. 如申請專利範圍第4項所述之廣角鏡頭的畸變矯正方法,其中,該最大視場角大於等於100°且小於等於190°。The distortion correction method for a wide-angle lens according to item 4 of the scope of the patent application, wherein the maximum field of view angle is 100 ° or more and 190 ° or less. 一種廣角鏡頭的畸變矯正裝置,其特徵在於,包括:一收集模組,用於獲取一廣角鏡頭的n個半視場角θ1至θn,其中,θn為θ(n-1)的一相鄰半視場角,並根據該n個半視場角θ1至θn獲取該相鄰視場比值β1至β(n-1),n為正整數;一獲取模組,用於根據該n個半視場角θ1至θn得到該n個半視場角對應的像高r1至rn;一計算模組,用於根據該相鄰視場比值β1至β(n-1)和該n個半視場角對應的像高r1至rn得到相鄰半視場角的像高關係,並根據最大視場角對應的像高和該相鄰半視場角的像高關係通過遞迴計算得到該每半視場角的像高;以及一矯正模組,用於根據該每半視場角的像高依次矯正該廣角鏡頭在中心視場的畸變;其中,該計算模組,進一步包括:一處理單元,用於通過視場角關係式對該n個半視場角對應的像高r1至rn進行一取樣處理,其中,該取樣處理採用插值方法;一獲取單元,用於根據該視場角關係式得到相鄰半視場角的像高關係式;該相鄰半視場角的像高關係式為:並且,該根據最大視場角對應的像高和該相鄰半視場角的像高關係通過遞迴計算得到該每半視場角的像高:其中,r(n-1)為半視場角θ(n-1)對應的像高,rn為半視場角θn對應的像高,β 1為θ1和θ2的比值,β 2為θ2和θ3的比值,β (n-1)為θ(n-1)和θn的比值。A distortion correction device for a wide-angle lens, comprising: a collection module for obtaining n half field angles θ 1 to θ n of a wide-angle lens, where θ n is a phase of θ (n-1) Adjacent half field angles, and obtain the adjacent field ratios β 1 to β (n-1) according to the n half field angles θ 1 to θ n , where n is a positive integer; an acquisition module is used to The n half-field angles θ 1 to θ n obtain the image heights r 1 to r n corresponding to the n half-field angles; a calculation module is configured to use the adjacent field-of-view ratios β 1 to β (n -1) The image heights r 1 to r n corresponding to the n half-field angles are used to obtain the image height relationship of the adjacent half-field angles, and according to the image height corresponding to the maximum field angle and the adjacent half-field angles The image height relationship of is obtained by recursively calculating the image height of each half field of view angle; and a correction module for sequentially correcting the distortion of the wide-angle lens in the central field of view according to the image height of each half field of view angle; wherein, The calculation module further includes: a processing unit, configured to perform a sampling process on the image heights r 1 to r n corresponding to the n half field angles according to the field angle relationship, wherein the sampling place Interpolation method is used; an acquisition unit is used to obtain the image height relation of adjacent half field angles according to the field angle relation; the image height relation of adjacent half field angles is: In addition, the image height of each half field angle is obtained by recursively calculating the relationship between the image height corresponding to the maximum field angle and the image height of the adjacent half field angle: Among them, r (n-1) is the image height corresponding to the half field angle θ (n-1) , r n is the image height corresponding to the half field angle θ n , β 1 is the ratio of θ 1 and θ 2 , β 2 is a ratio of θ 2 and θ 3 , and β ( n -1) is a ratio of θ (n-1) and θ n . 如申請專利範圍第6項所述之廣角鏡頭的畸變矯正裝置,其中,該收集模組,進一步包括:一收集單元,用於收集該廣角鏡頭的一最大視場角和該預設個數的相鄰視場角;一選取單元,用於根據該廣角鏡頭的最大視場角得到該半視場角θ1,並根據該預設個數的相鄰視場角得到半視場角θ2至θnThe distortion correction device for a wide-angle lens according to item 6 of the scope of patent application, wherein the collection module further includes: a collection unit for collecting a maximum field angle of the wide-angle lens and the preset number of adjacent Field of view angle; a selection unit for obtaining the half field angle θ 1 according to the maximum field angle of the wide-angle lens, and obtaining half field angles θ 2 to θ n according to the preset number of adjacent field angles . 如申請專利範圍第6項所述的廣角鏡頭的畸變矯正裝置,其中,該視場角關係式為:以此類推, The distortion correction device for a wide-angle lens according to item 6 of the scope of patent application, wherein the field angle relationship is: And so on, 如申請專利範圍第7項所述之廣角鏡頭的畸變矯正裝置,其中,該最大視場角大於或等於70°。The distortion correction device for a wide-angle lens according to item 7 of the scope of the patent application, wherein the maximum field angle is greater than or equal to 70 °. 如申請專利範圍第9項所述之廣角鏡頭的畸變矯正裝置,其中,該最大視場角大於等於100°且小於等於190°。The distortion correction device for a wide-angle lens according to item 9 of the scope of the patent application, wherein the maximum field of view angle is 100 ° or more and 190 ° or less. 一種廣角鏡頭的畸變矯正系統,其特徵在於,包括:如申請專利範圍第6項至第10項任一項所述之廣角鏡頭的畸變矯正裝置矯正過的一廣角鏡頭和一像素感測器。A distortion correction system for a wide-angle lens, comprising: a wide-angle lens and a pixel sensor corrected by the distortion correction device of the wide-angle lens according to any one of claims 6 to 10 of the scope of patent application. 如申請專利範圍第11項所述之廣角鏡頭的畸變矯正系統,其中,該廣角鏡頭的畸變矯正裝置矯正過的廣角鏡頭從物側到像側依次包括一第一透鏡、一第二透鏡、一第三透鏡、一光圈、一第四透鏡、一第五透鏡、一第六透鏡、一第七透鏡和一濾光片。The distortion correction system of the wide-angle lens according to item 11 of the scope of the patent application, wherein the wide-angle lens corrected by the distortion correction device of the wide-angle lens includes a first lens, a second lens, and a third lens in order from the object side to the image side. , An aperture, a fourth lens, a fifth lens, a sixth lens, a seventh lens, and a filter. 如申請專利範圍第12項所述之廣角鏡頭的畸變矯正系統,其中,該第一透鏡、該第二透鏡和該第七透鏡均採用非球面透鏡。The distortion correction system of the wide-angle lens according to item 12 of the scope of the patent application, wherein the first lens, the second lens, and the seventh lens are all aspherical lenses.
TW107103694A 2018-02-01 2018-02-01 Wide angle lens distortion correction method, device and system TWI663421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107103694A TWI663421B (en) 2018-02-01 2018-02-01 Wide angle lens distortion correction method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107103694A TWI663421B (en) 2018-02-01 2018-02-01 Wide angle lens distortion correction method, device and system

Publications (2)

Publication Number Publication Date
TWI663421B true TWI663421B (en) 2019-06-21
TW201935072A TW201935072A (en) 2019-09-01

Family

ID=67764226

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107103694A TWI663421B (en) 2018-02-01 2018-02-01 Wide angle lens distortion correction method, device and system

Country Status (1)

Country Link
TW (1) TWI663421B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519486B (en) * 2019-09-19 2021-09-03 Oppo广东移动通信有限公司 Distortion compensation method and device based on wide-angle lens and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012056982A1 (en) * 2010-10-25 2012-05-03 コニカミノルタオプト株式会社 Image processing method, image processing device, and imaging device
CN103283214A (en) * 2011-01-06 2013-09-04 松下电器产业株式会社 Camera, distortion correction device and distortion correction method
US20170004600A1 (en) * 2013-04-15 2017-01-05 Canon Kabushiki Kaisha Image processing apparatus and image processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012056982A1 (en) * 2010-10-25 2012-05-03 コニカミノルタオプト株式会社 Image processing method, image processing device, and imaging device
CN103283214A (en) * 2011-01-06 2013-09-04 松下电器产业株式会社 Camera, distortion correction device and distortion correction method
US20170004600A1 (en) * 2013-04-15 2017-01-05 Canon Kabushiki Kaisha Image processing apparatus and image processing method

Also Published As

Publication number Publication date
TW201935072A (en) 2019-09-01

Similar Documents

Publication Publication Date Title
WO2019148642A1 (en) Distortion correction method, apparatus, and system for wide-angle lens
CN108600576B (en) Image processing apparatus, method and system, and computer-readable recording medium
US9686479B2 (en) Method for combining multiple image fields
JP4247113B2 (en) Method for capturing a panoramic image using a rectangular image sensor
JP6214481B2 (en) Imaging device
CN104778656B (en) Fisheye image correcting method based on spherical perspective projection
TWI720445B (en) Method and device of image fusion in camera device
JP5843454B2 (en) Image processing apparatus, image processing method, and program
CN107483791A (en) A kind of multi-cam module
US10904454B2 (en) Automated polarizer positioning
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
TWI599809B (en) Lens module array, image sensing device and fusing method for digital zoomed images
US8743266B2 (en) Focus extending optical system and EDOF imaging system
WO2019232793A1 (en) Two-camera calibration method, electronic device and computer-readable storage medium
WO2023236508A1 (en) Image stitching method and system based on billion-pixel array camera
CN110376725B (en) Fisheye lens system
TWI663421B (en) Wide angle lens distortion correction method, device and system
CN105472263A (en) Image capture method and image capture device with use of method
CN203376514U (en) Fog-penetrable day and night FA optical system with large imaging surface and high resolution
WO2020184286A1 (en) Imaging device, image capturing optical system, and movable apparatus
WO2014156712A1 (en) Compound optical system and image pickup device
US10748258B2 (en) Method, device and system for correcting distortion of wide-angle lens
JP3805631B2 (en) Multifocal omnidirectional imaging device
CN114660782B (en) Fisheye lens for underwater monitoring, imaging device and image correction method and system
CN112866550B (en) Phase difference acquisition method and apparatus, electronic device, and computer-readable storage medium