Calibration plate, calibration method, storage medium and electronic device
By setting coded patterns of different sizes on the calibration board, the problem that existing calibration boards cannot jointly calibrate cameras with different fields of view is solved, realizing fast and accurate multi-camera calibration and reducing installation location requirements.
Patent Information
- Application Number
- CN202310196152.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-03-02
AI Technical Summary
Existing calibration boards cannot perform joint calibration of cameras with different fields of view, and have high requirements for camera installation position.
Design a calibration board containing coded patterns of different sizes and carrying position information for multi-camera joint calibration. By setting at least two sets of coded patterns of different sizes on the calibration board, cameras with different fields of view can clearly capture the coded patterns, thus achieving the correspondence between the camera coordinate system and the calibration board coordinate system.
It enables rapid joint calibration of cameras with different fields of view, reduces the requirements for camera mounting position and calibration plate placement, and improves calibration efficiency and accuracy.
Smart Images

Figure CN118587293B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of machine vision, and more specifically, to a calibration board, a calibration method, a storage medium, and an electronic device. Background Technology
[0002] The earliest calibration plates had a checkerboard surface. During calibration, besides knowing the grid size, users had to count the number of grids within the camera's field of view. If the grid spacing was small in real-world applications, users might miscount the grids, leading to calibration failure. Currently, methods exist that embed information into the feature patterns on the calibration plate for camera marking. This embedded information records the calibration plate's orientation and the index of the feature pattern's location, thus providing correlation information between multiple cameras during multi-camera calibration. However, current calibration plates have identical feature patterns at fixed positions, making joint calibration of cameras with different fields of view impossible. Furthermore, existing calibration plates and methods are highly dependent on camera mounting positions, requiring camera repositioning to image the feature patterns within the camera's field of view.
[0003] There is currently no effective solution to the problem that calibration boards cannot perform joint calibration of cameras with different fields of view in existing technologies. Summary of the Invention
[0004] This invention provides a calibration board, a calibration method, a storage medium, and an electronic device to at least solve the problem in the prior art that calibration boards cannot perform joint calibration of cameras with different fields of view.
[0005] According to one aspect of the present invention, a calibration board is provided for multi-camera joint calibration. The calibration board includes at least a first target field of view (PDV) and a second target DAV, each of which includes a plurality of coded patterns. At least some of the coded patterns in the first DAV have different sizes than those in the second DAV. The sizes of the coded patterns of different sizes correspond to the imaging accuracy of the camera to be calibrated. The coded patterns are distributed at intervals on the calibration board. Each coded pattern carries position information, including the position information of the calibration board sub-region containing the coded pattern within the calibration board. The position information includes: the horizontal coordinate of the calibration board sub-region within the calibration board, the vertical coordinate of the calibration board sub-region within the calibration board, and the size of the calibration board sub-region.
[0006] As an optional implementation, the above-mentioned coded patterns are arranged in an array on the calibration plate.
[0007] As an optional implementation, the surface of the calibration plate is provided with a first calibration plate area and a second calibration plate area at intervals, and the coded pattern is located in the first calibration plate area; wherein, each target field of view area includes the first calibration plate area and the second calibration plate area; the first calibration plate area corresponds to a first type of color, the second calibration plate area corresponds to a second type of color, the first type of color and the second type of color have a distinguishable color difference, and the coded pattern color corresponding to the coded pattern is the second type of color.
[0008] As an optional implementation, the first calibration board area and the second calibration board area have the same area size.
[0009] As an optional implementation, the second calibration board sub-region includes an indicator, wherein the indicator is used to locate the direction of the calibration board, and the indicator includes the position coordinate information of the second calibration board sub-region where the indicator is located on the calibration board.
[0010] As an optional implementation, the first target field of view region also includes a calibration block, wherein the calibration block is located at the center and / or edge of the field of view region of the first target field of view region, each calibration block corresponds to a sub-coded pattern array, the array size of the sub-coded pattern array is m*n, where m and n are positive integers greater than or equal to 2, the size of the coded pattern in the calibration block is larger than the size of the coded pattern in the second target field of view; each sub-coded pattern array simultaneously includes the first calibration board sub-region and the second calibration board sub-region.
[0011] As an optional implementation, the calibration board has five target field-of-view regions, including a large target field-of-view region and four small target field-of-view regions. The four small target field-of-view regions are located at the four corners of the large target field-of-view region and exist within the range of the large target field-of-view region. Large calibration blocks are sequentially set at the center of the field of view of the large target field-of-view region and at its top, bottom, left, and right edges. Each large calibration block includes both the first calibration board region and the second calibration board region, and the encoded graphics in the first calibration board region are of the same size. All positions on the calibration board except for the large calibration blocks are set as small calibration blocks of the same size. Each small calibration block includes both the first calibration board region and the second calibration board region, and the size of the encoded graphics in the large calibration blocks is larger than the size of the encoded graphics in the small calibration blocks.
[0012] As an optional implementation, the ratio of the imaging accuracy of the first camera to be calibrated corresponding to the first target field of view region and the second camera to be calibrated corresponding to the second target field of view region is the same as the ratio of the size of the coded pattern of the first target field of view region to the size of the coded pattern of the second target field of view region.
[0013] According to another aspect of the present invention, a calibration method is also provided, comprising: acquiring target images of the calibration board captured by multiple cameras with different fields of view, wherein the target images include sub-target images captured by the multiple cameras to be calibrated respectively; performing coded pattern recognition on the target images to determine multiple target coded patterns present in the target images and the position information corresponding to the target coded patterns; determining the fourth image coordinates corresponding to the sub-target images 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 corresponding area of the calibration board sub-region 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 corresponding area of the calibration board sub-region where the target coded pattern is located precisely located in the target image; establishing an affine transformation matrix corresponding to the physical coordinates of the calibration board and the image coordinates captured by the multiple cameras to be calibrated based on the fourth image coordinates and the physical coordinates, thereby completing the joint calibration of multiple cameras with different fields of view.
[0014] As an optional implementation, the above-described method for determining the fourth image coordinates corresponding to the sub-target image acquired by each of the plurality of cameras to be calibrated includes: obtaining the third image coordinates corresponding to the calibration board sub-region where the target coded graphic is located, wherein the third image coordinates are used to indicate the pixel position of the corner point of the calibration board sub-region where the target coded graphic is located in the target image for coarse localization; and using the third image coordinates as coarse localization coordinates to determine the fourth image coordinates from the target image.
[0015] As an optional implementation, the fourth image coordinates are determined from the target image using the third image coordinates as coarse positioning coordinates. This includes: determining a target frame in the target image that includes the third image coordinates, wherein the size of the target frame is the same as the size of the calibration board area surrounding the third image coordinates; if the target frame is processed into a line drawing, using a region selection box centered on the third image coordinates to extract coordinates from the target frame, obtaining a first line and a second line, wherein the region selection box includes a horizontal selection box and a vertical selection box, and the intersection point of the horizontal selection box and the vertical selection box corresponds to the third image coordinates; calculating the intersection point coordinates 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 coded graphic is located.
[0016] As an optional implementation, obtaining the third image coordinates corresponding to the calibration board area where the target coded graphic is located includes: obtaining a calibration transformation relationship; calculating the third image coordinates corresponding to the calibration board area where the target coded graphic is located based on the calibration transformation relationship and the position information of the target coded graphic; wherein, obtaining the calibration transformation relationship includes: determining the first image coordinates corresponding to each of the plurality of target coded 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 coded 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 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; determining the target coordinate set corresponding to the target image based on the plurality of 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 present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the method in any of the method embodiments at runtime.
[0018] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to perform the method in any of the above-described method embodiments through the computer program.
[0019] In this embodiment of the invention, an coded pattern corresponding to the imaging accuracy of the camera to be calibrated is set on the surface of the calibration plate. The calibration plate includes at least a first target field of view and a second target field of view. Both the first and second target field of view include a plurality of coded patterns. The size of at least some of the coded patterns in the first target field of view is different from that in the second target field of view. The coded patterns carry position information, so that when the calibration plate is used for calibration, the camera to be calibrated can clearly capture the coded patterns. Thus, the camera coordinate system and the calibration plate coordinate system can be mutually corresponded based on the position information appearing in the coded patterns. This enables the camera to capture the coded patterns clearly with different field of view sizes, thereby achieving joint calibration.
[0020] Furthermore, since the area except for the large calibration block is designed with relatively small coded graphics (QR codes), the small field-of-view camera can easily capture a sufficient number of small coded graphics (QR codes). There is no need to adjust the camera position in order to have a sufficient number of coded graphics (QR codes) in the small field-of-view camera, which reduces the requirements for the installation position of the camera and the placement position of the calibration board.
[0021] In this embodiment of the invention, a method for calibration using the above-mentioned calibration board is also proposed. Each camera to be calibrated performs its own calibration transformation on the image of the calibration board it captures, thereby obtaining the relationship between the image coordinates and physical coordinates of each camera. Since all cameras capture images of the same calibration board, rapid calibration of multiple cameras with different fields of view can be achieved. Attached Figure Description
[0022] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0023] Figure 1 This is a calibration board according to an embodiment of the present invention;
[0024] Figure 2 This is a schematic diagram illustrating the division of calibration blocks according to a camera field of view according to an optional embodiment of the present invention;
[0025] Figure 3 This is a schematic diagram (a) showing the distribution of calibration blocks corresponding to the target field of view region according to an optional embodiment of the present invention;
[0026] Figure 4 This is a schematic diagram (II) showing the distribution of calibration blocks corresponding to the target field of view region according to an optional embodiment of the present invention;
[0027] Figure 5This is a schematic diagram showing 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 This is a hardware structure block diagram of a camera to be calibrated according to a calibration method of an embodiment of the present invention;
[0029] Figure 7 A flowchart of a calibration method according to an optional embodiment of the present invention;
[0030] Figure 8 This is a schematic diagram of the image coordinates R in the image according to an embodiment of the present invention;
[0031] Figure 9 This is a schematic diagram of the precise corner point T in the image according to an embodiment of the present invention;
[0032] Figure 10 This is a schematic diagram illustrating the process of calculating the precise corner point T according to an embodiment of the present invention. Detailed Implementation
[0033] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort 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, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0035] The applicant discovered that the feature patterns on existing calibration boards are basically the same size. If existing calibration boards are used directly to calibrate multiple cameras (at least two) with different field of view sizes, if the feature patterns on the calibration board are small, the camera with a large field of view cannot clearly identify all the feature patterns; if the feature patterns on the calibration board are large, the number of feature patterns that the camera with a small field of view can capture is limited, reducing calibration accuracy or even preventing successful calibration.
[0036] Based on this, according to one aspect of the present invention, a new calibration plate is provided. For example... Figure 1 As shown, the calibration board is used for multi-camera joint calibration. The calibration board includes at least a first target field of view and a second target field of view. Both the first target field of view and the second target field of view include a plurality of coded patterns, and at least some of the coded patterns in the first target field of view have different sizes than the coded patterns in the second target field of view.
[0037] The size of the coded patterns of different sizes corresponds to the imaging accuracy of the camera to be calibrated;
[0038] The coded patterns are distributed at intervals on the calibration board; the coded patterns carry position information, which is the position information of the calibration board area where the coded pattern is located in the calibration board; the position information includes: the horizontal coordinate of the calibration board area in the calibration board, the vertical coordinate of the calibration board area in the calibration board, and the size of the calibration board area.
[0039] One target field of view corresponds to the field of view that a camera can capture. In other words, 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 and the number and arrangement of the coded graphic sizes required for each camera calibration can be designed according to the different camera conditions.
[0040] Specifically, in order to ensure that the camera to be calibrated for the field of view type can capture coded patterns that meet the camera calibration requirements, a sufficient number of coded patterns of the corresponding size need to be set in the target field of view area according to the imaging accuracy of the camera to be calibrated. That is, there needs to be a number of coded patterns 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 for each field of view can simultaneously and clearly capture a certain number of coded patterns (such as QR codes).
[0041] Specifically, by determining the positional information carried by the coded pattern, the actual displayed image of the coded pattern is determined. Assuming that the basic grid corresponding to the calibration board is a black and white grid, the coded pattern is set in the black grid and carries the corresponding information 07907402. Here, 079 represents that the black grid is located in the 079th row of the calibration board, 074 represents that the black grid is located in the 074th column of the calibration board, and 02 represents that the side length of the grid is 2mm. Therefore, when the camera to be calibrated acquires the image corresponding to the coded pattern and parses the image, it can determine that the position coordinates of the black grid in the calibration board are (79, 74) and the side length of the grid is 2mm, thus quickly knowing the corresponding coordinate information.
[0042] It should be noted that the above position coordinates actually correspond to the coordinates of the top-left corner of the cell where the coded graphic is located. These coordinates are similar to row and column numbers, and are neither pixel coordinates nor physical coordinates. Optionally, the above position coordinates can also be set to the top-right corner of the cell where the corresponding coded graphic is located, or other corner coordinates on the cell. This application does not impose too many restrictions on this.
[0043] The aforementioned encoded graphic can be a QR code, such as a DM code, or it can be an Aztec code, MaxiCode code, or Han Xin code. In addition, in practical scenarios, encoded graphics can be created using custom feature points, embedded in a grid, and each encoded graphic can contain the corresponding horizontal and vertical coordinate information of the grid. This application does not impose further limitations on this.
[0044] By setting at least two sets of coded patterns of different sizes corresponding to the imaging accuracy of the cameras to be calibrated on the surface of the calibration plate, at least two cameras with different fields of view can clearly capture the coded patterns during calibration. The positional information appearing in the coded patterns allows for the mapping between the camera coordinate system and the calibration plate coordinate system, thus enabling joint calibration of at least two cameras with different fields of view. Specifically, by using coded patterns of different sizes, the cameras with different fields of view perform their respective calibration transformations on the images captured by the calibration plate, obtaining the correspondence between their respective camera image coordinates and physical coordinates. Since all cameras capture images of the same calibration plate, rapid joint calibration of cameras with different fields of view can be achieved using this calibration plate.
[0045] The coded patterns are spaced out on the calibration plate. Simply put, when the coded pattern is a QR code and the calibration plate area is a black and white grid, a coded pattern of a different color can be set within the black or white squares. Furthermore, the coded patterns can be spaced out on the calibration plate.
[0046] Specifically, for example, squares (calibration board area) can be set in sequence: black, white, black, white. For example, a black coded graphic can be set in a white square; conversely, a white coded graphic can be set in a black square. Furthermore, more than one number of squares of other colors can be set in squares of the same color, such as: black, white, white, black, white, white.
[0047] Optionally, considering the ease of fabricating the calibration board and the convenience of using the calibration board to perform the calibration method, the coded patterns are arranged in an array on the calibration board.
[0048] Optionally, the surface of the calibration plate is provided with a first calibration plate area and a second calibration plate area at intervals, and the coded pattern is located in the first calibration plate area; wherein, each target field of view area includes the first calibration plate area and the second calibration plate area; that is, the calibration plate preferably includes two types of calibration plate areas at intervals, such as the black and white checkerboard pattern commonly seen in the prior art. The difference is that the grids in the calibration plate of the present invention (that is, the first calibration plate area) where the coded pattern is arranged have at least two different sizes. That is to say, depending on the imaging accuracy of different field of view cameras, the size of the black and white grids in some areas of the calibration plate (corresponding to the first calibration plate area and the second calibration plate area respectively) is different from the size of the black and white grids in other areas.
[0049] In this system, the first calibration board area corresponds to the first type of color, and the second calibration board area corresponds to the second type of color. There is a color difference between the first and second types of colors, and the color of the encoded graphic corresponds to the second type of color. It is understandable that the distribution of the encoded graphic on the calibration board can be configured based on the distribution of different calibration board areas. For example... Figure 1 The 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 alternately. In order to make the display clear, the coding pattern can be set to black and placed in the white calibration board area, so that all the coding patterns included in the coding array are distributed alternately on the calibration board.
[0050] Furthermore, the color of the aforementioned coded pattern can be flexibly set, as long as it can form a distinguishable color difference with the calibration board area where the coded pattern is placed. It is understandable that the size and shape of the coded pattern can vary, but the way the coded pattern is placed on the calibration board is the same, and the calibration board area corresponding to the calibration board needs to have a distinguishable color difference. This allows for quick and accurate identification of the coded pattern present in the calibration board area from the image when acquiring the corresponding image, thereby improving the efficiency of determining the coded pattern array in the calibration board.
[0051] Optionally, for ease of fabrication and calibration, the corresponding areas of the first and second calibration plate regions in the calibration plate are the same size. That is, preferably, regardless of the size of each first calibration plate region, each first calibration plate region corresponds to an adjacent second calibration plate region of the same size. For target coding fields of view with relatively large coded graphic sizes, the corresponding areas of the first and second calibration plate regions are the same size; for target coding fields of view with relatively small coded graphic sizes, the corresponding areas of the first and second calibration plate regions are the same size. When a target field of view includes several coded graphics of different sizes, a second calibration plate region of the same size is also provided adjacent to the first calibration plate region corresponding to each coded graphic.
[0052] For example, in practical applications, the field of view of the camera to be calibrated can be used to divide the area. Figure 2 This is a schematic diagram illustrating the division of calibration blocks according to a camera field of view according to an optional embodiment of the present invention; Figure 2 The calibration board can be used to calibrate two types of fields of view: large field of view and small field of view. Therefore, there will be two corresponding coded graphic specifications. Accordingly, the corresponding calibration board sub-areas in the calibration board also need to be adapted to the coded graphic specifications of the above two sizes when setting them, so as to determine the calibration board that can be used to calibrate the above two fields of view.
[0053] In summary, by adapting the sub-regions on the calibration board to the encoding patterns as described above, encoding patterns of different sizes can be made on the same calibration board. This allows multiple cameras to be calibrated using a single calibration board, improving the efficiency of multi-camera joint calibration. In other words, by designing encoding patterns of different sizes on a single calibration board, cameras with different field-of-view sizes can clearly capture the encoding patterns, thus enabling rapid joint calibration.
[0054] Optionally, the second calibration plate area includes an indicator, wherein the indicator is used to locate the orientation of the calibration plate, and the indicator contains the position coordinate information of the second calibration plate area on the calibration plate. For ease of manufacturing and easy display differentiation, the indicator color is preferably a first-class color, and the size of the indicator (i.e., the size of the indicator itself) is less than or equal to the size of the calibration plate area. By setting an indicator with coordinate numbers in the second calibration plate area of the calibration plate, the placement position of the calibration plate on the target device with the camera to be calibrated can be indicated, ensuring the correct placement orientation of the calibration plate during use. This provides a basic support for the calibration process of the camera to be calibrated and improves calibration efficiency. Optionally, the coordinate numbers can also be replaced with arrow graphics, other graphics containing the coordinate numbers, or text information that can be used to indicate position and orientation.
[0055] Optionally, considering that some cameras to be calibrated may have a large field of view, and that calibration errors may occur due to lens distortion when calibrating cameras with a large field of view, in order to reduce this error, it is assumed that the target field of view of the camera with a large field of view is the first target field of view region. At this time, there is also a calibration block in the first target field of view region. The calibration block is set at the center and / or edge of the field of view of the first target field of view region. Each calibration block corresponds to a sub-coded pattern array. The array size of the sub-coded pattern array is m*n, where m and n are positive integers greater than or equal to 2. The size of the coded pattern in the calibration block is at least larger than the size of the coded pattern in the second target field of view. Each sub-coded pattern array includes both the first calibration board sub-region and the second calibration board sub-region.
[0056] Specifically, suppose the calibration board needs to calibrate two cameras, including a large field-of-view camera and a small field-of-view camera. The large field-of-view camera corresponds to the first target field of view region, and the small field-of-view camera corresponds to the second target field of view region. The distribution of the target field of view regions of the above two field of view types in the calibration board includes at least one of the following situations: Situation 1: In addition to the large calibration block used to calibrate the large field-of-view camera, the first target field of view region may also include: a small calibration block; specifically, such as... Figure 3 As shown. Scenario 2: The first target field of view corresponding to the wide-field-of-view camera contains only a large calibration block. Specifically, as... Figure 4 As shown. In other words, as long as there are large calibration blocks containing large-sized 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 acceptable.
[0057] Similarly, 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 size.
[0058] Furthermore, the aforementioned small-field-of-view camera and large-field-of-view camera may have overlapping target field-of-view areas. For example, a portion 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. Otherwise, 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 area are distributed one by one on the calibration board and do not interfere with each other.
[0059] Optionally, as a more specific embodiment, the calibration board has five target field-of-view regions, including a large target field-of-view region and four small target field-of-view regions. The four small target field-of-view regions are located at the four corners of the large target field-of-view region and exist within the range of the large target field-of-view region. Large calibration blocks are sequentially set at the center of the field of view of the large target field-of-view region and the top, bottom, left, and right edges of the field of view of the target field-of-view region. Each large calibration block also includes a first calibration board region and a second calibration board region. The encoded graphics in the first calibration board region are of the same size. All positions in the calibration board except for the large calibration blocks are set as small calibration blocks of the same size. Each small calibration block also includes a first calibration board region and a second calibration board region. The size of the encoded graphics in the large calibration blocks is larger than the size of the encoded graphics in the small calibration blocks.
[0060] For example, some application scenarios require not only full-frame outline localization of a product but also the localization of four small local marker points. Therefore, it's necessary to jointly calibrate a large-field-of-view camera and four small-field-of-view cameras. This results in multiple cameras to be calibrated within the target device, distributed as follows: Figure 5 As shown, Figure 5This 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. The large dashed squares represent the field of view captured by the camera with the largest field of view among multiple calibration phases. The four smaller areas within the large dashed squares represent the fields of view captured by the four cameras with the smallest field of view among multiple calibration phases, used for locating four local small Mark points. In simple terms, through the above layout, five large black and white square areas (equivalent to large calibration blocks) are distributed at the top, bottom, left, right, and center of the large field of view, ensuring that each area within the field of view of the large field of view camera has sufficient coded graphics for camera calibration, avoiding calibration errors caused by differences in imaging between the center and the four sides of the field of view due to lens distortion. Considering that the cameras with relatively small fields of view capturing the four mark points are located diagonally across the large field of view, the large squares can be designed without connecting the four sides, leaving diagonal gaps to form smaller squares, thus making the placement of the smaller field of view cameras more flexible. Because all areas except the large calibration block are designed with relatively small coded graphics (QR codes), a small field-of-view camera can easily capture a sufficient number of these small coded graphics (QR codes). This eliminates the need to adjust the camera position to ensure a sufficient number of coded graphics (QR codes) within the small field-of-view camera, thus reducing the requirements for the camera's mounting position and the placement of the calibration board.
[0061] It should be noted that the layout of the above-mentioned coded patterns is not limited and can be flexibly designed according to the actual application scenario. Optionally, for a wide-field-of-view camera, calibration can be completed as long as at least eight large grids can be captured within the wide field of view (the eight grids include four first calibration board areas with coded patterns and four second calibration board areas, with the four first calibration board areas arranged in an array). In order to reduce calibration errors caused by lens distortion, it is best to capture large grids at the perimeter and center of the field of view for a wide-field-of-view camera. Optionally, for a narrow-field-of-view camera, at least eight small grids are also required to complete the calibration. It should be noted that the field of view of a wide-field-of-view camera does not need to be entirely large grids, and similarly, the field of view of a narrow-field-of-view camera does not need to be entirely small grids. As long as a certain number of small grids are ensured, 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 grid can be set. First, the size of the small grid can be calculated based on the working size of the small field-of-view camera and the minimum working size of the QR code that can be resolved. Then, the size of the large grid can be calculated based on 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 region and the second camera to be calibrated corresponding to the second target field of view region is the same as the ratio of the size of the coded pattern of the first target field of view region to the size of the coded pattern of the second target field of view region.
[0064] For example, in the case of a small-field-of-view camera (3072x2048 pixels), the minimum readable value of the DM code (equivalent to the aforementioned encoding pattern) is 30 pixels. To ensure calibration accuracy, at least 8 frames must be captured on the shorter side of the image. Therefore, the grid size should be between 30 and 256 pixels. Since the small-field-of-view camera has an imaging precision of 10µm, the grid size range is 0.3 to 2.5mm. To facilitate manufacturing by calibration board manufacturers (integer sizes are easier to process) and reduce the difficulty of QR code parsing (larger sizes result in clearer images), the smaller grid size is designed with a side length of 2mm. Because the large-field-of-view camera has an imaging precision of 50µm, five times that of the small-field-of-view camera, the larger grid size is designed with a side length of 10mm. In summary, through the above reasonable calibration board image design, both the large-field-of-view and small-field-of-view cameras can simultaneously and clearly capture a certain number of QR codes, thus completing joint calibration.
[0065] Furthermore, it should be noted that the types of the first and second calibration plate areas mentioned above are determined according to the design requirements of the calibration plate. The calibration plate areas can also be triangular grids, hexagonal grids, or circular grids of different colors, etc. That is, the calibration plate areas can be flexibly adjusted according to the usage requirements, but this does not affect the implementation of the above scheme. Therefore, the above technical scheme can be successfully implemented regardless of the type of calibration plate grid used.
[0066] The method embodiments provided in this application can be executed in a camera to be calibrated, a target terminal, a mobile terminal, or a similar computing device. Taking the operation on a camera to be calibrated as an example, Figure 6 This is a hardware structure block diagram of a camera to be calibrated according to an embodiment of the present invention. Figure 6 As shown, the cameras to be calibrated may include at least two ( Figure 6 Only one is shown in the image. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. Optionally, the camera to be calibrated may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 6 The structure shown is for illustrative purposes only and does not limit the structure of the camera to be calibrated. For example, the camera to be calibrated may also include components that are larger than those described above. Figure 6 The more or fewer components shown, or having the same Figure 6 Equivalent functions or ratios shown Figure 6 The functions shown have more different configurations.
[0067] Alternatively, as another alternative implementation, Figure 7 This is a flowchart of a calibration method according to an optional embodiment of the present invention; as follows: Figure 7 As shown, the present invention also provides a calibration method using the above-mentioned calibration plate, comprising the following steps:
[0068] Step S202: Obtain target images of the calibration board captured by multiple cameras with different fields of view, wherein the target images include sub-target images captured by the multiple cameras to be calibrated respectively;
[0069] Optionally, since the joint calibration is performed on multiple cameras with different fields of view, the acquired target images include image information of the calibration board acquired by different cameras. Since the sub-target images corresponding to these image information are information on the same calibration board, the multiple cameras to be calibrated can be jointly calibrated using these sub-target images.
[0070] Step S204: Perform coded pattern recognition on the target image to determine multiple target coded patterns present in the target image and the position information corresponding to the target coded patterns;
[0071] Step S206: Based on the preset positioning algorithm and the location information, determine the fourth image coordinates corresponding to the sub-target image acquired by each of the plurality of cameras to be calibrated; and based on the location information, determine the physical coordinates of the corner point of the corresponding area of the calibration board sub-region where the target coded graphic is located; wherein, the fourth image coordinates are the pixel coordinates of the corner point of the corresponding area of the calibration board sub-region where the target coded graphic is located in the target image with precise positioning.
[0072] Step S208: Based on the fourth image coordinates and the physical coordinates, establish the affine transformation matrix corresponding to the physical coordinates of the calibration board and the image coordinates acquired by the multiple cameras to be calibrated, thereby completing the joint calibration of multiple cameras with different fields of view.
[0073] That is, by using a preset positioning algorithm and the location information to determine the affine transformation relationship M2 between the multiple cameras to be calibrated and the calibration board, the multi-camera joint calibration of multiple cameras with different fields of view is completed.
[0074] The above method allows for the joint calibration of multiple cameras with different fields of view based on the calibration board.
[0075] The process of determining the affine transformation relationship M2 between multiple cameras to be calibrated and the calibration board based on a preset positioning algorithm and location information includes: determining the fourth image coordinates T (unit: pixels) corresponding to the sub-target image acquired by each of the multiple cameras to be calibrated based on the preset positioning algorithm and location information; determining the physical coordinates S based on the fourth image coordinates and the size of the sub-region of the calibration board based on the location information P; and establishing the affine transformation matrix M2 between the calibration board and the multiple cameras to be calibrated based on the fourth image coordinates T and the physical coordinates S. The fourth image coordinates are the pixel positions of the corner points of the corresponding region of the calibration board sub-region where the target coded graphic is located, precisely located in the target image. These pixel positions can be obtained directly using existing techniques, or they can be obtained by first acquiring the third image coordinates R and then using the third image coordinates (this method will be described in detail later). The physical coordinates S are obtained based on the location information. For example, taking the location information 07907402 carried by a target coded graphic as an example, the physical coordinates S are (79x2mm, 74x2mm), i.e. (158mm, 148mm).
[0076] Optionally, after obtaining the fourth image coordinates T and physical coordinates S, M2 can be solved by solving linear algebraic equations. At least four point pairs are required. Therefore, at least four points (coded patterns) in a 2x2 format are needed for calibration calculations. In practical use, since one coded pattern corresponds to one point, after acquiring the target image of the calibration board, the camera to be calibrated needs to ensure that at least four coded patterns exist within its field of view to support subsequent calibration operations.
[0077] It should be noted that after determining the affine transformation matrix M2, since the affine transformation matrix M2 can convert the coordinates A of the target image captured by the camera to be calibrated (in pixels) into the physical coordinates B of the calibration plate coordinate system (in millimeters), the calibration of multiple cameras to be calibrated is also completed when determining the affine transformation matrix M2.
[0078] As an optional implementation, determining the fourth image coordinate T corresponding to the sub-target image acquired by each of the multiple cameras to be calibrated includes: obtaining the third image coordinate R corresponding to the calibration board sub-region where the target coded graphic is located, wherein the third image coordinate R is used to indicate the pixel position of the corner point of the calibration board region where the target coded graphic is located in the target image for coarse localization; using the third image coordinate R as the coarse localization coordinate, determining the above-mentioned fourth image coordinate T from the target image.
[0079] As an optional implementation, the third image coordinates R are used as coarse positioning coordinates. The fourth image coordinates T corresponding to the intersection point between the calibration board area where the target coded graphic is located and other calibration board areas in the target image are determined. This includes: determining a target frame in the target image that includes the third image coordinates, wherein the size of the target frame is the same as the size of the calibration board area surrounding the third image coordinates; if the target frame is processed into a line drawing, using a region selection box centered on the third image coordinates to extract coordinates from the target frame, obtaining a first line and a second line, wherein the region selection box includes a horizontal selection box and a vertical selection box, and the intersection point of the horizontal and vertical selection boxes corresponds to the third image coordinates; calculating the coordinates of the intersection point corresponding to the first line and the second line to obtain the corresponding fourth image coordinates.
[0080] For example, using R as the coarse positioning coordinate (equivalent to the third image coordinate mentioned above), fine positioning of the intersecting black-and-white boundary lines is performed near R. Specifically, a square frame roughly 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, blurry noise is eliminated, ensuring that only clear edges remain in the image corresponding to the square frame. Edge detection and Canny Filter (convolution) are performed to ensure that only edge lines with drastic black-and-white changes remain in the image. Using the coarse positioning R as the center, two ROI boxes (equivalent to the region selection boxes in the above embodiment) are drawn horizontally and vertically. Figure 10 The ROI square intersection box is used. The coordinates of all black points in the ROI square intersection box are extracted and fitted into two straight lines, horizontal and vertical. Based on the equations of the fitted horizontal and vertical lines, the coordinates of their intersection point are calculated, which are the precise coordinates of point T (equivalent to the fourth image coordinates in the above embodiment).
[0081] The process of obtaining the third image coordinates R corresponding to the calibration board area where the target coded graphic is located includes: obtaining the calibration transformation relationship M; calculating the third image coordinates R corresponding to the calibration board area where the target coded graphic is located based on the calibration transformation relationship M and the position information P of the target coded graphic; obtaining the calibration transformation relationship M includes: determining the first image coordinates Q corresponding to each of the multiple target coded 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 coded graphic in the target image; the preset positioning algorithm includes: a preset sub-image algorithm; determining the second image coordinates q corresponding to each target coded graphic based on 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 based on the position information carried by the target coded graphic; determining the target coordinate set corresponding to the target image based on multiple first image coordinates Q and second image coordinates q, and calculating the calibration transformation relationship M corresponding to the target coordinate set.
[0082] The preset sub-image algorithm can be the ZXing image algorithm in the prior art, or other algorithms. It can directly locate the image coordinates Q (XXX pixels, XXX pixels) of the center point of the QR code pattern (equivalent to the coded graphic in the above embodiment). Similarly, taking the position information 07907402 carried by a target coded graphic as an example, the coordinates q of the center of the QR code are (79.5, 75.5). According to this method, a large number of (q, Q) sets can be obtained. By calculating the q => Q conversion relationship, the calibration conversion relationship M can be determined.
[0083] A more detailed calibration method is as follows:
[0084] Step 1: Place the calibration board on the calibration platform corresponding to the target device, and have multiple cameras with different fields of view capture images of the calibration board.
[0085] Step 2: Scan and parse the QR code on the acquired calibration board image to obtain the specific location information. For example, take the coded graphic obtained from a target image by one of the field-of-view cameras as an example. Figure 8 As shown, the QR code reveals the number 07907402, which indicates that the grid coordinates are P(79, 74) and the side length of the grid is 2mm.
[0086] Step 3: Locate the image coordinates Q (XXX pixels, XXX pixels) of the center point of the QR code pattern using the ZXing image algorithm. Taking the corner points of the grid as integer coordinates, 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) sets can be obtained, and then the affine transformation matrix M of q => Q can be calculated.
[0087] Step 3: Using the affine transformation matrix M, calculate the image coordinates R (in pixels) of the corner points by transforming the integer coordinates P(79, 74) of the grid corner points. Figure 8 As shown;
[0088] Step 4: Using R as the coarse positioning coordinate, find the intersecting black and white boundary lines near R for fine positioning. The intersection of the two boundary lines is the precise corner point T of the grid. The grid point where T is located is P(79, 74), the grid side length is 2mm, and its physical coordinates S are (79x2mm, 74x2mm), that is, (158mm, 148mm). Figure 9 As shown;
[0089] Optionally, the process of calculating the image coordinates of the precise corner point T described above is as follows: Figure 10 As shown, the steps are as follows:
[0090] Step 1: Near the coarse positioning coordinates R, cut out a square frame roughly the same size as the grid. (The image coordinates R (unit: pixels) of the corner point calculated in the above steps can be used to locate point R, making it easy to cut out a square frame roughly the same size as the grid near the R image coordinates.)
[0091] The second step is to enhance contrast and binarize the image to eliminate blurry noise, ensuring that only clear edges remain in the image corresponding to the square frame.
[0092] The third step is to perform edge detection using Canny Filter (convolution) to leave only the edge lines with dramatic black and white changes in the image.
[0093] Step 4: Using the coarse positioning R as the center, draw two ROI boxes, one horizontal and one vertical. Figure 10 The square cross frame in the middle.
[0094] Step 5: Extract the coordinates of all black dots in the square cross frame, fit them into two straight lines (horizontal and vertical), and calculate the coordinates of their intersection point based on the equations of the fitted horizontal and vertical lines. This intersection point is the precise coordinate of point T.
[0095] Step 6: Calculate the affine transformation matrix M2 from the precise image coordinates T (unit: pixels) to the grid physical coordinates S (158mm, 148mm). Afterwards, any object captured in the image, with coordinates A (unit: pixels), can be converted to physical coordinates B (unit: mm) in the calibration board coordinate system using the transformation matrix M2.
[0096] Furthermore, for multi-camera joint calibration, each camera simply performs its own calibration transformation on the calibration board pattern it captures, thus obtaining the correspondence between its image coordinates and physical coordinates. Since all cameras capture images of the same calibration board, each camera obtains its own image coordinates mapped to the same physical coordinate system. This enables multi-camera joint calibration with different fields of view.
[0097] The above embodiments provide a method for placing QR codes containing location information on an existing calibration board. The size of the QR codes can be arbitrarily designed according to the camera's field of view, easily achieving joint calibration for cameras with significant differences in field of view. Because a large field of view can easily capture large QR codes, apart from a few large QR code areas on the calibration board, the rest is designed for small QR codes. This allows cameras with small field of view to easily capture a sufficient number of small QR codes, eliminating the need to adjust the camera position to ensure a sufficient number of QR codes within a small field of view. Compared to existing technologies, this method offers higher accuracy and utilization, making it more widely applicable.
[0098] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0099] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0100] Embodiments of the present invention also provide a storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0101] Optionally, in this embodiment, the storage medium can be configured to store data for performing the calibration method described above.
[0102] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0103] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0104] Embodiments of the present invention also provide an electronic device, including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments. Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor. Optionally, in this embodiment, the processor may be configured to execute the calibration method via a computer program. Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device, and the program may be stored in a computer-readable storage medium.
[0105] The sequence numbers of the above embodiments of the present invention are merely for description and do not represent the superiority or inferiority of the embodiments. If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0106] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0107] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0108] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0109] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0110] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A calibration plate, characterized in that, Applied to multi-camera joint calibration, The calibration board includes at least a first target field of view and a second target field of view. Both the first target field of view and the second target field of view include a plurality of coded patterns, and at least some of the coded patterns in the first target field of view have different sizes than the coded patterns in the second target field of view. The size of the coded patterns of different sizes corresponds to the imaging accuracy of the camera to be calibrated; the coded patterns are distributed at intervals on the calibration plate; wherein, the coded patterns carry position information, the position information including the position information of the calibration plate area where the coded pattern is located on the calibration plate; wherein, the position information includes: the horizontal coordinate of the calibration plate area on the calibration plate, the vertical coordinate of the calibration plate area on the calibration plate, and the size of the calibration plate area.
2. The calibration plate according to claim 1, characterized in that, The coded patterns are arranged in an array on the calibration board.
3. The calibration plate according to claim 1 or 2, characterized in that, The calibration board has a first calibration board area and a second calibration board area spaced apart on its surface. The coded pattern is located in the first calibration board area. Each target field of view includes the first calibration board area and the second calibration board area. The first calibration board area corresponds to a first type of color, and the second calibration board area corresponds to a second type of color. There is a 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 corresponding areas of the first calibration board area and the second calibration board area are the same size.
5. The calibration plate according to claim 3, characterized in that, The second calibration board sub-region includes: an indicator, wherein the indicator is used to locate the direction of the calibration board, and the indicator contains the position coordinate information of the second calibration board sub-region on the calibration board.
6. The calibration plate according to claim 3, characterized in that, The first target field of view also contains calibration blocks, wherein the calibration blocks are set at the center and / or edge of the field of view of the first target field of view, each calibration block corresponds to a sub-coded pattern array, the array size of the sub-coded pattern array is m*n, where m and n are positive integers greater than or equal to 2, and the size of the coded pattern in the calibration block is larger than the size of the coded pattern in the second target field of view; each sub-coded pattern array simultaneously includes the first calibration board sub-region and the second calibration board sub-region.
7. The calibration plate according to claim 3, characterized in that, The calibration board has five target field-of-view regions, including a large target field-of-view region and four small target field-of-view regions. The four small target field-of-view regions are located at the four corners of the large target field-of-view region and exist within its range. Large calibration blocks are sequentially set at the center of the large target field-of-view region and its top, bottom, left, and right edges. Each large calibration block includes both the first calibration board region and the second calibration board region, and the encoded graphics in the first calibration board region are of the same size. All positions on the calibration board except for the large calibration blocks are set as small calibration blocks of the same size. Each small calibration block includes both the first calibration board region and the second calibration board region, and the size of the encoded graphics in the large calibration blocks is larger than the size of the encoded graphics in the small calibration blocks.
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 region and the second camera to be calibrated corresponding to the second target field of view region is the same as the ratio of the size of the encoded pattern of the first target field of view region to the size of the encoded pattern of the second target field of view region.
9. A calibration method using a calibration plate as described in any one of claims 1 to 8, characterized in that, include: Acquire target images of the calibration board captured by multiple cameras with different fields of view, wherein the target images include sub-target images captured by the multiple cameras respectively; The target image is subjected to coded pattern recognition to determine multiple target coded patterns present in the target image and the corresponding position information of the target coded patterns; Based on the preset positioning algorithm and the location information, the fourth image coordinates corresponding to the sub-target image acquired by each of the plurality of cameras to be calibrated are determined, and the physical coordinates of the corner point of the corresponding area of the calibration board sub-region where the target coded graphic is located are determined based on the location information; wherein, the fourth image coordinates are the pixel coordinates of the corner point of the corresponding area of the calibration board sub-region where the target coded graphic is located in the target image with precise positioning. Based on the fourth image coordinates and the physical coordinates, an affine transformation matrix is established corresponding to the physical coordinates of the calibration board and the image coordinates acquired by the multiple cameras to be calibrated, 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 the fourth image coordinates corresponding to the sub-target image acquired by each of the plurality of cameras to be calibrated includes: Obtain the third image coordinates corresponding to the calibration board area where the target encoded graphic is located, wherein the third image coordinates are used to indicate the pixel position of the corner point of the calibration board area where the target encoded graphic is located in the target image for coarse localization; The third image coordinates are used as coarse positioning coordinates to determine the fourth image coordinates 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 to determine the fourth image coordinates from the target image includes: A target bounding box including the third image coordinates is determined in the target image, wherein the size of the target bounding box is the same as the size of the calibration plate area around the third image coordinates; when the target bounding box is processed into a line drawing, the coordinates of the target bounding box are extracted using a region selection box centered at the third image coordinates 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 intersection point of the horizontal selection box and the vertical selection box corresponds to the third image coordinates; The coordinates of the intersection point between the first line and the second line are calculated to obtain the coordinates of the fourth image.
12. The calibration method according to claim 10, characterized in that, Obtaining the third image coordinates corresponding to the calibration board area where the target encoded graphic is located includes: Obtain the calibration transformation relationship, and calculate the third image coordinates corresponding to the calibration board area where the target coded graphic is located based on the calibration transformation relationship and the position information of the target coded graphic; The acquisition of the calibration conversion relationship includes: The first image coordinates corresponding to each of the plurality of target coded graphics are determined according to a preset sub-image algorithm. The first image coordinates are used to indicate the pixel position of the center point of the target coded graphic in the target image. The preset positioning algorithm includes: a preset sub-image algorithm. The second image coordinates corresponding to each target coded graphic are determined based on the location information, wherein the second image coordinates are used to indicate the coordinate point information corresponding to the center point of the coded graphic determined based on the location information carried by the target coded graphic; The target coordinate set corresponding to the target image is determined based on multiple first image coordinates and second image coordinates, and the calibration transformation 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, when executed, performs the method described in any one of claims 9 to 12.
14. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 9 to 12 through the computer program.
Citation Information
Patent Citations
Multi-scale calibration plate
CN107945237A
Robot calibration system and calibrating method thereof
US20110320039A1
