Image position calibration method, device and electronic device based on depth estimation

The depth change extreme point information of the ground and image quality detection are obtained through the depth estimation network, and combined with the triangulation algorithm and verification point verification, the error problem of the traditional image position calibration method in complex scenes is solved, and the accuracy of the calibration results is improved. properties and application scenarios.

CN118298031BActive Publication Date: 2024-10-01齐鲁空天信息研究院
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410726085.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-10-01
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

The traditional image position calibration method has large errors in the calibration results when the calibration surface has large height changes, and the accuracy is low when environmental conditions such as lighting change.

Method used

Using a method based on depth estimation, the depth change extreme point information of the ground is obtained through the depth estimation network, a planar triangular grid is constructed and the calibration points are determined, and the accuracy of the calibration results is improved by combining image quality detection and verification point verification.

Benefits of technology

It achieves accurate calibration point determination under complex nonlinear changing scenarios, broadens the application scenarios of position calibration, and improves the accuracy of calibration results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118298031B_ABST
    Figure CN118298031B_ABST
Patent Text Reader

Abstract

The present invention provides an image position calibration method, device, and electronic device based on depth estimation, which relates to the general field of image data processing or generation technology, including: obtaining a ground image to be detected taken by a camera device; performing depth estimation processing on the ground image to be detected to obtain depth change extreme point information of the ground corresponding to the ground image to be detected, wherein the depth change extreme point information includes three-dimensional coordinates corresponding to multiple depth change extreme points; and determining the calibration points of the ground image to be detected based on the depth change extreme point information. This method introduces ground depth changes into position calibration, and can accurately determine calibration points when there are complex nonlinear changes on the ground, effectively broadening the application scenarios of position calibration and improving the accuracy of calibration results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the general field of image data processing or generation technology, and in particular to an image position calibration method, device, and electronic device based on depth estimation. Background Art

[0002] Image position calibration is an important step in computer vision, and its purpose is to establish the relationship between the image pixel position and the scene point position. This calibration usually involves solving the camera's internal and external parameter matrix and calculating the distortion parameters. Through image position calibration, lens distortion can be corrected, a corrected image can be generated, and a 3D object can be reconstructed based on the obtained image.

[0003] Image position calibration is an important part of computer vision. It provides a basis for understanding and processing images. Through accurate calibration, the accuracy and efficiency of subsequent visual tasks can be improved. However, traditional image position calibration methods usually assume that the calibration surface is a plane model for calculation. When there is a significant height change on the calibration surface, there will be a large error in the calibration result. And when environmental conditions such as lighting change, the accuracy of image position calibration is usually low. Summary of the invention

[0004] The present invention provides an image position calibration method, device, and electronic device based on depth estimation, which are used to solve the defect of the prior art that there are large errors when performing position calibration, and realize accurate determination of calibration points when there are complex nonlinear changes on the ground, effectively broadening the application scenarios of position calibration and improving the technical effect of the accuracy of calibration results.

[0005] The present invention provides an image position calibration method based on depth estimation, comprising the following steps.

[0006] Acquire the ground image to be detected taken by the camera device;

[0007] Performing depth estimation processing on the ground image to be detected to obtain depth change extreme value point information of the ground corresponding to the ground image to be detected, wherein the depth change extreme value point information includes three-dimensional coordinates corresponding to a plurality of depth change extreme value points;

[0008] The calibration points of the ground image to be detected are determined based on the depth change extreme point information.

[0009] According to an image position calibration method based on depth estimation provided by the present invention, the depth estimation processing is performed on the ground image to be detected to obtain the depth change extreme point information of the ground corresponding to the ground image to be detected, including:

[0010] Inputting the ground image to be detected into a preset monocular depth estimation network to obtain depth data, wherein the depth data is used to indicate the distance between the ground corresponding to the ground image to be detected and the camera device;

[0011] Preprocessing the depth data to obtain an envelope surface of a depth surface corresponding to the ground;

[0012] The envelope surface of the depth surface is subjected to extreme value search processing through a preset sliding window to obtain the extreme value point information of the depth change.

[0013] According to an image position calibration method based on depth estimation provided by the present invention, the preprocessing of the depth data to obtain an envelope surface of the depth surface corresponding to the ground includes:

[0014] Performing smoothing filtering on the depth data to obtain filtered depth data;

[0015] The filtered depth data is interpolated by at least one B-spline surface fitting to obtain an envelope surface of the depth surface.

[0016] According to a method for image position calibration based on depth estimation provided by the present invention, the method for determining the calibration points of the ground image to be detected based on the extreme point information of the depth change includes:

[0017] The following processing is performed iteratively:

[0018] Constructing a plane triangular mesh according to the three-dimensional coordinates corresponding to the plurality of depth change extreme value points through a triangulation algorithm;

[0019] Calculating the area of ​​each triangle in the plane triangular mesh, and when the area of ​​the triangle is less than an area threshold, merging three vertices of the triangle into one point;

[0020] The fused point is used as the extreme point of depth change;

[0021] When the area of ​​each triangle in the planar triangular mesh is greater than or equal to the area threshold, the iterative process is stopped, and the extreme depth change point after the iteration is used as the calibration point.

[0022] According to a method for image position calibration based on depth estimation provided by the present invention, the method of obtaining a ground image to be detected taken by a camera device comprises:

[0023] The following processing is performed iteratively:

[0024] Acquire the original ground image captured by the camera device;

[0025] Detecting the quality of the original ground image by using an image quality detection algorithm to obtain an image quality score;

[0026] When the image quality score does not meet a preset condition, acquiring a new original ground image;

[0027] When the image quality score reaches a preset condition, the iterative process is stopped, and the original ground image is used as the ground image to be detected.

[0028] According to a method for calibrating an image position based on depth estimation provided by the present invention, the image quality score includes a picture illumination score and a picture blur score, the preset condition includes that the picture illumination score is less than a first score threshold, and the picture blur score is greater than a second score threshold; the quality of the original ground image is detected by an image quality detection algorithm to obtain the image quality score, including:

[0029] Calculating the contrast and white balance of the original ground image, and determining a picture illumination score of the original ground image based on the contrast and the white balance;

[0030] The image blur score of the original ground image is calculated by Laplace variance and discrete cosine transform method.

[0031] According to a method for image position calibration based on depth estimation provided by the present invention, the method further includes:

[0032] Randomly selecting a plurality of verification points in the ground image to be detected, and determining the position information of each verification point;

[0033] Determine a calibration matrix based on the calibration points of the ground image to be detected;

[0034] Calculating coordinate deviations of the plurality of verification points in the calibration matrix;

[0035] When the coordinate deviation is greater than the deviation threshold, re-calibrate the position;

[0036] When the coordinate deviation is less than or equal to the deviation threshold, the terminal placement position is determined according to the calibration point.

[0037] The present invention also provides an image position calibration device based on depth estimation, comprising the following modules:

[0038] An image acquisition module is used to acquire the ground image to be detected taken by the camera device;

[0039] A depth estimation module is used to perform depth estimation processing on the ground image to be detected to obtain depth change extreme point information of the ground corresponding to the ground image to be detected, wherein the depth change extreme point information includes three-dimensional coordinates corresponding to multiple depth change extreme points;

[0040] A calibration point determination module is used to determine the calibration points of the ground image to be detected based on the depth change extreme point information.

[0041] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an image position calibration method based on depth estimation as described above is implemented.

[0042] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the image position calibration method based on depth estimation as described in any one of the above is implemented.

[0043] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the image position calibration method based on depth estimation as described above is implemented.

[0044] The image position calibration method based on depth estimation provided by the present invention first performs depth estimation processing on the ground image to be detected to obtain the depth change extreme point information of the ground corresponding to the ground image to be detected, and then determines the calibration points of the ground image to be detected based on the depth change extreme point information. By introducing the ground depth change into the position calibration, the calibration points can be accurately determined when there are complex nonlinear changes in the ground, which effectively broadens the application scenarios of position calibration and improves the accuracy of the calibration results. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 This is one of the flow charts of the image position calibration method based on depth estimation provided by the present invention.

[0047] Figure 2 It is a schematic diagram of the process of selecting and determining the calibration points provided by the present invention.

[0048] Figure 3This is the second flow chart of the image position calibration method based on depth estimation provided by the present invention.

[0049] Figure 4 It is a schematic diagram of the operation flow of the display device provided by the present invention.

[0050] Figure 5 It is a structural schematic diagram of an image position calibration device based on depth estimation provided by the present invention.

[0051] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] Figure 1 is one of the flow charts of the image position calibration method based on depth estimation provided by the present invention, such as Figure 1 As shown, the method includes the following:

[0054] Step 101: Acquire a ground image to be detected taken by a camera device.

[0055] Specifically, in the embodiment of the present application, the camera device is the camera device to be calibrated, which can be a professional device such as a camera, a video camera, a surveillance camera, or a smart terminal device such as a mobile phone, a tablet, or a watch. The ground image to be detected can be obtained by real-time shooting of the camera device, or can be captured from a video shot by the camera device. For example, the video stream address of the camera device can be obtained by obtaining a streaming media server interface, and then the image data can be captured and decoded from the video stream by video processing software (FastForward Moving Picture Experts Group, FFmpeg) to obtain the real-time picture shot by the camera device as the ground image to be detected.

[0056] In some embodiments, obtaining a ground image to be detected taken by a camera device includes:

[0057] The following processing is iteratively performed: obtaining an original ground image taken by the camera device; detecting the quality of the original ground image through an image quality detection algorithm to obtain an image quality score; when the image quality score does not meet a preset condition, obtaining a new original ground image; when the image quality score meets a preset condition, stopping the iterative processing, and using the original ground image as the ground image to be detected.

[0058] Since the present invention mainly processes ground images taken by a camera device, it has high requirements on the quality of the image. For example, illumination and ground texture will affect the image quality, thereby causing changes in image feature information and affecting the image processing result. The present invention first obtains the original ground image taken by the camera device. The acquisition method of the original ground image is the same as the acquisition method of the ground image to be detected, which will not be repeated here; then the quality of the original ground image is detected by an image quality detection algorithm to obtain an image quality score. The image quality detection algorithm can be an image quality evaluation algorithm based on a reference image, an image quality evaluation algorithm based on a human visual system, an image quality evaluation algorithm based on statistical characteristics, etc. The image quality score obtained by the image quality detection algorithm is compared with a preset score threshold to determine whether the original ground image meets the quality requirements; when the quality score is less than the score threshold, a new original ground image is obtained; when the quality score is greater than or equal to the score threshold, the iterative processing is stopped, and the original ground image is used as the ground image to be detected, and the subsequent depth estimation processing and calibration point determination processing steps are continued.

[0059] In an embodiment of the present application, the quality score of the original ground image is evaluated through an image quality detection algorithm to screen out the original ground image that meets the quality requirements as the ground image to be detected. This can effectively reduce the impact of changes in related environments such as lighting conditions or ground texture on the depth estimation results and the accuracy of variable point selection results, thereby achieving accurate determination of the optimal calibration point.

[0060] In some embodiments, the image quality score includes a picture illumination score and a picture blur score, and the preset conditions include that the picture illumination score is less than a first score threshold, and the picture blur score is greater than a second score threshold; the quality of the original ground image is detected by an image quality detection algorithm to obtain an image quality score, including: calculating the contrast and white balance of the original ground image, and determining the picture illumination score of the original ground image based on the contrast and the white balance; calculating the picture blur score of the original ground image by Laplace variance and discrete cosine transform method.

[0061] It should be noted that there is no order of precedence for calculating the picture illumination score and the picture blur score, and the calculation order is arbitrary.

[0062] Specifically, in the embodiment of the present invention, the image quality detection algorithm mainly scores the quality of the original ground image based on the dimensions of the original ground image such as the picture illumination, picture blur, and the presence or absence of abnormal imaging. Use contrast , White Balance Two evaluation indicators are calculated jointly, contrast The calculation formula is as follows:

[0063]

[0064]

[0065] in, represents the average gray value of the image, is the number of pixels in the grayscale image, is the grayscale image after two-dimensional expansion Gray value.

[0066] White Balance The calculation formula is as follows:

[0067]

[0068]

[0069] in, is the number of pixels in the brightness image, is the average brightness value after two-dimensional expansion of the brightness image, is the brightness image after two-dimensional expansion Brightness value.

[0070] Screen Lighting Score The calculation formula is as follows:

[0071]

[0072] In some embodiments, the image blur of the original ground image is calculated by Laplace variance and discrete cosine transform Calculation, in order to unify the value range, the value range of the intermediate variables of the two is normalized to 0 to 255, the image blur score The calculation formula is as follows:

[0073]

[0074] When the picture illumination score and the picture blur score are respectively greater than the preset score threshold, or the weighted sum of the picture illumination score and the picture blur score is greater than the preset score threshold, the original ground image is considered to meet the image quality requirements and the original ground image is used as the ground image to be detected. Otherwise, the quality score of the next original ground image is calculated. For example, when <80, When >0.86, the image is considered to meet the quality requirements.

[0075] In an embodiment of the present application, the quality score of the original ground image is evaluated through an image quality detection algorithm to screen out the original ground image that meets the quality requirements as the ground image to be detected. This can effectively reduce the impact of changes in related environments such as lighting conditions or ground texture on the depth estimation results and the accuracy of variable point selection results, thereby achieving accurate determination of the optimal calibration point.

[0076] Step 102: perform depth estimation processing on the ground image to be detected to obtain extreme point information of depth change of the ground corresponding to the ground image to be detected.

[0077] In some embodiments, the depth change extreme point information includes three-dimensional coordinates corresponding to multiple depth change extreme points. The depth estimation process is performed on the ground image to be detected to obtain the depth change extreme point information of the ground corresponding to the ground image to be detected, including: inputting the ground image to be detected into a preset monocular depth estimation network to obtain depth data, wherein the depth data is used to indicate the distance between the ground corresponding to the ground image to be detected and the camera device; preprocessing the depth data to obtain the envelope of the depth surface corresponding to the ground; performing extreme value search processing on the envelope of the depth surface through a preset sliding window to obtain the depth change extreme point information.

[0078] In some embodiments, since the calibration scene is complex and changeable and the depth estimation in the present invention only needs to calculate the relative distance between the camera device and the ground corresponding to the ground image to be detected, the depth estimation module can use a self-supervised or unsupervised monocular depth estimation network to collect the distance changes between the camera device and the ground, such as the Monodepth2 model, to obtain ground depth data, that is, data used to indicate the distance between the ground corresponding to the ground image to be detected and the camera device; then the depth data is preprocessed, that is, the depth data is processed by reducing the deviation value, filling the null value, etc., to obtain the envelope surface of the depth surface corresponding to the ground; finally, through a preset sliding window, such as a sliding window of size 7, the envelope surface of the depth surface is searched for maximum and minimum values, and the three-dimensional coordinates of the local maximum and local minimum points of the depth change can be obtained.

[0079] In an embodiment of the present application, the ground image to be detected is processed by a monocular depth estimation network to obtain depth data, and then the depth data is pre-processed and then subjected to extreme value search processing to obtain extreme value point information of depth change, which can effectively improve the accuracy and acquisition efficiency of the acquired extreme value points, thereby facilitating more accurate selection of calibration points in the subsequent period.

[0080] In some embodiments, the depth data is preprocessed to obtain an envelope surface of the depth surface corresponding to the ground, including: performing smoothing filtering on the depth data to obtain filtered depth data; and interpolating the filtered depth data through at least one B-spline surface fitting to obtain an envelope surface of the depth surface.

[0081] It should be noted that the order of smoothing and filtering the depth data and performing interpolation processing is arbitrary and there is no priority. That is, the depth data is pre-processed to obtain the envelope surface of the depth surface corresponding to the ground, including: interpolating the depth data through at least one B-spline surface fitting to obtain the interpolated depth data; smoothing and filtering the interpolated depth data to obtain the envelope surface of the depth surface.

[0082] Since the depth data obtained by the monocular depth estimation network after processing the ground image to be detected will have deviation values ​​and invalid values, which will have a great impact on subsequent calculations, it is necessary to process the depth data through smoothing filtering (such as mean filter, median filter, Gaussian filter, edge-preserving filter, etc.) to reduce the deviation value of the depth data; the depth data is interpolated through at least one (for example, five) B-spline surface fitting to fill the empty values ​​of the depth data. After reducing the deviation value and filling the empty value, the envelope surface of the depth surface is finally obtained.

[0083] In an embodiment of the present application, by performing smoothing filtering and interpolation processing on the depth data to obtain the envelope surface of the depth surface, the impact of noise data in the depth data on subsequent calculations can be effectively reduced, thereby effectively improving the accuracy of the extreme points subsequently obtained, facilitating more accurate selection of calibration points in the subsequent process.

[0084] Step 103: Determine the calibration points of the ground image to be detected based on the depth change extreme point information.

[0085] In some embodiments, determining the calibration points of the ground image to be detected based on the depth change extreme point information includes: iteratively performing the following processing: constructing a planar triangular mesh according to the three-dimensional coordinates corresponding to multiple depth change extreme points through a triangulation algorithm; calculating the area of ​​each triangle in the planar triangular mesh, and when the area of ​​the triangle is less than an area threshold, merging the three vertices of the triangle into a point; using the fused point as the depth change extreme point; when the area of ​​each triangle in the planar triangular mesh is greater than or equal to the area threshold, stopping the iterative processing, and using the depth change extreme point after the iteration as the calibration point.

[0086] Specifically, after obtaining the three-dimensional coordinates corresponding to multiple depth change extreme points, the three-dimensional coordinates of the local extreme points (i.e., depth change extreme points) are constructed into a plane triangular mesh through a triangulation algorithm (e.g., Delaunay triangulation algorithm, Lawson algorithm, segmentation and merging algorithm, etc.), and then the area of ​​each triangle in the plane triangular mesh is calculated. When the area of ​​a triangle is less than the area threshold (e.g., 5% of the total mesh area), it is considered that the three points covered by the triangle can be fused into one point, and the fused point is used as a new depth change extreme point. The fusion rule is: when the extreme difference between the three vertices of the fused triangle is less than or equal to the fusion threshold (e.g., 5), the fusion point is the center of the triangle (i.e., the point with equal distances to each vertex of the triangle); when the extreme difference between the three vertices is greater than the fusion threshold (e.g., 5), the fusion point is the midpoint of the longest side of the triangle. Repeat the above fusion process until the areas of all triangles are greater than or equal to the area threshold (e.g., 5% of the total mesh area), stop the iterative processing, and use the depth change extreme point after iteration as the calibration point.

[0087] In the embodiment of the present application, by fusing and removing extreme points, the influence of too many extreme points that are close to each other and have small depth differences on the accuracy and calculation efficiency of calibration point selection can be effectively eliminated, thereby effectively improving the accuracy and calculation efficiency of calibration point selection.

[0088] In the above embodiment, a set of calibration points can be obtained by executing steps 101 to 103 once. In order to obtain the calibration point information more accurately, multiple sets of calibration points can be obtained by executing the steps of obtaining the calibration points multiple times (for example, 5 times), that is, repeatedly executing steps 101 to 103. After obtaining multiple sets of calibration points, the average value of the multiple sets of calibration points is calculated as the final calibration point.

[0089] In some embodiments, the method also includes: randomly selecting multiple verification points in the ground image to be detected, and determining the position information of each verification point; determining a calibration matrix based on the calibration points of the ground image to be detected; calculating the coordinate deviations of the multiple verification points in the calibration matrix; when the coordinate deviation is greater than the deviation threshold, re-calibrating the position; when the coordinate deviation is less than or equal to the deviation threshold, determining the terminal placement position according to the calibration points.

[0090] After the calibration points are determined, they need to be verified. That is, first, the calibration matrix of each area is calculated based on the latitude and longitude information of the calibration points. Then, multiple verification points are randomly selected for each area, and the coordinates of the verification points are determined. Then, the coordinate deviations of the multiple verification points in the calibration matrix are calculated. When the coordinate deviation is greater than the deviation threshold (for example, 0.5 meters), the operator is prompted to recalibrate the position. When the coordinate deviation is less than or equal to the deviation threshold (for example, 0.5 meters), it indicates that the group of calibration points is valid, so the terminal placement position is determined according to the calibration points.

[0091] In the embodiment of the present application, by selecting verification points to perform error verification on the calibration points, the accuracy of the calibration point selection can be further improved, and then the placement position of the terminal can be accurately determined according to the calibration points.

[0092] The following is a description of a specific scenario of an embodiment of the present application. Figure 2 , Figure 2 It is a flow chart of the calibration point selection and determination provided by the present invention. First, a real-time picture of the ground is obtained from a monitoring camera (i.e., a camera device), and an original ground image is selected from the real-time picture. Then, an image quality assessment is performed on the original ground image, that is, whether the original ground image meets the preset quality criteria is assessed, and the original ground image that meets the image quality requirements is used as the ground image to be detected for subsequent processing, otherwise, the real-time picture selection step is returned to continue to select the next original ground image for image quality assessment; after the ground image to be detected is obtained, it is input into a depth estimation module for depth estimation processing to obtain depth data, and then the depth data is preprocessed, that is, smoothing filtering processing and interpolation processing are performed to reduce the influence of null values ​​and deviation values ​​on the depth data, and then an extreme point search processing is performed on the preprocessed depth data, and a group of calibration points is determined according to the extreme points obtained by the search, and the above steps are repeated until five groups of calibration points are obtained, and then the average value of the five groups of calibration points is calculated to obtain the final calibration point.

[0093] In some embodiments, see Figure 3 , Figure 3This is the second flow chart of the image position calibration method based on depth estimation provided by the present invention. First, the monitoring camera to be calibrated (i.e., the camera device) is configured into the calibration system provided by the present invention. The calibration system executes the image position calibration method based on depth estimation provided by the present invention, calculates the calibration points to obtain the calibration points, and then draws the calibration point information in the ground image to be detected. The image of the drawn calibration points and the detailed information of the calibration points are transmitted back to the display device. The operator selects the verification points for verification according to the information in the display device. When the calibration points are verified to be correct, the matrix of the regional calibration is uploaded to the system.

[0094] In some embodiments, see Figure 4 , Figure 4 It is a schematic diagram of the operation process of the display device provided by the present invention; after obtaining the relevant information of the calibration point, the operator enters the calibration task number in the display device, and the system queries the corresponding calibration information according to the number. The system obtains the real-time picture of the corresponding number (i.e., the ground image to be detected), draws the calibration information in the picture, and returns the picture of the calibration point and the detailed information of the calibration point to the display device. The operator locates the calibration point according to the display picture, determines the latitude and longitude information of the calibration point, and then inputs the latitude and longitude information of the calibration point into the system in sequence according to the calibration information. After the system receives the input latitude and longitude information, it calculates the calibration matrix of each area; then the system randomly selects multiple verification points for each area, repeats the above process to input the coordinates of the verification points into the system, and the system automatically calculates the coordinate deviation of the verification point. When the error is greater than 0.5m, the operator is prompted to re-calibrate.

[0095] The embodiment of the present application first performs depth estimation processing on the ground image to be detected to obtain the depth change extreme point information of the ground corresponding to the ground image to be detected, and then determines the calibration points of the ground image to be detected based on the depth change extreme point information. By introducing the ground depth change into the position calibration, the calibration points can be accurately determined when there are complex nonlinear changes in the ground, which effectively broadens the application scenarios of position calibration and improves the accuracy of the calibration results.

[0096] The image position calibration device based on depth estimation provided by the present invention is described below. The image position calibration device based on depth estimation described below and the image position calibration method based on depth estimation described above can correspond to each other.

[0097] See also Figure 5 , Figure 5 is a structural schematic diagram of an image position calibration device based on depth estimation provided by the present invention, Figure 5The image position calibration device 500 based on depth estimation shown includes an image acquisition module 501, a depth estimation module 502, and a calibration point determination module 503, wherein the image acquisition module 501 is used to acquire a ground image to be detected taken by a camera device; the depth estimation module 502 is used to perform depth estimation processing on the ground image to be detected to obtain depth change extreme point information of the ground corresponding to the ground image to be detected, wherein the depth change extreme point information includes three-dimensional coordinates corresponding to multiple depth change extreme points; the calibration point determination module 503 is used to determine the calibration points of the ground image to be detected based on the depth change extreme point information.

[0098] In some embodiments, the image acquisition module 501 is also used to iteratively perform the following processing: acquiring the original ground image taken by the camera device; detecting the quality of the original ground image through an image quality detection algorithm to obtain an image quality score; when the image quality score does not meet a preset condition, acquiring a new original ground image; when the image quality score meets a preset condition, stopping the iterative processing, and using the original ground image as the ground image to be detected.

[0099] In some embodiments, the image acquisition module 501 is also used to calculate the contrast and white balance of the original ground image, and determine the picture illumination score of the original ground image based on the contrast and the white balance; and calculate the picture blur score of the original ground image by Laplace variance and discrete cosine transform method.

[0100] In some embodiments, the depth estimation module 502 is also used to input the ground image to be detected into a preset monocular depth estimation network to obtain depth data, wherein the depth data is used to indicate the distance between the ground corresponding to the ground image to be detected and the camera device; pre-process the depth data to obtain the envelope surface of the depth surface corresponding to the ground; perform extreme value search processing on the envelope surface of the depth surface through a preset sliding window to obtain the extreme point information of the depth change.

[0101] In some embodiments, the depth estimation module 502 is further used to perform smoothing filtering on the depth data to obtain filtered depth data; and to perform interpolation processing on the filtered depth data through at least one B-spline surface fitting to obtain an envelope surface of the depth surface.

[0102] In some embodiments, the calibration point determination module 503 is also used to iteratively perform the following processing: construct a planar triangular mesh according to the three-dimensional coordinates corresponding to the multiple depth change extreme points through a triangulation algorithm; calculate the area of ​​each triangle in the planar triangular mesh, and when the area of ​​the triangle is less than an area threshold, merge the three vertices of the triangle into a point; use the fused point as the depth change extreme point; when the area of ​​each triangle in the planar triangular mesh is greater than or equal to the area threshold, stop the iterative processing, and use the depth change extreme point after the iteration as the calibration point.

[0103] In some embodiments, the calibration point determination module 503 is also used to randomly select multiple verification points in the ground image to be detected, and determine the position information of each verification point; determine the calibration matrix based on the calibration points of the ground image to be detected; calculate the coordinate deviation of the multiple verification points in the calibration matrix; when the coordinate deviation is greater than the deviation threshold, re-calibrate the position; when the coordinate deviation is less than or equal to the deviation threshold, determine the terminal placement position according to the calibration point.

[0104] Specifically, the above-mentioned image position calibration device based on depth estimation provided by an embodiment of the present invention can implement all the method steps implemented by the above-mentioned method embodiment in which the execution subject is a terminal device, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those of the method embodiment will not be described in detail here.

[0105] Figure 6 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the image position calibration method based on depth estimation, the method comprising: obtaining a ground image to be detected taken by a camera device; performing depth estimation processing on the ground image to be detected to obtain depth change extreme value point information of the ground corresponding to the ground image to be detected, wherein the depth change extreme value point information includes three-dimensional coordinates corresponding to multiple depth change extreme value points; and determining the calibration points of the ground image to be detected based on the depth change extreme value point information.

[0106] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0107] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the image position calibration method based on depth estimation provided by the above-mentioned methods, and the method includes: obtaining a ground image to be detected taken by a camera device; performing depth estimation processing on the ground image to be detected to obtain depth change extreme point information of the ground corresponding to the ground image to be detected, wherein the depth change extreme point information includes three-dimensional coordinates corresponding to multiple depth change extreme points; and determining the calibration points of the ground image to be detected based on the depth change extreme point information.

[0108] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the image position calibration method based on depth estimation provided by the above-mentioned methods, the method comprising: acquiring a ground image to be detected taken by a camera device; performing depth estimation processing on the ground image to be detected to obtain depth change extreme point information of the ground corresponding to the ground image to be detected, wherein the depth change extreme point information includes three-dimensional coordinates corresponding to multiple depth change extreme points; and determining the calibration points of the ground image to be detected based on the depth change extreme point information.

[0109] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for image position calibration based on depth estimation, characterized in that: include: Acquire the ground image to be detected taken by the camera device; Inputting the ground image to be detected into a preset monocular depth estimation network to obtain depth data, wherein the depth data is used to indicate the distance between the ground corresponding to the ground image to be detected and the camera device; Preprocessing the depth data to obtain an envelope surface of a depth surface corresponding to the ground; Performing extreme value search processing on the envelope surface of the depth surface through a preset sliding window to obtain depth change extreme value point information, wherein the depth change extreme value point information includes three-dimensional coordinates corresponding to multiple depth change extreme value points; Iteratively perform the following processing: construct a planar triangular mesh according to the three-dimensional coordinates corresponding to the multiple depth change extreme points through a triangulation algorithm; calculate the area of ​​each triangle in the planar triangular mesh, and when the area of ​​the triangle is less than an area threshold, merge the three vertices of the triangle into a point; use the fused point as the depth change extreme point; when the area of ​​each triangle in the planar triangular mesh is greater than or equal to the area threshold, stop the iterative processing, and use the depth change extreme point after the iteration as the calibration point of the ground image to be detected.

2. The image position calibration method based on depth estimation according to claim 1, characterized in that: The preprocessing of the depth data to obtain an envelope surface of the depth surface corresponding to the ground includes: Performing smoothing filtering on the depth data to obtain filtered depth data; The filtered depth data is interpolated by at least one B-spline surface fitting to obtain an envelope surface of the depth surface.

3. The image position calibration method based on depth estimation according to claim 1, characterized in that: The step of obtaining the ground image to be detected taken by the camera device comprises: The following processing is performed iteratively: Acquire the original ground image captured by the camera device; Detecting the quality of the original ground image by using an image quality detection algorithm to obtain an image quality score; When the image quality score does not meet a preset condition, acquiring a new original ground image; When the image quality score reaches a preset condition, the iterative process is stopped, and the original ground image is used as the ground image to be detected.

4. The image position calibration method based on depth estimation according to claim 3, characterized in that: The image quality score includes a picture illumination score and a picture blur score, and the preset condition includes that the picture illumination score is less than a first score threshold, and the picture blur score is greater than a second score threshold; The detecting the quality of the original ground image by using an image quality detection algorithm to obtain an image quality score includes: Calculating the contrast and white balance of the original ground image, and determining a picture illumination score of the original ground image based on the contrast and the white balance; The image blur score of the original ground image is calculated by Laplace variance and discrete cosine transform method.

5. The image position calibration method based on depth estimation according to claim 1, characterized in that: The method further comprises: Randomly selecting a plurality of verification points in the ground image to be detected, and determining the position information of each verification point; Determine a calibration matrix based on the calibration points of the ground image to be detected; Calculating coordinate deviations of the plurality of verification points in the calibration matrix; When the coordinate deviation is greater than the deviation threshold, re-calibrate the position; When the coordinate deviation is less than or equal to the deviation threshold, the terminal placement position is determined according to the calibration point.

6. An image position calibration device based on depth estimation, characterized in that: include: An image acquisition module is used to acquire the ground image to be detected taken by the camera device; A depth estimation module is used to input the ground image to be detected into a preset monocular depth estimation network to obtain depth data, wherein the depth data is used to indicate the distance between the ground corresponding to the ground image to be detected and the camera device; pre-process the depth data to obtain the envelope of the depth surface corresponding to the ground; perform extreme value search processing on the envelope of the depth surface through a preset sliding window to obtain depth change extreme value point information, wherein the depth change extreme value point information includes three-dimensional coordinates corresponding to multiple depth change extreme value points; The calibration point determination module is used to iteratively perform the following processing: construct a planar triangular mesh according to the three-dimensional coordinates corresponding to the multiple depth change extreme points through a triangulation algorithm; calculate the area of ​​each triangle in the planar triangular mesh, and when the area of ​​the triangle is less than an area threshold, merge the three vertices of the triangle into a point; use the fused point as the depth change extreme point; when the area of ​​each triangle in the planar triangular mesh is greater than or equal to the area threshold, stop the iterative processing, and use the depth change extreme point after the iteration as the calibration point of the ground image to be detected.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the image position calibration method based on depth estimation as described in any one of claims 1 to 5 is implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the image position calibration method based on depth estimation as claimed in any one of claims 1 to 5 is implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the image position calibration method based on depth estimation as claimed in any one of claims 1 to 5 is implemented.