CN112288822B - Camera active alignment method combined with calibration - Google Patents

Camera active alignment method combined with calibration Download PDF

Info

Publication number
CN112288822B
CN112288822B CN202011004423.2A CN202011004423A CN112288822B CN 112288822 B CN112288822 B CN 112288822B CN 202011004423 A CN202011004423 A CN 202011004423A CN 112288822 B CN112288822 B CN 112288822B
Authority
CN
China
Prior art keywords
camera
center
checkerboard
image
lens
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011004423.2A
Other languages
Chinese (zh)
Other versions
CN112288822A (en
Inventor
张亮
何洪鑫
赵芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aview Image Technology Suzhou Ltd
Original Assignee
Aview Image Technology Suzhou Ltd
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 Aview Image Technology Suzhou Ltd filed Critical Aview Image Technology Suzhou Ltd
Priority to CN202011004423.2A priority Critical patent/CN112288822B/en
Publication of CN112288822A publication Critical patent/CN112288822A/en
Application granted granted Critical
Publication of CN112288822B publication Critical patent/CN112288822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses a camera active alignment method combined with calibration, which comprises the following steps: providing a test chart card; acquiring image information of a test image card through a camera, determining the position of a central view field test pattern, and moving a lens or an image sensor until the corner point of the central view field test pattern is positioned at the center of the image; obtaining definition change curves of a central view field test pattern and a plurality of peripheral view field test patterns through scanning of a camera in the focal length direction, calculating the inclination angle of a lens and an image sensor according to the definition change curves, and adjusting the parallelism of the lens and the image sensor; and marking a distortion center of the camera through a checkerboard, and adjusting the relative horizontal position of the lens and the image sensor according to the difference between the distortion center and the image center so as to correct the deviation. The active alignment method of the camera combined with calibration can greatly improve the center deviation of the long-focus camera, so that the center of the internal reference of the camera is closer to the center of the image, and the alignment precision is greatly improved.

Description

Camera active alignment method combined with calibration
Technical Field
The invention relates to the technical field of active alignment of cameras, in particular to a camera active alignment method combined with calibration.
Background
With the development of intelligent auxiliary driving, automatic driving and other technologies in the automobile industry, the camera is one of the main vehicle-mounted sensors, and the application field of the camera is also wider and wider. Especially, the front-view camera can be used for ranging, anti-collision and the like, has long focal length and higher requirements on parameters of the camera, and otherwise, the calculation accuracy is reduced.
The traditional active alignment algorithm of the camera uses the imaging position of the test pattern corner of the central area to determine the horizontal positions of the lens and the image sensor, and the method is considered to be optimal when the central test pattern is imaged on the image center, and is feasible for cameras with shorter focal length (such as a look-around camera), but is not applicable for cameras with long focus. In the case of the same inclination of the optical axis, the increase of the focal length of the lens causes the deviation of the center of the camera to increase proportionally. If the camera is aligned in a conventional manner, the center marked by the produced camera may deviate from the center of the image by tens of pixels. In practical experience, a camera with a focal length of around 16mm may deviate by more than fifty pixels.
Disclosure of Invention
The invention aims to provide a camera active alignment method combining calibration, which has high feasibility and high alignment precision.
In order to solve the above problems, the present invention provides a camera active alignment method combined with calibration, which includes:
Providing a test chart card, wherein the test chart card is integrated with a checkerboard, a central view field test pattern and a plurality of peripheral view field test patterns, the central view field test pattern is embedded in the checkerboard, and corner points are coincident with the corner points of the checkerboard;
acquiring image information of the test pattern card through a camera, determining the position of the central view field test pattern, and moving a lens or an image sensor until the corner point of the central view field test pattern is positioned at the center of the image;
Obtaining definition change curves of the central view field test pattern and the plurality of peripheral view field test patterns through scanning of the camera in the focal length direction, calculating the inclination angle of the lens and the image sensor according to the definition change curves, and adjusting the parallelism of the lens and the image sensor;
And marking a distortion center of the camera through the checkerboard, and adjusting the relative horizontal position of the lens and the image sensor according to the difference between the distortion center and the image center so as to correct the deviation.
As a further improvement of the present invention, the marking the distortion center of the camera through the checkerboard, and adjusting the relative horizontal position of the lens and the image sensor according to the difference between the distortion center and the image center, further includes: and determining a correction result through recalibration, and if the deviation does not meet the requirement, continuing correction.
As a further improvement of the present invention, the marking the distortion center of the camera through the checkerboard, and adjusting the relative horizontal position of the lens and the image sensor according to the difference between the distortion center and the image center, further includes: the positions of the lens and the image sensor are determined by glue curing.
As a further improvement of the present invention, the distortion center of the camera is marked by the checkerboard, specifically including: and calibrating the distortion center of the camera by utilizing the relationship of epipolar geometry by utilizing the characteristic that an image obtained by imaging the checkerboard in an ideal small hole is parallel to the actual imaging of the checkerboard.
As a further improvement of the invention, the calibration of the distortion center of the camera by utilizing the relation of epipolar geometry specifically comprises the following steps: and determining the distortion center of the camera through the epipolar point determined by the image obtained by the checkerboard after the ideal pinhole imaging and the actual imaging of the checkerboard.
As a further improvement of the present invention, the test chart is film printing or glass etching.
As a further improvement of the invention, the film printed test chart card is attached or pressed on a flat bearing surface.
As a further improvement of the present invention, the test chart is transmissive or reflective.
As a further improvement of the present invention, the central field of view test pattern and the plurality of peripheral field of view test patterns are each a black naked sword side inclined by 5 degrees, including both horizontal and vertical directions, based on the ISO12233 standard.
As a further improvement of the present invention, each of the checkerboards is square, and the number of the checkers is 4x4 or more between the black and white in the transverse direction and the longitudinal direction.
The invention has the beneficial effects that:
the active alignment method of the camera combined with calibration can greatly improve the center deviation of the long-focus camera, so that the center of the internal reference of the camera is closer to the center of the image, and the alignment precision is greatly improved.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention, as well as the preferred embodiments thereof, together with the following detailed description of the invention, given by way of illustration only, together with the accompanying drawings.
Drawings
FIG. 1 is a flow chart of a camera active alignment method in combination with calibration in a preferred embodiment of the invention;
FIG. 2 is a schematic diagram of a test card according to a preferred embodiment of the present invention;
fig. 3 is a schematic diagram of a test card according to a preferred embodiment of the invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific examples, which are not intended to be limiting, so that those skilled in the art will better understand the invention and practice it.
As shown in fig. 1, the method for actively aligning a camera in combination with calibration in a preferred embodiment of the present invention includes the following steps:
S10, providing a test chart card, wherein the test chart card is integrated with a checkerboard, a central view field test pattern and a plurality of peripheral view field test patterns, the central view field test pattern is embedded in the checkerboard, and corner points are coincident with the corner points of the checkerboard.
As shown in fig. 2 and 3, in the preferred embodiment of the present invention, in fig. 2, the black grids in the checkerboard of the test chart are all full, two white circles are added in the diagonal black grids beside the central view field test pattern, and the software can locate the corner point of the central view field test pattern by identifying the two circles. In fig. 3, the black grids in the checkerboard of the test chart card are all hollow structures, only a circle of narrower black edges are left, the test chart card does not influence the search of corner points of the checkerboard in the calibration algorithm, but the active alignment algorithm does not recognize the corner points of the checkerboard, and the position recognition error of the central visual field test pattern can be avoided.
Preferably, the test chart card is film printing, glass etching or the like. The film printed test chart card is attached or pressed on a flat bearing surface. The bearing surface may be glass or the like.
In this embodiment, the test card is transmissive or reflective.
In this embodiment, the central field of view test pattern and the plurality of peripheral field of view test patterns are each a black naked sword side inclined by 5 degrees, including both horizontal and vertical directions, based on the ISO12233 standard. The distribution of the test patterns can be adjusted according to the field angle of the camera and the test field requirements of clients, a central field test pattern is arranged in the central area of the image, and the number of peripheral field test patterns is four, eight and the like.
In other embodiments, the test pattern has slits, star patterns, dead leaf patterns, and the like.
In this embodiment, each of the checkerboards is square, and the number of the checkers is 4x4 or more between the black and white in the transverse direction and the longitudinal direction.
S20, acquiring image information of the test pattern card through a camera, determining the position of the central view field test pattern, and moving a lens or an image sensor until the corner point of the central view field test pattern is positioned at the center of the image. Specifically, for the test chart card in fig. 2, two circles are first identified, the position of the center field test pattern can be determined by the positions of the two circles, and the corner point of the center field test pattern is moved to the center of the image. For the test chart card in fig. 3, the black grid of the checkerboard is hollowed out, so that the sharpness algorithm can not grasp the corner points of the checkerboard, but only grasp the corner points of the central field of view test pattern, and the corner points of the central field of view test pattern can be directly moved to the center of the image. This step is to substantially ensure that the test pattern is in the desired field of view or close proximity during focusing and does not define the final camera internal parameter center position.
S30, obtaining definition change curves of the central view field test pattern and the plurality of peripheral view field test patterns through scanning of the camera in the focal length direction, calculating the inclination angle of the lens and the image sensor according to the definition change curves, and adjusting the parallelism of the lens and the image sensor.
The non-parallel visual representation of the lens and the image sensor is that the peak value of the definition curve of each test pattern is scattered on different scanning steps before adjustment, and the peak value of the definition curve is basically fallen at one place at the same time after adjustment. Because the lens is equivalent to a black box, the main point position and the like of the lens cannot be accurately known, and the actual lens cannot generally reach the ideal state in design because of assembly errors and the like, the traditional active alignment algorithm considers that the lens and the image sensor are leveled in this way, and the optical axis of the lens is likely to be inclined actually because of the characteristics of the lens.
In one embodiment, the method further comprises the steps of: after leveling, scanning once in the focal length direction, returning to the definition peak point, and determining the horizontal relative position of the lens and the image sensor by taking the corner point of the central view field test pattern as the principle of imaging at the center of the image. However, since the optical axis may have an inclination angle in this state, for a lens with a relatively large focal length, for example, a 16mm long focal length, if the lens is inclined by 0.5 degrees, the pixel size is 3um, the center is offset by about 46 pixels, and for a vehicle-mounted camera or the like requiring accurate measurement, the deviation is beyond the allowable range, not to mention that the introduction of a variable during glue thermal curing may cause more deviation.
S40, marking a distortion center of the camera through the checkerboard, and adjusting the relative horizontal position of the lens and the image sensor according to the difference between the distortion center and the image center so as to correct the deviation. The purpose is to make the distortion center coincide with the image center as much as possible, reduce the deviation and improve the precision.
Specifically, the characteristic that an image obtained by imaging the checkerboard in an ideal small hole is parallel to the actual imaging of the checkerboard is utilized, and the distortion center of the camera is calibrated by utilizing the epipolar geometry relation. More specifically, the distortion center of the camera is determined by the epipolar point determined by both the image obtained by imaging the ideal aperture of the checkerboard and the actual imaging of the checkerboard.
In the embodiment, the calibration is based on a single image, so that the calibration efficiency is greatly improved, and the alignment precision is ensured.
In one embodiment, the following steps are further included after step S40:
And determining a correction result through recalibration, and if the deviation does not meet the requirement, continuing correction. This process can be repeated, depending on the different requirements for accuracy and production efficiency.
In one embodiment, the following steps are further included after step S40: the positions of the lens and the image sensor are determined by glue curing.
The above embodiments are merely preferred embodiments for fully explaining the present invention, and the scope of the present invention is not limited thereto. Equivalent substitutions and modifications will occur to those skilled in the art based on the present invention, and are intended to be within the scope of the present invention. The protection scope of the invention is subject to the claims.

Claims (8)

1. The camera active alignment method combined with calibration is characterized by comprising the following steps of:
Providing a test chart card, wherein the test chart card is integrated with a checkerboard, a central view field test pattern and a plurality of peripheral view field test patterns, the central view field test pattern is embedded in the checkerboard, and corner points are coincident with the corner points of the checkerboard;
acquiring image information of the test pattern card through a camera, determining the position of the central view field test pattern, and moving a lens or an image sensor until the corner point of the central view field test pattern is positioned at the center of the image;
Obtaining definition change curves of the central view field test pattern and the plurality of peripheral view field test patterns through scanning of the camera in the focal length direction, calculating the inclination angle of the lens and the image sensor according to the definition change curves, and adjusting the parallelism of the lens and the image sensor;
Marking a distortion center of the camera through the checkerboard, and adjusting the relative horizontal position of the lens and the image sensor according to the difference between the distortion center and the image center so as to correct the deviation;
The distortion center of the camera is marked through the checkerboard, and the method specifically comprises the following steps: the characteristic that an image obtained by imaging the checkerboard in an ideal small hole is parallel to the actual imaging of the checkerboard is utilized, and the distortion center of the camera is calibrated by utilizing the relation of epipolar geometry;
The calibration of the distortion center of the camera by utilizing the relation of epipolar geometry specifically comprises the following steps: and determining the distortion center of the camera through the epipolar point determined by the image obtained by the checkerboard after the ideal pinhole imaging and the actual imaging of the checkerboard.
2. The method for actively aligning a camera with calibration according to claim 1, wherein the calibrating the distortion center of the camera by the checkerboard, and adjusting the relative horizontal position of the lens and the image sensor according to the difference between the distortion center and the image center, further comprises: and determining a correction result through recalibration, and if the deviation does not meet the requirement, continuing correction.
3. The method for actively aligning a camera with calibration according to claim 1, wherein the calibrating the distortion center of the camera by the checkerboard, and adjusting the relative horizontal position of the lens and the image sensor according to the difference between the distortion center and the image center, further comprises: the positions of the lens and the image sensor are determined by glue curing.
4. The camera active alignment method according to claim 1, wherein the test chart is film printing or glass etching.
5. The camera head active alignment method according to claim 4, wherein the film printed test chart is attached or pressed on a flat bearing surface.
6. The method for actively aligning a camera with calibration according to claim 1, wherein the test card is transmissive or reflective.
7. The camera active alignment method according to claim 1, wherein the center field test pattern and the plurality of peripheral field test patterns are each a black naked sword side inclined by 5 degrees based on the ISO12233 standard, and include both horizontal and vertical directions.
8. The camera active alignment method for combining calibration according to claim 1, wherein each grid in the checkerboard is square, and the number of the grids is greater than or equal to 4x4 between the horizontal black and white.
CN202011004423.2A 2020-09-22 2020-09-22 Camera active alignment method combined with calibration Active CN112288822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011004423.2A CN112288822B (en) 2020-09-22 2020-09-22 Camera active alignment method combined with calibration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011004423.2A CN112288822B (en) 2020-09-22 2020-09-22 Camera active alignment method combined with calibration

Publications (2)

Publication Number Publication Date
CN112288822A CN112288822A (en) 2021-01-29
CN112288822B true CN112288822B (en) 2024-06-14

Family

ID=74422134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011004423.2A Active CN112288822B (en) 2020-09-22 2020-09-22 Camera active alignment method combined with calibration

Country Status (1)

Country Link
CN (1) CN112288822B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766210B (en) * 2021-07-21 2024-05-10 歌尔光学科技有限公司 Test method and device
CN115361497B (en) * 2022-08-01 2024-06-07 歌尔股份有限公司 Method, device, equipment and storage medium for measuring inclination angle of camera module
CN116320747A (en) * 2023-05-19 2023-06-23 四川华鲲振宇智能科技有限责任公司 Method for horizontally checking image sensor and lens

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038755A (en) * 2014-04-30 2014-09-10 惠州华阳通用电子有限公司 Camera distortion center point testing device and identification method
CN104881874A (en) * 2015-06-04 2015-09-02 西北工业大学 Double-telecentric lens calibration method based on binary quartic polynomial distortion error compensation

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101482645B1 (en) * 2013-06-28 2015-01-16 (주) 세인 Distortion Center Correction Method Applying 2D Pattern to FOV Distortion Correction Model
CN107833255A (en) * 2017-11-17 2018-03-23 广州市安晓科技有限责任公司 A kind of fish-eye quick calibrating method
CN109961482A (en) * 2017-12-22 2019-07-02 比亚迪股份有限公司 Camera calibration method, device and vehicle
CN108581869B (en) * 2018-03-16 2020-05-15 深圳市策维软件技术有限公司 Camera module alignment method
CN109215084A (en) * 2018-08-06 2019-01-15 杭州雄迈集成电路技术有限公司 A method of for distortion correction location of the core
CN111429533B (en) * 2020-06-15 2020-11-13 上海海栎创微电子有限公司 Camera lens distortion parameter estimation device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038755A (en) * 2014-04-30 2014-09-10 惠州华阳通用电子有限公司 Camera distortion center point testing device and identification method
CN104881874A (en) * 2015-06-04 2015-09-02 西北工业大学 Double-telecentric lens calibration method based on binary quartic polynomial distortion error compensation

Also Published As

Publication number Publication date
CN112288822A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN112288822B (en) Camera active alignment method combined with calibration
JP6858211B2 (en) Devices and methods for positioning a multi-aperture optical system with multiple optical channels relative to an image sensor.
CN108292439B (en) Method and storage medium for calibrating orientation of camera mounted to vehicle
US7479982B2 (en) Device and method of measuring data for calibration, program for measuring data for calibration, program recording medium readable with computer, and image data processing device
CN114266836B (en) Active vision three-dimensional calibration method, system and equipment based on galvanometer camera
CN105783711B (en) Three-dimensional scanner correction system and correction method thereof
CN114331924B (en) Large workpiece multi-camera vision measurement method
CN105467781B (en) A kind of mark and alignment methods with focusing and slant correction design
CN108550171B (en) Linear array camera calibration method containing eight-diagram coding information based on cross ratio invariance
CN114708164B (en) Method for correcting image large and small head distortion caused by object inclination in machine vision measurement
CN116907380A (en) Accurate alignment method and system for measured mirror of point diffraction interferometer based on image information
US7999851B2 (en) Optical alignment of cameras with extended depth of field
JP2017032556A (en) Method and measuring instrument for determining dimensional properties of measurement object
CN110653016B (en) Pipetting system and calibration method thereof
CN115103124B (en) Active alignment method for camera module
CN111901531A (en) Focusing method, device and equipment during lens assembly
CN113725108B (en) Drifting positioning measurement method and device for large-plate fan-out type packaging chip
CN115841517A (en) Structural light calibration method and device based on DIC double-circle cross ratio
CN114998417A (en) Method for measuring size of thin-wall stamping part hole group based on secondary curve invariant
CN110992430B (en) Multi-camera calibration device and calibration method
CN114001676A (en) Optical axis automatic alignment method for detecting optical element by knife edge instrument
CN209877942U (en) Image distance measuring instrument
CN112750165B (en) Parameter calibration method, intelligent driving method, device, equipment and storage medium thereof
CN112468801B (en) Optical center testing method of wide-angle camera module, testing system and testing target thereof
CN112927305B (en) Geometric dimension precision measurement method based on telecentricity compensation

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