Method, device, equipment and storage medium for predicting occlusion of moving targets

Through target detection and segmentation of point cloud data, combined with the azimuth correlation of the occlusion detection area, it can accurately determine whether the moving target is occluded, solving the problem of inaccurate occlusion judgment in traditional technology and improving the accuracy of target tracking.

CN114066927BActive Publication Date: 2024-09-10VANJEE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010778518.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-05
Publication Date
2024-09-10
Estimated Expiration
2040-08-05

AI Technical Summary

Technical Problem

In traditional target tracking technology, the judgment result of whether the target is occluded is often inaccurate, resulting in target tracking failure.

Method used

By acquiring point cloud data, target detection and segmentation are performed to determine the occluded detection area. Based on the azimuth correlation between the target detection results and the occluded detection area, occlusion prediction is performed to determine whether the moving target is occluded.

Benefits of technology

It achieves accurate judgment on whether the target is occluded and improves the accuracy and reliability of target tracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114066927B
    Figure CN114066927B
Patent Text Reader

Abstract

The present application relates to a method, device, equipment and storage medium for predicting occlusion of a mobile target. The method comprises: obtaining point cloud data collected by a first acquisition device for a target scene at the current moment, and performing target detection on the point cloud data to obtain a first target detection result, wherein the first target detection result is used to characterize the position of the target; performing grid division on the point cloud data, and determining whether each grid divided is occluded according to the division result to obtain an occluded grid; determining the probability of the target being occluded in the target scene according to the orientation correlation between the first target detection result and the occluded grid; wherein the orientation correlation is used to characterize the relative orientation between the target and the occluded grid. The present method can accurately predict whether a target is at risk of being occluded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, device, equipment and storage medium for predicting occlusion of a moving target. Background Art

[0002] Target tracking technology is an important technology in the field of computer vision. In essence, it is a technology that identifies targets from image sequences and automatically tracks them. In the target tracking process, since the target may be blocked by other obstructions, this will lead to target tracking failure. Therefore, it is particularly important to determine whether the target is blocked during the target tracking process.

[0003] However, the judgment results of whether a target is blocked in the traditional technology are often inaccurate. Therefore, how to accurately judge whether a target is blocked has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] Based on this, it is necessary to provide an occlusion prediction method, device, equipment and storage medium for a moving target that can accurately determine whether the target is occluded in order to address the above technical problems.

[0005] A method for predicting occlusion of a moving target, the method comprising:

[0006] Acquire point cloud data collected by the first acquisition device for the target scene at the current moment, and perform target detection on the point cloud data to obtain a first target detection result, where the first target detection result includes a moving state of the moving target and a position of the moving target;

[0007] Segment the point cloud data to determine the blocked detection area in the point cloud data;

[0008] According to the orientation correlation between the first target detection result and the occluded detection area, the mobile target is predicted to be occluded, and a prediction result of the mobile target being occluded in the target scene is obtained; wherein the orientation correlation is used to characterize the relative orientation between the mobile target and the occluded detection area.

[0009] In one embodiment, the above-mentioned prediction of occlusion of the moving target based on the orientation correlation between the first target detection result and the occluded detection area to obtain the prediction result of occlusion of the moving target in the target scene includes:

[0010] Determining an orientation correlation relationship between the first target detection result and the obscured detection area according to the target moving direction in the moving state of the moving target and the position of the obscured detection area;

[0011] According to the orientation correlation between the first target detection result and the blocked detection area, the mobile target is predicted to be blocked, and a prediction result of the mobile target being blocked in the target scene is obtained.

[0012] In one embodiment, the point cloud data at the current moment includes data of a plurality of first sampling points; and segmenting the point cloud data to determine the blocked detection area in the point cloud data includes:

[0013] Acquire point cloud data collected by the first acquisition device for the target scene at a previous moment; the point cloud data at the previous moment includes data of a plurality of second sampling points;

[0014] Performing grid division on the point cloud data at the current moment to obtain the number of first sampling points in each grid; and performing grid division on the point cloud data at the previous moment to obtain the number of second sampling points in each grid;

[0015] Compare the number of first sampling points in each grid with the number of corresponding second sampling points to obtain a sampling point number comparison result;

[0016] According to the comparison result of the number of sampling points, it is determined whether the grid is blocked, the blocked grid is obtained, and the blocked grid is determined as the blocked detection area.

[0017] In one embodiment, the comparison of the number of first sampling points in each grid with the number of corresponding second sampling points to obtain a sampling point number comparison result includes:

[0018] Calculate a first difference between the number of first sampling points in each grid and the number of second sampling points in the grid;

[0019] The first difference is compared with a preset sampling point quantity threshold to obtain a sampling point quantity comparison result.

[0020] In one embodiment, the above-mentioned determining whether a grid is blocked according to the comparison result of the number of sampling points to obtain the blocked grid includes:

[0021] If the comparison result of the number of sampling points is that the first difference is greater than the sampling point number threshold, it is determined that the grid is blocked, and the grid is determined as a blocked grid.

[0022] In one embodiment, the above-mentioned prediction of occlusion of the moving target based on the orientation correlation between the first target detection result and the occluded detection area to obtain the prediction result of occlusion of the moving target in the target scene includes:

[0023] Calculate the distance between the moving target and the blocked grid, and compare the distance with the preset distance threshold to obtain the distance comparison result;

[0024] According to the distance comparison result, the prediction result of the moving target being occluded in the target scene is determined.

[0025] In one embodiment, the position of the moving target includes a plurality of three-dimensional coordinate positions of the moving target; and the calculating the distance between the moving target and the blocked grid includes:

[0026] Get the coordinates of the center point of the blocked grid;

[0027] According to the multiple three-dimensional coordinate positions of the moving target, the coordinates of the center point of the moving target are obtained;

[0028] According to the coordinates of the center point of the blocked grid and the coordinates of the center point of the moving target, the center point distance between the center point of the blocked grid and the center point of the moving target is calculated, and the center point distance is determined as the distance between the moving target and the blocked grid.

[0029] In one embodiment, the moving state of the moving target includes the heading angle of the moving target at the current moment; and the prediction result of determining the occlusion of the moving target in the target scene according to the distance comparison result includes:

[0030] If the center point distance is less than the distance threshold, the moving direction of the moving target is judged according to the heading angle of the moving target to determine whether it is pointing to the blocked grid, and the direction judgment result is obtained;

[0031] The prediction result of the occlusion of the moving target in the target scene is determined according to the pointing judgment result.

[0032] In one embodiment, the above-mentioned determining whether the moving direction of the moving target points to the blocked grid according to the heading angle of the moving target to obtain the direction determination result includes:

[0033] Get the vertical distance between the projection of the center point of the blocked grid and the candidate coordinate axis; the candidate coordinate axis is a coordinate axis of the plane where the heading angle is located;

[0034] Perform mathematical operations on the vertical distance and the center point distance to obtain the angle between the line connecting the center point projection and the center point of the target and the candidate coordinate axis;

[0035] The heading angle and the included angle of the target are compared, and based on the comparison result, it is determined whether the moving direction of the moving target points to the blocked grid, thereby obtaining a direction determination result.

[0036] In one embodiment, the heading angle and the included angle of the target are compared, and according to the comparison result, it is determined whether the moving direction of the moving target points to the blocked grid, and the direction determination result is obtained, including:

[0037] Calculate the absolute value of the difference between the heading angle and the included angle of the moving target;

[0038] The absolute value of the difference is compared with the preset angle threshold. If the absolute value of the difference is less than the angle threshold, it is determined that the moving direction of the moving target points to the blocked grid.

[0039] The above-mentioned prediction result of determining the occlusion of the moving target in the target scene according to the pointing judgment result includes:

[0040] The prediction result of determining that the moving target in the target scene is occluded is that the moving target is occluded.

[0041] In one embodiment, the above-mentioned prediction of occlusion of the moving target based on the orientation correlation between the first target detection result and the occluded detection area to obtain the prediction result of occlusion of the moving target in the target scene includes:

[0042] According to the orientation correlation between the first target detection result and the blocked detection area, the mobile target is predicted to obtain a first initial blockage prediction result;

[0043] Acquire a second initial occlusion prediction result based on a two-dimensional image acquired by a second acquisition device for the target scene at the current moment;

[0044] A prediction result of whether the moving object is occluded is obtained according to the first initial occlusion prediction result and the second initial occlusion prediction result.

[0045] In one embodiment, the step of obtaining the second initial occlusion prediction result based on the two-dimensional image captured by the second acquisition device at the current moment for the target scene includes:

[0046] Acquire a two-dimensional image acquired by the second acquisition device at the current moment for the target scene, and perform target detection on the two-dimensional image to obtain the number of moving targets in the two-dimensional image;

[0047] Compare the number of moving targets with the historical target number limit to obtain a target number comparison result;

[0048] A second initial occlusion prediction result is determined according to the target quantity comparison result.

[0049] In one embodiment, the comparison of the number of moving targets with the historical target number limit to obtain the target number comparison result includes:

[0050] The absolute value of the second difference between the number of moving targets and the historical target number limit is calculated, and the absolute value of the second difference is compared with a preset first number threshold to obtain a target number comparison result.

[0051] In one embodiment, the determining of the second initial occlusion prediction result according to the target quantity comparison result includes:

[0052] If the absolute value of the second difference is greater than the first quantity threshold, a plurality of two-dimensional images to be detected within a subsequent preset time length are acquired;

[0053] Performing target detection on a plurality of two-dimensional images to be detected respectively, and obtaining the number of moving targets in each of the two-dimensional images to be detected;

[0054] The number of moving objects in each to-be-detected two-dimensional image is compared with a preset second number threshold, and a second initial occlusion prediction result is determined according to the comparison result.

[0055] In one embodiment, determining the second initial occlusion prediction result according to the comparison result includes:

[0056] If the number of moving targets in each of the two-dimensional images to be detected is less than the second number threshold, it is determined that the second initial occlusion prediction result is that the moving target is occluded.

[0057] In one embodiment, the method further comprises:

[0058] If the first initial occlusion prediction result is that the moving target is occluded, outputting a first occlusion warning;

[0059] If the second initial occlusion prediction result is that the moving target is occluded, a second occlusion warning is output;

[0060] If the prediction result of the moving target being blocked is that the moving target is blocked, a third blocking warning is output.

[0061] A mobile target occlusion prediction device, the device comprising:

[0062] an acquisition module, used to acquire point cloud data collected by the first acquisition device for the target scene at the current moment, and perform target detection on the point cloud data to obtain a first target detection result, wherein the first target detection result includes a moving state of the moving target and a position of the moving target;

[0063] A segmentation module is used to segment the point cloud data and determine the blocked detection area in the point cloud data;

[0064] The occlusion determination module is used to predict the occlusion of the mobile target based on the orientation correlation between the first target detection result and the occluded detection area, and obtain the prediction result of the occlusion of the mobile target in the target scene; wherein the orientation correlation is used to characterize the relative orientation between the mobile target and the occlusion detection area.

[0065] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0066] Acquire point cloud data collected by the first acquisition device for the target scene at the current moment, and perform target detection on the point cloud data to obtain a first target detection result, where the first target detection result includes a moving state of the moving target and a position of the moving target;

[0067] Segment the point cloud data to determine the blocked detection area in the point cloud data;

[0068] According to the orientation correlation between the first target detection result and the occluded detection area, the mobile target is predicted to be occluded, and a prediction result of the mobile target being occluded in the target scene is obtained; wherein the orientation correlation is used to characterize the relative orientation between the mobile target and the occluded detection area.

[0069] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0070] Acquire point cloud data collected by the first acquisition device for the target scene at the current moment, and perform target detection on the point cloud data to obtain a first target detection result, where the first target detection result includes a moving state of the moving target and a position of the moving target;

[0071] Segment the point cloud data to determine the blocked detection area in the point cloud data;

[0072] According to the orientation correlation between the first target detection result and the occluded detection area, the mobile target is predicted to be occluded, and a prediction result of the mobile target being occluded in the target scene is obtained; wherein the orientation correlation is used to characterize the relative orientation between the mobile target and the occluded detection area.

[0073] The above-mentioned mobile target occlusion prediction method, device, equipment and storage medium can obtain the point cloud data collected by the first acquisition device for the target scene at the current moment, and perform target detection on the point cloud data to obtain the first target detection result, segment the point cloud data to obtain the occluded detection area in the point cloud data, and perform occlusion prediction on the mobile target according to the orientation association relationship between the first target detection result and the occluded detection area to obtain the prediction result of the mobile target being occluded; wherein the first target detection result includes the moving state and position of the mobile target, and the orientation association relationship is used to characterize the relative orientation between the mobile target and the occluded detection area. In this method, since the movement can be predicted for occlusion according to the orientation of the mobile target and the relative orientation between the target and the occluded detection area, it is possible to truly and accurately evaluate whether the target is at risk of being occluded, thereby making the final prediction result of the target being occluded more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 A diagram of an application environment of an occlusion prediction method for a moving target in one embodiment;

[0075] Figure 2 A schematic diagram of a flow chart of an occlusion prediction method for a moving target in one embodiment;

[0076] Figure 2a An example diagram of dividing point cloud data into grids in one embodiment;

[0077] Figure 3 is a flow chart of a method for predicting occlusion of a moving target in another embodiment;

[0078] Figure 4 is a flow chart of a method for predicting occlusion of a moving target in another embodiment;

[0079] Figure 5 is a flow chart of a method for predicting occlusion of a moving target in another embodiment;

[0080] Figure 6 is a flow chart of a method for predicting occlusion of a moving target in another embodiment;

[0081] Figure 6a is an example diagram of the relative position between the moving target and the blocked grid in another embodiment;

[0082] Figure 7 is a flow chart of a method for predicting occlusion of a moving target in another embodiment;

[0083] Figure 8 is a flow chart of a method for predicting occlusion of a moving target in another embodiment;

[0084] Fig. 9 is a structural block diagram of an occlusion prediction device for a moving target in one embodiment;

[0085] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0086] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0087] The mobile target occlusion prediction method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the first acquisition device 102 and the second acquisition device 104 can communicate with the computer device 106 by wire or wirelessly. The first acquisition device 102 can be a laser radar, a millimeter wave radar, etc., and the second acquisition device 104 can be a camera, a video camera, etc. The first acquisition device 102 and the second acquisition device 104 can be set on the roadside poles or crossbars, or on the vehicle. The computer device 106 can be a terminal or a server. When the computer device 106 is a terminal, it can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices; when the computer device 106 is a server, it can be implemented with an independent server or a server cluster composed of multiple servers.

[0088] It should be noted that the execution subject of the embodiment of the present application may be a computer device or an occlusion prediction device for a moving target inside the computer device. The following description will be given using the computer device as the execution subject.

[0089] In one embodiment, a method for predicting occlusion of a moving target is provided. This embodiment relates to a specific process of obtaining a detection result of a target in a target scene and an occluded detection area based on point cloud data of the target scene, and obtaining a prediction result of occlusion of the moving target based on the target detection result and the occluded detection area. Figure 2 As shown, the method may include the following steps:

[0090] S202, obtaining point cloud data collected by the first collection device for the target scene at the current moment, and performing target detection on the point cloud data to obtain a first target detection result, wherein the first target detection result includes a moving state of the moving target and a position of the moving target.

[0091] The first acquisition device is a laser radar, a millimeter wave radar, etc., and the first acquisition device here is generally set on a horizontal bar or a vertical pole on the side of the road in the middle of the road. The target scene can be a road scene, and the road scene can be an outdoor road scene or an indoor amusement road scene. The target can be a vehicle, a pedestrian, etc. in the road scene. The moving target here can include one or more moving targets. The moving state of the moving target includes the moving direction of the target, the heading angle of the moving target, etc.

[0092] In addition, target detection may be performed using a three-dimensional target detection algorithm, such as a SECOND (Sparsely Embedded Convolutional Detection) algorithm or the like.

[0093] Specifically, the first acquisition device can scan the road scene at the current moment, so that the point cloud data of the road scene at the current moment can be obtained, and the collected point cloud data can be transmitted to the computer device, so that the computer device can obtain the point cloud data of the road scene at the current moment. Then the computer device uses the target detection algorithm to perform target detection on the point cloud data at the current moment, and the target detection result can be obtained, which is recorded as the first target detection result.

[0094] S204, segmenting the point cloud data to determine the blocked detection area in the point cloud data.

[0095] In this step, the point cloud data is usually three-dimensional data. Assuming that the origin is o and the three coordinate axes are x, y, and z, the point cloud data can be segmented by dividing the detection area corresponding to the point cloud data by a grid. The grid division can be divided into multiple grids according to a certain length and width interval on the plane formed by the x-axis and the y-axis (the divided grid diagram can be seen in Figure 2a As shown, it should be noted that Figure 2a This is just an example and does not affect the essential content of the embodiments of the present application). In this way, the space where the point cloud data is located is divided into multiple grids along the z-axis, and each grid contains corresponding point cloud data. Of course, the point cloud data contained in each grid can also be projected into the corresponding grid along the z-axis to obtain the point cloud data in each grid.

[0096] After obtaining the point cloud data in each grid at the current moment, the point cloud data in each grid at the current moment can be compared, or the point cloud data in each grid at the current moment can be compared with the point cloud data at other moments. In short, the comparison results of each grid can be obtained. Through the comparison results, it can be determined whether each grid is blocked. When a grid is blocked, the grid can be recorded as an blocked grid, and then the blocked detection area can be obtained by counting the blocked grids.

[0097] S206, performing occlusion prediction on the mobile target based on the orientation correlation between the first target detection result and the occluded detection area, and obtaining a prediction result of occlusion of the mobile target in the target scene; wherein the orientation correlation is used to characterize the relative orientation between the mobile target and the occluded detection area.

[0098] Taking a moving target and an obscured detection area as an example, the relative position between the moving target and the obscured detection area may include whether the moving target points to the obscured detection area, the distance between the moving target and the obscured detection area, and the like.

[0099] Specifically, after obtaining the first target detection result, the computer device can also obtain the moving state of the moving target in the target scene and the position of the moving target. Then, after obtaining the obscured detection area, the distance between the target and the obscured detection area can be calculated according to the target moving state and position, and whether it points to the obscured detection area can be determined, and the azimuth correlation relationship between the target and the obscured detection area can be obtained. Then, through the azimuth correlation relationship, it is predicted whether the target will travel to the obscured detection area. If it will travel to the obscured detection area, it is considered that there is a risk of being obscured. The obscuration here refers to the obscuration of the moving target by other targets. Of course, when the moving target is at risk of being obscured, a target obscuration warning can also be output. In addition, the target here is at risk of being obscured, which can be considered as the risk of obscuration of the moving target within the field of view of the first acquisition device. For example, assuming that the target points to the obscured detection area or the target is close to the obscured detection area, it can be considered that the moving target is at risk of being obscured.

[0100] In addition, it should be noted that in this step, the prediction result of the mobile target being occluded in the above-mentioned target scene can be obtained only based on the azimuth correlation relationship between the first target detection result and the occluded detection area. Of course, other acquisition devices can also be used to perform image acquisition and target detection on the mobile target in the road scene, and the prediction result of the target being occluded within the field of view of the acquisition device can be judged based on other parameters (such as quantity, etc.) of the detected mobile target. Then, the prediction result of the mobile target being occluded by the above-mentioned first acquisition device is combined to obtain the prediction result of the target being finally occluded, which is not specifically limited in this embodiment.

[0101] In the above-mentioned mobile target occlusion prediction method, the point cloud data collected by the first acquisition device for the target scene at the current moment can be obtained, and the point cloud data can be subjected to target detection to obtain the first target detection result, and the point cloud data can be segmented to obtain the occluded detection area in the point cloud data, and the mobile target can be subjected to occlusion prediction based on the orientation correlation between the first target detection result and the occluded detection area to obtain the prediction result of the mobile target being occluded; wherein, the first target detection result includes the moving state and position of the mobile target, and the orientation correlation is used to characterize the relative orientation between the mobile target and the occluded detection area. In this method, since the movement can be predicted for occlusion based on the orientation of the mobile target and the relative orientation between the target and the occluded detection area, it is possible to truly and accurately assess whether the target is at risk of being occluded, thereby making the final prediction result of the target being occluded more accurate.

[0102] In another embodiment, another method for predicting occlusion of a moving target is provided. This embodiment relates to a specific process of obtaining a prediction result of occlusion of a moving target based on the orientation correlation between the first target detection result and the occluded detection area. Figure 3 As shown, the above S206 may include the following steps:

[0103] S302, determining an orientation correlation relationship between a first target detection result and the blocked detection area according to a target moving direction in a moving state of the moving target and a position of the blocked detection area.

[0104] In this step, it can be determined whether the target moving direction points to the obscured detection area. If the target moving direction points to the obscured detection area, then the pointing to the obscured detection area can be used as the azimuth association relationship between the first target detection result and the obscured detection area; accordingly, if the target moving direction does not point to the obscured detection area, then the not pointing to the obscured detection area can be used as the azimuth association relationship between the first target detection result and the obscured detection area.

[0105] S304: Perform occlusion prediction on the moving target according to the orientation correlation between the first target detection result and the occluded detection area, and obtain a prediction result of occlusion of the moving target in the target scene.

[0106] The explanation of this step can refer to the explanation of S206 above, which will not be repeated here.

[0107] The occlusion prediction method for a moving target provided in this embodiment can first obtain the azimuth correlation relationship between the first target detection result and the occluded detection area through the target moving direction and the position of the occluded detection area, and obtain the prediction result of the target being occluded through the azimuth correlation relationship. Through the method of this embodiment, the azimuth correlation relationship can be obtained through the target moving direction and the position of the occluded detection area. The process is relatively simple and fast, thereby increasing the speed of obtaining the azimuth correlation relationship.

[0108] In another embodiment, another method for predicting occlusion of a moving target is provided. This embodiment involves the point cloud data at the current moment including data of multiple first sampling points. Then, how to grid-divide the point cloud data to obtain the specific process of the occluded grid. Figure 4 As shown, the above S204 may include the following steps:

[0109] S402, acquiring point cloud data collected by a first collection device at a previous moment for a target scene; the point cloud data at a previous moment includes data of a plurality of second sampling points.

[0110] The point cloud data at the current moment is point cloud data obtained by scanning the target scene by the first acquisition device at the current moment, including data of multiple first sampling points, that is, the point cloud data at the current moment includes multiple first sampling points.

[0111] The point cloud data at the previous moment is the point cloud data obtained by the first acquisition device scanning the target scene at the current moment, including data of multiple second sampling points, that is, the point cloud data at the current moment includes multiple second sampling points.

[0112] S404, grid-dividing the point cloud data at the current moment to obtain the number of first sampling points in each grid; and grid-dividing the point cloud data at the previous moment to obtain the number of second sampling points in each grid.

[0113] In this step, the grid division method of the point cloud data at the current moment and the point cloud data at the previous moment is the same, which is the division method of S204 above, and will not be repeated here.

[0114] In summary, by dividing the point cloud data at the current moment into grids, the number of first sampling points in each grid can be obtained; by dividing the point cloud data at the previous moment into grids, the number of second sampling points in each grid can be obtained.

[0115] S406: Compare the number of first sampling points in each grid with the number of corresponding second sampling points to obtain a sampling point number comparison result.

[0116] In this step, after the point cloud data at the current moment and the point cloud data at the previous moment are divided into grids, it can be considered that each divided grid includes the first sampling point at the current moment and the second sampling point at the previous moment. In this way, the number of second sampling points included in each grid at the previous moment and the number of first sampling points included in each grid at the current moment can be obtained.

[0117] Afterwards, according to the divided grids, the number of second sampling points in each grid is compared with the number of corresponding first sampling points, and a comparison result of the number of sampling points in each grid can be obtained.

[0118] Optionally, when comparing the quantity, a first difference between the quantity of the first sampling points in each grid and the quantity of the second sampling points in the grid may be calculated; the first difference may be compared with a preset sampling point quantity threshold to obtain a sampling point quantity comparison result.

[0119] Taking a grid as an example, the difference between the number of the first sampling points and the number of the second sampling points in the grid can be calculated, and then the difference can be compared with the preset threshold of the number of sampling points to obtain the comparison result of the number of sampling points corresponding to the grid; of course, the absolute value of the difference can be taken to obtain the absolute value of the difference, and then the absolute value of the difference can be compared with the preset threshold of the number of sampling points to obtain the comparison result of the number of sampling points corresponding to the grid. The same goes for other grids. In short, the comparison result of the number of sampling points of each grid can be obtained in the end.

[0120] In addition, the preset threshold value of the number of sampling points here can be determined according to actual conditions, for example, it can be 100, 150, etc.

[0121] S408, determining whether the grid is blocked according to the comparison result of the number of sampling points, obtaining the blocked grid, and determining the blocked grid as the blocked detection area.

[0122] In this step, after obtaining the comparison results of the number of sampling points corresponding to each grid, taking a grid as an example, optionally, if the comparison result of the number of sampling points is that the first difference is greater than the sampling point number threshold, it is determined that the grid is obscured, and the grid is determined as an obscured grid.

[0123] That is to say, in a possible implementation, if the difference in the number of sampling points of the grid at two times (or the absolute value of the difference) is greater than the sampling point number threshold, it means that the difference in the number of sampling points of the grid at the two times is too large, which further means that the grid is blocked by other obstacles, and the grid can be called an blocked grid.

[0124] In another possible implementation, because the first acquisition device has point cloud data when the grid is not obstructed under normal circumstances, if the difference in the number of sampling points of the grid at two moments (or the absolute value of the difference) is not greater than the sampling point number threshold, it means that the difference in the number of sampling points of the grid at the two moments is not very large, that is, there are similar point cloud data at the two moments, which further indicates that the grid is not obstructed.

[0125] For other grids, comparison can be performed in this way, so that it can be determined whether each grid is an obstructed grid.

[0126] In short, through this comparison method, the blocked grids in the divided multiple grids can be obtained. Finally, all the blocked grids can be determined as the blocked detection area.

[0127] The occlusion prediction method for a mobile target provided in this embodiment can obtain the point cloud data of the previous moment, and perform grid division on the point cloud data of the current moment and the point cloud data of the previous moment, obtain the number of first sampling points and the number of second sampling points included in each grid at the current moment and the previous moment, and compare the number of first sampling points and the number of second sampling points in each grid, and determine whether the grid is occluded based on the comparison result, and finally obtain the occluded grid, and determine the occluded grid as the occluded detection area. Through the method of this embodiment, it is possible to determine whether the grid is occluded by comparing the number of sampling points of the same grid in two adjacent moments. The comparison process is relatively intuitive, simple and accurate, so that the result of grid occlusion can be made more accurate, and the speed of subsequent judgment of whether the target is occluded can also be accelerated.

[0128] In another embodiment, another method for predicting occlusion of a moving target is provided. This embodiment relates to a specific process of determining a prediction result of occlusion of a target in a target scene based on an orientation correlation relationship between a first target detection result and an occluded grid. Figure 5 As shown, the above S304 may include the following steps:

[0129] S502, calculating the distance between the moving target and the blocked grid, and comparing the distance with a preset distance threshold to obtain a distance comparison result.

[0130] In this step, optionally, the position of the moving target includes multiple three-dimensional coordinate positions of the moving target. Then, when calculating the distance between the target and the blocked grid, the following steps A1-A3 may be used:

[0131] A1, obtain the coordinates of the center point of the blocked grid.

[0132] A2, according to the multiple three-dimensional coordinate positions of the moving target, the coordinates of the center point of the moving target are obtained.

[0133] A3, according to the coordinates of the center point of the blocked grid and the coordinates of the center point of the moving target, calculate the center point distance between the center point of the blocked grid and the center point of the moving target, and determine the center point distance as the distance between the moving target and the blocked grid.

[0134] When dividing the grid in S204, the grids are generally rectangular grids. Then, on the plane formed by the x-axis and the y-axis, the coordinates of each point on the rectangular frame where each grid is located can be obtained, so that the coordinates of the center point of each grid can be found. After the blocked grid is determined, the coordinates of the center point of the blocked grid can also be obtained. Here, the coordinates of the center point of the grid are usually two-dimensional coordinates.

[0135] In addition, the three-dimensional coordinate position of the mobile target in this embodiment usually includes the three-dimensional coordinates of each point on the mobile target. Then, the three-dimensional coordinates corresponding to the center point of the mobile target can be obtained from the three-dimensional coordinates of these multiple points. Then, the three-dimensional coordinates of the center point of the mobile target are projected onto the plane formed by the x-axis and y-axis corresponding to the above-mentioned grid, and the two-dimensional coordinates of the center point of the mobile target on the plane can be obtained.

[0136] Taking a moving target and an obscured grid as an example, after obtaining the coordinates of the center point of the obscured grid and the two-dimensional coordinates of the center point of the moving target, the distance between the two center points can be calculated using the point-to-point distance calculation formula, and the obtained center point distance is recorded as the distance between the moving target and the obscured grid. According to this method, the distance between any target and any obscured grid can be calculated.

[0137] After obtaining the distance between the moving target and the obscured grid, the obtained distance can be compared with a preset distance threshold to obtain a distance comparison result corresponding to the moving target and the obscured grid. The distance threshold can be determined according to actual conditions. Here are several examples, such as the distance between the center point of the obscured grid and the upper left corner of the grid, the distance between the center point of the obscured grid and the lower right corner of the grid, and so on.

[0138] S504: Determine a prediction result of the moving target being blocked in the target scene according to the distance comparison result.

[0139] In this step, by comparing the center point distance with the distance threshold, it is possible to determine whether the moving target enters the blocked grid, thereby obtaining a prediction result that the moving target is blocked.

[0140] In a possible implementation, taking a moving target and an obscured grid as an example, if the center point distance between the moving target and the obscured grid is greater than or equal to a distance threshold, it can be considered that the moving target has not entered the area where the obscured grid is located, that is, the risk of the moving target being obscured is not very high, that is, the moving target is currently in a safe area.

[0141] In another possible implementation, if the center point distance between the moving target and the obscured grid is less than a distance threshold, it can be considered that the moving target may have entered the area where the obscured grid is located, that is, the risk of the moving target being obscured is relatively large. Whether the moving target will be obscured or not can be judged in further ways, which will be explained in the following embodiments.

[0142] In summary, by comparing the center point distance with the distance threshold, the prediction result of the moving target being blocked can be determined based on the obtained comparison result.

[0143] The mobile target occlusion prediction method provided in this embodiment can calculate the distance between the mobile target and the occluded grid, and compare the distance with the distance threshold, and determine the prediction result of the mobile target being occluded based on the obtained distance comparison result. Through the simple distance comparison process in this embodiment, it can be relatively quickly determined whether the target is in a safe area at the current moment, thereby speeding up the subsequent prediction result of the target being occluded.

[0144] In another embodiment, another method for predicting occlusion of a moving target is provided. The moving state of the moving target involved in this embodiment includes the heading angle of the moving target at the current moment. Then, how to further determine the prediction result of the occlusion of the moving target in the target scene according to the distance comparison result obtained above? Figure 6 As shown, the above S504 may include the following steps:

[0145] S602: If the center point distance is less than the distance threshold, determine whether the moving direction of the moving target is pointing to the blocked grid according to the heading angle of the moving target, and obtain a direction determination result.

[0146] In the above S504, if the center point distance between the moving target and the obscured grid is less than the distance threshold, it can be considered that the moving target may have entered the area where the obscured grid is located, and then the direction of the moving target can be further judged to determine the prediction result of the moving target being obscured.

[0147] When judging the direction of a target, the heading angle of the target is generally used for judgment. Optionally, the following steps B1-B3 can be used for judgment:

[0148] B1, obtain the perpendicular distance between the projection of the center point of the blocked grid and the candidate coordinate axis; the candidate coordinate axis is a coordinate axis of the plane where the heading angle is located.

[0149] Among them, referring to the above S204, grid division is also performed on the plane formed by the x-axis and the y-axis, so the divided grid is also two-dimensional, so the projection of the center point of the blocked grid here is the center point of the grid corresponding to the blocked grid on the plane formed by the x-axis and the y-axis.

[0150] See Figure 6a As shown, each large rectangular box is a divided grid, the small rectangular box labeled 1 is the moving target, the large rectangular box labeled 2 is the blocked grid, the candidate coordinate axis is the y-axis, α is the heading angle of the moving target at the current moment, which is the angle between the moving target's driving direction and the negative direction of the y-axis; β is the angle between the line connecting the center point of the moving target and the center point of the blocked grid and the negative direction of the y-axis. Then, after obtaining the coordinates of the center point of the blocked grid, the vertical distance from the center point of the blocked grid to the y-axis can be calculated, which is the x value of the coordinates of the center point of the blocked grid.

[0151] B2, mathematically processing the vertical distance and the center point distance to obtain the angle between the line between the center point projection and the center point of the target and the candidate coordinate axis.

[0152] After obtaining the two-dimensional coordinates of the center point of the target, it can be seen from the figure that the x value in the two-dimensional coordinates of the center point of the target is the distance from the center point of the target to the y axis. Then, the x value of the center point coordinates of the blocked grid can be subtracted from the x value of the center point coordinates of the target to get the difference, and the difference can be divided by the center point distance calculated above to get the sinβ value, and the β value can be obtained by the inverse sine solution.

[0153] B3, comparing the heading angle and the included angle of the target, and judging whether the moving direction of the moving target points to the blocked grid according to the comparison result, and obtaining a pointing judgment result.

[0154] In this step, after obtaining the target heading angle α and the included angle β, the result of whether the moving target is pointing to the obscured grid can be obtained by comparing α and β. Optionally, the absolute value of the difference between the heading angle and the included angle of the moving target can be calculated; the absolute value of the difference can be compared with a preset angle threshold to obtain a comparison result; and whether the target is pointing to the obscured grid can be determined based on the comparison result to obtain a pointing determination result.

[0155] That is to say, α can be subtracted from β to obtain the difference, and the absolute value can be taken to obtain the absolute value of the angle difference, and the absolute value of the angle difference can be compared with the angle threshold to obtain the angle comparison result. Then, according to different angle comparison results, the result of whether the target points to the blocked grid can be obtained.

[0156] The angle threshold may be determined according to actual conditions, for example, 5 degrees, 10 degrees, etc.

[0157] S604: Determine a prediction result of whether the moving target in the target scene is blocked according to the direction determination result.

[0158] In this step, optionally, if the absolute value of the difference is less than the angle threshold, it is determined that the target is pointing to the blocked grid; then it can be determined that the prediction result of the moving target being blocked in the target scene is that the moving target is blocked.

[0159] That is to say, in a possible implementation, if the absolute value of the difference between the above α and β is less than the angle threshold, it can be determined that the target is moving towards the obscured grid, then it can be considered that the target is pointing to the obscured grid, and further it can be explained that the risk of the target being obscured is relatively large, that is, the prediction result of the moving target being obscured in the target scene is that the moving target is obscured.

[0160] In another possible implementation, if the absolute value of the difference between α and β is greater than or equal to the angle threshold, it can be determined that the target is not moving toward the obscured grid, indicating that the target is not pointing to the obscured grid, and the target can be considered to be in a safe area.

[0161] The occlusion prediction method for a mobile target provided in this embodiment can further determine whether the target is pointing to the occluded grid based on the heading angle of the target when the center point distance between the target and the occluded grid is less than the distance threshold, and determine the prediction result of the mobile target being occluded based on the result of whether it is pointing to the occluded grid. Through the method of this embodiment, when the distance between the target and the occluded grid is too close, the probability of the target being occluded can be further determined by the heading angle of the target. In this way, through the two-step judgment process, it can be further clarified whether the target is really occluded, so that the final prediction result of whether the target is occluded can be made more accurate.

[0162] In another embodiment, another method for predicting occlusion of a moving target is provided. This embodiment relates to a specific process of determining the prediction result of the target being occluded according to the orientation association relationship. Figure 7 As shown, the above S206 may include the following steps:

[0163] S702: Perform occlusion prediction on the moving target according to the orientation correlation between the first target detection result and the occluded detection area to obtain a first initial occlusion prediction result.

[0164] The first initial occlusion prediction result here may be the occlusion prediction result of the first acquisition device side mentioned above.

[0165] S704: Acquire a second initial occlusion prediction result based on the two-dimensional image captured by the second acquisition device at the current moment for the target scene.

[0166] In this step, target detection can be performed on the captured two-dimensional image, and the prediction result of the target being occluded within the field of view of the acquisition device can be determined based on other parameters of the detected moving target (such as quantity, etc.), which is recorded as the second initial occlusion prediction result.

[0167] S706 , obtaining a prediction result of whether the moving object is occluded according to the first initial occlusion prediction result and the second initial occlusion prediction result.

[0168] In this step, by counting the above-mentioned first initial occlusion prediction result and the second initial occlusion prediction result, for example, if at least one of the first initial occlusion prediction result and the second initial occlusion prediction result is that the target is occluded, then the prediction result of the moving target being occluded can be determined as the moving target being occluded; for example, if both the first initial occlusion prediction result and the second initial occlusion prediction result are that the moving target is not occluded, then the prediction result of the moving target being occluded can be determined as not being occluded and is currently in a safe area.

[0169] The mobile target occlusion prediction method provided in this embodiment can comprehensively consider the prediction results of target occlusion of various aspects to obtain the final target occlusion prediction result, based on more and richer data sources, so that the final target occlusion prediction result will be more accurate.

[0170] In another embodiment, another method for predicting occlusion of a moving target is provided. This embodiment relates to a specific process of determining a second initial occlusion prediction result of the target being occluded by combining the detection result of the two-dimensional image in the target scene. Figure 8 As shown, the above S704 may include the following steps:

[0171] S802, obtaining a two-dimensional image captured by a second acquisition device at a current moment for a target scene, and performing target detection on the two-dimensional image to obtain the number of moving targets in the two-dimensional image.

[0172] The second acquisition device may be a camera, a video camera, etc. When it is a camera, it may be a high-definition camera or a high-resolution camera, etc., so that the acquired image can more easily distinguish the target. The second acquisition device may be arranged together with the first acquisition device, for example, both are arranged on a horizontal bar or a vertical bar on the roadside.

[0173] The target scene may be a road scene, and the road scene may be an outdoor road scene, or an indoor amusement road scene, etc. The moving target may also be a vehicle, a pedestrian, etc. in the road scene. The moving target here may include one or more moving targets.

[0174] In addition, the target detection here can be performed using a two-dimensional target detection algorithm, such as a yolo (you only look once) target detection algorithm.

[0175] Specifically, when the first acquisition device scans the road scene at the current moment, the second acquisition device can also scan the road scene at the current moment, and transmit the acquired two-dimensional image of the road scene at the current moment to the computer device. Then the computer device can use the target detection algorithm to perform target detection on the two-dimensional image at the current moment, and obtain the rectangular box where the target is located on the two-dimensional image, and then count the number of rectangular boxes to obtain the number of moving targets.

[0176] It should be noted that the targets in the two-dimensional image here may be the same as or different from the targets in the above point cloud data. The difference is usually that more targets are detected here, while the targets in the above point cloud data are relatively fewer.

[0177] S804, comparing the number of moving targets with the historical target number limit to obtain a target number comparison result.

[0178] In this step, after obtaining the number of moving targets in the two-dimensional image at the current moment, optionally, the absolute value of the second difference between the number of moving targets and the historical target number limit can be calculated, and the absolute value of the second difference can be compared with the preset first number threshold to obtain the target number comparison result.

[0179] The historical target quantity limit here can be obtained by counting the historical traffic flow of the road scene at the historical moment and according to the historical traffic flow. The first quantity threshold can be determined according to the actual situation, for example, it can be 5, 10, 15, etc.

[0180] After obtaining the number of mobile targets in the two-dimensional image at the current moment, the number of mobile targets and the historical target number limit value can be subtracted to obtain a second difference, and the absolute value is taken to obtain the absolute value of the second difference. Afterwards, the absolute value of the second difference can be compared with the first number threshold to obtain a target number comparison result.

[0181] S806: Determine a second initial occlusion prediction result according to the target quantity comparison result.

[0182] In this step, in a possible implementation, if the absolute value of the above-mentioned second difference is less than or equal to the first quantity threshold, it means that the number of targets at the current moment is not much different from the traffic flow at the historical moment, that is, the number of targets at the current moment is a normal number, that is, the targets within the field of view of the second acquisition device are not blocked.

[0183] In another possible implementation, optionally, if the absolute value of the second difference is greater than the first quantity threshold, multiple two-dimensional images to be detected within a subsequent preset time length are obtained; target detection is performed on the multiple two-dimensional images to be detected, and the number of moving targets in each two-dimensional image to be detected is obtained; the number of moving targets in each two-dimensional image to be detected is compared with a preset second quantity threshold, and a second initial occlusion prediction result is determined based on the comparison result.

[0184] Here, the absolute value of the second difference is greater than the first quantity threshold, indicating that the number of moving targets at the current moment is very different from the traffic flow at the historical moment. At this time, there are two corresponding situations. One is that the number of moving targets at the current moment is very small, and the other is that the number of moving targets at the current moment is very large. Usually, the situation where the number of moving targets is very small is more common, and this embodiment is mainly used for explanation.

[0185] The preset duration can be set according to actual conditions, for example, it can be the duration of the red light in the road scene, for example, it can be 30s, 45s, 60s, etc. A two-dimensional image can be collected at each moment within the preset duration, and every 1s of the preset duration can be considered as a moment, or every 2s or every 5s can be considered as a moment, which is not specifically limited in this embodiment, so that multiple two-dimensional images can be obtained.

[0186] Afterwards, the same target detection as in S802 can be performed on each two-dimensional image to obtain the number of targets in each two-dimensional image, and the number of targets in each two-dimensional image is compared with the second number threshold to obtain a second number comparison result. The second number threshold here can also be set according to actual conditions, for example, it can be 0, 1, 5, etc.

[0187] Regarding the second quantity comparison result, in one possible implementation, if the number of targets in each two-dimensional image to be detected is greater than or equal to the second quantity threshold, then it means that the number of targets at the current moment is normal, that is, the targets within the field of view of the second acquisition device are not blocked.

[0188] In another possible implementation, if the number of moving targets in each of the two-dimensional images to be detected is less than the second number threshold, the second initial occlusion prediction result is determined to be that the moving target is occluded. This means that the number of targets at the current moment is abnormal, so the target may be occluded.

[0189] For example, assuming that in the road scene, there is a large truck in the field of view of the second acquisition device. If it does not move for a long time, the large truck will block many subsequent small cars, resulting in a small number of small cars detected in the two-dimensional image, and the number of small cars will be less than the above-mentioned second number threshold for a long time.

[0190] The mobile target occlusion prediction method provided in this embodiment can obtain the number of mobile targets in the two-dimensional image by performing target detection on the two-dimensional image of the target scene, and compare the number of mobile targets with the historical target number limit to obtain the second initial occlusion prediction result of the target being occluded. In this embodiment, the prediction result of the target being occluded in the target scene can be obtained relatively simply and intuitively only by detecting the number of targets, so that the prediction result of the target being occluded in the target scene can be preliminarily obtained, thereby ensuring the timeliness of the mobile target occlusion prediction.

[0191] In another embodiment, another method for predicting occlusion of a moving target is provided. This embodiment relates to a specific process of outputting an occlusion warning according to the occlusion prediction result. Based on the above embodiment, the above method may further include the following steps:

[0192] If the first initial occlusion prediction result is that the moving target is occluded, a first occlusion warning is output; if the second initial occlusion prediction result is that the moving target is occluded, a second occlusion warning is output; if the prediction result of the moving target being occluded is that the moving target is occluded, a third occlusion warning is output.

[0193] In this step, when the target on the first acquisition device side is obscured, a first occlusion warning is output; when the target on the second acquisition device side is obscured, a second occlusion warning is output; when both the first acquisition device side and the second acquisition device side predict that the target is obscured, a third occlusion warning is output.

[0194] Among them, the level of the first occlusion warning is higher than the level of the second occlusion warning, and the level of the third occlusion warning is higher than the levels of the first occlusion warning and the second occlusion warning. The corresponding strategy is priority processing, that is, when the third occlusion warning is output, it can be considered that the target in the target scene is severely obscured, then the occlusion situation in the target scene can be handled with priority, such as timely evacuation, etc.

[0195] The mobile target occlusion prediction method provided in this embodiment can output corresponding occlusion warnings when different acquisition devices predict that the target is occluded. The method of this embodiment can help maintenance personnel to more quickly understand the situation of target occlusion, so as to carry out corresponding maintenance processing in time and ensure road driving safety.

[0196] In order to explain the method of the present application in more detail, a more detailed embodiment is provided below to explain the method. The method may include the following steps S1-S23:

[0197] S1, obtaining point cloud data collected by a first acquisition device for a target scene at a current moment, and performing target detection on the point cloud data to obtain a first target detection result, wherein the first target detection result includes a moving state and a position of a moving target.

[0198] S2, obtaining point cloud data collected by the first collection device at a previous moment for the target scene; the point cloud data at the previous moment includes data of multiple second sampling points.

[0199] S3, grid-dividing the point cloud data at the current moment to obtain the number of first sampling points in each grid; and grid-dividing the point cloud data at the previous moment to obtain the number of second sampling points in each grid.

[0200] S4, calculating a first difference between the number of first sampling points in each grid and the number of second sampling points in the grid.

[0201] S5, determining whether the first difference is greater than a preset sampling point quantity threshold, if so, executing S7, otherwise, executing S6.

[0202] S6, grid is not blocked.

[0203] S7, determining that the grid is blocked, and determining the grid as the blocked grid.

[0204] S8, obtaining the coordinates of the center point of the blocked grid; and obtaining the coordinates of the center point of the moving target according to the three-dimensional position of the moving target.

[0205] S9, calculating the center point distance between the center point of the blocked grid and the center point of the moving target according to the coordinates of the center point of the blocked grid and the coordinates of the center point of the moving target.

[0206] S10, determine whether the center point distance is less than the distance threshold, if so, execute S12, otherwise, execute S11.

[0207] S11, the moving target is in a safe area.

[0208] S12, obtaining the perpendicular distance between the center point projection of the blocked grid and the candidate coordinate axis, and performing mathematical operations on the perpendicular distance and the center point distance to obtain the angle between the line between the center point projection and the center point of the target and the candidate coordinate axis.

[0209] S13, calculating the absolute value of the difference between the heading angle and the included angle of the target.

[0210] S14, determine whether the absolute value of the angle difference is less than the angle threshold, if so, execute S15, otherwise, execute S11.

[0211] S15, determining that the moving target points to the blocked grid, determining that the first initial blockage prediction result is that the moving target in the target scene is blocked, and outputting a first blockage warning.

[0212] S16, obtaining a two-dimensional image captured by the second acquisition device at the current moment for the target scene, and performing target detection on the two-dimensional image to obtain the number of moving targets in the two-dimensional image.

[0213] S17, calculating the absolute value of the second difference between the number of moving targets and the historical target number limit.

[0214] S18, determining whether the absolute value of the second difference is greater than the first quantity threshold, if so, executing S20, otherwise, executing S19.

[0215] S19, the moving target is normal.

[0216] S20, acquiring a plurality of two-dimensional images to be detected within a subsequent preset time period, and performing target detection on the plurality of two-dimensional images to be detected respectively, to obtain the number of moving targets in each of the two-dimensional images to be detected.

[0217] S21, determining whether the number of moving targets in each of the two-dimensional images to be detected is less than a second number threshold, if so, executing S22, otherwise, executing S19.

[0218] S22, determining that the second initial occlusion prediction result is that the target in the target scene is occluded, and outputting a second occlusion warning.

[0219] S23: If the prediction result of the moving target being blocked is that the moving target is blocked, a third blocking warning is output.

[0220] It should be understood that although Figure 2-8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-8 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0221] In one embodiment, Fig. 9 As shown, a mobile target occlusion prediction device is provided, comprising: an acquisition module 10, a division module 11 and an occlusion prediction module 12, wherein:

[0222] An acquisition module 10 is used to acquire point cloud data collected by a first acquisition device for a target scene at a current moment, and perform target detection on the point cloud data to obtain a first target detection result, wherein the first target detection result includes a moving state of a moving target and a position of the moving target;

[0223] A segmentation module 11 is used to segment the point cloud data and determine the blocked detection area in the point cloud data;

[0224] The occlusion prediction module 12 is used to perform occlusion prediction on the mobile target based on the orientation correlation between the first target detection result and the occluded detection area, and obtain a prediction result of the mobile target being occluded in the target scene; wherein the orientation correlation is used to characterize the relative orientation between the mobile target and the occlusion detection area.

[0225] The specific limitations of the occlusion prediction device for a moving target may refer to the limitations of the occlusion prediction method for a moving target in the above text, which will not be repeated here.

[0226] In another embodiment, another occlusion prediction device for a moving target is provided. Based on the above embodiment, the occlusion prediction module 12 may include an orientation relationship determination unit and an occlusion prediction unit, wherein:

[0227] an orientation relationship determining unit, configured to determine an orientation association relationship between the first target detection result and the obscured detection area according to the target moving direction in the moving state of the moving target and the position of the obscured detection area;

[0228] The occlusion prediction unit is used to perform occlusion prediction on the moving target according to the orientation correlation between the first target detection result and the occluded detection area, and obtain a prediction result of the occlusion of the moving target in the target scene.

[0229] In another embodiment, another mobile target occlusion prediction device is provided. Based on the above embodiment, the point cloud data at the current moment includes data of multiple first sampling points; the division module 11 may include a point cloud acquisition unit, a division unit, a quantity comparison unit and a grid determination unit, wherein:

[0230] A point cloud acquisition unit, used to acquire point cloud data collected by the first acquisition device for the target scene at a previous moment; the point cloud data at the previous moment includes data of a plurality of second sampling points;

[0231] A division unit is used to perform grid division on the point cloud data at the current moment to obtain the number of first sampling points in each grid; and to perform grid division on the point cloud data at the previous moment to obtain the number of second sampling points in each grid;

[0232] A quantity comparison unit, used to compare the quantity of the first sampling points in each grid with the quantity of the corresponding second sampling points to obtain a sampling point quantity comparison result;

[0233] The grid determination unit is used to determine whether the grid is blocked according to the comparison result of the number of sampling points, obtain the blocked grid, and determine the blocked grid as the blocked detection area.

[0234] Optionally, the quantity comparison unit is further used to calculate a first difference between the number of first sampling points in each grid and the number of second sampling points in the grid; and compare the first difference with a preset sampling point quantity threshold to obtain a sampling point quantity comparison result.

[0235] Optionally, the grid determination unit is further configured to determine that the grid is blocked and determine the grid as a blocked grid when a comparison result of the number of sampling points shows that the first difference is greater than a threshold value of the number of sampling points.

[0236] In another embodiment, another occlusion prediction device for a moving target is provided. Based on the above embodiment, the occlusion prediction unit may include a distance calculation subunit and a distance comparison subunit, wherein:

[0237] The distance calculation subunit is used to calculate the distance between the moving target and the blocked grid, and compare the distance with a preset distance threshold to obtain a distance comparison result;

[0238] The distance comparison subunit is used to determine the prediction result of the occlusion of the moving target in the target scene according to the distance comparison result.

[0239] Optionally, the position of the moving target includes a plurality of three-dimensional coordinate positions of the moving target; the distance calculation subunit is further used to obtain the coordinates of the center point of the blocked grid; and the coordinates of the center point of the moving target are obtained according to the plurality of three-dimensional coordinate positions of the moving target;

[0240] According to the coordinates of the center point of the blocked grid and the coordinates of the center point of the moving target, the center point distance between the center point of the blocked grid and the center point of the moving target is calculated, and the center point distance is determined as the distance between the moving target and the blocked grid.

[0241] Optionally, the moving state of the above-mentioned moving target includes the heading angle of the moving target at the current moment; the above-mentioned distance comparison subunit is also used to judge whether the moving direction of the moving target is pointing to the obscured grid according to the heading angle of the moving target when the center point distance is less than the distance threshold, and obtain a pointing judgment result; determine the prediction result of the mobile target being obscured in the target scene according to the pointing judgment result.

[0242] Optionally, the above-mentioned distance comparison subunit is also used to obtain the vertical distance between the center point projection of the obscured grid and the candidate coordinate axis; the candidate coordinate axis is a coordinate axis of the plane where the heading angle is located; mathematical operations are performed on the vertical distance and the center point distance to obtain the angle between the line between the center point projection and the center point of the target and the candidate coordinate axis; the heading angle and the angle of the target are compared, and the heading angle and the angle of the target are compared, and based on the comparison result, it is judged whether the moving direction of the moving target is pointing to the obscured grid to obtain a direction judgment result.

[0243] Optionally, the above-mentioned distance comparison subunit is also used to calculate the absolute value of the difference between the heading angle and the included angle of the moving target; compare the absolute value of the difference with a preset angle threshold, and when the absolute value of the difference is less than the angle threshold, it is determined that the moving direction of the moving target is pointing to the blocked grid.

[0244] Optionally, the distance comparison subunit is further used to determine that the prediction result of the moving target being blocked in the target scene is that the moving target is blocked.

[0245] In another embodiment, another occlusion prediction device for a moving target is provided. Based on the above embodiment, the occlusion prediction module 12 may include a first initial prediction unit, a second initial prediction unit and a target occlusion prediction unit, wherein:

[0246] A first initial prediction unit is used to perform occlusion prediction on the moving target according to the orientation correlation between the first target detection result and the occluded detection area, so as to obtain a first initial occlusion prediction result;

[0247] A second initial prediction unit, configured to obtain a second initial occlusion prediction result based on a two-dimensional image acquired by a second acquisition device for the target scene at a current moment;

[0248] The target occlusion prediction unit is used to obtain a prediction result of the moving target being occluded according to the first initial occlusion prediction result and the second initial occlusion prediction result.

[0249] In another embodiment, another mobile target occlusion prediction device is provided. Based on the above embodiment, the second initial prediction unit may include a quantity acquisition subunit, a quantity comparison subunit, and a quantity determination subunit, wherein:

[0250] A quantity acquisition subunit is used to acquire a two-dimensional image acquired by the second acquisition device at the current moment for the target scene, and perform target detection on the two-dimensional image to obtain the number of moving targets in the two-dimensional image;

[0251] The quantity comparison subunit is used to compare the quantity of mobile targets with the historical target quantity limit to obtain a target quantity comparison result;

[0252] The quantity determination subunit is used to determine the second initial occlusion prediction result according to the target quantity comparison result.

[0253] Optionally, the quantity comparison subunit is further used to calculate the absolute value of a second difference between the number of mobile targets and a historical target quantity limit, and compare the absolute value of the second difference with a preset first quantity threshold to obtain a target quantity comparison result.

[0254] Optionally, the above-mentioned quantity determination subunit is also used to obtain multiple two-dimensional images to be detected within a subsequent preset time length when the absolute value of the second difference is greater than the first quantity threshold; perform target detection on the multiple two-dimensional images to be detected, and obtain the number of moving targets in each two-dimensional image to be detected; compare the number of moving targets in each two-dimensional image to be detected with a preset second quantity threshold, and determine a second initial occlusion prediction result based on the comparison result.

[0255] Optionally, the quantity determination subunit is further configured to determine that the second initial occlusion prediction result is that the moving target is occluded when the quantity of the moving targets in each of the two-dimensional images to be detected is less than a second quantity threshold.

[0256] In another embodiment, another mobile target occlusion prediction device is provided. Based on the above embodiment, the above device may further include a first warning output module, a second warning output module and a third warning output module, wherein:

[0257] A first warning output module, configured to output a first occlusion warning when the first initial occlusion prediction result indicates that the moving target is occluded;

[0258] A second warning output module, configured to output a second occlusion warning when the second initial occlusion prediction result indicates that the moving target is occluded;

[0259] The third warning output module is used to output a third occlusion warning when the prediction result of the moving target being occluded is that the moving target is occluded.

[0260] For the specific definition of the occlusion prediction device for a mobile target, please refer to the definition of the occlusion prediction method for a mobile target in the above text, which will not be repeated here. Each module in the above-mentioned occlusion prediction device for a mobile target can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0261] In one embodiment, a computer device is provided, which may be a terminal or a server. Taking the computer device as a terminal as an example, its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for predicting occlusion of a moving target is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0262] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0263] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0264] Acquire point cloud data collected by the first acquisition device for the target scene at the current moment, and perform target detection on the point cloud data to obtain a first target detection result, where the first target detection result includes a moving state of the moving target and a position of the moving target;

[0265] Segment the point cloud data to determine the blocked detection area in the point cloud data;

[0266] According to the orientation correlation between the first target detection result and the occluded detection area, the mobile target is predicted to be occluded, and a prediction result of the mobile target being occluded in the target scene is obtained; wherein the orientation correlation is used to characterize the relative orientation between the mobile target and the occluded detection area.

[0267] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0268] Acquire point cloud data collected by the first acquisition device for the target scene at the current moment, and perform target detection on the point cloud data to obtain a first target detection result, where the first target detection result includes a moving state of the moving target and a position of the moving target;

[0269] Segment the point cloud data to determine the blocked detection area in the point cloud data;

[0270] According to the orientation correlation between the first target detection result and the occluded detection area, the mobile target is predicted to be occluded, and a prediction result of the mobile target being occluded in the target scene is obtained; wherein the orientation correlation is used to characterize the relative orientation between the mobile target and the occluded detection area.

[0271] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0272] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0273] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for predicting occlusion of a moving target, characterized in that: The method comprises: Acquire point cloud data collected by a first acquisition device for a target scene at a current moment, and perform target detection on the point cloud data to obtain a first target detection result, wherein the first target detection result includes a moving state of a moving target and a position of the moving target; Segmenting the point cloud data to determine an obstructed detection area in the point cloud data; According to the orientation association relationship between the first target detection result and the blocked detection area, the mobile target is predicted to be blocked, so as to obtain a prediction result that the mobile target in the target scene is blocked; wherein the orientation association relationship is used to characterize the relative orientation between the mobile target and the blocked detection area; The step of performing occlusion prediction on the mobile target according to the orientation correlation between the first target detection result and the occluded detection area to obtain a prediction result of occlusion of the mobile target in the target scene includes: Determining an orientation association relationship between the first target detection result and the obscured detection area according to the target moving direction in the moving state of the moving target and the position of the obscured detection area; According to the orientation correlation between the first target detection result and the blocked detection area, the mobile target is predicted to be blocked, so as to obtain a prediction result that the mobile target in the target scene is blocked; The point cloud data at the current moment includes data of a plurality of first sampling points; segmenting the point cloud data to determine the blocked detection area in the point cloud data includes: Acquire point cloud data collected by the first acquisition device for the target scene at a previous moment; the point cloud data at the previous moment includes data of a plurality of second sampling points; Performing grid division on the point cloud data at the current moment to obtain the number of first sampling points in each grid; and performing grid division on the point cloud data at the previous moment to obtain the number of second sampling points in each grid; Comparing the number of first sampling points in each grid with the number of corresponding second sampling points to obtain a sampling point number comparison result; According to the comparison result of the number of sampling points, it is determined whether the grid is blocked, an blocked grid is obtained, and the blocked grid is determined as the blocked detection area.

2. The method according to claim 1, characterized in that The step of comparing the number of first sampling points in each grid with the number of corresponding second sampling points to obtain a sampling point number comparison result includes: Calculating a first difference between the number of first sampling points in each of the grids and the number of second sampling points in the grid; The first difference is compared with a preset sampling point quantity threshold to obtain the sampling point quantity comparison result.

3. The method according to claim 2, characterized in that The determining whether the grid is blocked according to the comparison result of the number of sampling points to obtain the blocked grid includes: if the comparison result of the number of sampling points is that the first difference is greater than the sampling point number threshold, determining that the grid is blocked and determining the grid as the blocked grid.

4. The method according to claim 3, characterized in that The step of performing occlusion prediction on the mobile target according to the orientation correlation between the first target detection result and the occluded detection area to obtain a prediction result of occlusion of the mobile target in the target scene includes: Calculating the distance between the moving target and the blocked grid, and comparing the distance with a preset distance threshold to obtain a distance comparison result; According to the distance comparison result, a prediction result of the moving target being blocked in the target scene is determined.

5. The method according to claim 4, characterized in that The position of the moving target includes a plurality of three-dimensional coordinate positions of the moving target; and the calculating the distance between the moving target and the blocked grid includes: Obtaining the coordinates of the center point of the blocked grid; According to the multiple three-dimensional coordinate positions of the moving object, the coordinates of the center point of the moving object are obtained; According to the coordinates of the center point of the obscured grid and the coordinates of the center point of the moving target, the center point distance between the center point of the obscured grid and the center point of the moving target is calculated, and the center point distance is determined as the distance between the moving target and the obscured grid.

6. The method according to claim 5, characterized in that The moving state of the moving target includes the heading angle of the moving target at the current moment; and determining the prediction result of the moving target being blocked in the target scene according to the distance comparison result includes: If the center point distance is less than the distance threshold, judging whether the moving direction of the moving target points to the blocked grid according to the heading angle of the moving target, and obtaining a direction judgment result; A prediction result of occlusion of a moving target in the target scene is determined according to the direction judgment result.

7. The method according to claim 6, characterized in that The step of determining whether the moving direction of the moving target points to the blocked grid according to the heading angle of the moving target to obtain a direction determination result includes: Obtaining a vertical distance between the projection of the center point of the blocked grid and a candidate coordinate axis; the candidate coordinate axis is a coordinate axis of the plane where the heading angle is located; Performing mathematical operations on the vertical distance and the center point distance to obtain an angle between a line connecting the center point projection and the center point of the target and the candidate coordinate axis; The heading angle of the target is compared with the included angle, and it is determined whether the moving direction of the moving target points to the blocked grid according to the comparison result to obtain a direction determination result.

8. The method according to claim 7, characterized in that The comparing the heading angle of the target with the included angle, and judging whether the moving direction of the moving target points to the blocked grid according to the comparison result, to obtain the direction judgment result, includes: Calculating the absolute value of the difference between the heading angle of the moving target and the included angle; Comparing the absolute value of the difference with a preset angle threshold, if the absolute value of the difference is less than the angle threshold, determining that the moving direction of the moving target points to the blocked grid; The step of determining the prediction result of the mobile target being blocked in the target scene according to the pointing judgment result includes: The prediction result that the moving target in the target scene is blocked is determined as the moving target being blocked.

9. The method according to claim 1, characterized in that: The step of performing occlusion prediction on the mobile target according to the orientation correlation between the first target detection result and the occluded detection area to obtain a prediction result of occlusion of the mobile target in the target scene includes: According to the orientation correlation between the first target detection result and the blocked detection area, performing occlusion prediction on the moving target to obtain a first initial occlusion prediction result; Acquire a second initial occlusion prediction result based on the two-dimensional image acquired by the second acquisition device for the target scene at the current moment; A prediction result of whether the moving object is occluded is obtained according to the first initial occlusion prediction result and the second initial occlusion prediction result.

10. The method according to claim 9, characterized in that The obtaining a second initial occlusion prediction result based on the two-dimensional image captured by the second acquisition device for the target scene at the current moment includes: Acquire a two-dimensional image captured by a second acquisition device for the target scene at the current moment, and perform target detection on the two-dimensional image to obtain the number of moving targets in the two-dimensional image; Comparing the number of moving targets with the historical target number limit to obtain a target number comparison result; The second initial occlusion prediction result is determined according to the target quantity comparison result.

11. The method according to claim 10, characterized in that The comparing the number of the moving targets with the historical target number limit to obtain the target number comparison result includes: calculating the absolute value of the second difference between the number of the moving targets and the historical target number limit, and comparing the absolute value of the second difference with a preset first number threshold to obtain the target number comparison result.

12. The method according to claim 11, characterized in that The determining the second initial occlusion prediction result according to the target quantity comparison result includes: If the absolute value of the second difference is greater than the first quantity threshold, acquiring a plurality of two-dimensional images to be detected within a subsequent preset time period; Performing target detection on the plurality of two-dimensional images to be detected respectively to obtain the number of moving targets in each of the two-dimensional images to be detected; The number of moving objects in each of the two-dimensional images to be detected is compared with a preset second number threshold, and the second initial occlusion prediction result is determined according to the comparison result.

13. The method according to claim 12, characterized in that The step of comparing the number of moving objects in each of the two-dimensional images to be detected with a preset second number threshold, and determining the second initial occlusion prediction result according to the comparison result, includes: If the number of moving targets in each of the to-be-detected two-dimensional images is less than the second number threshold, it is determined that the second initial occlusion prediction result is that the moving target is occluded.

14. The method according to claim 9, characterized in that The method further comprises: If the first initial occlusion prediction result is that the moving target is occluded, outputting a first occlusion warning; If the second initial occlusion prediction result is that the moving target is occluded, outputting a second occlusion warning; If the prediction result of the moving target being blocked is that the moving target is blocked, a third blocking warning is output.

15. A moving target occlusion prediction device, characterized in that: The device comprises: an acquisition module, configured to acquire point cloud data collected by a first acquisition device for a target scene at a current moment, and perform target detection on the point cloud data to obtain a first target detection result, wherein the first target detection result includes a moving state of a moving target and a position of the moving target; A segmentation module, used to segment the point cloud data and determine the blocked detection area in the point cloud data; An occlusion prediction module is used to perform occlusion prediction on the mobile target according to the orientation association relationship between the first target detection result and the occluded detection area, and obtain a prediction result that the mobile target is occluded in the target scene; wherein the orientation association relationship is used to characterize the relative orientation between the mobile target and the occlusion detection area; wherein, performing occlusion prediction on the mobile target according to the orientation association relationship between the first target detection result and the occluded detection area, and obtaining a prediction result that the mobile target is occluded in the target scene, includes: Determining an orientation association relationship between the first target detection result and the obscured detection area according to the target moving direction in the moving state of the moving target and the position of the obscured detection area; According to the orientation correlation between the first target detection result and the blocked detection area, the mobile target is predicted to be blocked, so as to obtain a prediction result that the mobile target in the target scene is blocked; The point cloud data at the current moment includes data of a plurality of first sampling points; segmenting the point cloud data to determine the blocked detection area in the point cloud data includes: Acquire point cloud data collected by the first acquisition device for the target scene at a previous moment; the point cloud data at the previous moment includes data of a plurality of second sampling points; Performing grid division on the point cloud data at the current moment to obtain the number of first sampling points in each grid; and performing grid division on the point cloud data at the previous moment to obtain the number of second sampling points in each grid; Comparing the number of first sampling points in each grid with the number of corresponding second sampling points to obtain a sampling point number comparison result; According to the comparison result of the number of sampling points, it is determined whether the grid is blocked, an blocked grid is obtained, and the blocked grid is determined as the blocked detection area.

16. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 14 are implemented.

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