Image processing method, device, computer equipment and storage medium

By identifying and establishing a topological coordinate system, the problem of low accuracy in external parameter calibration of three-dimensional lidar and monocular cameras is solved, and accurate calibration of sensor data in platforms such as autonomous vehicles is achieved.

CN112241988BActive Publication Date: 2024-09-06BEIJING NEW ENERGY VEHICLE TECH INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910778472.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-22
Publication Date
2024-09-06
Estimated Expiration
2039-08-22

AI Technical Summary

Technical Problem

The accuracy of external parameter calibration between 3D lidar and monocular camera is low, making it difficult to achieve accurate external parameter calibration.

Method used

By acquiring images of preset calibration targets, identifying large and small logos, establishing a topological coordinate system, and determining the coordinates of images or point clouds, accurate external parameter calibration between lidar and monocular cameras can be achieved.

Benefits of technology

It improves the accuracy of external parameter calibration, ensures accurate calibration between 3D lidar and monocular cameras, and improves the accuracy of sensor data used in mobile platforms such as autonomous vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112241988B
    Figure CN112241988B
Patent Text Reader

Abstract

The present application relates to an image processing method, device, computer equipment and storage medium. The method comprises: obtaining an image corresponding to a preset calibration target and identifying the logo in the image to obtain a large logo and a small logo in the logo; further establishing a topological coordinate system of the image according to the large logo; and then determining the image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large logo and the small logo. The method can be used to accurately calibrate the external parameters between a three-dimensional laser radar and a monocular camera for a specific calibration target.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of external parameter calibration, and in particular to an image processing method, apparatus, computer equipment and storage medium. Background Art

[0002] Calibration is a fundamental issue in the field of computer vision and robotics. It mainly refers to the use of standard measuring instruments to test the accuracy (precision) of the instruments used to see if they meet the standards. It is generally used for instruments with higher precision. Calibration can also be considered as calibration.

[0003] In mobile platforms such as autonomous vehicles that are equipped with both lidar and monocular cameras, calibration between the lidar and monocular cameras is required. According to the characteristics of the two sensors to be calibrated, the corresponding calibration device needs to be designed to achieve the purpose of external parameter calibration. The calibration device data collected by the lidar and monocular camera are three-dimensional point clouds and two-dimensional images, respectively, and effective information extraction is required to obtain parameters for external parameter calibration.

[0004] Currently, the accuracy of extrinsic calibration between 3D LiDAR and monocular camera is low. Summary of the invention

[0005] Based on this, it is necessary to provide an image processing method, device, computer equipment and storage medium that can improve the accuracy of external parameter calibration in response to the above technical problems.

[0006] An image processing method, the method comprising:

[0007] Obtain an image corresponding to a preset calibration target;

[0008] Identify the logo in the image to obtain a large logo and a small logo in the logo;

[0009] Establishing a topological coordinate system of the image according to the large identifier;

[0010] The image coordinates corresponding to the preset calibration target are determined according to the topological coordinate system, the large mark and the small mark.

[0011] In one embodiment, the method comprises:

[0012] Obtain a two-dimensional image corresponding to a preset calibration target;

[0013] Identify the logo in the two-dimensional image to obtain a large logo and a small logo in the logo;

[0014] According to the large mark, a topological coordinate system of the two-dimensional image is established;

[0015] The two-dimensional image coordinates corresponding to the preset calibration target are determined according to the topological coordinate system, the large mark and the small mark.

[0016] In one embodiment, the identifying the logo in the two-dimensional image to obtain the large logo and the small logo in the logo includes:

[0017] The logo is classified according to the imaging area of ​​the logo in the two-dimensional image to obtain a large logo and a small logo.

[0018] In one embodiment, establishing the topological coordinate system of the two-dimensional image according to the large identifier includes:

[0019] Establishing a basic coordinate system with any corner of the two-dimensional image as the center to determine the image coordinates of the large logo;

[0020] A topological coordinate system of the two-dimensional image is established according to the topological relationship between the image coordinates of the large markers.

[0021] In one embodiment, determining the two-dimensional image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark includes:

[0022] Determine the image coordinates of the small mark according to the topological coordinate system and the image coordinates of the large mark;

[0023] According to the image coordinates of the large mark and the image coordinates of the small mark, the two-dimensional image coordinates corresponding to the preset calibration target are obtained.

[0024] In one embodiment, determining the image coordinates of the small marker according to the topological coordinate system and the image coordinates of the large marker comprises:

[0025] Taking the pixel distance between the image coordinates of adjacent large marks as an interval, small marks are searched along the horizontal axis and the vertical axis of the topological coordinate system and the image coordinates of the small marks are determined.

[0026] In one embodiment, the method comprises:

[0027] Obtain a three-dimensional point cloud image corresponding to a preset calibration target;

[0028] Identify the markers in the three-dimensional point cloud image to obtain large markers and small markers in the markers;

[0029] According to the large identifier, a topological coordinate system of the three-dimensional point cloud image is established;

[0030] The three-dimensional point cloud image coordinates corresponding to the preset calibration target are determined according to the topological coordinate system, the large mark and the small mark.

[0031] In one embodiment, the identifying the logo in the three-dimensional point cloud image to obtain the large logo and the small logo in the logo includes:

[0032] Obtaining an initial mark and an initial mark curvature;

[0033] Determining a target marker and a target marker curvature according to the initial marker and the initial marker curvature;

[0034] A large mark and a small mark are determined according to the target mark and the curvature of the target mark.

[0035] In one embodiment, obtaining the initial mark and the initial mark curvature includes:

[0036] Performing plane fitting on the three-dimensional point cloud to obtain the initial calibration target;

[0037] Calculating the direction vector of the initial calibration target to determine the direction of the initial calibration target;

[0038] Obtain a three-dimensional point cloud of the direction of the initial calibration target within a first preset range, and calculate the curvature of the initial identifier corresponding to the three-dimensional point cloud within the first preset range, wherein the figure formed by the three-dimensional point cloud of the direction of the initial calibration target within the first preset range is the initial identifier.

[0039] In one embodiment, determining the target identifier and the target identifier curvature according to the initial identifier and the initial identifier curvature comprises:

[0040] Rotating the initial mark to obtain a rotated mark;

[0041] The three-dimensional point cloud is searched within a second preset range of the rotated marker. If the number of the three-dimensional point cloud and the rotated marker reaches a preset threshold, the initial marker is the target marker, wherein the curvature of the initial marker is the curvature of the target marker.

[0042] In one embodiment, establishing the topological coordinate system of the three-dimensional point cloud image according to the large identifier includes:

[0043] Obtaining the large identifier;

[0044] Determine the three-dimensional point cloud corresponding to the large marker according to the positional relationship of the large marker;

[0045] Fitting the three-dimensional point cloud corresponding to the large logo to obtain the three-dimensional point cloud image coordinates of the large logo;

[0046] A topological coordinate system of the three-dimensional point cloud image is established according to the topological relationship between the coordinates of the three-dimensional point cloud image of the large marker.

[0047] In one embodiment, the process of establishing the topological coordinate system of the three-dimensional point cloud image according to the topological relationship between the three-dimensional point cloud image coordinates of the large marker comprises:

[0048] Get the remaining flags;

[0049] Filter the remaining identifiers to obtain filtered identifiers;

[0050] The filtered markers are fitted to determine small markers.

[0051] An image processing device, comprising:

[0052] An image acquisition module, used to acquire an image corresponding to a preset calibration target;

[0053] A logo recognition module, used to recognize the logo in the image and obtain the large logo and the small logo in the logo;

[0054] A coordinate system establishment module, used to establish a topological coordinate system of the image according to the large identifier;

[0055] The image coordinate determination module is used to determine the image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark.

[0056] A vehicle comprises the image processing device as described above.

[0057] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of any of the above methods when executing the computer program.

[0058] A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of any of the methods described above are implemented.

[0059] The above-mentioned image processing method, device, computer equipment and storage medium obtain an image corresponding to a preset calibration target and identify the logo in the image to obtain a large logo and a small logo in the logo; further establish a topological coordinate system of the image based on the large logo; and then determine the image coordinates corresponding to the preset calibration target based on the topological coordinate system, the large logo and the small logo. The above-mentioned method can be used to accurately calibrate the external parameters between the three-dimensional laser radar and the monocular camera for the specific calibration target in this application. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 A diagram showing an application environment of an image processing method in an embodiment;

[0061] Figure 2 is a schematic flow chart of an image processing method in one embodiment;

[0062] FIG3( a ) is a schematic diagram of the front view of a preset calibration target;

[0063] Figure 3(b) is a schematic diagram of the preset calibration target rotating 30° around the x-axis;

[0064] Figure 3(c) is a schematic diagram of the preset calibration target rotating 30° around the z-axis;

[0065] Figure 3(d) is a schematic diagram of the preset calibration target rotating 30° around the y-axis;

[0066] Figure 4 is a schematic flow chart of a two-dimensional image processing method in one embodiment;

[0067] Figure 5 A schematic diagram of a topological relationship diagram of preset calibration targets in one embodiment;

[0068] Figure 6 Schematic diagram of a process of a three-dimensional point cloud image processing method in one embodiment;

[0069] Figure 7 is a structural block diagram of an image processing device in one embodiment;

[0070] Figure 8 is a schematic diagram of an application of an image processing device in a vehicle in one embodiment;

[0071] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0073] The image processing method provided in this application can be applied to Figure 1In the application environment shown. Among them, the terminal 50 communicates with the server 60 through the network. The terminal 50 obtains the image corresponding to the preset calibration target, and transmits the image corresponding to the preset calibration target to the server 60 through the network. The server 60 identifies the logo in the image, obtains the large logo and the small logo in the logo; further establishes the topological coordinate system of the image according to the large logo; and then determines the image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large logo and the small logo. Among them, the terminal 50 can be but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 60 can be implemented with an independent server or a server cluster composed of multiple servers.

[0074] In one embodiment, Figure 2 As shown, an image processing method is provided, which is applied to Figure 1 Taking the server 104 in the example as an example, the following steps are included:

[0075] Step S10: Acquire an image corresponding to a preset calibration target;

[0076] Step S20: Identify the logo in the image to obtain a large logo and a small logo in the logo;

[0077] Step S30: establishing a topological coordinate system of the image according to the large identifier;

[0078] Step S40: determining the image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark.

[0079] In steps S10-S40, the preset calibration target in the present application is composed of a calibration plate and a marker, the marker is fixed to the calibration plate by screws, and the shape, arrangement and size of the marker are set as required. Among them, the difference between the large marker and the small marker is only the size. Since the present application adopts a spherical marker, the large marker can be called a large marker ball, and the small marker can be called a small marker ball.

[0080] Taking Figure 3 as an example, the preset calibration target consists of a calibration plate and a marking ball. The marking hemisphere is fixed on the calibration plate by screws. The target size is 1600mm×1400mm. There are 42 marking balls arranged in 7 rows and 6 columns on the surface, of which 4 large marking balls have a diameter of 200mm and the remaining marking balls have a diameter of 100mm. The hemispheres are evenly distributed and the distance between the ball centers is 200mm. Figure 3(a) is the front of the preset calibration target. In Figure 3(b), the preset calibration target is rotated 30° around the x-axis, in Figure 3(c), the preset calibration target is rotated 30° around the z-axis, and in Figure 3(d), the preset calibration target is rotated 30° around the y-axis.

[0081] Furthermore, the image corresponding to the preset calibration target can be a two-dimensional image, a three-dimensional image, or other multi-dimensional images. The present application uses a laser radar and a monocular camera to collect the preset calibration target data respectively to obtain a three-dimensional point cloud image and a two-dimensional image. The two-dimensional image and the three-dimensional point cloud image are processed respectively to determine the image coordinates corresponding to the preset calibration target.

[0082] The above-mentioned image processing method, device, computer equipment and storage medium obtain an image corresponding to a preset calibration target and identify the logo in the image to obtain a large logo and a small logo in the logo; further establish a topological coordinate system of the image based on the large logo; and then determine the image coordinates corresponding to the preset calibration target based on the topological coordinate system, the large logo and the small logo. The above-mentioned method can be used to accurately calibrate the external parameters between the three-dimensional laser radar and the monocular camera for the specific calibration target in this application.

[0083] In one embodiment, if Figure 4 As shown, the method includes:

[0084] Step S11: obtaining a two-dimensional image corresponding to a preset calibration target;

[0085] Step S21: Identify the logo in the two-dimensional image to obtain a large logo and a small logo in the logo;

[0086] Step S31: establishing a topological coordinate system of the two-dimensional image according to the large identifier;

[0087] Step S41: Determine the two-dimensional image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark.

[0088] In steps S11-S41, the present application first processes the two-dimensional image to determine the image coordinates corresponding to the preset calibration target.

[0089] According to the isotropic consistency of the sphere, the sphere photographed by the camera at different angles is a circle; at the same time, the two-dimensional image corresponding to the circle is an ellipse. Since the target uses a sphere, the shape of the image is between a circle and an ellipse. Figure 5 It can be seen that when the target rotates, the circle in the corresponding image is deformed, and the method of extracting the center of the circle in the rotating scene is no longer applicable. This application uses the centroid of the image area of ​​the marker hemisphere as the imaging point corresponding to the center of the marker sphere.

[0090] In one embodiment, the step S21 includes:

[0091] Step S211: classifying the logo according to its imaging area in the two-dimensional image to obtain a large logo and a small logo.

[0092] Specifically, although the two-dimensional image of the preset calibration target obtained by the monocular camera may have different angles, resulting in deformation of both the large and small marks of the preset calibration target in the acquired two-dimensional image, the large and small marks can still be distinguished by the imaging area in the two-dimensional image.

[0093] In one embodiment, the step S31 includes:

[0094] Step S311: establishing a basic coordinate system with any corner of the two-dimensional image as the center to determine the image coordinates of the large logo;

[0095] Step S312: establishing a topological coordinate system of the two-dimensional image according to the topological relationship between the image coordinates of the large markers.

[0096] In steps S311-S312, see Figure 5 Since the imaging area of ​​the large marker ball is larger than that of the other marker balls, the image coordinates O corresponding to the centers of the four large marker balls can be determined first. i (u i ,v i ), where i = 1, 2, 3, 4. According to the topological relationship of the four large marking balls, the point with the largest v coordinate in the four image coordinates corresponds to point O2, the point with the largest u coordinate corresponds to point O4, the point with the smallest u coordinate corresponds to point O1, and the remaining point is point O3. With point O2 as the origin, the straight line parallel to the line connecting point O1 and point O3 is x t Axis, y t Axis and x t The axes are vertical and the target topological coordinate system is established.

[0097] In one embodiment, the step S41 includes:

[0098] Step S411: determining the image coordinates of the small mark according to the topological coordinate system and the image coordinates of the large mark;

[0099] Step S412: Obtain the two-dimensional image coordinates corresponding to the preset calibration target according to the image coordinates of the large mark and the image coordinates of the small mark.

[0100] In steps S411-S412, based on the established topological coordinate system and the image coordinates of the large marker, the small marker may be searched along the topological coordinate system to obtain the image coordinates of the small marker.

[0101] In one embodiment, the step S411 includes:

[0102] Step S4111: using the pixel distance between the image coordinates of adjacent large markers as an interval, searching for small markers along the horizontal and vertical axes of the topological coordinate system and determining the image coordinates of the small markers.

[0103] Specifically, since the marker hemispheres are evenly distributed, the adjacent large marker spheres are t Axis and y t The pixel interval of the axis is the threshold, and the t Axis and y t The remaining marking balls in the axial direction are then marked. At this point, the image coordinates corresponding to the target can be obtained, and the two-dimensional image processing corresponding to the preset calibration target is completed.

[0104] In one embodiment, see Figure 6 , the method comprising:

[0105] Step S12: Obtain a three-dimensional point cloud image corresponding to a preset calibration target;

[0106] Step S22: Identify the logo in the three-dimensional point cloud image to obtain a large logo and a small logo in the logo;

[0107] Step S32: establishing a topological coordinate system of the three-dimensional point cloud image according to the large identifier;

[0108] Step S42: Determine the three-dimensional point cloud image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark.

[0109] In steps S12-S42, the present application first processes the three-dimensional point cloud image to determine the image coordinates corresponding to the preset calibration target. The processing of the three-dimensional point cloud image requires manual extraction of the three-dimensional point cloud of the area corresponding to the preset calibration target. Since the three-dimensional point cloud consists of two parts, the marker ball point cloud and the target plate, the three-dimensional point cloud needs to be classified.

[0110] In one embodiment, the step S22 includes:

[0111] Step S221: obtaining an initial mark and an initial mark curvature;

[0112] Step S222: determining a target marker and a target marker curvature according to the initial marker and the initial marker curvature;

[0113] Step S223: Determine a large marker and a small marker according to the target marker and the target marker curvature.

[0114] In steps S221-S223, the initial identifier refers to the identifier in the three-dimensional point cloud image obtained by scanning the preset calibration target through the laser radar, that is, the initial large identifier and the small identifier. The target identifier refers to the identifier obtained after processing the initial identifier, that is, the target large identifier and the target small identifier.

[0115] In one embodiment, the step S221 includes:

[0116] Step S2211: performing plane fitting on the three-dimensional point cloud to obtain the initial calibration target;

[0117] Step S2212: Calculate the direction vector of the initial calibration target to determine the direction of the initial calibration target;

[0118] Step S2213: Obtain the three-dimensional point cloud of the direction of the initial calibration target within the first preset range, and calculate the curvature of the initial identifier corresponding to the three-dimensional point cloud within the first preset range, wherein the figure formed by the three-dimensional point cloud of the direction of the initial calibration target within the first preset range is the initial identifier.

[0119] In steps S2211-S2213, the first preset range refers to a range set according to different research objects, and can be expressed as [a, b], where a is smaller than b.

[0120] In one embodiment, the step S222 includes:

[0121] Step S2221: rotating the initial logo to obtain a rotated logo;

[0122] Step S2222: Searching for a three-dimensional point cloud within a second preset range of the rotated marker. If the number of the three-dimensional point cloud and the rotated marker reaches a preset threshold, the initial marker is the target marker, wherein the curvature of the initial marker is the curvature of the target marker.

[0123] In steps S2221-S2222, the second preset range refers to a range set according to different research objects, which can be expressed as [c, d], where c is less than d. The preset threshold refers to a value set by the system, which can be 3 or 5, etc. If the number of the three-dimensional point cloud and the rotated identifier is lower than the preset threshold, the initial identifier is ignored and the search for the three-dimensional point cloud continues.

[0124] In one embodiment, the step S32 includes:

[0125] Step S321: Obtain the large logo;

[0126] Step S322: determining the three-dimensional point cloud corresponding to the large marker according to the positional relationship of the large marker;

[0127] Step S323: fitting the three-dimensional point cloud corresponding to the large logo to obtain the three-dimensional point cloud image coordinates of the large logo;

[0128] Step S324: establishing a topological coordinate system of the three-dimensional point cloud image according to the topological relationship between the three-dimensional point cloud image coordinates of the large marker.

[0129] In steps S321-S324, since the curvatures of the marker balls are different, the large marker ball is processed first, see Figure 5 , the centers of the three large marker balls are located on the same straight line, and the angle and distance between them and the fourth large marker ball are known. According to this constraint, the point clouds corresponding to the four large marker hemispheres can be located in the undetermined sphere.

[0130] In one embodiment, the step S324 includes:

[0131] Step S325: Obtain remaining identifiers;

[0132] Step S326: Filter the remaining identifiers to obtain filtered identifiers;

[0133] Step S327: fitting the filtered logos to determine small logos.

[0134] In steps S325-S327, the remaining identifiers refer to the identifiers that have not been determined by calculation. Since all the large identifiers have been identified in the above steps, the small identifiers need to be identified later to determine the small identifiers.

[0135] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0136] In one embodiment, Figure 7 As shown, an image processing device is provided, comprising: an image acquisition module 100, an identification recognition module 200, a coordinate system establishment module 300 and an image coordinate determination module 400, wherein:

[0137] An image acquisition module 100 is used to acquire an image corresponding to a preset calibration target;

[0138] The logo recognition module 200 is used to recognize the logo in the image and obtain the large logo and the small logo in the logo;

[0139] A coordinate system establishing module 300, used to establish a topological coordinate system of the image according to the large identifier;

[0140] The image coordinate determination module 400 is used to determine the image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark.

[0141] In one embodiment, the method comprises:

[0142] A two-dimensional image acquisition module 101 is used to acquire a two-dimensional image corresponding to a preset calibration target;

[0143] A first identification module 201 is used to identify the identification in the two-dimensional image and obtain the large identification and the small identification in the identification;

[0144] A first coordinate system establishing module 301, used to establish a topological coordinate system of the two-dimensional image according to the large mark;

[0145] The two-dimensional image coordinate determination module 401 is used to determine the two-dimensional image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark.

[0146] In one embodiment, the first identification module 201 includes:

[0147] The classification module 2011 is used to classify the logo according to the imaging area of ​​the logo in the two-dimensional image to obtain a large logo and a small logo.

[0148] In one embodiment, the first coordinate system establishing module 301 includes:

[0149] A basic coordinate establishment module 3011 is used to establish a basic coordinate system with any corner of the two-dimensional image as the center to determine the image coordinates of the large mark;

[0150] The two-dimensional image topological coordinate establishing module 3012 is used to establish the topological coordinate system of the two-dimensional image according to the topological relationship between the image coordinates of the large markers.

[0151] In one embodiment, the two-dimensional image coordinate determination module 401 includes:

[0152] A small marker coordinate determination module 4011 is used to determine the image coordinates of the small marker according to the topological coordinate system and the image coordinates of the large marker;

[0153] The two-dimensional image coordinate determination module 4012 is used to obtain the two-dimensional image coordinates corresponding to the preset calibration target according to the image coordinates of the large mark and the image coordinates of the small mark.

[0154] In one embodiment, the small marker coordinate determination module 4011 includes:

[0155] The small marker coordinate calculation module 4011a is used to search for small markers and determine the image coordinates of small markers along the horizontal and vertical axes of the topological coordinate system, taking the pixel distance between the image coordinates of adjacent large markers as an interval.

[0156] In one embodiment, the method comprises:

[0157] The three-dimensional image acquisition module 102 is used to acquire a three-dimensional point cloud image corresponding to a preset calibration target;

[0158] A second identification module 202 is used to identify the identification in the three-dimensional point cloud image to obtain the large identification and the small identification in the identification;

[0159] A second coordinate system establishing module 302, used to establish a topological coordinate system of the three-dimensional point cloud image according to the large mark;

[0160] The three-dimensional image coordinate determination module 402 is used to determine the three-dimensional point cloud image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark.

[0161] In one embodiment, the second identification module 202 includes:

[0162] An initial mark acquisition module 2021 is used to acquire an initial mark and an initial mark curvature;

[0163] A target identification acquisition module 2022 is used to determine a target identification and a target identification curvature according to the initial identification and the initial identification curvature;

[0164] The mark determination module 2023 is used to determine the large mark and the small mark according to the target mark and the target mark curvature.

[0165] In one embodiment, the initial identification acquisition module 2021 includes:

[0166] A fitting module 2021a is used to perform plane fitting on the three-dimensional point cloud to obtain the initial calibration target;

[0167] A vector calculation module 2021b is used to calculate the direction vector of the initial calibration target and determine the direction of the initial calibration target;

[0168] The curvature calculation module 2021c is used to obtain the three-dimensional point cloud of the direction of the initial calibration target within the first preset range, and calculate the curvature of the initial identification corresponding to the three-dimensional point cloud within the first preset range, wherein the figure formed by the three-dimensional point cloud of the direction of the initial calibration target within the first preset range is the initial identification.

[0169] In one embodiment, the target identification acquisition module 2022 includes:

[0170] A rotation module 2022a, configured to rotate the initial identifier to obtain a rotated identifier;

[0171] The target identification determination module 2022b is used to search for a three-dimensional point cloud within a second preset range of the rotated identification. If the number of the three-dimensional point cloud and the rotated identification reaches a preset threshold, the initial identification is the target identification, wherein the curvature of the initial identification is the curvature of the target identification.

[0172] In one embodiment, the second coordinate system establishing module 302 includes:

[0173] A large identification acquisition module 3021 is used to acquire the large identification;

[0174] A large mark corresponding point cloud determination module 3022 is used to determine the three-dimensional point cloud corresponding to the large mark according to the position relationship of the large mark;

[0175] A large marker coordinate determination module 3022 is used to fit the three-dimensional point cloud corresponding to the large marker to obtain the three-dimensional point cloud image coordinates of the large marker;

[0176] The three-dimensional topological coordinate system determining module 3023 is used to establish the topological coordinate system of the three-dimensional point cloud image according to the topological relationship between the three-dimensional point cloud image coordinates of the large marker.

[0177] In one embodiment, the three-dimensional topological coordinate system determining module 3023 then includes:

[0178] The remaining identifier acquisition module 3024 is used to acquire the remaining identifiers;

[0179] A screening module 3025 is used to screen the remaining identifiers to obtain screened identifiers;

[0180] The small marker coordinate calculation module 3026 is used to fit the filtered markers to determine the small markers.

[0181] For the specific definition of the image processing device, please refer to the definition of the image processing method above, which will not be repeated here. Each module in the above image processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0182] In one embodiment, in combination Figure 8 , a vehicle, the vehicle comprising the image processing device as described above. The image processing device is applied to the vehicle, the image processing device comprises a laser radar installed at the roof position, and a monocular camera installed behind the front windshield of the vehicle, the laser radar and the monocular camera are respectively connected to the industrial computer in the vehicle through data cables. The preset calibration target is set in front of the vehicle, and the distance between the preset calibration target and the vehicle is set according to the degree of recognition of the laser radar and the monocular camera, and the specific distance is not limited.

[0183] The images corresponding to the preset calibration targets are acquired through the laser radar and the monocular camera respectively, and the images are transmitted to the industrial computer in the vehicle. The industrial computer recognizes and processes the images to determine the image coordinates corresponding to the preset calibration targets.

[0184] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an image processing method is implemented.

[0185] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0186] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0187] Obtain an image corresponding to a preset calibration target;

[0188] Identify the logo in the image to obtain a large logo and a small logo in the logo;

[0189] Establishing a topological coordinate system of the image according to the large identifier;

[0190] The image coordinates corresponding to the preset calibration target are determined according to the topological coordinate system, the large mark and the small mark.

[0191] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0192] Obtain an image corresponding to a preset calibration target;

[0193] Identify the logo in the image to obtain a large logo and a small logo in the logo;

[0194] Establishing a topological coordinate system of the image according to the large identifier;

[0195] The image coordinates corresponding to the preset calibration target are determined according to the topological coordinate system, the large mark and the small mark.

[0196] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

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

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

Claims

1. An image processing method, It is characterized in that The method comprises: Obtain an image corresponding to a preset calibration target; Identify the logo in the image to obtain a large logo and a small logo in the logo; Establishing a topological coordinate system of the image according to the large identifier; Determine the image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark; Wherein, the method further comprises: Obtain a two-dimensional image corresponding to a preset calibration target; Identify the logo in the two-dimensional image to obtain a large logo and a small logo in the logo; According to the large mark, a topological coordinate system of the two-dimensional image is established; Determine the two-dimensional image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark; The step of identifying the logo in the two-dimensional image to obtain the large logo and the small logo in the logo includes: Classifying the logo according to the imaging area of ​​the logo in the two-dimensional image to obtain a large logo and a small logo; Wherein, establishing the topological coordinate system of the two-dimensional image according to the large identifier includes: Establishing a basic coordinate system with any corner of the two-dimensional image as the center to determine the image coordinates of the large logo; Establishing a topological coordinate system of the two-dimensional image according to the topological relationship between the image coordinates of the large marker; Wherein, determining the two-dimensional image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark includes: Determine the image coordinates of the small mark according to the topological coordinate system and the image coordinates of the large mark; Obtaining the two-dimensional image coordinates corresponding to the preset calibration target according to the image coordinates of the large mark and the image coordinates of the small mark; The step of determining the image coordinates of the small mark according to the topological coordinate system and the image coordinates of the large mark includes: Taking the pixel distance between the image coordinates of adjacent large marks as an interval, small marks are searched along the horizontal axis and the vertical axis of the topological coordinate system and the image coordinates of the small marks are determined.

2. The method according to claim 1, It is characterized in that The method comprises: Obtain a three-dimensional point cloud image corresponding to a preset calibration target; Identify the markers in the three-dimensional point cloud image to obtain large markers and small markers in the markers; According to the large identifier, a topological coordinate system of the three-dimensional point cloud image is established; The three-dimensional point cloud image coordinates corresponding to the preset calibration target are determined according to the topological coordinate system, the large mark and the small mark.

3. The method according to claim 2, It is characterized in that The identifying the logo in the three-dimensional point cloud image to obtain the large logo and the small logo in the logo includes: Obtaining an initial mark and an initial mark curvature; Determining a target marker and a target marker curvature according to the initial marker and the initial marker curvature; Determine a large mark and a small mark according to the target mark and the curvature of the target mark; The obtaining of the initial mark and the initial mark curvature includes: Performing plane fitting on the three-dimensional point cloud to obtain the initial calibration target; Calculating the direction vector of the initial calibration target to determine the direction of the initial calibration target; Acquire a three-dimensional point cloud of the direction of the initial calibration target within a first preset range, and calculate the curvature of the initial mark corresponding to the three-dimensional point cloud within the first preset range, wherein the figure formed by the three-dimensional point cloud of the direction of the initial calibration target within the first preset range is the initial mark; Wherein, determining the target identifier and the target identifier curvature according to the initial identifier and the initial identifier curvature comprises: Rotating the initial mark to obtain a rotated mark; The three-dimensional point cloud is searched within a second preset range of the rotated marker. If the number of the three-dimensional point cloud and the rotated marker reaches a preset threshold, the initial marker is the target marker, wherein the curvature of the initial marker is the curvature of the target marker.

4. The method according to claim 3, It is characterized in that The step of establishing the topological coordinate system of the three-dimensional point cloud image according to the large identifier includes: Obtaining the large identifier; Determine the three-dimensional point cloud corresponding to the large marker according to the positional relationship of the large marker; Fitting the three-dimensional point cloud corresponding to the large logo to obtain the three-dimensional point cloud image coordinates of the large logo; Establishing a topological coordinate system of the three-dimensional point cloud image according to the topological relationship between the coordinates of the three-dimensional point cloud image of the large marker; Wherein, the step of establishing the topological coordinate system of the three-dimensional point cloud image according to the topological relationship between the coordinates of the three-dimensional point cloud image of the large marker comprises: Get the remaining identifiers; Filter the remaining identifiers to obtain filtered identifiers; The filtered markers are fitted to determine small markers.

5. An image processing device, It is characterized in that The image processing device is based on any one of the image processing methods of claims 1 to 4, and the device comprises: An image acquisition module, used to acquire an image corresponding to a preset calibration target; A logo recognition module, used to recognize the logo in the image and obtain the large logo and the small logo in the logo; A coordinate system establishment module, used to establish a topological coordinate system of the image according to the large identifier; The image coordinate determination module is used to determine the image coordinates corresponding to the preset calibration target according to the topological coordinate system, the large mark and the small mark.

6. A vehicle, It is characterized in that The vehicle includes the image processing device according to claim 5.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.