Target tracking method, device, equipment and storage medium
By using laser point cloud data and vehicle positioning information to track target objects in autonomous vehicles, the problem of misidentification of vehicles with the same appearance is solved and tracking accuracy is improved.
Patent Information
- Application Number
- CN202110322156.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-25
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-03-25
AI Technical Summary
It is difficult for autonomous vehicles to accurately track different vehicles with the same appearance while driving, resulting in inaccurate target object tracking results.
By acquiring images of the vehicle's external environment, the image border of the target object is determined, and tracking is performed based on laser point cloud data and vehicle positioning information to avoid mistaking different vehicles with the same appearance for the same vehicle.
It improves the accuracy of target object tracking and can correctly distinguish different vehicles with the same appearance passing by.
Smart Images

Figure CN113066100B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving, and in particular to a target tracking method, device, equipment and storage medium. Background Art
[0002] In the related art, an autonomous vehicle can use an on-board camera to shoot multiple frames of images outside the vehicle while driving, and track the target object (such as other vehicles passing by the autonomous vehicle) by detecting the corresponding relationship between the target object in the multiple frames of images. However, in actual applications, since the autonomous vehicle is also in a driving state, it may not be able to distinguish different vehicles with the same appearance passing by. That is, multiple vehicles of the same model that pass by the vehicle one after another are likely to be mistaken for the same vehicle because they all appear in the same position of the captured image (such as the lower right corner of the image), which will obviously lead to inaccurate tracking results of the target object. Summary of the invention
[0003] In view of this, the present invention proposes a target tracking method, device, equipment and storage medium to solve the above technical problems.
[0004] In order to achieve the above object, the technical solution adopted by the present invention is:
[0005] According to a first aspect of an embodiment of the present invention, a target tracking method is proposed, comprising:
[0006] Acquire an image of the current vehicle's external environment;
[0007] Determining an image bounding box of a target object in the image;
[0008] Determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained by scanning the external environment based on a laser radar;
[0009] The target object is tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle.
[0010] In one embodiment, determining an image border of a target object in the image includes:
[0011] The image is input into a pre-trained neural network, and the image border of the target object is determined based on the output result of the neural network.
[0012] In one embodiment, determining the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame includes:
[0013] Determine the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image frame;
[0014] The distance between the target object and the current vehicle is determined based on the point cloud data of the target object in a pixel coordinate system.
[0015] In one embodiment, the image is acquired based on a camera;
[0016] The step of determining the point cloud data of the target object in a pixel coordinate system based on the currently acquired laser point cloud data and the image frame includes:
[0017] Based on a first relationship between a pre-calibrated laser radar coordinate system and a camera coordinate system, converting laser point cloud data in the laser radar coordinate system to the camera coordinate system to obtain laser point cloud data in the camera coordinate system;
[0018] Based on a pre-calibrated second relationship between the camera coordinate system and the image coordinate system, converting the laser point cloud data in the camera coordinate system to the image coordinate system to obtain the laser point cloud data in the image coordinate system;
[0019] Based on a pre-calibrated third relationship between the image coordinate system and the pixel coordinate system, converting the laser point cloud data in the image coordinate system to the pixel coordinate system to obtain the laser point cloud data in the pixel coordinate system;
[0020] The laser point cloud data in the pixel coordinate system is matched with the image frame to obtain the point cloud data of the target object in the pixel coordinate system.
[0021] In one embodiment, tracking the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle includes:
[0022] Projecting the image frame onto a map coordinate system based on the distance between the target object and the current vehicle to obtain the image frame in the map coordinate system;
[0023] The target object is tracked based on the positioning information of the current vehicle and the image frame in the map coordinate system.
[0024] According to a second aspect of an embodiment of the present invention, a target tracking device is provided, comprising:
[0025] An environment image acquisition module is used to acquire an image of the current vehicle's external environment;
[0026] An image border determination module, used to determine an image border of a target object in the image;
[0027] A vehicle distance determination module, used to determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained based on laser radar scanning the external environment;
[0028] The target object tracking module is used to track the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle.
[0029] In one embodiment, the image border determination module is further used to input the image into a pre-trained neural network, and determine the image border of the target object based on the output result of the neural network.
[0030] In one embodiment, the vehicle distance determination module includes:
[0031] A point cloud data determination unit, configured to determine the point cloud data of the target object in a pixel coordinate system based on the currently acquired laser point cloud data and the image frame;
[0032] The vehicle distance determination unit is used to determine the distance between the target object and the current vehicle based on the point cloud data of the target object in a pixel coordinate system.
[0033] In one embodiment, the image is acquired based on a camera;
[0034] The point cloud data determination unit is further used for:
[0035] Based on a first relationship between a pre-calibrated laser radar coordinate system and a camera coordinate system, converting laser point cloud data in the laser radar coordinate system to the camera coordinate system to obtain laser point cloud data in the camera coordinate system;
[0036] Based on a pre-calibrated second relationship between the camera coordinate system and the image coordinate system, converting the laser point cloud data in the camera coordinate system to the image coordinate system to obtain the laser point cloud data in the image coordinate system;
[0037] Based on a pre-calibrated third relationship between the image coordinate system and the pixel coordinate system, converting the laser point cloud data in the image coordinate system to the pixel coordinate system to obtain the laser point cloud data in the pixel coordinate system;
[0038] The laser point cloud data in the pixel coordinate system is matched with the image frame to obtain the point cloud data of the target object in the pixel coordinate system.
[0039] In one embodiment, the target object tracking module includes:
[0040] An image frame acquisition unit, configured to project the image frame onto a map coordinate system based on the distance between the target object and the current vehicle, so as to obtain the image frame in the map coordinate system;
[0041] The target object tracking unit is used to track the target object based on the positioning information of the current vehicle and the image frame in the map coordinate system.
[0042] According to a third aspect of an embodiment of the present invention, an electronic device is provided, the electronic device comprising:
[0043] processor;
[0044] a memory configured to store processor-executable instructions;
[0045] Wherein, the processor is configured to:
[0046] Acquire an image of the current vehicle's external environment;
[0047] Determining an image bounding box of a target object in the image;
[0048] Determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained by scanning the external environment based on a laser radar;
[0049] The target object is tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle.
[0050] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is processed by a processor, the following is implemented:
[0051] Acquire an image of the current vehicle's external environment;
[0052] Determining an image bounding box of a target object in the image;
[0053] Determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained by scanning the external environment based on a laser radar;
[0054] The target object is tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle.
[0055] Compared with the prior art, the present invention obtains an image of the external environment of the current vehicle, determines the image frame of the target object in the image, and then determines the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame, and then tracks the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle. Since the target object is tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle, rather than just based on the image of the target object, it can avoid mistaking different vehicles with the same appearance for the same vehicle, that is, it can distinguish different vehicles with the same appearance passing by, thereby improving the accuracy of tracking the target object. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A flow chart showing a target tracking method according to an exemplary embodiment of the present invention is shown;
[0057] Figure 2 A schematic diagram showing how to determine the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame according to the present invention;
[0058] Figure 3 A schematic diagram showing how to determine the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image frame according to the present invention;
[0059] Figure 4 A schematic diagram showing how to track the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle according to the present invention;
[0060] Figure 5 A structural block diagram of a target tracking device according to an exemplary embodiment of the present invention is shown;
[0061] Figure 6 A structural block diagram of a target tracking device according to another exemplary embodiment of the present invention is shown;
[0062] Figure 7 A structural block diagram of an electronic device according to an exemplary embodiment of the present invention is shown. DETAILED DESCRIPTION
[0063] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the protection scope of the present invention.
[0064] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0065] It should be understood that although the terms first, second, etc. may be used to describe various structures in the present invention, these structures should not be limited to these terms. These terms are only used to distinguish structures of the same type from each other.
[0066] Figure 1 The flowchart of the target tracking method according to an exemplary embodiment of the present invention is shown. The method of this embodiment can be applied to a terminal device with data processing function (such as a vehicle-mounted terminal, a smart phone or a tablet computer, etc.) or a server (such as a server cluster composed of one server or multiple servers, etc.). Figure 1 As shown, the method includes the following steps S101-S104:
[0067] In step S101 , an image of the current vehicle external environment is acquired.
[0068] In this embodiment, an image of the external environment of the current vehicle may be captured by an image acquisition device pre-set on the current vehicle, and then the terminal device or the server may obtain the image captured by the image acquisition device.
[0069] Among them, the above-mentioned preset image acquisition device may include a vehicle-mounted camera and other devices, which is not limited in this embodiment.
[0070] It is worth noting that the above-mentioned image may include a single image or a video containing multiple frames of continuous images, and the image type may include JPEG, PNG, GIF, BMP, etc., which is not limited in this embodiment.
[0071] In step S102, an image frame of the target object is determined in the image.
[0072] In this embodiment, after acquiring the image of the current vehicle external environment, the image frame of the target object can be determined in the image.
[0073] For example, after determining the target object to be tracked, the image frame of the target object can be determined in the acquired image in a preset manner. The target object can be a pedestrian or a vehicle selected by the current user, and this embodiment does not limit this.
[0074] It is worth noting that the above-mentioned preset method can be a manual annotation method, or can also be an automatic annotation mode. For example, a neural network for determining the image border of the target object can be pre-trained based on a sample image. Then, after the trained neural network is obtained, the above-mentioned image can be input into the pre-trained neural network, and then the image border of the target object can be determined based on the output result of the neural network.
[0075] In step S103, the distance between the target object and the current vehicle is determined based on the currently acquired laser point cloud data and the image frame.
[0076] In this embodiment, after the image frame of the target object is determined in the image, the distance between the target object and the current vehicle can be determined based on the currently acquired laser point cloud data and the image frame.
[0077] The laser point cloud data includes point cloud data obtained by scanning the external environment based on a laser radar.
[0078] For example, during the driving process of the current vehicle, the laser radar pre-installed on the current vehicle can be used to scan the external environment of the current vehicle to obtain point cloud data, and then the distance between the current vehicle and various objects in the external environment can be determined based on the point cloud data. On this basis, the currently acquired laser point cloud data can be matched with the image frame in the above image to determine the laser point cloud data of the object (i.e., the target object) in the image frame. In this way, the distance between the target object and the current vehicle can be determined through the laser point cloud data of the target object.
[0079] In step S104, the target object is tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle.
[0080] In this embodiment, after the distance between the target object and the current vehicle is determined based on the currently acquired laser point cloud data and the image border, the target object can be tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle.
[0081] For example, the positioning information of the current vehicle can be obtained through a positioning device preset on the current vehicle or vehicle-mounted terminal device. The preset positioning device can be set based on actual needs, such as a global positioning system (GPS) device, etc., which is not limited in this embodiment.
[0082] In one embodiment, the method of tracking the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle in the above step S104 can also refer to the following Figure 4 The illustrated embodiment will not be described in detail here.
[0083] It can be seen from the above description that the method of this embodiment obtains an image of the external environment of the current vehicle, determines the image frame of the target object in the image, and then determines the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame, and then tracks the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle. Since the target object is tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle, rather than just based on the image of the target object, it can avoid mistaking different vehicles with the same appearance for the same vehicle, that is, it can distinguish different vehicles with the same appearance passing by, thereby improving the accuracy of tracking the target object.
[0084] Figure 2 The schematic diagram of how to determine the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame according to the present invention is shown. Based on the above embodiment, this embodiment takes how to determine the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame as an example for exemplary description. Figure 2 As shown, the above step S103 of determining the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame may include the following steps S201-S202:
[0085] In step S201, point cloud data of the target object in a pixel coordinate system is determined based on the currently acquired laser point cloud data and the image frame.
[0086] In this embodiment, after the image border of the target object is determined in the image and the point cloud data is obtained based on the laser radar scanning of the external environment of the current vehicle, the laser point cloud data can be matched with the image border to obtain the point cloud data of the target object in the pixel coordinate system.
[0087] In another embodiment, the method of determining the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image frame in the above step S201 can also refer to the following Figure 3 The illustrated embodiment will not be described in detail here.
[0088] In step S202, the distance between the target object and the current vehicle is determined based on the point cloud data of the target object in the pixel coordinate system.
[0089] In this embodiment, after the point cloud data of the target object in the pixel coordinate system is determined based on the currently acquired laser point cloud data and the image frame, the distance between the target object and the current vehicle can be determined based on the point cloud data of the target object in the pixel coordinate system.
[0090] For example, after acquiring the point cloud data of the target object in the pixel coordinate system, the distance between each point in the point cloud data and the current vehicle can be determined, and then the distance between the target object and the current vehicle can be determined.
[0091] As can be seen from the above description, this embodiment determines the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image frame;
[0092] By determining the distance between the target object and the current vehicle based on the point cloud data of the target object in the pixel coordinate system, the distance between the target object and the current vehicle can be determined based on the currently acquired laser point cloud data and the image border of the target object, and then the target object can be subsequently tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle, which can improve the accuracy of tracking the target object.
[0093] Figure 3 A schematic diagram is shown of how to determine the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image border according to the present invention; based on the above embodiment, this embodiment uses an example of how to determine the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image border.
[0094] In this embodiment, the image is collected based on the camera. Figure 3 As shown, the above step S201 of determining the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image frame may include the following steps S301-S304:
[0095] In step S301, based on a first relationship between a pre-calibrated laser radar coordinate system and a camera coordinate system, laser point cloud data in the laser radar coordinate system is converted to the camera coordinate system to obtain laser point cloud data in the camera coordinate system.
[0096] In this embodiment, the first relationship between the laser radar coordinate system corresponding to the laser radar on the current vehicle and the camera coordinate system corresponding to the camera on the current vehicle can be pre-calibrated. After the laser point cloud data in the laser radar coordinate system is acquired based on the laser radar on the current vehicle, the laser point cloud data can be converted to the camera coordinate system based on the pre-calibrated first relationship, thereby obtaining the laser point cloud data in the camera coordinate system.
[0097] Among them, the calibration method of the first relationship between the laser radar coordinate information and the camera coordinate system can refer to the explanation and description in the relevant technology, and this embodiment does not limit this.
[0098] In step S302, based on a pre-calibrated second relationship between the camera coordinate system and the image coordinate system, the laser point cloud data in the camera coordinate system is converted to the image coordinate system to obtain the laser point cloud data in the image coordinate system.
[0099] In this embodiment, the second relationship between the above-mentioned camera coordinate system and the image coordinate system can be pre-calibrated, and then after obtaining the laser point cloud data in the camera coordinate system, the laser point cloud data in the camera coordinate system can be converted to the above-mentioned image coordinate system based on the pre-calibrated second relationship, thereby obtaining the laser point cloud data in the image coordinate system.
[0100] Among them, the calibration method of the second relationship between the camera coordinate system and the image coordinate system can refer to the explanation and description in the relevant technology, and this embodiment does not limit this.
[0101] In step S303, based on a pre-calibrated third relationship between the image coordinate system and the pixel coordinate system, the laser point cloud data in the image coordinate system is converted to the pixel coordinate system to obtain the laser point cloud data in the pixel coordinate system.
[0102] In this embodiment, the third relationship between the image coordinate system and the pixel coordinate system can be pre-calibrated, and then after obtaining the laser point cloud data in the image coordinate system, the laser point cloud data in the image coordinate system can be converted to the above-mentioned pixel coordinate system based on the pre-calibrated third relationship, thereby obtaining the laser point cloud data in the pixel coordinate system.
[0103] Among them, the calibration method of the third relationship between the image coordinate system and the pixel coordinate system can refer to the explanation and description in the relevant technology, and this embodiment does not limit this.
[0104] In step S304, the laser point cloud data in the pixel coordinate system is matched with the image frame to obtain the point cloud data of the target object in the pixel coordinate system.
[0105] In this embodiment, after the laser point cloud data in the image coordinate system is converted to the pixel coordinate system to obtain the laser point cloud data in the pixel coordinate system, the laser point cloud data in the pixel coordinate system can be matched with the image border of the target object in the image of the current vehicle's external environment to obtain the point cloud data of the target object in the pixel coordinate system.
[0106] As can be seen from the above description, this embodiment converts the laser point cloud data in the laser radar coordinate system to the camera coordinate system based on a first relationship between the pre-calibrated laser radar coordinate system and the camera coordinate system to obtain the laser point cloud data in the camera coordinate system, and converts the laser point cloud data in the camera coordinate system to the image coordinate system based on a second relationship between the pre-calibrated camera coordinate system and the image coordinate system to obtain the laser point cloud data in the image coordinate system, and then converts the laser point cloud data in the image coordinate system to the pixel coordinate system based on a third relationship between the pre-calibrated image coordinate system and the pixel coordinate system to obtain the laser point cloud data in the pixel coordinate system, and then the laser point cloud data in the pixel coordinate system can be matched with the image frame to obtain the point cloud data of the target object in the pixel coordinate system, and the point cloud data of the target object in the pixel coordinate system can be accurately determined based on the currently acquired laser point cloud data and the image frame, thereby providing an accurate basis for subsequently determining the distance between the target object and the current vehicle based on the point cloud data of the target object in the pixel coordinate system.
[0107] Figure 4 The schematic diagram of how to track the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle according to the present invention is shown; based on the above embodiment, this embodiment takes how to track the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle as an example. Figure 4 As shown, the tracking of the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle in the above step S104 may include the following steps S401-S402:
[0108] In step S401, the image frame is projected onto a map coordinate system based on the distance between the target object and the current vehicle to obtain the image frame in the map coordinate system.
[0109] In this embodiment, after the distance between the target object and the current vehicle is determined based on the currently acquired laser point cloud data and the image border, the image border can be projected to the map coordinate system based on the distance between the target object and the current vehicle to obtain the image border in the map coordinate system.
[0110] For example, after determining the distance between the target object and the current vehicle, the image frame of the target object in the pixel coordinate system can be projected to the map coordinate system based on the distance between the target object and the current vehicle, thereby obtaining the image frame of the target object in the map coordinate system.
[0111] In step S402, the target object is tracked based on the positioning information of the current vehicle and the image frame in the map coordinate system.
[0112] In this embodiment, after the image frame is projected onto the map coordinate system based on the distance between the target object and the current vehicle to obtain the image frame in the map coordinate system, the target object can be tracked based on the positioning information of the current vehicle and the image frame in the map coordinate system.
[0113] For example, the positioning information of the current vehicle can be obtained through a positioning device preset on the current vehicle or the vehicle-mounted terminal device. The preset positioning device can be set based on actual needs, such as being set to a global positioning system (GPS) device, etc., which is not limited in this embodiment. On this basis, the target object can be tracked based on the positioning information of the current vehicle and the image frame of the target object in the map coordinate system during the driving process of the current vehicle.
[0114] From the above description, it can be seen that this embodiment projects the image frame to the map coordinate system based on the distance between the target object and the current vehicle to obtain the image frame in the map coordinate system, and tracks the target object based on the positioning information of the current vehicle and the image frame in the map coordinate system. It can achieve tracking of the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle. Since the target object is tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle, rather than just tracking based on the image of the target object, different vehicles with the same appearance passing by can be distinguished, thereby improving the accuracy of tracking the target object.
[0115] Figure 5The structure block diagram of the target tracking device according to an exemplary embodiment of the present invention is shown; the device of this embodiment can be applied to a terminal device with data processing function (such as a vehicle terminal, a smart phone or a tablet computer, etc.) or a server (such as a server cluster composed of one server or multiple servers, etc.). Figure 5 As shown, the device includes: an environment image acquisition module 110, an image frame determination module 120, a vehicle distance determination module 130 and a target object tracking module 140, wherein:
[0116] The environment image acquisition module 110 is used to acquire an image of the current vehicle external environment;
[0117] An image border determination module 120, configured to determine an image border of a target object in the image;
[0118] A vehicle distance determination module 130, configured to determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained based on a laser radar scanning the external environment;
[0119] The target object tracking module 140 is used to track the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle.
[0120] It can be seen from the above description that the device of this embodiment obtains an image of the external environment of the current vehicle, determines the image frame of the target object in the image, and then determines the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame, and then tracks the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle. Since the target object is tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle, rather than just based on the image of the target object, it can avoid mistaking different vehicles with the same appearance for the same vehicle, that is, it can distinguish different vehicles with the same appearance passing by, thereby improving the accuracy of tracking the target object.
[0121] Figure 6 The structure block diagram of the target tracking device according to another exemplary embodiment of the present invention is shown; the device of this embodiment can be applied to a terminal device (such as a vehicle-mounted terminal, a smart phone or a tablet computer, etc.) or a server (such as a server cluster composed of one server or multiple servers, etc.) with a data processing function. Among them, the environment image acquisition module 210, the image frame determination module 220, the vehicle distance determination module 230 and the target object tracking module 240 are the same as the aforementioned Figure 5The functions of the environment image acquisition module 110, the image frame determination module 120, the vehicle distance determination module 130 and the target object tracking module 140 in the illustrated embodiment are the same and will not be described in detail herein.
[0122] like Figure 6 As shown, the image border determination module 220 may also be used to input the image into a pre-trained neural network, and determine the image border of the target object based on the output result of the neural network.
[0123] In one embodiment, the vehicle distance determination module 230 may include:
[0124] A point cloud data determining unit 231 is used to determine the point cloud data of the target object in a pixel coordinate system based on the currently acquired laser point cloud data and the image frame;
[0125] The vehicle distance determination unit 232 is used to determine the distance between the target object and the current vehicle based on the point cloud data of the target object in the pixel coordinate system.
[0126] In one embodiment, the image of this embodiment is acquired based on a camera;
[0127] On this basis, the point cloud data determination unit 231 can also be used to:
[0128] Based on a first relationship between a pre-calibrated laser radar coordinate system and a camera coordinate system, converting laser point cloud data in the laser radar coordinate system to the camera coordinate system to obtain laser point cloud data in the camera coordinate system;
[0129] Based on a pre-calibrated second relationship between the camera coordinate system and the image coordinate system, converting the laser point cloud data in the camera coordinate system to the image coordinate system to obtain the laser point cloud data in the image coordinate system;
[0130] Based on a pre-calibrated third relationship between the image coordinate system and the pixel coordinate system, converting the laser point cloud data in the image coordinate system to the pixel coordinate system to obtain the laser point cloud data in the pixel coordinate system;
[0131] The laser point cloud data in the pixel coordinate system is matched with the image frame to obtain the point cloud data of the target object in the pixel coordinate system.
[0132] In one embodiment, the target object tracking module 240 may include:
[0133] An image frame acquisition unit 241 is used to project the image frame to a map coordinate system based on the distance between the target object and the current vehicle to obtain the image frame in the map coordinate system;
[0134] The target object tracking unit 242 is used to track the target object based on the positioning information of the current vehicle and the image frame in the map coordinate system.
[0135] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.
[0136] The target tracking device of the present invention can be applied to network devices. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, the processor of the device in which it is located reads the corresponding computer program instructions in the non-volatile memory into the memory and runs it. From the hardware level, if Figure 7 As shown in FIG. 1 , a hardware structure diagram of an electronic device in which the target tracking device of the present invention is located is shown. Figure 7 In addition to the processor, network interface, memory and non-volatile memory shown, the device in the embodiment where the apparatus is located may generally include other hardware, such as a forwarding chip responsible for processing messages, etc.; from a hardware structure perspective, the device may also be a distributed device, which may include multiple interface cards to expand message processing at the hardware level.
[0137] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is processed by a processor, the following task processing method is implemented:
[0138] Acquire an image of the current vehicle's external environment;
[0139] Determining an image bounding box of a target object in the image;
[0140] Determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained by scanning the external environment based on a laser radar;
[0141] The target object is tracked based on the distance between the target object and the current vehicle and the positioning information of the current vehicle.
[0142] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the claims of the present invention.
[0143] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A target tracking method, It is characterized in that include: Acquire an image of the current vehicle's external environment; Determining an image bounding box of a target object in the image; Determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained by scanning the external environment based on a laser radar; Tracking the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle; The determining the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame includes: Determine the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image frame; The distance between the target object and the current vehicle is determined based on the point cloud data of the target object in a pixel coordinate system.
2. The method according to claim 1, It is characterized in that The step of determining an image border of a target object in the image comprises: The image is input into a pre-trained neural network, and the image border of the target object is determined based on the output result of the neural network.
3. The method according to claim 1, It is characterized in that The image is collected based on a camera; The step of determining the point cloud data of the target object in a pixel coordinate system based on the currently acquired laser point cloud data and the image frame includes: Based on a first relationship between a pre-calibrated laser radar coordinate system and a camera coordinate system, converting laser point cloud data in the laser radar coordinate system to the camera coordinate system to obtain laser point cloud data in the camera coordinate system; Based on a pre-calibrated second relationship between the camera coordinate system and the image coordinate system, converting the laser point cloud data in the camera coordinate system to the image coordinate system to obtain the laser point cloud data in the image coordinate system; Based on a pre-calibrated third relationship between the image coordinate system and the pixel coordinate system, converting the laser point cloud data in the image coordinate system to the pixel coordinate system to obtain the laser point cloud data in the pixel coordinate system; The laser point cloud data in the pixel coordinate system is matched with the image frame to obtain the point cloud data of the target object in the pixel coordinate system.
4. The method according to claim 3, It is characterized in that The tracking of the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle includes: Projecting the image frame onto a map coordinate system based on the distance between the target object and the current vehicle to obtain the image frame in the map coordinate system; The target object is tracked based on the positioning information of the current vehicle and the image frame in the map coordinate system.
5. A target tracking device, It is characterized in that include: An environment image acquisition module is used to acquire an image of the current vehicle's external environment; An image border determination module, used to determine an image border of a target object in the image; A vehicle distance determination module, used to determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained based on laser radar scanning the external environment; A target object tracking module, used to track the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle; The vehicle distance determination module comprises: A point cloud data determination unit, configured to determine the point cloud data of the target object in a pixel coordinate system based on the currently acquired laser point cloud data and the image frame; The vehicle distance determination unit is used to determine the distance between the target object and the current vehicle based on the point cloud data of the target object in a pixel coordinate system.
6. The device according to claim 5, It is characterized in that The image border determination module is further used to input the image into a pre-trained neural network, and determine the image border of the target object based on the output result of the neural network.
7. The device according to claim 5, It is characterized in that The image is collected based on a camera; The point cloud data determination unit is further used for: Based on a first relationship between a pre-calibrated laser radar coordinate system and a camera coordinate system, converting laser point cloud data in the laser radar coordinate system to the camera coordinate system to obtain laser point cloud data in the camera coordinate system; Based on a pre-calibrated second relationship between the camera coordinate system and the image coordinate system, converting the laser point cloud data in the camera coordinate system to the image coordinate system to obtain the laser point cloud data in the image coordinate system; Based on a pre-calibrated third relationship between the image coordinate system and the pixel coordinate system, converting the laser point cloud data in the image coordinate system to the pixel coordinate system to obtain the laser point cloud data in the pixel coordinate system; The laser point cloud data in the pixel coordinate system is matched with the image frame to obtain the point cloud data of the target object in the pixel coordinate system.
8. The device according to claim 7, It is characterized in that The target object tracking module comprises: An image frame acquisition unit, configured to project the image frame onto a map coordinate system based on the distance between the target object and the current vehicle, so as to obtain the image frame in the map coordinate system; The target object tracking unit is used to track the target object based on the positioning information of the current vehicle and the image frame in the map coordinate system.
9. An electronic device, It is characterized in that The electronic device comprises: processor; a memory configured to store processor-executable instructions; Wherein, the processor is configured to: Acquire an image of the current vehicle's external environment; Determining an image bounding box of a target object in the image; Determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained by scanning the external environment based on a laser radar; Tracking the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle; The determining the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame includes: Determine the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image frame; The distance between the target object and the current vehicle is determined based on the point cloud data of the target object in a pixel coordinate system.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When this program is processed by the processor, it realizes: Acquire an image of the current vehicle's external environment; Determining an image bounding box of a target object in the image; Determine the distance between the target object and the current vehicle based on currently acquired laser point cloud data and the image frame, wherein the laser point cloud data includes point cloud data obtained by scanning the external environment based on a laser radar; Tracking the target object based on the distance between the target object and the current vehicle and the positioning information of the current vehicle; The determining the distance between the target object and the current vehicle based on the currently acquired laser point cloud data and the image frame includes: Determine the point cloud data of the target object in the pixel coordinate system based on the currently acquired laser point cloud data and the image frame; The distance between the target object and the current vehicle is determined based on the point cloud data of the target object in a pixel coordinate system.
