A method and device for determining distance based on image

By using a monocular camera in the Internet of Vehicles system to establish an image conversion model and a distance conversion model, the problem that the monocular camera cannot determine the distance is solved, the ranging function based on the monocular camera is realized, and the economic cost and deployment difficulty of the system are reduced. .

CN112669382BActive Publication Date: 2024-09-17LENOVO FUTURE COMM TECH (CHONGQING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011605338.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-09-17
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

In the existing technology, a monocular camera cannot directly determine the distance between objects on the road, which leads to the need to deploy additional depth sensors or infrared cameras in the Internet of Vehicles system, which increases the cost and difficulty of deployment.

Method used

By determining the coordinates and shape of the calibration object from the original image, establishing an image conversion model and a distance conversion model, and using a monocular camera to achieve distance calculation in the image to be measured, avoiding the need to deploy additional distance sensors.

Benefits of technology

The ranging function based on a monocular camera is realized, which reduces the economic cost and deployment difficulty of the Internet of Vehicles system, and provides a solution for ranging using a monocular camera.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112669382B
    Figure CN112669382B
Patent Text Reader

Abstract

The present invention discloses an image-based distance determination method and device, comprising: determining a first coordinate of a calibration object from an original image; and determining a second coordinate of the calibration object according to a calibration shape of the calibration object and the first coordinate; determining an image conversion model according to the first coordinate and the second coordinate; determining a distance conversion model according to the second coordinate and predetermined parameters of the calibration object; determining a distance to be measured in the image to be measured according to the image conversion model and the distance conversion model; establishing an image conversion model and a distance conversion model using the original image and the calibration object, and measuring the distance to be measured in the image to be measured using the image conversion model and the distance conversion model; achieving distance measurement based on a monocular camera, without further deploying a distance sensor in a vehicle network system, thereby reducing the economic cost and deployment difficulty of the vehicle network system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image analysis, and in particular to an image-based distance determination method and device. Background Art

[0002] In the Internet of Vehicles system, roadside sensors can be deployed to collect various sensor data on the road, thereby providing a data basis for subsequent data analysis based on road conditions. Roadside sensors can be cameras, and the sensor data they collect is images of a specific range on the road, or videos composed of continuous images.

[0003] The images captured by ordinary monocular cameras are two-dimensional images, which do not include depth information, that is, the distance between objects on the road cannot be directly determined based on the images. And "distance" is also an important sensor data in the Internet of Vehicles system. Therefore, in order to make up for the deficiency of the camera that cannot achieve distance measurement in the existing technology, it is usually necessary to deploy additional depth sensors in the roadside sensors to achieve the distance measurement function. Summary of the invention

[0004] The present invention provides an image-based distance determination method and device to at least solve the above technical problems existing in the prior art.

[0005] In a first aspect, the present invention provides an image-based distance determination method, comprising:

[0006] Determine a first coordinate of a calibration object from the original image; and determine a second coordinate of the calibration object according to a calibration shape of the calibration object and the first coordinate;

[0007] Determine an image transformation model according to the first coordinate and the second coordinate;

[0008] determining a distance conversion model according to the second coordinate and predetermined parameters of the calibration object;

[0009] The distance to be measured in the image to be measured is determined according to the image conversion model and the distance conversion model.

[0010] Preferably, the number of the original images is at least 2, and determining the first coordinate of the calibration object from the original image; and determining the second coordinate of the calibration object according to the calibration shape of the calibration object and the first coordinate comprises:

[0011] Determining a first coordinate corresponding to the calibration object from each of the original images;

[0012] Coordinate transformation is performed on each of the first coordinates according to the calibration shape of the calibration object to determine a second coordinate corresponding to each of the first coordinates.

[0013] Preferably, determining the image conversion model according to the first coordinate and the second coordinate includes:

[0014] Determine corresponding conversion parameters according to the first coordinates and the second coordinates corresponding to each of the original images;

[0015] The image conversion model is determined according to each of the conversion parameters.

[0016] Preferably, determining the distance conversion model according to the second coordinate and the predetermined parameter of the calibration object comprises:

[0017] Determining a first converted image corresponding to the original image according to the original image and the image conversion model;

[0018] determining a first pixel distance of the calibration object in the first converted image according to the second coordinate;

[0019] The distance conversion model is determined according to the first pixel distance and predetermined parameters of the calibration object.

[0020] Preferably, determining the first converted image corresponding to the original image according to the original image and the image conversion model comprises:

[0021] Inputting original pixel coordinates of original pixels in the original image into the image transformation model to determine first transformation coordinates;

[0022] The first transformed image is determined according to the original pixels and the first transformed coordinates.

[0023] Preferably, determining the distance to be measured in the image to be measured according to the image conversion model and the distance conversion model comprises:

[0024] Determining a second conversion image corresponding to the image to be tested according to the image to be tested and the image conversion model;

[0025] The distance to be measured is determined according to the second conversion image and the distance conversion model.

[0026] Preferably, determining the distance to be measured according to the second conversion image and the distance conversion model comprises:

[0027] determining a second pixel distance in the second transformed image;

[0028] The distance to be measured is determined according to the second pixel distance and the distance conversion model.

[0029] In a second aspect, the present invention provides an image-based distance determination device, comprising:

[0030] A coordinate determination module, used to determine a first coordinate of a calibration object from an original image; and to determine a second coordinate of the calibration object according to a calibration shape of the calibration object;

[0031] An image conversion model determination module, used to determine an image conversion model according to the first coordinate and the second coordinate;

[0032] a distance conversion model determination module, configured to determine a distance conversion model according to the second coordinate and predetermined parameters of the calibration object;

[0033] The distance measurement module is used to determine the distance to be measured in the image to be measured according to the image conversion model and the distance conversion model.

[0034] In a third aspect, the present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the image-based distance determination method described in the present invention.

[0035] In a fourth aspect, the present invention provides an electronic device, comprising:

[0036] processor;

[0037] a memory for storing instructions executable by the processor;

[0038] The processor is used to read the executable instructions from the memory and execute the instructions to implement the image-based distance determination method of the present invention.

[0039] Compared with the prior art, the present invention provides an image-based distance determination method and device, which utilizes the original image and the calibration object to establish an image conversion model and a distance conversion model, and uses the image conversion model and the distance conversion model to measure the distance to be measured in the image to be measured; the distance measurement based on a monocular camera is realized, and there is no need to further deploy distance sensors in the vehicle network system, thereby reducing the economic cost and deployment difficulty of the vehicle network system. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of a flow chart of a method for determining distance based on an image provided by an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of calibrating an object in an image-based distance determination method provided by an embodiment of the present invention;

[0042] Figure 3 A schematic flow chart of another method for determining distance based on an image provided by an embodiment of the present invention;

[0043] Figure 4A schematic structural diagram of an image-based distance determination device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0045] In the Internet of Vehicles system, roadside sensors can be deployed to collect various sensor data on the road, thereby providing a data basis for subsequent data analysis based on road conditions. Roadside sensors can be cameras, and the sensor data they collect is images of a specific range on the road, or videos composed of continuous images.

[0046] The images captured by ordinary monocular cameras are two-dimensional images, which do not include depth information, that is, the distance between objects on the road cannot be directly determined based on the images. And "distance" is also an important sensor data in the Internet of Vehicles system. Therefore, in order to make up for the deficiency of the camera that cannot achieve distance measurement in the existing technology, it is usually necessary to deploy additional depth sensors in the roadside sensors, or deploy infrared cameras with distance measurement functions, etc., to achieve the distance measurement function.

[0047] However, the deployment of additional depth sensors or infrared cameras will further increase the cost of the connected vehicle system. The prior art lacks a solution for achieving distance measurement using a monocular camera.

[0048] Therefore, the embodiment of the present invention provides an image-based distance determination method to at least solve the above technical problems existing in the prior art. Figure 1 As shown, the method in this embodiment includes the following steps:

[0049] Step 101: determine the first coordinates of the calibration object from the original image; and determine the second coordinates of the calibration object according to the calibration shape and the first coordinates of the calibration object.

[0050] In this embodiment, a monocular camera, i.e., a single ordinary camera, is used to achieve ranging. The original image is the image captured by the monocular camera. The calibration object is included in the shooting range of the monocular camera. The size and shape of the calibration object in the physical world are known. The calibration shape of the calibration object is its known shape. In this embodiment, it is assumed that the calibration object is a square with a side length of 1 meter and is placed horizontally at a certain position within the shooting range of the monocular camera.

[0051] Due to the shooting angle, the calibration object will be distorted in the original image, and its shape may be a trapezoid or other irregular quadrilateral. Figure 2 As shown in FIG. 1 , the shape enclosed by the four points A1, A2, A3, and A4 is the shape of the calibration object in the original image. Then, the pixel coordinates of the four points A1, A2, A3, and A4 in the original image are the first coordinates of the calibration object.

[0052] Since the calibration object in this embodiment is placed horizontally, it is necessary to further perform an inverse perspective transformation on the calibration object presented in the original image, so as to simulate the calibration object in a bird's-eye view, that is, a top view, thereby removing distortion and obtaining an image showing the true shape (square) of the calibration object.

[0053] According to the calibration shape (square) and the first coordinates (A1, A2, A3, A4) of the calibration object, it can be determined that the shape of the calibration object in the top view after the inverse perspective transformation is a square surrounded by four points A1, A2, A3', and A4'. The pixel coordinates of the four points A1, A2, A3', and A4' are the second coordinates of the calibration object.

[0054] Step 102: Determine an image conversion model according to the first coordinate and the second coordinate.

[0055] In this embodiment, the first coordinate and the second coordinate can be used as the basis for the inverse perspective transformation. That is, the corresponding calculation is performed according to the first coordinate and the second coordinate to establish an image transformation model. The image transformation model is also the inverse perspective relationship function. In this embodiment, the calculation method for establishing the image transformation model is not limited, and any algorithm that can achieve the same or similar functions can be combined in the overall technical solution of this embodiment.

[0056] Step 103: Determine a distance conversion model according to the second coordinate and predetermined parameters of the calibration object.

[0057] The image transformation model, that is, the inverse perspective relationship function, can transform the pixel coordinates in the original image into the pixel coordinates in the corresponding overhead view. After the image transformation model is established, the original image can be inversely transformed as a whole. That is, the first transformation image corresponding to the original image can be determined based on the original image and the image transformation model. The first transformation image is the overhead view obtained by inverse perspective transformation of the original image.

[0058] Specifically, the original image includes a plurality of original pixels, each of which has a corresponding original pixel coordinate. The original pixel coordinates of the original pixels in the original image can be input into the image conversion model so that the image conversion model outputs a first conversion coordinate. The first conversion coordinate is the pixel coordinate of the original pixel in the first conversion image (i.e., the top view). According to the original pixels and the first conversion coordinate, the first conversion image can be constructed, that is, the original pixels are mapped to the first conversion image.

[0059] In the first transformed image, the calibration object will be presented in the calibration shape. In this embodiment, the calibration object will be presented as a square surrounded by four points A1, A2, A3', and A4'. According to the second coordinate, the first pixel distance of the calibration object in the first transformed image can be determined. For example, the first pixel distance can be the side length of the calibration object. In this embodiment, it is assumed that the first pixel distance is 100 pixels.

[0060] In other cases, the method in this embodiment may not need to completely perform inverse perspective transformation on the original image, but directly use the second coordinate to calculate the first pixel distance.

[0061] The size and shape of the calibration object in the physical world are known; the calibration parameter of the calibration object is its size. In this embodiment, the calibration object is a square with a side length of 1 meter, which means that the calibration parameter is 1 meter. By comparing the first pixel distance and the calibration parameter, it can be considered that the pixel distance of 100 pixels in the first conversion image is equivalent to the length of 1 meter in the physical world. Therefore, according to the first pixel distance and the predetermined parameters of the calibration object, the distance conversion model is determined. The distance conversion model is the conversion relationship between the pixel distance and the physical distance.

[0062] Step 104: Determine the distance to be measured in the image to be measured according to the image conversion model and the distance conversion model.

[0063] The image to be measured is another image taken by a monocular camera; the distance to be measured can be the distance between two points to be measured in the image to be measured, which is also the target of distance measurement in this embodiment.

[0064] In this embodiment, after the image conversion model and the distance conversion model are determined, the image conversion model can be used to perform inverse perspective transformation on the image to be tested, that is, the second conversion image corresponding to the image to be tested can be determined according to the image to be tested and the image conversion model. Specifically, the pixel coordinates of each pixel in the image to be tested can be input into the image conversion model so that the image conversion model outputs the second conversion coordinates. And based on the second conversion coordinates, each pixel in the image to be tested is mapped to the second conversion image.

[0065] Since the second conversion image and the first conversion image are calculated based on the same image conversion model, the proportional relationship between the pixel distance and the physical distance is consistent. Therefore, after determining the second conversion image, the second pixel distance between the two points to be measured in the second conversion image can be further determined. Then, according to the second pixel distance and the distance conversion model, the distance to be measured in the image to be measured is determined. For example, if the second pixel distance is 80 pixels, then according to the distance conversion model, the distance to be measured is 0.8 meters.

[0066] So far, in this embodiment, based on the original image captured by the monocular camera, an image conversion model and a distance conversion model are established, so as to achieve arbitrary distance measurement for the image to be measured captured by the monocular camera.

[0067] It can be seen from the above technical solutions that the beneficial effects of this embodiment are: an image conversion model and a distance conversion model are established using the original image and the calibration object, and the image conversion model and the distance conversion model are used to measure the distance to be measured in the image to be measured; the distance measurement based on the monocular camera is realized, and there is no need to further deploy distance sensors in the Internet of Vehicles system, thereby reducing the economic cost and deployment difficulty of the vehicle network system.

[0068] Figure 1 What is shown is only a basic embodiment of the method of the present invention. By performing certain optimization and expansion on this basis, other preferred embodiments of the method can be obtained.

[0069] like Figure 3 As shown, another specific embodiment of the image-based distance determination method of the present invention is provided. This embodiment is further extended on the basis of the above-mentioned embodiment. In the scenario of this embodiment, the calibration object will be located on a continuously moving device. During the movement of the device, the monocular camera continuously acquires multiple original images. In other words, the original image acquired by the monocular camera is not unique, and the calibration object is not located at a fixed position.

[0070] The method specifically comprises the following steps:

[0071] Step 301: Determine the first coordinates corresponding to the calibration object from each original image.

[0072] Step 302: performing coordinate transformation on each first coordinate according to the calibration shape of the calibration object to determine a second coordinate corresponding to each first coordinate.

[0073] The process of determining the first coordinate and the second coordinate for any original image is similar to Figure 1 The above process is performed for each original image in this embodiment.

[0074] Step 303: Determine corresponding conversion parameters according to the first coordinates and the second coordinates corresponding to each original image.

[0075] Step 304: Determine the image conversion model according to each conversion parameter.

[0076] The shooting range of a monocular camera covers a certain physical space, and different parts of the space may be deformed to different degrees in the original image. The calibration object in the original image can only represent a certain range where it is located. Therefore, if an original image (i.e., a calibration object at a position) is used to perform inverse perspective changes to determine the image transformation model, the accuracy may not be ideal. This is because a calibration object at a position is difficult to cover the different inverse perspective relationships caused by different degrees of deformation at other positions in the original image.

[0077] Therefore, a series of multiple original images are collected in this embodiment. Since the calibration object moves with the device, in a series of original images in this embodiment, the calibration object will appear at different positions in each original image. After determining a pair of first coordinates and second coordinates of the calibration object in each original image, the inverse perspective relationship function can be determined according to each pair of corresponding first coordinates and second coordinates, and the corresponding conversion parameters in the inverse perspective relationship function can be determined.

[0078] In this example, a fixed perspective relationship function is usually used. The inverse perspective relationship function can be determined according to the inverse perspective algorithm in the art, which will not be described in detail here. In other words, the function structure of each pair of first coordinates and second coordinates for inverse perspective transformation is the same. However, since the position and shape of the calibration object in the original image are different, the conversion parameters determined according to each pair of first coordinates and second coordinates are different. The conversion parameters can be considered as the relevant coefficients in the inverse perspective relationship function. In other words, in the process of inverse perspective changes of each original image, multiple inverse perspective relationship functions with different conversion parameters can be determined.

[0079] Furthermore, comprehensive calculation can be performed based on each conversion parameter to determine the correlation coefficient of the inverse perspective relationship function applicable to the entire original image. Then, the final inverse perspective relationship function, that is, the image conversion model, is determined based on the function structure of the inverse perspective relationship function and the correlation coefficient applicable to the entire image.

[0080] In this embodiment, there is no limitation on the algorithm for determining the globally applicable correlation coefficient. Specific algorithms such as mean value calculation and weighted calculation can be combined in the overall technical solution of this embodiment.

[0081] The image transformation model determined in the above manner can be applied to perform inverse perspective transformation on each pixel in the original image or the image to be tested, and can take into account the different degrees of deformation at each position in the image, making the inverse perspective image transformation process more accurate.

[0082] Step 305: Determine a distance conversion model according to the second coordinate and predetermined parameters of the calibration object.

[0083] Step 306: Determine the distance to be measured in the image to be measured according to the image conversion model and the distance conversion model.

[0084] The above steps 305 to 306 are consistent with those in the previous embodiment and will not be repeated here.

[0085] like Figure 4 FIG. 1 is a specific embodiment of the image-based distance determination device of the present invention. The device of this embodiment is used to perform Figures 1 to 3 The physical device of the method. Its technical solution is essentially consistent with the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device in this embodiment includes:

[0086] The coordinate determination module 401 is used to determine the first coordinate of the calibration object from the original image; and determine the second coordinate of the calibration object according to the calibration shape of the calibration object.

[0087] The image conversion model determination module 402 is used to determine the image conversion model according to the first coordinate and the second coordinate.

[0088] The distance conversion model determination module 403 is used to determine the distance conversion model according to the second coordinate and predetermined parameters of the calibration object.

[0089] The distance measurement module 404 is used to determine the distance to be measured in the image to be measured according to the image conversion model and the distance conversion model.

[0090] In addition Figure 4 Based on the embodiment shown, preferably, it also includes:

[0091] The number of original images is at least 2, and the coordinate determination module 401 includes:

[0092] A first coordinate determining unit 411 is used to determine the first coordinate corresponding to the calibration object from each original image;

[0093] The second coordinate determining unit 412 is used to perform coordinate transformation on each first coordinate according to the calibration shape of the calibration object to determine the second coordinate corresponding to each first coordinate.

[0094] The image conversion model determination module 402 includes:

[0095] A conversion parameter determination unit 421, configured to determine corresponding conversion parameters according to the first coordinates and the second coordinates corresponding to each original image;

[0096] The conversion model determining unit 422 is used to determine the image conversion model according to each conversion parameter.

[0097] The distance conversion model determination module 403 includes:

[0098] A first conversion unit 431 is used to determine a first conversion image corresponding to the original image according to the original image and the image conversion model;

[0099] A first pixel distance determining unit 432, configured to determine a first pixel distance of the calibration object in the first transformed image according to the second coordinate;

[0100] The conversion model determining unit 433 is used to determine the distance conversion model according to the first pixel distance and predetermined parameters of the calibration object.

[0101] The ranging module 404 includes:

[0102] The second conversion unit 441 is used to determine a second conversion image corresponding to the image to be tested according to the image to be tested and the image conversion model;

[0103] The distance measuring unit 442 is used to determine the distance to be measured according to the second conversion image and the distance conversion model.

[0104] In addition to the above-mentioned methods and devices, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present invention described in the above "Exemplary Method" section of this specification.

[0105] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0106] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present invention described in the above “Exemplary Method” section of this specification.

[0107] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0108] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details disclosed above are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.

[0109] The block diagrams of the devices, apparatuses, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", and the like are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.

[0110] It should also be noted that in the device, apparatus and method of the present invention, each component or each step can be decomposed and / or reassembled, and such decomposition and / or reassembly should be regarded as an equivalent solution of the present invention.

[0111] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0112] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A distance determination method based on an image, comprising: Determine the first coordinates of the calibration object from the original image; and determining a second coordinate of the calibration object according to the calibration shape of the calibration object and the first coordinate; Determine an image transformation model according to the first coordinate and the second coordinate; determining a distance conversion model according to the second coordinate and predetermined parameters of the calibration object; Determining the distance to be measured in the image to be measured according to the image conversion model and the distance conversion model; Wherein, determining the distance conversion model according to the second coordinates and the predetermined parameters of the calibration object includes: determining a first conversion image corresponding to the original image according to the original image and the image conversion model; determining a first pixel distance of the calibration object in the first conversion image according to the second coordinates; and determining the distance conversion model according to the first pixel distance and the predetermined parameters of the calibration object.

2. The method according to claim 1, wherein the number of the original images is at least 2, and the first coordinates of the calibration object are determined from the original images; And determining the second coordinate of the calibration object according to the calibration shape of the calibration object and the first coordinate comprises: Determining a first coordinate corresponding to the calibration object from each of the original images; Coordinate transformation is performed on each of the first coordinates according to the calibration shape of the calibration object to determine a second coordinate corresponding to each of the first coordinates.

3. The method according to claim 2, wherein determining the image transformation model according to the first coordinate and the second coordinate comprises: Determine corresponding conversion parameters according to the first coordinates and the second coordinates corresponding to each of the original images; The image conversion model is determined according to each of the conversion parameters.

4. According to the method of claim 1, determining the first converted image corresponding to the original image according to the original image and the image conversion model comprises: Inputting original pixel coordinates of original pixels in the original image into the image transformation model to determine first transformation coordinates; The first transformed image is determined according to the original pixels and the first transformed coordinates.

5. According to the method of any one of claims 1 to 4, determining the distance to be measured in the image to be measured according to the image conversion model and the distance conversion model comprises: Determining a second conversion image corresponding to the image to be tested according to the image to be tested and the image conversion model; The distance to be measured is determined according to the second conversion image and the distance conversion model.

6. The method according to claim 5, wherein determining the distance to be measured according to the second conversion image and the distance conversion model comprises: determining a second pixel distance in the second transformed image; The distance to be measured is determined according to the second pixel distance and the distance conversion model.

7. An image-based distance determination device, comprising: A coordinate determination module, used to determine a first coordinate of a calibration object from an original image; and determining a second coordinate of the calibration object according to the calibration shape of the calibration object; An image conversion model determination module, used to determine an image conversion model according to the first coordinate and the second coordinate; a distance conversion model determination module, configured to determine a distance conversion model according to the second coordinate and predetermined parameters of the calibration object; A distance measurement module, used for determining a distance to be measured in the image to be measured according to the image conversion model and the distance conversion model; Among them, the distance conversion model determination module includes: a first conversion unit, used to determine the first conversion image corresponding to the original image according to the original image and the image conversion model; a first pixel distance determination unit, used to determine the first pixel distance of the calibration object in the first conversion image according to the second coordinate; a conversion model determination unit, used to determine the distance conversion model according to the first pixel distance and predetermined parameters of the calibration object.

8. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the image-based distance determination method according to any one of claims 1 to 6.

9. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the image-based distance determination method described in any one of claims 1-6.