Calibration method of image acquisition system and image acquisition system

Through the multi-camera system and concentric circle pattern calibration method, combined with band-pass filters, the problems of low image acquisition efficiency and loss of details in the existing technology are solved, and efficient and accurate 3D image acquisition is achieved.

CN118674791APending Publication Date: 2024-09-20BEIJING TRANSFER TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410700422.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing 3D structured light cameras have low image acquisition efficiency under the influence of ambient light, and are prone to specular reflection leading to loss of details when projected by a single laser galvanometer.

Method used

A multi-camera image acquisition system is used to achieve bidirectional laser projection and acquisition by configuring multiple cameras. Concentric circle patterns are used to calibrate camera internal and external parameters, and band-pass filters are combined to filter ambient light to optimize the laser projection and image acquisition process.

Benefits of technology

It improves the image collection efficiency and accuracy, reduces the loss of details caused by specular reflection, and enhances the image collection capability of curved surfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674791A
    Figure CN118674791A
Patent Text Reader

Abstract

The invention provides a calibration method of an image acquisition system, the image acquisition system, a storage medium and a program product. According to the calibration method of the image acquisition system, the image acquisition system comprises a plurality of cameras, the spatial positions of the plurality of cameras are configured to enable the image acquisition system to perform image acquisition in a first imaging direction and a second imaging direction, and the calibration method comprises the following steps: acquiring a plurality of calibration plate images of a plurality of calibration plate positions acquired by each camera; calculating the circle center positions of all concentric circle patterns of each calibration plate image in the plurality of calibration plate images obtained by each camera, and obtaining the circle center positions of all concentric circle patterns of each calibration plate image of each camera under the pixel coordinate system; and performing camera internal reference calibration based on the circle center positions of all concentric circle patterns of each calibration plate image of each camera under the pixel coordinate system and the optical parameters of each camera, and obtaining an internal reference calibration matrix and distortion parameters of each camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of laser cameras, and in particular to a calibration method for an image acquisition system, an image acquisition system, a storage medium, and a program product. Background Art

[0002] The principle of existing 3D structured light cameras is basically to project structured light stripes onto the surface of the scene to modulate the spatial height information, and then reconstruct the spatial surface through the principles of stripe decoding and triangulation.

[0003] The projection equipment is generally a DLP projector or a laser galvanometer. DLP projectors are generally wide-spectrum light sources and are seriously affected by ambient light. Although DLP projectors can solve the problem to a certain extent by adding stripe projections in multiple directions, they inevitably increase the image acquisition time by at least twice, and the serial image acquisition time is long.

[0004] 3D cameras that use laser galvanometers as projection devices can filter ambient light by adding a bandpass filter on the sensor to achieve an anti-interference effect. However, a single laser galvanometer can only project stripes in a single direction. When a curved surface appears in a specific direction in the scene, mirror reflection will inevitably occur, resulting in loss of details at the reflected part. For example, a smooth curved surface that is curved along the laser projection direction is prone to glare under the illumination of light from a single direction, and image details are lost at the glare. Summary of the invention

[0005] The present disclosure provides a calibration method for an image acquisition system, an image acquisition system, a storage medium, and a program product.

[0006] According to one aspect of the present disclosure, a calibration method for an image acquisition system is provided, wherein the image acquisition system includes a plurality of cameras, and the spatial positions of the plurality of cameras are configured so that the image acquisition system can perform image acquisition in a first imaging direction and a second imaging direction, comprising:

[0007] Acquire multiple calibration plate images at multiple calibration plate positions captured by each camera;

[0008] Calculating the center positions of all concentric circle patterns of each calibration plate image in the multiple calibration plate images obtained by each camera to obtain the center positions of all concentric circle patterns of each calibration plate image of each camera in a pixel coordinate system;

[0009] The camera intrinsic calibration is performed based on the center positions of all concentric circle patterns of each calibration plate image of each camera in the pixel coordinate system and the optical parameters of each camera to obtain the intrinsic calibration matrix and distortion parameters of each camera;

[0010] Among them, multiple concentric circle patterns are configured on the surface of the calibration plate, each concentric circle pattern includes at least an inner circle and an outer circle with the same center, and the multiple concentric circle patterns include concentric circle patterns of different sizes and concentric circle patterns of the same size, so that the multiple concentric circle patterns form an asymmetric concentric circle pattern two-dimensional array.

[0011] According to at least one embodiment of the present disclosure, the calibration method further includes:

[0012] Based on the intrinsic calibration matrix of each camera and the positions of the multiple calibration plates, extrinsic calibration is performed on each camera to obtain the extrinsic calibration matrix of each camera.

[0013] According to a calibration method of at least one embodiment of the present disclosure, calculating the center positions of all concentric circle patterns of each calibration plate image of each camera includes:

[0014] The estimated center position of the inner circle is corrected based on the inner circle radius and the outer circle radius of the concentric circle pattern and the estimated center position of the outer circle and the estimated center position of the inner circle to obtain the center position of the concentric circle pattern.

[0015] According to a calibration method of at least one embodiment of the present disclosure, extrinsic calibration is performed on each camera based on the intrinsic calibration matrix of each camera and the positions of the multiple calibration plates to obtain the extrinsic calibration matrix of each camera, including:

[0016] Obtaining an initial extrinsic parameter matrix for each camera based on the multiple calibration plate positions and the intrinsic parameter calibration matrix of each camera;

[0017] Taking every two cameras of the multiple cameras as a camera combination, performing joint calibration optimization on the initial extrinsic parameter matrices of the two cameras in each camera combination, and obtaining a first optimized extrinsic parameter matrix of each camera in each camera combination;

[0018] Based on the first optimized extrinsic parameter matrix of each camera in each camera combination, performing joint calibration optimization of the multiple cameras to obtain a second optimized extrinsic parameter matrix of each camera;

[0019] Based on the second optimized extrinsic parameter matrix of each camera, the two cameras associated with the first imaging direction are jointly calibrated and optimized, the two cameras associated with the second imaging direction are jointly calibrated and optimized, and then a camera associated with the first imaging direction and a camera associated with the second imaging direction are jointly calibrated and optimized to obtain the final optimized extrinsic parameter matrix of each camera, that is, the extrinsic parameter calibration matrix.

[0020] According to a calibration method of at least one embodiment of the present disclosure, joint calibration optimization of the multiple cameras is performed based on a first optimized extrinsic parameter matrix of each camera in each camera combination, including:

[0021] Constructing a cyclic sequence based on the spatial arrangement sequence of the plurality of cameras;

[0022] An error equation is constructed based on the cyclic sequence and the spatial position transformation relationship between every two adjacent cameras, and the joint calibration optimization of the multiple cameras is completed by minimizing the error of the error equation.

[0023] According to at least one embodiment of the present disclosure, a calibration method is provided, wherein the estimated center position of the inner circle is corrected based on the inner circle radius and the outer circle radius of the concentric circle pattern and the estimated center position of the outer circle and the estimated center position of the inner circle to obtain the center position of the concentric circle pattern, including:

[0024] The center of the outer circle and the inner circle of the concentric circle pattern are estimated respectively to obtain the estimated position of the center of the outer circle and the estimated position of the center of the inner circle;

[0025] Obtaining the distance between the center of the inner circle estimated position and the center of the outer circle estimated position, and obtaining the direction from the outer circle estimated position to the inner circle estimated position as a correction direction;

[0026] The corrected distance is obtained by taking the ratio of the square difference between the outer circle radius and the inner circle radius to the square of the inner circle radius as the ratio of the center distance to the corrected distance;

[0027] The estimated position of the center of the inner circle is moved along the correction direction by the correction distance to obtain a center correction position as the center position of the concentric circle pattern.

[0028] According to at least one embodiment of the calibration method of the present disclosure, the outer circle and the inner circle of the concentric circle pattern are respectively estimated to obtain the estimated position of the center of the outer circle and the estimated position of the center of the inner circle, including:

[0029] Fitting an inner ellipse to the outer circle to obtain an inner ellipse, and using the intersection of the major and minor axes of the inner ellipse as the estimated center position of the outer circle;

[0030] An inner ellipse is fitted to the inner circle to obtain an inner ellipse, and the intersection position of the major and minor axes of the inner ellipse is used as the estimated position of the center of the inner circle.

[0031] According to the calibration method of at least one embodiment of the present disclosure, the calibration plate image is a complete image of the surface of the calibration plate.

[0032] According to the calibration method of at least one embodiment of the present disclosure, the image acquisition system includes a first camera, a second camera, a third camera and a fourth camera, the first camera and the third camera are relatively arranged with respect to an image acquisition area, so that the first camera and the third camera can perform image acquisition in the first imaging direction, and the second camera and the fourth camera are relatively arranged with respect to the image acquisition area, so that the second camera and the fourth camera can perform image acquisition in the second imaging direction.

[0033] According to the calibration method of at least one embodiment of the present disclosure, the positions of the calibration plates are different from each other, and the planes where the surfaces of the calibration plates are located are not parallel to each other when the calibration plates are at the respective calibration plate positions.

[0034] According to the calibration method of at least one embodiment of the present disclosure, when the calibration plate is at each calibration plate position, the angle between the optical axis of each camera and the normal of the surface of the calibration plate is less than or equal to a preset angle.

[0035] According to the calibration method of at least one embodiment of the present disclosure, when the number of the cameras is four, the number of the calibration plate positions is greater than a preset number.

[0036] According to the calibration method of at least one embodiment of the present disclosure, the calibration plate is rotated simultaneously around each coordinate axis of the rectangular coordinate system where the calibration plate is located to obtain the multiple calibration plate positions.

[0037] According to a calibration method of at least one embodiment of the present disclosure, the multiple calibration plate images of the multiple calibration plate positions captured by each camera are multiple calibration plate images obtained by using each camera to capture images of the calibration plate when the calibration plate is placed at the multiple calibration plate positions in the image acquisition area.

[0038] According to another aspect of the present disclosure, there is provided an image acquisition system, comprising: a first module and a second module;

[0039] The first module includes:

[0040] a first laser capable of emitting laser light;

[0041] a first galvanometer, wherein the first galvanometer can deflect around a first axis, and the first galvanometer can project the laser light emitted by the first laser onto a surface of a target object;

[0042] a first camera, wherein the first camera is arranged in a direction perpendicular to the first axis, and the first camera is capable of collecting reflected light of the laser projected by the first galvanometer onto the surface of the target object and modulated by the surface of the target object to obtain a modulated image;

[0043] The second module comprises:

[0044] a second laser capable of emitting laser light;

[0045] a second galvanometer, wherein the second galvanometer can deflect about a second axis, and the second galvanometer can project the laser light emitted by the second laser onto the surface of the target object;

[0046] a second camera, the second camera being arranged in a direction perpendicular to the second axis, and the second camera being capable of collecting reflected light of the laser projected by the second galvanometer onto the surface of the target object after being modulated by the surface of the target object to obtain a modulated image;

[0047] Wherein, the first axis and the second axis are perpendicular to each other, the optical axis of the first laser is perpendicular to the first axis, and the optical axis of the second laser is perpendicular to the second axis;

[0048] The image acquisition system is calibrated based on the calibration method described in any one of claims 1 to 14.

[0049] According to the image acquisition system of at least one embodiment of the present disclosure, the first module further includes:

[0050] a third camera, the third camera being arranged in a direction perpendicular to the first axis, and the third camera and the first camera being arranged on both sides of the first galvanometer, so that the first camera and the third camera can jointly collect reflected light after the laser projected by the first galvanometer to the surface of the target object and modulated by the surface of the target object to obtain a modulated image;

[0051] The second module also includes:

[0052] A fourth camera is arranged in a direction perpendicular to the second axis, and the fourth camera and the second camera are arranged on both sides of the second galvanometer, so that the second camera and the fourth camera can jointly collect the reflected light of the laser projected by the second galvanometer to the surface of the target object after being modulated by the surface of the target object to obtain a modulated image.

[0053] According to another aspect of the present disclosure, a readable storage medium is provided, wherein the readable storage medium stores execution instructions, and when the execution instructions are executed by a processor, the calibration method of any embodiment of the present disclosure is implemented.

[0054] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the calibration method of any embodiment of the present disclosure is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0056] Figures 1 to 4 It is a schematic diagram of the structure of the image acquisition system of some embodiments of the present disclosure.

[0057] Figures 5 to 8 It is a schematic diagram of the structure of the image acquisition system of other embodiments of the present invention.

[0058] Fig. 9 The deflection angle range of a single galvanometer is shown as an example.

[0059] Fig.10 For Fig. 9 Schematic diagram of the laser scanning area shown at a vertical viewing angle.

[0060] Fig.11 A schematic diagram of the effective area S is shown.

[0061] Fig.12 It is a schematic diagram of the coordination of a single camera and a single galvanometer of the present invention.

[0062] Fig.13 is with Fig.12 The vertical viewing angle shows the camera FOV.

[0063] Fig.14 A three-dimensional schematic diagram of the field of view of four cameras and the scanning range of two galvanometers.

[0064] Fig.15 Schematic diagram of the overlap of the field of view of the four cameras and the scanning range of the two galvanometers.

[0065] Fig.16 It is a flowchart of a calibration method according to an embodiment of the present disclosure.

[0066] Fig.17 Schematic diagram of a two-dimensional array of asymmetric concentric circle patterns on a calibration plate according to an embodiment of the present disclosure.

[0067] Fig.18 It is a flowchart of a calibration method according to another embodiment of the present invention.

[0068] Fig.19 A schematic flow chart of a circle center position correction algorithm according to an embodiment of the present disclosure is shown.

[0069] Fig. 20It is a flowchart of an external parameter calibration method according to an embodiment of the present invention.

[0070] Fig.21 It is a schematic diagram of the spatial position configuration of four cameras according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0071] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementations. It is understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.

[0072] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0073] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged without departing from the technical concept of the present disclosure.

[0074] The use of cross-hatching and / or shading in the accompanying drawings is generally used to make the boundaries between adjacent components clear. As such, unless otherwise specified, the presence or absence of cross-hatching or shading does not convey or indicate any preference or requirement for the specific materials, material properties, dimensions, proportions, commonalities between the components shown, and / or any other characteristics, attributes, properties, etc. of the components. In addition, in the accompanying drawings, the sizes and relative sizes of the components may be exaggerated for clarity and / or descriptive purposes. When the exemplary embodiments can be implemented differently, the specific process sequence can be performed in a different order than described. For example, two successively described processes can be performed substantially simultaneously or in an order opposite to the described order. In addition, the same figure numbers represent the same components.

[0075] When a component is referred to as being "on" or "over," "connected to," or "coupled to" another component, the component may be directly on, directly connected to, or directly coupled to the other component, or intervening components may be present. However, when a component is referred to as being "directly on," "directly connected to," or "directly coupled to" another component, there are no intervening components. For this purpose, the term "connected" may refer to a physical connection, an electrical connection, etc., with or without intervening components.

[0076] The terms used herein are for the purpose of describing specific embodiments, and are not intended to be restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "said (the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but it is not excluded that there are or add one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups. It should also be noted that, as used herein, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values ​​and / or the values ​​provided that will be recognized by those of ordinary skill in the art.

[0077] The present invention provides a new image acquisition system. Figures 1 to 4 is a schematic diagram of the structure of an image acquisition system in some embodiments of the present disclosure, Figures 5 to 8 It is a schematic diagram of the structure of the image acquisition system of other embodiments of the present invention.

[0078] It should be noted that Figures 1 to 8 The image acquisition system shown is used to explain in detail the structural configuration of a specific implementation mode of the image acquisition system of the present disclosure, and is not intended to limit the specific structural configuration of the image acquisition system of the present disclosure.

[0079] refer to Figures 1 to 8 , an image acquisition system 10 of an embodiment of the present disclosure includes: a first module and a second module;

[0080] The first module includes:

[0081] A first laser 101, the first laser 101 can emit laser light;

[0082] A first galvanometer 201, which can deflect around a first axis and project the laser light emitted by the first laser 101 onto a surface of a target object (a surface of an object to be imaged, not shown);

[0083] The first camera 301 can collect the reflected light of the laser projected by the first galvanometer 201 onto the surface of the target object and modulated by the surface of the target object to obtain a modulated image.

[0084] The second module includes:

[0085] A second laser 102, the second laser 102 is capable of emitting laser light;

[0086] A second galvanometer 202, the second galvanometer 202 can deflect around a second axis, and the second galvanometer can project the laser light emitted by the second laser 102 onto the surface of the target object (the surface of the object to be imaged);

[0087] The second camera 302 can collect the reflected light of the laser projected by the second galvanometer 202 onto the surface of the target object after being modulated by the surface of the target object to obtain a modulated image.

[0088] The first axis and the second axis are perpendicular to each other, the optical axis of the first laser 101 is perpendicular to the first axis, and the optical axis of the second laser 102 is perpendicular to the second axis.

[0089] In some embodiments of the present disclosure, the first camera 301 may be configured along a direction perpendicular to the first axis, and the second camera 302 may be configured along a direction perpendicular to the second axis.

[0090] Through the configuration of the above-mentioned dual modules, the present invention can simultaneously project lasers (structured light) in different laser scanning directions onto the surface of an object to be imaged (which may be various workpieces, boxes, etc. with surfaces). Different structured lights can be projected onto the surface of the target object via the first galvanometer 201 and the second galvanometer 202 to form structured light stripes (i.e., coded structured light stripes), thereby realizing the projection of structured light stripes in two directions, and then imaging the surface of the object to be imaged based on the structured light stripes in two directions, thereby shortening the projection time.

[0091] The present disclosure does not specifically limit the type and specific coding of structured light, all of which fall within the protection scope of the present disclosure.

[0092] The laser and galvanometer described in the present disclosure may adopt existing lasers and galvanometers.

[0093] In some embodiments of the present disclosure, the image acquisition system 10 of the present disclosure forms an image acquisition system with dual cameras, dual lasers and dual galvanometers.

[0094] In some other embodiments of the present disclosure, the first module of the image acquisition system 10 of the present disclosure further includes:

[0095] The third camera 303 and the first camera 301 are arranged on both sides of the first galvanometer 201, so that the first camera 301 and the third camera 303 can jointly collect the reflected light of the laser projected by the first galvanometer 201 to the surface of the target object after being modulated by the surface of the target object to obtain the modulated image.

[0096] The second module also includes:

[0097] The fourth camera 304 and the second camera 302 are arranged on both sides of the second galvanometer 202, so that the second camera 302 and the fourth camera 304 can jointly collect the reflected light of the laser projected by the second galvanometer 202 to the surface of the target object after being modulated by the surface of the target object to obtain a modulated image.

[0098] In some embodiments of the present disclosure, reference Figure 3 , Figure 5 and Figure 7 The first camera 301 and the third camera 303 can be arranged in a direction perpendicular to the first axis (i.e., the axis around which the first galvanometer 201 swings), and the second camera 302 and the fourth camera 304 can be arranged in a direction perpendicular to the second axis (i.e., the axis around which the second galvanometer 202 swings).

[0099] Depend on Figures 1 to 8 It can be seen that in some embodiments of the present disclosure, the image acquisition system 10 of the present disclosure forms an image acquisition system with four cameras, two lasers and two galvanometers.

[0100] Preferably, the rotation direction of the first galvanometer 201 and the rotation direction of the second galvanometer 202 of the present disclosure are arranged to be orthogonal.

[0101] In the present disclosure, preferably, the projection centers of the two modules are brought closer, so that the first galvanometer and the second galvanometer are closer while ensuring that the laser projection is not blocked.

[0102] According to some embodiments of the present disclosure, Figures 5 to 8 The first axis and the second axis described above are located in the same plane, and the first galvanometer 201 and the second galvanometer 202 have a spacing in the extension direction of the first axis or the second axis, which is equal to or substantially equal to the distance between the housings of the two lasers, so that the galvanometers of the two modules are closer. Figure 7 In the embodiment, the first galvanometer mirror 201 and the second galvanometer mirror 202 have a spacing in the extension direction of the first axis.

[0103] In other embodiments of the present disclosure, reference Figures 1 to 4 , the first axis and the second axis described above in the present disclosure are not located in the same plane, and the first galvanometer 201 and the second galvanometer 202 are staggered in space. Figure 3 and Figure 4 The first galvanometer 201 is located above the second galvanometer 202, and there is a spacing between the first galvanometer 201 and the second galvanometer 202 in the extension direction of the second axis and in the direction perpendicular to the second axis, so as to sacrifice a small part of the field of view height in exchange for a closer projection center.

[0104] Depend on Figure 4 and Figure 6It can be seen that the first laser 101 is fixedly connected to the first galvanometer 201, the second laser 102 is fixedly connected to the second galvanometer 202, and the optical axis of the first laser 201 is perpendicular to the optical axis of the second laser 202, the optical axis of the first laser 201 is perpendicular to the first axis, and the optical axis of the second laser 202 is perpendicular to the second axis.

[0105] The first camera, the second camera, the third camera and the fourth camera used in the image acquisition system 10 of the present disclosure may all be 2D sensors.

[0106] In some embodiments of the present disclosure, the image acquisition system 10 is an image acquisition system with two cameras, two lasers and two galvanometers. Preferably, a first bandpass filter (not shown) is arranged in front of the lens of the first camera 301, and the first bandpass filter allows light in a first wavelength range to pass through. A second bandpass filter (not shown) is arranged in front of the lens of the second camera 302, and the second bandpass filter allows light in a second wavelength range to pass through. The first wavelength range and the second wavelength range do not have an overlapping range.

[0107] The wavelength of the laser light emitted by the first laser 101 is within a first wavelength range, and the wavelength of the laser light emitted by the second laser 102 is within a second wavelength range.

[0108] The first wavelength range may be red light wavelength, and the second wavelength range may be blue light wavelength.

[0109] The present disclosure configures the first band-pass filter and the second band-pass filter to enable one group of laser galvanometer modules to emit light of a first wavelength, such as red light, and a band-pass filter corresponding to the corresponding light wavelength is used in front of the lens of a 2D sensor (such as a first camera) placed along the optical axis of the red light laser to filter out interference from other light sources; another group of laser galvanometer modules to emit light of a second wavelength (different from the first wavelength), such as blue light, and similarly, a band-pass filter corresponding to the corresponding light wavelength is used in front of the lens of a 2D sensor (such as a second camera) placed along the optical axis of the blue light laser to filter out interference from other light sources.

[0110] In some other embodiments of the present disclosure, the image acquisition system 10 is a four-camera, dual-laser, dual-galvanometer image acquisition system. Preferably, a first bandpass filter is disposed in front of the lens of the first camera 301 and in front of the lens of the third camera 303, and the first bandpass filter allows light in a first wavelength range to pass through. A second bandpass filter is disposed in front of the lens of the second camera 302 and in front of the lens of the fourth camera 304, and the second bandpass filter allows light in a second wavelength range to pass through. The first wavelength range and the second wavelength range do not have an overlapping range.

[0111] The wavelength of the laser light emitted by the first laser 101 is within a first wavelength range, and the wavelength of the laser light emitted by the second laser 102 is within a second wavelength range.

[0112] Before capturing images of the surface of a target object, the image acquisition system of the present invention first performs field of view alignment, uses two laser galvanometer modules for simultaneous projection, and adjusts the galvanometer angle to align the galvanometer projection range with the field of view of one or two adapted cameras.

[0113] When the image acquisition system of the present invention acquires images of the surface of a target object, two laser galvanometer modules can be controlled using a set of control equipment when triggering projection. Due to the filtering effect of the bandpass filter, the two wavelengths of light will not interfere with each other when projected simultaneously.

[0114] Therefore, in some embodiments of the present disclosure, the image acquisition system of the present disclosure further includes: a control device (not shown), the first laser 101, the first galvanometer 201, the second laser 102 and the second galvanometer 202 are controlled by the control device, so that the first laser 101 and the second laser 102 emit lasers synchronously, and the first galvanometer 201 and the second galvanometer 202 are deflected synchronously.

[0115] Among them, the control device may include a programmable logic controller (PLC, Programmable Logic Controller), and the present disclosure does not specifically limit the specific type of the control device.

[0116] In a preferred embodiment of the present disclosure, the first laser and the second laser described above in the present disclosure are lasers with the same physical structure, and the first galvanometer and the second galvanometer are galvanometers with the same physical structure.

[0117] In some embodiments of the present disclosure, the first laser and the second laser have the same parameters such as laser power, laser pulse width, beam diameter, etc., and the first galvanometer and the second galvanometer have the same parameters such as size and amplitude.

[0118] In some embodiments of the present disclosure, the bandpass filter described above is not configured in front of the camera lens, and the two laser galvanometer modules can be asynchronously controlled by a control device, so that the cameras in the first module and the second module asynchronously capture images of the surface of the target object.

[0119] In some embodiments of the present disclosure, a shockproof module (such as shockproof cotton) may be added at the junction of the laser and the galvanometer to optimize the projection quality and thereby improve the image acquisition quality.

[0120] Based on the image acquisition system provided by the present disclosure, the present disclosure further provides a configuration method of the image acquisition system, and the configuration method of the present disclosure is at least used to configure the first galvanometer and the second galvanometer of the image acquisition system.

[0121] Fig. 9 The deflection angle range of a single galvanometer is shown as an example.

[0122] refer to Fig. 9 , the configuration method disclosed herein includes:

[0123] The deflection angle range of the first galvanometer 201 and the second galvanometer 202 is set so that the scanning range of the first galvanometer 201 on the horizontal working plane is symmetrical about the vertical plane from the first axis to the horizontal working plane, and the scanning range of the second galvanometer 202 on the horizontal working plane is symmetrical about the vertical plane from the second axis to the horizontal working plane.

[0124] The deflection angle range of the first galvanometer and the second galvanometer is set to (i.e., constraint condition):

[0125] α+β=90°, and β>α;

[0126] Wherein, α is the minimum angle between the first galvanometer surface and the second galvanometer surface and the corresponding incident laser, and β is the maximum angle between the first galvanometer surface and the second galvanometer surface and the corresponding incident laser.

[0127] The horizontal working plane (ie, the horizontal projection plane) described in the present disclosure may be the surface of a workbench on which the target object is placed, or a horizontal ground, etc. Fig. 9 In the figure, the axes about which the galvanometer mirror is deflected (i.e., the first axis and the second axis) are perpendicular to the paper surface.

[0128] refer to Fig. 9 , the galvanometer deflects from angle α to angle β, rotating: (β-α)°.

[0129] Draw a line between the center line of the galvanometer (the axis around which it deflects) and the horizontal working surface. This line is a straight line perpendicular to the working surface (the dotted line in the figure). To ensure that the area scanned by the laser is symmetrical along this line, the above constraints must be met.

[0130] Fig.10 For Fig. 9 Schematic diagram of the laser scanning area shown at a vertical viewing angle. Fig.10 The horizontal direction in is parallel to the axis about which the galvanometer deflects.

[0131] refer to Fig. 9 and Fig.10 , initially, the horizontal working surface is at a distance x from the center of the galvanometer, then the width of the bottom edge of the cone at x is:

[0132] A1 j=2x·tan(β-α)

[0133] The length of the laser band on the galvanometer is Dj, and the bandwidth angle is γ, then the length of the lower edge of the cone at x is:

[0134] B1 j=2[x·tan(γ / 2)+Dj / 2]

[0135] Based on the above description, the configuration method of the present disclosure further includes:

[0136] Constraints are set for the deflection angle range of the first galvanometer 201, the deflection angle range of the second galvanometer 202, the length of the laser band extending along the first axis on the first galvanometer 201, and the length of the laser band extending along the second axis on the second galvanometer 202:

[0137] A first viewing cone width A1j corresponding to the deflection angle range of the first galvanometer 201 is obtained based on the deflection angle range of the first galvanometer 201 and the distance between the first axis (ie, the deflection center line of the first galvanometer 201) and the horizontal working plane;

[0138] Based on the laser band length extending along the first axis on the first galvanometer 201, the laser band length angle and the distance between the first axis (i.e. the deflection center line of the first galvanometer 201) and the horizontal working plane, the first viewing cone length B1j corresponding to the laser band length is obtained;

[0139] Based on the deflection angle range of the second galvanometer 202 and the distance between the second axis (i.e., the deflection center line of the second galvanometer 202) and the horizontal working plane, a second viewing cone width A2j corresponding to the deflection angle range of the second galvanometer 202 is obtained;

[0140] The second viewing cone length B2j corresponding to the laser band length is obtained based on the laser band length extending along the second axis on the second galvanometer 202, the laser band length angle, and the distance between the second axis (i.e., the deflection center line of the second galvanometer 202) and the horizontal working plane;

[0141] The smaller of the first viewing cone width A1j and the first viewing cone length B1j is set to be completely covered by the larger of the second viewing cone width A2j and the second viewing cone length B2j;

[0142] The smaller of the second viewing cone width A2j and the second viewing cone length B2j is set to be completely covered by the larger of the first viewing cone width A1j and the first viewing cone length B1j.

[0143] The above-mentioned constraint setting can ensure that the scanning area (i.e., scanning range) of the first galvanometer 201 on the horizontal working plane and the scanning area (i.e., scanning range) of the second galvanometer 202 on the horizontal working plane have a maximum overlapping area, and the maximum overlapping area is the effective area S obtained by multiplying the smaller of the first cone length and the second cone length by the smaller of the first cone width and the second cone width. Fig.11 A schematic diagram of the effective area S is shown.

[0144] refer to Figure 6 The image acquisition system shown, in a preferred embodiment of the present disclosure, the configuration method of the present disclosure sets constraints on the first spacing between the center point of the first galvanometer 201 and the center point of the second galvanometer 202 in the first axis direction and the second spacing between the center point of the first galvanometer 201 and the center point of the second galvanometer 202 in the second axis direction:

[0145] The first spacing is configured to be 0, and the second spacing is configured to be less than or equal to 1 / 2 of the difference between the first viewing cone width A1j and the first viewing cone length B1j;

[0146] Alternatively, the second spacing is configured to be 0, and the first spacing is configured to be less than or equal to 1 / 2 of the difference between the second viewing cone width A2j and the second viewing cone length B2j.

[0147] The above constraint setting can ensure that the above overlapping area is maximized.

[0148] refer to Figure 7 and Fig.12 , Fig.12 It is a schematic diagram of the coordination of a single camera and a single galvanometer of the present disclosure. According to the preferred embodiment of the present disclosure, the configuration method of the present disclosure configures the distance between the lens center of the first camera 301 and the horizontal working plane to be the same as the distance between the center point of the first galvanometer 201 and the horizontal working plane, and configures the vertical line from the lens center of the first camera 301 to the horizontal working plane and the vertical line from the center point of the first galvanometer 201 to the horizontal working plane to be located in a common plane, and the first axis is perpendicular to the common plane.

[0149] According to a preferred embodiment of the present disclosure, the configuration method of the present disclosure configures the field of view of the first camera 301 on the horizontal working plane to completely cover the maximum overlapping area described above.

[0150] Fig.13 is with Fig.12 The vertical viewing angle shows the camera FOV.

[0151] refer to Fig.12 and Fig.13, the angle between the camera axis and the perpendicular line from the center of the galvanometer to the horizontal working plane is ε, the angle of the "long" side of the camera FOV is φ, the angle of the "short" side is θ, the distance between the perpendicular line from the center point of the camera to the horizontal working plane and the perpendicular line from the center of the galvanometer to the horizontal working plane is L1, and FOV is the field of view angle.

[0152] For the first and third cameras:

[0153] Long side: The intersection of the camera's viewing cone perpendicular to the first axis and the horizontal working plane.

[0154] Short side: The intersection of the camera's viewing cone perpendicular to the second axis and the horizontal working plane.

[0155] For the second and fourth cameras:

[0156] Long side: The intersection of the camera's viewing cone perpendicular to the second axis and the horizontal working plane.

[0157] Short side: The intersection of the camera's viewing cone perpendicular to the first axis and the horizontal working plane.

[0158] In some embodiments of the present disclosure, if the first cone length B1j is greater than or equal to the first cone width A1j, the spacing L1 between the perpendicular line from the lens center of the first camera (single camera) to the horizontal working plane and the perpendicular plane from the first axis to the horizontal working plane is configured based on the following constraints, so that the field of view of the first camera on the horizontal working plane is configured to completely cover the scanning range of the first galvanometer on the horizontal working plane.

[0159] refer to Fig.12 , the "long" side of the camera:

[0160] B1x=B1xleft+B1xright;

[0161] B1x=x·tan(Φ / 2-ε)+L1+x·tan(Φ / 2+ε)-L1;

[0162] B1x=2x·[tan(φ / 2-ε)+tan(φ / 2+ε)].

[0163] refer to Fig.13 , looking from the "short" side of the camera, the camera axis overlaps with the vertical line from the center of the galvanometer to the horizontal working surface, so:

[0164] A1x=2x·tan(θ / 2);

[0165] Therefore, in order to enable a single camera to cover the maximum overlapping area described above, if the first cone length (B1j) is greater than or equal to the first cone width (A1j), the spacing between the perpendicular line from the lens center of the first camera to the horizontal working plane and the perpendicular plane from the first axis to the horizontal working plane is configured based on the following constraints;

[0166] The constraints are:

[0167] The distance between the vertical plane from the first axis to the horizontal working plane and the left edge line of the field of view of the first camera is configured to be greater than or equal to 1 / 2 of the width of the first viewing cone;

[0168] The distance between the vertical plane from the first axis to the horizontal working plane and the right edge line of the field of view of the first camera is configured to be greater than or equal to 1 / 2 of the width of the first viewing cone;

[0169] The width of the field of view of the first camera on the horizontal working plane in the direction parallel to the first axis is configured to be greater than or equal to the first viewing cone width;

[0170] The left edge line and the right edge line are both parallel to the first axis and are respectively located on the left and right sides of the projection line of the first axis on the horizontal working plane.

[0171] That is, B1x=B1xleft+B1xright, B1xleft≥A1j / 2, B1xright≥A1j / 2, A1x≥A1j; wherein, B1x is the length of the field of view of the first camera on the horizontal working plane in a direction perpendicular to the first axis, and A1x is the width of the field of view of the first camera on the horizontal working plane in a direction parallel to the first axis; "B1xleft" is the distance between the vertical plane from the first axis to the horizontal working plane and the left edge line of the field of view of the first camera; "B1xright" is the distance between the vertical plane from the first axis to the horizontal working plane and the right edge line of the field of view of the first camera; A1j is the width of the first visual cone.

[0172] If the first cone length (B1 j) is less than or equal to the first cone width (A1 j), the spacing between the perpendicular line from the lens center of the first camera to the horizontal working plane and the perpendicular plane from the first axis to the horizontal working plane is configured based on the following constraints;

[0173] The constraints are:

[0174] The distance between the vertical plane from the first axis to the horizontal working plane and the left edge line of the field of view of the first camera is configured to be greater than or equal to 1 / 2 of the length of the first viewing cone;

[0175] The distance between the vertical plane from the first axis to the horizontal working plane and the right edge line of the field of view of the first camera is configured to be greater than or equal to 1 / 2 of the length of the first viewing cone;

[0176] The width of the field of view of the first camera on the horizontal working plane in the direction parallel to the first axis is configured to be greater than or equal to the first viewing cone length;

[0177] The left edge line and the right edge line are both parallel to the first axis and are respectively located on the left and right sides of the projection line of the first axis on the horizontal working plane.

[0178] That is, B1x=B1xleft+B1xright, B1xleft≥B1j / 2, B1xright≥B1j / 2, A1x≥B1j; wherein, B1x is the length of the field of view of the first camera on the horizontal working plane in a direction perpendicular to the first axis, and A1x is the width of the field of view of the first camera on the horizontal working plane in a direction parallel to the first axis; "B1xleft" is the distance between the vertical plane from the first axis to the horizontal working plane and the left edge line of the field of view of the first camera; "B1xright" is the distance between the vertical plane from the first axis to the horizontal working plane and the right edge line of the field of view of the first camera; the left edge line and the right edge line are both parallel to the first axis and are respectively located on the left and right sides of the projection line of the first axis on the horizontal working plane; B1j is the length of the first visual cone.

[0179] The configuration of the second camera (ie, a single camera) is described in detail below, and the configuration method is the same as the configuration method of the first camera.

[0180] In some embodiments of the present disclosure, the distance between the lens center of the second camera 302 and the horizontal working plane is configured to be the same as the distance between the center point of the second galvanometer 202 and the horizontal working plane, and the perpendicular line from the lens center of the second camera 302 to the horizontal working plane and the perpendicular line from the center point of the second galvanometer 202 to the horizontal working plane are configured to be located in a common plane, and the second axis is perpendicular to the common plane.

[0181] According to a preferred embodiment of the present disclosure, the configuration method of the present disclosure configures the field of view of the second camera 302 on the horizontal working plane to completely cover the maximum overlapping area described above.

[0182] If the second cone length (B2j) is greater than or equal to the second cone width (A2j), the spacing between the perpendicular line from the lens center of the second camera to the horizontal working plane and the perpendicular plane from the second axis to the horizontal working plane is configured based on the following constraints;

[0183] The constraints are:

[0184] The distance between the vertical plane from the second axis to the horizontal working plane and the left edge line of the field of view of the second camera is configured to be greater than or equal to 1 / 2 of the width of the second viewing cone;

[0185] The distance between the vertical plane from the second axis to the horizontal working plane and the right edge line of the field of view of the second camera is configured to be greater than or equal to 1 / 2 of the width of the second viewing cone;

[0186] The width of the field of view of the second camera on the horizontal working plane in the direction parallel to the second axis is configured to be greater than or equal to the second viewing cone width;

[0187] The left edge line and the right edge line are both parallel to the second axis and are respectively located on the left and right sides of the projection line of the second axis on the horizontal working plane.

[0188] That is, B2x=B2xleft+B2xright, B2xleft≥A2j / 2, B2xright≥A2j / 2, A2x≥A2j; wherein, B2x is the length of the field of view of the second camera on the horizontal working plane in a direction perpendicular to the second axis, and A2x is the width of the field of view of the second camera on the horizontal working plane in a direction parallel to the second axis; "B2xleft" is the distance between the vertical plane from the second axis to the horizontal working plane and the left edge line of the field of view of the second camera; "B2xright" is the distance between the vertical plane from the second axis to the horizontal working plane and the right edge line of the field of view of the second camera; A2j is the width of the second visual cone.

[0189] If the second cone length (B2j) is less than or equal to the second cone width (A2j), the spacing between the perpendicular line from the lens center of the second camera to the horizontal working plane and the perpendicular plane from the second axis to the horizontal working plane is configured based on the following constraints;

[0190] The constraints are:

[0191] The distance between the vertical plane from the second axis to the horizontal working plane and the left edge line of the field of view of the second camera is configured to be greater than or equal to 1 / 2 of the length of the second visual cone;

[0192] The distance between the vertical plane from the second axis to the horizontal working plane and the right edge line of the field of view of the second camera is configured to be greater than or equal to 1 / 2 of the length of the second viewing cone;

[0193] The width of the field of view of the second camera on the horizontal working plane in the direction parallel to the second axis is configured to be greater than or equal to the second viewing cone length;

[0194] The left edge line and the right edge line are both parallel to the second axis and are respectively located on the left and right sides of the projection line of the second axis on the horizontal working plane.

[0195] That is, B2x=B2xleft+B2xright, B2xleft≥B2j / 2, B2xright≥B2j / 2, A2x≥B2j; wherein, B2x is the length of the field of view of the second camera on the horizontal working plane in a direction perpendicular to the second axis, and A2x is the width of the field of view of the second camera on the horizontal working plane in a direction parallel to the second axis; "B2xleft" is the distance between the vertical plane from the second axis to the horizontal working plane and the left edge line of the field of view of the second camera; "B2xright" is the distance between the vertical plane from the second axis to the horizontal working plane and the right edge line of the field of view of the second camera; B2j is the length of the second visual cone.

[0196] For the dual-camera, dual-laser, dual-galvanometer image acquisition system provided in the present disclosure, the configuration of the dual galvanometers and dual cameras can be achieved through the above configuration method.

[0197] For the four-camera, dual-laser, and dual-galvanometer image acquisition system provided by the present invention, the third camera is configured in the same way as the first camera, and the fourth camera is configured in the same way as the second camera, thereby realizing the configuration of four cameras and dual galvanometers.

[0198] Fig.14 A three-dimensional schematic diagram of the field of view of four cameras and the scanning range of two galvanometers.

[0199] Fig.15 Schematic diagram of the overlap of the field of view of the four cameras and the scanning range of the two galvanometers.

[0200] The present disclosure, through the above configuration method, can achieve the best match between the camera field of view and the scanning range of the galvanometer of the image acquisition system of the present disclosure.

[0201] Based on the above configuration method, the present disclosure further provides a readable storage medium, in which execution instructions are stored. When the execution instructions are executed by a processor, they are used to implement the configuration method of any embodiment of the present disclosure.

[0202] Based on the above configuration method, the present disclosure further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the configuration method of any embodiment of the present disclosure is implemented.

[0203] The present disclosure also provides a calibration method for an image acquisition system, which is used to calibrate the image acquisition system 10 of any embodiment of the present disclosure. The image acquisition system 10 of the present disclosure includes multiple cameras (two cameras or four cameras, etc.), and the spatial positions of the multiple cameras are configured so that the image acquisition system 10 can perform image acquisition in a first imaging direction and a second imaging direction.

[0204] Fig.16It is a flowchart of a calibration method according to an embodiment of the present disclosure.

[0205] refer to Fig.16 In some embodiments of the present disclosure, the calibration method M100 of the image acquisition system of the present disclosure includes:

[0206] S110, acquiring multiple calibration plate images at multiple calibration plate positions collected by each camera;

[0207] S120, calculating the center positions of all concentric circle patterns of each calibration plate image in the multiple calibration plate images obtained by each camera, and obtaining the center positions of all concentric circle patterns of each calibration plate image of each camera in a pixel coordinate system;

[0208] S130, performing camera intrinsic calibration based on the center positions of all concentric circle patterns of each calibration plate image of each camera in the pixel coordinate system and the optical parameters of each camera to obtain an intrinsic calibration matrix and distortion parameters of each camera.

[0209] Among them, multiple concentric circle patterns are configured on the surface of the calibration plate, each concentric circle pattern includes at least an inner circle and an outer circle with the same center, and the multiple concentric circle patterns include concentric circle patterns of different sizes and concentric circle patterns of the same size, so that the multiple concentric circle patterns form an asymmetric concentric circle pattern two-dimensional array.

[0210] In the present disclosure, the Zhang Zhengyou calibration method can be used to calibrate the internal parameters of a single camera (2D camera) respectively, and the pinhole camera model and polynomial distortion can be used to establish the projection equation, and finally the intrinsic parameter calibration matrix and distortion parameters of each camera are obtained through optimization. Those skilled in the art can also use other existing calibration methods to calibrate the internal parameters of a single camera to obtain the intrinsic parameter calibration matrix and distortion parameters, all of which fall within the protection scope of the present disclosure.

[0211] The calibration method disclosed in the present invention redesigns the pattern used for calibration on the calibration plate, and uses an asymmetric concentric circle pattern two-dimensional array to perform the camera's intrinsic parameter calibration and subsequent extrinsic parameter calibration, thereby obtaining more accurate intrinsic parameter calibration results and extrinsic parameter calibration results.

[0212] Fig.17 Schematic diagram of a two-dimensional array of asymmetric concentric circle patterns on a calibration plate according to an embodiment of the present disclosure.

[0213] refer to Fig.17 , 5 rows and 9 columns of concentric circle patterns are arranged on the calibration plate, each concentric circle pattern includes an inner circle and an outer circle with the same center, and two sizes of concentric circle patterns are formed. Inspired by the technical solution of the present disclosure, those skilled in the art can adjust the number and arrangement of the concentric circle patterns, as long as an asymmetric concentric circle pattern two-dimensional array is formed, which falls within the protection scope of the present disclosure.

[0214] Fig.18 It is a flowchart of a calibration method according to another embodiment of the present invention.

[0215] exist Fig.16 Based on the calibration method shown, the calibration method of this embodiment further includes:

[0216] S140, performing extrinsic calibration on each camera based on the intrinsic calibration matrix of each camera and the positions of multiple calibration plates to obtain the extrinsic calibration matrix of each camera.

[0217] In some embodiments of the present disclosure, an algorithm such as a PnP (Perspective-n-Point) can be used to estimate the rotation matrix R and translation vector T of a single camera using the correspondence between feature points in the calibration plate image and known world coordinates (e.g., the center position of a concentric circle pattern) to obtain an extrinsic calibration matrix of the camera relative to the world coordinate system.

[0218] In some embodiments of the present disclosure, a nonlinear optimization method (such as the Levenberg-Marquardt algorithm) may be used to iteratively optimize the rotation matrix R and the translation vector T, minimize the reprojection error, and obtain the optimized rotation matrix R and the translation vector T.

[0219] Since the center position of the concentric circle pattern needs to be accurately calculated during the calibration process of a single camera, the present disclosure provides a center position correction algorithm that can accurately obtain the center position of the concentric circle pattern.

[0220] The core idea of ​​the circle center position correction algorithm disclosed in the present invention is to correct the estimated center position of the inner circle based on the inner circle radius and outer circle radius of the concentric circle pattern and the estimated center position of the outer circle and the estimated center position of the inner circle to obtain the center position of the concentric circle pattern.

[0221] Based on the core idea of ​​the circle center position correction algorithm disclosed in the present invention, the present invention provides a specific correction method.

[0222] Fig.19 A schematic flow chart of a circle center position correction algorithm according to an embodiment of the present disclosure is shown.

[0223] refer to Fig.19 In some embodiments of the present disclosure, preferably, based on the inner circle radius and the outer circle radius of the concentric circle pattern and the estimated center position of the outer circle and the estimated center position of the inner circle, the estimated center position of the inner circle is corrected to obtain the center position of the concentric circle pattern, including:

[0224] S1201, estimate the center of the outer circle and the inner circle of the concentric circle pattern respectively, and obtain the estimated position C1 of the center of the outer circle and the estimated position C2 of the center of the inner circle;

[0225] S1202, obtaining the distance between the inner circle center estimated position C2 and the outer circle center estimated position C1, that is, C1-C2, and obtaining the direction from the outer circle center estimated position C2 to the inner circle center estimated position C1 as a correction direction;

[0226] S1203, taking the ratio of the square difference between the inner circle radius R2 and the outer circle radius R1 to the square of the inner circle radius R2 as the ratio of the correction distance △C to the center distance C1-C2, to obtain the correction distance △C;

[0227] S1204 , moving the estimated inner circle center position C2 along the correction direction by a correction distance ΔC to obtain a center correction position C3 as the center position of the concentric circle pattern.

[0228] The correction distance △C can be obtained by the following expression:

[0229] in,

[0230] For the above-described method of respectively estimating the center of the outer circle and the inner circle of the concentric circle pattern, obtaining the outer circle center estimated position C1 and the inner circle center estimated position C2, preferably, the method is based on the following method:

[0231] Fitting an inner ellipse to the outer circle to obtain an inner ellipse, and using the intersection of the major and minor axes of the inner ellipse as the estimated center position of the outer circle;

[0232] An inner ellipse is fitted to the inner circle to obtain the inner ellipse, and the intersection of the major and minor axes of the inner ellipse is used as the estimated position of the center of the inner circle.

[0233] Inspired by the technical solution of the present disclosure, those skilled in the art can adjust the methods used to estimate the centers of the outer and inner circles of the concentric circle pattern, and all of these fall within the protection scope of the present disclosure.

[0234] In some embodiments of the present disclosure, the present disclosure optimizes and adjusts the external parameter calibration method.

[0235] Fig. 20 It is a flowchart of an external parameter calibration method according to an embodiment of the present invention.

[0236] refer to Fig. 20 , for step S140 described above, extrinsic calibration is performed on each camera based on the intrinsic calibration matrix of each camera and the positions of multiple calibration plates to obtain the extrinsic calibration matrix of each camera, including:

[0237] S1401, obtaining an initial extrinsic parameter matrix of each camera based on the positions of multiple calibration plates and the intrinsic parameter calibration matrix of each camera;

[0238] S1402, taking every two cameras in the plurality of cameras as a camera combination, and jointly calibrating and optimizing the initial extrinsic parameter matrices of the two cameras in each camera combination to obtain a first optimized extrinsic parameter matrix of each camera in each camera combination. For example, if the image acquisition system includes four cameras and six camera combinations are formed, the first optimized extrinsic parameter matrix of the two cameras in each camera combination can be obtained;

[0239] S1403, performing joint calibration optimization of multiple cameras based on the first optimized extrinsic parameter matrix of each camera in each camera combination to obtain a second optimized extrinsic parameter matrix of each camera;

[0240] S1404. Based on the second optimized extrinsic parameter matrix of each camera, perform joint calibration optimization on the two cameras associated with the first imaging direction, perform joint calibration optimization on the two cameras associated with the second imaging direction, and then perform joint calibration optimization on a camera associated with the first imaging direction and a camera associated with the second imaging direction, to obtain the final optimized extrinsic parameter matrix of each camera, i.e., the extrinsic parameter calibration matrix.

[0241] In some embodiments of the present disclosure, preferably, the joint calibration optimization of multiple cameras based on the first optimized extrinsic parameter matrix of each camera in each camera combination described above includes:

[0242] Construct a cyclic sequence based on the spatial arrangement order of multiple cameras;

[0243] An error equation is constructed based on the cyclic sequence and the spatial position transformation relationship between every two adjacent cameras, and the joint calibration optimization of multiple cameras is completed by minimizing the error of the error equation.

[0244] Fig.21 It is a schematic diagram of the spatial position configuration of four cameras in one embodiment of the present disclosure. The four cameras can capture images of a calibration plate placed in an image capture area.

[0245] Fig.21 , camera A may be the first camera described above in the present disclosure, camera B may be the second camera described above in the present disclosure, camera C may be the third camera described above in the present disclosure, and camera C may be the fourth camera described above in the present disclosure.

[0246] The following further illustrates the external parameter calibration method of the present disclosure by taking camera A, camera B, camera C, and camera D as examples.

[0247] In step S1401, an initial extrinsic parameter matrix of camera A, an initial extrinsic parameter matrix of camera B, an initial extrinsic parameter matrix of camera C, and an initial extrinsic parameter matrix of camera D may be obtained.

[0248] In step S1402 , six camera combinations may be obtained: camera A and camera B, camera A and camera C, camera A and camera D, camera B and camera C, camera B and camera D, and camera C and camera D.

[0249] Taking the combination of camera A and camera B as an example, the initial extrinsic parameter matrices of camera A and camera B are jointly calibrated and optimized to obtain the first optimized extrinsic parameter matrices of camera A and camera B in the camera combination, wherein the joint calibration optimization is performed based on the relative position relationship between camera A and camera B.

[0250] It should be noted that based on the three camera combinations of camera A and camera B, camera A and camera C, and camera A and camera D, a first optimized external parameter matrix of camera A will be obtained.

[0251] The corresponding elements (rotation components and translation components) of the three first optimized extrinsic parameter matrices of camera A may be averaged based on a direct averaging method or a weighted averaging method to obtain a final first optimized extrinsic parameter matrix of camera A.

[0252] In the weighted averaging method, different weights can be assigned to each combined estimate based on their accuracy (e.g., evaluated by metrics such as reprojection error) or confidence, and then the weighted average is performed.

[0253] In step S1403, based on the first optimized extrinsic parameter matrix of camera A, the first optimized extrinsic parameter matrix of camera B, the first optimized extrinsic parameter matrix of camera C, and the first optimized extrinsic parameter matrix of camera D, a joint calibration optimization of the four cameras is performed to obtain a second optimized extrinsic parameter matrix of each camera.

[0254] For example, the spatial arrangement order of camera A, camera B, camera C, and camera D is used as the joint calibration optimization order, and the error equation is constructed based on the spatial position transformation relationship of camera A→camera C→camera B→camera D→camera A. The joint calibration optimization is completed by minimizing the error, and the second optimized extrinsic parameter matrix of each camera is obtained.

[0255] In step S1404, the two cameras associated with the first imaging direction are camera A and camera C, and the two cameras associated with the second imaging direction are camera B and camera D. Camera A and camera C may be jointly calibrated and optimized again based on the second optimized extrinsic parameter matrix of camera A and camera C, camera B and camera D may be jointly calibrated and optimized again based on the second optimized extrinsic parameter matrix of camera B and camera D, and camera A and camera B may be jointly calibrated and optimized again based on the second optimized extrinsic parameter matrix of camera A and camera B to obtain the final optimized extrinsic parameter matrix of each camera, that is, the extrinsic parameter calibration matrix, wherein for camera A and camera B, the direct averaging method or the weighted averaging method described above may be used to obtain the above-mentioned final optimized extrinsic parameter matrix.

[0256] Under the guidance of the technical solution of the present disclosure, adjustments or modifications made to the external parameter calibration method of the present disclosure by those skilled in the art shall all fall within the protection scope of the present disclosure.

[0257] With respect to the calibration methods of various embodiments described above, the calibration plate image described above is a complete image of the surface of the calibration plate.

[0258] In some embodiments of the present disclosure, the image acquisition system 10 includes a first camera, a second camera, a third camera and a fourth camera. The first camera and the third camera are relatively arranged with respect to the image acquisition area, so that the first camera and the third camera can perform image acquisition in a first imaging direction, and the second camera and the fourth camera are relatively arranged with respect to the image acquisition area, so that the second camera and the fourth camera can perform image acquisition in a second imaging direction.

[0259] The first camera and the third camera are two cameras associated with a first imaging direction, and the second camera and the fourth camera are two cameras associated with a second imaging direction.

[0260] For the calibration methods of various embodiments described above, preferably, the positions of various calibration plates are different from each other, and the planes where the surfaces of the calibration plates are located are not parallel to each other when the calibration plates are at various calibration plate positions.

[0261] For the calibration methods of various embodiments described above, preferably, when the calibration plate is at each calibration plate position, the angle between the optical axis of each camera and the normal of the calibration plate surface is less than or equal to a preset angle, such as 15°. During data collection, it is necessary to ensure that at each collection point, the intersection angle between the plane normal of the calibration plate and the optical axis of all cameras is not greater than 15° to avoid observation errors caused by excessive inclination.

[0262] In some embodiments of the present disclosure, in order to ensure calculation accuracy, when the number of cameras is four, the number of calibration plate positions is greater than a preset number, for example, at least 18 calibration point position data need to be collected.

[0263] For the calibration methods of the various embodiments described above, preferably, the calibration plate is simultaneously rotated around each coordinate axis of the rectangular coordinate system (world coordinate system) where the calibration plate is located to obtain multiple calibration plate positions.

[0264] In order to avoid the degeneration problem in the subsequent calibration process and the inability to obtain a unique solution, the positions of all the calibration points mentioned above should be different. At the same time, all planes of the calibration plate in all positions are not parallel to each other, and the position of the calibration plate must be rotated around all axes.

[0265] By calibrating the image acquisition system based on the calibration method disclosed in the present invention, the camera distortion of the image acquisition system can be corrected to a greater extent, and the calibration accuracy can be improved, thereby improving the accuracy and stability of the image acquisition system.

[0266] Based on the calibration method described above, the present disclosure further provides a readable storage medium, in which execution instructions are stored. When the execution instructions are executed by a processor, they are used to implement the calibration method of any embodiment of the present disclosure.

[0267] Based on the calibration method described above, the present disclosure further provides a computer program product, including a computer program, which implements the calibration method of any embodiment of the present disclosure when the computer program is executed by a processor.

[0268] For the purposes of this specification, a "readable storage medium" may be any device that can contain, store, communicate, propagate or transmit a program for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples of readable storage media (a non-exhaustive list) include the following: an electrical connection with one or more wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable read-only memory (CDROM). In addition, the readable storage medium may even be paper or other suitable medium on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a memory.

[0269] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0270] A person skilled in the art may understand that all or part of the steps of implementing the above-mentioned implementation method may be completed by instructing related hardware through a program, and the program may be stored in a readable storage medium, which, when executed, includes one or a combination of the steps of the implementation method.

[0271] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a readable storage medium. The storage medium may be a read-only memory, a disk or an optical disk, etc.

[0272] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.

Claims

1. A calibration method for an image acquisition system, wherein the image acquisition system comprises a plurality of cameras, wherein the spatial positions of the plurality of cameras are configured so that the image acquisition system can acquire images in a first imaging direction and a second imaging direction, wherein: include: Acquire multiple calibration plate images at multiple calibration plate positions captured by each camera; Calculating the center positions of all concentric circle patterns of each calibration plate image in the multiple calibration plate images obtained by each camera to obtain the center positions of all concentric circle patterns of each calibration plate image of each camera in a pixel coordinate system; as well as The camera intrinsic calibration is performed based on the center positions of all concentric circle patterns of each calibration plate image of each camera in the pixel coordinate system and the optical parameters of each camera to obtain the intrinsic calibration matrix and distortion parameters of each camera; Among them, multiple concentric circle patterns are configured on the surface of the calibration plate, each concentric circle pattern includes at least an inner circle and an outer circle with the same center, and the multiple concentric circle patterns include concentric circle patterns of different sizes and concentric circle patterns of the same size, so that the multiple concentric circle patterns form an asymmetric concentric circle pattern two-dimensional array.

2. The calibration method according to claim 1, characterized in that: Also includes: Based on the intrinsic calibration matrix of each camera and the positions of the multiple calibration plates, extrinsic calibration is performed on each camera to obtain the extrinsic calibration matrix of each camera.

3. The calibration method according to claim 1, characterized in that: The center positions of all concentric circle patterns of each calibration plate image of each camera are calculated, including: The estimated center position of the inner circle is corrected based on the inner circle radius and the outer circle radius of the concentric circle pattern and the estimated center position of the outer circle and the estimated center position of the inner circle to obtain the center position of the concentric circle pattern.

4. The calibration method according to claim 1, characterized in that: Based on the intrinsic calibration matrix of each camera and the positions of the multiple calibration plates, each camera is calibrated with extrinsic parameters to obtain the extrinsic calibration matrix of each camera, including: Obtaining an initial extrinsic parameter matrix for each camera based on the multiple calibration plate positions and the intrinsic parameter calibration matrix of each camera; Taking every two cameras of the multiple cameras as a camera combination, performing joint calibration optimization on the initial extrinsic parameter matrices of the two cameras in each camera combination, and obtaining a first optimized extrinsic parameter matrix of each camera in each camera combination; Based on the first optimized extrinsic parameter matrix of each camera in each camera combination, performing joint calibration optimization of the multiple cameras to obtain a second optimized extrinsic parameter matrix of each camera; and Based on the second optimized extrinsic parameter matrix of each camera, the two cameras associated with the first imaging direction are jointly calibrated and optimized, the two cameras associated with the second imaging direction are jointly calibrated and optimized, and then a camera associated with the first imaging direction and a camera associated with the second imaging direction are jointly calibrated and optimized to obtain the final optimized extrinsic parameter matrix of each camera, that is, the extrinsic parameter calibration matrix.

5. The calibration method according to claim 4, characterized in that: Based on the first optimized extrinsic parameter matrix of each camera of each camera combination, performing joint calibration optimization of the multiple cameras includes: Constructing a cyclic sequence based on the spatial arrangement sequence of the plurality of cameras; and An error equation is constructed based on the cyclic sequence and the spatial position transformation relationship between every two adjacent cameras, and the joint calibration optimization of the multiple cameras is completed by minimizing the error of the error equation.

6. The calibration method according to claim 3, characterized in that: Correcting the estimated center position of the inner circle based on the inner circle radius and the outer circle radius of the concentric circle pattern and the estimated center position of the outer circle and the estimated center position of the inner circle to obtain the center position of the concentric circle pattern, including: The center of the outer circle and the inner circle of the concentric circle pattern are estimated respectively to obtain the estimated position of the center of the outer circle and the estimated position of the center of the inner circle; Obtaining the distance between the estimated center position of the inner circle and the estimated center position of the outer circle, and obtaining the direction in which the estimated center position of the outer circle points to the estimated center position of the inner circle as a correction direction; The corrected distance is obtained by taking the ratio of the square difference between the outer circle radius and the inner circle radius to the square of the inner circle radius as the ratio of the center distance to the corrected distance; and The estimated position of the center of the inner circle is moved along the correction direction by the correction distance to obtain a center correction position as the center position of the concentric circle pattern.

7. The calibration method according to any one of claims 1 to 6, characterized in that: The outer circle and the inner circle of the concentric circle pattern are estimated respectively to obtain the estimated position of the outer circle center and the estimated position of the inner circle center, including: Fitting an inner ellipse to the outer circle to obtain an inner ellipse, and using the intersection of the major and minor axes of the inner ellipse as the estimated center position of the outer circle; and Performing inner ellipse fitting on the inner circle to obtain an inner ellipse, and taking the intersection of the major and minor axes of the inner ellipse as the estimated position of the center of the inner circle; Optionally, the calibration plate image is a complete image of the surface of the calibration plate; Optionally, the image acquisition system includes a first camera, a second camera, a third camera and a fourth camera, the first camera and the third camera are arranged relatively with respect to an image acquisition area, so that the first camera and the third camera can acquire images in the first imaging direction, and the second camera and the fourth camera are arranged relatively with respect to the image acquisition area, so that the second camera and the fourth camera can acquire images in the second imaging direction; Optionally, the positions of the calibration plates are different from each other, and the planes on which the surfaces of the calibration plates are located are not parallel to each other when the calibration plates are at the respective calibration plate positions; Optionally, when the calibration plate is at each calibration plate position, the angle between the optical axis of each camera and the normal line of the surface of the calibration plate is less than or equal to a preset angle; Optionally, when the number of the cameras is four, the number of the calibration plate positions is greater than a preset number; Optionally, the calibration plate is rotated simultaneously around each coordinate axis of the rectangular coordinate system where the calibration plate is located to obtain the multiple calibration plate positions; Optionally, the multiple calibration plate images of multiple calibration plate positions captured by each camera are multiple calibration plate images obtained by using each camera to capture images of the calibration plate when the calibration plate is placed at multiple calibration plate positions in the image capture area.

8. An image acquisition system, characterized in that: include: A first module and a second module; The first module includes: a first laser capable of emitting laser light; a first galvanometer, wherein the first galvanometer can deflect around a first axis, and the first galvanometer can project the laser light emitted by the first laser onto a surface of a target object; and a first camera, wherein the first camera is arranged in a direction perpendicular to the first axis, and the first camera is capable of collecting reflected light of the laser projected by the first galvanometer onto the surface of the target object and modulated by the surface of the target object to obtain a modulated image; The second module comprises: a second laser capable of emitting laser light; a second galvanometer, wherein the second galvanometer is capable of deflecting about a second axis, and the second galvanometer is capable of projecting the laser light emitted by the second laser onto the surface of the target object; and a second camera, the second camera being arranged in a direction perpendicular to the second axis, and the second camera being capable of collecting reflected light of the laser projected by the second galvanometer onto the surface of the target object after being modulated by the surface of the target object to obtain a modulated image; Wherein, the first axis and the second axis are perpendicular to each other, the optical axis of the first laser is perpendicular to the first axis, and the optical axis of the second laser is perpendicular to the second axis; The image acquisition system is calibrated based on the calibration method described in any one of claims 1 to 14; Optionally, the first module further includes: a third camera, the third camera being arranged in a direction perpendicular to the first axis, and the third camera and the first camera being arranged on both sides of the first galvanometer, so that the first camera and the third camera can jointly collect reflected light after the laser projected by the first galvanometer to the surface of the target object and modulated by the surface of the target object to obtain a modulated image; The second module also includes: A fourth camera is arranged in a direction perpendicular to the second axis, and the fourth camera and the second camera are arranged on both sides of the second galvanometer, so that the second camera and the fourth camera can jointly collect the reflected light of the laser projected by the second galvanometer to the surface of the target object after being modulated by the surface of the target object to obtain a modulated image.

9. A readable storage medium, characterized in that: The readable storage medium stores execution instructions, which are used to implement the calibration method according to any one of claims 1 to 7 when executed by a processor.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the calibration method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Three-dimensional structural light illumination super-resolution microscopic imaging device based on double vibrating mirrors and double objective lenses and method thereof

    CN109407293A

  • Joint calibration method, device and equipment for multi-camera external parameters and medium

    CN114663528A

  • Calibration plate based on concentric circles and camera calibration method

    CN117745835A