Monocular camera calibration method and device, electronic equipment and storage medium

By using the aspect ratio of lane lines in monocular camera images for bird's-eye view conversion and RTK measurement, the problem of distance calculation error in monocular camera calibration is solved, high-precision UTM coordinate solution is achieved, and positioning accuracy is improved.

CN118570309APending Publication Date: 2024-08-30ZHIDAO NETWORK TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410726625.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Since the road plane and the absolute ground plane do not completely coincide with the existing monocular camera calibration method, there are errors in the calculation of the distance between the camera and the road, which affects the mapping relationship between pixels and the UTM coordinate system, especially when the road is uneven and the camera is far away. larger.

Method used

By obtaining two parallel lane lines in the monocular camera image, creating a rectangle for bird's-eye view conversion, using the lane aspect ratio to calculate the horizontal and vertical distances of the pixels, and combining the coordinate points measured by the RTK measuring instrument to solve for the pixels UTM coordinates reduce human errors and errors introduced by multiple point pairs.

Benefits of technology

The positioning accuracy of the monocular camera is improved, and high-precision positioning is completed using prior knowledge of lane lines and RTK measurement points. The method is simple and effective, reducing human errors and improving accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570309A
    Figure CN118570309A
Patent Text Reader

Abstract

The invention discloses a monocular camera calibration method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining an image of a monocular camera, the image at least comprising two parallel lane lines; creating a rectangle according to two parallel lane lines in the image of the monocular camera, and converting a front view of the image of the monocular camera according to the rectangle to obtain an aerial view; calculating a transverse distance and a longitudinal distance represented by each pixel point on a road plane in the aerial view according to the length-width ratio of a lane in the aerial view and the length-width ratio of a lane in a real scene; measuring a first coordinate point of any point in the view of the camera under the UTM coordinate system; and according to the first coordinate point and the transverse distance and the longitudinal distance represented by each pixel point on the road plane in the aerial view, solving a second coordinate point under the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera. According to the invention, the positioning precision of the monocular camera is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of camera calibration technology, and in particular to a monocular camera calibration method, device, electronic device, and storage medium. Background Art

[0002] The mainstream camera calibration method is to use PnP (Perspective-n-Point) for external parameter calibration, select a set of corresponding image points and WGS84 UTM points to calculate the camera external parameters. The selected landmark points generally need to select multiple points and evenly distribute them in the entire image, and perform nonlinear optimization on multiple point pairs to obtain the camera posture.

[0003] Since the road plane and the absolute ground plane are not completely coincident, there is an error in the distance calculation between the camera and the road, resulting in an error in the mapping relationship between the calculated pixel points and the UTM. The error varies depending on the unevenness of the road's horizontal surface and the distance from the camera to the target. The farther away from the camera, the greater the error, and the greater the angle between the road and the absolute horizontal plane, the greater the error. Summary of the invention

[0004] The embodiments of the present application provide a monocular camera calibration method, device, electronic device, and storage medium to improve the positioning accuracy of a monocular camera.

[0005] The present application embodiment adopts the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a monocular camera calibration method, wherein the method comprises:

[0007] Acquire an image from a monocular camera, wherein the image includes at least two parallel lane lines;

[0008] Creating a rectangle according to two parallel lane lines in the image of the monocular camera, and converting a front view of the image of the monocular camera into a bird's-eye view according to the rectangle;

[0009] Calculate the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view according to the length-width ratio of the lane in the bird's-eye view and the length-width ratio of the lane in the real scene;

[0010] Measure the first coordinate point of any point within the camera's field of view in the UTM coordinate system;

[0011] According to the first coordinate point and the lateral distance and the longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, a second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera is solved.

[0012] In some embodiments, the method further includes: performing dedistortion processing on the image of the monocular camera to obtain a monocular camera image including at least two lane lines.

[0013] In some embodiments, the first coordinate point is measured by an RTK surveying instrument, and the first coordinate point includes at least one.

[0014] In some embodiments, the second coordinate point is calculated based on the first coordinate point, the lateral distance and the longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, and the second coordinate point includes multiple ones.

[0015] In some embodiments, the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view include:

[0016] Based on the bird's-eye view, two feature points are selected in the horizontal direction and two feature points are selected in the vertical direction;

[0017] Calculate the pixel interval between every two feature points and measure the actual distance;

[0018] According to the pixel interval between every two feature points and the measured real distance, the horizontal distance and vertical distance occupied by each pixel in the image are calculated.

[0019] In some embodiments, according to the first coordinate point and the lateral distance and the longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, solving the second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera includes:

[0020] Find the coordinate point corresponding to the first coordinate point in the bird's-eye view as the origin;

[0021] According to the ratio of the horizontal distance to the vertical distance, the physical distance and the world coordinate value of each pixel point corresponding to the origin in the bird's-eye view are obtained as the second coordinate point.

[0022] In some embodiments, the lane aspect ratio in the real scene is obtained by measurement.

[0023] In a second aspect, an embodiment of the present application further provides a monocular camera calibration device, wherein the device comprises:

[0024] An acquisition module, used to acquire an image from a monocular camera, wherein the image includes at least two parallel lane lines;

[0025] A creation module, used for creating a rectangle according to two parallel lane lines in the image of the monocular camera, and converting the front view of the image of the monocular camera into a bird's-eye view according to the rectangle;

[0026] A calculation module, used to calculate the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view according to the length-width ratio of the lane in the bird's-eye view and the length-width ratio of the lane in the real scene;

[0027] Vehicle module, used to measure the first coordinate point of any point within the camera's field of view in the UTM coordinate system;

[0028] A solution module is used to solve the second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera according to the first coordinate point and the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view.

[0029] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to perform the above method.

[0030] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes the above method.

[0031] At least one of the above technical solutions adopted in the embodiment of the present application can achieve the following beneficial effects: an image of a monocular camera is obtained, and the image includes at least two parallel lane lines. A rectangle is created according to the two parallel lane lines in the image of the monocular camera, and the front view of the image of the monocular camera is converted into a bird's-eye view according to the rectangle. Then, according to the lane aspect ratio in the bird's-eye view and the lane aspect ratio in the real scene, the lateral distance and longitudinal distance represented by each pixel on the road plane in the bird's-eye view are calculated. Finally, by measuring the first coordinate point of any point in the camera's field of view in the UTM coordinate system, and then according to the first coordinate point and the lateral distance and longitudinal distance represented by each pixel on the road plane in the bird's-eye view, the second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel on the road plane in the image of the monocular camera is solved. Through the above method, monocular high-precision positioning is completed using prior knowledge of lane lines and an RTK measurement point, and the method is simple, effective and has high accuracy. In addition, compared with the calibration method in the related art, the introduction of human errors is reduced, and there is no need to select many pixels and their corresponding 3D points. More point pairs will introduce larger errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0033] Figure 1 It is a dedistorted front view of the monocular camera calibration method in an embodiment of the present application;

[0034] Figure 2 A bird's-eye view of the monocular camera calibration method in an embodiment of the present application;

[0035] Figure 3 Schematic diagram of the process of the monocular camera calibration method in the embodiment of the present application;

[0036] Figure 4 This is a schematic diagram of the structure of a monocular camera calibration device in an embodiment of the present application;

[0037] Figure 5 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

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

[0039] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0040] like Figure 1 As shown in , it is the front view image taken by the monocular camera before distortion, in which the rectangle is framed by the lane lines in the image, and due to the pinhole imaging, the two parallel line segments intersect at a certain point. Figure 2 As shown, the front view is a converted bird's-eye view.

[0041] The present application embodiment provides a monocular camera calibration method, such as Figure 3 As shown, a schematic flow chart of a monocular camera calibration method in an embodiment of the present application is provided, and the method at least includes the following steps S310 to S350:

[0042] Step S310, acquiring an image from a monocular camera, wherein the image includes at least two parallel lane lines.

[0043] Image information from a monocular camera is acquired, and the image information includes at least two parallel lane lines.

[0044] Step S320: Create a rectangle according to the two parallel lane lines in the image of the monocular camera, and convert the front view of the image of the monocular camera into a bird's-eye view according to the rectangle.

[0045] Continue to create a rectangle in the image of the monocular camera according to the two parallel lane lines, and transform the front view of the image of the monocular camera into a bird's-eye view, that is, a top view, according to the rectangle.

[0046] It can be understood that the front view can be transformed into a bird's eye view by using perspective transformation, and the rectangle selected during the transformation is random.

[0047] Step S330, calculating the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view according to the length-width ratio of the lane in the bird's-eye view and the length-width ratio of the lane in the real scene.

[0048] Then, the length-width ratio of the lanes in the bird's-eye view and the length-width ratio of the lanes in the real scene are determined. Based on the length-width ratio, the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view are calculated.

[0049] The front view can be converted to a bird's-eye view using perspective transformation. The rectangle selected during the transformation is random, so the aspect ratio of the lane lines in the bird's-eye view is distorted. Therefore, the lane line width and height in the bird's-eye view are different from the real-world ratios. Therefore, it is necessary to select two feature points in the horizontal direction of the bird's-eye view, calculate the pixel interval and measure the real distance, and calculate the horizontal pixel interval ratio. Similarly, it is also necessary to select two feature points in the vertical direction of the bird's-eye view. That is, the calculated lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view can obtain the difference (scaling) ratio between the bird's-eye view and the real world.

[0050] Step S340, measuring a first coordinate point of any point within the camera field of view in the UTM coordinate system.

[0051] The first coordinate point of any point within the camera's field of view in the UTM coordinate system is measured, that is, the 3D coordinate position in the real scene.

[0052] Step S350, based on the first coordinate point and the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, solve the second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera.

[0053] By finding the corresponding pixel coordinates in the bird's-eye view as the starting point and the lateral and longitudinal distances represented by each pixel on the corresponding road plane, we can infer the WGS84 UTM coordinates corresponding to each pixel on the road plane of the camera image, thereby completing the high-precision positioning of the roadside monocular camera, that is, the camera calibration process.

[0054] The above-mentioned high-precision positioning method based on the camera bird's-eye view can be used as a monocular camera positioning solution in intelligent road construction. It uses lane line prior knowledge and a measurement point to complete monocular high-precision positioning. The method is simple, effective and has high accuracy. In addition, compared with traditional calibration methods, the above method reduces the introduction of human errors. There is no need to select many pixel points and their corresponding 3D points, which reduces the large errors caused by introducing more points.

[0055] In one embodiment of the present application, the method further includes: performing dedistortion processing on the image of the monocular camera to obtain a monocular camera image including at least two lane lines.

[0056] like Figure 1 As shown in FIG. 1 , after obtaining the image from the monocular camera, dedistortion processing is required. Due to the presence of nonlinear factors in the image, the lane lines (straight lines) in the image are less curved after dedistortion.

[0057] In one embodiment of the present application, the first coordinate point is measured by an RTK surveying instrument, and the first coordinate point includes at least one.

[0058] Use an RTK surveying instrument to measure the UTM projection coordinates of a coordinate point in the camera's field of view in the real world. At this time, the number of the first coordinate point includes one.

[0059] In one embodiment of the present application, the second coordinate point is calculated based on the first coordinate point and the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, and the second coordinate point includes multiple ones.

[0060] The number of the second coordinate points includes multiple ones, and is calculated based on the first coordinate points, the lateral distance and the longitudinal distance represented by each pixel point on the road plane in the bird's-eye view.

[0061] In one embodiment of the present application, the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view include: based on the bird's-eye view, selecting two feature points in the horizontal direction and two feature points in the vertical direction; calculating the pixel interval between every two feature points and measuring the true distance; calculating the lateral distance and longitudinal distance based on the pixel interval between every two feature points and measuring the true distance.

[0062] In the bird's-eye view, two feature points are selected in the horizontal direction, the pixel interval is calculated, the real distance is measured, and the horizontal pixel interval ratio is calculated. Similarly, two feature points are selected in the vertical direction, the pixel interval is calculated, the real distance is measured, and the vertical pixel interval ratio is calculated.

[0063] In one embodiment of the present application, based on the first coordinate point and the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, the second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera is solved, including: finding the coordinate point corresponding to the first coordinate point in the bird's-eye view as the origin; according to the ratio of the lateral distance to the longitudinal distance, obtaining the physical distance and world coordinate value of each pixel point in the bird's-eye view corresponding to the origin as the second coordinate point.

[0064] Find the corresponding pixel coordinates in the bird's-eye view as the starting point, and obtain the physical distance of each pixel in the bird's-eye view corresponding to the origin and its world coordinate value based on the ratio of the horizontal distance and the vertical distance.

[0065] In one embodiment of the present application, the lane aspect ratio in the real scene is obtained by measurement.

[0066] The lane aspect ratio in real scenes can be measured through actual calibration.

[0067] The present application embodiment also provides a monocular camera calibration device 400, such as Figure 4 As shown, a structural schematic diagram of a monocular camera calibration device in an embodiment of the present application is provided, wherein the monocular camera calibration device 400 at least includes: an acquisition module 410, a creation module 420, a calculation module 430, a measurement module 440 and a solution module 450, wherein:

[0068] In one embodiment of the present application, the acquisition module 410 is specifically used to: acquire an image from a monocular camera, where the image includes at least two parallel lane lines.

[0069] Image information from a monocular camera is acquired, and the image information includes at least two parallel lane lines.

[0070] In one embodiment of the present application, the acquisition module 420 is specifically used to: create a rectangle according to the two parallel lane lines in the image of the monocular camera, and convert the front view of the image of the monocular camera into a bird's-eye view according to the rectangle.

[0071] Continue to create a rectangle in the image of the monocular camera according to the two parallel lane lines, and transform the front view of the image of the monocular camera into a bird's-eye view, that is, a top view, according to the rectangle.

[0072] It can be understood that the front view can be transformed into a bird's eye view by using perspective transformation, and the rectangle selected during the transformation is random.

[0073] In one embodiment of the present application, the acquisition module 430 is specifically used to calculate the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view according to the lane aspect ratio in the bird's-eye view and the lane aspect ratio in the real scene.

[0074] Then, the length-width ratio of the lanes in the bird's-eye view and the length-width ratio of the lanes in the real scene are determined. Based on the length-width ratio, the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view are calculated.

[0075] The front view can be transformed into a bird's-eye view using perspective transformation. The rectangle selected during the transformation is random, so the aspect ratio of the zebra crossing in the bird's-eye view is distorted. Therefore, the lane line width and height in the bird's-eye view are different from the real-world ratio. Therefore, it is necessary to select two feature points in the horizontal direction of the bird's-eye view, calculate the pixel interval and measure the real distance, and calculate the horizontal pixel interval ratio. Similarly, it is also necessary to select two feature points in the vertical direction of the bird's-eye view.

[0076] In one embodiment of the present application, the acquisition module 440 is specifically used to measure a first coordinate point of any point within the camera field of view in the UTM coordinate system.

[0077] The first coordinate point of any point within the camera's field of view in the UTM coordinate system is measured, that is, the 3D coordinate position in the real scene.

[0078] In one embodiment of the present application, the solution module 450 is specifically used to: solve the second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera based on the first coordinate point and the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view.

[0079] By finding the pixel coordinates of the corresponding corner points in the bird's-eye view as the starting point and the lateral and longitudinal distances represented by each pixel point on the corresponding road plane, we can infer the WGS84 UTM coordinates corresponding to each pixel point on the road plane of the camera image, thereby completing the high-precision positioning of the roadside monocular camera, that is, the camera calibration process.

[0080] It can be understood that the above-mentioned monocular camera calibration device can implement each step of the monocular camera calibration method provided in the aforementioned embodiment, and the relevant explanations about the monocular camera calibration method are applicable to the monocular camera calibration device, which will not be repeated here.

[0081] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 5At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0082] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0083] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0084] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a monocular camera calibration device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0085] Acquire an image from a monocular camera, wherein the image includes at least two parallel lane lines;

[0086] Creating a rectangle according to two parallel lane lines in the image of the monocular camera, and converting a front view of the image of the monocular camera into a bird's-eye view according to the rectangle;

[0087] Calculate the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view according to the length-width ratio of the lane in the bird's-eye view and the length-width ratio of the lane in the real scene;

[0088] Measure the first coordinate point of any point within the camera's field of view in the UTM coordinate system;

[0089] According to the first coordinate point and the lateral distance and the longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, a second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera is solved.

[0090] The above application Figure 3 The method performed by the monocular camera calibration device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0091] The electronic device may also perform Figure 3 A method for executing a monocular camera calibration device in a Figure 3 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.

[0092] The present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to execute Figure 3 The method performed by the monocular camera calibration device in the embodiment shown is specifically used to perform:

[0093] Acquire an image from a monocular camera, wherein the image includes at least two parallel lane lines;

[0094] Creating a rectangle according to two parallel lane lines in the image of the monocular camera, and converting a front view of the image of the monocular camera into a bird's-eye view according to the rectangle;

[0095] Calculate the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view according to the length-width ratio of the lane in the bird's-eye view and the length-width ratio of the lane in the real scene;

[0096] Measure the first coordinate point of any point within the camera's field of view in the UTM coordinate system;

[0097] According to the first coordinate point and the lateral distance and the longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, a second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera is solved.

[0098] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0099] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0100] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0102] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0103] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0104] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0105] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0106] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0107] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A monocular camera calibration method, wherein: The method comprises: Acquire an image from a monocular camera, wherein the image includes at least two parallel lane lines; Creating a rectangle according to two parallel lane lines in the image of the monocular camera, and converting a front view of the image of the monocular camera into a bird's-eye view according to the rectangle; Calculate the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view according to the length-width ratio of the lane in the bird's-eye view and the length-width ratio of the lane in the real scene; Measure the first coordinate point of any point within the camera's field of view in the UTM coordinate system; According to the first coordinate point and the lateral distance and the longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, a second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera is solved.

2. The method of claim 1, wherein: The method further includes: performing dedistortion processing on the image of the monocular camera to obtain a monocular camera image including at least two lane lines.

3. The method of claim 2, wherein: The first coordinate point is measured by an RTK surveying instrument, and the first coordinate point includes at least one.

4. The method of claim 2, wherein: The second coordinate point is calculated based on the first coordinate point and the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, and the second coordinate point includes a plurality of them.

5. The method of claim 1, wherein: The calculating the lateral distance and the longitudinal distance represented by each pixel point on the road plane in the bird's-eye view includes: Based on the bird's-eye view, two feature points are selected in the horizontal direction and two feature points are selected in the vertical direction; Calculate the pixel interval between every two feature points and measure the actual distance; According to the pixel interval between every two feature points and the measured real distance, the horizontal distance and vertical distance occupied by each pixel in the image are calculated.

6. The method of claim 1, wherein: According to the first coordinate point and the lateral distance and the longitudinal distance represented by each pixel point on the road plane in the bird's-eye view, solving the second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera, including: Find the coordinate point corresponding to the first coordinate point in the bird's-eye view as the origin; According to the ratio of the horizontal distance to the vertical distance, the physical distance and the world coordinate value of each pixel point corresponding to the origin in the bird's-eye view are obtained as the second coordinate point.

7. The method of claim 1, wherein: The lane length-width ratio in the real scene is obtained by measurement.

8. A monocular camera calibration device, wherein: The device comprises: An acquisition module, used to acquire an image from a monocular camera, wherein the image includes at least two parallel lane lines; A creation module, used for creating a rectangle according to two parallel lane lines in the image of the monocular camera, and converting the front view of the image of the monocular camera into a bird's-eye view according to the rectangle; A calculation module, used to calculate the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view according to the length-width ratio of the lane in the bird's-eye view and the length-width ratio of the lane in the real scene; A measurement module, used to measure the first coordinate point of any point within the camera's field of view in the UTM coordinate system; A solution module is used to solve the second coordinate point in the UTM coordinate system corresponding to each two-dimensional pixel point on the road plane in the image of the monocular camera according to the first coordinate point and the lateral distance and longitudinal distance represented by each pixel point on the road plane in the bird's-eye view.

9. An electronic device, comprising: processor; as well as A memory arranged to store computer executable instructions, which when executed cause the processor to perform the method of any one of claims 1 to 7.

10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to execute any one of the methods of claims 1 to 7.