Method, device, equipment and storage medium for detecting objects thrown from high altitude
By acquiring and analyzing the foreground points in the image, generating a moving foreground map and performing trajectory fitting, it solves the problems of low recognition rate and high false detection rate in high-altitude parabola detection, achieves efficient high-altitude parabola detection, and can identify small parabola It also reduces the false detection rate and improves the accuracy and robustness of detection.
Patent Information
- Application Number
- CN202110142061.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-02
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-02-02
AI Technical Summary
In the existing technology, the recognition rate of high-altitude parabola detection is low and the false detection rate is high. It is difficult to effectively detect and identify high-altitude parabola events, especially small parabola events, and the impact of moving interference objects in the monitoring screen on detection cannot be avoided.
By obtaining the foreground points in the image to be detected, a motion foreground map is generated, and the trajectory equation is constructed through the trajectory fitting method to determine whether the high-altitude parabolic conditions are met, including the credibility calculation of the trajectory equation and the matching of preset conditions to avoid motion interference. to improve detection accuracy and sensitivity.
It achieves active detection and early warning of high-altitude parabolic events, improves the sensitivity and accuracy of detection, can effectively identify smaller parabolic objects, reduces the false detection rate, and enhances robustness.
Smart Images

Figure CN112884801B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image data processing, and in particular to a method, device, equipment and storage medium for detecting objects thrown from a high altitude. Background Art
[0002] With the rapid development of cities, high-altitude object dropping incidents have occurred frequently in recent years, and the seriousness of high-altitude object dropping and injuring people has attracted widespread attention from the society. Object dropping from high altitudes not only pollutes the living environment of residents, but also poses a great threat to the personal safety of pedestrians on the road. The traditional way to detect high-altitude object dropping is mainly based on monitoring and video recording. When an incident of high-altitude object dropping and injuring people occurs, the monitoring video is checked and reviewed, but in daily life it only serves as a deterrent. In order to actively detect high-altitude object dropping, the existing technology also proposes a method based on deep learning to detect high-altitude object dropping, but due to the scarcity of high-altitude object dropping data, the model is difficult to train, resulting in a low recognition rate and a high false detection rate for high-altitude object dropping. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a method, device, equipment and storage medium for detecting objects thrown from a high altitude, which can effectively improve the sensitivity and accuracy of detecting objects thrown from a high altitude.
[0004] To achieve the above object, an embodiment of the present invention provides a method for detecting objects thrown from a high altitude, comprising:
[0005] Obtain a preset number of images to be detected;
[0006] Obtaining a foreground point in each of the images to be detected;
[0007] generating a motion foreground image according to the foreground point;
[0008] Performing trajectory fitting on the foreground points in the motion foreground image to generate a trajectory equation;
[0009] When the trajectory equation satisfies a preset high-altitude parabolic condition, it is determined that the moving object in the image to be detected is a high-altitude parabolic.
[0010] As an improvement of the above solution, the step of generating a motion foreground image according to the foreground point includes:
[0011] The foreground points in each of the images to be detected are superimposed to obtain the motion foreground image.
[0012] As an improvement of the above solution, performing trajectory fitting on the foreground point in the moving foreground image to generate a trajectory equation includes:
[0013] Continuously acquiring coordinate information of at least three foreground points in the motion foreground image N times; wherein N is an integer and N≥2;
[0014] Constructing an initial equation according to the coordinate information;
[0015] The credibility of the N initial equations is calculated, and the initial equation with the greatest credibility is used as the trajectory equation.
[0016] As an improvement of the above solution, the calculation of the credibility of the N initial equations includes:
[0017] Acquiring coordinate information of a plurality of target foreground points in the motion foreground image;
[0018] Substituting the coordinate information of the target foreground point into the initial equation in sequence;
[0019] Determine whether the result value of the initial equation is less than a preset error threshold;
[0020] If yes, the credibility of the initial equation is accumulated by 1; if no, the credibility of the initial equation is accumulated by 0; wherein the initial value of the credibility of the initial equation is 0.
[0021] As an improvement of the above scheme, the high-altitude throwing conditions include at least one of the following:
[0022] The parabola corresponding to the trajectory equation opens downward;
[0023] The credibility of the trajectory equation is greater than a preset credibility threshold;
[0024] The degree of discreteness of the foreground points within a preset distance of the parabola corresponding to the trajectory equation satisfies a preset discrete index.
[0025] As an improvement of the above solution, after obtaining a preset number of images to be detected, the method further includes:
[0026] When the format of the image to be detected does not conform to the preset image format, the format of the image to be detected is converted.
[0027] As an improvement of the above solution, the preset image format is a YUV format.
[0028] To achieve the above purpose, the embodiment of the present invention further provides a device for detecting objects thrown from a high altitude, comprising:
[0029] An image acquisition module, used to acquire a preset number of images to be detected;
[0030] A foreground point acquisition module, used to acquire the foreground point in each of the images to be detected;
[0031] A motion foreground image generating module, used to generate a motion foreground image according to the foreground point;
[0032] A trajectory equation generating module performs trajectory fitting on the foreground points in the motion foreground image to generate a trajectory equation;
[0033] The high-altitude object throwing judgment module is used to judge that the moving object in the image to be detected is a high-altitude object throwing when the trajectory equation meets the preset high-altitude object throwing condition.
[0034] To achieve the above-mentioned objectives, an embodiment of the present invention also provides a high-altitude object dropping detection device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the high-altitude object dropping detection method as described in any of the above embodiments.
[0035] To achieve the above-mentioned purpose, an embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the high-altitude throwing object detection method as described in any of the above embodiments.
[0036] Compared with the technical solutions mainly based on monitoring and video recording, the high-altitude object throwing detection method, device, equipment and storage medium described in the embodiments of the present invention can realize active detection and early warning of high-altitude object throwing events. The present invention generates a motion foreground map to analyze the trajectory of the moving object, which can detect smaller paraboloids in high-altitude object throwing events, solve the problem that deep learning is difficult to identify paraboloids, and also solve the problem that small objects cannot be detected, thereby improving the sensitivity of high-altitude object throwing detection. In addition, the present invention adopts a trajectory fitting method, generates trajectories multiple times, and selects a trajectory equation that meets the preset high-altitude object throwing conditions, thereby avoiding the influence of moving interference objects in the monitoring screen on trajectory detection, and improving the accuracy and robustness of high-altitude object throwing detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a flow chart of a method for detecting objects thrown from a high altitude provided by an embodiment of the present invention;
[0038] Figure 2 is a flow chart of generating trajectory equations provided by an embodiment of the present invention;
[0039] Figure 3 It is a structural block diagram of a high-altitude object throwing detection device provided by an embodiment of the present invention;
[0040] Figure 4 It is a structural block diagram of a high-altitude object throwing detection device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] See also Figure 1 , Figure 1 1 is a flow chart of a method for detecting objects dropped from a high altitude provided by an embodiment of the present invention, wherein the method for detecting objects dropped from a high altitude comprises:
[0043] S1, obtaining a preset number of images to be detected;
[0044] S2, obtaining a foreground point in each of the images to be detected;
[0045] S3, generating a motion foreground image according to the foreground point;
[0046] S4, performing trajectory fitting on the foreground points in the moving foreground image to generate a trajectory equation;
[0047] S5. When the trajectory equation satisfies a preset high-altitude parabolic object condition, determine that the moving object in the image to be detected is a high-altitude parabolic object.
[0048] It is worth noting that the method for detecting objects dropped from a high place described in the embodiment of the present invention can be executed by a controller in a monitoring center. The controller establishes a connection with several monitoring devices and analyzes whether an object dropped from a high place has occurred by acquiring images of the monitoring devices.
[0049] Specifically, in step S1, the preset number is at least 5, and the monitoring device starts to acquire the image to be detected after detecting a moving object. In order to ensure that the motion trajectory of the moving object can be accurately obtained, it is necessary to acquire all the images to be detected in a short time, such as acquiring 5 images to be detected within 1 second. After acquiring the image to be detected, it is also necessary to determine whether the format of the image to be detected meets the processing conditions, and steps S11 to S12 are also included at this time:
[0050] S11, determining whether the format of the image to be detected conforms to a preset image format;
[0051] S12: If yes, execute step S2; if no, perform format conversion on the image to be detected.
[0052] Exemplarily, the preset image format is YUV format or Y format. The subsequent algorithms in the embodiments of the present invention are all algorithms based on image grayscale, so if the image to be detected is not in YUV format or Y format, format conversion must be performed. The specific format conversion process can refer to the prior art, and the present invention does not make specific limitations on this.
[0053] Specifically, in step S2, in one embodiment, the foreground point is obtained by comparing each of the images to be detected with a preset background image. At this time, the foreground point in each of the images to be detected is obtained, including steps S21 to S22:
[0054] S21, subtracting the value of each pixel of the image to be detected from the pixel value corresponding to the background model to obtain an absolute difference;
[0055] S22: judging whether the pixel point at the current position is a foreground point according to the relative size relationship between the absolute difference and a preset background pixel threshold.
[0056] Exemplarily, in the embodiment of the present invention, a background model of the monitoring environment of the monitoring device is pre-built, and the background model is established after the monitoring device is started, and the background model is continuously updated and maintained. The specific method of updating and maintaining the background model can refer to the prior art, and the present invention does not make specific limitations here. Assume that the pixel value of the current position i of the image to be detected is P i , the pixel value at the same position i in the background model is B i , calculate the absolute value difference D i =|P i -B i |, set the absolute difference threshold to Threshold, and the calculation formula of the foreground point at the current position satisfies the following formula:
[0057]
[0058] Among them, when F i =1 indicates that the current position i is the foreground point, F i =0 indicates that the current position i is not the foreground point.
[0059] In another embodiment, the foreground point in each of the to-be-detected images may be obtained according to the optical flow method. The specific method of obtaining the foreground point using the optical flow method may refer to the prior art and will not be described in detail herein.
[0060] Specifically, in step S3, generating a motion foreground image according to the foreground point includes:
[0061] The foreground points in each of the images to be detected are superimposed to obtain the motion foreground image.
[0062] Exemplarily, a moving foreground map within a continuous period of time is generated based on the foreground point. For any position i, as long as the foreground appears within the statistical time, it is marked as a foreground point on the moving foreground map. 1 ,F 2 ,…,F N} is the foreground point of the N images to be detected, is the value of position i of the nth image to be detected, and the calculation formula of the motion foreground image ACC is:
[0063]
[0064] Among them, the position with a value of 1 represents the position of the foreground point.
[0065] Specifically, in step S4, performing trajectory fitting on the foreground points in the moving foreground image to generate a trajectory equation includes steps S41 to S43:
[0066] S41, acquiring coordinate information of at least three foreground points in the moving foreground image N times in succession; wherein N is an integer and N≥2;
[0067] S42, constructing an initial equation according to the coordinate information;
[0068] S43, calculating the credibility of the N initial equations, and taking the initial equation with the greatest credibility as the trajectory equation.
[0069] Exemplarily, three different foreground points on the motion accumulation graph are randomly selected, and N initial equations are calculated, and the expressions of the initial equations satisfy the following formula:
[0070] y=ax 2 +bx+c.
[0071] It is worth noting that the expression of the initial equation in the embodiment of the present invention is not limited to this, and can also be y=ax 2 +bx, or y=ax 2 +b.
[0072] Furthermore, the calculation of the credibility of the N initial equations includes steps S431 to S434:
[0073] S431, obtaining coordinate information of a plurality of target foreground points in the motion foreground image;
[0074] S432, substituting the coordinate information of the target foreground point into the initial equation in sequence;
[0075] S433, determining whether the result value of the initial equation is less than a preset error threshold;
[0076] S434. If so, increment the credibility of the initial equation by 1; if not, increment the credibility of the initial equation by 0. The initial value of the credibility of the initial equation is 0.
[0077] Exemplarily, count several target foreground points on the moving foreground map as the credibility calculation reference value of the parabola equation. For each foreground point on the moving foreground map, let its coordinates be (x i , y i ). If |ax i 2 + bx i + c - y i | < e, increment the credibility of the trajectory equation by 1; otherwise, increment it by 0. Here, e is the preset error threshold. Obtain N trajectory equations and their credibilities, and select the trajectory equation with the highest credibility as the trajectory fitting result.
[0078] It should be noted that the above steps S3 and S4 can be referred to Figure 2 .
[0079] Specifically, in step S5, the high-altitude parabolic conditions include at least one of the following:
[0080] The parabola corresponding to the trajectory equation opens downward;
[0081] The credibility of the trajectory equation is greater than a preset credibility threshold;
[0082] The dispersion degree of the foreground points within a preset distance from the parabola corresponding to the trajectory equation meets a preset dispersion index.
[0083] Exemplarily, when the parabola corresponding to the trajectory equation opens downward, it can indicate that the moving object is thrown from top to bottom. At this time, it can be determined that the moving object corresponding to the trajectory equation is a high-altitude parabola. When the credibility of the trajectory equation is greater than the preset credibility threshold, it indicates that the trajectory equation conforms to the high-altitude parabolic motion trajectory. At this time, it can be determined that the moving object corresponding to the trajectory equation is a high-altitude parabola. Similarly, when the dispersion degree of the foreground points within a preset distance from the parabola corresponding to the trajectory equation meets the preset dispersion index, it indicates that the trajectory equation conforms to the high-altitude parabolic motion trajectory. At this time, it can be determined that the moving object corresponding to the trajectory equation is a high-altitude parabola. Here, the dispersion index includes: range, average difference, and standard deviation. By measuring the dispersion degree between the foreground points, the difference size between each foreground point can be reflected, and thus the credibility of the trajectory equation can also be reflected.
[0084] Compared with the technical solutions mainly based on monitoring and video recording, the method for detecting high-altitude object dropping described in the embodiment of the present invention can realize active detection and early warning of high-altitude object dropping events. The present invention can detect smaller object dropping objects in high-altitude object dropping events by generating a motion foreground map to analyze the trajectory of the moving object, thereby solving the problem that deep learning is difficult to identify object dropping, and at the same time solving the problem that small objects cannot be detected, thereby improving the sensitivity of high-altitude object dropping detection. In addition, the present invention adopts a trajectory fitting method, generates trajectories multiple times, and selects a trajectory equation that meets the preset high-altitude object dropping conditions, thereby avoiding the influence of moving interference objects in the monitoring screen on trajectory detection, and improving the accuracy and robustness of high-altitude object dropping detection.
[0085] See also Figure 3 , Figure 3 1 is a structural block diagram of a high-altitude object detection device 10 provided in an embodiment of the present invention, wherein the high-altitude object detection device 10 comprises:
[0086] An image acquisition module 11 is used to acquire a preset number of images to be detected;
[0087] A foreground point acquisition module 12 is used to acquire a foreground point in each of the images to be detected;
[0088] A motion foreground map generating module 13, used to generate a motion foreground map according to the foreground point;
[0089] A trajectory equation generating module 14 performs trajectory fitting on the foreground points in the motion foreground image to generate a trajectory equation;
[0090] The high-altitude object throwing judgment module 15 is used to judge that the moving object in the image to be detected is a high-altitude object throwing when the trajectory equation meets the preset high-altitude object throwing condition.
[0091] Optionally, the motion foreground image generating module 13 is used for:
[0092] The foreground points in each of the images to be detected are superimposed to obtain the motion foreground image.
[0093] Optionally, the trajectory equation generating module 14 is used to:
[0094] Continuously acquiring coordinate information of at least three foreground points in the motion foreground image N times; wherein N is an integer and N≥2;
[0095] Constructing an initial equation according to the coordinate information;
[0096] The credibility of the N initial equations is calculated, and the initial equation with the greatest credibility is used as the trajectory equation.
[0097] Optionally, calculating the credibility of the N initial equations includes:
[0098] Acquiring coordinate information of a plurality of target foreground points in the motion foreground image;
[0099] Substituting the coordinate information of the target foreground point into the initial equation in sequence;
[0100] Determine whether the result value of the initial equation is less than a preset error threshold;
[0101] If yes, the credibility of the initial equation is accumulated by 1; if no, the credibility of the initial equation is accumulated by 0; wherein the initial value of the credibility of the initial equation is 0.
[0102] Optionally, the high-altitude throwing conditions include at least one of the following:
[0103] The parabola corresponding to the trajectory equation opens downward;
[0104] The credibility of the trajectory equation is greater than a preset credibility threshold;
[0105] The degree of discreteness of the foreground points within a preset distance of the parabola corresponding to the trajectory equation satisfies a preset discrete index.
[0106] Optionally, the image acquisition module 11 is further used for:
[0107] When the format of the image to be detected does not conform to the preset image format, the format of the image to be detected is converted.
[0108] Optionally, the preset image format is a YUV format.
[0109] It is worth noting that the working process of each module in the high-altitude object dropping detection device 10 described in the embodiment of the present invention can refer to the working process of the high-altitude object dropping detection method described in the above embodiment, and will not be repeated here.
[0110] Compared with the technical solutions mainly based on monitoring and video recording, the high-altitude object throwing detection device 10 described in the embodiment of the present invention can realize active detection and early warning of high-altitude object throwing events. The present invention generates a motion foreground map to analyze the trajectory of the moving object, which can detect smaller paraboloids in high-altitude object throwing events, solve the problem that deep learning is difficult to identify paraboloids, and also solve the problem that small objects cannot be detected, thereby improving the sensitivity of high-altitude object throwing detection. In addition, the present invention adopts a trajectory fitting method, generates trajectories multiple times, and selects a trajectory equation that meets the preset high-altitude object throwing conditions, thereby avoiding the influence of moving interference objects in the monitoring screen on trajectory detection, and improving the accuracy and robustness of high-altitude object throwing detection.
[0111] See also Figure 4 , Figure 4: is a structural block diagram of a high-altitude object detection device 20 provided in an embodiment of the present invention. The high-altitude object detection device 20 of this embodiment includes: a processor 21, a memory 22, and a computer program stored in the memory 22 and executable on the processor 21. When the processor 21 executes the computer program, the steps in the above-mentioned various high-altitude object detection method embodiments are implemented. Alternatively, when the processor 21 executes the computer program, the functions of each module / unit in the above-mentioned device embodiments are implemented.
[0112] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 22 and executed by the processor 21 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the high-altitude object detection device 20.
[0113] The high-altitude object detection device 20 can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The high-altitude object detection device 20 can include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art can understand that the schematic diagram is only an example of the high-altitude object detection device 20 and does not constitute a limitation on the high-altitude object detection device 20. It can include more or fewer components than shown in the figure, or combine certain components, or different components. For example, the high-altitude object detection device 20 can also include input and output devices, network access devices, buses, etc.
[0114] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the high-altitude object detection device 20, and uses various interfaces and lines to connect various parts of the entire high-altitude object detection device 20.
[0115] The memory 22 can be used to store the computer program and / or module. The processor 21 realizes various functions of the high-altitude object detection device 20 by running or executing the computer program and / or module stored in the memory 22 and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0116] Wherein, if the module / unit integrated in the high-altitude object throwing detection device 20 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor 21, the steps of the above-mentioned method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include electrical carrier signals and telecommunication signals.
[0117] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0118] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for detecting objects thrown from a high altitude, characterized in that: include: Obtain a preset number of images to be detected; Obtaining a foreground point in each of the images to be detected; generating a motion foreground image according to the foreground point; Performing trajectory fitting on the foreground points in the motion foreground image to generate a trajectory equation; When the trajectory equation satisfies a preset high-altitude parabolic condition, determining that the moving object in the image to be detected is a high-altitude parabolic; The step of performing trajectory fitting on the foreground points in the moving foreground image to generate a trajectory equation includes: Continuously acquiring coordinate information of at least three foreground points in the motion foreground image N times; wherein N is an integer and N≥2; Constructing an initial equation according to the coordinate information; The credibility of the N initial equations is calculated, and the initial equation with the greatest credibility is used as the trajectory equation.
2. The method for detecting objects thrown from a height as claimed in claim 1, characterized in that: The step of generating a motion foreground image according to the foreground point includes: The foreground points in each of the images to be detected are superimposed to obtain the motion foreground image.
3. The method for detecting objects thrown from a height as claimed in claim 1, characterized in that: The calculating the credibility of the N initial equations includes: Acquiring coordinate information of a plurality of target foreground points in the motion foreground image; Substituting the coordinate information of the target foreground point into the initial equation in sequence; Determine whether the result value of the initial equation is less than a preset error threshold; If yes, the credibility of the initial equation is accumulated by 1; if no, the credibility of the initial equation is accumulated by 0; wherein the initial value of the credibility of the initial equation is 0.
4. The method for detecting objects thrown from a height as claimed in claim 1, characterized in that: The conditions for dropping objects from a high altitude include at least one of the following: The parabola corresponding to the trajectory equation opens downward; The credibility of the trajectory equation is greater than a preset credibility threshold; The degree of discreteness of the foreground points within a preset distance of the parabola corresponding to the trajectory equation satisfies a preset discrete index.
5. The method for detecting objects thrown from a height as claimed in claim 1, characterized in that: After obtaining a preset number of images to be detected, the method further includes: When the format of the image to be detected does not conform to the preset image format, the format of the image to be detected is converted.
6. The method for detecting objects thrown from a height as claimed in claim 5, characterized in that: The preset image format is YUV format.
7. A device for detecting objects thrown from a high altitude, characterized in that: include: An image acquisition module, used to acquire a preset number of images to be detected; A foreground point acquisition module, used to acquire the foreground point in each of the images to be detected; A motion foreground image generating module, used to generate a motion foreground image according to the foreground point; A trajectory equation generating module performs trajectory fitting on the foreground points in the motion foreground image to generate a trajectory equation; A high-altitude object throwing judgment module, used for judging that the moving object in the image to be detected is a high-altitude object throwing when the trajectory equation meets the preset high-altitude object throwing condition; Wherein, the trajectory equation generation module is used for: Continuously acquiring coordinate information of at least three foreground points in the motion foreground image N times; wherein N is an integer and N≥2; Constructing an initial equation according to the coordinate information; The credibility of the N initial equations is calculated, and the initial equation with the greatest credibility is used as the trajectory equation.
8. A device for detecting objects thrown from a high altitude, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for detecting objects thrown from a high altitude as described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the high-altitude object detection method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Lane line tracking method and related product
CN110503009A
High-altitude parabolic early-warning identification method based on object track identification
CN111553256A
High-altitude parabolic detection method and device based on trajectory analysis
CN111553274A
