Camera calibration method, device, electronic equipment and program product

By collecting images in the high-precision map coverage area and combining them with three-dimensional point cloud data, online self-calibration of the camera is achieved, which solves the problems of high cost and low efficiency of traditional calibration methods and improves the coverage and update efficiency of high-precision maps.

CN114782550BActive Publication Date: 2024-09-03AUTONAVI SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210443441.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2024-09-03
Estimated Expiration
2042-04-25

AI Technical Summary

Technical Problem

Traditional camera calibration methods are costly and inefficient in crowdsourcing scenarios, making it difficult to achieve rapid coverage and updates of high-precision maps. Especially due to the influence of vehicle windshield and equipment installation position errors, camera internal parameter calibration cannot be completed at the factory.

Method used

By collecting multiple frames of images in the high-precision map coverage area, a high-precision map image matching the image is obtained, the three-dimensional space points corresponding to the feature points in the image are determined, and the camera's internal parameters are constructed and solved by combining the camera's projection equation and initial internal parameter values. The optimization equation realizes the online self-calibration of the camera.

Benefits of technology

It achieves fast and accurate calibration of cameras, reduces calibration costs and time, improves the coverage and update efficiency of high-precision maps, and is suitable for widely distributed crowdsourcing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114782550B
    Figure CN114782550B
Patent Text Reader

Abstract

The disclosed embodiments disclose a camera calibration method, device, electronic device and program product. The method comprises: collecting multiple frames of images in a high-precision map coverage area through a camera; obtaining a high-precision map image matching the image for each frame of image; determining the three-dimensional space points corresponding to the feature points in the image according to the high-precision map image matching the image; determining the camera intrinsic parameters of the camera according to the feature points in the multiple frames of image, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial value of the intrinsic parameters of the camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of camera calibration, and in particular to a camera calibration method, device, electronic equipment and program product. Background Art

[0002] High-precision maps have played a key role in many fields such as autonomous driving and smart cities, and the current main method of collecting and updating high-precision maps still relies on laser collection vehicles. In order to solve the problems of collection capacity and real-time, low-cost visual update methods have entered the current research field. At present, many companies have carried out the work of building high-precision maps based on monocular vision, and crowdsourcing update services have also emerged, aiming to realize the construction and update of high-precision maps based on monocular vision, improve the coverage of high-precision maps, and shorten the update cycle of maps.

[0003] The vision-based reconstruction solution relies on the intrinsic calibration of the camera of the high-precision map acquisition equipment. The accuracy of the intrinsic calibration directly affects the accuracy of the high-precision map generated in the end. In addition, due to factors such as vehicle windshields, acquisition equipment manufacturing errors, and installation locations, it is impossible to calibrate the camera before leaving the factory. In crowdsourcing scenarios, cameras are distributed over a wide range. If the traditional offline calibration solution is used, the operator needs to carry calibration equipment (such as chessboards, QR code calibration plates, etc.) to calibrate each camera in the field. The calibration cost is high, the efficiency is low, and it is difficult to implement. Summary of the invention

[0004] In order to solve the problems in the related art, the embodiments of the present disclosure provide a camera calibration method, device, electronic device, medium and program product.

[0005] In a first aspect, an embodiment of the present disclosure provides a camera calibration method, including:

[0006] Use the camera to collect multiple frames of images in the area covered by the high-precision map;

[0007] For each frame of image, obtaining a high-precision map image matching the image;

[0008] Determining the three-dimensional space points corresponding to the feature points in the image according to the high-precision map image matched with the image;

[0009] The camera intrinsic parameters of the camera are determined according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial values ​​of the intrinsic parameters of the camera.

[0010] According to an embodiment of the present disclosure, the step of obtaining a high-precision map image matching the image includes:

[0011] Acquire a high-precision map image similar to the image, wherein the acquisition location of the high-precision map image is close to the acquisition location of the image; and / or

[0012] Acquire multiple high-precision map images that match the image.

[0013] According to an embodiment of the present disclosure, the acquiring of a high-precision map image similar to the image, wherein the collection location of the high-precision map image is close to the collection location of the image, includes: acquiring a high-precision map image similar to the image, wherein the collection location of the high-precision map image is close to the collection location of the image, according to the collection location of the image and / or through similar image retrieval.

[0014] According to an embodiment of the present disclosure, the step of determining the three-dimensional space point corresponding to the feature point in the image according to the high-precision map image matched with the image includes:

[0015] Acquire feature points having the same names as feature points in the image in a high-precision map image that matches the image;

[0016] The three-dimensional space point corresponding to the feature point with the same name is determined as the three-dimensional space point corresponding to the feature point in the image.

[0017] According to an embodiment of the present disclosure, the step of acquiring, in a high-precision map image matching the image, feature points of the same name as feature points in the image comprises:

[0018] Extracting a first set of feature points in the image and a second set of feature points in a high-precision map image matching the image;

[0019] Feature points with the same name as feature points in the image are obtained by performing feature matching between the first feature point set and the second feature point set.

[0020] According to an embodiment of the present disclosure, the step of determining the camera intrinsic parameters of the camera according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial value of the intrinsic parameters of the camera includes:

[0021] Constructing an optimization equation of the camera intrinsic parameters according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, and the projection equation of the camera;

[0022] Calculating the initial value of the camera's position and posture when acquiring the multiple frames of images according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, and the initial value of the camera's internal parameters;

[0023] Based on the initial value of the camera's intrinsic parameter and the initial value of the camera's posture when acquiring the multiple frames of images, the optimization equation of the camera's intrinsic parameter is solved to determine the camera's intrinsic parameter.

[0024] According to an embodiment of the present disclosure, the step of determining the camera intrinsic parameters of the camera according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial value of the intrinsic parameters of the camera includes:

[0025] Constructing an optimization equation for camera intrinsic parameters according to feature points in the multiple frames of images, three-dimensional space points corresponding to the feature points, a projection equation of the camera, and an observation quantity and an observation equation of a sensor fixedly connected to the camera;

[0026] Calculating the initial value of the camera's position and posture when acquiring the multiple frames of images according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, and the initial value of the camera's internal parameters;

[0027] Based on the initial value of the camera's intrinsic parameter and the initial value of the camera's posture when acquiring the multiple frames of images, the optimization equation of the camera's intrinsic parameter is solved to determine the camera's intrinsic parameter.

[0028] In a second aspect, a camera calibration device is provided in an embodiment of the present disclosure.

[0029] Specifically, the camera calibration device includes:

[0030] A collection module is configured to collect multiple frames of images in the high-precision map coverage area through a camera;

[0031] An acquisition module is configured to acquire, for each frame of image, a high-precision map image matching the image;

[0032] A first determination module is configured to determine a three-dimensional space point corresponding to a feature point in the image based on a high-precision map image matched with the image;

[0033] The second determination module is configured to determine the camera intrinsic parameters of the camera according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial value of the intrinsic parameters of the camera.

[0034] According to an embodiment of the present disclosure, the step of obtaining a high-precision map image matching the image includes:

[0035] Acquire a high-precision map image similar to the image, wherein the acquisition location of the high-precision map image is close to the acquisition location of the image; and / or

[0036] Acquire multiple high-precision map images that match the image.

[0037] According to an embodiment of the present disclosure, the step of obtaining a high-precision map image similar to the image, wherein the acquisition location of the high-precision map image is close to the acquisition location of the image, comprises: obtaining a high-precision map image similar to the image according to the acquisition location of the image and / or through similar image retrieval, wherein the acquisition location of the high-precision map image is close to the acquisition location of the image. According to an embodiment of the present disclosure, the step of determining the three-dimensional space point corresponding to the feature point in the image according to the high-precision map image matching the image comprises:

[0038] Acquire feature points having the same names as feature points in the image in a high-precision map image that matches the image;

[0039] The three-dimensional space point corresponding to the feature point with the same name is determined as the three-dimensional space point corresponding to the feature point in the image.

[0040] According to an embodiment of the present disclosure, the step of acquiring, in a high-precision map image matching the image, feature points of the same name as feature points in the image comprises:

[0041] Extracting a first set of feature points in the image and a second set of feature points in a high-precision map image matching the image;

[0042] Feature points with the same name as feature points in the image are obtained by performing feature matching between the first feature point set and the second feature point set.

[0043] According to an embodiment of the present disclosure, the step of determining the camera intrinsic parameters of the camera according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial value of the intrinsic parameters of the camera includes:

[0044] Constructing an optimization equation of the camera intrinsic parameters according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, and the projection equation of the camera;

[0045] Calculating the initial value of the camera's position and posture when acquiring the multiple frames of images according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, and the initial value of the camera's internal parameters;

[0046] Based on the initial value of the camera's intrinsic parameter and the initial value of the camera's posture when acquiring the multiple frames of images, the optimization equation of the camera's intrinsic parameter is solved to determine the camera's intrinsic parameter.

[0047] According to an embodiment of the present disclosure, the step of determining the camera intrinsic parameters of the camera according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial value of the intrinsic parameters of the camera includes:

[0048] Constructing an optimization equation for camera intrinsic parameters according to feature points in the multiple frames of images, three-dimensional space points corresponding to the feature points, a projection equation of the camera, and an observation quantity and an observation equation of a sensor fixedly connected to the camera;

[0049] Calculating the initial value of the camera's position and posture when acquiring the multiple frames of images according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, and the initial value of the camera's internal parameters;

[0050] Based on the initial value of the camera's intrinsic parameter and the initial value of the camera's posture when acquiring the multiple frames of images, the optimization equation of the camera's intrinsic parameter is solved to determine the camera's intrinsic parameter.

[0051] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, and wherein the one or more computer instructions are executed by the processor to implement a method as described in any one of the first aspects.

[0052] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the method described in any one of the first aspects is implemented.

[0053] In a fifth aspect, a computer program product is provided in an embodiment of the present disclosure, comprising computer instructions, which, when executed by a processor, implement the method steps described in any one of the first aspects.

[0054] According to the technical solution provided by the embodiment of the present disclosure, according to the embodiment of the present disclosure, the high-precision map contains both image information and accurate three-dimensional point cloud data, which can provide effective support data for the online self-calibration of the camera. When the camera is located in the area covered by the high-precision map, the association between the camera-collected image and the high-precision map image is realized based on the image information in the high-precision map, and the three-dimensional point cloud data of the high-precision map is combined to realize the rapid and accurate calibration of the camera.

[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0057] Figure 1 A flowchart of a camera calibration method according to an embodiment of the present disclosure is shown.

[0058] Figure 2 A principle flow chart of a camera calibration method according to an embodiment of the present disclosure is shown.

[0059] Figure 3 A structural block diagram of a camera calibration device according to an embodiment of the present disclosure is shown.

[0060] Figure 4 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0061] Figure 5 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0062] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0063] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.

[0064] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0065] In the present disclosure, the acquisition of user information or user data is an operation authorized and confirmed by the user, or actively selected by the user.

[0066] As mentioned above, high-precision maps have played a key role in many fields such as autonomous driving and smart cities, and the current main method of collecting and updating high-precision maps still relies on laser collection vehicles. In order to solve the problems of collection capacity and real-time, low-cost visual update methods have entered the current research field of vision. At present, many companies have carried out the work of building high-precision maps based on monocular vision, and crowdsourcing update services have also emerged, aiming to realize the construction and update of high-precision maps based on monocular vision, improve the coverage of high-precision maps, and shorten the update cycle of maps.

[0067] The vision-based reconstruction solution relies on the intrinsic calibration of the camera of the high-precision map acquisition equipment. The accuracy of the intrinsic calibration directly affects the accuracy of the high-precision map generated in the end. In addition, due to factors such as vehicle windshields, acquisition equipment manufacturing errors, and installation locations, it is impossible to calibrate the camera before leaving the factory. In crowdsourcing scenarios, cameras are distributed over a wide range. If the traditional offline calibration solution is used, the operator needs to carry calibration equipment (such as chessboards, QR code calibration plates, etc.) to calibrate each camera in the field. The calibration cost is high, the efficiency is low, and it is difficult to implement.

[0068] Online self-calibration does not require calibration equipment and can complete the online calibration of camera intrinsic parameters during the acquisition process. The online self-calibration solution based on SFM (Structure from Motion) has limitations on the accuracy of camera intrinsic calibration and is difficult to support high-precision reconstruction tasks.

[0069] The present disclosure provides a camera calibration method, comprising: collecting multiple frames of images {I′ in a high-precision map coverage area by a camera t} t=0,1,…,T , where I′ t Represents the t-th frame image, T>1; for each frame image I′ t , get the image I′ t Matching high-precision map image I n ; According to the image I′ t Matching high-precision map image I n , determine the image I′ t The feature points in The corresponding three-dimensional space point According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera and the initial value of the intrinsic parameters of the camera A camera intrinsic parameter K of the camera is determined.

[0070] According to the embodiments of the present disclosure, the high-precision map contains both image information and accurate three-dimensional point cloud data, which can provide effective support data for the online self-calibration of the camera. When the camera is located in the area covered by the high-precision map, the image captured by the camera is associated with the high-precision map image based on the image information in the high-precision map, and the three-dimensional point cloud data of the high-precision map is combined to achieve fast and accurate calibration of the camera.

[0071] Figure 1 A flowchart of a camera calibration method according to an embodiment of the present disclosure is shown.

[0072] like Figure 1As shown, the camera calibration method includes the following steps S101-S104:

[0073] In step S101, a camera is used to collect multiple frames of images in the area covered by the high-precision map;

[0074] In step S102, for each frame of image, a high-precision map image matching the image is obtained;

[0075] In step S103, based on the high-precision map image matched with the image, the three-dimensional space point corresponding to the feature point in the image is determined;

[0076] In step S104, the camera intrinsic parameters of the camera are determined according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial values ​​of the intrinsic parameters of the camera.

[0077] According to an embodiment of the present disclosure, a camera is used to collect multiple frames of images in the area covered by the high-precision map. For example, a camera is used to collect multiple frames of images in the area covered by the high-precision map. t} t=0,1,…,T , where I′ t represents the t-th frame image, T>1. For each frame image, obtain a high-precision map image matching the image, for example, for each frame image I′ t , get the image I′ t Matching high-precision map image I n According to the high-precision map image matching the image, the three-dimensional space point corresponding to the feature point in the image is determined, for example, according to the high-precision map image matching the image I′ t Matching high-precision map image I n , determine the image I′ t The feature points in The corresponding three-dimensional space point According to the feature points in the multi-frame images, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial value of the internal parameters of the camera, the camera internal parameters of the camera are determined, for example, according to the multi-frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera and the initial value of the intrinsic parameters of the camera A camera intrinsic parameter K of the camera is determined.

[0078] According to an embodiment of the present disclosure, the camera to be calibrated may be a monocular RGB camera. The camera collects multiple frames of images in the area covered by the high-precision map, such as continuous T frames of images. The image set is represented by {I′ t}t=0,1,…,T Indicates that I′ t Represents the t-th frame image, T>1.

[0079] The high-precision map data of the high-precision map coverage area includes a high-precision map image {I n} and 3D point cloud data {x i}, where n is the index number of the image data in the high-precision map data, Represents a point in three-dimensional Euclidean space. A high-precision map should also include the mapping relationship between the pixel points in the high-precision map image and the three-dimensional space points. The mapping can be done by a pixel coordinate on the nth high-precision map image. Find the corresponding 3D point in 3D space In practice, this mapping relationship can be obtained through various methods such as camera extrinsic calibration and point map registration during high-precision map production.

[0080] According to an embodiment of the present disclosure, the acquisition and the image I′ t Matching high-precision map image I n , including obtaining the image I′ t Similar high-precision map image I n , and the high-precision map image I n The collection location and the image I′ t The acquisition location is close to the image I′ t Matching high-precision map image I n , including obtaining the image I′ t Matching multiple high-precision map images Among them I n Represents the image I′ t Matching high-precision map image collection The nth high-precision map image in .

[0081] According to an embodiment of the present disclosure, the acquisition and the image I′ t Similar high-precision map image I n , and the high-precision map image I n The collection location and the image I′ t The collection location is close to, including according to the image I' t The collection location and / or through similar image retrieval, obtain the image I′ t Similar high-precision map image I n , and the high-precision map image I n The collection location and the image I′ t The collection location is close.

[0082] According to an embodiment of the present disclosure, each frame image I′ t There will be multiple similar high-precision map images, for example, image I′ collected on the same short section of road t It is similar to the high-precision map image and its acquisition location is close. The image content is roughly the same, and the screen difference is not big. Multiple identical feature points can be extracted. t and the location information of the collection location of the high-precision map image, such as the global positioning system (GPS) location information, or by similar image retrieval, etc., it is possible to obtain the image I′ t Matching high-precision map image I n .

[0083] According to an embodiment of the present disclosure, the basis and the image I' t Matching high-precision map image I n , determine the image I′ t The feature points in The corresponding three-dimensional space point Including: in the image I′ t Matching high-precision map image I n The image I′ is obtained from t The feature points in The feature points with the same name The feature point with the same name The corresponding three-dimensional space point Determined as feature points in the image The corresponding three-dimensional space point

[0084] According to an embodiment of the present disclosure, the image I′ t Matching high-precision map image I n The image I′ is obtained from t The feature points in The feature points with the same name Comprising: extracting the image I' t The first feature point set in the image I′ t Matching high-precision map image I n The image I′ is obtained by matching the first feature point set with the second feature point set. t The feature points in The feature points with the same name

[0085] According to the embodiments of the present disclosure, feature points of types such as SIFT, ORB, R2D2, etc. may be used. The present disclosure does not limit the types of feature points. For example, SuperPoint feature points may be used, and the corresponding description dimension d=256.

[0086] When extracting the image I′ t The first feature point set in the image I′ t Matching high-precision map image I n After the second feature point set in the image is obtained, the image I′ is obtained by matching the first feature point set with the second feature point set. t and the image I′ t Matching high-precision map image I n The set of feature points with the same name Mn is the image I' t and the image I′ t Matching high-precision map image I n Based on the mapping relationship Ξ in the high-precision map, the image I′ can be obtained. t Matching results with 3D spatial points in high-precision maps

[0087] According to an embodiment of the present disclosure, the multi-frame image {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera and the initial value of the intrinsic parameters of the camera Determining the camera intrinsic parameter K of the camera includes: according to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The camera projection equation is used to construct the optimization equation of the camera internal parameters; according to the multi-frame image {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The initial value of the camera's internal parameters Calculate and collect the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose is Based on the initial value of the camera's internal parameters and collecting the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose is The optimization equation of the camera intrinsic parameter is solved to determine the camera intrinsic parameter K of the camera.

[0088] According to an embodiment of the present disclosure, the optimization equation may be, for example, the following formula (1):

[0089]

[0090] in, is the position coordinate of the i-th feature point in the t-th frame image, is with The corresponding three-dimensional space position point position coordinates, Tt is the camera pose when capturing the t-th frame image, K is the camera's internal parameter, K * is the optimal solution of the camera internal parameters, {T t} * is the optimal solution for the camera pose. is the projection equation of the camera. The camera model may be a pinehole model or a fisheye model according to the actual situation, and the present disclosure does not make any specific limitation on this. To represent the projection process of the camera, when the intrinsic parameter K is known, the projection equation can map a three-dimensional space point to a two-dimensional image space, that is,

[0091] When solving the optimization equation, the camera's initial intrinsic parameter values ​​and initial pose values ​​are required. There are many ways to obtain the initial intrinsic parameter values, such as factory parameters, calibration results of the same model camera, SFM online calibration results, etc. The matching results and the initial values ​​of the camera internal parameters can be used to collect each frame of image I′ based on the PnP algorithm. t The initial value of the camera's pose at get The PnP algorithm refers to an algorithm that uses multiple pairs of 3D and 2D matching points to solve the camera extrinsic parameters by minimizing the reprojection error when the camera intrinsic parameters are known or unknown.

[0092] Then, the optimization equation (1) of the camera intrinsic parameters is solved by an unconstrained linear optimization problem (for example, using the Levenberg-Marquardt algorithm). The initial values ​​of the camera intrinsic parameters and the position and posture in the optimization solution iteration are respectively: and Finally, the optimal solution K of the camera internal parameters is obtained * , complete the online self-calibration of the camera's intrinsic parameters.

[0093] According to an embodiment of the present disclosure, wherein, according to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera and the initial value of the intrinsic parameters of the camera Determining the camera intrinsic parameter K of the camera includes: according to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The camera projection equation, the observation quantity and observation equation of the sensor fixedly connected to the camera, construct the optimization equation of the camera internal parameter; according to the multi-frame image {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The initial value of the camera's internal parameters Calculate and collect the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose is Based on the initial value of the camera's internal parameters and collecting the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose is The optimization equation of the camera intrinsic parameter is solved to determine the camera intrinsic parameter K of the camera.

[0094] According to an embodiment of the present disclosure, the optimization equation may also be, for example, the following formula (2):

[0095]

[0096] Z k (K,{T t},{I′ t},{I n})‖ 2 ) (2)

[0097] Among them, Z k is the corresponding observation z k The acquisition device may include a sensor fixedly connected to the camera, such as one or more of a velocity sensor, an acceleration sensor, and a positioning sensor. Specifically, the sensor may include an inertial measurement unit (IMU) and a global positioning system (GPS) unit. The observations of these sensors can be expressed as {z k} k=0,1,…,E It means that E is the number of observations.

[0098] The parameters in formula (2) that are the same as those in formula (1) have the same physical meanings as those in formula (1), and their description is omitted here.

[0099] The optimization equation (2) of the camera intrinsic parameters is solved by an unconstrained linear optimization problem (for example, using the Levenberg-Marquardt algorithm). The initial values ​​of the camera intrinsic parameters and the position and posture in the optimization solution iteration are respectively and Finally, the optimal solution K of the camera internal parameters is obtained * , complete the online self-calibration of the camera's intrinsic parameters.

[0100] By introducing sensor observations into the optimization equation, the accuracy of the camera calibration results can be further improved.

[0101] Figure 2 A principle flow chart of a camera calibration method according to an embodiment of the present disclosure is shown.

[0102] like Figure 2 As shown, in step S1, the image set {I′ t} t=0,1,…,T And the initial value of the camera internal parameters Get other constraint data k} k=0,1,…,E , obtain high-precision map image data {I n}、3D space point data {x i}、Mapping relationship

[0103] In step S2, the image captured by the camera is matched with the high-precision map image for feature matching and feature point extraction to obtain a set of feature points with the same name.

[0104] In step S3, the image I′ can be obtained according to the mapping relationship Ξ in the high-precision map. t Matching results with 3D spatial points in high-precision maps

[0105] In step S4, the initial value of the camera's posture is solved based on the PnP algorithm

[0106] In step S5, the maximum a posteriori estimation optimization equation (Formula (1) or Formula (2)) is constructed.

[0107] In step S6, solve the unconstrained nonlinear optimization problem and obtain the self-calibration result K * .

[0108] Figure 3 The structural block diagram of the camera calibration device according to the embodiment of the present disclosure is shown. The device can be implemented as part or all of the electronic device through software, hardware or a combination of both.

[0109] like Figure 3As shown, the camera calibration device 300 includes a collection module 310 , an acquisition module 320 , a first determination module 330 , and a second determination module 340 .

[0110] The acquisition module 310 acquires multiple frames of images in the high-precision map coverage area through a camera;

[0111] The acquisition module 320 acquires a high-precision map image matching the image for each frame of the image;

[0112] The first determination module 330 determines the three-dimensional space point corresponding to the feature point in the image according to the high-precision map image matched with the image;

[0113] The second determination module 340 determines the camera intrinsic parameters of the camera according to the feature points in the multiple frames of images, the three-dimensional space points corresponding to the feature points, the projection equation of the camera, and the initial values ​​of the intrinsic parameters of the camera.

[0114] According to an embodiment of the present disclosure, the acquisition and the image I′ t Matching high-precision map image I n , including obtaining the image I′ t Matching high-precision map image I n , and the high-precision map image I n The collection location and the image I′ t near the collection site; and / or

[0115] Get the image I′ t Matching multiple high-precision map images Among them I n Represents the image I′ t Matching high-precision map image collection The nth high-precision map image in .

[0116] According to an embodiment of the present disclosure, the acquisition and the image I′ t Similar high-precision map image I n , and the high-precision map image I n The collection location and the image I′ t The collection location is close to, including according to the image I' t The collection location and / or through similar image retrieval, obtain the image I′ t Similar high-precision map image I n , and the high-precision map image I n The collection location and the image I′ t The collection location is close.

[0117] According to an embodiment of the present disclosure, the method according to the image I′ t Matching high-precision map image I n , determine the image I′ t The feature points in The corresponding three-dimensional space point include:

[0118] In the image I′ t Matching high-precision map image I n The image I′ is obtained from t The feature points in The feature points with the same name

[0119] The feature point with the same name The corresponding three-dimensional space point Determined as feature points in the image The corresponding three-dimensional space point

[0120] According to an embodiment of the present disclosure, wherein the t Matching high-precision map image I n The image I′ is obtained from t The feature points in The feature points with the same name include:

[0121] Extract the image I' t The first feature point set in the image I′ t Matching high-precision map image I n The second feature point set in ;

[0122] The image I′ is obtained by performing feature matching between the first feature point set and the second feature point set. t The feature points in The feature points with the same name

[0123] According to an embodiment of the present disclosure, wherein, according to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera and the initial value of the intrinsic parameters of the camera Determining the camera intrinsic parameter K of the camera includes:

[0124] According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera is used to construct the optimization equation of the camera internal parameters;

[0125] According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The initial value of the camera's internal parameters Calculate and collect the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose is

[0126] Based on the initial value of the camera's internal parameters and collecting the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose at The optimization equation of the camera intrinsic parameter is solved to determine the camera intrinsic parameter K of the camera.

[0127] According to an embodiment of the present disclosure, wherein, according to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera and the initial value of the intrinsic parameters of the camera Determining the camera intrinsic parameter K of the camera includes:

[0128] According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera, the observed quantity and observation equation of the sensor fixedly connected to the camera, and the optimization equation of the camera internal parameters are constructed;

[0129] According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The initial value of the camera's internal parameters Calculate and collect the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose at

[0130] Based on the initial value of the camera's internal parameters and collecting the multiple frames of images {I′ t} t=0,1,…,TThe initial value of the camera's pose at The optimization equation of the camera intrinsic parameter is solved to determine the camera intrinsic parameter K of the camera.

[0131] The present disclosure also discloses an electronic device, Figure 4 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0132] like Figure 4 As shown, the electronic device 400 includes a memory 401 and a processor 402, wherein the memory 401 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 402 to implement the method according to the embodiment of the present disclosure. According to the embodiment of the present disclosure, the electronic device 400 can be a high-precision map acquisition device or a mobile terminal with a camera, or a server host or a cloud server that communicates with the high-precision map acquisition device.

[0133] The present disclosure provides a camera calibration method, including:

[0134] The camera collects multiple frames of images {I′ t} t=0,1,…,T , where I′ t represents the t-th frame image, T>1;

[0135] For each frame image I′ t , get the image I′ t Matching high-precision map image I n ;

[0136] According to the image I' t Matching high-precision map image I n , determine the image I′ t The feature points in The corresponding three-dimensional space point

[0137] According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera and the initial value of the intrinsic parameters of the camera A camera intrinsic parameter K of the camera is determined.

[0138] According to an embodiment of the present disclosure, the acquisition and the image I′ t Matching high-precision map image I n , including obtaining the image I′ t Matching high-precision map image I n, and the high-precision map image I n The collection location and the image I′ t near the collection site; and / or

[0139] Get the image I′ t Matching multiple high-precision map images Among them I n Represents the image I′ t Matching high-precision map image collection The nth high-precision map image in .

[0140] According to an embodiment of the present disclosure, the acquisition and the image I′ t Similar high-precision map image I n , and the high-precision map image I n The collection location and the image I′ t The collection location is close to, including according to the image I' t The collection location and / or through similar image retrieval, obtain the image I′ t Similar high-precision map image I n , and the high-precision map image I n The collection location and the image I′ t The collection location is close.

[0141] According to an embodiment of the present disclosure, the method according to the image I′ t Matching high-precision map image I n , determine the image I′ t The feature points in The corresponding three-dimensional space point include:

[0142] In the image I′ t Matching high-precision map image I n The image I′ is obtained from t The feature points in The feature points with the same name

[0143] The feature point with the same name The corresponding three-dimensional space point Determined as feature points in the image The corresponding three-dimensional space point

[0144] According to an embodiment of the present disclosure, wherein the t Matching high-precision map image I n The image I′ is obtained fromt The feature points in The feature points with the same name include:

[0145] Extract the image I' t The first feature point set in the image I′ t Matching high-precision map image I n The second feature point set in ;

[0146] The image I′ is obtained by performing feature matching between the first feature point set and the second feature point set. t The feature points in The feature points with the same name

[0147] According to an embodiment of the present disclosure, wherein, according to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera and the initial value of the intrinsic parameters of the camera Determining the camera intrinsic parameter K of the camera includes:

[0148] According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera is used to construct the optimization equation of the camera internal parameters;

[0149] According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The initial value of the camera's internal parameters Calculate and collect the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose is

[0150] Based on the initial value of the camera's internal parameters and collecting the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose is The optimization equation of the camera intrinsic parameter is solved to determine the camera intrinsic parameter K of the camera.

[0151] According to an embodiment of the present disclosure, wherein, according to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera and the initial value of the intrinsic parameters of the camera Determining the camera intrinsic parameter K of the camera includes:

[0152] According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The projection equation of the camera, the observed quantity and observation equation of the sensor fixedly connected to the camera, and the optimization equation of the camera internal parameters are constructed;

[0153] According to the multiple frame images {I′ t} t=0,1,…,T The feature points in The three-dimensional space point corresponding to the feature point The initial value of the camera's internal parameters Calculate and collect the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose at

[0154] Based on the initial value of the camera's internal parameters and collecting the multiple frames of images {I′ t} t=0,1,…,T The initial value of the camera's pose at The optimization equation of the camera intrinsic parameter is solved to determine the camera intrinsic parameter K of the camera.

[0155] Figure 5 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown.

[0156] like Figure 5 As shown, the computer system 500 includes a processing unit 501, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The processing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0157] The following components are connected to the I / O interface 505: an input part 506 including a keyboard, a mouse, etc.; an output part 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part 508 including a hard disk, etc.; and a communication part 509 including a network interface card such as a LAN card, a modem, etc. The communication part 509 performs communication processing via a network such as the Internet. The drive 510 is also connected to the I / O interface 505 as needed. Removable media 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive 510 as needed, so that the computer program read therefrom is installed into the storage part 508 as needed. Among them, the processing unit 501 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.

[0158] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes computer instructions, and the computer instructions are executed by a processor to implement the method steps described above. In such an embodiment, the computer program product can be downloaded and installed from a network through the communication part 509, and / or installed from a removable medium 511.

[0159] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0160] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0161] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.

[0162] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A camera calibration method, comprising: Collect multiple frames of camera images in the area covered by the high-precision map through the camera; For each frame of camera image, obtaining a high-precision map image matching the camera image; Determine the three-dimensional space point corresponding to the feature point in the camera image according to the high-precision map image matched with the camera image; the high-precision map data of the area covered by the high-precision map includes the high-precision map image, the three-dimensional point cloud data, and the mapping relationship between the pixel points in the high-precision map image and the three-dimensional space points in the three-dimensional point cloud data; Constructing an optimization equation for camera intrinsic parameters according to feature points in the multi-frame camera images, three-dimensional space points corresponding to the feature points, a projection equation of the camera, and an error between an observed value of a sensor fixedly connected to the camera and an observation equation; Calculate the initial value of the camera's position and posture when acquiring the multiple frames of camera images according to the feature points in the multiple frames of camera images, the three-dimensional space points corresponding to the feature points, and the initial value of the camera's internal parameters; Based on the initial value of the camera's intrinsic parameter and the initial value of the camera's posture when acquiring the multiple frames of camera images, the optimization equation of the camera's intrinsic parameter is solved to determine the camera's intrinsic parameter.

2. The method according to claim 1, wherein: The obtaining of a high-precision map image matching the camera image comprises: Acquire a high-precision map image similar to the camera image, wherein the acquisition location of the high-precision map image is close to the acquisition location of the camera image; and / or Acquire multiple high-precision map images that match the camera image.

3. The method according to claim 2, wherein: The acquiring of a high-precision map image similar to the camera image, wherein a location where the high-precision map image is collected is close to a location where the camera image is collected, comprises: According to the acquisition location of the camera image and / or through similar image retrieval, a high-precision map image similar to the camera image is acquired, and the acquisition location of the high-precision map image is close to the acquisition location of the camera image.

4. The method according to claim 1, wherein: The step of determining the three-dimensional space point corresponding to the feature point in the camera image according to the high-precision map image matched with the camera image comprises: Acquire feature points having the same names as feature points in the camera image in a high-precision map image that matches the camera image; The three-dimensional space point corresponding to the feature point with the same name is determined as the three-dimensional space point corresponding to the feature point in the camera image.

5. The method according to claim 4, wherein: The step of acquiring, in a high-precision map image that matches the camera image, feature points having the same name as feature points in the camera image comprises: Extracting a first set of feature points in the camera image and a second set of feature points in a high-precision map image that matches the camera image; Feature points with the same name as the feature points in the camera image are obtained by performing feature matching between the first feature point set and the second feature point set.

6. A camera calibration device, comprising: A collection module is configured to collect multiple frames of camera images in the high-precision map coverage area through a camera; An acquisition module is configured to acquire, for each frame of camera image, a high-precision map image that matches the camera image; A first determination module is configured to determine the three-dimensional space point corresponding to the feature point in the camera image according to the high-precision map image matched with the camera image; the high-precision map data of the high-precision map coverage area includes the high-precision map image, the three-dimensional point cloud data, and the mapping relationship between the pixel points in the high-precision map image and the three-dimensional space points in the three-dimensional point cloud data; A second determination module is configured to construct an optimization equation for camera intrinsic parameters according to feature points in the multi-frame camera images, three-dimensional space points corresponding to the feature points, a projection equation of the camera, and an error between an observed value of a sensor fixedly connected to the camera and an observation equation; Calculate the initial value of the camera's position and posture when acquiring the multiple frames of camera images according to the feature points in the multiple frames of camera images, the three-dimensional space points corresponding to the feature points, and the initial value of the camera's internal parameters; Based on the initial value of the camera's intrinsic parameter and the initial value of the camera's posture when acquiring the multiple frames of camera images, the optimization equation of the camera's intrinsic parameter is solved to determine the camera's intrinsic parameter.

7. An electronic device comprising a memory and a processor; wherein: The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to any one of claims 1 to 5.

8. A computer program product, comprising computer instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 5.