Image processing method, device and equipment based on data driving, medium and vehicle

By calculating the image conversion ratio and performing image conversion and de-distortion processing, the problem of long cycle and high cost of acquiring new camera image data for autonomous vehicles is solved, and the effect of online acquisition and cost reduction is achieved.

CN118608431APending Publication Date: 2024-09-06MOMENTA (SUZHOU) TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310165396.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

When existing autonomous vehicles obtain new camera image data, the cycle is too long and the cost is high, requiring a lot of manpower and material resources.

Method used

By calculating the image conversion ratio, image conversion and de-distortion are performed based on the field angle of the target camera, the width of the environmental image, and the focal length of the reference camera to generate images collected by the reference camera, reducing the need for physical camera installation and data collection.

Benefits of technology

The image data acquisition cycle is shortened, the cost is reduced, and online computing and image data acquisition without the involvement of a physical camera are realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608431A
    Figure CN118608431A
Patent Text Reader

Abstract

The invention discloses an image processing method and device based on data driving, equipment, a medium and a vehicle. The method comprises the steps of obtaining an environment image collected by a target camera installed on a vehicle; calculating an image conversion proportion according to the field angle of the target camera, the width of the vehicle surrounding environment image, the focal length of the reference camera and the actual width of the to-be-detected target; performing image conversion on the vehicle surrounding environment image according to the image conversion proportion to obtain a converted image; and carrying out distortion removal on the converted image to obtain a distorted image, and taking the distorted image as an image collected by the reference camera. According to the method, the image data of the new camera, namely the reference camera, can be obtained without installing a physical camera, collecting a real road and returning collected data, the obtaining period of the image data is shortened, all calculation processes are completed on line, participation of the physical camera and vehicles is not needed, manpower resources and material resources do not need to be spent, and the calculation efficiency is improved. And the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving technology, and more specifically, to a data-driven image processing method, apparatus, device, medium, and vehicle. Background Art

[0002] Visual perception is a key feature of autonomous vehicles. Autonomous vehicles use sensors to perceive various factors that affect driving safety, such as the road surface, surrounding vehicles, and buildings. Camera images are then transmitted to an analysis system for analysis, which then calculates information about surrounding vehicles, roads, and more.

[0003] Currently, all types of autonomous vehicles use visual perception solutions. To improve visual perception performance, it is often necessary to add new cameras to the autonomous vehicle to capture new image data. The traditional approach is to install new cameras on the autonomous vehicle and collect image data from different cameras through real-world road conditions.

[0004] However, the above method has the following problems: it often takes one to two weeks to install the camera, collect real road data, and transmit the collected data back, which makes the cycle of obtaining new camera image data too long; the purchase, installation and data collection of the camera require a lot of human and material resources, which leads to excessively high costs. Summary of the Invention

[0005] This application provides a data-driven image processing method, device, equipment, medium, and vehicle that can reduce the image data acquisition cycle and reduce costs. The specific technical solution is as follows.

[0006] In a first aspect, the present application provides a data-driven image processing method, the method comprising:

[0007] Obtaining an environmental image captured by a target camera installed on the vehicle;

[0008] An image conversion ratio is calculated based on the field of view of the target camera, the width of the environment image, the focal length of the reference camera, and the actual width of the target to be detected;

[0009] Performing image conversion on the environment image according to the image conversion ratio to obtain a converted image;

[0010] The converted image is dedistorted to obtain a dedistorted image, and the dedistorted image is used as the image captured by the reference camera.

[0011] Optionally, the step of calculating the image conversion ratio according to the field of view angle of the target camera, the width of the environment image, the focal length of the reference camera, and the actual width of the target to be detected includes:

[0012] Calculating the focal length of the target camera according to the field of view angle of the target camera and the width of the environment image;

[0013] The ratio between the width of the target to be detected in the environment image and the width in the image captured by the reference camera is calculated according to the focal length, the actual width of the target to be detected and the focal length of the reference camera, and the obtained ratio is used as the image conversion ratio.

[0014] Therefore, the ratio between the width of the target object in the environment image and the width in the image captured by the reference camera, that is, the image conversion ratio, can be calculated based on the focal length of the target camera, the actual width of the target object, and the focal length of the reference camera.

[0015] Optionally, the step of performing image conversion on the environment image according to the image conversion ratio to obtain a converted image includes:

[0016] When the field of view angle of the target camera is smaller than the field of view angle of the reference camera, compressing the environment image according to the image conversion ratio to obtain a compressed image, and filling black borders around the compressed image to the size of the environment image to obtain a converted image;

[0017] When the field of view angle of the target camera is greater than the field of view angle of the reference camera, the environment image is centered and cropped according to the image conversion ratio to obtain a cropped image, and black borders are filled around the cropped image to the size of the environment image to obtain a converted image.

[0018] Therefore, when the field of view angle of the target camera is smaller than that of the reference camera, the converted image is obtained by first compressing and then filling black borders on all sides. When the field of view angle of the target camera is larger than that of the reference camera, the converted image is obtained by first cropping and then filling black borders on all sides.

[0019] Optionally, before the step of using the dedistorted image as the image captured by the reference camera, the data-driven image processing method further includes:

[0020] Performing target detection on the dedistorted image to obtain the position of the target to be detected;

[0021] Performing an inverse transformation on the dedistorted image after target detection to obtain an inverse transformed image and a position of the target to be detected in the inverse transformed image;

[0022] When the accuracy of the position corresponding to the target to be detected in the inverse-transformed image is greater than a preset position accuracy threshold, the step of using the dedistorted image as the image captured by the reference camera is performed.

[0023] Therefore, by performing an inverse dedistortion transformation on the dedistorted image, the inverse transformed image and the corresponding position of the target to be detected in the inverse transformed image are obtained. Then, the accuracy of the detection result obtained by performing target detection on the image captured by the reference camera is verified based on whether the corresponding position of the target to be detected in the inverse transformed image is accurate. When the detection result is accurate, the dedistorted image is used as the image captured by the reference camera.

[0024] Optionally, before the step of performing target detection on the dedistorted image to obtain the position of the target to be detected, the data-driven image processing method further includes:

[0025] performing data cleaning on the dedistorted image to obtain a cleaned image;

[0026] determining whether the cleaned image is an abnormal image, and if not, using the cleaned image as a screened image;

[0027] The step of performing target detection on the dedistorted image to obtain the position of the target to be detected includes:

[0028] Target detection is performed on the filtered image to obtain the position of the target to be detected.

[0029] Therefore, the purpose of improving image quality is achieved by performing data cleaning and image screening on the dedistorted image.

[0030] Optionally, the step of performing data cleaning on the dedistorted image to obtain a cleaned image includes:

[0031] Performing distortion transformation again on the dedistorted image to obtain a second dedistorted image;

[0032] The image after the second dedistortion is subjected to image enhancement processing to obtain a cleaned image.

[0033] In a second aspect, the present application provides a data-driven image processing device, the device comprising:

[0034] An acquisition module is used to acquire an environmental image captured by a target camera installed on the vehicle;

[0035] An image conversion ratio determination module is used to calculate the image conversion ratio based on the field of view angle of the target camera, the width of the environment image, the focal length of the reference camera and the actual width of the target to be detected;

[0036] An image conversion module, configured to perform image conversion on the environment image according to the image conversion ratio to obtain a converted image;

[0037] The dedistortion module is configured to dedistort the converted image to obtain a dedistorted image, and use the dedistorted image as the image captured by the reference camera.

[0038] Optionally, the image conversion ratio determination module includes:

[0039] A focal length calculation submodule, configured to calculate the focal length of the target camera based on the field of view angle of the target camera and the width of the environment image;

[0040] A ratio calculation submodule is used to calculate the ratio between the width of the target to be detected in the environment image and the width in the image captured by the reference camera based on the focal length, the actual width of the target to be detected and the focal length of the reference camera, and use the obtained ratio as the image conversion ratio.

[0041] Optionally, the image conversion module is specifically configured to:

[0042] When the field of view angle of the target camera is smaller than the field of view angle of the reference camera, compressing the environment image according to the image conversion ratio to obtain a compressed image, and filling black borders around the compressed image to the size of the environment image to obtain a converted image;

[0043] When the field of view angle of the target camera is greater than the field of view angle of the reference camera, the environment image is centered and cropped according to the image conversion ratio to obtain a cropped image, and black borders are filled around the cropped image to the size of the environment image to obtain a converted image.

[0044] Optionally, the data-driven image processing device further includes:

[0045] a target detection module, configured to perform target detection on the dedistorted image to obtain the position of the target to be detected before using the dedistorted image as the image captured by the reference camera;

[0046] An inverse conversion module is used to perform an inverse conversion of the dedistorted image after target detection, to obtain an inversely converted image and a position of the target to be detected in the inversely converted image;

[0047] A determination module is used to trigger the use of the dedistorted image as the image captured by the reference camera when the accuracy of the position corresponding to the target to be detected in the inverse transformed image is greater than a preset position accuracy threshold.

[0048] Optionally, the data-driven image processing device further includes:

[0049] a cleaning module, configured to perform data cleaning on the dedistorted image to obtain a cleaned image before performing target detection on the dedistorted image to obtain the position of the target to be detected;

[0050] a screening module, configured to determine whether the cleaned image is an abnormal image, and if not, use the cleaned image as a screened image;

[0051] The target detection module is specifically used to:

[0052] Target detection is performed on the filtered image to obtain the position of the target to be detected.

[0053] Optionally, the cleaning module includes:

[0054] A secondary dedistortion submodule, configured to perform a distortion transformation on the dedistorted image again to obtain a secondary dedistorted image;

[0055] The image enhancement processing submodule is used to perform image enhancement processing on the dedistorted image to obtain a cleaned image.

[0056] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a data-driven image processing method as provided in any embodiment of the present application.

[0057] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising:

[0058] one or more processors;

[0059] The processor is coupled to a storage device, and the storage device is used to store programs;

[0060] When the program is executed by the one or more processors, the electronic device implements the data-driven image processing method provided in any embodiment of the present application.

[0061] In a fifth aspect, an embodiment of the present application provides a vehicle, which includes a data-driven image processing method as provided in any embodiment of the present application, or includes an electronic device as provided in any embodiment of the present application.

[0062] From the above, it can be seen that the data-driven image processing method, device, equipment, medium and vehicle provided in the embodiments of the present application can obtain the environmental image captured by the target camera installed on the vehicle; calculate the image conversion ratio according to the field of view of the target camera, the width of the environmental image, the focal length of the reference camera and the actual width of the target to be detected; perform image conversion on the environmental image according to the image conversion ratio to obtain a converted image; dedistort the converted image to obtain a dedistorted image, and use the dedistorted image as the image captured by the reference camera. In the present application, the image conversion ratio is calculated according to the field of view of the target camera, the width of the environmental image, the focal length of the reference camera and the actual width of the target to be detected, and then the image captured by the reference camera is obtained by image conversion and dedistortion. The image data of the new camera, i.e., the reference camera, can be obtained without the installation of a physical camera, real road acquisition and data transmission, thereby reducing the image data acquisition cycle. In addition, all calculation processes in the embodiments of the present application are completed online, without the participation of physical cameras and vehicles, without the need for human and material resources, and reducing costs. Of course, it is not necessary to achieve all the advantages described above at the same time when implementing any product or method of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] To more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are merely some embodiments of the present application. Those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0064] Figure 1 A schematic diagram of a flow chart of a data-driven image processing method provided in an embodiment of the present application;

[0065] Figure 2 is the image of the field of view angle range of cameras with different field of view angles;

[0066] Figure 3 A schematic structural diagram of a data-driven image processing device provided in an embodiment of the present application;

[0067] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0068] Figure 5 A schematic structural diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0070] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments and drawings of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or device.

[0071] The embodiments of the present application disclose a data-driven image processing method, apparatus, device, medium, and vehicle, which can reduce the image data acquisition cycle and reduce costs. The embodiments of the present application are described in detail below.

[0072] Figure 1 This is a flow chart of a data-driven image processing method provided in an embodiment of the present application. The method is applied to an electronic device. The method specifically includes the following steps.

[0073] S110: Acquire an environment image captured by a target camera installed on the vehicle.

[0074] In an embodiment of the present application, an image captured by a camera on a vehicle can be converted into an image captured by any camera by performing image processing on the environment image captured by the camera.

[0075] In order to achieve this image conversion, it is necessary to obtain the environment image captured by the target camera installed on the vehicle.

[0076] The vehicle is any vehicle that requires image conversion, such as an autonomous vehicle. The target camera is the camera installed on the vehicle that is selected for image conversion. For example, the camera configuration of an autonomous vehicle is generally 3 forward-view cameras + 2 side-view cameras + 2 side-view cameras + 1 rear-view camera. The target camera can be any of these 8 cameras.

[0077] S120: Calculate the image conversion ratio according to the field of view angle of the target camera, the width of the environment image, the focal length of the reference camera, and the actual width of the target to be detected.

[0078] After acquiring the environment image, the image conversion ratio can be calculated based on the field of view angle of the target camera, the width of the environment image, the focal length of the reference camera, and the actual width of the target to be detected.

[0079] The reference camera is a virtual camera with the same camera parameters as the target physical camera. The target physical camera is a physical camera added to the vehicle to improve visual perception performance. Since the camera parameters of the target physical camera are known, the focal length of the virtual camera is also known. The target to be detected is the object in the environment image that needs to be detected. This target to be detected can be a pedestrian or a vehicle.

[0080] Specifically, step S120 may include:

[0081] The focal length of the target camera is calculated based on the field of view of the target camera and the width of the environment image;

[0082] The ratio between the width of the target to be detected in the environment image and the width in the image captured by the reference camera is calculated based on the focal length, the actual width of the target to be detected, and the focal length of the reference camera, and the obtained ratio is used as the image conversion ratio.

[0083] Figure 2 is the image of the field of view angle range of cameras with different field of view angles, Figure 2 The x direction is the forward direction, the y direction is the side direction, AB is the field of view angle range of the large field of view camera, and CD is the field of view angle range of the small field of view camera.

[0084] Depend on Figure 2 It can be seen that at the same detection distance, the same target to be detected has different widths in images captured by cameras with different field of view angles. Therefore, the image conversion ratio between images can be determined based on the different widths.

[0085] In order to calculate the image conversion ratio, it is necessary to calculate the focal length of the target camera based on the field of view angle of the target camera and the width of the environment image.

[0086] Specifically, the focal length of the target camera is calculated according to the following formula:

[0087]

[0088] Among them, f1 is the focal length of the target camera, imwidth is the width of the environment image, and fov is the field of view of the target camera.

[0089] After obtaining the focal length of the target camera, the ratio between the width of the target in the environment image and the width in the image captured by the reference camera can be calculated based on the focal length, the actual width of the target, and the focal length of the reference camera. The obtained ratio is used as the image conversion ratio.

[0090] Specifically, since the detection distance of the target to be detected is the same for both the target camera and the reference camera, the image conversion ratio can be calculated according to the following formula:

[0091]

[0092]

[0093]

[0094] Where d is the detection distance of the target to be detected, f1 is the focal length of the target camera, f2 is the focal length of the reference camera, size is the actual width of the target to be detected, w1 is the width of the target to be detected in the environment image, w2 is the width of the target to be detected in the image captured by the reference camera, and z is the image conversion ratio.

[0095] Therefore, the ratio between the width of the target object in the environment image and the width in the image captured by the reference camera, that is, the image conversion ratio, can be calculated based on the focal length of the target camera, the actual width of the target object, and the focal length of the reference camera.

[0096] S130: performing image conversion on the environment image according to the image conversion ratio to obtain a converted image.

[0097] After the image conversion ratio is obtained, the environment image can be converted according to the image conversion ratio to obtain a converted image.

[0098] Step S130 may include:

[0099] When the field of view angle of the target camera is smaller than that of the reference camera, the environment image is compressed according to the image conversion ratio to obtain a compressed image, and black borders are filled around the compressed image to the size of the environment image to obtain a converted image;

[0100] When the field of view angle of the target camera is larger than that of the reference camera, the environment image is centered and cropped according to the image conversion ratio to obtain a cropped image, and black borders are filled around the cropped image to the size of the environment image to obtain a converted image.

[0101] There are two situations for the conversion between images captured by cameras with different field of view angles:

[0102] The first case: the image captured by a camera with a small field of view is converted into an image captured by a camera with a large field of view.

[0103] Under the same conditions, the image content in the image captured by the camera with a small field of view angle is larger than that in the image captured by the camera with a large field of view angle. For example, the same pedestrian occupies 4 pixels in the image captured by the camera with a small field of view angle, but only 1 pixel in the image captured by the camera with a large field of view angle. Therefore, compression is required. That is, when the field of view angle of the target camera is smaller than that of the reference camera, the environment image is compressed according to the image conversion ratio to obtain a compressed image.

[0104] Since the image conversion ratio is calculated based on the focal length of the target camera, the actual width of the target to be detected, and the focal length of the reference camera, the size of the compressed image obtained by compressing the environmental image based on this image conversion ratio is exactly the size of the image that can be captured by a camera with a large field of view.

[0105] Since the size of the compressed image is smaller than the size of the uncompressed environment image after compression, it is necessary to fill black borders around the compressed image to the size of the environment image to obtain the converted image. In other words, the size of the converted image is the same as the size of the environment image.

[0106] The second case: the image captured by the camera with a large field of view is converted into the image captured by the camera with a small field of view.

[0107] Since under the same conditions, the image captured by the camera with a large field of view angle contains image content that cannot be captured by the camera with a small field of view angle, cropping is required. That is, when the field of view angle of the target camera is larger than that of the reference camera, the environment image is centered according to the image conversion ratio to obtain the cropped image.

[0108] Since the image conversion ratio is calculated based on the focal length of the target camera, the actual width of the target to be detected, and the focal length of the reference camera, the environment image is centered and cropped based on this image conversion ratio to obtain an image whose size is exactly the size of the image that can be captured by a camera with a small field of view, that is, it only contains image content that can be captured by a camera with a small field of view.

[0109] Since the size of the cropped image is smaller than the size of the uncropped image after the environment image is centered, it is necessary to fill black borders around the cropped image to the size of the environment image to obtain the converted image. In other words, the size of the converted image is the same as that of the environment image.

[0110] Therefore, when the field of view angle of the target camera is smaller than that of the reference camera, the converted image is obtained by first compressing and then filling black borders on all sides. When the field of view angle of the target camera is larger than that of the reference camera, the converted image is obtained by first cropping and then filling black borders on all sides.

[0111] S140: Dedistorting the converted image to obtain a dedistorted image, and using the dedistorted image as an image captured by a reference camera.

[0112] Since image distortion generally occurs during image conversion, after image conversion, the converted image needs to be dedistorted to obtain a dedistorted image. The dedistortion method may be to perform cylindrical projection on the converted image to obtain the dedistorted image.

[0113] After obtaining the dedistorted image, the dedistorted image can be used as the image captured by the reference camera.

[0114] As can be seen from the above content, the embodiment of the present application can obtain the environmental image captured by the target camera installed on the vehicle; calculate the image conversion ratio according to the field of view of the target camera, the width of the environmental image, the focal length of the reference camera and the actual width of the target to be detected; perform image conversion on the environmental image according to the image conversion ratio to obtain a converted image; dedistort the converted image to obtain a dedistorted image, and use the dedistorted image as the image captured by the reference camera. In the present application, the image conversion ratio is calculated according to the field of view of the target camera, the width of the environmental image, the focal length of the reference camera and the actual width of the target to be detected, and then the image captured by the reference camera is obtained by image conversion and dedistortion. The image data of the new camera, i.e., the reference camera, can be obtained without the installation of a physical camera, real road acquisition, and the return of the acquired data, thereby reducing the image data acquisition cycle. Moreover, all calculation processes of the embodiment of the present application are completed online, without the participation of a physical camera and a vehicle, without the expenditure of human and material resources, and thus reducing costs.

[0115] In one implementation, before the step of using the dedistorted image as the image captured by the reference camera in step S140, the method may further include:

[0116] Perform target detection on the dedistorted image to obtain the position of the target to be detected;

[0117] Performing an inverse transformation on the dedistorted image after target detection to obtain the inverse transformed image and the corresponding position of the target to be detected in the inverse transformed image;

[0118] When the accuracy of the position corresponding to the target to be detected in the inverse-transformed image is greater than a preset position accuracy threshold, the step of using the dedistorted image as an image captured by the reference camera is performed.

[0119] Since the purpose of obtaining the images captured by the reference camera is to subsequently improve the visual perception performance of the vehicle, the images captured by the reference camera can only be used to subsequently improve the visual perception performance of the vehicle if the detection results obtained by performing target detection on the images captured by the reference camera are accurate.

[0120] Therefore, in order to verify whether the dedistorted image can be used as the image captured by the reference camera, after obtaining the dedistorted image, it is necessary to perform target detection on the dedistorted image to obtain the position of the target to be detected. For example, the position of the target to be detected can be displayed in the form of a display box in the dedistorted image.

[0121] Among them, the method of performing target detection can be through a neural network model, and the embodiments of the present application do not impose any restrictions on this.

[0122] Since the reference camera is a virtual camera, in order to verify whether the detection results obtained by performing target detection on the images captured by the reference camera are accurate, it is necessary to convert the images captured by the reference camera into the original images of the target camera, that is, to perform inverse transformation on the dedistorted images after target detection to obtain the inverse transformed images.

[0123] The inverse transformation of the dedistortion is the inverse process of the dedistortion process. For example, if the dedistortion method is cylindrical projection, the inverse transformation of the dedistortion is the inverse transformation of the cylindrical projection.

[0124] Since the dedistorted image after target detection is dedistorted by inverse transformation, not only the dedistorted image is obtained after the inverse transformation, but also the position of the target to be detected in the dedistorted image can be obtained. For example, the position of the target to be detected in the dedistorted image can be displayed in the dedistorted image in the form of a display box.

[0125] In an embodiment of the present application, whether the detection result obtained by performing target detection on the image captured by the reference camera is accurate is verified based on whether the corresponding position of the target to be detected in the inverse-converted image is accurate, wherein the method for judging whether the corresponding position of the target to be detected in the inverse-converted image is accurate can be any existing position accuracy detection method, and the comparison in the embodiment of the present application does not impose any limitation.

[0126] If the accuracy of the target's position in the inverse-converted image exceeds the preset position accuracy threshold, the target detection result obtained by converting the reference camera's image into the target camera's original image is accurate. Therefore, the target detection result obtained by using the reference camera's image is also accurate. Therefore, using the reference camera's image to subsequently improve the vehicle's visual perception performance can achieve better results.

[0127] Since the detection result of the target detection on the image captured by the reference camera is accurate, the dedistorted image can be used as the image captured by the reference camera. That is, when the accuracy of the position corresponding to the target to be detected in the inverse transformed image is greater than the preset position accuracy threshold, the dedistorted image is used as the image captured by the reference camera.

[0128] Therefore, by performing an inverse dedistortion transformation on the dedistorted image after target detection, the inverse transformed image and the corresponding position of the target to be detected in the inverse transformed image are obtained. Then, the accuracy of the detection result obtained by performing target detection on the image captured by the reference camera is verified based on whether the corresponding position of the target to be detected in the inverse transformed image is accurate. When the detection result is accurate, the dedistorted image is used as the image captured by the reference camera.

[0129] In another implementation, before the step of performing target detection on the dedistorted image to obtain the position of the target to be detected, the method may further include:

[0130] Performing data cleaning on the dedistorted image to obtain a cleaned image;

[0131] Determine whether the cleaned image is an abnormal image, and if not, use the cleaned image as a screened image;

[0132] The step of performing target detection on the dedistorted image to obtain the position of the target to be detected includes:

[0133] Perform target detection on the filtered image to obtain the position of the target to be detected.

[0134] Since the image quality of the dedistorted image obtained after image conversion and dedistortion may be poor, in order to improve the image quality, data cleaning can be performed on the dedistorted image to obtain a cleaned image.

[0135] The data cleaning of the dedistorted image to obtain the cleaned image includes:

[0136] Performing distortion transformation on the dedistorted image again to obtain a dedistorted image again;

[0137] The image after further dedistortion is enhanced to obtain the cleaned image.

[0138] Since the dedistorted image may still be distorted, the dedistorted image can be subjected to distortion transformation again to obtain a second dedistorted image. Then, in order to improve the clarity of the image, the second dedistorted image can be subjected to image enhancement processing to obtain a cleaned image.

[0139] To ensure that the final image is normal, after obtaining the cleaned image, image screening is required. Specifically, the image screening process determines whether the cleaned image is abnormal. If not, the cleaned image is used as the screened image. The method for determining whether the cleaned image is abnormal can be any abnormal image detection method in the prior art, and the present embodiment does not impose any limitation on this method.

[0140] After image screening, target detection can be performed on the screened image to obtain the position of the target to be detected.

[0141] Therefore, the purpose of improving image quality is achieved by performing data cleaning and image screening on the dedistorted image.

[0142] Figure 3 The present invention provides a data-driven image processing device, see Figure 3 , the device comprises:

[0143] An acquisition module 310 is used to acquire an environment image captured by a target camera installed on a vehicle;

[0144] An image conversion ratio determination module 320 is configured to calculate an image conversion ratio based on the field of view of the target camera, the width of the environment image, the focal length of the reference camera, and the actual width of the target to be detected;

[0145] An image conversion module 330 is configured to perform image conversion on the environment image according to the image conversion ratio to obtain a converted image;

[0146] The dedistortion module 340 is configured to dedistort the converted image to obtain a dedistorted image, and use the dedistorted image as the image captured by the reference camera.

[0147] The device provided in the embodiment of the present application can obtain an environmental image captured by a target camera installed on a vehicle; calculate an image conversion ratio based on the field of view angle of the target camera, the width of the environmental image, the focal length of the reference camera, and the actual width of the target to be detected; perform image conversion on the environmental image based on the image conversion ratio to obtain a converted image; dedistort the converted image to obtain a dedistorted image, and use the dedistorted image as the image captured by the reference camera. In the present application, the image conversion ratio is calculated based on the field of view angle of the target camera, the width of the environmental image, the focal length of the reference camera, and the actual width of the target to be detected, and then the image captured by the reference camera is obtained by image conversion and dedistortion. The image data of the new camera, i.e., the reference camera, can be obtained without the need for physical camera installation, real road acquisition, and data transmission, thereby reducing the image data acquisition cycle. Moreover, all calculation processes in the embodiment of the present application are completed online, without the participation of physical cameras and vehicles, without the need for human and material resources, and thus reducing costs.

[0148] In one implementation, the image conversion ratio determination module 320 may include:

[0149] A focal length calculation submodule, configured to calculate the focal length of the target camera based on the field of view angle of the target camera and the width of the environment image;

[0150] A ratio calculation submodule is used to calculate the ratio between the width of the target to be detected in the environment image and the width in the image captured by the reference camera based on the focal length, the actual width of the target to be detected and the focal length of the reference camera, and use the obtained ratio as the image conversion ratio.

[0151] In one implementation, the image conversion module 330 may be specifically configured to:

[0152] When the field of view angle of the target camera is smaller than the field of view angle of the reference camera, compressing the environment image according to the image conversion ratio to obtain a compressed image, and filling black borders around the compressed image to the size of the environment image to obtain a converted image;

[0153] When the field of view angle of the target camera is greater than the field of view angle of the reference camera, the environment image is centered and cropped according to the image conversion ratio to obtain a cropped image, and black borders are filled around the cropped image to the size of the environment image to obtain a converted image.

[0154] In one implementation, the data-driven image processing apparatus may further include:

[0155] a target detection module, configured to perform target detection on the dedistorted image to obtain the position of the target to be detected before using the dedistorted image as the image captured by the reference camera;

[0156] An inverse conversion module is used to perform an inverse conversion of the dedistorted image after target detection, to obtain an inversely converted image and a position of the target to be detected in the inversely converted image;

[0157] A determination module is used to trigger the use of the dedistorted image as the image captured by the reference camera when the accuracy of the position corresponding to the target to be detected in the inverse transformed image is greater than a preset position accuracy threshold.

[0158] In one implementation, the data-driven image processing device further includes:

[0159] a cleaning module, configured to perform data cleaning on the dedistorted image to obtain a cleaned image before performing target detection on the dedistorted image to obtain the position of the target to be detected;

[0160] a screening module, configured to determine whether the cleaned image is an abnormal image, and if not, use the cleaned image as a screened image;

[0161] The target detection module is specifically used to:

[0162] Target detection is performed on the filtered image to obtain the position of the target to be detected.

[0163] In one implementation, the cleaning module includes:

[0164] A secondary dedistortion submodule, configured to perform a distortion transformation on the dedistorted image again to obtain a secondary dedistorted image;

[0165] The image enhancement processing submodule is used to perform image enhancement processing on the dedistorted image to obtain a cleaned image.

[0166] The above device embodiment corresponds to the method embodiment and has the same technical effects as the method embodiment. For detailed description, please refer to the method embodiment. The device embodiment is obtained based on the method embodiment. For detailed description, please refer to the method embodiment part and will not be repeated here.

[0167] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the electronic device includes:

[0168] one or more processors 410;

[0169] The processor 410 is coupled to a storage device 420 , and the storage device 420 is used to store programs;

[0170] When the program is executed by the one or more processors 410, the electronic device implements the data-driven image processing method provided in any embodiment of the present application.

[0171] Based on the above embodiments, another embodiment of the present application provides a vehicle, which includes a data-driven image processing device as provided in any embodiment of the present application, or includes an electronic device as provided in any embodiment of the present application.

[0172] Figure 5 A schematic diagram of a vehicle provided in an embodiment of the present application. Figure 5 As shown, the vehicle includes a speed sensor 51, an ECU (Electronic Control Unit) 52, a GPS (Global Positioning System) positioning device 53, and a T-Box (Telematics Box) 54. The speed sensor 51 measures vehicle speed and uses it as empirical speed for model training. The GPS positioning device 53 obtains the vehicle's current geographic location. The T-Box 64 acts as a gateway to communicate with the server. The ECU 52 executes the aforementioned data-driven image processing method.

[0173] In addition, the vehicle may also include a V2X (Vehicle-to-Everything) module 55, a radar 56, and a camera 57. The V2X module 55 is used to communicate with other vehicles and roadside equipment. The radar 56 or camera 57 is used to sense road environment information ahead and / or in other directions to obtain raw point cloud data. The radar 56 and / or camera 57 can be located at the front and / or rear of the vehicle.

[0174] Based on the above method embodiments, another embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a data-driven image processing method as provided in any embodiment of the present application.

[0175] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present application.

[0176] Those skilled in the art will appreciate that the modules in the apparatuses of the embodiments may be distributed in the apparatuses of the embodiments as described in the embodiments, or may be located in one or more apparatuses different from the embodiments with corresponding changes. The modules in the above embodiments may be combined into one module or further divided into multiple sub-modules.

[0177] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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 application.

Claims

1. A data-driven image processing method, characterized in that: The method comprises: Obtaining an environment image captured by a target camera installed on the vehicle; The image conversion ratio is calculated according to the field of view angle of the target camera, the width of the environment image, the focal length of the reference camera and the actual width of the target to be detected; Performing image conversion on the environment image according to the image conversion ratio to obtain a converted image; The converted image is dedistorted to obtain a dedistorted image, and the dedistorted image is used as the image captured by the reference camera.

2. The method according to claim 1, characterized in that The step of calculating the image conversion ratio according to the field of view angle of the target camera, the width of the environment image, the focal length of the reference camera and the actual width of the target to be detected comprises: Calculating the focal length of the target camera according to the field of view angle of the target camera and the width of the environment image; The ratio between the width of the target to be detected in the environment image and the width in the image captured by the reference camera is calculated according to the focal length, the actual width of the target to be detected and the focal length of the reference camera, and the obtained ratio is used as the image conversion ratio.

3. The method according to any one of claims 1 or 2, characterized in that The step of performing image conversion on the environment image according to the image conversion ratio to obtain a converted image comprises: When the field of view angle of the target camera is smaller than the field of view angle of the reference camera, compressing the environment image according to the image conversion ratio to obtain a compressed image, and filling black borders around the compressed image to the size of the environment image to obtain a converted image; When the field of view angle of the target camera is greater than the field of view angle of the reference camera, the environment image is centered and cropped according to the image conversion ratio to obtain a cropped image, and black borders are filled around the cropped image to the size of the environment image to obtain a converted image.

4. The method according to claim 1, characterized in that Before the step of using the dedistorted image as the image captured by the reference camera, the method further includes: Performing target detection on the dedistorted image to obtain the position of the target to be detected; Performing an inverse transformation of the dedistorted image after target detection to obtain an inverse transformed image and a corresponding position of the target to be detected in the inverse transformed image; When the accuracy of the position corresponding to the target to be detected in the inversely transformed image is greater than a preset position accuracy threshold, the step of using the dedistorted image as the image captured by the reference camera is performed.

5. The method according to claim 4, characterized in that Before the step of performing target detection on the dedistorted image to obtain the position of the target to be detected, the method further includes: Performing data cleaning on the dedistorted image to obtain a cleaned image; Determine whether the cleaned image is an abnormal image, and if not, use the cleaned image as a screened image; The step of performing target detection on the dedistorted image to obtain the position of the target to be detected comprises: Performing target detection on the filtered image to obtain the position of the target to be detected.

6. The method according to claim 5, characterized in that The step of performing data cleaning on the dedistorted image to obtain a cleaned image comprises: Performing distortion transformation again on the dedistorted image to obtain a second dedistorted image; The image after the second dedistortion is subjected to image enhancement processing to obtain a cleaned image.

7. A data-driven image processing device, characterized in that: The device comprises: An acquisition module is used to acquire an environmental image captured by a target camera installed on the vehicle; An image conversion ratio determination module is used to calculate the image conversion ratio according to the field of view angle of the target camera, the width of the environment image, the focal length of the reference camera and the actual width of the target to be detected; An image conversion module, used for performing image conversion on the environment image according to the image conversion ratio to obtain a converted image; The dedistortion module is used to dedistort the converted image to obtain a dedistorted image, and use the dedistorted image as the image captured by the reference camera.

8. The device according to claim 7, characterized in that The image conversion ratio determination module comprises: A focal length calculation submodule, used to calculate the focal length of the target camera according to the field of view angle of the target camera and the width of the environment image; The ratio calculation submodule is used to calculate the ratio between the width of the target to be detected in the environment image and the width in the image captured by the reference camera according to the focal length, the actual width of the target to be detected and the focal length of the reference camera, and use the obtained ratio as the image conversion ratio.

9. The device according to any one of claims 7 or 8, characterized in that The image conversion module is used for: When the field of view angle of the target camera is smaller than the field of view angle of the reference camera, compressing the environment image according to the image conversion ratio to obtain a compressed image, and filling black borders around the compressed image to the size of the environment image to obtain a converted image; When the field of view angle of the target camera is greater than the field of view angle of the reference camera, the environment image is centered and cropped according to the image conversion ratio to obtain a cropped image, and black borders are filled around the cropped image to the size of the environment image to obtain a converted image.

10. The device according to claim 7, characterized in that The device also includes: A target detection module, used for performing target detection on the dedistorted image to obtain the position of the target to be detected before using the dedistorted image as the image acquired by the reference camera; An inverse conversion module is used to perform an inverse conversion of the dedistorted image after target detection to obtain an inversely converted image and a corresponding position of the target to be detected in the inversely converted image; A determination module is used to trigger the use of the dedistorted image as the image captured by the reference camera when the accuracy of the position corresponding to the target to be detected in the inversely transformed image is greater than a preset position accuracy threshold.

11. The device according to claim 10, characterized in that The device also includes: A cleaning module, used for performing data cleaning on the dedistorted image to obtain a cleaned image before performing target detection on the dedistorted image to obtain the position of the target to be detected; A screening module, used for judging whether the cleaned image is an abnormal image, and if not, using the cleaned image as a screened image; The target detection module is specifically used for: Performing target detection on the filtered image to obtain the position of the target to be detected.

12. The device according to claim 11, characterized in that The cleaning module comprises: A second dedistortion submodule, used for performing distortion transformation on the dedistorted image again to obtain a second dedistorted image; The image enhancement processing submodule is used to perform image enhancement processing on the dedistorted image to obtain a cleaned image.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

14. An electronic device, characterized in that: The electronic device comprises: one or more processors; The processor is coupled to a storage device, and the storage device is used to store a program. When the program is executed by the one or more processors, the electronic device implements the method as described in any one of claims 1 to 6.

15. A vehicle, characterized in that: The vehicle comprises the apparatus as claimed in any one of claims 7 to 12, or comprises the electronic device as claimed in claim 14.

Citation Information

Patent Citations

  • Image processing device, image processing method, program for image processing device, storage medium, and image display device

    CN104011767A

  • Image conversion method and device, computer readable storage medium and electronic equipment

    CN112465716A

  • Image conversion method and device, computer readable storage medium and electronic equipment

    CN112489114A

  • Image processing apparatus, image display system, and image display method

    JP2012065228A

  • Simulating viewpoint transformations for sensor independent scene understanding in autonomous systems

    US20220092317A1