A calibration method, device and computer equipment for multi-eye equipment

By using the checkerboard center coordinate distance and the vector value of the corner point coordinate axis to determine the serial number in the multi-view equipment, the calibration process of the multi-view equipment is simplified, the problem of low calibration robustness in the existing technology is solved, and an efficient camera calibration.

CN117934623BActive Publication Date: 2024-10-29ZHEJIANG HEALNOC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311721640.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2024-10-29
Estimated Expiration
2043-12-14

AI Technical Summary

Technical Problem

In the existing technology, the robustness of multi-camera equipment camera calibration is not high, mainly due to the high complexity of algorithm processing and the large amount of calculation, which makes it difficult to accurately calibrate multiple checkerboard calibration plates obtained in a single shot.

Method used

By photographing the preset combination calibration board of multi-camera equipment, the serial number of each checkerboard is determined by using the vector inner and outer product values ​​of the checkerboard center coordinate distance and the corner point coordinate axis, thereby simplifying the calibration process and reducing algorithm complexity. and calculation amount.

Benefits of technology

It improves the robustness of multi-objective equipment calibration, achieves the ability to accurately calibrate multiple checkerboards obtained in a single shot without introducing graphic codes, and reduces algorithm complexity and calculation amount.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117934623B_ABST
    Figure CN117934623B_ABST
Patent Text Reader

Abstract

The present application relates to a calibration method, device and computer equipment for a multi-eye device. The method comprises: determining the first chessboard in the calibration board image captured by each lens based on the distance between the center coordinates of each chessboard in the calibration board image captured by each lens; determining the serial number of each chessboard in the calibration board image captured by each lens based on the vector inner product and vector outer product values ​​of the first chessboard in the calibration board image and all the corner point coordinate axes of other chessboards in the calibration board image; calibrating the multi-eye device based on the corner point coordinates of the chessboard with the same serial number in the calibration board image captured by each lens. The method can solve the problem that the existing technology of camera calibration for multiple chessboard calibration plates obtained by a single shot is not robust enough because the algorithm processing is complex and requires a lot of calculations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of equipment calibration, and in particular to a calibration method, device and computer equipment for multi-objective equipment. Background Art

[0002] With the development of image processing technology, the application of three-dimensional stereoscopic image display technology in the medical field has gradually received attention. For example, three-dimensional stereoscopic image display technology can be used to determine the relative depth of medical devices or parts to be treated. Three-dimensional stereoscopic image display technology is mainly based on the three-dimensional display of left and right stereoscopic image pairs collected by multi-eye devices to provide a three-dimensional sense of the observation area. However, in order to obtain comfortable stereoscopic imaging and correct three-dimensional geometric relationship of the target, it is necessary to establish a geometric imaging model based on the intrinsic parameters, extrinsic parameters and distortion parameters of the multi-eye device. Among them, the process of solving the intrinsic parameters, extrinsic parameters and distortion parameters of each camera, that is, the process of camera calibration, is the focus and difficulty of three-dimensional stereoscopic image display technology.

[0003] The existing technology mainly uses Zhang Zhengyou calibration algorithm for camera calibration. It uses a simple checkerboard calibration plate to establish the camera geometry model and solve the camera's intrinsic parameters, extrinsic parameters and distortion parameters. However, this calibration method often requires multiple shots to obtain no less than 10 checkerboard calibration plates at different angles and postures to ensure its calibration accuracy.

[0004] In order to reduce the number of shots and simplify the complex calibration process, the prior art proposes adding specially designed graphic codes to the checkerboard to detect and distinguish the checkerboard, so as to obtain multiple checkerboard calibration plates through a single shot. However, adding specially designed graphic codes to the checkerboard will lead to high complexity of algorithm processing during camera calibration, requiring a large amount of calculation, resulting in low robustness of camera calibration.

[0005] With regard to the existing method of calibrating a camera using multiple checkerboard calibration plates obtained from a single shot, there is currently no effective solution to the problem that the robustness of the camera calibration is not high due to the high complexity of the algorithm processing and the need for a large amount of calculation. Summary of the invention

[0006] Based on this, it is necessary to provide a calibration method, device and computer equipment for a multi-eye device to address the above technical problems.

[0007] In a first aspect, the present application provides a calibration method for a multi-view device. The method comprises:

[0008] Based on the shooting operation of the multi-eye device on the preset combined calibration plate, obtaining the calibration plate image shot by each lens of the multi-eye device;

[0009] Based on the distances between the center coordinates of each chessboard in the calibration plate image captured by each lens of the multi-eye device, a chessboard whose distances to the center coordinates of other chessboards in the calibration plate image are less than or equal to a preset first distance length is determined as the first chessboard in the calibration plate image captured by each lens;

[0010] Determine the sequence number of each checkerboard in the calibration plate image captured by each of the lenses based on the values ​​of the vector inner product and the vector outer product of the coordinate axes of all corner points of the first checkerboard in the calibration plate image and the other checkerboards except the first checkerboard in the calibration plate image;

[0011] The multi-eye device is calibrated based on the coordinates of the corner points of the chessboard with the same sequence number in the calibration plate image taken by each of the lenses.

[0012] In one embodiment, before obtaining the calibration plate image captured by each lens of the multi-eye device based on the shooting operation of the multi-eye device on the preset combined calibration plate, the following steps are included:

[0013] Select the first chessboard square;

[0014] Rotating and / or translating the first chessboard to obtain the layout of the combined calibration plate;

[0015] Determining the size of the combined calibration plate based on the photographable area of ​​the multi-eye device;

[0016] The combined calibration plate is formulated based on the layout of the combined calibration plate and the size of the combined calibration plate; the combined calibration plate includes at least two checkerboards and serial numbers corresponding to the checkerboards.

[0017] In one embodiment, rotating and / or translating the first chessboard to obtain the layout of the combined calibration plate comprises the following steps:

[0018] The first chessboard is translated upward by a preset first distance to obtain a second chessboard; the first chessboard is rotated 180° with the center of the first chessboard as the axis, and then translated downward by the preset first distance to obtain a third chessboard; the first chessboard is rotated 90° clockwise with the center of the first chessboard as the axis, and then translated to the left by a preset second distance to obtain a fourth chessboard; the first chessboard is rotated 90° counterclockwise with the center of the first chessboard as the axis, and then translated to the right by the preset second distance to obtain a fifth chessboard;

[0019] Based on the first checkerboard, the second checkerboard, the third checkerboard, the fourth checkerboard, and the fifth checkerboard, the layout of the combined calibration plate is determined.

[0020] In one embodiment, determining the size of the combined calibration plate based on the photographable area of ​​the multi-eye device comprises the following steps:

[0021] Based on the photographic area of ​​the multi-eye device, the diameter of the bottom of the conical photographic area of ​​the multi-eye device is determined, and the size of the combined calibration plate is determined according to the principle of taking the diameter of the bottom of the conical photographic area as the maximum value of the distance between any two points on the combined calibration plate.

[0022] In one of the embodiments, before determining the diameter of the bottom of the conical photographic area of ​​the multi-eye device based on the photographic area of ​​the multi-eye device, and according to the principle of taking the diameter of the bottom of the conical photographic area as the maximum value of the distance between any two points on the combined calibration plate, determining the size of the combined calibration plate, the following steps are also included:

[0023] Determining a common field of view angle of the multi-eye device based on optical parameters of the multi-eye device;

[0024] Based on the common field of view of the multi-eye device and the calibration distance between the multi-eye device and the combined calibration plate, the photographable area of ​​the multi-eye device is determined.

[0025] In one embodiment, based on the distance between the center coordinates of each of the checkerboards in the calibration plate image captured by each of the lenses of the multi-eye device, before determining the checkerboard whose distance to the center coordinates of other checkerboards in the calibration plate image is less than or equal to a preset first distance length as the first checkerboard in the calibration plate image captured by each lens, the following steps are included:

[0026] Determine the center coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses based on the corner coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses of the multi-eye device;

[0027] Based on the center coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses, the distances between the center coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses are determined.

[0028] In one of the embodiments, before determining the center coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses based on the corner coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses of the multi-eye device, the following steps are also included:

[0029] Using a preset corner point coordinate acquisition method, the corner point coordinates of each chessboard in the calibration plate image taken by each lens are acquired to obtain a coordinate collection of each chessboard in the calibration plate image taken by each lens;

[0030] Based on the preset zero point and coordinate axis determination method, the zero point coordinates in the coordinate set of each chessboard grid and the corner point coordinate axes of each chessboard grid are determined.

[0031] In one embodiment, determining the sequence number of each checkerboard in the calibration plate image captured by each of the lenses based on the values ​​of the vector inner product and the vector outer product of the first checkerboard in the calibration plate image and the coordinate axes of all corner points of other checkerboards except the first checkerboard in the calibration plate image comprises the following steps:

[0032] When the vector inner product of the first chessboard grid and the corner point coordinate axis of the first chessboard grid to be determined is greater than 0 and the vector outer product is equal to 0, determining the first chessboard grid to be determined as the second chessboard grid;

[0033] When the vector inner product of the corner point coordinate axes of the first chessboard grid and the second chessboard grid to be determined is less than 0 and the vector outer product is equal to 0, determining the second chessboard grid to be determined as the third chessboard grid;

[0034] When the vector inner product of the coordinate axes of the corner points of the first chessboard grid and the third chessboard grid to be determined is equal to 0 and the vector outer product is greater than 0, determining the third chessboard grid to be determined as the fourth chessboard grid;

[0035] When the vector inner product of the corner point coordinate axes of the first chessboard and the fourth chessboard to be determined is equal to 0 and the vector outer product is less than 0, the fourth chessboard to be determined is determined to be the fifth chessboard.

[0036] In a second aspect, the present application also provides a calibration device for a multi-view device. The device comprises:

[0037] A shooting module, used for obtaining the calibration plate image shot by each lens of the multi-eye device based on the shooting operation of the multi-eye device on the preset combined calibration plate;

[0038] A first determining module is used to determine, based on the distances between the center coordinates of each chessboard in the calibration plate image taken by each lens of the multi-eye device, a chessboard whose distances to the center coordinates of other chessboards in the calibration plate image are less than or equal to a preset first distance length as the first chessboard in the calibration plate image taken by each lens;

[0039] A second determination module is used to determine the sequence number of each checkerboard in the calibration plate image captured by each of the lenses based on the values ​​of the vector inner product and the vector outer product of the first checkerboard in the calibration plate image and all the corner point coordinate axes of other checkerboards except the first checkerboard in the calibration plate image;

[0040] And a calibration module, which is used to calibrate the multi-eye device based on the coordinates of the corner points of the chessboard with the same sequence number in the calibration plate image taken by each of the lenses.

[0041] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the multi-eye device calibration method described in the first aspect is implemented.

[0042] The calibration method, device and computer equipment of the multi-eye device obtain the calibration plate image taken by each lens of the multi-eye device by shooting the preset combined calibration plate. Then, based on the distance between the center coordinates of each chessboard in the calibration plate image taken by each lens of the multi-eye device, the first chessboard in the calibration plate image taken by each lens is determined, and then the sequence number of each chessboard in the calibration plate image taken by each lens is determined by using the vector inner product and vector outer product values ​​of all the corner point coordinate axes of the first chessboard and other chessboards. Finally, the multi-eye device is calibrated according to the corner point coordinates of the chessboard with the same sequence number in the calibration plate image taken by each lens. The method determines the serial number of each chessboard in the calibration plate image taken by each lens by utilizing the vector inner product and vector outer product values ​​of the coordinate axes of all corner points of the first chessboard and other chessboards. The method has high robustness and realizes the detection and serial number distinction of the chessboard without introducing graphic codes, simplifies the process of camera calibration for multiple chessboards obtained by a single shot, reduces the complexity of the algorithm, reduces the amount of calculation, and solves the problem that the existing technology performs camera calibration on multiple chessboard calibration plates obtained by a single shot, because the algorithm processing is complex and requires a lot of calculation, resulting in low robustness of camera calibration.

[0043] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0045] Figure 1 A hardware structure block diagram of a terminal of a multi-device calibration method provided in an embodiment of the present application;

[0046] Figure 2 A flowchart of a calibration method for a multi-view device provided in one embodiment of the present application;

[0047] Figure 3 A schematic diagram of the zero point and corner point coordinate axes of a chessboard provided in one embodiment of the present application;

[0048] Figure 4 A flowchart of a calibration method for a multi-eye device provided in a preferred embodiment of the present application;

[0049] Figure 5 A structural block diagram of a calibration device for a multi-objective device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0051] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0052] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 FIG. 1 is a hardware structure diagram of a terminal of the multi-eye device calibration method of this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data, wherein processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0053] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the calibration method of the multi-objective device in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0054] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0055] In this embodiment, a calibration method for a multi-view device is provided. Figure 2 is a flow chart of the calibration method of the multi-eye device of this embodiment. Figure 2 As shown, the process includes the following steps:

[0056] Step S210, based on the shooting operation of the multi-eye device on the preset combined calibration plate, the calibration plate image shot by each lens of the multi-eye device is obtained.

[0057] The multi-eye device may be a multi-eye camera, specifically a camera for taking medical images and videos of the target part and displaying three-dimensional stereo images. The combined calibration plate is a calibration plate composed of a plurality of checkerboards with different angles and postures. The selection of checkerboards may be to select checkerboards with different shapes according to different calibration algorithms. For example, a circular checkerboard may be a triangular checkerboard or a square checkerboard. As an implementable embodiment, each checkerboard may be a rectangular checkerboard of uniform size, and the number of corner points of the long axis of the checkerboard is greater than the number of corner points of the short axis. As another implementable embodiment, a plurality of square checkerboards may be used to form a combined calibration plate, wherein the corner points of the checkerboard may be the intersection of two black grids in the checkerboard as the corner points of the checkerboard. The specific method of selecting the checkerboard may adopt any existing general checkerboard, which is not specifically limited in this embodiment.

[0058] Preferably, the combined calibration plate can be placed in a fixed position, the position of the multi-eye device can be adjusted, and the shooting can be performed at different angles at the same distance from the combined calibration plate. The multi-eye device can also be rotated at a certain angle at different positions. The specific embodiment is as follows, three shooting positions of the multi-eye device are pre-set, namely position 1, position 2 and position 3. Position 1 rotates the device 30 degrees clockwise for shooting, position 2 places the device horizontally for shooting, and position 3 rotates the device 30 degrees counterclockwise for shooting. Each position is photographed by the left lens and the right lens of the multi-eye device to obtain two calibration plate images. It is convenient to determine the checkerboard sequence number in the calibration plate through multiple calibration plate images captured at multiple positions, calibrate the multi-eye device, and improve the accuracy of calibration.

[0059] Step S220, based on the distances between the center coordinates of each chessboard in the calibration plate image taken by each lens of the multi-eye device, the chessboard whose distances to the center coordinates of other chessboards in the calibration plate image are less than or equal to a preset first distance length is determined as the first chessboard in the calibration plate image taken by each lens.

[0060] In this step, the center coordinates of the above-mentioned chessboard can be the average coordinates obtained by averaging the coordinates of all corner points in the chessboard as the center coordinates of the chessboard. Specifically, for example, the horizontal coordinates of all corner point coordinates in the rectangular chessboard can be averaged to obtain the horizontal coordinates of the center coordinates of the chessboard; the vertical coordinates of all corner point coordinates in the rectangular chessboard can be averaged to obtain the vertical coordinates of the center coordinates of the chessboard. The distance between the center coordinates of each of the above-mentioned chessboards can be the distance between the center coordinates of any two chessboards of all the chessboards. For example, there are 3 chessboards in the calibration plate image, namely the first chessboard, the second chessboard and the third chessboard, then the distance between the center coordinates of each chessboard is the distance between the center coordinate of the first chessboard and the center coordinate of the second chessboard, the distance between the center coordinate of the first chessboard and the center coordinate of the third chessboard, and the distance between the center coordinate of the second chessboard and the center coordinate of the third chessboard. The above-mentioned preset first distance length can be a distance length defined according to a specific combination of calibration plates, and is used to compare with the calculated distances between the center coordinates of each chessboard grid to determine the first chessboard grid in the calibration plate image taken by each lens.

[0061] In this step, the first chessboard in the calibration plate image taken by each lens of the multi-eye device is determined by the distance between the center coordinates of each chessboard in the calibration plate image taken by each lens of the multi-eye device and the preset first distance length, so as to facilitate the subsequent identification of other chessboards in the calibration plate image taken by each lens based on the relationship between the first chessboard and other chessboards.

[0062] Step S230, determining the serial number of each chessboard in the calibration plate image captured by each lens based on the values ​​of the vector inner product and the vector outer product of the first chessboard in the calibration plate image and the coordinate axes of all corner points of other chessboards except the first chessboard in the calibration plate image.

[0063] Among them, the values ​​of the inner product and outer product of the vectors of the first chessboard in the above-mentioned calibration plate image and all the corner point coordinate axes of the other chessboards in the calibration plate image except the first chessboard may be the values ​​of the inner product and outer product of the horizontal coordinate vector of the corner point coordinate axes of the first chessboard in the calibration plate image and the vector of the horizontal coordinates of all the corner point coordinate axes of the other chessboards in the calibration plate image except the first chessboard, as well as the values ​​of the inner product and outer product of the vertical coordinate vector of the corner point coordinate axes of the first chessboard in the calibration plate image and the vector of the vertical coordinates of all the corner point coordinate axes of the other chessboards in the calibration plate image except the first chessboard.

[0064] It should be noted that before calculating the values ​​of the vector inner product and the vector outer product of the first chessboard in the calibration plate image and all the corner point coordinate axes of the other chessboards except the first chessboard in the calibration plate image, it is necessary to determine the vectors of the first chessboard in the calibration plate image and all the corner point coordinate axes of the other chessboards except the first chessboard in the calibration plate image, that is, to determine the horizontal coordinate vector and the vertical coordinate vector of the corner point coordinate axes of each chessboard in the calibration plate image. Specifically, the vector formed by the difference between the last corner point coordinate in the horizontal axis (X-axis) direction of the corner point coordinate axis of the chessboard and the zero point coordinate can be used as the horizontal coordinate vector of the corner point coordinate axis of this chessboard; the vector formed by the difference between the last corner point coordinate in the vertical axis (Y-axis) direction of the corner point coordinate axis of the chessboard and the zero point coordinate can be used as the vertical coordinate vector of the corner point coordinate axis of this chessboard. For example, the zero point coordinate of the first chessboard is (x0, y0). If the last corner point coordinate of the first chessboard corner point coordinate axis in the X-axis direction is (x1, y1), then the horizontal coordinate vector of the first chessboard corner point coordinate axis is is (x1-x0, y1-y0); if the last corner point coordinate of the first chessboard corner point coordinate axis in the Y-axis direction is (x2, y2), then the ordinate vector of the first chessboard corner point coordinate axis is is (x2-x0, y2-y0).

[0065] In addition, because the positions of the chessboard grids in the preset combined calibration board are fixed, and each chessboard grid has a corresponding serial number. For example, the serial number of the first chessboard grid may be 1, the serial number of the second chessboard grid may be 2, the serial number of the third chessboard grid may be 3, the serial number of the fourth chessboard grid may be 4, and the serial number of the fifth chessboard grid may be 5. Also, because the positions of each chessboard grid other than the first chessboard grid and the first chessboard grid have a certain corresponding relationship, for example, the second chessboard grid is obtained by translating the first chessboard grid upward by a preset first distance, then the second chessboard grid and the first chessboard grid are arranged in parallel and are located above the first chessboard grid. Then, the values ​​of the vector inner product and the vector outer product of the first chessboard grid in the calibration board image and all the corner point coordinate axes of the other chessboard grids except the first chessboard grid in the calibration board image can be used to determine the positional relationship between the other chessboard grids except the first chessboard grid in the calibration board image and the first chessboard grid, and then the serial numbers of the other chessboard grids except the first chessboard grid in the calibration board image can be determined. For example, the second chessboard and the first chessboard are arranged side by side and are located above the first chessboard. When the vector inner product of the first chessboard in the calibration plate image and the coordinate axes of all corner points of the chessboard to be determined is greater than 0 and the vector outer product is equal to 0, it can be determined that the chessboard to be determined is the second chessboard, that is, the serial number of the chessboard to be determined is determined to be 2.

[0066] In this step, the sequence number of each chessboard in the calibration plate image taken by each lens is determined by the vector inner product and vector outer product of the first chessboard in the calibration plate image and all the corner point coordinate axes of other chessboards except the first chessboard in the calibration plate image. This is convenient for determining the chessboard with the same sequence number in the calibration plate image taken by each lens, and then using the chessboard with the same sequence number taken by each lens to calibrate the multi-eye device.

[0067] Step S240, calibrating the multi-eye device based on the coordinates of the corner points of the checkerboard with the same sequence number in the calibration plate images taken by each lens.

[0068] The coordinates of the corner points of the checkerboard with the same serial number in the calibration plate images taken by the above-mentioned lenses may be the coordinates of the corner points of the checkerboard with the same serial number in the calibration plate images taken by the left and right lenses of the binocular device. For example, it can be the corner point coordinates of the chessboard number one in the calibration plate image taken by the left lens, and the corner point coordinates of the chessboard number one in the calibration plate image taken by the right lens; the corner point coordinates of the chessboard number two in the calibration plate image taken by the left lens, and the corner point coordinates of the chessboard number two in the calibration plate image taken by the right lens; the corner point coordinates of the chessboard number three in the calibration plate image taken by the left lens, and the corner point coordinates of the chessboard number three in the calibration plate image taken by the right lens; the corner point coordinates of the chessboard number four in the calibration plate image taken by the left lens, and the corner point coordinates of the chessboard number four in the calibration plate image taken by the right lens; the corner point coordinates of the chessboard number five in the calibration plate image taken by the left lens, and the corner point coordinates of the chessboard number five in the calibration plate image taken by the right lens. This step uses the coordinates of the corner points of the chessboard with the same sequence number in the calibration images taken by each lens, combined with the world coordinates, and uses the existing camera calibration method to optimize and solve the camera's intrinsic parameters, extrinsic parameters, and distortion parameters. This reduces the complexity of the algorithm and the amount of calculation, and solves the problem that the existing technology of camera calibration for multiple chessboard calibration plates obtained by a single shot has high algorithm processing complexity and requires a lot of calculations, resulting in low robustness of camera calibration.

[0069] In the above steps S210 to S240, the calibration plate images captured by each lens of the multi-eye device are obtained by performing a shooting operation based on the preset combined calibration plate. Further, based on the distance between the center coordinates of each chessboard in the calibration plate image captured by each lens of the multi-eye device, the first chessboard in the calibration plate image captured by each lens is determined, and then, the vector inner product and vector outer product values ​​of all the corner point coordinate axes of the first chessboard and other chessboards are used to determine the sequence number of each chessboard in the calibration plate image captured by each lens. Finally, the multi-eye device is calibrated according to the corner point coordinates of the chessboard with the same sequence number in the calibration plate image captured by each lens. The method determines the serial number of each chessboard in the calibration plate image taken by each lens by utilizing the vector inner product and vector outer product values ​​of the coordinate axes of all corner points of the first chessboard and other chessboards. The method has high robustness and realizes the detection and serial number distinction of the chessboard without introducing graphic codes, simplifies the process of camera calibration for multiple chessboards obtained by a single shot, reduces the complexity of the algorithm, reduces the amount of calculation, and solves the problem that the existing technology performs camera calibration on multiple chessboard calibration plates obtained by a single shot, because the algorithm processing is complex and requires a lot of calculation, resulting in low robustness of camera calibration.

[0070] In one embodiment, before step S210, the following steps are included:

[0071] Step S201, selecting the first chessboard grid.

[0072] Different shapes of checkerboards can be selected as the first checkerboard according to different calibration algorithms. In this embodiment, a rectangular checkerboard is selected as the first checkerboard. By selecting the first checkerboard, it is convenient to rotate and / or translate the first checkerboard to obtain other checkerboards, and then obtain the layout of the combined calibration plate.

[0073] Step S202: rotating and / or translating the first chessboard to obtain a layout of the combined calibration plate.

[0074] In this step, the first chessboard grid may be rotated and / or translated according to a preset rule to obtain other chessboard grids, and then all the chessboard grids in the combined calibration plate are obtained to determine the layout of the combined calibration plate.

[0075] The above-mentioned rotation and / or translation of the first chessboard according to the preset rules can be performed by directly translating the first chessboard upward according to the preset length, and using the translated chessboard as the second chessboard; the first chessboard can be rotated according to the preset angle, and then translated to the left according to the preset length, and the translated chessboard can be used as the third chessboard; the first chessboard can be translated to the right according to the preset length, and then the translated chessboard can be rotated according to the preset angle, and the rotated chessboard can be used as the fourth chessboard; the first chessboard can also be translated downward according to the preset length to obtain the fifth chessboard. After rotation and / or translation, the relative angles and directions of the middle plane (the plane where the first chessboard is located) and the planes in each direction around (the planes where the chessboards other than the first chessboard in the combined calibration plate are located) can be set to be different according to the size and direction of the preset relative angles. The specific relative angles and relative directions are not specifically limited here, as long as the combined calibration plate can be a calibration plate with different angles and postures composed of multiple chessboards. It should be noted that the layout of the combined calibration plate can be set to at least two chessboards. The specific number of chessboards, the relative moving distance, the rotation angle, and the relative angles and directions of each chessboard can be set according to specific needs, and this embodiment does not make specific limitations here.

[0076] Step S203: determining the size of the combined calibration plate based on the photographable area of ​​the multi-eye device.

[0077] The photographable area of ​​the multi-eye device may be an area that can be photographed by the multi-eye device.

[0078] In one embodiment, rotating and / or translating the first chessboard to obtain the layout of the combined calibration plate may include the following steps:

[0079] Step S2021, translate the first chessboard upward by a preset first distance to obtain a second chessboard; rotate the first chessboard 180° with the center of the first chessboard as the axis, and then translate downward by a preset first distance to obtain a third chessboard; rotate the first chessboard 90° clockwise with the center of the first chessboard as the axis, and then translate to the left by a preset second distance to obtain a fourth chessboard; rotate the first chessboard 90° counterclockwise with the center of the first chessboard as the axis, and then translate to the right by a preset second distance to obtain a fifth chessboard.

[0080] It should be noted that the above upward, downward, leftward and rightward movements are respectively performed relative to the position of the first chessboard grid. For example, the above upward translation of the first chessboard grid by the preset first distance may be upward translation of the first chessboard grid by the preset first distance relative to the original position of the first chessboard grid.

[0081] The above-mentioned first distance can ensure that there is no overlap between the second chessboard grid and the first chessboard grid, and there is no overlap between the third chessboard grid and the first chessboard grid. The center of the above-mentioned first chessboard grid is the intersection of the diagonals of the rectangular first chessboard grid. The above-mentioned second distance can ensure that there is no overlap between the third chessboard grid and the first chessboard grid, and there is no overlap between the fourth chessboard grid and the first chessboard grid. It should be noted that the second chessboard grid, the third chessboard grid, the fourth chessboard grid and the fifth chessboard grid are all obtained by rotating and / or translating the first chessboard grid, and the chessboard grids are not scaled, so the sizes of all chessboard grids are equal.

[0082] Step S2022, determining the layout of the combined calibration plate based on the first checkerboard, the second checkerboard, the third checkerboard, the fourth checkerboard and the fifth checkerboard.

[0083] In this step, the layout of the combined calibration plate can be determined by the size and position relationship of the first chessboard grid, the second chessboard grid, the third chessboard grid, the fourth chessboard grid and the fifth chessboard grid.

[0084] The above step S203, determining the size of the combined calibration plate based on the photographable area of ​​the multi-eye device, may include the following steps:

[0085] Step S2033, based on the photographic area of ​​the multi-eye device, determine the diameter of the bottom of the conical photographic area of ​​the multi-eye device, and determine the size of the combined calibration plate according to the principle of taking the diameter of the bottom of the conical photographic area as the maximum value of the distance between any two points on the combined calibration plate.

[0086] However, before step S2033, the conical imageable area of ​​the multi-eye device must be determined. Determining the conical imageable area of ​​the multi-eye device may include the following steps:

[0087] Step S2031, determining a common field of view angle of the multi-eye device based on the optical parameters of the multi-eye device.

[0088] Step S2032: determining the photographable area of ​​the multi-eye device based on the common field of view of the multi-eye device and the calibration distance between the multi-eye device and the combined calibration plate.

[0089] Among them, based on the common field of view angle of the multi-eye device and the calibration distance between the multi-eye device and the combined calibration plate, the photographic area of ​​the multi-eye device is determined. The common field of view angle of the multi-eye device can be used as the cone angle of the cone, the use distance of the multi-eye device can be used as the calibration distance between the multi-eye device and the combined calibration plate, and the calibration distance of the multi-eye device can be used as the height of the cone to determine a conical area, and this conical area is determined as the photographic area of ​​the multi-eye device.

[0090] After determining the conical photographable area of ​​the multi-eye device, the circular bottom of the conical photographable area can be obtained. Then, according to the principle of taking the diameter of the bottom of the conical photographable area as the maximum value of the distance between any two points on the combined calibration plate, the size of the combined calibration plate is determined. That is, when the combined calibration plate is set at the use distance of the multi-eye device, the photographable area of ​​the multi-eye device can completely cover the combined calibration plate. With this setting method, the calibration plate image can be captured through the lens of the multi-eye device.

[0091] Step S204, formulating a combined calibration plate based on the layout of the combined calibration plate and the size of the combined calibration plate; the combined calibration plate includes at least two checkerboards and serial numbers corresponding to the checkerboards.

[0092] According to the layout and size of the combined calibration plate, the combined calibration plate is customized, and the serial number of each chessboard in the combined calibration plate is determined, so that the serial number of each chessboard is determined through the subsequent positional relationship between each chessboard, and then the chessboard with the same serial number in the calibration plate image taken by each lens is determined, and then the chessboard with the same serial number taken by each lens is used to calibrate the multi-eye device.

[0093] Preferably, in order to ensure that each checkerboard in the combined calibration plate has a different angle and a different posture, the combined calibration plate composed of multiple checkerboards can be manufactured according to a preset relative angle, wherein the size and direction of the preset relative angle are not specifically limited here. For example, the relative angles and directions of the middle plane (the plane where the first checkerboard is located) and the planes in each direction around (the planes where the checkerboards other than the first checkerboard in the combined calibration plate are located) can be set to be different according to the size and direction of the preset relative angle. It should be noted that when manufacturing a combined calibration plate composed of multiple checkerboards according to a preset relative angle, it should be manufactured according to the layout of the combined calibration plate and the size of the combined calibration plate.

[0094] In the above steps S201 to S204, the first chessboard is selected and then the first chessboard is rotated and / or translated to obtain the layout of the combined calibration plate, and then the size of the combined calibration plate is determined based on the shootable area of ​​the multi-eye device, and the self-verification calibration plate is formulated based on the determined layout and size of the combined calibration plate, and the serial number of each chessboard in the calibration plate image is determined, so as to facilitate the subsequent determination of each chessboard according to the positional relationship between each chessboard, and determine the chessboard with the same serial number in the calibration plate image captured by each lens, and then use the chessboard with the same serial number captured by each lens to calibrate the multi-eye device.

[0095] In addition, in one embodiment, before step S220, the following steps are included:

[0096] Step S211, based on the coordinates of the corner points of each checkerboard in the calibration plate image taken by each lens of the multi-eye device, determine the center coordinates of each checkerboard in the calibration plate image taken by each lens.

[0097] Step S212, based on the center coordinates of each checkerboard in the calibration plate image taken by each lens, determine the distance between the center coordinates of each checkerboard in the calibration plate image taken by each lens.

[0098] In the above steps S211 to S212, the center coordinates of each chessboard in the calibration plate image taken by each lens of the multi-eye device are determined through the coordinates of the corner points of each chessboard in the calibration plate image taken by each lens, and then the distance between the center coordinates of each chessboard is determined, so as to facilitate determining the first chessboard in the calibration plate image taken by each lens according to the distance between the center coordinates of each chessboard, and facilitate subsequent identification of other chessboards in the calibration plate image taken by each lens based on the relationship between the first chessboard and other chessboards.

[0099] In one embodiment, before step S211, the following steps are also included:

[0100] Step S2101, using a preset corner point coordinate acquisition method, obtains the corner point coordinates of each chessboard in the calibration plate image taken by each lens, and obtains a coordinate collection of each chessboard in the calibration plate image taken by each lens.

[0101] In this step, the coordinate collection of each checkerboard in the calibration plate image captured by each lens can be obtained by obtaining the coordinate collection of each checkerboard in the calibration plate image captured by the left lens and the coordinate collection of each checkerboard in the calibration plate image captured by the right lens. For example, if there are 54 corner points in a checkerboard of a calibration plate image, then there are 54 corner point coordinates in this checkerboard, and these 54 corner point coordinates can constitute the coordinate collection of this checkerboard. If there are 3 checkerboards in the calibration plate images captured by the left and right lenses respectively, the calibration images captured by the left and right lenses can respectively obtain 3 sets of coordinate collections of 3 checkerboards. It should be noted that the coordinates of the coordinate collection of each checkerboard in the calibration plate image captured by the same lens have the same coordinate system.

[0102] Step S2102, based on the preset zero point and coordinate axis determination method, determine the zero point coordinates in the coordinate set of each chessboard grid and the corner point coordinate axis of each chessboard grid.

[0103] Because the coordinate set of each chessboard is the coordinate point set of a rectangle, the long side of the rectangle can be used as the X-axis of each chessboard, and the short side of the rectangle can be used as the Y-axis of each chessboard. The zero point coordinates in the coordinate set of each chessboard are the coordinates of the zero point of the chessboard. It should be noted that the zero point coordinates in the coordinate set of each chessboard are not the origin of the coordinate system. The zero point can be determined by selecting a point from the four inflection points in the coordinate point set of the rectangle as the zero point of each chessboard. Among them, the inflection point of the coordinate point set of the rectangle is the intersection of the two sides of the coordinate point set of the rectangle. The method for selecting the zero point of the chessboard can be to select a point with a black square in the upper left corner and the point determined by the left-hand spiral rule from the X-axis direction to the Y-axis direction as the zero point. Among them, the left-hand spiral rule is to first place the left palm perpendicular to the coordinate plane, spread out the four fingers except the thumb, pointing in the direction of the X-axis, and then bend the four fingers, turning the bending direction from the X-axis direction to the Y-axis direction (the rotation angle must be less than 180 degrees), and at this time the thumb is standing outward. Figure 3 is a schematic diagram of the zero point and corner point coordinate axes of a chessboard. Figure 3As shown, a rectangular chessboard is included, as well as an X-axis 32 of the chessboard, a Y-axis 34 of the chessboard, and a zero point 36 of the chessboard. The chessboard is composed of black squares and white squares, the long side of the rectangle is used as the X-axis 32 of each chessboard, and the short side of the rectangle is used as the Y-axis 34 of each chessboard. The point whose upper left corner is a black square and the direction from the X-axis 32 of the corner coordinate axis to the Y-axis 34 of the corner coordinate axis conforms to the left-hand spiral rule can be selected as the zero point 36 of the chessboard.

[0104] In the above steps S2101 to S2102, the corner coordinates of each chessboard in the calibration plate image taken by each lens are obtained by a preset corner coordinate acquisition method, and the coordinate collection of each chessboard in the calibration plate image taken by each lens is obtained, and then the zero point coordinates in the coordinate collection of each chessboard and the corner coordinate axis of each chessboard are determined based on the preset zero point and coordinate axis determination method. By determining the corner coordinates of each chessboard, it is convenient to calculate the center coordinates of each chessboard according to the corner coordinates of the chessboard, and then use the distance between the center coordinates of each chessboard to determine the first chessboard. By obtaining the zero point coordinates in the coordinate collection of each chessboard and the corner coordinate axis of each chessboard, it is convenient to calculate the corner coordinate axis vector of each chessboard according to the zero point coordinates of each chessboard and the coordinate axis, and then calculate the inner product and outer product of the corner coordinate vector of each chessboard, and then determine the sequence number of each chessboard according to the calculation result.

[0105] Further, in one embodiment, step S230, based on the values ​​of the vector inner product and the vector outer product of the first chessboard in the calibration plate image and all the corner point coordinate axes of other chessboards except the first chessboard in the calibration plate image, determines the sequence number of each chessboard in the calibration plate image captured by each lens, including the following steps:

[0106] Step S232, when the vector inner product of the first chessboard grid and the corner point coordinate axis of the first chessboard grid to be determined is greater than 0 and the vector outer product is equal to 0, determine the first chessboard grid to be determined as the second chessboard grid.

[0107] For example, the horizontal coordinate vector of the coordinate axis of the corner point of the first chessboard square is (x1-x0, y1-y0), the ordinate vector of the first chessboard corner coordinate axis (x2-x0, y2-y0), the horizontal coordinate vector of the coordinate axis of the corner point of the chessboard to be determined (xn1-xn0, yn1-yn0), the ordinate vector of the coordinate axis of the corner point of the chessboard to be determined is (xn2-xn0, yn2-yn0), then the inner product of the abscissa vector of the coordinate axis of the corner point of the first chessboard grid and the abscissa vector of the coordinate axis of the corner point of the chessboard grid to be determined is calculated. The specific calculation formula is as follows:

[0108]

[0109] Calculate the outer product of the abscissa vector of the coordinate axis of the corner point of the first chessboard grid and the abscissa vector of the coordinate axis of the corner point of the chessboard grid to be determined. The specific calculation formula is as follows:

[0110]

[0111] Calculate the inner product of the ordinate vector of the first chessboard corner coordinate axis and the ordinate vector of the to-be-determined chessboard corner coordinate axis. The specific calculation formula is as follows:

[0112]

[0113] Calculate the outer product of the ordinate vector of the first chessboard corner coordinate axis and the ordinate vector of the to-be-determined chessboard corner coordinate axis. The specific calculation formula is as follows:

[0114]

[0115] When the vector inner product of the first chessboard grid and the coordinate axis of the corner point of the chessboard grid to be determined is greater than 0 and the vector outer product is equal to 0, that is:

[0116]

[0117] When , the chessboard square to be determined is the second chessboard square.

[0118] Step S234, when the vector inner product of the corner point coordinate axes of the first chessboard grid and the second chessboard grid to be determined is less than 0 and the vector outer product is equal to 0, determine that the second chessboard grid to be determined is the third chessboard grid.

[0119] For example, the horizontal coordinate vector of the coordinate axis of the corner point of the first chessboard square is (x1-x0, y1-y0), the ordinate vector of the first chessboard corner coordinate axis (x2-x0, y2-y0), the horizontal coordinate vector of the coordinate axis of the corner point of the chessboard to be determined (xn1-xn0, yn1-yn0), the ordinate vector of the coordinate axis of the corner point of the chessboard to be determined is (xn2-xn0, yn2-yn0), then the inner product of the abscissa vector of the coordinate axis of the corner point of the first chessboard grid and the abscissa vector of the coordinate axis of the corner point of the chessboard grid to be determined is calculated. The specific calculation formula is as follows:

[0120]

[0121] Calculate the outer product of the abscissa vector of the coordinate axis of the corner point of the first chessboard grid and the abscissa vector of the coordinate axis of the corner point of the chessboard grid to be determined. The specific calculation formula is as follows:

[0122]

[0123] Calculate the inner product of the ordinate vector of the first chessboard corner coordinate axis and the ordinate vector of the to-be-determined chessboard corner coordinate axis. The specific calculation formula is as follows:

[0124]

[0125] Calculate the outer product of the ordinate vector of the first chessboard corner coordinate axis and the ordinate vector of the to-be-determined chessboard corner coordinate axis. The specific calculation formula is as follows:

[0126]

[0127] When the vector inner product of the first chessboard grid and the coordinate axis of the corner point of the chessboard grid to be determined is less than 0 and the vector outer product is equal to 0, that is:

[0128]

[0129] , the chessboard square to be determined is the third chessboard square.

[0130] Step S236, when the vector inner product of the corner point coordinate axes of the first chessboard grid and the third chessboard grid to be determined is equal to 0 and the vector outer product is greater than 0, determine the third chessboard grid to be determined as the fourth chessboard grid.

[0131] For example, the horizontal coordinate vector of the coordinate axis of the corner point of the first chessboard square is (x1-x0, y1-y0), the ordinate vector of the first chessboard corner coordinate axis (x2-x0, y2-y0), the horizontal coordinate vector of the coordinate axis of the corner point of the chessboard to be determined (xn1-xn0, yn1-yn0), the ordinate vector of the coordinate axis of the corner point of the chessboard to be determined is (xn2-xn0, yn2-yn0), then the inner product of the abscissa vector of the coordinate axis of the corner point of the first chessboard grid and the abscissa vector of the coordinate axis of the corner point of the chessboard grid to be determined is calculated. The specific calculation formula is as follows:

[0132]

[0133] Calculate the outer product of the abscissa vector of the coordinate axis of the corner point of the first chessboard grid and the abscissa vector of the coordinate axis of the corner point of the chessboard grid to be determined. The specific calculation formula is as follows:

[0134]

[0135] Calculate the inner product of the ordinate vector of the first chessboard corner coordinate axis and the ordinate vector of the to-be-determined chessboard corner coordinate axis. The specific calculation formula is as follows:

[0136]

[0137] Calculate the outer product of the ordinate vector of the first chessboard corner coordinate axis and the ordinate vector of the to-be-determined chessboard corner coordinate axis. The specific calculation formula is as follows:

[0138]

[0139] When the vector inner product of the first chessboard grid and the coordinate axis of the corner point of the chessboard grid to be determined is equal to 0 and the vector outer product is greater than 0, that is:

[0140]

[0141] , the chessboard square to be determined is the fourth chessboard square.

[0142] Step S238, when the vector inner product of the corner point coordinate axes of the first chessboard grid and the fourth chessboard grid to be determined is equal to 0 and the vector outer product is less than 0, determine that the fourth chessboard grid to be determined is the fifth chessboard grid.

[0143] For example, the horizontal coordinate vector of the coordinate axis of the corner point of the first chessboard square is (x1-x0, y1-y0), the ordinate vector of the first chessboard corner coordinate axis (x2-x0, y2-y0), the horizontal coordinate vector of the coordinate axis of the corner point of the chessboard to be determined is (xn1-xn0, yn1-yn0), and the ordinate vector of the coordinate axis of the corner point of the chessboard to be determined is is (xn2-xn0, yn2-yn0), then the inner product of the abscissa vector of the coordinate axis of the corner point of the first chessboard grid and the abscissa vector of the coordinate axis of the corner point of the chessboard grid to be determined is calculated. The specific calculation formula is as follows:

[0144]

[0145] Calculate the outer product of the abscissa vector of the coordinate axis of the corner point of the first chessboard grid and the abscissa vector of the coordinate axis of the corner point of the chessboard grid to be determined. The specific calculation formula is as follows:

[0146]

[0147] Calculate the inner product of the ordinate vector of the first chessboard corner coordinate axis and the ordinate vector of the to-be-determined chessboard corner coordinate axis. The specific calculation formula is as follows:

[0148]

[0149] Calculate the outer product of the ordinate vector of the first chessboard corner coordinate axis and the ordinate vector of the to-be-determined chessboard corner coordinate axis. The specific calculation formula is as follows:

[0150]

[0151] When the vector inner product of the first chessboard grid and the coordinate axis of the corner point of the chessboard grid to be determined is equal to 0 and the vector outer product is less than 0, that is:

[0152]

[0153] , the chessboard square to be determined is the fifth chessboard square.

[0154] It should be noted that the method of determining the chessboard to be determined in the above steps S232 to S238 is applicable to the determination of the sequence number of the chessboard in the layout of the combined calibration plate obtained by the method of step S2021. If the layout of the combined calibration plate is different, the vector inner product and vector outer product of the coordinate axes of all corner points of the first chessboard in the combined calibration plate and the other chessboards except the first chessboard in the calibration plate image are different.

[0155] In the above steps S232 to S238, based on the first chessboard in the calibration plate image, and the values ​​of the vector inner product and the vector outer product of all the corner point coordinate axes of the other chessboards except the first chessboard in the calibration plate image, the serial numbers of the chessboards in the calibration plate image taken by each lens are determined, so as to facilitate the determination of the chessboards with the same serial numbers in the calibration plate image taken by each lens, and then the calibration of the multi-eye device is performed using the chessboards with the same serial numbers taken by each lens.

[0156] The present embodiment is described and illustrated below through preferred embodiments.

[0157] Figure 4 1 is a flow chart of a calibration method for a multi-eye device provided by a preferred embodiment of the present application. Figure 4 As shown, the calibration method of the multi-eye device includes the following steps:

[0158] Step S401, selecting the first chessboard grid;

[0159] Step S402, rotating and / or translating the first chessboard to obtain a layout of the combined calibration plate;

[0160] Step S403, determining the size of the combined calibration plate based on the photographable area of ​​the multi-eye device;

[0161] Step S404, formulating a combined calibration plate based on the layout of the combined calibration plate and the size of the combined calibration plate;

[0162] Step S405, based on the shooting operation of the multi-eye device on the preset combined calibration plate, obtaining the calibration plate image shot by each lens of the multi-eye device; the combined calibration plate is a calibration plate with different angles and postures composed of a plurality of checkerboards;

[0163] Step S406, based on the coordinates of the corner points of each checkerboard in the calibration plate image taken by each lens of the multi-eye device, determine the center coordinates of each checkerboard in the calibration plate image taken by each lens;

[0164] Step S407, determining the distance between the center coordinates of each checkerboard grid in the calibration plate image captured by each lens based on the center coordinates of each checkerboard grid in the calibration plate image captured by each lens;

[0165] Step S408, based on the distances between the center coordinates of each chessboard in the calibration plate image captured by each lens of the multi-eye device, a chessboard whose distances to the center coordinates of other chessboards in the calibration plate image are less than or equal to a preset first distance length is determined as the first chessboard in the calibration plate image captured by each lens;

[0166] Step S409, determining the sequence number of each checkerboard in the calibration plate image captured by each lens based on the values ​​of the vector inner product and the vector outer product of the first checkerboard in the calibration plate image and the coordinate axes of all corner points of other checkerboards except the first checkerboard in the calibration plate image;

[0167] Step S410, calibrating the multi-eye device based on the coordinates of the corner points of the checkerboard with the same sequence number in the calibration plate image taken by each lens.

[0168] In the above steps S401 to S410, the layout of the combined calibration plate is obtained by selecting the first chessboard, rotating and / or translating the first chessboard, and then determining the size of the combined calibration plate based on the shootable area of ​​the multi-eye device, and then formulating the combined calibration plate based on the layout of the combined calibration plate and the size of the combined calibration plate, and then performing the shooting operation on the preset combined calibration plate to obtain the calibration plate image captured by each lens of the multi-eye device. Then, based on the distance between the center coordinates of each chessboard in the calibration plate image captured by each lens of the multi-eye device, the first chessboard in the calibration plate image captured by each lens is determined, and then, the vector inner product and vector outer product values ​​of all corner point coordinate axes of the first chessboard and other chessboards are used to determine the sequence number of each chessboard in the calibration plate image captured by each lens. Finally, the multi-eye device is calibrated according to the corner point coordinates of the chessboard with the same sequence number in the calibration plate image captured by each lens. The method determines the serial number of each chessboard in the calibration plate image taken by each lens by utilizing the vector inner product and vector outer product values ​​of the coordinate axes of all corner points of the first chessboard and other chessboards. The method has high robustness and realizes the detection and serial number distinction of the chessboard without introducing graphic codes, simplifies the process of camera calibration for multiple chessboards obtained by a single shot, reduces the complexity of the algorithm, reduces the amount of calculation, and solves the problem that the existing technology performs camera calibration on multiple chessboard calibration plates obtained by a single shot, because the algorithm processing is complex and requires a lot of calculation, resulting in low robustness of camera calibration.

[0169] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0170] Based on the same inventive concept, a calibration device for a multi-eye device is also provided in this embodiment, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0171] In one embodiment, Figure 5 is a structural block diagram of a calibration device for a multi-objective device provided in an embodiment of the present application, such as Figure 5 As shown, the calibration device of the multi-eye device includes:

[0172] The shooting module 52 is used to obtain the calibration plate image shot by each lens of the multi-eye device based on the shooting operation of the multi-eye device on the preset combined calibration plate;

[0173] A first determining module 54 is used to determine, based on the distances between the center coordinates of each chessboard in the calibration plate image captured by each lens of the multi-eye device, a chessboard whose distances to the center coordinates of other chessboards in the calibration plate image are less than or equal to a preset first distance length as the first chessboard in the calibration plate image captured by each lens;

[0174] A second determination module 56 is used to determine the sequence number of each chessboard in the calibration plate image captured by each lens based on the values ​​of the vector inner product and the vector outer product of the first chessboard in the calibration plate image and all the corner point coordinate axes of other chessboards except the first chessboard in the calibration plate image;

[0175] And a calibration module 58 is used to calibrate the multi-eye device based on the coordinates of the corner points of the checkerboard with the same sequence number in the calibration plate image taken by each lens.

[0176] The calibration device of the multi-eye device obtains the calibration plate image taken by each lens of the multi-eye device by shooting the preset combined calibration plate. Then, based on the distance between the center coordinates of each chessboard in the calibration plate image taken by each lens of the multi-eye device, the first chessboard in the calibration plate image taken by each lens is determined, and then, the vector inner product and vector outer product values ​​of all the corner point coordinate axes of the first chessboard and other chessboards are used to determine the sequence number of each chessboard in the calibration plate image taken by each lens. Finally, the multi-eye device is calibrated according to the corner point coordinates of the chessboard with the same sequence number in the calibration plate image taken by each lens. The method determines the serial number of each chessboard in the calibration plate image taken by each lens by utilizing the vector inner product and vector outer product values ​​of the coordinate axes of all corner points of the first chessboard and other chessboards. The method has high robustness and realizes the detection and serial number distinction of the chessboard without introducing graphic codes, simplifies the process of camera calibration for multiple chessboards obtained by a single shot, reduces the complexity of the algorithm, reduces the amount of calculation, and solves the problem that the existing technology performs camera calibration on multiple chessboard calibration plates obtained by a single shot, because the algorithm processing is complex and requires a lot of calculation, resulting in low robustness of camera calibration.

[0177] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0178] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, any multi-objective device calibration method in the above embodiments is implemented.

[0179] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0180] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0181] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0182] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A calibration method for a multi-eye device, characterized in that: The method comprises: Selecting a first chessboard; rotating and / or translating the first chessboard to obtain other chessboards of the combined calibration plate; determining the layout of the combined calibration plate based on all the chessboards of the combined calibration plate; obtaining an image of the calibration plate captured by each lens of the multi-eye device based on the shooting operation of the multi-eye device on the combined calibration plate; Based on the distances between the center coordinates of each chessboard in the calibration plate image captured by each lens of the multi-eye device, a chessboard whose distances to the center coordinates of other chessboards in the calibration plate image are less than or equal to a preset first distance length is determined as the first chessboard in the calibration plate image captured by each lens; Determine the sequence number of each checkerboard in the calibration plate image captured by each of the lenses based on the values ​​of the vector inner product and the vector outer product of the coordinate axes of all corner points of the first checkerboard in the calibration plate image and the other checkerboards except the first checkerboard in the calibration plate image; The multi-eye device is calibrated based on the coordinates of the corner points of the chessboard with the same sequence number in the calibration plate image taken by each of the lenses.

2. The calibration method of a multi-eye device according to claim 1, characterized in that: Before obtaining the calibration plate images photographed by each lens of the multi-eye device based on the photographing operation of the multi-eye device on the combined calibration plate, the method includes: Determining the size of the combined calibration plate based on the photographable area of ​​the multi-eye device; The combined calibration plate is formulated based on the layout of the combined calibration plate and the size of the combined calibration plate; the combined calibration plate includes at least two checkerboards and serial numbers corresponding to the checkerboards.

3. The calibration method of a multi-eye device according to claim 2, characterized in that: The step of rotating and / or translating the first chessboard to obtain the layout of the combined calibration plate includes: The first chessboard is translated upward by a preset first distance to obtain a second chessboard; the first chessboard is rotated 180° with the center of the first chessboard as the axis, and then translated downward by the preset first distance to obtain a third chessboard; the first chessboard is rotated 90° clockwise with the center of the first chessboard as the axis, and then translated to the left by a preset second distance to obtain a fourth chessboard; the first chessboard is rotated 90° counterclockwise with the center of the first chessboard as the axis, and then translated to the right by the preset second distance to obtain a fifth chessboard; Based on the first checkerboard, the second checkerboard, the third checkerboard, the fourth checkerboard, and the fifth checkerboard, the layout of the combined calibration plate is determined.

4. The calibration method of a multi-eye device according to claim 2, characterized in that: The determining the size of the combined calibration plate based on the photographable area of ​​the multi-eye device includes: Based on the photographic area of ​​the multi-eye device, the diameter of the bottom of the conical photographic area of ​​the multi-eye device is determined, and the size of the combined calibration plate is determined according to the principle of taking the diameter of the bottom of the conical photographic area as the maximum value of the distance between any two points on the combined calibration plate.

5. The calibration method of a multi-eye device according to claim 4, characterized in that: Before determining the diameter of the bottom of the conical photographic area of ​​the multi-eye device based on the photographic area of ​​the multi-eye device, and determining the size of the combined calibration plate according to the principle of taking the diameter of the bottom of the conical photographic area as the maximum value of the distance between any two points on the combined calibration plate, the method further includes: Determining a common field of view angle of the multi-eye device based on optical parameters of the multi-eye device; Based on the common field of view of the multi-eye device and the calibration distance between the multi-eye device and the combined calibration plate, the photographable area of ​​the multi-eye device is determined.

6. The calibration method of a multi-eye device according to claim 1, characterized in that: The method comprises: determining the checkerboard whose distance to the center coordinates of other checkerboards in the calibration plate image is less than or equal to a preset first distance length based on the distance between the center coordinates of each checkerboard in the calibration plate image taken by each lens of the multi-eye device as the first checkerboard in the calibration plate image taken by each lens, comprising: Determine the center coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses based on the corner coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses of the multi-eye device; Based on the center coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses, the distances between the center coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses are determined.

7. The calibration method of a multi-eye device according to claim 6, characterized in that: Before determining the center coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses based on the corner coordinates of each of the checkerboards in the calibration plate image taken by each of the lenses of the multi-eye device, the method further includes: Using a preset corner point coordinate acquisition method, the corner point coordinates of each chessboard in the calibration plate image taken by each lens are acquired to obtain a coordinate collection of each chessboard in the calibration plate image taken by each lens; Based on the preset zero point and coordinate axis determination method, the zero point coordinates in the coordinate set of each chessboard grid and the corner point coordinate axes of each chessboard grid are determined.

8. The calibration method of a multi-eye device according to claim 3, characterized in that: Determining the sequence number of each chessboard in the calibration plate image captured by each of the lenses based on the values ​​of the vector inner product and the vector outer product of the first chessboard in the calibration plate image and the coordinate axes of all corner points of other chessboards except the first chessboard in the calibration plate image, comprising: When the vector inner product of the first chessboard grid and the coordinate axis of the corner point of the first chessboard grid to be determined is greater than 0 and the vector outer product is equal to 0, determining the first chessboard grid to be determined as the second chessboard grid; When the vector inner product of the coordinate axes of the corner points of the first chessboard grid and the second chessboard grid to be determined is less than 0 and the vector outer product is equal to 0, determining the second chessboard grid to be determined as the third chessboard grid; When the vector inner product of the coordinate axes of the corner points of the first chessboard grid and the third chessboard grid to be determined is equal to 0 and the vector outer product is greater than 0, determining the third chessboard grid to be determined as the fourth chessboard grid; When the vector inner product of the corner point coordinate axes of the first chessboard and the fourth chessboard to be determined is equal to 0 and the vector outer product is less than 0, the fourth chessboard to be determined is determined to be the fifth chessboard.

9. A calibration device for a multi-eye device, characterized in that: The device comprises: A shooting module is used to select a first chessboard; rotate and / or translate the first chessboard to obtain other chessboards of the combined calibration plate; determine the layout of the combined calibration plate based on all the chessboards of the combined calibration plate; and obtain the calibration plate image shot by each lens of the multi-eye device based on the shooting operation of the multi-eye device on the combined calibration plate; A first determining module is used to determine, based on the distances between the center coordinates of each chessboard in the calibration plate image taken by each lens of the multi-eye device, a chessboard whose distances to the center coordinates of other chessboards in the calibration plate image are less than or equal to a preset first distance length as the first chessboard in the calibration plate image taken by each lens; A second determination module is used to determine the sequence number of each checkerboard in the calibration plate image captured by each of the lenses based on the values ​​of the vector inner product and the vector outer product of the first checkerboard in the calibration plate image and all the corner point coordinate axes of other checkerboards except the first checkerboard in the calibration plate image; And a calibration module, which is used to calibrate the multi-eye device based on the coordinates of the corner points of the chessboard with the same sequence number in the calibration plate image taken by each of the lenses.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the multi-eye device calibration method described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Checkerboard calibration template under incomplete collection condition, and automatic recognition method for checkerboard calibration template

    CN108182707A

  • AVM camera parameter calibration method and device and electronic equipment

    CN113610927A