Image processing method and device

By tracking and querying the elements to be tracked in the bird's-eye view image of the vehicle, the element outline of the current frame is obtained, which solves the problem of wasting computing resources caused by different outlines of the same element in different frame images, improves the speed of the algorithm, and saves time.

CN118691640APending Publication Date: 2024-09-24BEIJING CO WHEELS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310286464.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

During vehicle driving, due to changes in the perspective of the bird's-eye image, the same element has different outlines in different frame images, which requires multiple identification and detection, consuming a lot of computing resources and increasing algorithm calculation time.

Method used

The target element in the bird's-eye image is tracked and queried through the set of elements to be tracked, and the outline of the element that has been identified before the current frame is obtained to avoid repeatedly identifying the same element in consecutive multiple frames of images and reduce the use of computing resources.

Benefits of technology

The algorithm operation speed is improved, the calculation time is saved, and the consumption of computing resources is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691640A
    Figure CN118691640A
Patent Text Reader

Abstract

The embodiment of the invention provides an image processing method and device, and relates to the technical field of image processing. The image processing method comprises the following steps: carrying out image acquisition on a driving environment of a vehicle to obtain an environment image; converting the environment image into an aerial view image; target elements in the aerial view image are tracked and inquired on the basis of a to-be-tracked element set, a first element set is obtained, and the first element set is a set composed of all elements belonging to the to-be-tracked element set in the target elements of the aerial view image; obtaining the contour of each element in the first element set according to the reference point set of each element in the to-be-tracked element set; the reference point set for any element includes a plurality of reference points set based on the contour of the element. According to the embodiment of the invention, when the target element contour is obtained from the aerial view image of the vehicle, the use of computing resources is reduced, the algorithm operation speed is improved, and the calculation time is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of image processing, and in particular to an image processing method and device. Background Art

[0002] At present, when determining the actual contours of various elements (such as lane lines, sidewalks and other road markings) in a BEV environment from a bird's eye view (BEV) image, it is necessary to perform global detection on each frame of the bird's eye view image to obtain the contours of all elements corresponding to each frame; since the perspective of obtaining the bird's eye view will change during the driving process of the vehicle, the same element will present different contours in different bird's eye views, and it is necessary to perform recognition and detection on the same element multiple times to obtain the corresponding contour of the element, and the calculation process will consume a lot of computing resources, and also increase the calculation time of the algorithm. Therefore, how to obtain the contours of all elements corresponding to each frame while reducing the consumption of computing resources has become an urgent problem to be solved. Summary of the invention

[0003] In view of this, an embodiment of the present application provides an image processing method and device for reducing the use of computing resources, improving algorithm operation speed, and saving computing time when acquiring the contour of target elements in a bird's-eye view image of a vehicle.

[0004] In a first aspect, an embodiment of the present application provides an image processing method, comprising:

[0005] Capturing images of the driving environment of the vehicle to obtain an environmental image;

[0006] Converting the environment image into a bird's-eye view image;

[0007] Performing tracking query on the target element in the bird's-eye view image based on the set of elements to be tracked, and acquiring a first set of elements, where the first set of elements is a set consisting of each element in the target element in the bird's-eye view image that belongs to the set of elements to be tracked;

[0008] The contour of each element in the first element set is obtained according to the reference point set of each element in the set of elements to be tracked; the reference point set of any element includes a plurality of reference points set based on the contour of the element.

[0009] As an optional implementation of the embodiment of the present application, converting the environment image into a bird's-eye view image includes:

[0010] Extracting environmental features from the environmental image;

[0011] The environmental features are converted into bird's-eye features in a bird's-eye view environment, and a bird's-eye image is generated based on the bird's-eye features.

[0012] As an optional implementation of the embodiment of the present application, the method further includes:

[0013] Performing detection query on the target element in the bird's-eye view image to obtain a second element set, where the second element set is a set consisting of each element in the target element of the bird's-eye view image that does not belong to the set of elements to be tracked;

[0014] Get the outline of each element in the second element set.

[0015] As an optional implementation of the embodiment of the present application, the method further includes: modeling according to the contours of each element in the first element set and the contours of each element in the second element set.

[0016] As an optional implementation of the embodiment of the present application, the step of performing a detection query on the target element in the bird's-eye view image to obtain a second element set includes:

[0017] Performing detection query on the target elements in the bird's-eye view image to obtain the third element set, where the third element set includes all the target elements in the bird's-eye view image;

[0018] A difference between the third element set and the to-be-tracked element set is calculated to obtain the second element set.

[0019] As an optional implementation of the embodiment of the present application, the method further includes:

[0020] A reference point set corresponding to each target element in the second element set is generated according to the contour of each target element in the second element set, and each element in the second element set is added to the set of elements to be tracked.

[0021] As an optional implementation of the embodiment of the present application, after performing tracking query on the target elements in the bird's-eye view image based on the set of elements to be tracked to obtain the first set of elements, the method further includes:

[0022] Determine whether there is an invalid element in the set of elements to be tracked, wherein the invalid element is an element in the set of elements to be tracked whose number of inactivation times is greater than or equal to a threshold number, and the number of inactivation times of any element is the number of frames of the bird's-eye view image in which the element is not tracked continuously;

[0023] If the invalid element exists in the set of elements to be tracked, the invalid element is deleted from the set of elements to be tracked.

[0024] As an optional implementation of the embodiment of the present application, acquiring the contour of each element in the first element set according to the reference point set of each element in the set of elements to be tracked includes:

[0025] Obtaining predicted positions of each reference point in a reference point set of a first element in the set of elements to be tracked;

[0026] Detecting each reference point in the reference point set of the first element according to the predicted position of each reference point in the reference point set of the first element to obtain a true position of each reference point in the reference point set of the first element;

[0027] According to the real position of each reference point in the reference point set of the first element, the contour of the second element in the first element set corresponding to the first element is obtained.

[0028] As an optional implementation of the embodiment of the present application, the obtaining the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked includes:

[0029] The position of each reference point in the reference point set of the first element is predicted according to the vehicle posture and odometer model corresponding to at least two frames of historical environment images to obtain the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked.

[0030] As an optional implementation of the embodiment of the present application, acquiring the contour of the second element corresponding to the first element in the first element set according to the real position of each reference point in the reference point set of the first element includes:

[0031] According to the real position of each reference point in the reference point set of the first element, obtaining the minimum circumscribed rectangle of each reference point in the reference point set of the first element;

[0032] The outline of the second element is determined according to the minimum circumscribed rectangle.

[0033] In a second aspect, an embodiment of the present application provides an image processing device, including:

[0034] A collection unit, used to collect images of the driving environment of the vehicle and obtain an environment image;

[0035] A conversion unit, used for converting the environment image into a bird's-eye view image;

[0036] a tracking unit, configured to perform tracking query on a target element in the bird's-eye view image based on the set of elements to be tracked, and obtain a first set of elements, where the first set of elements is a set consisting of elements in the target element of the bird's-eye view image that belong to the set of elements to be tracked;

[0037] The acquisition unit is used to acquire the contour of each element in the first element set according to the reference point set of each element in the element set to be tracked; the reference point set of any element includes a plurality of reference points set based on the contour of the element.

[0038] As an optional implementation of the embodiment of the present application, the conversion unit is specifically used to extract environmental features in the environmental image; convert the environmental features into bird's-eye features in a bird's-eye view environment, and generate a bird's-eye image based on the bird's-eye features.

[0039] As an optional implementation of the embodiment of the present application, the device also includes a detection unit, which is specifically used to perform detection query on the target elements in the bird's-eye view image, obtain a second element set, and the second element set is a set composed of each element in the target elements of the bird's-eye view image that does not belong to the set of elements to be tracked; obtain the contours of each element in the second element set.

[0040] As an optional implementation of the embodiment of the present application, the detection unit is also used to perform detection query on the target elements in the bird's-eye view image to obtain the third element set, and the third element set includes all the target elements in the bird's-eye view image; calculate the difference between the third element set and the element set to be tracked to obtain the second element set.

[0041] As an optional implementation of the embodiment of the present application, the device also includes a generation unit, which is specifically used to generate a reference point set corresponding to each target element in the second element set according to the contour of each target element in the second element set, and add each element in the second element set to the set of elements to be tracked.

[0042] As an optional implementation of the embodiment of the present application, the device also includes a deletion unit, which is specifically used to determine whether there is an invalid element in the set of elements to be tracked, and the invalid element is an element in the set of elements to be tracked whose deactivation times are greater than or equal to a threshold number, and the deactivation times of any element is the number of frames of the bird's-eye view image in which the element is not tracked continuously; if the invalid element exists in the set of elements to be tracked, the invalid element is deleted from the set of elements to be tracked.

[0043] As an optional implementation of the embodiment of the present application, the acquisition unit is specifically used to obtain the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked; detect each reference point in the reference point set of the first element according to the predicted position of each reference point in the reference point set of the first element, and obtain the true position of each reference point in the reference point set of the first element; according to the true position of each reference point in the reference point set of the first element, obtain the outline of the second element in the first element set corresponding to the first element.

[0044] As an optional implementation of an embodiment of the present application, the acquisition unit is specifically used to predict the position of each reference point in the reference point set of the first element based on the vehicle posture and odometer model corresponding to at least two frames of historical environment images, so as to obtain the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked.

[0045] As an optional implementation of the embodiment of the present application, the acquisition unit is specifically used to obtain the minimum enclosing rectangle of each reference point in the reference point set of the first element according to the actual position of each reference point in the reference point set of the first element; and determine the outline of the second element according to the minimum enclosing rectangle.

[0046] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the image processing method described in any one of the above embodiments when executing the computer program.

[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computing device, the computing device implements the image processing method described in any one of the above embodiments.

[0048] In a fifth aspect, an embodiment of the present application provides a vehicle, comprising: the image processing device described in the second aspect or the electronic device described in the third aspect.

[0049] The image processing method provided in the embodiment of the present application is specifically as follows: first, image acquisition is performed on the driving environment of the vehicle to obtain an environment image; the environment image is converted into a bird's-eye view image; based on the set of elements to be tracked, a target element in the bird's-eye view image is tracked and queried to obtain a first element set, where the first element set is a set composed of each element in the target element of the bird's-eye view image that belongs to the set of elements to be tracked; based on the reference point set of each element in the set of elements to be tracked, the contours of each element in the first element set are obtained; the reference point set of any element includes multiple reference points set based on the contour of the element. Since the same element will present different outlines in different bird's-eye images when the vehicle is driving, it is necessary to perform identification and detection on the same element multiple times to obtain the outline corresponding to the element. The embodiment of the present application tracks and queries the target elements in the bird's-eye image through a set of elements to be tracked, tracks the elements to be tracked among the elements to be tracked that have appeared before the current frame, and then obtains the outlines of each element in the set of elements to be tracked in the current frame based on the reference point set of each element in the set of elements to be tracked. In this way, it is avoided to identify the same element multiple times in multiple consecutive frames of bird's-eye images and then obtain the element outline. Therefore, the embodiment of the present application can reduce the use of computing resources, improve the algorithm operation speed, and save computing time when obtaining the outline of the target element in the bird's-eye view image of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application.

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0052] Figure 1 A scene architecture diagram of the image processing method provided in an embodiment of the present application;

[0053] Figure 2 One of the step flow charts of the image processing method provided in the embodiment of the present application;

[0054] Figure 3 The second step flow chart of the image processing method provided in the embodiment of the present application;

[0055] Figure 4 The third step flow chart of the image processing method provided in the embodiment of the present application;

[0056] Figure 5 This is a flowchart of the image processing method provided in the embodiment of the present application;

[0057] Figure 6 A hardware framework diagram of an image processing device provided in an embodiment of the present application;

[0058] Figure 7 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;

[0059] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0061] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0062] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In addition, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more.

[0063] It should be noted that, in this article, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0064] Based on the above, refer to Figure 1As shown, it is a scene architecture diagram of an image processing method provided by an embodiment of the present application, and the scene includes: a target vehicle 11, an image processing server 12, and the minimum rectangular outline of all target elements in the bird's-eye view image obtained by processing the image processing server, that is, the minimum rectangular outline of lane line 131, lane line 132, and lane line 133; the target vehicle 11 can be provided with multiple image acquisition devices, such as multiple wide-angle cameras, to collect the environment around the vehicle 11 and obtain an environmental image; the image processing server 12 can be provided with an encoder module, a bird's-eye view acquisition module, and a decoder module 14, the encoder module encodes the environmental image, obtains the environmental features in the environmental image, and then transmits the environmental features to the bird's-eye view image acquisition module, obtains the bird's-eye view image of the current frame in the BEV environment after the perspective conversion, and decodes the bird's-eye view through the decoder module to obtain the minimum rectangular outlines of lane lines 131, lane lines 132, and lane lines 133 in the bird's-eye view image of the current frame.

[0065] In some embodiments, the vehicle 11 can communicate data with the image processing server 12, so that the vehicle 11 sends the environmental image to the image processing server 12. The image processing server 12 can be integrated on the vehicle 11 or set in the cloud. The image processing device can communicate with the vehicle 11 via a local area network (LAN) or a wireless local area network (WLAN).

[0066] The present application embodiment provides an image processing method, referring to Figure 2 As shown, the execution subject of the image processing method is: an image processing device, which can be a computer, an image processing server or other equipment, or a partial functional module in a computer, an image processing server or other equipment. The image processing method includes the following steps S201-S204:

[0067] S201: Capture images of the driving environment of the vehicle to obtain an environment image.

[0068] In some embodiments, when the vehicle is traveling on a road with road markings, image acquisition devices installed around the outside of the vehicle can be used to capture images of the vehicle's driving environment; wherein the image acquisition devices can be multiple wide-angle cameras installed around the vehicle that can cover the entire field of view around the vehicle, so as to obtain environmental images of the vehicle's surroundings in RGB format.

[0069] S202: Convert the environment image into a bird's-eye view image.

[0070] Among them, the bird's eye view (Birds Eye View, BEV), also known as the God's perspective, is a perspective or coordinate system (3D) used to describe the perceived world. BEV is also used to refer to an end-to-end technology in the field of computer vision that uses a neural network to convert visual information from image space to BEV space; wherein, the conversion of the environmental image into a bird's eye view image adopts the idea of ​​BEV Former, based on multi-perspective and time-series BEV feature iterative optimization to obtain high-precision bird's eye view features, namely BEV features.

[0071] In some embodiments, the above S202 (converting the environment image into a bird's-eye view image) includes the following steps 1 and 2:

[0072] Step 1: extracting environmental features from the environmental image.

[0073] In some embodiments, the extraction of environmental features in the environmental image can be based on an image encoder of EfficientNet (a standardized model extension result) to encode the environmental image, obtain 2D features in the environmental image, namely, the environmental features, so as to facilitate subsequent conversion to the feature space of the bird's-eye view image to generate features of the bird's-eye view image.

[0074] Step 2: convert the environmental features into bird's-eye view features in a bird's-eye view environment, and generate a bird's-eye view image based on the bird's-eye view features.

[0075] In some embodiments, the conversion of the environmental features into bird's-eye features in a bird's-eye view environment is based on pre-set camera extrinsics to convert the environmental features under the camera's perspective into implicit representations under the perspective of the bird's-eye image, i.e., bird's-eye features.

[0076] S203: Track and query the target elements in the bird's-eye view image based on the set of elements to be tracked to obtain a first set of elements.

[0077] The first element set is a set consisting of the elements in the target element of the bird's-eye view image that belong to the set of elements to be tracked.

[0078] In some embodiments, the target elements of the bird's-eye view image may be: various road markings such as lane lines and crosswalk lines on the road on which the vehicle is traveling; any element in the set of elements to be tracked is an element that has been identified before the current frame, and the set of elements to be tracked is composed of the target elements that need to be tracked in the current frame and other elements in the set of elements to be tracked that do not need to be tracked except the target elements; then the target elements of the bird's-eye view image in the set of elements to be tracked are the elements that need to be tracked among the elements to be tracked that have been identified before the current frame, that is, the first element set.

[0079] In some embodiments, a tracking query detection head (Query) can be set based on the idea of ​​MUTR (multi-camera tracking framework based on 3D to 2D query), and the corresponding regression target calculation loss can be configured; the tracking query detection head can identify the elements that need to be tracked among the elements to be tracked that have appeared before the current frame (i.e., elements such as road markings), so as to track the elements that need to be tracked among the elements to be tracked that have appeared before the current frame.

[0080] S204: Acquire the contour of each element in the first element set according to the reference point set of each element in the set of elements to be tracked.

[0081] The reference point set of any element includes a plurality of reference points set based on the outline of the element.

[0082] In some embodiments, the reference point set corresponding to each element in the set of elements to be tracked can be obtained based on the reference point set of each element in the set of elements to be tracked, and the reference point set corresponding to each element in the first element set is obtained after identification, and then the contour corresponding to each element in the first element set is obtained based on the reference point set corresponding to each element in the first element set.

[0083] The image processing method provided in the embodiment of the present application is specifically as follows: first, image acquisition is performed on the driving environment of the vehicle to obtain an environment image; the environment image is converted into a bird's-eye view image; based on the set of elements to be tracked, a target element in the bird's-eye view image is tracked and queried to obtain a first element set, where the first element set is a set composed of each element in the target element of the bird's-eye view image that belongs to the set of elements to be tracked; based on the reference point set of each element in the set of elements to be tracked, the contours of each element in the first element set are obtained; the reference point set of any element includes multiple reference points set based on the contour of the element. Since the contours of all target elements need to be identified for each frame when acquiring the contours of target elements in a bird's-eye view image of a vehicle, an embodiment of the present application tracks and queries the target elements in the bird's-eye view image through a set of elements to be tracked, tracks the elements to be tracked among the elements to be tracked that have appeared before the current frame, and then acquires the contours of each element in the set of elements to be tracked in the current frame based on the reference point set of each element in the set of elements to be tracked. In this way, it is avoided to identify the same element multiple times in multiple consecutive frames of bird's-eye view images and then acquire the element contour. Therefore, the embodiment of the present application can reduce the use of computing resources, improve the algorithm operation speed, and save computing time when acquiring the contours of target elements in a bird's-eye view image of a vehicle.

[0084] As an extension and refinement of the above embodiment, refer to Figure 3 As shown, the embodiment of the present application provides an image processing method, which includes the following steps S301-S307:

[0085] S301: Capture images of the driving environment of the vehicle to obtain an environment image.

[0086] S302: Convert the environment image into a bird's-eye view image.

[0087] S303: Track and query the target elements in the bird's-eye view image based on the set of elements to be tracked to obtain a first set of elements.

[0088] The first element set is a set consisting of the elements in the target element of the bird's-eye view image that belong to the set of elements to be tracked.

[0089] S304: Acquire the contour of each element in the first element set according to the reference point set of each element in the set of elements to be tracked.

[0090] The reference point set of any element includes a plurality of reference points set based on the outline of the element.

[0091] S305: Detect and query the target elements in the bird's-eye view image to obtain a second element set.

[0092] The second element set is a set consisting of each element in the target element of the bird's-eye view image that does not belong to the set of elements to be tracked.

[0093] In some embodiments, the detection query of the target elements in the bird's-eye view image is implemented by detecting the target elements in the bird's-eye view image through an instance-level detection query detection head to detect a second set of elements in the target elements, that is, newly appearing target elements in the current frame.

[0094] In some embodiments, based on the idea of ​​MUTR, a detection query detection head can be set, and the corresponding regression target calculation loss can be configured; the target elements in the bird's-eye view image can be detected, and the detection head is a learned and trained detection head, which is independent of the bird's-eye view image input in each frame, and the detection query detection head is initialized at the beginning of each frame.

[0095] S306: Obtain the outline of each element in the second element set.

[0096] In some embodiments, the method for implementing the acquisition of the outline of each element in the second element set may refer to the above description of S204.

[0097] S307: Modeling according to the outlines of each element in the first element set and the outlines of each element in the second element set.

[0098] As an extension and refinement of the above embodiment, refer to Figure 4 As shown, the embodiment of the present application provides an image processing method, which includes the following steps S401-S409:

[0099] S401: Capture images of the driving environment of the vehicle to obtain an environment image.

[0100] S402: Convert the environment image into a bird's-eye view image.

[0101] S403: Track and query the target elements in the bird's-eye view image based on the set of elements to be tracked to obtain a first set of elements.

[0102] The first element set is a set consisting of the elements in the target element of the bird's-eye view image that belong to the set of elements to be tracked.

[0103] After the above S403 (tracking and querying the target elements in the bird's-eye view image based on the set of elements to be tracked to obtain a first set of elements), the image processing method further includes steps 1 and 2:

[0104] Step 1: determine whether there is an invalid element in the set of elements to be tracked, where the invalid element is an element in the set of elements to be tracked whose number of inactivation times is greater than or equal to a threshold number of times.

[0105] The number of deactivation times in any element is the number of frames of the bird's-eye view image in which the element is not tracked continuously.

[0106] In some embodiments, for example, the current bird's-eye view image is frame t, the invalid element is the target element that appeared before frame t but has disappeared in frame t, and the number of deactivation times in the elements of the set of elements to be tracked refers to the confidence score of the target element in the current frame being lower than the first preset value; when the threshold number of deactivation times is set to 3 times, that is, the number of deactivation times in any element is the number of frames of the bird's-eye view image in which the element is not tracked continuously is 3 frames, in frame t-2, the confidence score of lane line 1 identified is 30%, and the current first preset value is 50%, so the confidence score of lane line 1 30% is lower than the first preset value 50%, then it is determined that lane line 1 is deactivated in frame t-2; in frame t-1, lane line 1 identified in the current frame is The confidence score is 20%. When the confidence score 20% of lane line 1 is lower than the first preset value 50%, it is determined that the lane line 1 is inactivated in the t-1 frame; in the t frame, the confidence score of the lane line 1 identified in the current frame is 0%, so the confidence score 20% of lane line 1 is lower than the first preset value 50%, then it is determined that the lane line 1 is inactivated in the t frame; therefore, the number of inactivations of the lane line 1 in the current frame has accumulated to 3 times, therefore, it is determined that the lane line 1 is invalid; for another example, the current bird's-eye view image is the t frame, the first preset value is 50%, so the confidence score 80% of lane line 2 is greater than the first preset value 50%, then lane line 2 is not an inactivated element, and in the t+1 frame, it is necessary to continue tracking lane line 2.

[0107] Step 2: If the invalid element exists in the set of elements to be tracked, the invalid element is deleted from the set of elements to be tracked.

[0108] In some embodiments, based on the determination in the embodiment of step one above that lane line 1 is already an invalid element, the lane line 1 is deleted from the set to be tracked, and there is no need to continue tracking lane line 1 in the bird's-eye view image. By timely deleting invalid elements in the elements to be tracked, the occupancy of computing resources can be reduced and the algorithm calculation speed can be improved.

[0109] S404: Acquire the contour of each element in the first element set according to the reference point set of each element in the set of elements to be tracked.

[0110] The reference point set of any element includes a plurality of reference points set based on the outline of the element.

[0111] S405: Detect and query the target elements in the bird's-eye view image to obtain the third element set.

[0112] The third element set includes all the target elements in the bird's-eye view image.

[0113] In some embodiments, the detection query of the target elements in the bird's-eye view image can be implemented by detecting the bird's-eye view image through an instance-level detection query detection head to obtain all target elements in the bird's-eye view image, and the all target elements include all road markings in the bird's-eye view image.

[0114] S406: Calculate the difference between the third element set and the to-be-tracked element set to obtain the second element set.

[0115] In some embodiments, the second element set refers to elements that have not been detected in the frame before the current frame, that is, elements that newly appear in the current frame, the third element set is all target elements of the current frame, and the set of elements to be tracked is the target elements that have appeared before the current frame among all target elements, so the difference between the set of all target elements and the target elements that appeared before the current frame is the set of target elements that newly appear in the current frame.

[0116] S407: Obtain the outline of each element in the second element set.

[0117] In some embodiments, the method for implementing the acquisition of the outline of each element in the second element set may refer to the above description of S204.

[0118] S408: Generate a reference point set corresponding to each target element in the second element set according to the contour of each target element in the second element set, and add each element in the second element set to the set of elements to be tracked.

[0119] In some embodiments, the second element set is the target elements that appear newly in the current frame compared to the previous frame. After obtaining the contours of each target element in the second element set, each element in the second element set is added to the set of elements to be tracked to facilitate tracking in the next frame without having to redetermine the contours.

[0120] S409: Modeling according to the outlines of each element in the first element set and the outlines of each element in the second element set.

[0121] As an extension and refinement of the above embodiment, the above embodiment provides corresponding Figure 4 Based on Figure 5 As shown, the implementation of S404 (obtaining the contour of each element in the first element set according to the reference point set of each element in the set of elements to be tracked) may include the following S501-S503:

[0122] S501: Obtain predicted positions of each reference point in a reference point set of a first element in the set of elements to be tracked.

[0123] In the above S501, the implementation method of obtaining the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked may be:

[0124] The position of each reference point in the reference point set of the first element is predicted according to the vehicle posture and odometer model corresponding to at least two frames of historical environment images to obtain the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked.

[0125] In some embodiments, the vehicle is driving and its posture changes according to the vehicle speed. Therefore, according to the vehicle posture change, the position of each reference point in the reference point set of the first element can be predicted based on the odometer model, and the position of each reference point in the reference point set of the first element can be further predicted to obtain the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked.

[0126] In an embodiment of the present application, by obtaining the predicted positions of each reference point in the reference point set of the first element in the set of elements to be tracked, it is possible to obtain the predicted positions of each reference point in the reference point set of the first element through the vehicle posture and odometer model corresponding to at least two frames of historical environment images when the first element is not recognized and detected in the current frame due to occlusion or the like, so as to improve the stability of obtaining the contour of the target element in the current vehicle driving environment.

[0127] S502: Detect each reference point in the reference point set of the first element according to the predicted position of each reference point in the reference point set of the first element to obtain the actual position of each reference point in the reference point set of the first element.

[0128] In some embodiments, the true position of each reference point in the reference point set of the first element is obtained based on the predicted position of each reference point in the reference point set of the first element, in order to verify whether the predicted position of each reference point in the reference point set of the first element is compared with the true value of each reference point in the reference point set of the first element in the current frame. If the error between the predicted position of each reference point in the reference point set of the first element and the true value of each reference point in the reference point set of the first element is within a threshold range, the predicted position of each reference point in the reference point set of the first element is determined to be the true position.

[0129] S503: Acquire a contour of a second element in the first element set corresponding to the first element according to the real position of each reference point in the reference point set of the first element.

[0130] In the above S503, the method for obtaining the contour of the second element corresponding to the first element in the first element set includes the following steps A and B:

[0131] Step A: acquiring the minimum circumscribed rectangle of each reference point in the reference point set of the first element according to the actual position of each reference point in the reference point set of the first element.

[0132] Step B: determining the outline of the second element according to the minimum circumscribed rectangle.

[0133] In some embodiments, features corresponding to the second element in the bird's-eye view image may be cut out within the area of ​​the minimum circumscribed rectangle corresponding to the second element, and a MASK RCNN (an instance segmentation algorithm model) model may be used for auxiliary training of segmentation tasks.

[0134] Based on the same inventive concept, as an implementation of the above method, an embodiment of the present invention further provides an image processing device, which corresponds to the above method embodiment. For ease of reading, this embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the image processing device in this embodiment can correspond to all the contents of the above method embodiment.

[0135] The present application provides an image processing device. Figure 6 is a structural diagram of the image processing device, such as Figure 6 As shown, the image processing device 600 includes:

[0136] The acquisition unit 601 is used to acquire images of the driving environment of the vehicle and obtain an environment image;

[0137] A conversion unit 602, configured to convert the environment image into a bird's-eye view image;

[0138] A tracking unit 603 is configured to perform tracking query on a target element in the bird's-eye view image based on the set of elements to be tracked, and obtain a first set of elements, where the first set of elements is a set consisting of elements in the target element of the bird's-eye view image that belong to the set of elements to be tracked;

[0139] The acquisition unit 607 is used to acquire the contour of each element in the first element set according to the reference point set of each element in the set of elements to be tracked; the reference point set of any element includes multiple reference points set based on the contour of the element.

[0140] As an optional implementation of the embodiment of the present application, the conversion unit 602 is specifically used to extract environmental features in the environmental image; convert the environmental features into bird's-eye features in a bird's-eye view environment, and generate a bird's-eye image based on the bird's-eye features.

[0141] As an optional implementation of the present application, refer to Figure 7 As shown, the device also includes a detection unit 604, which is specifically used to perform a detection query on the target elements in the bird's-eye view image, obtain a second element set, and the second element set is a set composed of each element in the target elements of the bird's-eye view image that does not belong to the set of elements to be tracked; obtain the contours of each element in the second element set.

[0142] As an optional implementation of the embodiment of the present application, the detection unit 604 is also used to perform detection query on the target elements in the bird's-eye view image to obtain the third element set, and the third element set includes all the target elements in the bird's-eye view image; calculate the difference between the third element set and the element set to be tracked to obtain the second element set.

[0143] As an optional implementation of the present application, refer to Figure 7 As shown, the device also includes a generating unit 605, which is specifically used to generate a reference point set corresponding to each target element in the second element set according to the contour of each target element in the second element set, and add each element in the second element set to the set of elements to be tracked.

[0144] As an optional implementation of the present application, refer to Figure 7As shown, the device also includes a deleting unit 606, which is specifically used to determine whether there is an invalid element in the set of elements to be tracked, and the invalid element is an element in the set of elements to be tracked whose number of inactivation times is greater than or equal to a threshold number, and the number of inactivation times in any element is the number of frames of the bird's-eye view image in which the element is not tracked continuously; if the invalid element exists in the set of elements to be tracked, the invalid element is deleted from the set of elements to be tracked.

[0145] As an optional implementation of the embodiment of the present application, the acquisition unit 607 is specifically used to obtain the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked; detect each reference point in the reference point set of the first element according to the predicted position of each reference point in the reference point set of the first element, and obtain the actual position of each reference point in the reference point set of the first element; according to the actual position of each reference point in the reference point set of the first element, obtain the outline of the second element in the first element set corresponding to the first element.

[0146] As an optional implementation of an embodiment of the present application, the acquisition unit 607 is specifically used to predict the position of each reference point in the reference point set of the first element based on the vehicle posture and odometer model corresponding to at least two frames of historical environment images, so as to obtain the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked.

[0147] As an optional implementation of the embodiment of the present application, the acquisition unit 607 is specifically used to obtain the minimum enclosing rectangle of each reference point in the reference point set of the first element according to the actual position of each reference point in the reference point set of the first element; and determine the outline of the second element according to the minimum enclosing rectangle.

[0148] Based on the same inventive concept, an embodiment of the present application also provides an electronic device. Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 8 As shown, the electronic device provided in this embodiment includes: a memory 801 and a processor 802, wherein the memory 801 is used to store a computer program; and the processor 802 is used to execute the image processing method provided in the above embodiment when executing the computer program.

[0149] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computing device implements the image processing method provided in the above embodiment.

[0150] Based on the same inventive concept, an embodiment of the present application further provides a vehicle, which includes the image processing device provided by the above embodiment or the electronic device provided by the above embodiment.

[0151] 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 combining 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 that include computer-usable program code.

[0152] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0153] The memory may include non-permanent memory 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.

[0154] Computer readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the 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 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.

[0155] 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 it. 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An image processing method, It is characterized in that include: Capturing images of the driving environment of the vehicle to obtain an environmental image; Converting the environment image into a bird's-eye view image; Performing tracking query on the target element in the bird's-eye view image based on the set of elements to be tracked, and acquiring a first set of elements, where the first set of elements is a set consisting of each element in the target element in the bird's-eye view image that belongs to the set of elements to be tracked; The contour of each element in the first element set is obtained according to the reference point set of each element in the set of elements to be tracked; the reference point set of any element includes a plurality of reference points set based on the contour of the element.

2. The method according to claim 1, wherein the environment image is converted into a bird's-eye view image. include: Extracting environmental features from the environmental image; The environmental features are converted into bird's-eye features in a bird's-eye view environment, and a bird's-eye image is generated based on the bird's-eye features.

3. The method according to claim 1, It is characterized in that The method further comprises: Performing detection query on the target element in the bird's-eye view image to obtain a second element set, where the second element set is a set consisting of each element in the target element of the bird's-eye view image that does not belong to the set of elements to be tracked; Get the outline of each element in the second element set.

4. The method according to claim 3, It is characterized in that The method further includes: modeling according to the contours of each element in the first set of elements and the contours of each element in the second set of elements.

5. The method according to claim 3, It is characterized in that The step of performing detection query on the target elements in the bird's-eye view image to obtain a second element set includes: Performing detection query on the target elements in the bird's-eye view image to obtain a third element set, where the third element set includes all the target elements in the bird's-eye view image; A difference between the third element set and the to-be-tracked element set is calculated to obtain the second element set.

6. The method according to claim 3, It is characterized in that The method further comprises: A reference point set corresponding to each target element in the second element set is generated according to the contour of each target element in the second element set, and each element in the second element set is added to the set of elements to be tracked.

7. The method according to claim 1, It is characterized in that After performing tracking query on the target elements in the bird's-eye view image based on the set of elements to be tracked to obtain the first set of elements, the method further includes: Determine whether there is an invalid element in the set of elements to be tracked, wherein the invalid element is an element in the set of elements to be tracked whose number of inactivation times is greater than or equal to a threshold number, and the number of inactivation times of any element is the number of frames of the bird's-eye view image in which the element is not tracked continuously; If the invalid element exists in the set of elements to be tracked, the invalid element is deleted from the set of elements to be tracked.

8. The method according to claim 1, It is characterized in that The acquiring, according to the reference point set of each element in the set of elements to be tracked, the contour of each element in the first set of elements comprises: Obtaining predicted positions of each reference point in a reference point set of a first element in the set of elements to be tracked; Detecting each reference point in the reference point set of the first element according to the predicted position of each reference point in the reference point set of the first element to obtain a true position of each reference point in the reference point set of the first element; According to the real position of each reference point in the reference point set of the first element, the contour of the second element in the first element set corresponding to the first element is obtained.

9. The method according to claim 8, It is characterized in that The obtaining of the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked includes: The position of each reference point in the reference point set of the first element is predicted according to the vehicle posture and odometer model corresponding to at least two frames of historical environment images to obtain the predicted position of each reference point in the reference point set of the first element in the set of elements to be tracked.

10. The method according to claim 8, It is characterized in that Acquiring, according to the real position of each reference point in the reference point set of the first element, a contour of a second element in the first element set corresponding to the first element, comprising: According to the real position of each reference point in the reference point set of the first element, obtaining the minimum circumscribed rectangle of each reference point in the reference point set of the first element; The outline of the second element is determined according to the minimum circumscribed rectangle.

11. An image processing device, It is characterized in that include: A collection unit, used to collect images of the driving environment of the vehicle and obtain an environment image; A conversion unit, used for converting the environment image into a bird's-eye view image; a tracking unit, configured to perform tracking query on a target element in the bird's-eye view image based on the set of elements to be tracked, and obtain a first set of elements, where the first set of elements is a set consisting of elements in the target element of the bird's-eye view image that belong to the set of elements to be tracked; The acquisition unit is used to acquire the contour of each element in the first element set according to the reference point set of each element in the element set to be tracked; the reference point set of any element includes a plurality of reference points set based on the contour of the element.

12. An electronic device, It is characterized in that include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the image processing method according to any one of claims 1 to 10 when executing the computer program.

13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the image processing method according to any one of claims 1 to 10.

14. A vehicle, It is characterized in that include: The image processing device according to claim 11 or the electronic device according to claim 12.

Citation Information

Patent Citations

  • Lane line detection method and device

    CN112906583A

  • Traveling path recognition device, automobile, and traveling path recognition method

    JP2010191661A

  • Techniques for using a simple neural network model and standard camera for image detection in autonomous driving

    US20200202540A1