A parabolic object detection method and a parabolic object detection system
Through the data fusion of cameras and lidar, parabolic curves and confidence levels are identified, which solves the problem of false positives and false negatives in parabolic behavior detection in the existing technology, improves the accuracy and coverage of detection, and achieves more efficient monitoring and management. .
Patent Information
- Application Number
- CN202110206045.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-02-24
AI Technical Summary
Existing technology is difficult to detect parabolic behavior in public places in real time, resulting in false alarms and missed alarms. In addition, coverage and accuracy are insufficient, making it difficult to provide timely alarms to reduce losses.
Using a method that combines cameras and lidar, through the fusion of two-dimensional images and three-dimensional point cloud data, we can identify parabolic curves and confidence levels, determine the occurrence of parabolic behavior, and improve detection accuracy and coverage.
Through the dual detection of cameras and lidar, the accuracy and coverage of parabola detection are improved, monitoring loopholes and inspection workload are reduced, and management costs and the probability of accidents are reduced.
Smart Images

Figure CN112926446B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to a parabolic object detection method and a parabolic object detection system. Background Art
[0002] Abnormal throwing of objects in public places is an extremely dangerous behavior. Take the airport as an example. Throwing prohibited items from the airport terminal to the isolation area may disrupt the airport's operating order at the least, or even cause a major safety accident at the worst. At present, the detection of whether there is such throwing behavior in public places is mainly based on images captured by surveillance cameras deployed in public places.
[0003] There are not many studies related to parabolic detection at home and abroad. The existing technology can generally only analyze the parabolic behavior based on the video captured by the camera afterwards. It is difficult to detect whether there is parabolic behavior in the relevant places in real time based on the video captured by the camera. Therefore, it is difficult to timely alarm for parabolic behavior occurring in the relevant places and reduce the losses caused by parabolic behavior. In addition, there are some studies on monitoring the intrusion of objects by laser beaming, mainly perimeter intrusion alarm detectors with laser as light source. Using a single sensor for parabolic detection still has a large number of false alarms and missed alarms in practical applications. Summary of the invention
[0004] Based on the above problems, the present application provides a parabolic detection method and a parabolic detection system to improve the coverage of parabolic detection and improve the accuracy of detection.
[0005] The embodiments of the present application disclose the following technical solutions:
[0006] In a first aspect, the present application provides a parabolic detection method, comprising:
[0007] Obtaining a parabola detection result based on a camera and a parabola detection result based on a laser radar for a target scene; the parabola detection result based on the camera includes: a first parabola curve identified based on a two-dimensional image captured by the camera and a first parabola confidence corresponding to the first parabola curve; the parabola detection result based on the laser radar includes: a second parabola curve identified based on a three-dimensional point cloud detected by the laser radar and a second parabola confidence corresponding to the second parabola curve;
[0008] The camera-based parabolic detection result and the laser radar-based parabolic detection result are fused to obtain a parabolic detection fusion result for the target scene.
[0009] Optionally, the fusing the camera-based parabolic detection result and the laser radar-based parabolic detection result to obtain a fusion result of parabolic detection of the target scene includes:
[0010] When the first parabola confidence level and the second parabola confidence level are both greater than a first confidence threshold and less than a second confidence threshold, obtaining a distance between the first parabola curve and the second parabola curve; and the first confidence threshold is less than the second confidence threshold;
[0011] When the distance is less than a preset distance threshold, it is determined that the first parabola and the second parabola match, it is determined that parabolic behavior occurs in the target scene, and the first parabola or the second parabola is used as a parabola corresponding to the parabolic behavior.
[0012] Optionally, obtaining the distance between the first parabola and the second parabola includes:
[0013] The second parabola is mapped into the coordinate system of the two-dimensional image by using a transformation matrix between the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud, so as to obtain a distance between the first parabola and the mapped second parabola.
[0014] Optionally, the camera-based parabolic detection result further includes: a first parabolic time, which is the earliest parabolic time corresponding to the first parabolic curve; the laser radar-based parabolic detection result further includes: a second parabolic time, which is the earliest parabolic time corresponding to the second parabolic curve;
[0015] After determining that the first parabola and the second parabola match each other, the method further includes:
[0016] The earliest parabolic time between the first parabolic time and the second parabolic time is used as the fused parabolic time.
[0017] Optionally, after determining that the first parabola and the second parabola match each other, the method further includes:
[0018] The maximum confidence of the first parabolic confidence score and the second parabolic confidence score is used as the fused parabolic confidence score.
[0019] Optionally, the method further comprises:
[0020] When the first parabolic confidence and / or the second parabolic confidence is greater than or equal to the second confidence threshold, it is determined that parabolic behavior has occurred in the target scene, and the curve with the largest parabolic confidence between the first parabolic curve and the second parabolic curve is used as the parabolic curve corresponding to the parabolic behavior.
[0021] Optionally, the method further comprises:
[0022] The coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud are jointly calibrated to obtain a transformation matrix between the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud.
[0023] Optionally, obtaining the camera-based parabolic detection result includes:
[0024] Obtaining a two-dimensional image of the target scene captured by the camera;
[0025] Performing motion detection on the two-dimensional image to generate a trajectory image;
[0026] Performing curve detection on the trajectory image and fitting to obtain a first parabolic curve;
[0027] Perform a parabolic judgment on the first parabolic curve to obtain a first parabolic confidence level corresponding to the first parabolic curve.
[0028] Optionally, obtaining the parabola detection result based on laser radar includes:
[0029] Obtaining a three-dimensional point cloud of the target scene detected by the laser radar;
[0030] Preprocessing the three-dimensional point cloud to obtain queue point cloud data;
[0031] Performing parabola detection using the queue point cloud data to obtain the second parabola curve by fitting;
[0032] Perform a parabolic judgment on the second parabolic curve to obtain a second parabolic confidence level corresponding to the second parabolic curve.
[0033] Optionally, preprocessing the three-dimensional point cloud to obtain queue point cloud data includes:
[0034] Setting the laser radar to monitor the target scene in an area of interest and a non-key area;
[0035] Screening points in each frame of point cloud data of the three-dimensional point cloud using preset valid conditions, discarding points in each frame of point cloud data that do not meet the preset valid conditions, and adding the remaining points in each frame of point cloud data to the target queue in units of frames according to time sequence to form queue point cloud data;
[0036] The preset validity condition includes: the point is located within the region of interest and outside the non-key region.
[0037] In a second aspect, the present application provides a parabolic detection system, including: a camera, a laser radar, and a processor;
[0038] The camera is used to capture a two-dimensional image of the target scene;
[0039] The laser radar is used to detect the three-dimensional point cloud of the target scene;
[0040] The processor is used to obtain a parabolic detection result based on a camera for the target scene according to the two-dimensional image, and to obtain a parabolic detection result based on a laser radar for the target scene according to the three-dimensional point cloud; and to fuse the parabolic detection result based on the camera and the parabolic detection result based on the laser radar to obtain a parabolic detection fusion result for the target scene;
[0041] The camera-based parabolic detection result includes: a first parabolic curve identified based on the two-dimensional image taken by the camera and a first parabolic confidence level corresponding to the first parabolic curve; the lidar-based parabolic detection result includes: a second parabolic curve identified based on the three-dimensional point cloud detected by the lidar and a second parabolic confidence level corresponding to the second parabolic curve.
[0042] Optionally, the system further comprises:
[0043] A display is used to obtain the parabola detection fusion result from the processor; and display the parabola detection fusion result.
[0044] Compared with the prior art, this application has the following beneficial effects:
[0045] The parabolic detection method provided in the present application includes: obtaining the parabolic detection results based on the camera and the parabolic detection results based on the laser radar for the target scene; fusing the parabolic detection results based on the camera and the parabolic detection results based on the laser radar to obtain the fusion result of the parabolic detection of the target scene. Since the two parts of the parabolic detection results respectively contain the parabolic curve and the confidence, the confidence can help improve the accuracy of the fusion result. This solution takes advantage of the two sensors and improves the coverage of parabolic detection. It can not only make up for the shortcomings of manual monitoring that is prone to monitoring loopholes, but also reduce the workload of personnel inspections, improve management efficiency in parabolic detection scenarios, and reduce inspection and management costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0047] Figure 1 A flow chart of a parabolic detection method provided in an embodiment of the present application;
[0048] Figure 2A flow chart of another parabolic detection method provided in an embodiment of the present application;
[0049] Figure 3 A schematic diagram of the structure of a parabolic detection system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] As described above, the existing technologies usually rely on a single sensor for parabolic detection. However, in parabolic scenarios, it is difficult for a single sensor to meet the accuracy requirements of parabolic detection. At the same time, the coverage of the detection scene is limited by the sensor detection method. To solve the above problems, the inventors have provided a new parabolic detection method after research. This method takes advantage of the advantages of two sensors, improves the coverage of parabolic detection, and improves the accuracy of parabolic detection by fusing the parabolic detection results of the two sensors.
[0051] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] Exemplary Methods
[0053] See also Figure 1 , which is a flow chart of a parabolic detection method provided in an embodiment of the present application. Figure 1 As shown, the method includes:
[0054] Step 101: Obtaining a parabolic detection result based on a camera and a parabolic detection result based on a laser radar for a target scene.
[0055] In the parabola detection method provided in the embodiment of the present application, the parabola detection results obtained based on the data collected by two sensors are specifically fused. The two sensors are a camera and a laser radar. The camera referred to here can be any model of camera that can take RGB camera images, and this embodiment does not limit it. The laser radar referred to here is any model of laser radar that can detect objects in the scene to form a three-dimensional point cloud, and this embodiment does not limit it.
[0056] In order to achieve the fusion of parabolic detection results, in this step, it is first necessary to obtain the parabolic detection results based on the camera for the target scene and the parabolic detection results based on the lidar for the target scene. The implementation method can be to actively request to obtain the above two parabolic detection results, or to receive the above two parabolic detection results. There is no restriction on the implementation method of obtaining the above two detection results.
[0057] In addition, when step 101 is implemented, the parabolic detection result based on the camera can be obtained first, and then the parabolic detection result based on the laser radar can be obtained; the parabolic detection result based on the laser radar can be obtained first, and then the parabolic detection result based on the camera can be obtained; or the above two parabolic detection results can be obtained at the same time. The execution order of obtaining the above two parabolic detection results is not limited here.
[0058] The camera-based parabola detection result obtained by executing step 101 includes at least: a first parabola curve identified based on a two-dimensional image captured by the camera and a first parabola confidence corresponding to the first parabola curve. The first parabola confidence refers to the degree of credibility of the first parabola curve as a detection result. The higher the first parabola confidence, the higher the credibility of the first parabola curve as a detection result.
[0059] The parabola detection result based on the laser radar obtained by executing step 101 includes at least: a second parabola curve identified based on the three-dimensional point cloud detected by the laser radar and a second parabola confidence corresponding to the second parabola curve. The second parabola confidence refers to the degree of credibility of the second parabola curve as the detection result. The higher the second parabola confidence, the higher the credibility of the second parabola curve as the detection result.
[0060] Step 102: Fuse the parabolic object detection result based on the camera and the parabolic object detection result based on the lidar to obtain a fusion result of the parabolic object detection of the target scene.
[0061] In step 102, the two parabola detection results obtained in step 101 may be fused. It should be noted that the fusion of the two parabola detection results is not performed by direct mathematical operation, but the parabola detection fusion result of the target scene is obtained based on the first parabola confidence and the second parabola confidence.
[0062] In a possible implementation, a first confidence threshold and a second confidence threshold are preset, wherein the first confidence threshold is lower than the second confidence threshold, and both thresholds are positive numbers. When the confidence of the parabola is less than or equal to the first confidence threshold, it indicates that the reliability of the identified parabola is low; when the confidence of the parabola is greater than or equal to the second confidence threshold, it indicates that the reliability of the identified parabola is medium; when the confidence of the parabola is greater than or equal to the second confidence threshold, it indicates that the reliability of the identified parabola is high.
[0063] In the technical solution of the present application, when the first parabola confidence and the second parabola confidence are both greater than the first confidence threshold and less than the second confidence threshold, it can be judged that the credibility of the first parabola curve and the second parabola curve is medium. At this time, in order to ensure the fusion effect, the two parabola curves need to be mutually verified. And a distance threshold is set.
[0064] Specifically, the distance between the first parabola and the second parabola can be obtained first, and then the distance is compared with a preset distance threshold:
[0065] When the distance between the first parabola and the second parabola is less than the preset distance threshold, it is determined that the first parabola matches the second parabola. At this time, the first parabola verifies that the second parabola is credible, and the second parabola verifies that the first parabola is credible, and it can be determined that parabolic behavior has occurred in the target scene. Since the distance between the first parabola and the second parabola is less than the preset distance threshold, it can be known that the relative deviation between the first parabola and the second parabola is very small, so the first parabola or the second parabola can be used as the parabola corresponding to the parabolic behavior. On the contrary, if the distance between the first parabola and the second parabola is greater than or equal to the preset distance threshold, it means that the two cannot verify each other. Therefore, it is impossible to determine that parabolic behavior has occurred in the target scene, and it is impossible to obtain a highly accurate parabolic detection result.
[0066] When at least one of the first parabola confidence and the second parabola confidence is greater than or equal to the second confidence threshold, it indicates that at least one parabola curve is credible. At this time, there is no need to verify in combination with the distance. It is only necessary to determine the parabola detection result that best matches the parabolic behavior of the target scene based on the confidence level. Specifically, it is determined that parabolic behavior has occurred in the target scene, and the curve with the largest parabolic confidence among the first parabola curve and the second parabola curve is used as the parabola curve corresponding to the parabolic behavior. For example, if the first parabola confidence corresponding to the first parabola curve is greater than the second confidence threshold, and the first parabola confidence is greater than the second parabola confidence, the first parabola curve can be used as the final parabola curve, and the first parabola curve can be used as an expression of the parabolic behavior detected in the target scene.
[0067] If both the first parabola confidence and the second parabola confidence are less than or equal to the first confidence threshold, or one of the first parabola confidence and the second parabola confidence is less than or equal to the first confidence threshold, but the other is greater than the first confidence threshold and less than the second confidence threshold, it is determined that there is no sufficiently credible parabola curve. The parabola detection fusion result is not output, or a prompt message is output to report an error.
[0068] In the parabolic detection method provided in the above embodiment, it includes: obtaining the parabolic detection results based on the camera and the parabolic detection results based on the laser radar for the target scene; fusing the parabolic detection results based on the camera and the parabolic detection results based on the laser radar to obtain the fusion result of the parabolic detection of the target scene. Since the two parts of the parabolic detection results respectively contain the parabolic curve and the confidence, the confidence can help improve the accuracy of the fusion result. This solution takes advantage of the two sensors and improves the coverage of parabolic detection. It can not only make up for the shortcomings of manual monitoring that is prone to monitoring loopholes, but also reduce the workload of personnel inspections, improve management efficiency in parabolic detection scenarios, and reduce inspection and management costs.
[0069] In the parabola detection method described above, it is mentioned that when the first parabola confidence of the first parabola curve and the second parabola confidence of the second parabola curve are both greater than the first confidence threshold and less than the second confidence threshold, the distance between the two parabola curves needs to be obtained. However, since the first parabola curve is a curve in a two-dimensional coordinate system and the second parabola curve is a curve in a three-dimensional coordinate system, in order to accurately measure the distance, it is necessary to bring the two parabola curves together in the same coordinate system. To this end, another parabola detection method is also provided in the embodiments of the present application, which is described in detail below in conjunction with the embodiments and drawings.
[0070] See also Figure 2 , which is a flow chart of another parabolic detection method provided in an embodiment of the present application. Figure 2 As shown, the parabolic detection method includes:
[0071] Step 201: Obtaining a parabolic detection result based on a camera and a parabolic detection result based on a laser radar for a target scene.
[0072] The parabola detection result based on the camera includes a first parabola curve and a first parabola confidence corresponding to the first parabola curve, and also includes a first parabola time. The first parabola time is the earliest parabola time corresponding to the first parabola curve. The parabola detection result based on the laser radar includes a second parabola curve and a second parabola confidence corresponding to the second parabola curve, and also includes a second parabola time. The second parabola time is the earliest parabola time corresponding to the second parabola curve.
[0073] Step 202: jointly calibrate the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud to obtain a transformation matrix between the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud.
[0074] In this embodiment, the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud are jointly calibrated, that is, the conversion relationship between the two coordinate systems needs to be calculated by combining the position of the camera in the three-dimensional space, the position of the radar in the three-dimensional space, the mapping relationship between the pixel points in the image taken by the camera and the points in the three-dimensional space, etc. Thus, the transformation matrix from the coordinate system of the three-dimensional point cloud to the coordinate system of the two-dimensional image can be finally obtained.
[0075] Step 203: Determine whether the first parabolic confidence level and the second parabolic confidence level are both greater than the first confidence level threshold and less than the second confidence level threshold. If yes, proceed to step 204; if not, proceed to step 209.
[0076] Step 204: Map the second parabola to the coordinate system of the two-dimensional image using the transformation matrix between the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud, and obtain the distance between the first parabola and the mapped second parabola.
[0077] According to the expression of the second parabola and in combination with the transformation matrix obtained in step 202, the second parabola can be mapped to the coordinate system of the two-dimensional image, so that the mapped second parabola and the aforementioned first parabola are in the same coordinate system, thereby facilitating obtaining a more accurate curve distance.
[0078] Step 205 : Determine whether the distance between the first parabola and the mapped second parabola is less than a preset distance threshold; if yes, proceed to step 206 ; if no, proceed to step 211 .
[0079] In step 204, the distance between the first parabola and the mapped second parabola is obtained. In order to determine whether the two parabola curves can verify each other, the distance can be compared with the preset distance threshold in this step. The smaller the distance, the more it can indicate the matching of the two parabola curves, and further indicates that the parabola curves detected by two different sensors (camera and lidar) for the target scene are very close, see step 206. On the contrary, it indicates that the two curves cannot verify each other, and the occurrence of parabolic behavior cannot be determined at this time. Since the confidence of the two parabola curves does not reach the second confidence threshold, it is impossible to determine a curve that can express the parabolic behavior, see step 211.
[0080] Step 206: Determine whether the first parabola matches the mapped second parabola, determine whether a parabolic behavior occurs in the target scene, and use the first parabola or the second parabola as a parabola corresponding to the parabolic behavior.
[0081] The first parabola curve is used as the expression of the parabola behavior in the two-dimensional image coordinate system, and the second parabola curve is used as the expression of the parabola behavior in the three-dimensional point cloud coordinate system. This step 206 is equivalent to realizing the fusion of the parabola curves.
[0082] Step 207: The earliest parabolic time between the first parabolic time and the second parabolic time is used as the fused parabolic time.
[0083] This step 207 is equivalent to realizing the fusion of parabolic time. Since the first parabolic time is the earliest parabolic time corresponding to the first parabolic curve, and the second parabolic time is the earliest parabolic time corresponding to the second parabolic curve, the earliest parabolic time of the first parabolic time and the second parabolic time is the earliest time of parabolic behavior recognized by the two sensors of the camera and the lidar. By capturing the earliest time of parabolic behavior, it is helpful to issue an alarm prompt in time and reduce the probability of loss and damage of life and property due to parabolic behavior.
[0084] Step 208: The maximum confidence of the first parabolic confidence criterion and the second parabolic confidence criterion is used as the fused parabolic confidence criterion.
[0085] This step 208 is equivalent to realizing the fusion of the parabolic curve confidence. As mentioned above, the first parabolic curve and the second parabolic curve are matched with each other, that is, the two have completed mutual verification and the mutual verification is successful. Therefore, the parabolic curve with a higher confidence level verifies the credibility of the parabolic curve with a lower confidence level. Therefore, the maximum confidence level of the two confidence levels can be used as the fused parabolic confidence level to represent the maximum credibility of the verified parabolic curve.
[0086] Through the above steps 206-208, after the two parabolic curves are verified with each other to obtain matching verification results, the fusion of the parabolic curve, the parabolic time and the parabolic confidence is completed. The parabola detection fusion result also includes the fusion results of the above three parts.
[0087] Step 209: Determine whether at least one of the first parabolic confidence level and the second parabolic confidence level is greater than or equal to the second confidence level threshold; if yes, proceed to step 210; if no, proceed to step 211.
[0088] Step 210: When the first parabolic confidence and / or the second parabolic confidence is greater than or equal to the second confidence threshold, it is determined that parabolic behavior has occurred in the target scene, and the curve with the largest parabolic confidence between the first parabolic curve and the second parabolic curve is used as the parabolic curve corresponding to the parabolic behavior.
[0089] Step 211: Determine whether no parabolic behavior occurs.
[0090] In the above embodiments, the parabolic curve is verified by comparing the confidence and the distance of the parabolic curve. When the verification is successful, the fusion of the parabolic curve, the parabolic time and the parabolic confidence is performed. This method uses both the camera and the lidar to detect the parabolic behavior, which enhances the ability of parabolic detection and improves the accuracy of the parabolic results, making it less likely to have problems such as false detection and missed detection. At the same time, through real-time and efficient detection, and timely output after obtaining the parabolic detection fusion results, it can assist the inspection of the target scene, improve the supervision efficiency, and reduce the probability of accidents. For example, physical interception can be carried out after obtaining the parabolic detection fusion results.
[0091] In the above embodiments, it is introduced that before fusion, it is necessary to obtain the results of the parabolic detection based on the camera and the parabolic detection based on the laser radar. An exemplary implementation method is introduced below.
[0092] (I) Obtaining camera-based parabolic detection results may include:
[0093] Obtain a two-dimensional image of a target scene captured by a camera;
[0094] Perform motion detection on the two-dimensional image to generate a trajectory image;
[0095] Performing curve detection on the trajectory image and fitting to obtain a first parabolic curve;
[0096] Perform a parabolic judgment on the first parabolic curve to obtain a first parabolic confidence level corresponding to the first parabolic curve.
[0097] The step of performing motion detection on the two-dimensional image to generate a trajectory image may include:
[0098] Detecting a motion region included in the two-dimensional image, and configuring corresponding time information for the motion region according to the order of the two-dimensional image in the target video stream;
[0099] Based on the motion regions corresponding to the same moving target included in the multiple frames of the two-dimensional images, a trajectory image corresponding to the moving target is generated.
[0100] The step of performing curve detection on the trajectory image and fitting the first parabolic curve may include:
[0101] According to the moving pixel points in each of the moving areas in the trajectory image, a first parabola curve corresponding to the moving target is fitted. This process can be further divided into:
[0102] A foreground point set is formed by using moving pixel points in each of the moving areas in the trajectory image; the foreground points in the foreground point set are sampled to obtain a sample set; the samples in the sample set include a first preset number of foreground points; according to the position of each of the foreground points included in the sample, a curve corresponding to the sample is fitted; according to the relative position between each of the foreground points in the foreground point set and the curve corresponding to the sample, a fitness value corresponding to the sample is determined; according to the fitness value corresponding to each of the samples in the sample set, a first parabolic curve is determined.
[0103] The step of performing parabolic judgment on the first parabolic curve to obtain a first parabolic confidence level corresponding to the first parabolic curve may include:
[0104] Through the parabolic behavior recognition model, the confidence that the first parabolic curve corresponds to the parabolic behavior is determined according to the position information and time information corresponding to each of the multiple moving pixel points on the first parabolic curve; the time information corresponding to the moving pixel point is the time information corresponding to the moving area to which it belongs; based on the confidence, it is determined whether the moving target corresponds to the parabolic behavior.
[0105] (ii) Obtaining parabolic detection results based on laser radar, which may include:
[0106] Obtain a three-dimensional point cloud of the target scene detected by the laser radar;
[0107] Preprocess the three-dimensional point cloud to obtain queue point cloud data;
[0108] The parabola detection is performed using the queue point cloud data, and the second parabola curve is obtained by fitting;
[0109] Perform a parabolic judgment on the second parabolic curve to obtain a second parabolic confidence level corresponding to the second parabolic curve.
[0110] Among them, the operations of using the queue point cloud data to perform parabola detection and fitting to obtain the second parabola curve; performing parabola judgment on the second parabola curve and obtaining the second parabola confidence corresponding to the second parabola curve are similar to the above-mentioned part (I), so they will not be repeated here. Please refer to the description of part (I).
[0111] Next, a detailed description is given of the implementation method of the steps of preprocessing the three-dimensional point cloud to obtain the queue point cloud data.
[0112] First, the laser radar can set the area of interest and non-key areas in the monitoring area of the target scene. Among them, the area of interest is the area that needs to be focused on. The point cloud data in the area of interest is relatively important for detecting parabolic curves and identifying parabolic behavior; while the non-key area can be ignored. The point cloud data in the non-key area has very little effect and significance on detecting parabolic curves and identifying parabolic behavior. Then, the points in each frame of point cloud data of the three-dimensional point cloud are screened using the preset effective conditions, and the points in each frame of point cloud data that do not meet the preset effective conditions are discarded. Among them, the preset effective conditions include: the point is located in the area of interest and outside the non-key area. That is to say, for the three-dimensional point cloud, the points located in the area of interest and outside the non-key area are regarded as valid points and retained, while the points that do not meet the above conditions are discarded. In this way, after screening by the preset effective conditions, only valid points are retained.
[0113] These points can be regarded as "one frame" according to the preset time length. For example, every 20ms of valid point cloud data is regarded as one frame. The remaining points in each frame of point cloud data are added to the target queue in units of frames in time sequence. The length of the target queue can be set according to prior knowledge, for example, it is set to a length of L. L is a positive integer. If the number of frames that need to be added to the target queue exceeds L, the frame that enters the target queue earliest will be removed according to the first-in-first-out principle. Finally, a target queue with a queue length of L is formed, and the data in it is called queue point cloud data.
[0114] Based on the parabolic object detection method provided in the above-mentioned embodiment, the present application also provides a parabolic object detection system. The implementation of the parabolic object detection system is introduced below in combination with the embodiments and drawings.
[0115] Exemplary Systems
[0116] See also Figure 3 , which is a schematic diagram of the structure of a parabolic detection system provided in an embodiment of the present application. Figure 3 As shown, the parabolic detection system 300 includes: a camera 301, a laser radar 302, and a processor 303;
[0117] A camera 301 is used to capture a two-dimensional image of a target scene;
[0118] Laser radar 302, used to detect the three-dimensional point cloud of the target scene;
[0119] The processor 303 is used to obtain a parabola detection result of the target scene based on the camera 301 according to the two-dimensional image, and obtain a parabola detection result of the target scene based on the laser radar 302 according to the three-dimensional point cloud; and fuse the parabola detection result based on the camera 301 and the parabola detection result based on the laser radar 302 to obtain a parabola detection fusion result of the target scene;
[0120] The parabola detection result based on camera 301 includes: a first parabola curve identified based on the two-dimensional image taken by camera 301 and a first parabola confidence level corresponding to the first parabola curve; the parabola detection result based on laser radar 302 includes: a second parabola curve identified based on the three-dimensional point cloud detected by laser radar 302 and a second parabola confidence level corresponding to the second parabola curve.
[0121] Since the two parts of parabola detection results include parabola curve and confidence respectively, the confidence can help improve the accuracy of the fusion result. The parabola detection system 300 takes advantage of the two sensors to improve the coverage of parabola detection, which can not only make up for the shortcomings of manual monitoring that is prone to monitoring loopholes, but also reduce the workload of personnel inspections, improve management efficiency in parabola detection scenarios, and reduce inspection and management costs.
[0122] In a possible implementation manner, the processor 303 is specifically configured to:
[0123] When the first parabola confidence level and the second parabola confidence level are both greater than a first confidence threshold and less than a second confidence threshold, obtaining a distance between the first parabola curve and the second parabola curve; and the first confidence threshold is less than the second confidence threshold;
[0124] When the distance is less than a preset distance threshold, it is determined that the first parabola and the second parabola match, it is determined that parabolic behavior occurs in the target scene, and the first parabola or the second parabola is used as a parabola corresponding to the parabolic behavior.
[0125] In a possible implementation manner, the processor 303 is specifically configured to:
[0126] The second parabola is mapped into the coordinate system of the two-dimensional image by using a transformation matrix between the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud, so as to obtain a distance between the first parabola and the mapped second parabola.
[0127] In a possible implementation, the camera-based parabolic detection result further includes: a first parabolic time, which is the earliest parabolic time corresponding to the first parabolic curve; the laser radar-based parabolic detection result further includes: a second parabolic time, which is the earliest parabolic time corresponding to the second parabolic curve;
[0128] The processor 303 is further configured to:
[0129] The earliest parabolic time between the first parabolic time and the second parabolic time is used as the fused parabolic time.
[0130] In a possible implementation manner, the processor 303 is further configured to:
[0131] The maximum confidence of the first parabolic confidence score and the second parabolic confidence score is used as the fused parabolic confidence score.
[0132] In a possible implementation manner, the processor 303 is further configured to:
[0133] When the first parabolic confidence and / or the second parabolic confidence is greater than or equal to the second confidence threshold, it is determined that parabolic behavior has occurred in the target scene, and the curve with the largest parabolic confidence between the first parabolic curve and the second parabolic curve is used as the parabolic curve corresponding to the parabolic behavior.
[0134] In a possible implementation manner, the processor 303 is further configured to:
[0135] The coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud are jointly calibrated to obtain a transformation matrix between the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud.
[0136] In a possible implementation manner, the processor 303 is specifically configured to:
[0137] Obtaining a two-dimensional image of the target scene captured by the camera;
[0138] Performing motion detection on the two-dimensional image to generate a trajectory image;
[0139] Performing curve detection on the trajectory image and fitting to obtain a first parabolic curve;
[0140] Perform a parabolic judgment on the first parabolic curve to obtain a first parabolic confidence level corresponding to the first parabolic curve.
[0141] In a possible implementation manner, the processor 303 is specifically configured to:
[0142] Obtaining a three-dimensional point cloud of the target scene detected by the laser radar;
[0143] Preprocessing the three-dimensional point cloud to obtain queue point cloud data;
[0144] Performing parabola detection using the queue point cloud data to obtain the second parabola curve by fitting;
[0145] Perform a parabolic judgment on the second parabolic curve to obtain a second parabolic confidence level corresponding to the second parabolic curve.
[0146] In a possible implementation manner, the processor 303 is specifically configured to:
[0147] Setting the laser radar to monitor the target scene in an area of interest and a non-key area;
[0148] Screening points in each frame of point cloud data of the three-dimensional point cloud using preset valid conditions, discarding points in each frame of point cloud data that do not meet the preset valid conditions, and adding the remaining points in each frame of point cloud data to the target queue in units of frames according to time sequence to form queue point cloud data;
[0149] The preset validity condition includes: the point is located within the region of interest and outside the non-key region.
[0150] The parabolic object detection system 300 further includes:
[0151] The display 304 is used to obtain the parabolic detection fusion result from the processor 303 and display the parabolic detection fusion result. By displaying the parabolic detection fusion result on the display 304, the user (for example, a person monitoring the parabolic behavior in the scene) can be informed of the occurrence of the parabolic behavior, the parabolic time and the parabolic path, thereby improving the management efficiency in the scene and reducing the patrol and management costs. By displaying on the display 304, the user can be more timely and accurate in understanding the parabolic behavior.
[0152] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0153] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A parabolic detection method, It is characterized in that include: Obtaining the camera-based parabolic detection results and the laser radar-based parabolic detection results of the target scene; The camera-based parabola detection result includes: a first parabola curve identified based on a two-dimensional image captured by the camera and a first parabola confidence level corresponding to the first parabola curve; the laser radar-based parabola detection result includes: a second parabola curve identified based on a three-dimensional point cloud detected by the laser radar and a second parabola confidence level corresponding to the second parabola curve; Fusing the camera-based parabolic detection result and the laser radar-based parabolic detection result to obtain a parabolic detection fusion result for the target scene; The fusing the camera-based parabolic detection result and the laser radar-based parabolic detection result to obtain a parabolic detection fusion result for the target scene includes: When the first parabola confidence level and the second parabola confidence level are both greater than a first confidence threshold and less than a second confidence threshold, obtaining a distance between the first parabola curve and the second parabola curve; and the first confidence threshold is less than the second confidence threshold; When the distance is less than a preset distance threshold, it is determined that the first parabola and the second parabola match, it is determined that parabolic behavior occurs in the target scene, and the first parabola or the second parabola is used as a parabola corresponding to the parabolic behavior.
2. The method according to claim 1, It is characterized in that The obtaining the distance between the first parabola and the second parabola comprises: The second parabola is mapped into the coordinate system of the two-dimensional image by using a transformation matrix between the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud, so as to obtain a distance between the first parabola and the mapped second parabola.
3. The method according to claim 1, It is characterized in that The camera-based parabolic detection result further includes: a first parabolic time, which is the earliest parabolic time corresponding to the first parabolic curve; the laser radar-based parabolic detection result further includes: a second parabolic time, which is the earliest parabolic time corresponding to the second parabolic curve; After determining that the first parabola and the second parabola match each other, the method further includes: The earliest parabolic time between the first parabolic time and the second parabolic time is used as the fused parabolic time.
4. The method according to claim 1, It is characterized in that After determining that the first parabola and the second parabola match each other, the method further includes: The maximum confidence of the first parabolic confidence score and the second parabolic confidence score is used as the fused parabolic confidence score.
5. The method according to claim 1, It is characterized in that Also includes: When the first parabolic confidence and / or the second parabolic confidence is greater than or equal to the second confidence threshold, it is determined that parabolic behavior has occurred in the target scene, and the curve with the largest parabolic confidence between the first parabolic curve and the second parabolic curve is used as the parabolic curve corresponding to the parabolic behavior.
6. The method according to claim 3, It is characterized in that Also includes: The coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud are jointly calibrated to obtain a transformation matrix between the coordinate system of the two-dimensional image and the coordinate system of the three-dimensional point cloud.
7. The method according to claim 1, It is characterized in that Obtaining the camera-based parabolic detection result, including: Obtaining a two-dimensional image of the target scene captured by the camera; Performing motion detection on the two-dimensional image to generate a trajectory image; Performing curve detection on the trajectory image and fitting to obtain a first parabolic curve; Perform a parabolic judgment on the first parabolic curve to obtain a first parabolic confidence level corresponding to the first parabolic curve.
8. The method according to claim 1, It is characterized in that Obtaining the parabolic detection result based on the laser radar, including: Obtaining a three-dimensional point cloud of the target scene detected by the laser radar; Preprocessing the three-dimensional point cloud to obtain queue point cloud data; Performing parabola detection using the queue point cloud data to obtain the second parabola curve by fitting; Perform a parabolic judgment on the second parabolic curve to obtain a second parabolic confidence level corresponding to the second parabolic curve.
9. The method according to claim 8, It is characterized in that The preprocessing of the three-dimensional point cloud to obtain queue point cloud data includes: Setting the laser radar to monitor the target scene in an area of interest and a non-key area; Screening points in each frame of point cloud data of the three-dimensional point cloud using preset valid conditions, discarding points in each frame of point cloud data that do not meet the preset valid conditions, and adding the remaining points in each frame of point cloud data to the target queue in units of frames according to time sequence to form queue point cloud data; The preset validity condition includes: the point is located within the region of interest and outside the non-key region.
10. A parabolic detection system, It is characterized in that include: Camera, LiDAR, processor; The camera is used to capture a two-dimensional image of the target scene; The laser radar is used to detect the three-dimensional point cloud of the target scene; The processor is used to obtain a parabolic detection result of the target scene based on a camera according to the two-dimensional image, and to obtain a parabolic detection result of the target scene based on a laser radar according to the three-dimensional point cloud; Fusing the camera-based parabolic detection result and the laser radar-based parabolic detection result to obtain a parabolic detection fusion result for the target scene; The camera-based parabola detection result includes: a first parabola curve identified based on a two-dimensional image captured by the camera and a first parabola confidence level corresponding to the first parabola curve; the laser radar-based parabola detection result includes: a second parabola curve identified based on a three-dimensional point cloud detected by the laser radar and a second parabola confidence level corresponding to the second parabola curve; The fusing the camera-based parabolic detection result and the laser radar-based parabolic detection result to obtain a parabolic detection fusion result for the target scene includes: When the first parabola confidence level and the second parabola confidence level are both greater than a first confidence threshold and less than a second confidence threshold, obtaining a distance between the first parabola curve and the second parabola curve; and the first confidence threshold is less than the second confidence threshold; When the distance is less than a preset distance threshold, it is determined that the first parabola and the second parabola match, it is determined that parabolic behavior occurs in the target scene, and the first parabola or the second parabola is used as a parabola corresponding to the parabolic behavior.
11. The system according to claim 10, It is characterized in that Also includes: A display, used to obtain the parabola detection fusion result from the processor; The parabola detection fusion result is displayed.
Citation Information
Patent Citations
Object detection and tracking method of fusing laser point clouds and images
CN108509918A
Unmanned ship water surface target detection, identification and positioning method based on monocular camera and lidar information fusion
CN109444911A
Laser radar and binocular camera data fusion detection method and system
CN111340797A
Target detection method and device, equipment and storage medium
CN112102409A
