Image processing method and device
By carrying position markers and preset sequences in the calibration image, combined with rough extraction and refined extraction technology, the problem of efficiency and accuracy in determining the location of the positioning point in the external parameter calibration of the autonomous vehicle camera is solved, achieving fast and accurate decoding and efficient calibration process.
Patent Information
- Application Number
- CN202010076152.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-23
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-01-23
AI Technical Summary
During the external parameter calibration process of autonomous vehicle cameras, it is difficult to quickly and accurately determine the position of the positioning point with existing technology, affecting production efficiency and system accuracy.
By carrying position markers in the calibration image, the decoder can quickly and accurately determine the position of the anchor point, use different colors or checkerboards to mark the anchor points, combine rough extraction and fine extraction technology to improve positioning accuracy, and determine the encoding direction according to the preset sequence. Reduce algorithm complexity and decoding time.
It achieves fast and accurate positioning point identification, improves the decoding rate and accuracy, reduces the probability of error detection and decoding time, and improves the efficiency and accuracy of external parameter calibration of autonomous vehicles.
Smart Images

Figure CN113240744B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image technology, and in particular to a method and device for image processing. Background Art
[0002] Camera calibration is the basis of machine vision, and the quality of the calibration results directly determines the system accuracy of machine vision.
[0003] Take self-driving cars as an example. They rely on many sensors to perceive the surrounding environment. Among them, the camera on the self-driving car plays an important role. The camera can provide the necessary information for the safe driving of the vehicle by analyzing the image. The intrinsic parameters of the camera are determined during manufacturing and are relatively accurate with small individual differences. The external parameters of the camera are greatly affected by the installation, so they are generally calibrated after the camera is installed on the vehicle.
[0004] The speed and reliability of the camera external parameter calibration process affects the production efficiency of the car to a certain extent. Therefore, it is extremely important to be able to quickly and accurately calibrate the camera's external parameters. Summary of the invention
[0005] The present application provides an image processing method and device, which can simply, quickly and accurately determine the position of a calibration image positioning point and improve the decoding rate.
[0006] In a first aspect, a method for image processing is provided, which may include: acquiring a calibration image, wherein the calibration image includes a position mark indicating a positioning point of the calibration image; and decoding the calibration image based on the calibration image and the position mark.
[0007] For example, the calibration image carries position information for the decoding end to determine the positioning point of the calibration image.
[0008] Based on the above technical solution, by carrying the position mark in the calibration image, that is, notifying the decoder of the position mark of the positioning point in the calibration image. In this way, the decoder can simply, quickly and accurately determine the position of the positioning point based on the calibration image. By marking the position of the positioning point of the calibration image, the decoder can quickly identify the position of the positioning point, speed up the decoding rate and reduce the decoding time.
[0009] In combination with the first aspect, in some implementations of the first aspect, the position mark is marked with different colors.
[0010] Based on the above technical solution, the location of the positioning points of the calibration image is marked with different colors, so that its position can be observed conveniently and quickly.
[0011] In combination with the first aspect, in some implementations of the first aspect, the position mark is marked by black and white checkerboard corner points.
[0012] That is, the position mark may be composed of a black and white checkerboard, and the checkerboard corner points may be used to represent the position of the positioning point of the calibration image.
[0013] In combination with the first aspect, in certain implementations of the first aspect, decoding the calibration image based on the calibration image and the position mark includes: determining a positioning point of the calibration image according to the position mark; and decoding the calibration image based on the positioning point of the calibration image and the calibration image.
[0014] In combination with the first aspect, in certain implementations of the first aspect, the calibration image is decoded based on the calibration image and the position mark, including: obtaining the positioning points after coarse extraction according to the calibration image and the position mark; performing sub-pixel processing on the coarsely extracted positioning points to determine the positioning points of the calibration image.
[0015] Based on the above technical solution, when determining the positioning points of the calibration image, coarse extraction and fine extraction can be performed. In other words, the approximate positioning points can be extracted first, and then the positioning points can be accurately found, so as to improve the positioning accuracy, such as the positioning accuracy can reach the sub-pixel level.
[0016] In combination with the first aspect, in certain implementations of the first aspect, the calibration image is decoded based on the calibration image and the position mark, including: obtaining a binary code corresponding to the calibration image based on the calibration image and the position mark; and determining an encoding direction of the calibration image according to a position of a preset sequence in the binary code.
[0017] Based on the above technical solution, the coding direction of the calibration image can be determined according to preset rules, such as the relationship between the position of the preset sequence and the coding direction. In other words, the starting position of the calibration image coding can be determined according to the preset rules. In this way, there is no need for a special direction mark to mark the starting position, and there is no need to find the direction mark before decoding. Therefore, the algorithm complexity can be reduced and the decoding time can be reduced.
[0018] In combination with the first aspect, in some implementations of the first aspect, the preset sequence is located at the highest bit or the lowest bit of the code.
[0019] Based on the above technical solution, the preset sequence is located at the highest or lowest bit of the code, so that the decoding end can determine that the position of the preset sequence is the highest or lowest bit of the code.
[0020] For example, a string of codes may include only one preset sequence. In other words, a string of codes may include only one preset sequence, so that the direction of the code can be quickly determined based on the correspondence between the only preset sequence and the position (such as the lowest bit of the code or the highest bit of the code).
[0021] In combination with the first aspect, in certain implementations of the first aspect, the calibration image is decoded based on the calibration image and the position mark, including: under M threshold conditions, based on the calibration image and the position mark, the calibration image is decoded to obtain M decoding results, where M is an integer greater than 2 or equal to 2; and the decoding result that appears the most times among the M decoding results is determined as the decoding result of the calibration image.
[0022] Based on the above technical solution, considering that as many codes as possible should be recognized under various background environments, multiple constraints (i.e., threshold conditions) are set. The stricter the constraints, the higher the decoding credibility. For example, multiple scales are divided for binarization processing, and the recognition results at different scales can be clustered with the help of precise position markers. Finally, a more accurate decoding result and pixel position can be obtained through voting. This can also reduce the probability of false detection and improve the detection rate.
[0023] In combination with the first aspect, in some implementations of the first aspect, the contour shape of the calibration image is a circle.
[0024] For example, the coding points can be arranged in an inner circle and an outer circle. Such an arrangement can effectively utilize space and maximize the distance between adjacent coding points.
[0025] In a second aspect, a method for image processing is provided. The method may include: acquiring a calibration image; obtaining a binary code corresponding to the calibration image, determining an encoding direction of the calibration image according to a position of a preset sequence in the binary code; and decoding the calibration image based on the encoding direction of the calibration image.
[0026] Based on the above technical solution, the coding direction of the calibration image can be determined according to preset rules, such as the relationship between the position of the preset sequence and the coding direction. In other words, the starting position of the calibration image coding can be determined according to the preset rules. In this way, there is no need for a special direction mark to mark the starting position, and there is no need to find the direction mark before decoding. Therefore, the algorithm complexity can be reduced and the decoding time can be reduced.
[0027] In combination with the second aspect, in some implementations of the second aspect, the preset sequence is located at the highest bit or the lowest bit of the code.
[0028] Based on the above technical solution, the preset sequence is located at the highest or lowest bit of the code, so that the decoding end can determine that the position of the preset sequence is the highest or lowest bit of the code.
[0029] For example, a string of codes may include only one preset sequence. In other words, a string of codes may include only one preset sequence, so that the direction of the code can be quickly determined based on the correspondence between the only preset sequence and the position (such as the lowest bit of the code or the highest bit of the code).
[0030] In a third aspect, a method for image processing is provided, which may include: obtaining a coding value; and generating a calibration image based on the coding value, wherein the calibration image includes a position mark, and the position mark is used to indicate the position of a positioning point of the calibration image.
[0031] Based on the above technical solution, when generating a calibration image or a coding pattern, the position mark can be carried in the calibration image, that is, the position information of the positioning point in the calibration image is notified to the decoding end. In this way, the decoding end can simply, quickly and accurately determine the position of the positioning point based on the calibration image. Therefore, not only a more accurate decoding result can be obtained, but also the decoding time can be reduced.
[0032] In combination with the third aspect, in certain implementations of the third aspect, the position mark is marked with different colors.
[0033] In combination with the third aspect, in certain implementations of the third aspect, the position mark is marked by black and white checkerboard positioning points.
[0034] In combination with the third aspect, in certain implementations of the third aspect, generating a calibration image based on the coding value includes: generating the calibration image based on a binary code corresponding to the coding value; wherein the position of a preset sequence in the binary code is used to determine a coding direction of the calibration image.
[0035] In combination with the third aspect, in certain implementations of the third aspect, the preset sequence is located at the highest bit or the lowest bit of the code.
[0036] In combination with the third aspect, in some implementations of the third aspect, the contour shape of the calibration image is a circle.
[0037] In combination with the third aspect, in certain implementations of the third aspect, the calibration image includes N coding points, where N is an integer greater than 1 or equal to 1; generating the calibration image includes: arranging the N coding points according to an inner circle and an outer circle to generate the calibration image.
[0038] In a fourth aspect, a method for image processing is provided. The method may include: obtaining a coding value; generating a calibration image based on a binary code corresponding to the coding value; wherein the position of a preset sequence in the binary code is used to determine the coding direction of the calibration image.
[0039] Based on the above technical solution, the coding direction of the calibration image can be determined according to preset rules, such as the relationship between the position of the preset sequence and the coding direction. In other words, the starting position of the calibration image coding can be determined according to the preset rules. In this way, there is no need for a special direction mark to mark the starting position, and there is no need to find the direction mark before decoding. Therefore, the algorithm complexity can be reduced and the decoding time can be reduced.
[0040] In combination with the fourth aspect, in certain implementations of the fourth aspect, the preset sequence is located at the highest bit or the lowest bit of the code.
[0041] In a fifth aspect, an image processing device is provided, the device is used to execute the methods provided in the first to fourth aspects. Specifically, the device may include a module for executing the methods provided in the first to fourth aspects.
[0042] In a sixth aspect, a device for image processing is provided, the device comprising a memory and a processor, the memory being used to store instructions, and the processor being used to execute the instructions stored in the memory, so that the device executes the methods provided in the first to fourth aspects.
[0043] In a seventh aspect, a chip is provided, comprising a processing module and a communication interface, wherein the processing module is used to control the communication interface to communicate with the outside, and the processing module is also used to implement the methods provided in the first to fourth aspects.
[0044] In an eighth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by an apparatus, the apparatus implements the methods in the first to fourth aspects, and any possible implementation manner of the first to fourth aspects.
[0045] In a ninth aspect, a computer program product comprising instructions is provided, wherein when the instructions are executed by a computer, the device implements the methods provided in the first to fourth aspects.
[0046] For example, the computer program product may be a computer program running on an autonomous driving vehicle computing platform.
[0047] Based on the present application, a calibration image with position marks is provided, that is, the position information of the positioning point in the calibration image is notified to the decoding end. In this way, the decoding end can simply, quickly and accurately determine the position of the positioning point based on the calibration image. Furthermore, not only a more accurate decoding result can be obtained, but also the decoding time can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic diagram showing an application scenario applicable to an embodiment of the present application is shown;
[0049] Figure 2 Another schematic diagram showing an application scenario applicable to the embodiment of the present application;
[0050] Figure 3 Another schematic diagram showing an application scenario applicable to an embodiment of the present application;
[0051] Figure 4 is a schematic block diagram of an image processing method according to an embodiment of the present application;
[0052] Figures 5 to 7 A schematic diagram showing a position mark applicable to an embodiment of the present application is shown;
[0053] Figure 8 A schematic diagram showing a coding pattern applicable to an embodiment of the present application is shown;
[0054] Fig. 9 A schematic diagram of cyclic shift applicable to an embodiment of the present application is shown;
[0055] Fig.10 A schematic diagram showing a decoding process applicable to an embodiment of the present application is shown;
[0056] Fig.11 A schematic flowchart of a decoding process applicable to an embodiment of the present application is shown;
[0057] Fig.12 Another schematic diagram showing a decoding process applicable to an embodiment of the present application;
[0058] Fig.13 Another schematic flow chart of a decoding process applicable to an embodiment of the present application is shown;
[0059] Fig.14 A schematic flowchart of camera extrinsic calibration applicable to an embodiment of the present application is shown;
[0060] Fig.15 is a schematic block diagram of an image processing apparatus according to an embodiment of the present application;
[0061] Fig.16is a schematic block diagram of an image processing apparatus according to yet another embodiment of the present application. DETAILED DESCRIPTION
[0062] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0063] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: communication in a vehicle networking system, device to device (D2D) communication, machine to machine (M2M) communication, machine type communication (MTC), and the fifth generation (5G) system or new radio (NR), etc. Among them, the communication methods in the vehicle networking system are collectively referred to as V2X (X represents anything), for example, the V2X communication includes: vehicle to vehicle (V2V) communication, vehicle to roadside infrastructure (V2I) communication, vehicle to pedestrian (V2P) communication or vehicle to network (V2N) communication, etc.
[0064] To facilitate understanding of the embodiments of the present application, several terms involved in the present application are first briefly introduced.
[0065] 1. Sensor calibration: Each load sensor has its own three-dimensional rectangular coordinate system. When installed on an autonomous vehicle, the coordinate origin and the three coordinate axes of these sensors may not be consistent. The main content of external parameter calibration includes determining the three translation parameters and three rotation angle parameters between these spatial rectangular coordinate systems.
[0066] 2. Camera internal parameters: including parameters related to the camera's own characteristics. Camera internal parameters can be determined by the installation position of the optical lens and photoelectric sensor in the module. Camera internal parameters can include but are not limited to: focal length, pixel size, optical distortion, white balance parameters, resolution and contrast, vignetting and dark corners, etc.
[0067] 3. Camera extrinsic parameters: Each load sensor has its own three-dimensional rectangular coordinate system. The main content of camera extrinsic parameter calibration includes obtaining the posture relationship between the camera's own coordinate system and the vehicle body coordinate system, which is usually composed of three rotation angles and three translation components, or can also be represented by a rotation matrix.
[0068] It should be understood that, hereinafter, the terms camera and video camera are often used interchangeably and have the same meaning.
[0069] It should also be understood that any device that can capture images can be used in the embodiments of the present application.
[0070] 4. PnP algorithm: The PnP (pespective-n-point) problem is to calculate the camera pose or object pose from the known n spatial 3D points and the corresponding point pairs of the image 2D points. The two are equivalent. Usually, there is a least squares solution when n>3. In actual calibration, multiple points are usually used to determine the optimal solution through iteration.
[0071] To facilitate understanding of the embodiments of the present application, Figures 1 to 3 The application scenarios applicable to the embodiments of the present application are described in detail.
[0072] The embodiments of the present application can be applied to the scenario of extrinsic parameter calibration of an autonomous driving vehicle.
[0073] Figure 1 A schematic diagram showing an application scenario applicable to an embodiment of the present application is shown.
[0074] Figure 1 A schematic diagram of a self-driving car calibration workshop. The wheel alignment device can determine the spatial position of the vehicle. The on-board computing platform can perform some processing such as image acquisition and external parameter result calculation.
[0075] Figure 2 Another schematic diagram showing an application scenario applicable to the embodiment of the present application.
[0076] like Figure 2 As shown in Figure 1, self-driving cars are usually equipped with multiple cameras. Automatic, fast and accurate calibration of camera external parameters is an important part of smart car manufacturing. Currently, the method widely used by vehicle manufacturers is to add a station at the end of the production line and place the calibration image at a designated location for calibration, such as Figure 2 shown.
[0077] from Figure 2 It can be seen that the four-wheel alignment device can determine the spatial position of the vehicle. For example, the world coordinate system can be constructed by a total station, and the four-wheel alignment device can determine the matrix of the vehicle relative to the world coordinate system based on the wheel position, and then determine the spatial position of the vehicle. The on-board computing platform can drive the camera to be calibrated to collect the calibration image on the calibration board and complete the decoding, and finally calculate the external parameters of all cameras.
[0078] Since the spatial points and the pixels in the image must correspond one to one according to the unique content, these images are unique. That is to say, when performing external parameter calibration, the calibration image positions are generally fixed and different. In addition, the calibration images are rotation-independent, so that the calibration images can be accurately recognized when the camera is in various postures.
[0079] The recognition speed and accuracy of the calibration image have a great impact on the efficiency of calibration and the accuracy of the calibration results.
[0080] The present application proposes a method that can quickly and accurately identify a calibration image by carrying information indicating the position of an image corner point, such as a position mark, in a calibration pattern.
[0081] It should be understood that, hereinafter, "calibration pattern", "calibration image", "coding pattern" and "coding image" are often used interchangeably, and those skilled in the art should understand their meanings, which are all used to represent images used for calibration.
[0082] The embodiments of the present application can also be applied to the joint calibration of cameras and other sensors, such as lidar, millimeter-wave radar, etc.
[0083] Figure 3 Another schematic diagram showing an application scenario applicable to an embodiment of the present application.
[0084] The following is an example of the joint calibration process of LiDAR and camera. Through the visual sensor and laser sensor, the type of obstacles around the autonomous vehicle and their distance relative to the vehicle body can be determined. Figure 3 This is the result of projecting the calibrated laser point cloud into the image.
[0085] It should be understood that the above Figures 1 to 3 This is only an exemplary description, and the present application is not limited thereto. For example, the embodiments of the present application can also be applied to any scenario where image content needs to be recognized.
[0086] The various embodiments provided in the present application will be described in detail below with reference to the accompanying drawings.
[0087] Figure 4 4 is a schematic block diagram of an image processing method 400 provided in an embodiment of the present application. The method 400 may include the following steps.
[0088] 410, acquiring a calibration image, wherein the calibration image includes a position mark, and the position mark is used to indicate a position of a positioning point of the calibration image;
[0089] 420 , based on the calibration image and the position mark, decode the calibration image.
[0090] It should be understood that the calibration image is only a name and does not limit the protection scope of the embodiments of the present application. For uniformity, the calibration image is used below. It should be understood that the calibration images below can be replaced by images. Alternatively, the calibration images below can be replaced by coded images. Alternatively, the calibration images below can be replaced by calibration patterns. Alternatively, the calibration images below can be replaced by coded patterns.
[0091] For example, in step 410, the calibration image is acquired, which can be understood as the decoding end acquiring the calibration image taken by a video camera.
[0092] A possible implementation of decoding the calibration image is described in detail below.
[0093] Optionally, method 400 may further include step 401 .
[0094] 401, generate a calibration image.
[0095] That is, the encoder can generate a calibration image, and the calibration image generated by the encoder includes a position mark indicating a positioning point of the calibration image. The positioning point, for example, can also be called a corner point or a position, which is not limited. The positioning point is uniformly expressed below.
[0096] Based on the embodiment of the present application, a calibration image with position marks is provided, that is, the position information of the positioning point is notified to the decoding end in the calibration image. In this way, the decoding end can simply, quickly and accurately determine the position of the positioning point based on the calibration image. Furthermore, not only a more accurate decoding result can be obtained, but also the decoding time can be reduced.
[0097] Next, the location information of the positioning point is first introduced.
[0098] In the embodiment of the present application, the position information is used to indicate the position of the positioning point of the calibration image. By carrying the position information in the calibration image, the decoding end can quickly determine the position of the positioning point of the calibration image according to the position information carried in the calibration image.
[0099] Optionally, the position information can be indicated by a position mark in the calibration image. By marking the position of the positioning point of the calibration image with the position mark, it is convenient for the decoding end to quickly identify the position of the positioning point, speed up the decoding rate, and reduce the decoding time. It should be understood that the position mark is only a possible implementation method, and any method that can calibrate the position information of the positioning point in the calibration image falls into the embodiments of the present application.
[0100] It should be understood that the position mark can have a variety of forms, as long as it can mark the position of the positioning point of the calibration image, it can be used in the embodiments of the present application. The embodiments of the present application do not limit the specific form of the position mark. Any method that can be used to mark the position of the positioning point of the calibration image falls within the protection scope of the embodiments of the present application.
[0101] Two possible approaches are described below by way of example.
[0102] Example 1: Position markers can be marked with different colors.
[0103] For example, position markers are marked by black and white checkerboard corner points.
[0104] That is, the position mark may be composed of a black and white checkerboard, and the corner points of the checkerboard represent the positions of the positioning points of the calibration image.
[0105] Figure 5 and Figure 6 Two possible forms of calibration images are listed as examples.
[0106] like Figure 5 As shown, the position mark can be determined by the intersection of two black squares in the center of the calibration image.
[0107] Figure 5 In the figure, the two central black squares can be used to represent the positioning points of the calibration image, and the intersection of the two black squares represents the positioning points of the calibration image. It can be seen that the two black squares and the surrounding white background are similar to the black and white chessboard, and the corner points of the black and white chessboard are Figure 5 The intersection of the two black squares in can be used to indicate the positioning point of the calibration image.
[0108] Figure 5 In the code point, the dot can represent the code point. For example, the code points can be arranged in the inner circle and the outer circle. This arrangement can effectively utilize the space and maximize the distance between adjacent code points. Taking the 16-bit binary code as an example, the code points are arranged in the inner circle and the outer circle, and the code points may appear in the 8 positions of the inner circle and the outer circle. Therefore, the angular resolution can reach 360 / 16=18.75 degrees.
[0109] It should be understood that in the embodiment of the present application, the coding points can be arranged according to the inner circle and the outer circle, or the coding points can be evenly distributed in a circle, and there is no limitation on this.
[0110] It should also be understood that Figure 5 The position of the dot (ie, the coding point) in the embodiment of the present application does not limit the protection scope of the embodiment of the present application. In actual operation, the position of the coding point can be determined according to the actual situation.
[0111] Figure 5 In the example, the outer contour of the calibration image may be a circle. For example, the intersection of the two central black squares may coincide with the center of the outer contour circle.
[0112] It can be seen that the calibration image is composed of coded points and position marks.
[0113] It should be understood that Figure 5 This is only an exemplary description and does not limit the protection scope of the embodiments of the present application. For example, the outer contour or the coding point of the calibration image can also be other shapes.
[0114] For the sake of convenience, the following description will be given with the outer contour of the calibration image being a circle and the coding points being dots.
[0115] For example, Figure 6 As shown, the position mark can be determined by the intersection of two black triangles in the center of the calibration image.
[0116] Figure 6 In the figure, the two black triangles in the center can be used to represent the positioning points of the calibration image, and the intersection of the two black triangles represents the positioning points of the calibration image. It can be seen that the two black triangles and the surrounding white background are similar to a black and white chessboard, and the corner points of the black and white chessboard are Figure 6 The intersection of the two black triangles in can be used to represent the positioning point of the calibration image.
[0117] Figure 6 In the example, the dots may represent code points. For example, the code points may be arranged in an inner circle and an outer circle. It should be understood that Figure 6 The position of the dot (ie, the coding point) in the embodiment of the present application does not limit the protection scope of the embodiment of the present application. In actual operation, the position of the coding point can be determined according to the actual situation.
[0118] Figure 6 In the example, the outer contour of the calibration image may be a circle. For example, the intersection of the two central black triangles may coincide with the center of the outer contour circle.
[0119] It can be seen that the calibration image is composed of coded points and position marks.
[0120] It should be understood that Figure 6 This is only an exemplary description and does not limit the protection scope of the embodiments of the present application. For example, the outer contour or the coding point of the calibration image can also be other shapes.
[0121] The above combination Figure 5 and Figure 6 Two possible forms of calibrating images are introduced exemplarily, which should be understood as exemplary only and do not limit the protection scope of the embodiments of the present application. Any method that can mark the location of the positioning points of the calibration image with different colors falls within the protection scope of the embodiments of the present application.
[0122] In the above example 1, the locations of the positioning points of the calibration image are marked with different colors, so that their locations can be observed quickly and easily.
[0123] Example 2: Position markers can be marked by intersections.
[0124] For example, the position is marked by placing a cross at the center of the image.
[0125] Figure 7One possible form is listed as an example.
[0126] like Figure 7 As shown, the position mark can be determined by a cross point in the center of the calibration image.
[0127] Figure 7 In the example, the dots may represent code points. For example, the code points may be arranged in an inner circle and an outer circle. It should be understood that Figure 6 The position of the dot (ie, the coding point) in the embodiment of the present application does not limit the protection scope of the embodiment of the present application. In actual operation, the position of the coding point can be determined according to the actual situation.
[0128] Figure 7 In the example, the outer contour of the calibration image may be a circle. For example, a central cross point may coincide with the center of the outer contour circle.
[0129] It can be seen that the calibration image is composed of coded points and position marks.
[0130] It should be understood that Figure 7 This is only an exemplary description and does not limit the protection scope of the embodiments of the present application. For example, the outer contour or coding point of the calibration image can also be other shapes. For another example, Example 2 can be used in combination with Example 1.
[0131] In the above example 2, the intersection is used to mark the location of the positioning point of the calibration image, which is very simple for the encoding end, and for the decoding end, its location can also be observed quickly and conveniently.
[0132] It should be understood that Example 1 and Example 2 are only two exemplary descriptions, and the specific shape of the position mark is not limited. As long as the information indicating the position of the positioning point is carried in the calibration image, it falls within the protection scope of the embodiments of the present application.
[0133] The following describes a method for determining the positioning points of the calibration image based on the position markers.
[0134] Optionally, the determination of the positioning points of the calibration image may be performed through a rough extraction of the positioning points and a fine extraction of the positioning points.
[0135] When determining the positioning points of the calibration image, two steps can be performed: coarse extraction and fine extraction. That is, the approximate positioning points can be extracted first, and then the positioning points can be accurately found, thereby improving the positioning accuracy, such as the positioning accuracy can reach the sub-pixel level.
[0136] For example, the roughly extracted positioning points may be subjected to sub-pixel processing to determine the finely extracted positioning points.
[0137] In a possible implementation, the final accurate corner point can be calculated by using a sub-pixel intersection extraction algorithm, so that the final positioning accuracy can reach the sub-pixel level.
[0138] For example, the precise sub-pixel corner point can be iteratively solved by taking advantage of the fact that the pixel gradient of the edge point is perpendicular to the vector connecting the sub-pixel corner point at that point. The sub-pixel corner point result after precise positioning is as follows: Fig.10 Precise positioning shown.
[0139] Combine the following Figure 5 The calibration image introduces coarse positioning and fine positioning in detail.
[0140] First, after the decoder acquires the calibration image, it can perform rough positioning, such as Fig.10 Coarse positioning shown.
[0141] For example, the decoder collects a calibration image (such as Fig.10 After the original image is obtained, the original image can be transformed into a standard circle. The specific transformation method is not limited in the embodiment of the present application.
[0142] The rough extraction of the positioning point, i.e. the rough positioning, can be realized in the standard circle image. The positioning point is the intersection of two black squares, and it is designed to coincide with the center of the outer contour circle of the calibration image. It should be understood that the positioning point may not coincide with the center of the standard circle, which is determined by the transformation from the original image to the standard circle, but usually they will not differ too much. The result after rough positioning is as follows Fig.10 The initial point (i.e. Fig.10 The intersection of the two black squares in the medium-coarse positioning) and the vertex of the search window (i.e. Fig.10 The four vertices marked with crosses in the medium-coarse positioning are all drawn in the figure.
[0143] Secondly, the positioning points after rough positioning can be precisely positioned, such as Fig.10 Precise positioning shown.
[0144] For example, the search window vertices and the rough positioning points can be transformed into coordinates in the original image through inverse affine transformation. Knowing the initial point and the search range in the original image, the final accurate corner point can be calculated using the sub-pixel intersection extraction algorithm. For example, the accurate sub-pixel corner point can be iteratively solved by the characteristic that the pixel gradient of the edge point is perpendicular to the vector connecting the sub-pixel corner point at that point. The sub-pixel corner point result after precise positioning processing is as follows: Fig.10 Precise positioning shown.
[0145] The above examples introduce the rough positioning and fine positioning methods, and it should be understood that the embodiments of the present application are not limited thereto. For example, other algorithms can also be used for fine positioning processing.
[0146] The specific processing of coarse positioning and fine positioning is explained below in conjunction with the complete decoding process.
[0147] The above examples introduce the position marks of the calibration image positioning points and possible ways to determine the calibration image positioning points. The following introduces the encoding direction of the calibration image.
[0148] It should be understood that the scheme for determining the encoding direction of the calibration image introduced in the embodiment of the present application can be used alone or in combination with the above-mentioned scheme for carrying position information (such as position mark) in the calibration image, without limitation.
[0149] In the embodiment of the present application, the encoding direction of the calibration image can be determined according to a preset rule. In other words, the starting position of the calibration image encoding can be determined according to a preset rule. In this way, there is no need for a special direction mark to mark the starting position, and there is no need to find the direction mark before decoding. Thus, the algorithm complexity can be reduced and the decoding time can be reduced.
[0150] For example, the lowest bit of the code can be recorded as the start bit, and the highest bit of the code can be recorded as the end bit. For example, when generating a pattern, the start bit corresponds to the lowest bit of the code, and the end bit corresponds to the highest bit of the code.
[0151] Optionally, the encoding direction may be determined according to the position of a preset sequence.
[0152] In other words, the encoding direction can be determined by using the arrangement rules of numbers. In other words, the preset sequence can be pre-defined at a certain position, so that the decoding end can determine the encoding direction according to the position of the preset sequence.
[0153] In a possible implementation, the preset sequence is located at the highest or lowest bit of the code, so that the decoding end can determine that the position of the preset sequence is the highest or lowest bit of the code.
[0154] The preset sequence refers to a predefined sequence. The number of bits in the preset sequence is not limited. For example, the preset sequence may be: 0001, 1000, 1100, 11010, 11000, 10100, 11100, 011, 100, 110, and so on.
[0155] The preset sequence, for example, may also be referred to as a specific subsequence, and its naming does not limit the protection scope of the embodiments of the present application.
[0156] For example, a string of codes may include only one preset sequence. In other words, a string of codes may include only one preset sequence, so that the direction of the code can be quickly determined based on the correspondence between the only preset sequence and the position (such as the lowest bit of the code or the highest bit of the code).
[0157] The example of encoding with 16-bit binary code is used for illustrative explanation. Any positive integer can be converted into a 16-bit binary code. For example, the binary code corresponding to 4827 is 0001001011011011. It can be found that "0001" appears only in the upper four bits of this string of codes, so the preset sequence can be specified as "0001". In other words, "0001" can be called a preset sequence. In addition, there are 2031 numbers with this pattern in 16-bit binary numbers.
[0158] Table 1 lists the 2 16 The number of all positive integers within that satisfy the condition of containing the corresponding preset sequence.
[0159] Table 1
[0160] Preset Sequence Number 0001、1000、1100 2031 0010、1001、0100 1652 11010、11000、10100、11100 1606 1010 1440 10001 1409 10010 1264 011、100、110 986
[0161] As can be seen from Table 1, this method of determining the encoding direction by the position of the preset sequence, or in other words, determining the encoding direction by using the arrangement rules of numbers, can not only enable the decoding end to decode quickly and reduce the algorithm complexity, but also ensure sufficient encoding capacity, such as a 16-bit encoding capacity of up to 2031, while ensuring uniqueness (i.e., the preset sequence appears only once in a string of codes).
[0162] The following is an explanation from the encoding end and the decoding end respectively.
[0163] For the encoding end, encoding can be completed according to a preset sequence.
[0164] For example, when generating a pattern, the start bit corresponds to the lowest bit of the code, and the end bit corresponds to the highest bit of the code.
[0165] For example, the code corresponding to 4827 is 0001001011011011. Then start drawing from the starting position and determine the lowest bit of the code. If the bit is 1, you can draw a code point at the corresponding position, such as a code dot; if the bit is 0, do not draw a code point. Draw code points on other bits in turn according to this rule. The final result of encoding 4827 can be as follows: Figure 8 shown.
[0166] It should be understood that Figure 8 The dotted lines in the figure are marked for explanation purposes and may or may not be present in practice, and there is no limitation on this.
[0167] It should also be understood that Figure 8 The "0" to "15" in the code are marked for ease of understanding and may not be used in practice. For example, "0" represents the starting bit "1" of the code corresponding to 4827; and "15" represents the ending bit "0" of the code corresponding to 4827.
[0168] It should also be understood that Figure 8 This is only an example pattern and does not limit the protection scope of the embodiments of the present application.
[0169] For the decoding end, the encoding direction can be determined according to a preset sequence, for example, the preset sequence is located at the highest bit of the encoding.
[0170] For example, the encoding end is still based on 4827 encoding as an example.
[0171] According to the preset sequence "0001", the encoding direction is determined. Assuming that the preset rule is that the preset sequence is located at the highest bit, it can be determined that "0001" is located at the upper four bits. Then the digital cyclic shift can be performed until "0001" is located at the upper four bits to obtain the decoding result. Fig. 9 shows this process.
[0172] like Fig. 9 As shown, after processing at the decoding end, a 16-bit binary code may be obtained, such as the decimal number 4827 (binary number 0001001011011011) may result in 1001011011011000. Then, the digital cyclic shift can be performed, such as moving the lower three bits "000" to the beginning, that is, the highest bit, so that "0001" is located in the upper four bits.
[0173] It should be understood that the embodiments of the present application do not limit the specific processing of cyclic shift. As long as the encoding direction can be determined according to preset rules, it falls within the protection scope of the embodiments of the present application.
[0174] Based on the above method of determining the encoding direction according to preset rules, sufficient encoding capacity can be provided under the premise of ensuring uniqueness, and the decoding can be identified through simple calculations during the decoding process, and the decoding speed is fast.
[0175] The above examples introduce the positions of the positioning points of the calibration image and determine the encoding direction of the calibration image. The decoding process of the decoding end is introduced below.
[0176] Optionally, under M threshold conditions, based on the calibration image and the position information, the calibration image is decoded to obtain M decoding results, where M is an integer greater than 2 or equal to 2.
[0177] In the embodiment of the present application, considering that as many codes as possible are recognized under various background environments, multiple thresholds are used for binarization in the decoding process in the embodiment of the present application. Thus, a code value and position information can be obtained under each threshold condition, for example, recorded as (ID, pos). Among them, ID represents the decoded code result under a certain threshold condition, and pos represents the position of the corresponding positioning point under the threshold condition.
[0178] For example, when preprocessing an image, it can be divided into different scales for binarization, so as to adapt to different environmental brightness and noise backgrounds. Most of the decoding processes of encodings process the binarized pattern, which is easily affected by brightness and background noise. Therefore, using a finer scale can prevent some scenes from being too bright or too dark, resulting in missed or wrong detection of the pattern.
[0179] Different preprocessing scales may output many data pairs such as (ID, pos). Among them, the position information (i.e., pos) is extracted roughly and finely, and the result is more reliable. Therefore, it is reasonable to treat the data with close positions as the same group. The codes in the same group are voted to output the most reliable result. For example, some mechanisms can be selected to improve reliability when voting, such as more than half of the output mechanisms, so as to avoid false detection as much as possible.
[0180] In the decoding method proposed in the embodiment of the present application, a variety of constraints (i.e., threshold conditions) are set. The stricter the constraints, the higher the decoding credibility. Divide the multi-scales for binarization processing, and cluster the recognition results at different scales with the help of accurate position information. Finally, a more accurate decoding result and pixel position can be obtained through voting. Thereby, the probability of false detection can be reduced and the detection rate can be improved.
[0181] For ease of understanding, the following Fig.11 Introduce a possible complete decoding process at the decoding end.
[0182] It should be understood that Fig.11 This is merely an exemplary description and the embodiments of the present application are not limited thereto.
[0183] Assume that Figure 8 The image shown is the calibration image.
[0184] 1. After acquiring the calibration image, you can perform image preprocessing first.
[0185] Image preprocessing may include, but is not limited to: grayscale conversion, filtering, binarization using multi-scale thresholds and contour extraction, etc.
[0186] It should be understood that the multi-scale approach is used here to adapt to various brightness conditions and improve the detection rate.
[0187] 2. Filter contours according to preset conditions.
[0188] That is to say, the outer frame circle of the calibration image can be filtered according to preset conditions to make the result more accurate.
[0189] For example, the preset condition may be considered from one or more of the following aspects.
[0190] Aspect 1: Contour area.
[0191] For example, contours with a small area can be screened out or filtered out, because if the contour area is too small, it contains too few pixels, which may increase the probability of false detection.
[0192] Aspect 2: Roundness of the contour.
[0193] The circularity can be expressed as, for example, the following Formula 1.
[0194]
[0195] Among them, L represents the circumference, Area represents the area, and elipse represents the roundness.
[0196] Generally speaking, the closer the contour is to a circle, the smaller the roundness is, and vice versa. The roundness of a standard circle is the smallest, which is 1. For example, you can select contours with a roundness within a certain range. Contours outside this range are considered to be severely deformed by default, and can be eliminated to ensure accurate recognition results.
[0197] For example, when the projection angle is below seventy degrees (70°), the normal roundness may be between 1.0 and 1.5, so the range may be set to [1.0, 1.5], for example.
[0198] Aspect 3: Convexity of the contour and the number of edges of the contour polygon fitting.
[0199] The projection transformation does not change the convexity of the image, that is, the contour after projection should retain the convexity of the original image. For example, a polygon fitting of an elliptical contour with more than 10 sides can be selected.
[0200] Aspect 4: Profile level.
[0201] There is a clear contour hierarchy relationship in the calibration image, such as the outer circle contour has multiple sub-contours of the same level, and the sub-contours have no descendant contours.
[0202] It should be understood that the above-mentioned combination of Aspects 1 to 4 exemplarily introduces several factors that can be considered when screening and calibrating the outer frame circle of the image, and the embodiments of the present application are not limited thereto.
[0203] It should also be understood that Fig.11 As shown, if the contour does not meet the preset condition, it can be checked whether there is a next contour. If there is a next contour, the next contour is continued to be judged.
[0204] 3. Fit the selected contour to an ellipse and transform it into a standard circle using affine transformation.
[0205] In other words, an ellipse is fitted to the selected contour and then affine transformed into a standard circle.
[0206] The ellipse equation can be expressed as the following formula 2, for example.
[0207] x 2 +Axy+y 2 +Cx+Dy+E=0 Formula 2 Assuming that the contour contains n points, where n is an integer greater than or equal to 6, and performing least square fitting on these points, the objective function can be expressed as the following formula 3.
[0208]
[0209] According to the extreme value principle, if F takes the minimum value, we have the following formula 4.
[0210]
[0211] After rearranging, we get the following formula 5.
[0212]
[0213] Substituting the coordinates of the contour into the above formula 5, we can get the ellipse parameters A, B, C, D, E. Thus, the major axis a, minor axis b, center coordinates and inclination angle of the ellipse can be calculated.
[0214] Through affine transformation, the circumscribed rectangle of an ellipse can be transformed into a square, and the corresponding ellipse can be transformed into a standard circle. Fig.12 The standard circle shown in (2) in FIG.
[0215]
[0216] Where u and v are the coordinates before transformation, and x and y are the coordinates after transformation. If at least three pairs of points are provided, the six equations can be used to solve the six unknowns of the transformation. These six unknowns constitute the affine transformation matrix M, namely:
[0217]
[0218] In this example, u and v are the vertex coordinates of the circumscribed rectangle of the ellipse, which have been solved before. x and y are the vertex coordinates of the circumscribed rectangle of the standard circle, which can also be obtained after the diameter d of the standard circle is specified. They are arranged clockwise as follows: (0,0), (d,0), (d,d), (0,d).
[0219] It should be understood that the above process is merely an exemplary description for ease of understanding, and any method that can transform an elliptical contour into a standard circle falls within the protection scope of the embodiments of the present application.
[0220] 4. Rough extraction of positioning points.
[0221] For example, the center point of the contour circle and the side length of the chessboard can be found in the standard circle, and the coordinates in the original image can be obtained through inverse affine transformation.
[0222] The positioning point is the intersection of two black squares, which is designed to coincide with the center of the calibration image. The coarse extraction of the positioning point is realized in the standard circle map.
[0223] The positioning point may not coincide with the center of the standard circle. This is due to the error of contour fitting and the nature of projection transformation. Although the positioning point and the center of the standard circle are usually not too different.
[0224] Assume that the center point (x c ,y c ) as the initial value of the anchor point.
[0225] Since the size ratio of the black square to the outer contour circle is determined when the calibration image is designed, the size of the black square in the standard circle image can be obtained. The size ratio of the black square to the outer contour circle is recorded as ration. The size of the black square in the standard circle image can be calculated by the following formula 7.
[0226]
[0227] Then, the coordinates of the four vertices of the search window may be, for example:
[0228]
[0229] The result of coarse positioning is as follows Fig.12 As shown in (3) in the figure, the initial point and the search window vertex are drawn in the figure.
[0230] It should be understood that the above-mentioned method of roughly extracting positioning points is only an exemplary description, and the embodiments of the present application are not limited thereto.
[0231] 5. Precise extraction of positioning points.
[0232] For example, in the original image, the center point is used as the starting point and the long oblique side of the chessboard is used as the window length to accurately search for the corner points of the chessboard.
[0233] The calculation of sub-pixel corner points needs to be performed in the original image, so the search window and coarse positioning points can be transformed into coordinates in the original image through inverse affine transformation.
[0234] Given the initial point and search range in the original image, the final accurate corner point can be calculated using the sub-pixel intersection extraction algorithm. For example, the accurate sub-pixel corner point can be iteratively solved by the characteristic that the pixel gradient of the edge point is perpendicular to the vector connecting the sub-pixel corner point at that point. The sub-pixel corner point result after precise positioning processing is as follows: Fig.12 As shown in (4) in .
[0235] It should be understood that the above-mentioned method of precise extraction of positioning points is only an exemplary description, and the embodiments of the present application are not limited thereto.
[0236] Through the above 1 to 5, a relatively accurate positioning point can be determined, that is, the positioning accuracy can reach the sub-pixel level. Next, the calibration pattern can be decoded based on the determined positioning point.
[0237] 6. Calibrate image decoding and output the encoding result and position at the current scale.
[0238] The location of the anchor point has been calculated before, and the encoded content can be decoded below. Fig.13 Elaborate in detail.
[0239] (1) Standard circle image.
[0240] Through the above steps, a standard circle image can be obtained, and the points of the standard circle are the positioning points. The calibration image is decoded in the standard circle image.
[0241] (2) Eliminate irrelevant areas and retain coding points.
[0242] For example, the sizes of the outer contour circle and the positioning mark inside it are known. Before decoding, these two irrelevant areas can be eliminated to prevent interference.
[0243] (3) Effective coding contour extraction.
[0244] For example, all contours within the effective area may be extracted, and qualified coded point contours may be screened out according to preset conditions.
[0245] Take the contour area under preset conditions as an example. Considering that the diameter of the coding point is in a fixed ratio with the diameter of the outer contour circle during design, the theoretical contour area of the coding point can be obtained in the standard circle diagram. If the actual contour area is within a certain range, it is regarded as a valid contour. For example, if the actual contour area is within the range of 0.5 to 1.5 times the theoretical area, it can be regarded as a valid contour.
[0246] In addition, if an obviously abnormal contour appears, such as a contour area that is too large, this type of code may not be decoded.
[0247] The preconditions have been introduced above and will not be described in detail here.
[0248] (4) Calculate the angle between the center of each valid coded contour and the center of the circle, and sort them.
[0249] That is, the angle between the center of each valid coding contour and the center of the standard circle relative to the horizontal line is calculated, and they can be arranged in sequence.
[0250] For example, they can be arranged in the order of angle from small to large. For another example, they can be arranged in the order of angle from large to small. There is no limitation on this. It should be understood that there is no limitation on the specific arrangement, and they can be arranged at will.
[0251] (5) According to the designed angular resolution, determine whether there is a coding point on each coding position.
[0252] For example, all angles may be traversed. If the current angle θ satisfies the following formula 8, the mth position of the code 000000000 0000 0000 may be set to 1, where m is an integer greater than or equal to 1 and less than or equal to 16.
[0253]
[0254] Where s represents the minimum resolution. For example, if s is 18.75°, then 360° / 16=18.75°. min Indicates the smallest angle after sorting.
[0255] The results after processing all angles are as follows Fig.12 As shown in (5) in .
[0256] (6) Generate binary code and output the decoding result.
[0257] After processing all angles, a 16-bit binary code can be obtained. For example, the decimal number 4827 (binary number 0001001011011011) may result in 1001011011011000.
[0258] According to the preset sequence "0001", the number is circularly shifted until "0001" is located in the upper four bits, thereby obtaining the decoding result. Fig. 9 This process is shown in the figure. For the specific processing process, please refer to the description above.
[0259] The above combination Fig.13 The process of decoding the calibration image is introduced, which should be understood as an exemplary description and does not limit the protection scope of the embodiments of the present application. Any solution that obtains a decoding result by decoding the calibration image provided in the embodiments of the present application falls within the protection scope of the embodiments of the present application.
[0260] It should be understood that Fig.11 As shown, after determining the encoding result and position, it is possible to check whether there is a next contour. If there is a next contour, the next contour can be judged again. If there is no next contour, the following step 7 is executed.
[0261] 7. Vote on the encoding results and positions at all scales to get the final result.
[0262] In order to recognize as many codes as possible in various background environments, multiple thresholds are used for binarization during the decoding process. Under each threshold condition, a coding result and position information can be obtained, for example, recorded as (ID, pos). In this process, the decoding result may be wrong under some threshold conditions, but the position is very accurate after rough extraction and fine extraction. After clustering according to the position information, the recognition content is voted, and the final recognition result is determined according to the principle of majority output. Table 2 shows this process. The final decoding result is 8183 according to the principle of majority approval.
[0263] Table 2
[0264] ID:8183 pos:[660.883,291.253] √ ID:6398 pos:[661.661,292.367] × ID:6398 pos:[661.661,292.36] × ID:4600 pos:[661.601,292.772] × ID:8183 pos:[661.601,292.773] × ID:8183 pos:[660.995,291.376] √ ID:8183 pos:[660.99,291.359] √ ID:8183 pos:[661.194,290.92] √ ID:8183 pos:[661.192,290.913] √ ID:8183 pos:[660.979,290.822] √ ID:8183 pos:[660.799,291.267] √ ID:8183 pos:[660.641,291.312] √ ID:8183 pos:[660.486,291.029] √ ID:8183 pos:[660.195,290.603] √ ID:8183 pos:[660.348,290.35] √ ID:8183 pos:[660.546,290.51] √ ID:7415 pos:[660.545,290.508] √
[0265] It should be understood that the above Figures 11 to 13 A possible process of decoding at the decoding end is introduced exemplarily, and the embodiments of the present application are not limited thereto. Any scheme for calibration using the calibration image provided by the present application, that is, carrying position information (such as position mark) in the calibration image, falls within the protection scope of the embodiments of the present application. Alternatively, any scheme for determining the encoding direction according to the position of a preset sequence provided by the present application falls within the protection scope of the embodiments of the present application.
[0266] Below, a specific scenario in which an embodiment of the present application is applied is introduced by way of example.
[0267] Optionally, the embodiment of the present application can be applied to the external parameter calibration of the camera of an autonomous driving vehicle. A possible calibration process is as follows: Fig.14 shown.
[0268] The embodiment of the present application can be used for step 1410 in the calibration process.
[0269] That is to say, in the scenario of external parameter calibration of the autonomous driving car camera, a one-to-one matching space and pixel points can be obtained through the encoding and decoding method provided in the embodiment of the present application.
[0270] The following describes a possible calibration process for the extrinsic calibration of a self-driving car camera.
[0271] The calibration process may include the following steps.
[0272] 1410, decoding the captured calibration image, and obtaining one-to-one corresponding pixel coordinates and world coordinates according to the calibration scene parameters;
[0273] 1420. Based on the result of step 1410, calculate the camera extrinsic parameters of each camera.
[0274] First, step 1410 is introduced.
[0275] 1) Load the calibration scene parameters.
[0276] After the camera calibration starts, the calibration scene parameters are loaded first, which may include but are not limited to: the spatial positions of all encoding points determined by the measuring device, the position of the wheel alignment device, etc.
[0277] 2) Collect calibration images and wheel images.
[0278] 3) Decode the positions and IDs of all code points in the image.
[0279] By performing image processing on the calibration image captured by the camera, the encoding content of the calibration image and the two-dimensional pixel coordinates (ie, positioning points) in the image can be determined.
[0280] For specific information on determining the code point location and ID, please refer to the above description and will not be repeated here.
[0281] 4) Determine whether multiple valid code points are recognized.
[0282] If multiple valid code points are identified, the code points are matched and the corresponding pixel coordinates and spatial coordinates are obtained.
[0283] If multiple valid encoding points are not identified, return to 2) to acquire the calibration image and the wheel image.
[0284] When multiple valid code points are identified, the code points can be matched and the one-to-one corresponding pixel coordinates and spatial coordinates can be obtained.
[0285] 5) Match the code points and obtain the one-to-one corresponding pixel coordinates and spatial coordinates.
[0286] Since the content of the code point is determined and unique, the corresponding three-dimensional space coordinates in the world coordinate system can be found in the calibration scene parameters. Through step 1410, all data relied on for calculating the camera extrinsic parameters can be obtained.
[0287] Step 1420 is described below.
[0288] 6) Calculate the camera's position relative to the world coordinate system.
[0289] One possible implementation method is to calculate the rotation matrix of the camera relative to the constructed world coordinate system through the PnP algorithm, for example, denoted as W world2cam .
[0290] 7) Calculate the position and posture of the vehicle body relative to the world coordinate system.
[0291] In a possible implementation, the four-wheel alignment device can determine the rotation matrix of the vehicle relative to the world coordinate system based on the wheel position, for example, denoted as W veh2world .
[0292] 8) Determine the camera extrinsic parameters based on the position of the camera relative to the world coordinate system and the position of the vehicle body relative to the world coordinate system.
[0293] The purpose of external parameter calibration includes: calculating the transfer matrix of the camera coordinate system relative to the vehicle coordinate system. This transfer matrix can be converted to the world coordinate system constructed by the total station.
[0294] A possible implementation method is to use the rotation matrix W of the camera relative to the vehicle body. cam2veh It can be expressed as:
[0295] W cam2veh =W veh2world -1 x W cam2world -1 .
[0296] At this point, the camera calibration is completed.
[0297] It should be understood that there is no strict order between the above 6) and 7), and the embodiment of the present application does not limit whether to calculate the position and posture of the camera relative to the world coordinate system first or to calculate the position and posture of the vehicle body relative to the world coordinate system first.
[0298] It should also be understood that the embodiments of the present application do not limit the specific process of camera calibration. As long as the content of the code is determined according to the image processing method provided in the embodiments of the present application, it falls within the protection scope of the embodiments of the present application.
[0299] It should also be understood that the above-mentioned scenario of external parameter calibration of the camera of the autonomous driving vehicle is only an exemplary description, and the embodiments of the present application are not limited thereto. Figure 3 The embodiment of the present application can also be used for joint calibration of a camera and other sensors. Alternatively, the embodiment of the present application can also be used in other measurement scenarios.
[0300] For example, Figure 3 For example. The result of the joint calibration includes determining the rotation matrix of the laser coordinate system relative to the camera coordinate system. Therefore, three-dimensional coordinates in multiple laser coordinate systems and pixel coordinates in the matching image are required. Use a calibration image with position information (such as a position mark) provided in an embodiment of the present application. Assume that the outline of the calibration image is circular, which is a feature that is easy to identify in the laser point cloud. For each frame of data, the coordinates of the center of the circle in the image can be calculated. The joint calibration can be completed by accumulating multiple frames. Figure 3 This is the result of projecting the calibrated laser point cloud into the image.
[0301] It should be understood that in some of the above embodiments, encoding using 16-bit binary code is used as an example for illustrative description, but this does not limit the present application, and any encoding method falls within the protection scope of the embodiments of the present application.
[0302] It should also be understood that in some of the above embodiments, the position of the positioning point of the calibration image is indicated by carrying a position mark in the calibration image, which does not limit the present application. Any method that can indicate the position information of the positioning point in the calibration image falls within the embodiments of the present application.
[0303] The various embodiments described herein may be independent solutions or may be combined according to internal logic, and these solutions all fall within the scope of protection of this application. For example, a solution for determining the encoding direction according to the position of a preset sequence, and a solution for carrying position information (such as a position mark) in a calibration image may be used alone or in combination.
[0304] Based on the above technical solution, a calibration image with position information (such as position mark) is provided, that is, the position information of the positioning point is notified to the decoding end in the calibration image. In this way, the decoding end can simply, quickly and accurately determine the position of the positioning point based on the calibration image. Therefore, not only a more accurate decoding result can be obtained, but also the decoding time can be reduced.
[0305] In addition, in some embodiments, positioning accuracy can be improved by finely extracting positioning points, such as the positioning accuracy can reach a sub-pixel level.
[0306] In addition, in some embodiments, the encoding direction of the calibration image can be determined according to a preset rule. In other words, the starting position of the calibration image encoding can be determined according to a preset rule. In this way, there is no need for a special direction mark to mark the starting position, and there is no need to find the direction mark before decoding. Thus, the algorithm complexity can be reduced and the decoding time can be reduced.
[0307] In addition, in some embodiments, multiple constraints (i.e., threshold conditions) are set. The stricter the constraints, the higher the decoding credibility. Multiple scales are divided for binarization, and the recognition results at different scales can be clustered with the help of accurate position information. Finally, a more accurate decoding result and pixel position can be obtained through voting. This can also reduce the probability of false detection and improve the detection rate.
[0308] It can be understood that in the above-mentioned method embodiments, the methods and operations implemented by the encoding end can also be implemented by components (such as chips or circuits) that can be used for the encoding end device, and the methods and operations implemented by the decoding end can also be implemented by components (such as chips or circuits) that can be used for the decoding end device.
[0309] Above, combined Figures 4 to 14 The method provided by the embodiment of the present application is described in detail. Fig.15 and Fig.16The image processing device provided by the embodiment of the present application is described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the contents not described in detail can be referred to the method embodiment above, and will not be repeated here for the sake of brevity.
[0310] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the interaction between various network elements. It can be understood that each network element, such as an encoding end device or a decoding end device, in order to implement the above functions, includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should be aware that, in combination with the units and algorithm steps of each example described in the embodiments disclosed in this document, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0311] The embodiment of the present application can divide the functional modules of the encoding end device or the decoding end device according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
[0312] Fig.15 1 is a schematic block diagram of an image processing device 1500 provided in an embodiment of the present application. As shown in the figure, the device 1500 may include a transceiver module 1510 and a processing module 1520. The transceiver module 1510 may be used to collect images, and the processing module 1520 is used to perform image processing. Optionally, the device 1500 may be a chip or a chip system. When the device 1500 is a chip or a chip system, the transceiver module may be an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip or the chip system. The processing module may also be embodied as a processing circuit or a logic circuit.
[0313] In a possible design, the device 1500 can implement the steps or processes executed by the decoding end device in the above method embodiment, for example, it can be a decoding end device, or a chip or chip system or circuit configured in the device. The transceiver module 1510 is used to perform the acquisition-related operations on the decoding end device side in the above method embodiment, and the processing module 1520 is used to perform the processing-related operations of the decoding end device in the above method embodiment.
[0314] In a possible implementation, the transceiver module 1510 is used to: acquire a calibration image, the calibration image includes a position mark, and the position mark is used to indicate the position of a positioning point of the calibration image; the processing module 1520 is used to: decode the calibration image based on the calibration image and the position mark.
[0315] Optionally, the position mark is marked by different colors. For example, the position mark can be marked by black and white checkerboard positioning points.
[0316] Optionally, the processing module 1520 is specifically configured to: determine a positioning point of the calibration image according to the position mark; and decode the calibration image based on the positioning point of the calibration image and the calibration image.
[0317] Optionally, the processing module 1520 is specifically used to: obtain the roughly extracted positioning points according to the calibration image and the position mark; and perform sub-pixel processing on the roughly extracted positioning points to determine the positioning points of the calibration image.
[0318] Optionally, the processing module 1520 is specifically configured to: obtain a binary code corresponding to the calibration image based on the calibration image and the position mark; and determine a coding direction of the calibration image according to a position of a preset sequence in the binary code.
[0319] Optionally, the preset sequence is located at the highest or lowest bit of the code.
[0320] Optionally, the processing module 1520 is specifically used to: under M threshold conditions, based on the calibration image and the position mark, decode the calibration image to obtain M decoding results, where M is an integer greater than 2 or equal to 2; determine that the decoding result that appears the most times among the M decoding results is the decoding result of the calibration image.
[0321] Optionally, the contour shape of the calibration image is a circle.
[0322] In another possible implementation, the transceiver module 1510 is used to: acquire the calibration image; the processing module 1520 is used to: obtain: the binary code corresponding to the calibration image, and determine the encoding direction of the calibration image according to the position of a preset sequence in the binary code; the processing module 1520 is used to: based on: the encoding direction of the calibration image, decode the calibration image.
[0323] Optionally, the preset sequence is located at the highest or lowest bit of the code.
[0324] The apparatus 1500 can implement the steps or processes executed by the decoding end device in the method 400 according to the embodiment of the present application. The apparatus 1500 may include a method for executing Figures 4 to 14 The units or modules of the method executed by the decoding end device in the apparatus 1500 are respectively for implementing Figures 4 to 14 The corresponding process in .
[0325] Wherein, when the device 1500 is used to perform Figure 4 When the method 400 is performed, the transceiver module 1510 can be used to execute step 410 in the method 400, and the processing module 1520 can be used to execute step 420 in the method 400.
[0326] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0327] In another possible design, the device 1500 can implement the steps or processes executed by the encoding end device in the above method embodiment, for example, it can be an encoding end device, or a chip or chip system or circuit configured in the device. The transceiver module 1510 is used to perform the acquisition-related operations on the encoding end device side in the above method embodiment, and the processing module 1520 is used to perform the processing-related operations of the encoding end device in the above method embodiment.
[0328] In a possible implementation, the transceiver module 1510 is used to obtain the coding value; the processing module 1520 is used to generate a calibration image based on the coding value, wherein the calibration image includes a position mark, and the position mark is used to indicate the position of the positioning point of the calibration image.
[0329] Optionally, the position mark is marked by different colors. For example, the position mark can be marked by black and white checkerboard positioning points.
[0330] Optionally, the processing module 1520 is specifically configured to: generate a calibration image based on a binary code corresponding to the coding value; wherein the position of a preset sequence in the binary code is used to determine a coding direction of the calibration image.
[0331] Optionally, the preset sequence is located at the highest or lowest bit of the code.
[0332] Optionally, the contour shape of the calibration image is a circle.
[0333] Optionally, the calibration image includes N encoding points, where N is an integer greater than 1 or equal to 1; the processing module 1520 is specifically used to: arrange the N encoding points according to the inner circle and the outer circle to generate the calibration image.
[0334] In another possible implementation, the transceiver module 1510 is used to obtain a coding value; the processing module 1520 is used to generate a calibration image based on a binary code corresponding to the coding value; wherein the position of a preset sequence in the binary code is used to determine a coding direction of the calibration image.
[0335] Optionally, the preset sequence is located at the highest or lowest bit of the code.
[0336] The apparatus 1500 can implement the steps or processes executed by the encoding end device in the method 400 according to the embodiment of the present application. The apparatus 1500 may include a method for executing Figures 4 to 14 The units or modules of the method executed by the encoding end device in the apparatus 1500. In addition, the modules in the apparatus 1500 and the above-mentioned other operations and / or functions are respectively for implementing Figures 4 to 14 The corresponding process in .
[0337] Wherein, when the device 1500 is used to perform Figure 4 When performing method 400 in the embodiment of the present invention, processing module 1520 may be used to execute step 401 in method 400.
[0338] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0339] Fig.16 1 is another schematic block diagram of an image processing device 1600 provided in an embodiment of the present application. The device 1600 may be a system for calibration, such as a sensor calibration system, or a chip or a computer program product. For example, when it is a computer program product, it may be a computer program running on an autonomous driving vehicle computing platform.
[0340] Fig.16 Figure 2 shows a schematic diagram of a sensor calibration system. Fig.16 As shown, the device 1600 may include a code point encoding and decoding module 1610 and a calibration solution module 1620. The code point encoding and decoding module 1610 may be used to perform Figures 4 to 14 The corresponding processes in , such as decoding the acquired images.
[0341] For example, the code point encoding and decoding module 1610 may store a program, and the program stored in the code point encoding and decoding module 1610 is executed, so that the code point encoding and decoding module 1610 is used to perform the relevant processing steps in the above method embodiment, such as decoding the image and other processing processes. The calibration solution module 1620 may store a program, and the program stored in the calibration solution module 1620 is executed, so that the calibration solution module 1620 is used to perform the relevant calculation steps in the above method embodiment, such as calculating the camera extrinsic parameters and other processes.
[0342] For example, the apparatus 1600 may further include a storage module, in which a program is stored. The program stored in the storage module is executed, so that the code point encoding and decoding module 1610 is used to perform the relevant processing steps in the above method embodiment, such as decoding the image and other processing processes. The program stored in the storage module is executed, so that the calibration solution module 1620 is used to perform the relevant calculation steps in the above method embodiment, such as calculating the camera external parameters and other processes.
[0343] It should be understood that the above examples are merely illustrative and the embodiments of the present application are not limited thereto.
[0344] In a possible implementation, an image (such as an image containing code points) or raw data such as a laser point cloud is input into the code point codec module 1610. In other words, after the code point codec module 1610 acquires the image to be calibrated, the code point codec module 1610 can be used to obtain a one-to-one correspondence between pixel coordinates and world coordinates according to calibration scene parameters. The calibration solution module 1620 can calculate the camera extrinsic parameters of the camera based on the result of the code point codec module 1610.
[0345] Optionally, the calibration solution module 1620 may also input the calibration result.
[0346] The present application also provides a processing device, including a processor and an interface. The processor can be used to execute the method in the above method embodiment.
[0347] It should be understood that the above-mentioned processing device can be a chip. For example, the processing device can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0348] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0349] It should be noted that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0350] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0351] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: a computer program code, when the computer program code is run on a computer, the computer executes Figures 4 to 14 A method according to any one of the embodiments shown.
[0352] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable storage medium, which stores a program code, and when the program code is run on a computer, the computer executes Figures 4 to 14 A method according to any one of the embodiments shown.
[0353] According to the method provided in the embodiment of the present application, the present application also provides a system, which includes one or more of the following: one or more encoding modules, one or more decoding modules, and one or more solution modules mentioned above.
[0354] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disc (SSD)).
[0355] The network devices in the above-mentioned various device embodiments correspond to the network devices or terminal devices in the terminal devices and method embodiments, and the corresponding modules or units perform the corresponding steps. For example, the communication unit (transceiver) performs the steps of receiving or sending in the method embodiment, and other steps except sending and receiving can be performed by the processing unit (processor). The functions of the specific units can refer to the corresponding method embodiments. Among them, the processor can be one or more.
[0356] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).
[0357] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0358] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0359] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, 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, such as 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 devices or units, which can be electrical, mechanical or other forms.
[0360] 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.
[0361] In addition, each functional unit in each embodiment of the present application 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.
[0362] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0363] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A method for image processing, characterized in that: include: Acquire a calibration image, wherein the calibration image includes a position mark, and the position mark is used to indicate the position of the positioning point of the calibration image, wherein the coded points in the calibration image are arranged according to an inner circle and an outer circle; Based on the calibration image and the position mark, decoding the calibration image includes: Based on the calibration image and the position mark, determine to obtain a binary code corresponding to the calibration image; The encoding direction of the calibration image is determined according to the position of a preset sequence in the binary code, wherein the preset sequence is located at the highest bit or the lowest bit of the code.
2. The method according to claim 1, characterized in that Before decoding the calibration image based on the calibration image and the position mark, the method further includes: According to the position mark, a positioning point of the calibration image is determined.
3. The method according to claim 2, characterized in that Determining the positioning point of the calibration image according to the position mark includes: According to the calibration image and the position mark, obtaining the roughly extracted positioning point; Sub-pixel processing is performed on the roughly extracted positioning points to determine the positioning points of the calibration image.
4. The method according to claim 1 or 2, characterized in that: The step of decoding the calibration image based on the calibration image and the position mark further includes: Under M threshold conditions, based on the calibration image and the position mark, the calibration image is decoded to obtain M decoding results, where M is an integer greater than 2 or equal to 2; Determine the decoding result that appears most frequently among the M decoding results as the decoding result of the calibration image.
5. A method for image processing, characterized in that: include: Get the encoded value; Based on the code value, a calibration image is generated, wherein the calibration image includes a position mark, and the position mark is used to indicate the position of the positioning point of the calibration image, including: generating the calibration image based on the binary code corresponding to the encoding value; The coding points in the calibration image are arranged according to the inner circle and the outer circle, and the position of the preset sequence in the binary code is used to determine the initial mark to determine the coding direction of the calibration image, wherein the preset sequence is located at the highest or lowest bit of the code.
6. The method according to claim 5, characterized in that The calibration image includes N code points, where N is an integer greater than 1 or equal to 1; The generating of the calibration image comprises: The N encoding points are arranged according to an inner circle and an outer circle to generate the calibration image.
7. The method according to claim 1 or 5, characterized in that: The position marks are marked by different colors.
8. The method according to claim 1 or 5, characterized in that: The contour shape of the calibration image is a circle.
9. An image processing device, characterized in that: include: A transceiver module, used for collecting a calibration image, wherein the calibration image includes a position mark, and the position mark is used for indicating the position of a positioning point of the calibration image, wherein the coded points in the calibration image are arranged according to an inner circle and an outer circle; A processing module, configured to decode the calibration image based on the calibration image and the position mark, comprising: Determining an initial mark based on the calibration image and the position mark to obtain a binary code corresponding to the calibration image; The encoding direction of the calibration image is determined according to the position of a preset sequence in the binary code, wherein the preset sequence is located at the highest bit or the lowest bit of the code.
10. The device according to claim 9, characterized in that: The processing module is specifically used for: Determining a positioning point of the calibration image according to the position mark; The calibration image is decoded based on the positioning points of the calibration image and the calibration image.
11. The device according to claim 9 or 10, characterized in that The processing module is specifically used for: According to the calibration image and the position mark, obtaining the roughly extracted positioning point; Sub-pixel processing is performed on the roughly extracted positioning points to determine the positioning points of the calibration image.
12. The device according to claim 9, characterized in that The processing module is specifically used for: Under M threshold conditions, based on the calibration image and the position mark, the calibration image is decoded to obtain M decoding results, where M is an integer greater than 2 or equal to 2; Determine the decoding result that appears most frequently among the M decoding results as the decoding result of the calibration image.
13. An image processing device, characterized in that: include: A transceiver module is used to obtain the encoding value; generating a calibration image based on a binary code corresponding to the encoding value; The coding points in the calibration image are arranged according to the inner circle and the outer circle, the position of the preset sequence in the binary code is used to determine the initial mark to determine the coding direction of the calibration image, and the preset sequence is located at the highest or lowest bit of the code; A processing module is used to generate a calibration image based on the encoding value, wherein the calibration image includes a position mark, and the position mark is used to indicate the position of the positioning point of the calibration image.
14. The device according to claim 13, characterized in that The calibration image includes N code points, where N is an integer greater than 1 or equal to 1; The processing module is specifically used for: The N encoding points are arranged according to an inner circle and an outer circle to generate the calibration image.
15. The device according to claim 9 or 13, characterized in that: The position marks are marked by different colors.
16. The device according to claim 9 or 13, characterized in that The contour shape of the calibration image is a circle.
17. An image processing device, characterized in that: include: Memory, for storing computer instructions; A processor, configured to execute computer instructions stored in the memory, so that the device performs the method according to any one of claims 1 to 8.
18. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a device, the device executes the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Calibration method of coded structured light three-dimensional vision system
CN101673399A
Setpoint arrangement method and apparatus, and method and apparatus for measuring three-dimensional coordinate of setpoint
CN106546230A
Circular coded mark point with initial information
CN106767502A
Image processing system and image processing method
CN108717709A
Variable formatting of digital data into a pattern
US20140097250A1
Cited By
Image evaluation method that can quantify images distorted by artifacts, computer program performing the method, and computing device
US12236567B2
Image evaluation method that can quantify images distorted by artifacts, computer program performing the method, and computing device
US20230060209A1
