Calibration board, calibration method, storage medium and electronic equipment
By setting coded graphics and position information of different sizes on the calibration board, the preset positioning algorithm is used to achieve joint calibration of multiple cameras, which solves the problem in the existing technology that cameras with different fields of view cannot be jointly calibrated, and reduces the cost of camera installation and The position requirements for placing the calibration plate improve the efficiency and accuracy of calibration.
Patent Information
- Application Number
- CN202310196152.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-03-02
AI Technical Summary
The existing calibration board cannot jointly calibrate cameras with different fields of view, and has high requirements on the camera installation position. The camera position needs to be moved to image the characteristic pattern within the camera field of view.
A calibration board is designed, which contains at least two target field of view areas. Each area contains multiple coded graphics of different sizes. The coded graphics carry position information, and the image coordinates collected by the camera are determined through the preset positioning algorithm and position information. Establish the affine transformation matrix between the camera and the calibration plate to achieve joint calibration of multiple cameras.
It realizes that cameras with different field of view can clearly capture the coded graphics, and realizes the correspondence between the camera coordinate system and the calibration plate coordinate system based on the position information, which reduces the location requirements for camera installation and calibration plate placement, and improves the efficiency and efficiency of multi-camera joint calibration. accuracy.
Smart Images

Figure CN118587293A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of machine vision, and in particular to a calibration plate, a calibration method, a storage medium and an electronic device. Background Art
[0002] The earliest calibration plate surface was a checkerboard. When performing calibration, in addition to knowing the size of the grid, it is also necessary to determine the number of grids in the camera's field of view by counting to complete the calibration. If the grid spacing size is relatively small in the actual application scenario, the user is likely to miscount the number of grids, resulting in a calibration failure. At present, there are also methods such as embedding information in the characteristic pattern of the calibration plate for camera marking, wherein the embedded information records the direction of the calibration plate and the index of the area where the characteristic pattern is located, thereby providing correlation information between multiple cameras during multi-camera calibration. However, the characteristic patterns on the calibration plate are currently the same size and fixed in position, and cameras with different fields of view cannot be jointly calibrated. In addition, the existing calibration plates and calibration methods have high requirements on the camera installation position, and the camera position needs to be moved to image the characteristic pattern within the camera's field of view.
[0003] With regard to the problem in the prior art that the calibration plate cannot jointly calibrate cameras with different fields of view, no effective solution has been proposed so far. Summary of the invention
[0004] The embodiments of the present invention provide a calibration plate, a calibration method, a storage medium and an electronic device, so as to at least solve the problem in the prior art that the calibration plate cannot jointly calibrate cameras with different fields of view.
[0005] According to one aspect of an embodiment of the present invention, a calibration plate is provided, which is applied to joint calibration of multiple cameras. The calibration plate includes at least a first target field of view area and a second target field of view area. The first target field of view area and the second target field of view area both include a plurality of coded graphics, and the size of at least part of the coded graphics in the first target field of view area is different from the size specification of the coded graphics in the second target field of view area; the graphic size of the coded graphics of different size specifications corresponds to the imaging accuracy of the camera to be calibrated; the coded graphics are distributed at intervals on the calibration plate; wherein the coded graphics carry position information, and the position information includes the position information of the calibration plate sub-area where the coded graphics are located in the calibration plate; wherein the position information includes: the horizontal coordinate corresponding to the calibration plate sub-area in the calibration plate, the vertical coordinate corresponding to the calibration plate sub-area in the calibration plate, and the size of the calibration plate area.
[0006] As an optional implementation, the above-mentioned coding patterns are distributed in an array on the calibration plate.
[0007] As an optional embodiment, the surface of the calibration plate is provided with a first calibration plate sub-area and a second calibration plate sub-area, and the coding pattern is located in the first calibration plate sub-area; wherein each target field of view area includes the first calibration plate sub-area and the second calibration plate sub-area; the first calibration plate sub-area corresponds to a first type of color, the second calibration plate sub-area corresponds to a second type of color, there is a resolution color difference between the first type of color and the second type of color, and the coding pattern color corresponding to the coding pattern is the second type of color.
[0008] As an optional implementation, the first calibration plate sub-area and the second calibration plate sub-area have the same size as the corresponding area.
[0009] As an optional implementation, the second calibration plate sub-area includes: an indicator mark, wherein the indicator mark is used to locate the direction of the calibration plate, and the indicator mark includes position coordinate information corresponding to the second calibration plate sub-area where the indicator mark is located on the calibration plate.
[0010] As an optional embodiment, there is also a calibration block in the above-mentioned first target field of view, wherein the calibration block is set at the field of view center and / or field of view edge of the first target field of view, each of the calibration blocks corresponds to a sub-coding graphic array, the array size of the sub-coding graphic array is m*n, and m and n are positive integers greater than or equal to 2, and the size of the coding graphic in the calibration block is larger than the size of the coding graphic in the second target field of view; each of the sub-coding graphic arrays simultaneously includes the first calibration board sub-area and the second calibration board sub-area.
[0011] As an optional embodiment, there are five target field of view areas on the calibration board, including a large target field of view area and four small target field of view areas, wherein the four small target field of view areas are located at the four corners of the large target field of view area and exist within the range of the large target field of view area; wherein large calibration blocks are sequentially set at the field of view center of the large target field of view area and the upper, lower, left and right field of view edges of the target field of view area, each of the large calibration blocks simultaneously includes the first calibration board sub-area and the second calibration board sub-area, and the size of the coded graphics in the first calibration board sub-area is the same; all positions in the calibration board except the large calibration blocks are set to small calibration blocks of the same size, each of the small calibration blocks simultaneously includes the first calibration board sub-area and the second calibration board area, and the size of the coded graphics in the large calibration block is larger than the size of the coded graphics in the small calibration block.
[0012] As an optional embodiment, the ratio of the imaging accuracy of the first camera to be calibrated corresponding to the first target field of view area and the second camera to be calibrated corresponding to the second target field of view area is the same as the ratio of the size of the coding graphic of the first target field of view area to the size of the coding graphic of the second target field of view area.
[0013] According to another aspect of an embodiment of the present invention, a calibration method is also provided, comprising: obtaining a target image of the calibration plate captured by multiple cameras to be calibrated with different fields of view, wherein the target image includes sub-target images respectively captured by multiple cameras to be calibrated; performing coded graphic recognition on the target image to determine multiple target coded graphics existing in the target image and position information corresponding to the target coded graphics; determining fourth image coordinates corresponding to the sub-target image captured by each of the multiple cameras to be calibrated based on a preset positioning algorithm and the position information, and determining the physical coordinates of the corner point of the area corresponding to the sub-area of the calibration plate where the target coded graphics is located based on the position information; wherein the fourth image coordinates are the pixel coordinates of the corner point of the area corresponding to the sub-area of the calibration plate where the target coded graphics is located precisely located in the target image; based on the fourth image coordinates and the physical coordinates, an affine transformation matrix corresponding to the physical coordinates of the calibration plate and the image coordinates captured by the multiple cameras to be calibrated is established, thereby completing the joint calibration of multiple cameras with different fields of view.
[0014] As an optional implementation, the above-mentioned determination of the fourth image coordinates corresponding to the sub-target image captured by each camera of the multiple cameras to be calibrated includes: obtaining the third image coordinates corresponding to the sub-region of the calibration board where the target coding pattern is located, wherein the third image coordinates are used to indicate the pixel position of the coarse positioning of the corner point of the area corresponding to the sub-region of the calibration board where the target coding pattern is located in the target image; using the third image coordinates as the coarse positioning coordinates, and determining the fourth image coordinates from the target image.
[0015] As an optional implementation, the third image coordinates are used as coarse positioning coordinates to determine the fourth image coordinates from the target image, including: determining a target frame diagram including the third image coordinates in the target image, wherein the size of the target frame diagram is the same as the size of the calibration board area around the third image coordinates; when the target frame diagram is processed into a line diagram, using a region selection box whose center is the third image coordinates to extract coordinates of the target frame diagram to obtain a first line and a second line, wherein the region selection box includes: a horizontal selection box and a vertical selection box, and the overlapping intersection of the horizontal selection box and the vertical selection box corresponds to the third image coordinates; calculating the coordinates of the intersection corresponding to the first line and the second line to obtain the precise region corner point corresponding to the calibration board area, and determining the precise region corner point as the fourth image coordinate corresponding to the calibration board area where the target coding pattern is located.
[0016] As an optional implementation, obtaining the third image coordinates corresponding to the sub-area of the calibration board where the target coding graphic is located includes: obtaining a calibration transformation relationship, and calculating the third image coordinates corresponding to the sub-area of the calibration board where the target coding graphic is located according to the calibration transformation relationship and the position information of the target coding graphic; wherein, obtaining the calibration transformation relationship includes: determining the first image coordinates corresponding to each of the multiple target coding graphics according to a preset sub-image algorithm, wherein the first image coordinates are used to indicate the pixel position corresponding to the center point of the target coding graphic in the target image, and the preset positioning algorithm includes: a preset sub-image algorithm; determining the second image coordinates corresponding to each target coding graphic according to the position information, wherein the second image coordinates are used to indicate the coordinate point information corresponding to the center point of the coding graphic determined according to the position information carried by the target coding graphic; determining the target coordinate set corresponding to the target image based on multiple first image coordinates and second image coordinates, and calculating the calibration transformation relationship corresponding to the target coordinate set.
[0017] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute a method in any one of the method embodiments when running.
[0018] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute a method in any one of the above method embodiments through the computer program.
[0019] In an embodiment of the present invention, a coded pattern corresponding to the imaging accuracy of the camera to be calibrated is arranged on the surface of the calibration plate, and the calibration plate includes at least a first target field of view area and a second target field of view area, the first target field of view area and the second target field of view area both include a plurality of coded patterns, and the size of at least part of the coded patterns in the first target field of view area is different from the size specification of the coded patterns in the second target field of view area; wherein the coded pattern carries position information, so that when the calibration plate is used for calibration, the camera to be calibrated can clearly capture the coded pattern, and then the camera coordinate system and the calibration plate coordinate system can correspond to each other according to the position information appearing in the coded pattern, so that the cameras to be calibrated with different field of view sizes can clearly capture the coded pattern, thereby realizing joint calibration.
[0020] Furthermore, since the entire area except the large calibration block is designed with relatively small coded graphics (QR codes), a camera with a small field of view can easily capture a sufficient number of small coded graphics (QR codes). There is no need to adjust the position of the camera in order to have a sufficient number of coded graphics (QR codes) within the camera with a small field of view, thereby reducing the requirements for the installation position of the camera and the placement position of the calibration plate.
[0021] In an embodiment of the present invention, a method for calibration using the above-mentioned calibration plate is also proposed. Each camera to be calibrated performs its own calibration transformation on the captured image of the calibration plate, and the corresponding relationship between the image coordinates of each camera and the physical coordinates can be obtained. Because all cameras shoot the same calibration plate, it is possible to achieve rapid calibration of multiple cameras with different fields of view. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1 A calibration plate according to an embodiment of the present invention;
[0024] Figure 2 A schematic diagram of dividing calibration blocks according to a camera field of view according to an optional embodiment of the present invention;
[0025] Figure 3 Schematic diagram (I) of the distribution of calibration blocks corresponding to the target visual field area according to an optional embodiment of the present invention;
[0026] Figure 4 Schematic diagram (II) of the distribution of calibration blocks corresponding to the target visual field area according to an optional embodiment of the present invention;
[0027] Figure 5is a schematic diagram of the field of view distribution of a camera installed in a target device according to an optional embodiment of the present invention;
[0028] Figure 6 is a hardware structure block diagram of a camera to be calibrated in a calibration method according to an embodiment of the present invention;
[0029] Figure 7 is a flow chart of a calibration method according to an optional embodiment of the present invention;
[0030] Figure 8 is a schematic diagram of an image coordinate R in an image according to an embodiment of the present invention;
[0031] Fig. 9 is a schematic diagram of a precise corner point T in an image according to an embodiment of the present invention;
[0032] Fig.10 4 is a schematic diagram of a process for calculating a precise corner point T according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] The applicant found that the size of the characteristic patterns of the existing calibration plates is basically the same. If the existing calibration plates are directly used to calibrate multiple cameras (at least two) with different field of view sizes, if the characteristic patterns of the calibration plate are small, the camera with a large field of view cannot clearly identify all the characteristic patterns; if the characteristic patterns of the calibration plate are large, the number of characteristic patterns that can be captured by the camera with a small field of view is limited, which reduces the calibration accuracy and may even make the calibration unsuccessful.
[0036] Based on this, according to one aspect of an embodiment of the present invention, a new calibration plate is provided. Figure 1 As shown, the calibration plate is applied to multi-camera joint calibration, and the calibration plate includes at least a first target field of view area and a second target field of view area, and the first target field of view area and the second target field of view area both include a plurality of coded graphics, and the size of at least part of the coded graphics in the first target field of view area is different from the size specification of the coded graphics in the second target field of view area;
[0037] The sizes of the coded graphics of different sizes correspond to the imaging accuracy of the camera to be calibrated;
[0038] The coding graphics are distributed at intervals on the calibration board; wherein the coding graphics carry position information, and the position information is the position information of the calibration board area where the coding graphics are located in the calibration board; wherein the position information includes: the horizontal coordinate corresponding to the calibration board area in the calibration board, the vertical coordinate corresponding to the calibration board area in the calibration board, and the size of the calibration board area.
[0039] Among them, one target field of view area corresponds to the field of view of a camera. That is to say, the calibration board can calibrate at least two cameras with different fields of view. Of course, it can also calibrate a larger number of cameras with different fields of view. Correspondingly, the number of target field of view areas can be designed according to the conditions of different cameras, as well as the number and arrangement of the coded graphic sizes required for each camera calibration.
[0040] Specifically, in order to ensure that the camera to be calibrated corresponding to the field of view type can capture coded graphics that can meet the camera calibration, it is necessary to set a sufficient number of coded graphics of corresponding sizes in the target field of view area according to the imaging accuracy corresponding to the camera to be calibrated, that is, there must be a number of coded graphics that meet the preset calibration requirements in the first calibration board area corresponding to the target field of view area, so that the cameras to be calibrated in each field of view can clearly capture a certain number of coded graphics (such as QR codes) at the same time.
[0041] Among them, by determining the position information carried by the coded graphic, the actual display image of the coded graphic is determined. It is assumed that the basic grid corresponding to the calibration plate is a black and white grid. The coded graphic is set in the black grid and carries the corresponding information 07907402, wherein 079 represents that the black grid is located in the 079th row corresponding to the calibration plate, 074 represents that the black grid is located in the 074th column corresponding to the calibration plate, and 02 represents that the side length of the grid is 2 mm. Therefore, when the camera to be calibrated obtains the image corresponding to the coded graphic and analyzes the image, it can be determined that the position coordinates of the black grid in the calibration plate are (79, 74), and the side length of the grid is 2 mm, so that the corresponding coordinate information can be quickly known.
[0042] It should be noted that the above position coordinates actually correspond to the coordinates of the upper left corner of the grid where the coded pattern is located. The coordinates are similar to the row and column numbers, and are neither pixel coordinates nor physical coordinates. Optionally, the above position coordinates can also be set at the coordinates of the upper right corner of the grid where the corresponding coded pattern is located, or other corner coordinates on the grid, and this application does not impose too many restrictions on this.
[0043] The above-mentioned coding pattern can be a two-dimensional code, such as a QR code, a DM code, an Aztec code, a MaxiCode code, or a Han Xin code. In addition, in actual scenarios, coding patterns can be made by customizing feature points, embedding the coding patterns in grids, and embedding the horizontal and vertical coordinate information of the corresponding grid in each coding pattern. This application does not make too many restrictions on this.
[0044] By setting at least two groups of coded graphics of different sizes and corresponding to the imaging accuracy of the camera to be calibrated on the surface of the calibration plate, when the calibration plate is used for calibration, at least two cameras to be calibrated with different fields of view can clearly capture the coded graphics, and then the camera coordinate system and the calibration plate coordinate system can be mutually corresponded according to the position information appearing in the coded graphics, thereby realizing the joint calibration of at least two cameras to be calibrated with different fields of view. Specifically, through the coded graphics of different sizes, the cameras to be calibrated with different fields of view perform their own calibration conversion on the captured calibration plate image, and the corresponding relationship between the image coordinates of each camera and the physical coordinates can be obtained, and because all cameras capture the same calibration plate, the above calibration plate can realize the rapid joint calibration of cameras with different fields of view.
[0045] The coding pattern is distributed at intervals on the calibration board. In simple terms, when the coding pattern is a two-dimensional code and the calibration board area on the calibration board is a black and white square, a coding pattern with a different color from the square can be set in the black or white square. In addition, when setting the coding pattern, it can also be set at intervals in the calibration board.
[0046] Specifically, for example, black, white, black, and white squares (calibration board areas) are arranged in sequence, wherein, for example, a black coding pattern is arranged in a white square; of course, it is also possible to arrange a white coding pattern in a black square. Furthermore, more than one number of squares of other colors may be arranged in squares of the same color, such as: black, white, white, black, white, and white.
[0047] Optionally, considering the convenience of manufacturing the calibration plate and using the calibration plate to perform the calibration method, the coding patterns are distributed in an array on the calibration plate.
[0048] Optionally, a first calibration board area and a second calibration board area are spaced apart on the surface of the calibration board, and the coding pattern is located in the first calibration board area; wherein each target field of view area includes the first calibration board area and the second calibration board area; that is, the calibration board preferably includes two types of calibration board areas spaced apart, such as the black and white checkerboard form commonly seen in the prior art, except that the grids (that is, the first calibration board area) in which the coding pattern is arranged in the calibration board of the present invention have at least two different sizes, that is, according to the different imaging accuracy of cameras with different fields of view, the sizes of the black and white grids in some areas of the calibration board (corresponding to the first calibration board area and the second calibration board area, respectively) are different from the sizes of the black and white grids in other areas.
[0049] Among them, the first calibration board sub-area corresponds to the first type of color, the second calibration board sub-area corresponds to the second type of color, there is a resolution color difference between the first type of color and the second type of color, and the coded pattern color corresponding to the coded pattern is the second type of color. It can be understood that when the coded pattern is distributed on the calibration board, it can be set in combination with the distribution of different calibration board sub-areas of the calibration board itself, for example, Figure 1 The middle calibration board is a square calibration board with black and white grids. The black calibration board area (equivalent to the second calibration board area mentioned above) and the white calibration board area (equivalent to the first calibration board area mentioned above) are arranged one by one. In order to display clearly, the coding graphics can be set to black and placed in the white calibration board area, so that all the coding graphics included in the coding array are distributed at intervals on the calibration board.
[0050] In addition, the color of the above-mentioned coding pattern can be flexibly set, as long as it can form a resolvable color difference with the calibration board area where the coding pattern is placed. It can be understood that the size and shape of the coding pattern are various, but the setting method of the coding pattern in the calibration board is the same, and the calibration board area corresponding to the calibration board needs to have a resolvable color difference, so that when the image corresponding to the calibration board area is obtained, the coding pattern existing in the calibration board area can be quickly and accurately identified from the image, thereby improving the efficiency of determining the coding pattern array in the calibration board.
[0051] Optionally, in order to facilitate production and calibration, the first calibration board sub-area and the second calibration board sub-area in the calibration board have the same size as the corresponding area. That is, preferably, regardless of the size of each first calibration board sub-area, each first calibration board sub-area corresponds to an adjacent second calibration board sub-area of the same size. For a target coding field of view with a relatively large coding graphic size, the first calibration board sub-area and the second calibration board sub-area have the same size as the corresponding area. For a target coding field of view with a relatively small coding graphic size, the first calibration board sub-area and the second calibration board sub-area have the same size as the corresponding area. When a target field of view includes several coding graphics of different sizes at the same time, the adjacent position of the first calibration board sub-area corresponding to the coding graphics of each size is also provided with a second calibration board area of the same size.
[0052] For example, in practical applications, the camera can be divided according to the field of view of the camera to be calibrated. Figure 2 A schematic diagram of dividing calibration blocks according to a camera field of view according to an optional embodiment of the present invention; Figure 2 The calibration plate in can be used to calibrate two types of fields of view, including large field of view and small field of view. Therefore, there will be two sizes of coded pattern specifications. Correspondingly, when setting the corresponding calibration plate area in the calibration plate, it is also necessary to adapt to the coded patterns of the above two sizes, and then determine the calibration plate that can be used to calibrate the above two fields of view.
[0053] In summary, through the above-mentioned setting method, by adapting the sub-area on the calibration board to the coding pattern, coding patterns of different sizes can also be made in the same calibration board, and then multiple cameras to be calibrated can be calibrated by one calibration board, thereby improving the efficiency of multi-camera joint calibration, that is, by designing coding patterns of different sizes on a calibration board, cameras with different field of view sizes can clearly capture the coding patterns and quickly realize joint calibration.
[0054] Optionally, the second calibration board sub-area includes: an indicator mark, wherein the indicator mark is used to locate the direction of the calibration board, and the indicator mark contains the position coordinate information corresponding to the second calibration board sub-area where the indicator mark is located on the calibration board. In order to facilitate production and facilitate distinguishing display, the indicator mark corresponding to the mark color is preferably the first type of color, and the size corresponding to the indicator mark (that is, the size of the indicator mark itself) is less than or equal to the size of the calibration board area. By setting an indicator mark with coordinate numbers in the second calibration board sub-area in the calibration board, the placement position of the calibration board on the target device installed with the camera to be calibrated can be indicated with the help of the indicator mark, so that the calibration board is placed in the correct direction when in use, providing basic support for the calibration process of the camera to be calibrated, and improving the calibration efficiency. Optionally, the above-mentioned coordinate numbers can also be replaced by arrow graphics, or other graphics containing the above-mentioned coordinate numbers, or text information that can be used to indicate the position and direction.
[0055] Optionally, considering that there may be a camera with a larger field of view among the cameras to be calibrated, and when calibrating a camera with a larger field of view, calibration errors may be caused by lens distortion. In order to reduce the error, it is assumed that the target field of view of the camera corresponding to the larger field of view is the first target field of view area. At this time, there is also a calibration block in the first target field of view area, wherein the calibration block is set at the field of view center and / or field of view edge of the first target field of view area, each calibration block corresponds to a sub-coding graphic array, the array size of the sub-coding graphic array is m*n, m and n are positive integers greater than or equal to 2, and the size of the coding graphic in the calibration block is at least greater than the size of the coding graphic in the second target field of view; each of the sub-coding graphic arrays simultaneously includes the first calibration board sub-area and the second calibration board sub-area.
[0056] Specifically, if the calibration plate needs to calibrate two cameras, including a camera with a large field of view and a camera with a small field of view, the camera with a large field of view corresponds to a first target field of view area, and the camera with a small field of view corresponds to a second target field of view area, the distribution of the target field of view areas of the above two types of fields of view in the calibration plate includes at least one of the following situations: Situation 1: In addition to the large calibration block used to calibrate the camera with a large field of view, the first target field of view area may also include: a small calibration block; specifically, Figure 3 As shown. Case 2: There is only a large calibration block in the first target field of view corresponding to the large field of view camera. Specifically, Figure 4 That is to say, as long as there are large calibration blocks containing large-size coded graphics at the center and / or edge of the first target visual field, and the number of coded graphics in the first target visual field meets the expression requirements, it is sufficient.
[0057] Likewise, each calibration block includes both a first calibration board area and a second calibration board area, and the corresponding areas of the two are the same in size.
[0058] Furthermore, the target field of view areas of the small field of view camera and the large field of view camera may overlap. For example, part of the first target field of view area corresponding to the large field of view camera is the second target field of view area corresponding to the small field of view camera. In addition, the first target field of view area corresponding to the large field of view camera and the second target field of view area corresponding to the small field of view camera do not overlap, that is, the second target field of view area and the first target field of view are distributed one by one on the calibration plate and do not interfere with each other.
[0059] Optionally, as a more specific embodiment, there are five target field of view areas on the calibration board, including a large target field of view area and four small target field of view areas, wherein the four small target field of view areas are located at the four corners of the large target field of view area and exist within the range of the large target field of view area; wherein large calibration blocks are sequentially set at the field of view center of the large target field of view area and the upper, lower, left and right field of view edges of the target field of view area, each large calibration block includes both the first calibration board area and the second calibration board area, and the size of the coded graphics in the first calibration board area is the same; all positions in the calibration board except the large calibration blocks are set to small calibration blocks of the same size, each small calibration block includes both the first calibration board area and the second calibration board area, and the size of the coded graphics in the large calibration block is larger than the size of the coded graphics in the small calibration block.
[0060] For example, in some application scenarios, it is necessary to locate the outline of the full-frame product and also locate the four local small mark points of the product. Therefore, it is necessary to calibrate a camera with a large field of view and four cameras with small fields of view together. As a result, there are multiple cameras to be calibrated in the target device. The distribution of multiple cameras to be calibrated is as follows: Figure 5 As shown, Figure 5The diagram is a schematic diagram of the field of view distribution of the cameras installed in the target device according to an optional embodiment of the present invention, wherein the large dotted square is the field of view that can be captured by the camera with the largest field of view in the multiple phases to be calibrated, and the four small areas in the large dotted square are the fields of view that can be captured by the four cameras with the smallest field of view in the multiple phases to be calibrated, which are located by four local small Mark points. In short, through the above layout, the five large black and white grid areas (equivalent to the large calibration blocks) are respectively distributed in the five positions of the upper, lower, left, right and middle of the large field of view, ensuring that each area within the field of view of the camera with a large field of view has enough coded graphics to calibrate the camera, avoiding the calibration error caused by the difference between the imaging in the middle and the four sides of the field of view due to lens distortion. Considering that the camera with a relatively small field of view for shooting four mark points is located at the diagonal position of the large field of view, the large grid can be designed without connecting the four sides, but leaving diagonal gaps to be set as small grids, so that the position of the camera with a small field of view is more flexible. Since the entire area except the large calibration block is designed with relatively small coded graphics (QR codes), a camera with a small field of view can easily capture a sufficient number of small coded graphics (QR codes). There is no need to adjust the position of the camera in order to have a sufficient number of coded graphics (QR codes) within the camera with a small field of view, which reduces the requirements for the installation position of the camera and the placement position of the calibration board.
[0061] It should be noted that the layout of the above-mentioned coding graphics is not limited and can be flexibly designed according to the actual application scenario. Optionally, for a camera with a wide field of view, it is only necessary to ensure that at least eight large grids can be photographed in the wide field of view to complete the calibration (the eight grids include four first calibration board areas with coding graphics and four second calibration board areas, and the four first calibration board areas are arranged in an array), and in order to reduce the calibration error caused by lens distortion, it is best for the camera with a wide field of view to be able to photograph large grids around and in the center of the field of view; Optionally, for a camera with a small field of view, at least eight small grids are also required to complete the calibration. It should be noted that the field of view of a camera with a large field of view does not need to be all large grids, and correspondingly, the field of view of a camera with a small field of view does not need to be all small grids. When a certain number of small grids are guaranteed, even if large grids appear in the field of view at the same time, it will not interfere with the calibration.
[0062] Optionally, the size of the small and large grids can be set by first calculating the size of the small grid according to the working size of the small field of view camera and the minimum resolvable working size of the QR code, and then calculating the size of the large grid according to the relationship between the imaging accuracy of the small field of view camera and the imaging accuracy of the large field of view camera.
[0063] Optionally, the ratio of the imaging accuracy of the first camera to be calibrated corresponding to the first target field of view and the second camera to be calibrated corresponding to the second target field of view is the same as the ratio of the size of the coding pattern of the first target field of view to the size of the coding pattern of the second target field of view.
[0064] For example, when the working condition of the small field of view camera is 3072x2048pix, the minimum recognizable working condition of the DM code (equivalent to the above-mentioned coding pattern) is 30pix. To ensure that at least 8 grids are captured on the short side of the picture to ensure the calibration accuracy, the grid size is 30-256pix. Since the single precision of the small field of view camera imaging is 10um, the grid size range is 0.3-2.5mm. In order to facilitate the processing of the calibration board manufacturer (integer size is easier to process) and reduce the difficulty of QR code parsing (the larger the size, the easier it is to image clearly), the size of the small grid is designed to be 2mm in length. Since the imaging accuracy of the large field of view camera is 50um, which is 5 times that of the small field of view camera, the side length of the large grid is designed to be 10mm. In summary, through the above reasonable calibration board image design, the large field of view camera and the small field of view camera can clearly capture a certain number of QR codes at the same time, thereby completing the joint calibration.
[0065] In addition, it should be noted that the types of the first calibration board area and the second calibration board area are determined according to the design requirements of the calibration board. The calibration board area can also be a triangular grid, a hexagonal grid, or a circular grid with different colors, that is, the calibration board area can be flexibly adjusted according to the needs of use, but it does not affect the implementation of the above-mentioned scheme. Therefore, no matter what kind of calibration board grid is used, the above-mentioned technical scheme can be successfully implemented.
[0066] The method embodiment provided in the embodiment of the present application can be executed in a camera to be calibrated, a target terminal, a mobile terminal or a similar computing device. Taking running on a camera to be calibrated as an example, Figure 6 FIG. 1 is a hardware structure block diagram of a camera to be calibrated in a calibration method according to an embodiment of the present invention. Figure 6 As shown, the camera to be calibrated may include at least two ( Figure 6 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the camera to be calibrated may also include a transmission device 106 for communication functions and an input / output device 108. It can be understood by those skilled in the art that Figure 6 The structure shown is for illustration only and does not limit the structure of the camera to be calibrated. Figure 6 More or fewer components as shown, or with Figure 6 Equivalent functions or comparisons shown Figure 6 A different configuration with more features is shown.
[0067] Optionally, as another optional implementation, Figure 7 is a flow chart of a calibration method according to an optional embodiment of the present invention; Figure 7 As shown, the present invention also provides a calibration method using the above calibration plate, comprising the following steps:
[0068] Step S202, obtaining a target image of the calibration plate captured by multiple cameras to be calibrated with different fields of view, wherein the target image includes sub-target images respectively captured by multiple cameras to be calibrated;
[0069] Optionally, since multiple cameras to be calibrated with different fields of view are jointly calibrated, the captured target image includes image information of the calibration plate captured by different cameras, and since the sub-target images corresponding to these image information are information on the same calibration plate, the multiple cameras to be calibrated can be jointly calibrated through these sub-target images.
[0070] Step S204, performing coding pattern recognition on the target image to determine multiple target coding patterns existing in the target image and position information corresponding to the target coding patterns;
[0071] Step S206, determining the fourth image coordinates corresponding to the sub-target image captured by each of the multiple cameras to be calibrated based on a preset positioning algorithm and the position information, and determining the physical coordinates of the corner points of the area corresponding to the sub-area of the calibration board where the target coded pattern is located based on the position information; wherein the fourth image coordinates are the pixel coordinates of the corner points of the area corresponding to the sub-area of the calibration board where the target coded pattern is located precisely located in the target image;
[0072] Step S208, based on the fourth image coordinates and the physical coordinates, an affine transformation matrix corresponding to the physical coordinates of the calibration plate and the image coordinates acquired by the multiple cameras to be calibrated is established, thereby completing the joint calibration of multiple cameras with different fields of view.
[0073] That is, by using a preset positioning algorithm and the position information to determine the affine transformation relationship M2 between the multiple cameras to be calibrated and the calibration plate, the multi-camera joint calibration of multiple cameras to be calibrated with different fields of view is completed.
[0074] The above method can complete the joint calibration of multiple cameras to be calibrated with different fields of view based on the above calibration plate.
[0075] Wherein, determining the affine transformation relationship M2 between the multiple cameras to be calibrated and the calibration plate based on the preset positioning algorithm and position information includes: determining the fourth image coordinates T (unit: pixel) corresponding to the sub-target image captured by each camera in the multiple cameras to be calibrated based on the preset positioning algorithm and position information, determining the fourth image coordinates based on the position information P and the physical coordinates S determined by the size of the calibration plate sub-region; establishing the affine transformation matrix M2 corresponding to the calibration plate and the multiple cameras to be calibrated based on the fourth image coordinates T and the physical coordinates S. Wherein, the fourth image coordinates are the pixel positions of the corner points of the corresponding area of the calibration plate sub-region where the target coding pattern is located in the target image, and the pixel positions can be directly obtained by the existing technology, or by first obtaining the third image coordinates R as described below, and then obtained according to the third image coordinates (this method will be described in detail later); and the physical coordinates S are obtained according to the position information, for example, taking the position information 07907402 carried by a target coding pattern as an example, wherein the physical coordinates S are (79x2mm, 74x2mm), that is, (158mm, 148mm).
[0076] Optionally, after respectively obtaining the fourth image coordinate T and the physical coordinate S, M2 can be solved by solving linear algebraic equations. Among them, at least 4 sets of point pairs are required. Therefore, at least 2*2 points (coded graphics) need to be captured before the calibration operation can be performed. In actual use, since one coded graphic can correspond to one point, after the camera to be calibrated obtains the target image of the calibration plate, it is necessary to ensure that there are at least 4 coded graphics captured within the field of view of the camera to be calibrated to support the subsequent calibration operation.
[0077] It should be noted that after determining the affine transformation matrix M2, since the affine transformation matrix M2 can convert the coordinates A in pixels corresponding to the target image captured by the camera to be calibrated into physical coordinates B in the calibration plate coordinate system corresponding to the calibration plate in millimeters, the calibration of multiple cameras to be calibrated is also completed when the affine transformation matrix M2 is determined.
[0078] As an optional implementation, determining the fourth image coordinates T corresponding to the sub-target image captured by each camera of a plurality of cameras to be calibrated includes: obtaining the third image coordinates R corresponding to the sub-region of the calibration board where the target coding pattern is located, wherein the third image coordinates R are used to indicate the pixel positions of the coarse positioning of the corner points of the area corresponding to the sub-region of the calibration board where the target coding pattern is located in the target image; using the third image coordinates R as the coarse positioning coordinates, and determining the above-mentioned fourth image coordinates T from the target image.
[0079] As an optional implementation, the third image coordinate is taken as R as the coarse positioning coordinate, and the fourth image coordinate T corresponding to the intersection between the calibration board area where the target coding pattern is located and other calibration board areas is determined from the target image, including: determining a target frame diagram including the third image coordinates in the target image, wherein the size of the target frame diagram is the same as the size of the calibration board area around the third image coordinates; when the target frame diagram is processed into a line diagram, using a region selection box with the third image coordinate as the center to extract the coordinates of the target frame diagram to obtain the first line and the second line, wherein the region selection box includes: a horizontal selection box and a vertical selection box, and the overlapping intersection of the horizontal selection box and the vertical selection box corresponds to the third image coordinate; calculating the coordinates of the intersection corresponding to the first line and the second line to obtain the corresponding fourth image coordinates.
[0080] For example, with R as the coarse positioning coordinate (equivalent to the third image coordinate mentioned above), the precise positioning of the intersecting black and white boundary line is performed near R. Specifically, a square frame of approximately the same size as the grid (equivalent to the first calibration board area mentioned above) is determined near the coarse positioning coordinate R. Through contrast enhancement and binarization, the blurred noise disappears to ensure that only clear edges remain in the picture corresponding to the square frame. Edge detection, Canny, Filter (convolution) is performed to leave only edge lines with drastic changes in black and white in the picture. With the above coarse positioning R as the center, two horizontal and vertical ROI frames are drawn (equivalent to the area selection frame in the above embodiment). Fig.10 The coordinates of all black dots in the ROI square cross frame are extracted, and fitted into two horizontal and vertical straight lines. According to the linear equations corresponding to the two horizontal and vertical straight lines, the coordinates of their intersection are calculated, which are the precise coordinates of point T (equivalent to the fourth image coordinates in the above embodiment).
[0081] Wherein, obtaining the third image coordinate R corresponding to the sub-area of the calibration board where the target coding graphic is located includes: obtaining the calibration transformation relationship M, and calculating the third image coordinate R corresponding to the sub-area of the calibration board where the target coding graphic is located according to the calibration transformation relationship M and the position information P of the target coding graphic; wherein, obtaining the calibration transformation relationship M includes: determining the first image coordinate Q corresponding to each target coding graphic in a plurality of target coding graphics according to a preset sub-image algorithm, wherein the first image coordinate is used to indicate the pixel position corresponding to the center point of the target coding graphic in the target image, and the preset positioning algorithm includes: a preset sub-image algorithm; determining the second image coordinate q corresponding to each target coding graphic according to the position information, wherein the second image coordinate is used to indicate the coordinate point information corresponding to the center point of the coding graphic determined according to the position information carried by the target coding graphic; determining the target coordinate set corresponding to the target image based on the plurality of first image coordinates Q and second image coordinates q, and calculating the calibration transformation relationship M corresponding to the target coordinate set.
[0082] Among them, the preset sub-image algorithm can be the ZXing image algorithm in the prior art, and of course it can also be other algorithms. It can directly locate the image coordinates Q (XXX pixels, XXX pixels) of the center point of the two-dimensional code pattern (equivalent to the coding graphic in the above embodiment). Taking the position information 07907402 carried by a target coding graphic as an example, the coordinate q of the center of the two-dimensional code is (79.5, 75.5). According to this method, a large number of (q, Q) groups can be obtained, and the calibration conversion relationship M can be determined by calculating the q=>Q conversion relationship.
[0083] A more detailed calibration method is as follows:
[0084] Step 1: Place the calibration plate on the calibration table corresponding to the target device, and use multiple cameras to be calibrated with different fields of view to collect images of the calibration plate;
[0085] Step 2: Scan the QR code on the captured calibration plate image to parse the specific location information. For example, take a coded pattern in a target image obtained by one of the field of view cameras as an example. Figure 8 As shown, the QR code is parsed to produce the number 07907402, which means that the grid coordinates are P (79, 74) and the side length of the grid is 2 mm.
[0086] Step 3: Use the ZXing image algorithm to locate the image coordinates Q (XXX pixels, XXX pixels) of the center point of the QR code pattern. Take the grid corner points as integer coordinates, then the coordinates of the center of the QR code are q (79.5, 74.5). Based on this method, a large number of (q, Q) groups can be obtained, and the affine transformation matrix M of q=>Q can be calculated.
[0087] Step 3: Use the affine transformation matrix M to convert the integer coordinates P (79, 74) of the grid corner points to calculate the image coordinates R (unit: pixel) of the corner points. Figure 8 As shown;
[0088] Step 4: Take R as the rough positioning coordinate, and find the intersecting black and white dividing lines near R for precise positioning. The intersection of the two intersecting dividing lines is the precise corner point T of the grid. The grid point where T is located is P(79, 74). The side length of the grid is 2mm, and its physical coordinate S is (79x2mm, 74x2mm), that is, (158mm, 148mm). Fig. 9 As shown;
[0089] Optionally, the above process of calculating the image coordinates of the precise corner point T is as follows: Fig.10 As shown, the steps are as follows:
[0090] Step 1: Cut out a square frame of the same size as the grid near the rough positioning coordinate R. (The image coordinate R (unit: pixel) of the corner point calculated by the above steps can be located at point R, which makes it convenient to cut out a square frame of the same size as the grid near the R image coordinate.
[0091] The second step is to make the blurred noise disappear through contrast enhancement and binarization, ensuring that only clear edges remain in the picture corresponding to the square frame.
[0092] The third step is to perform edge detection and Canny Filter (convolution) to leave only the edge lines with drastic changes in black and white in the picture.
[0093] Step 4: Draw two horizontal and vertical ROI boxes with the above rough positioning R as the center. Fig.10 Square cross frame in the.
[0094] Step 5. Extract the coordinates of all the black dots in the square cross frame, fit them into two horizontal and vertical straight lines, and calculate their intersection coordinates based on the linear equations corresponding to the two fitted horizontal and vertical straight lines, which are the precise coordinates of point T.
[0095] Step 6: Calculate the affine transformation matrix M2 of the precise image coordinates T (unit: pixel) => grid physical coordinates S (158mm, 148mm). After that, any object captured in the image, whose coordinates are A (unit: pixel), can be converted to physical coordinates B (unit: mm) in the calibration plate coordinate system through the transformation matrix M2.
[0096] In addition, for multi-camera joint calibration, each camera only needs to perform its own calibration transformation on the calibration plate pattern it captures, and the corresponding relationship between the image coordinates of each camera and the physical coordinates can be obtained. And because all cameras capture the same calibration plate, all cameras obtain their own image coordinates, which correspond to the mapping relationship of the same physical coordinate system. This enables multi-camera joint calibration with different fields of view.
[0097] Through the above embodiments, a method of placing a QR code containing position information on an existing calibration plate is provided, and the size of the QR code can be arbitrarily designed according to the size of the camera's field of view, and joint calibration for cameras with large differences in field of view can be easily achieved. Because a large field of view can easily capture a large QR code, a small number of large QR code areas are set on the calibration plate, and the rest are all designed as small QR codes. In this way, a camera with a small field of view can easily capture a sufficient number of small QR codes, and there is no need to adjust the position of the camera in order to have a sufficient number of QR codes in the small field of view. Compared with the existing technology, the accuracy and utilization rate are higher, making the application scenarios more extensive.
[0098] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0100] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0101] Optionally, in this embodiment, the storage medium may be configured to store data for executing the calibration method.
[0102] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0103] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0104] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments. Optionally, the above electronic device may also include a transmission device and an input / output device, wherein the transmission device is connected to the above processor, and the input / output device is connected to the above processor. Optionally, in this embodiment, the above processor may be configured to execute the above calibration method through a computer program. Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing the hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium.
[0105] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments. If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for enabling one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention.
[0106] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0107] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0109] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0110] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A calibration plate, characterized in that: Applied to multi-camera joint calibration, The calibration plate includes at least a first target field of view area and a second target field of view area, the first target field of view area and the second target field of view area both include a plurality of coded graphics, and the size of at least part of the coded graphics in the first target field of view area is different from the size specification of the coded graphics in the second target field of view area; The sizes of the coded graphics of different sizes correspond to the imaging accuracy of the camera to be calibrated; the coded graphics are distributed at intervals on the calibration plate; wherein the coded graphics carry position information, and the position information includes the position information of the calibration plate sub-area where the coded graphics is located in the calibration plate; wherein the position information includes: the horizontal coordinate corresponding to the calibration plate sub-area in the calibration plate, the vertical coordinate corresponding to the calibration plate sub-area in the calibration plate, and the size of the calibration plate sub-area.
2. The calibration plate according to claim 1, characterized in that: The coding patterns are distributed in an array on the calibration plate.
3. The calibration plate according to claim 1 or 2, characterized in that: The surface of the calibration plate is provided with a first calibration plate sub-area and a second calibration plate sub-area at intervals, and the coded pattern is located in the first calibration plate sub-area; wherein each target field of view area includes the first calibration plate sub-area and the second calibration plate sub-area; the first calibration plate sub-area corresponds to a first type of color, the second calibration plate sub-area corresponds to a second type of color, there is a resolution color difference between the first type of color and the second type of color, and the coded pattern color corresponding to the coded pattern is the second type of color.
4. The calibration plate according to claim 3, characterized in that: The first calibration plate sub-area and the second calibration plate sub-area have the same size as the corresponding area.
5. The calibration plate according to claim 3, characterized in that: The second calibration plate sub-region includes: an indicator mark, wherein the indicator mark is used to locate the direction of the calibration plate, and the indicator mark includes position coordinate information corresponding to the second calibration plate sub-region where the indicator mark is located on the calibration plate.
6. The calibration plate according to claim 3, characterized in that: There is also a calibration block in the first target field of view, wherein the calibration block is set at the field of view center and / or field of view edge of the first target field of view, each of the calibration blocks corresponds to a sub-coding graphic array, the array size of the sub-coding graphic array is m*n, m and n are positive integers greater than or equal to 2, the size of the coding graphic in the calibration block is greater than the size of the coding graphic in the second target field of view; each of the sub-coding graphic arrays simultaneously includes the first calibration board sub-area and the second calibration board sub-area.
7. The calibration plate according to claim 3, characterized in that: There are five target field of view areas on the calibration board, including a large target field of view area and four small target field of view areas, wherein the four small target field of view areas are located at the four corners of the large target field of view area and exist within the range of the large target field of view area; wherein large calibration blocks are sequentially arranged at the field of view center of the large target field of view area and the upper, lower, left and right field of view edges of the target field of view area, each of the large calibration blocks simultaneously includes the first calibration board sub-area and the second calibration board sub-area, and the sizes of the coded graphics in the first calibration board sub-area are the same; all positions in the calibration board except the large calibration blocks are set to small calibration blocks of the same size, each of the small calibration blocks simultaneously includes the first calibration board sub-area and the second calibration board area, and the size of the coded graphics in the large calibration block is larger than the size of the coded graphics in the small calibration block.
8. The calibration plate according to claim 1, characterized in that: The ratio of the imaging accuracy of the first camera to be calibrated corresponding to the first target field of view and the second camera to be calibrated corresponding to the second target field of view is the same as the ratio of the size of the coding pattern of the first target field of view to the size of the coding pattern of the second target field of view.
9. A calibration method using the calibration plate according to any one of claims 1 to 8, characterized in that: include: Acquire a target image of the calibration plate captured by multiple cameras to be calibrated with different fields of view, wherein the target image includes sub-target images respectively captured by multiple cameras to be calibrated; Performing coding pattern recognition on the target image to determine multiple target coding patterns existing in the target image and position information corresponding to the target coding patterns; Based on a preset positioning algorithm and the position information, the fourth image coordinates corresponding to the sub-target image captured by each of the multiple cameras to be calibrated are determined, and based on the position information, the physical coordinates of the corner points of the area corresponding to the sub-area of the calibration board where the target coded pattern is located are determined; wherein the fourth image coordinates are the pixel coordinates of the corner points of the area corresponding to the sub-area of the calibration board where the target coded pattern is located, which are precisely located in the target image; An affine transformation matrix corresponding to the physical coordinates of the calibration plate and the image coordinates acquired by the multiple cameras to be calibrated is established based on the fourth image coordinates and the physical coordinates, thereby completing the joint calibration of multiple cameras with different fields of view.
10. The calibration method according to claim 9, characterized in that: Determining a fourth image coordinate corresponding to a sub-target image captured by each camera of the plurality of cameras to be calibrated includes: Obtaining the third image coordinates corresponding to the calibration plate sub-region where the target coded pattern is located, wherein the third image coordinates are used to indicate the pixel positions of the corner points corresponding to the calibration plate sub-region where the target coded pattern is located for rough positioning in the target image; The third image coordinates are used as coarse positioning coordinates, and the fourth image coordinates are determined from the target image.
11. The calibration method according to claim 10, characterized in that: The step of using the third image coordinates as coarse positioning coordinates and determining the fourth image coordinates from the target image includes: Determine a target frame diagram including the third image coordinates in the target image, wherein the size of the target frame diagram is the same as the size of the calibration board area around the third image coordinates; when the target frame diagram is processed into a line diagram, use a region selection box whose center is the third image coordinates to extract the coordinates of the target frame diagram to obtain a first line and a second line, wherein the region selection box includes: a horizontal selection box and a vertical selection box, and the overlapping intersection of the horizontal selection box and the vertical selection box corresponds to the third image coordinates; The coordinates of the intersection point corresponding to the first line and the second line are calculated to obtain the fourth image coordinates.
12. The calibration method according to claim 10, characterized in that: Acquiring the third image coordinates corresponding to the calibration board area where the target coded pattern is located includes: Acquire a calibration conversion relationship, and calculate the third image coordinates corresponding to the calibration board area where the target coded pattern is located according to the calibration conversion relationship and the position information of the target coded pattern; Wherein, obtaining the calibration conversion relationship includes: Determine the first image coordinates corresponding to each target coding pattern in the plurality of target coding patterns according to a preset sub-image algorithm, wherein the first image coordinates are used to indicate the pixel position corresponding to the center point of the target coding pattern in the target image, and the preset positioning algorithm includes: a preset sub-image algorithm; Determine the second image coordinates corresponding to each target coded graphic according to the position information, wherein the second image coordinates are used to indicate the coordinate point information corresponding to the center point of the coded graphic determined according to the position information carried by the target coded graphic; A target coordinate set corresponding to the target image is determined based on a plurality of the first image coordinates and the second image coordinates, and a calibration conversion relationship corresponding to the target coordinate set is calculated.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 9 to 12 when executed.
14. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 9 to 12 through the computer program.
Citation Information
Patent Citations
Multi-scale calibration plate
CN107945237A
Visual calibration method and system
CN110415304A
Two-dimensional code positioning method and system
CN113705268A
Single-calibration-board multi-camera calibration method and device, electronic equipment and storage medium
CN114170322A
Robot calibration system and calibrating method thereof
US20110320039A1
