Image-based high-altitude object detection method, readable storage medium and detection device
Through the image-based high-altitude parabola detection method, using moving target detection and confidence update, combined with the mixed Gaussian model and Hough transform, the problem of difficult real-time monitoring of high-altitude parabola events in the existing technology is solved, and efficient real-time detection and early warning are achieved. .
Patent Information
- Application Number
- CN202210401574.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-18
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-04-18
AI Technical Summary
Existing technology makes it difficult to monitor and warn of high-altitude parabolic events in real time, making manual positioning difficult and ineffective.
Through the image-based high-altitude parabolic detection method, frame images are obtained and moving targets are detected. Suspected parabolic target matching and confidence update are used to detect high-altitude parabolic targets in real time. It is combined with hybrid Gaussian model and Hough transform and other technologies to eliminate interfering targets and achieve real-time detection.
It achieves real-time detection and early warning of high-altitude parabolic events, improves monitoring efficiency and accuracy, and reduces the difficulty and time of manual positioning.
Smart Images

Figure CN114782490B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing, and more specifically, to an image-based high-altitude projectile detection method, storage medium and detection device. Background Art
[0002] In recent years, with the rapid development of urbanization, there are more and more high-rise buildings, and the resulting high-altitude throwing behavior is also common. The number of injuries caused by it is increasing, which has attracted widespread attention from the society. At present, the monitoring of high-altitude throwing is mainly achieved through video surveillance. After the throwing incident occurs, the evidence of throwing is found by checking the surveillance again, which makes it very difficult to locate manually. It is not only time-consuming and labor-intensive, but also ineffective. Therefore, the high-altitude throwing detection algorithm is used to monitor the video in real time, so as to deal with it in time, which is of practical significance for warning the occurrence of high-altitude throwing incidents. Summary of the invention
[0003] In view of the prior art, the technical problem solved by the present application is to provide an image-based high-altitude object detection method, a detection device and a computer-readable storage medium that can acquire frame images and detect high-altitude object detection in real time.
[0004] In order to solve the above technical problems, in the first aspect, the present application provides an image-based high-altitude object detection method, comprising:
[0005] Acquire a first frame image F1 and a second frame image F2 in the process of shooting a high-altitude parabolic object video image, and perform moving target detection on the two frames of images to obtain a moving target set U1 of the first frame image and a moving target set U2 of the second frame image;
[0006] The moving targets in the set U2 are matched with the moving targets in the set U1 as suspected parabolic targets, and the moving targets among the successfully matched suspected parabolic targets are recorded in the suspected parabolic target set P. The position information of each moving target in the suspected parabolic target set P in the first frame image and the second frame image is recorded, and a parabolic confidence value m is assigned to each moving target in the suspected parabolic target set P, where m=1.
[0007] Get the next frame image F j (j=3) and for the j-th frame image F j Perform moving target detection to obtain the moving target set U j , for the set U j Match the suspected parabolic targets with the suspected parabolic target set P obtained in the previous target matching; update the parabolic confidence value m corresponding to the moving target that successfully matches the suspected parabolic target to m+1, and record the position information of the successfully matched moving target in the 1st to i-th frame images; and,
[0008] Continuously obtain the next frame image and update j=j+1, and continue to perform each frame image F j Perform moving target detection to obtain the moving target set U j , and continue to perform each frame of image F j The corresponding set U j The suspected parabolic target is matched with the suspected parabolic target set P obtained from the previous target matching; when the parabolic confidence value m of each moving target in the suspected parabolic target set P is continuously and uninterruptedly updated and the m value is greater than or equal to the threshold value v, the moving target is a high-altitude parabolic target.
[0009] In a possible implementation, moving target detection is performed on the first frame image and the second frame image to obtain the circumscribed rectangular frame of each moving target in the first frame image and the second frame image. The condition for successful matching of a moving target A in the set U1 with a moving target B in the set U2 for suspected parabolic targets is: L1≤2(H A +H B ), and |γ|≤preset angle threshold, and the distance between moving target A and moving target B is the shortest among all moving targets in the first frame image F1;
[0010] Wherein, L is the length of the connecting line between the center point of the circumscribed rectangular frame of the moving target A in the first frame image and the center point of the circumscribed rectangular frame of the moving target B in the second frame image, and H A is the height of the bounding rectangle of the moving target A in the first frame image, H B is the height of the circumscribed rectangular box of the moving target B in the second frame image. γ is the difference between the parabola angle of the moving target B in the second frame image F2 and the parabola angle of the moving target A in the first frame image F1, where the parabola angle value of the moving target B in the image F2 is: the angle of the line connecting the center point of the circumscribed rectangular box of the moving target B on the image F2 and the center point of the circumscribed rectangular box of the moving target A on the image F1 relative to the Y axis direction, and the parabola angle of the moving target A in the image F1 is 0 degrees.
[0011] In a possible implementation, for the set U j The condition for successfully matching a moving target C in (j≥3) with a moving target D in the previous target set P to obtain a suspected parabolic target is: the moving target D belongs to the previous frame image F j-1 The moving target obtained when detecting the moving target, and L2≤2(H C +H D ), and |θ|≤preset angle threshold; and in the previous frame image F j-1 Among all the moving targets, the distance between moving target D and moving target C is the shortest;
[0012] Where L2 is the moving target C in the jth image F j The center point of the circumscribed rectangular box on the image F and the moving target D j-i The length of the line connecting the center points of the circumscribed rectangular frame; H C For the moving target C in image F j The height of the circumscribed rectangular frame on the D For the moving target D in image F j-i The height of the circumscribed rectangular frame of the moving target C in the image F j The parabola angle and the moving target D in the previous frame image F j-1 The difference in the parabola angle in the image F is j The parabola angle value in is: The moving target C in image F j The center point of the circumscribed rectangular box on the image F and the moving target D j-i The angle of the line connecting the center points of the circumscribed rectangular frame on the image F relative to the Y axis direction, the moving target D in the previous frame image F j-1 The parabola angle in the image is: j-1 The center point of the circumscribed rectangular box and the moving target D in image F j-2 The angle between the center points of the circumscribed rectangle and the Y-axis.
[0013] In a possible implementation, it is characterized in that the preset angle threshold is 30 degrees.
[0014] In a possible implementation, the step of performing moving target detection on each frame of image H includes:
[0015] Construct a mixed Gaussian model, and use the mixed Gaussian model to obtain the background image of image H;
[0016] Performing a difference operation between the background image and the image H to obtain a mask image of the moving target in the image H;
[0017] The image H represents each frame of an image that needs to be subjected to moving target detection in the process of detecting high-altitude objects.
[0018] In a possible implementation, the step of performing moving target detection on each frame of image H further includes:
[0019] Performing Hough transform on the mask image of the moving object in the image H to detect the long object, and deleting the long object from the mask image;
[0020] Dilation and erosion processing are performed on the mask image after Hough transformation;
[0021] Solve the circumscribed rectangular frame of each moving object in the mask image after dilation and erosion processing;
[0022] The area S of each moving target in the mask image of the moving target of the image H is calculated. If the value of the area S of a moving target is greater than the area threshold a, the moving target is deleted.
[0023] In a possible implementation, the area threshold a is 10.
[0024] In a second aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the image-based high-altitude projectile detection method are implemented.
[0025] In the third aspect, the present application provides an image-based device for detecting objects thrown from high places, which includes a camera, an image processor and an alarm. The camera and the alarm are both connected to the image processor. The camera is used to take video images of objects thrown from high places. The image processing unit is used to acquire the camera and to execute the steps of the image-based method for detecting objects thrown from high places. The alarm is used to sound an alarm when the image processing unit detects a target of objects thrown from high places.
[0026] The image-based high-altitude parabolic object detection method, image-based high-altitude parabolic object detection device and computer-readable storage medium provided by the present application have the following beneficial effects: performing moving target detection on the first frame image and the second frame image, and performing suspected parabolic target matching on the moving targets in the first frame image and the second frame image to obtain an initial suspected parabolic target set P; then continuously acquiring frame images, continuously acquiring frame images for subsequent acquisitions, matching the moving targets in each frame image with the previously suspected parabolic target to obtain the moving targets in the suspected parabolic target set P, and determining that the moving target is a high-altitude parabolic target when the parabolic confidence value m of each moving target in the suspected parabolic target set P is continuously and uninterruptedly updated and the m value is greater than or equal to 6; in this way, the image-based high-altitude parabolic object detection method can acquire frame images in real time and detect high-altitude parabolic targets in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 any creative labor.
[0028] Figure 1 This is an overall flow chart of the image-based high-altitude object detection method of an embodiment of the present application;
[0029] Figure 2 A flowchart of the steps of performing moving target detection on a frame of image according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the technical problems, technical solutions and beneficial effects to be solved by 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.
[0031] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0032] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0033] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0034] The image-based high-altitude projectile detection method, storage medium and detection device of the present application are now described in detail with reference to the accompanying drawings.
[0035] Refer to Figure 1 The image-based high-altitude object detection method provided in the embodiment of the present application includes the following steps:
[0036] Step S1: obtaining the first frame image F1 and the second frame image F2 in the process of shooting the video image of the high-altitude parabolic object, and performing moving target detection on the two frames of images to obtain the moving target set U1 of the first frame image and the moving target set U2 of the second frame image;
[0037] Step S2: Match the moving targets in the set U2 with the moving targets in the set U1 as suspected parabolic targets, record the moving targets among the successfully matched suspected parabolic targets into the suspected parabolic target set P, and record the position information of each moving target in the suspected parabolic target set P in the first frame image and the second frame image, and assign a parabolic confidence value m to each moving target in the suspected parabolic target set P, where m=1;
[0038] Step S3: Get the next frame image F j (j=3);
[0039] Step S4: For the j-th frame image F j Perform moving target detection to obtain the moving target set U j , for the set U j Match the suspected parabolic targets with the suspected parabolic target set P: update the parabolic confidence value m corresponding to the moving target that successfully matches the suspected parabolic target to m+1, and record the position information of the successfully matched moving target in the 1st to i-th frame images;
[0040] Step S5: Determine whether the parabolic confidence value m of each moving target X in the suspected parabolic target set P is continuously updated and whether the parabolic confidence value m of the moving target X is greater than or equal to the threshold value v; if so, execute step S6, otherwise execute step S7;
[0041] Step S6: the moving target is a high-altitude parabolic target; that is, if the moving target of the suspected parabolic target set P meets the condition of step S6, it is determined that the moving target is a high-altitude parabolic target, and step S7 is executed after executing step S6;
[0042] Step S7: continuously obtain the next frame image and update j=j+1; after executing step S7, return to execute steps S4, S5 and S6, that is, continuously obtain the next frame image and update j=j+1, and continuously perform each frame image F j Perform moving target detection to obtain the moving target set U j , and continue to perform each frame of image F j The corresponding set U j The suspected parabolic target is matched with the suspected parabolic target set P obtained from the previous target matching.
[0043] It is worth noting that j represents the i-th frame image, and X represents any moving target in the suspected parabolic target set P. j The corresponding set U j When matching the suspected parabolic target set P obtained from the previous target matching, the image F j Each moving target in the set P of suspected parabolic targets is detected.
[0044] In the image-based high-altitude parabolic detection method, moving target detection is performed on the first frame image and the second frame image, and the moving targets in the first frame image and the second frame image are detected, and the initial suspected parabolic target set P is obtained by matching the moving targets in the first frame image with the moving targets in the second frame image as suspected parabolic targets; then, frame images are continuously acquired, and frame images are continuously acquired for subsequent acquisitions, and the moving targets in each frame image are matched with the moving targets in the suspected parabolic target set P obtained by matching the previous suspected parabolic target. When the parabolic confidence value m of each moving target in the suspected parabolic target set P is continuously and uninterruptedly updated and whether the m value is greater than or equal to 6, it is determined that the moving target is a high-altitude parabolic target; in this way, the image-based high-altitude parabolic detection method can acquire frame images in real time and detect high-altitude parabolic targets in real time.
[0045] In one embodiment of the application, the threshold value v may be 6.
[0046] In one embodiment of the application, refer to Figure 2 In the above steps S1 to S8, an image H is recorded as each frame image that needs to be detected for moving targets in the process of detecting high-altitude objects. It can be understood that in the frame image H, the background is a stationary target and the foreground is a moving target. The steps of detecting moving targets for each frame image H include:
[0047] Construct a mixed Gaussian model, and use the mixed Gaussian model to obtain the background image of image H;
[0048] The mask image of the moving object in image H is obtained by performing a difference operation between the background image and image H.
[0049] Further references Figure 2 , the step of performing moving target detection on each frame image H also includes:
[0050] Performing Hough transform on the mask image of the moving object in the image H to detect the long object, and deleting the long object from the mask image;
[0051] Dilation and erosion processing are performed on the mask image after Hough transformation;
[0052] Solve the circumscribed rectangular frame of each moving object in the mask image after dilation and erosion processing;
[0053] The area S of each moving object in the mask image of the moving object in the image H is calculated, and if the value of the area S of a moving object is greater than the area threshold a, the moving object is deleted.
[0054] It is worth noting that the Hough transform can be used to detect long targets in the frame image H for parabolic target detection, such as long wires fluttering in the wind in the sky or other long moving targets, so that these interfering targets can be excluded, that is, these interfering targets are excluded before each suspected parabolic target match. In an application embodiment, the area threshold a is 10. By excluding targets with an area less than 10 in the moving foreground targets, targets that are too small can be deleted.
[0055] In the above steps, after target detection is performed on each frame image, the coordinates of all pixel points of the moving target, the circumscribed rectangular frame of the moving target and the center point of the circumscribed rectangular frame can be obtained; in the above steps S2 and S5, the position information of a moving target in each frame image in the frame image includes the coordinates of all pixel points of the moving target, the circumscribed rectangular frame of the moving target and the center point of the circumscribed rectangular frame.
[0056] In one embodiment of the application, in step S2, moving target detection is performed on the first frame image and the second frame image to obtain the circumscribed rectangular frame of each moving target in the first frame image and the second frame image. The condition for a moving target A in the set U1 to successfully match a moving target B in the set U2 for a suspected parabolic target is: L1≤2(H A +H B ), and |γ|≤preset angle threshold, and the distance between moving target A and moving target B is the shortest among all moving targets in the first frame image F1.
[0057] Wherein, L is the length of the connecting line between the center point of the circumscribed rectangular frame of the moving target A in the first frame image and the center point of the circumscribed rectangular frame of the moving target B in the second frame image, and H A is the height of the bounding rectangle of the moving target A in the first frame image, H B is the height of the circumscribed rectangular box of the moving target B in the second frame image. γ is the difference between the parabola angle of the moving target B in the second frame image F2 and the parabola angle of the moving target A in the first frame image F1, where the parabola angle value of the moving target B in the image F2 is: the angle of the line connecting the center point of the circumscribed rectangular box of the moving target B on the image F2 and the center point of the circumscribed rectangular box of the moving target A on the image F1 relative to the Y axis direction, and the parabola angle of the moving target A in the image F1 is 0 degrees.
[0058] In one embodiment of the application, in steps S4 to S7, the set U j The condition for successfully matching a moving target C in (j≥3) with a moving target D in the previous target set P to obtain a suspected parabolic target is: the moving target D belongs to the previous frame image F j-1The moving target obtained when detecting the moving target, and L2≤2(H C +H D ), and |θ|≤preset angle threshold; and in the previous frame image F j-1 Among all the moving targets, the distance between moving target D and moving target C is the shortest.
[0059] Where L2 is the moving target C in the jth image F j The center point of the circumscribed rectangular box on the image F and the moving target D j-i The length of the line connecting the center points of the circumscribed rectangular frame; H C For the moving target C in image F j The height of the circumscribed rectangular frame on the D For the moving target D in image F j-i The height of the circumscribed rectangular frame of the moving target C in the image F j The parabola angle and the moving target D in the previous frame image F j-1 The difference in the parabola angle in the image F is j The parabola angle value in is: The moving target C in image F j The center point of the circumscribed rectangular box on the image F and the moving target D j-i The angle of the line connecting the center points of the circumscribed rectangular frame on the image F relative to the Y axis direction, the moving target D in the previous frame image F j-1 The parabola angle in the image is: j-1 The center point of the circumscribed rectangular box and the moving target D in image F j-2 The angle between the center points of the circumscribed rectangle and the Y-axis.
[0060] It can be understood that A represents any moving target in the first frame image F1, and B represents any moving target in the second frame image F2; in any two adjacent frames starting from the third frame image, C and D represent any moving target in the latter frame image and any moving target in the previous frame image of the two adjacent frames, respectively. In the above steps, the Y axis is the Y axis of the image coordinate system; usually the upper left corner of the image is the origin of the image coordinate system, and usually the circumscribed rectangular frame of the moving target obtained by motion detection is a rectangular frame. The height of the circumscribed rectangular frame mentioned in the above content can be understood as: the length of the longest side of the rectangular frame.
[0061] In one embodiment of the application, the preset angle threshold is 30 degrees. In other embodiments of the application, the preset angle threshold can be adjusted in two directions around 30 degrees. For example, in the actual detection process, the preset angle threshold value range is (30-a, 30+a), and a is 1 to 3.
[0062] In one embodiment of the application, in the steps S4 to S7, each frame of image F is continuously j The corresponding set U j In the process of matching the suspected parabolic target set P obtained by the previous target matching, that is, between step S4 and step S6, the image-based high-altitude parabolic detection method further includes: matching the set U j Any moving target E that is in the set U but not in the set U is added to the set P of suspected parabolic targets; any moving target E that is in the set P of suspected parabolic targets but not in the set U is added to the set P of suspected parabolic targets; j Any moving target F that successfully matches the suspected parabolic target is an intermittent tracking target, and the number of frames of intermittent tracking of the moving target F is recorded. When the number of frames is greater than or equal to 5, the moving target F is deleted from the suspected parabolic target set P. The frame number is the frame number of the image
[0063] It is worth noting that intermittent tracking of the target can be understood as: in the process of continuously acquiring frame images and continuously matching suspected parabolic targets, if a moving target in the suspected parabolic target set P fails to be successfully matched as a suspected parabolic target for multiple consecutive frames, it can be determined that the moving target is not a high-altitude parabolic target and the moving target is not an object of concern in subsequent high-altitude parabolic detection. Deleting the intermittently tracked target from the suspected parabolic target set P can save space and also save time by eliminating the subsequent process of matching suspected parabolic targets for objects that do not need to be concerned.
[0064] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned image-based high-altitude projectile detection method are implemented.
[0065] An embodiment of the present application also provides an image-based device for detecting objects thrown from high altitudes, which includes a camera, an image processor and an alarm. The camera and the alarm are both connected to the image processor. The camera is used to capture video images of objects thrown from high altitudes. The image processing unit is used to acquire the camera and to execute the steps of the above-mentioned image-based method for detecting objects thrown from high altitudes. The alarm is used to sound an alarm when the image processing unit detects a target for objects thrown from high altitudes.
[0066] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for detecting high-altitude objects based on images. It is characterized in that include: Get the first frame of image F in the process of shooting high-altitude parabolic video images 1 and the second frame image F 2 , perform moving target detection on the two frames of images to obtain the moving target set U of the first frame of image 1 and the moving target set U of the second frame image 2 ; The collection U 2 The moving target and the set U in 1 The moving targets of the suspected parabolic targets are matched, and the moving targets among the successfully matched suspected parabolic targets are recorded in the suspected parabolic target set P, and the position information of each moving target in the suspected parabolic target set P in the first frame image and the second frame image is recorded, and a parabolic confidence value m is assigned to each moving target in the suspected parabolic target set P, where m=1. Get the next frame image F j (j=3) and for the j-th frame image F j Perform moving target detection to obtain the moving target set U j , for the set U j Match the suspected parabolic targets with the suspected parabolic target set P obtained in the previous target matching; update the parabolic confidence value m corresponding to the moving target that successfully matches the suspected parabolic target to m+1, and record the position information of the successfully matched moving target in the 1st to i-th frame images; as well as Continuously obtain the next frame image and update j=j+1, and continue to perform each frame image F j Perform moving target detection to obtain the moving target set U j , and continue to perform each frame of image F j The corresponding set U j The suspected parabolic target is matched with the suspected parabolic target set P obtained from the previous target matching; when the parabolic confidence value m of each moving target in the suspected parabolic target set P is continuously and uninterruptedly updated and the m value is greater than or equal to the threshold value v, the moving target is a high-altitude parabolic target.
2. The method for detecting high-altitude objects based on images as claimed in claim 1, It is characterized in that Perform moving target detection on the first frame image and the second frame image, obtain the circumscribed rectangular frame of each moving target in the first frame image and the second frame image, and set U 1 A moving target A and a set U 2 The condition for successfully matching a moving target B in a suspected parabolic target is: 1 ≤2(H A +H B ), and |γ|≤preset angle threshold, and in the first frame image F 1 Among all the moving targets, the distance between moving target A and moving target B is the shortest; Wherein, L is the length of the connecting line between the center point of the circumscribed rectangular frame of the moving target A in the first frame image and the center point of the circumscribed rectangular frame of the moving target B in the second frame image, and H A is the height of the bounding rectangle of the moving target A in the first frame image, H B is the height of the circumscribed rectangular frame of the moving target B in the second frame image; γ is the height of the circumscribed rectangular frame of the moving target B in the second frame image F 2 The parabola angle and moving target A in the first frame image F 1 The difference in the parabola angles in the image F is 2 The parabola angle value in is: The moving target B in image F 2 The center point of the circumscribed rectangular box on the image F and the moving target A 1 The angle of the line connecting the center points of the circumscribed rectangular box on the image F relative to the Y axis direction. 1 The angle of the parabola in is 0 degrees.
3. The method for detecting high-altitude objects based on images as claimed in claim 1, It is characterized in that For the set U j The condition for successfully matching a moving target C in (j≥3) with a moving target D in the previous target set P to obtain a suspected parabolic target is: the moving target D belongs to the previous frame image F j-1 The moving target is obtained when detecting the moving target, and L 2 ≤2(H C +H D ), and |θ|≤preset angle threshold; and in the previous frame image F j-1 Among all the moving targets, the distance between moving target D and moving target C is the shortest; Among them, L 2 is the jth image F of the moving target C. j The center point of the circumscribed rectangular box on the image F and the moving target D j-i The length of the line connecting the center points of the circumscribed rectangular frame; H C For the moving target C in image F j The height of the circumscribed rectangular frame on the D For the moving target D in image F j-i The height of the circumscribed rectangular frame of the moving target C in the image F j The parabola angle and the moving target D in the previous frame image F j-1 The difference in the parabola angles in the image F is j The parabola angle value in is: The moving target C in image F j The center point of the circumscribed rectangular box on the image F and the moving target D j-i The angle of the line connecting the center points of the circumscribed rectangular frame on the image F relative to the Y axis direction, where the moving target D is in the previous frame image F. j-1 The parabola angle in the image is: j-1 The center point of the circumscribed rectangular box and the moving target D in image F j-2 The angle between the center points of the circumscribed rectangle and the Y-axis.
4. The method for detecting high-altitude objects based on images as claimed in claim 2 or 3, It is characterized in that The preset angle threshold is 30 degrees.
5. The method for detecting high-altitude objects based on images as claimed in claim 1, It is characterized in that The steps of performing moving target detection on each frame image H include: Construct a mixed Gaussian model, and use the mixed Gaussian model to obtain the background image of image H; Performing a difference operation between the background image and the image H to obtain a mask image of the moving target in the image H; The image H represents each frame of an image that needs to be subjected to moving target detection in the process of detecting high-altitude objects.
6. The method for detecting high-altitude objects based on images as claimed in claim 5, It is characterized in that The step of performing moving target detection on each frame image H also includes: Performing Hough transform on the mask image of the moving object in the image H to detect the long object, and deleting the long object from the mask image; Dilation and erosion processing are performed on the mask image after Hough transformation; Solve the circumscribed rectangular frame of each moving object in the mask image after dilation and erosion processing; The area S of each moving target in the mask image of the moving target of the image H is calculated. If the value of the area S of a moving target is greater than the area threshold a, the moving target is deleted.
7. The method for detecting high-altitude objects based on images as claimed in claim 6, It is characterized in that The area threshold a is 10.
8. The method for detecting high-altitude objects based on images according to any one of claims 1 to 7, It is characterized in that Continue to perform each frame image F j The corresponding set U j In the process of matching the suspected parabolic target set P obtained from the previous target matching, The collection U j Any moving target E that is in the set of parabolic targets but not in the set of parabolic targets P is added to the set of suspected parabolic targets P. Note that the target that appears in the set P of suspected parabolic objects but is not in the set U j Any moving target F that is successfully matched with a suspected parabolic target is an intermittent tracking target. The number of frames of intermittent tracking of the moving target F is recorded. When the number of frames is greater than and equal to 5, the moving target F is deleted from the suspected parabolic target set P.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the image-based high-altitude projectile detection method described in any one of claims 1 to 8 are implemented.
10. A high-altitude object detection device based on image, It is characterized in that It includes a camera, an image processor and an alarm, wherein the camera and the alarm are both connected to the image processor, the camera is used to shoot video images of objects thrown from high altitude; the image processing unit is used to acquire the camera and to execute the steps of the image-based method for detecting objects thrown from high altitude as described in any one of claims 1 to 8; the alarm is used to sound an alarm when the image processing unit detects a target of objects thrown from high altitude.
