Real-time small moving target detection filtering method based on rod cell bionics
By processing image data through the rod cell bionic method and using a variety of detection algorithms and clustering algorithms to screen out weak moving targets, the problems of detection accuracy and stability in complex backgrounds are solved, and efficient weak target detection is achieved.
Patent Information
- Application Number
- CN202411709617.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2044-11-27
AI Technical Summary
Existing moving target detection models have difficulty in effectively detecting small targets in complex backgrounds and are easily interfered by noise, resulting in reduced detection accuracy and stability.
A real-time weak moving target detection filtering method based on rod cell bionics is adopted. Image data is processed through rod cell units, horizontal cell units and bipolar cell units. A variety of moving target detection algorithms and clustering algorithms are used to screen out stable weak moving targets.
The detection accuracy of weak moving targets in complex backgrounds is improved, the false alarm rate and missed alarm rate are reduced, and the detection precision and stability are improved.
Smart Images

Figure CN119648994B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of motion target detection and signal processing, and in particular relates to a real-time weak motion target detection filtering method and device based on rod cell bionics. Background Art
[0002] For security systems, moving targets are potentially more dangerous. Some of these targets may be intruders moving from non-sensitive areas outside the field of view to sensitive areas within the field of view, some may be suspicious targets that were originally stationary and lurking within the field of view but suddenly begin to move, and some may be sensitive targets that require continuous tracking and monitoring. Moving target detection has great application prospects in fields such as security, especially when the moving target is small and far away from the monitoring system. If the target can be detected and extracted in a timely and effective manner through corresponding algorithms, it will provide sufficient and necessary preparation time for subsequent analysis and response, thereby helping people to promptly and effectively eliminate security threats and resolve potential crises.
[0003] Prashant W. Patil et al. proposed an end-to-end moving target detection network. Compared with comparison methods, this method performs best in detection metrics such as prediction rate, recall rate, and F1 index. However, due to the inherent characteristics of deep convolutional neural networks, this method has difficulty effectively detecting weak moving targets. Li Songlin et al. proposed an improved small moving target detection network based on YoloV5. Compared with comparison methods, this method has better detection indicators for weak targets, but its performance is not stable when the background is complex or changing. Due to the inherent characteristics of YoloV5, it still has difficulty detecting targets when the targets are extremely small. Sajid Javed et al. invented a moving target detection model based on robust principal component analysis of spatiotemporal sparse structures. Although this method can theoretically achieve pixel-level moving target detection and effectively filter out background noise when the target is large, it is likely to mistakenly filter out small targets. Summary of the Invention
[0004] In view of this, the embodiments of the present application propose a real-time small moving target detection filtering method and device based on rod cell bionics, which aims to detect small moving targets more stably in complex dynamic backgrounds.
[0005] To achieve the above-mentioned objectives, an embodiment of the present application provides a real-time weak moving target detection filtering method based on rod cell bionics, comprising: obtaining original image data to be processed; obtaining a pre-constructed rod cell bionic model, wherein the rod cell bionic model includes a rod cell unit, an improved horizontal visual cell unit and a bipolar visual cell unit; processing the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix; using a pre-constructed first moving target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a first matrix, and using a pre-constructed second moving target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix; using the improved horizontal visual cell unit to process the first matrix to obtain multiple target points and corresponding target candidate areas; using the bipolar visual cell unit to process each of the target candidate areas to obtain a first area and a second area, and selecting the second area or the first area based on preset conditions to obtain a final target candidate area; determining a weak moving target detection result based on the second matrix and the final target candidate area.
[0006] Optionally, the processing of the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix includes: extracting the grayscale value of each image frame in the video data or the image sequence based on the rod cell unit; encoding the grayscale value of each image frame based on the rod cell unit to obtain the high-dimensional spatiotemporal grayscale value information matrix.
[0007] Optionally, the high-dimensional spatiotemporal grayscale value information matrix is processed using a pre-constructed first motion target detection algorithm to obtain a first matrix, and the high-dimensional spatiotemporal grayscale value information matrix is processed using a pre-constructed second motion target detection algorithm to obtain a second matrix, including: using an inexact augmented Lagrange multiplier algorithm in which the weight of the sparse error term in the cost function is greater than 0.01 to process the high-dimensional spatiotemporal grayscale value information matrix to obtain the first matrix, wherein the first matrix is used to characterize the foreground area with more significant motion, and the second matrix is used to characterize the background area with aliasing noise and target details; using an inexact augmented Lagrange multiplier algorithm in which the weight of the sparse error term in the cost function is less than 0.001 to process the high-dimensional spatiotemporal grayscale value information matrix to obtain the second matrix, wherein the second matrix is used to characterize the foreground area containing boundaries, details and noise.
[0008] Optionally, each point in the first matrix is an extreme foreground value point, and the improved visual horizontal cell unit has a visual persistence unit and a combined clustering unit. The improved visual horizontal cell unit is used to process the first matrix to obtain multiple target points and corresponding target candidate areas, including: obtaining multiple extreme foreground value points in the first matrix whose extreme foreground values are greater than a preset value as target points; using the combined clustering unit to cluster each of the target points in the first matrix to obtain corresponding first candidate areas; filtering all extreme foreground value points in each of the first candidate areas according to a preset filtering rule to obtain each second candidate area; using the visual persistence unit to process the first matrix of multiple adjacent image frames adjacent to the current image frame, obtaining each neighborhood corresponding to each target point in each of the adjacent image frames, and determining multiple target candidate areas based on each of the target points and each of the neighborhoods in the current image frame.
[0009] Optionally, the value corresponding to each extreme foreground value point in the first matrix is an extreme foreground value, and filtering all extreme foreground value points in each first candidate area according to a preset filtering rule to obtain each second candidate area includes: obtaining all extreme foreground value points in each first candidate area as target extreme foreground value points; obtaining multiple reference extreme foreground value points for each target extreme foreground value point, wherein multiple reference extreme foreground value points are determined based on points adjacent to the target extreme foreground value point in the horizontal and vertical directions; using a preset expression to process the multiple reference extreme foreground value points to obtain the filtering results of each current target extreme foreground value point; and determining each second candidate area based on the filtering results of each target extreme foreground value point in each first candidate area.
[0010] Optionally, the current extreme foreground value point in the first candidate area is (u, v), and the using a preset expression to process multiple reference extreme foreground value points to obtain the filtering results of each current target extreme foreground value point includes: using the preset expression to process the multiple reference extreme foreground value points to obtain a zero value or a non-zero value calculation result of the expression, wherein the preset expression is:
[0011] Fe((u-1), v)||+||Fe((u+1), v)||)||(||Fe(u, (v-1))||+||Fe(u, (v+1))||)
[0012] Wherein, Fe((u-1), v) represents the extreme foreground value of the extreme foreground value point located on the left side of (u, v), Fe((u+1), v) represents the extreme foreground value of the extreme foreground value point located on the right side of (u, v), Fe(u, (v-1) represents the extreme foreground value of the extreme foreground value point located above (u, v), represents the extreme foreground value of the extreme foreground value point located on the right side of (u, v), + represents the AND operator, || represents the absolute value operator; if the calculation result of the expression is zero, the current extreme foreground value is determined to be zero; if the calculation result of the expression is non-zero, the current extreme foreground value remains unchanged.
[0013] Optionally, based on each of the target points and each of the neighborhoods in the current image frame, multiple target candidate areas are determined, including: if the target point is within the range of each of the neighborhoods, the second candidate area corresponding to the target point is marked in the high-dimensional spatiotemporal grayscale value information matrix; if the target point exceeds the range of each of the neighborhoods, the target point is abandoned and marked as a pre-selected target point, the second candidate area corresponding to the pre-selected target point is used as data in the third candidate area, and the visual persistence unit is used to search for multiple extreme foreground value points with extreme foreground values greater than a preset value in the adjacent image frames as new target points, and the combined clustering unit is used to process each of the new target points to obtain the corresponding fourth candidate areas; the K-nearest neighbor clustering voting algorithm is used to perform cluster voting on the second candidate area, the third candidate area and the fourth candidate area to obtain each of the target candidate areas.
[0014] Optionally, the method of processing each of the target candidate areas using a visual bipolar cell unit to obtain a first area and a second area includes: obtaining grayscale information and texture information of each of the target candidate areas based on a visual bipolar cell unit; and processing the grayscale information and the texture information using a regional saliency clustering filtering algorithm to obtain the first area and the second area of each of the target candidate areas, wherein the first area is an area where both the grayscale value and the brightness value are greater than a preset value, and the second area is an area where both the grayscale value and the texture value are less than a preset value.
[0015] Optionally, determining the small and weak moving target detection result based on the second matrix and the final target candidate area includes: performing an AND operation on the second matrix and the target candidate area to obtain a final small and weak moving target detection result.
[0016] To achieve the above-mentioned purpose, the embodiment of the present application further provides a real-time weak motion target detection filtering device based on rod cell bionics, comprising: a first acquisition module for acquiring original image data to be processed; a second acquisition module for acquiring a pre-constructed rod cell bionic model, wherein the rod cell bionic model includes a rod cell unit, an improved horizontal visual cell unit and a bipolar visual cell unit; a matrix construction module for processing the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix; a motion detection module for processing the high-dimensional spatiotemporal grayscale value information using a pre-constructed first motion target detection algorithm. A matrix is obtained, and a pre-built second motion target detection algorithm is used to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix; a first processing module is used to use the improved visual horizontal cell unit to process the first matrix to obtain multiple target points and corresponding target candidate areas; a second processing module is used to use the visual bipolar cell unit to process each of the target candidate areas to obtain a first area and a second area, and select the second area or the first area based on a preset condition to obtain a final target candidate area; an output module is used to determine a weak motion target detection result based on the second matrix and the final target candidate area.
[0017] The embodiment of the present application proposes a real-time weak motion target detection filtering method and device based on rod cell bionics, which obtains original image data to be processed; obtains a pre-constructed rod cell bionic model, wherein the rod cell bionic model includes a rod cell unit, a horizontal cell unit and a bipolar cell unit; processes the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix; uses a pre-constructed first motion target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a first matrix, and uses a pre-constructed second motion target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix; uses an improved horizontal cell unit to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix; The first matrix is processed to obtain multiple target points and corresponding target candidate areas; the multiple target candidate areas are processed using bipolar cell units to obtain a first area and a second area of the target candidate areas, and the second area or the first area is selected based on preset conditions to obtain a final target candidate area; the weak moving target detection result is determined based on the second matrix and the final target candidate area. The filtering method of the present invention helps the detection method to detect weak moving targets more stably in a complex dynamic background. Compared with a large number of comparison methods, the method of the present invention can significantly reduce the false alarm rate and the missed alarm rate while ensuring the detection accuracy, thereby improving the accuracy and stability of the detection work. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1This is a flow chart of a rod cell biomimetic real-time weak moving target detection filtering method provided in one embodiment of the present application;
[0019] Figure 2 This is a process of a real-time weak moving target detection filtering method based on rod cell bionics provided in an embodiment of the present application. Figure 2 ;
[0020] Figure 3 is a visualization diagram of an expression of a rod cell biomimetic real-time weak moving target detection filtering method provided in one embodiment of the present application;
[0021] Figure 4 These are the various detection images during the detection process of the rod cell biomimetic real-time small moving target detection filtering method provided in one embodiment of the present application;
[0022] Figure 5 This is a structural block diagram of a real-time weak motion target detection filtering device based on rod cell bionics provided by another embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below with reference to the accompanying drawings. However, it will be understood by those skilled in the art that in each embodiment of the present application, many technical details are proposed to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of the present application. The various embodiments can be combined and referenced with each other under the premise of no contradiction.
[0024] Surveillance cameras are often subject to numerous background elements, frequent background changes, and poor field of view stability, which significantly interferes with detection. Unlike regular-sized moving targets, small targets have too few pixels, too little information, and less distinct motion characteristics. These small targets are not only difficult to distinguish from the background and other moving foreground areas, but are also difficult to effectively characterize. These factors can severely interfere with the proper functioning of detection methods, reducing the accuracy, underreporting, and false alarm rates of detection results. Existing moving target detection models are subject to the influence of weather, lighting, fog, natural background changes, camera base motion, and input data noise, making it easy for a large amount of difficult-to-filter noise to be incorporated into the detection results.
[0025] In order to solve the above-mentioned problems existing in the prior art, the present invention provides a real-time small moving target detection filtering method based on rod cell bionics. This method utilizes the rod cell bionic principle to design a real-time small moving target detection filtering method, which can quickly and efficiently filter out noise interference while effectively retaining the foreground information of small targets. At the same time, multiple indicator dimensions such as accuracy, prediction rate, recall rate, F1 index, etc. will be improved, thereby effectively solving the problem of difficulty in detecting small moving targets in complex backgrounds.
[0026] It should be noted that the rod-based bionic real-time small moving target detection filtering method can be applied to electronic devices, where the electronic device can be a terminal or a server. This embodiment and the following embodiments are described using a server as an example. The following describes the implementation details of the rod-based bionic real-time small moving target detection filtering method proposed in this embodiment. The following content is only provided for ease of understanding and is not required for the implementation of this solution.
[0027] The specific process of the rod cell bionic real-time weak moving target detection filtering method proposed in this embodiment can be as follows: Figure 1 As shown, the rod cell bionic real-time small moving target detection filtering method includes:
[0028] S101, obtaining original image data to be processed;
[0029] Specifically, the server reads the input video or time-series image frame sequence data, and the input module aligns the data in time and space and then passes it to the rod cell unit for processing.
[0030] S102, obtaining a pre-built bionic model of a rod cell, wherein the bionic model of a rod cell includes a rod cell unit, an improved horizontal photoreceptor cell unit, and a bipolar photoreceptor cell unit;
[0031] S103, processing the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix;
[0032] In an embodiment of the present application, step S103 may include the following execution process:
[0033] S1031. Extracting a grayscale value of each image frame in the video data or the image sequence based on the rod cell unit;
[0034] S1032. Encode the grayscale value of each image frame based on the rod cell unit to obtain the high-dimensional spatiotemporal grayscale value information matrix.
[0035] refer to Figure 2 and Figure 1In the specific implementation process, the server uses the rod cell unit to process the received spatiotemporally aligned video or time-sequenced image frame sequence data to obtain its grayscale value information, and encodes the grayscale value information into a high-dimensional spatiotemporal grayscale value information matrix (G matrix) according to the time sequence and spatial relationship of the data. The cross-section of the G matrix along the time dimension is the spatial grayscale value information of the original video or image frame sequence data at that moment.
[0036] S104, using a pre-constructed first moving target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a first matrix, and using a pre-constructed second moving target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix;
[0037] In an embodiment of the present application, step S104 may include the following execution process:
[0038] S1041, using an inexact augmented Lagrange multiplier algorithm with a sparse error term in a cost function having a weight greater than 0.01 to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a first matrix, wherein the first matrix is used to represent a foreground area with more significant motion;
[0039] S1042. Use an inexact augmented Lagrange multiplier algorithm with a weight of the sparse error term in the cost function less than 0.001 to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix, wherein the second matrix is used to characterize the foreground area including boundaries, details and noise.
[0040] refer to Figure 2 and Figure 1 In the specific implementation process, the rod cell unit will hand over the obtained high-dimensional spatiotemporal grayscale value information matrix to two target detection algorithms for processing.
[0041] Specifically, the server can divide the high-dimensional spatiotemporal grayscale value information matrix by executing steps S1041 to S1042. The motion target detection unit can be composed of two independent motion target detection algorithms that run simultaneously. The two target detection algorithms are respectively referred to as the first motion target detection algorithm and the second motion target detection algorithm. Among them, the first motion target detection algorithm adopts a coarse-grained motion target detection model, which is characterized in that the input data can be divided into a foreground area with more significant motion (Fe matrix, i.e., the first matrix, each point in the Fe matrix is called an extreme foreground value point, and its corresponding Fe value is the extreme foreground value) and a background area with a large amount of aliasing noise and target details (Br matrix, each point in the Br matrix is called a rough background value point, and its corresponding Br value is a rough background value). This specific embodiment uses an inexact augmented Lagrange multiplier method with a large weight of the sparse error term in the cost function (λ=0.01) to divide the input G matrix into the Fe matrix representing the foreground and the Br matrix representing the background; the second operation The moving target detection algorithm uses a fine-grained moving target detection model to divide the input data into a foreground region (the Fr matrix, i.e., the second matrix, where each point in the Fr matrix is a coarse foreground value point and its corresponding Fr value is a coarse foreground value) containing precise boundaries and rich details but aliased with a large amount of difficult-to-filter noise, and a relatively stable background region (the Be matrix, where each point in the Be matrix is an extreme background value point and its corresponding Be value is an extreme background value). This specific embodiment uses an inexact augmented Lagrange multiplier method with a small weight (λ = 0.001) for the sparse error term in the cost function. This method can divide the input G matrix into the Fr matrix representing the foreground and the Be matrix representing the background. At the same time, because the first moving target detection algorithm runs significantly faster than the second moving target detection algorithm, the detection results generated by the first moving target detection algorithm can be further processed while the second moving target detection algorithm is running.
[0042] S105, using the improved visual horizontal cell unit to process the first matrix to obtain multiple target points and corresponding target candidate areas;
[0043] In this step, the server passes the first matrix obtained by the target detection unit to the visual horizontal cell unit for processing. The server first obtains multiple target points and corresponding candidate areas in the first matrix through the visual horizontal cell unit. Then, under the action of the visual link, the server comprehensively analyzes the relevant information of multiple candidate areas and the G matrix related information, and finally determines the target candidate area to be determined.
[0044] Each point in the first matrix is an extreme foreground value point. The improved visual horizontal cell unit has a visual persistence unit and a combination clustering unit. In the embodiment of the present application, step S105 may include the following execution process:
[0045] S1051, obtaining a plurality of extreme foreground value points in the first matrix whose extreme foreground values are greater than a preset value as target points;
[0046] Specifically, the horizontal visual cell first finds several target points with extremely significant motion (several points with larger extreme foreground values) from the Fe array given by the motion target detection model 1 as the target points to be determined.
[0047] S1052: clustering the target points in the first matrix using the combined clustering unit to obtain corresponding first candidate regions;
[0048] The combined clustering unit clusters each target point in the current image frame using a grayscale-based neighborhood continuity clustering algorithm. It performs neighborhood continuity clustering on the Fe array near each target point. Combining the size of the clustering result and prior information about the target (corresponding information from the previous frames), it determines a specific-sized square neighborhood of the point as the first candidate region (reference sizes for the region are [5, 5], [10, 10], [15, 15], [20, 20], [25, 25], [30, 30], and so on; for this example, [50, 50] is used). Furthermore, to effectively filter out the large amount of widespread scattered noise, a preset filtering rule is designed to further improve the positioning accuracy of the target positioning point and the precision of the target candidate regions.
[0049] S1053, filtering all extreme foreground value points in each first candidate region according to a preset filtering rule to obtain each second candidate region;
[0050] Among them, the server uses the visual horizontal cell unit to input each foreground value point and its neighborhood information in the candidate target area of the Fe array into the preset expression for calculation, and filters out the relevant foreground value points whose calculation results do not meet the preset filtering rules to obtain the second candidate area. This can effectively filter out the abnormal scattered noise in the first candidate area, thereby reducing interference with the detection results.
[0051] Specifically, step S1053 may include the following execution process:
[0052] S10531. Acquire all extreme foreground value points in each first candidate area as target extreme foreground value points;
[0053] S10532: Acquire multiple reference extreme foreground value points for each target extreme foreground value point, wherein the multiple reference extreme foreground value points are determined based on points adjacent to the target extreme foreground value point in the horizontal and vertical directions;
[0054] S10533. Process multiple reference extreme foreground value points using a preset expression to obtain filtering results of each current target extreme foreground value point;
[0055] The current extreme foreground value point in the first candidate region is (u, v), and step S10533 may include processing multiple reference extreme foreground value points using a preset expression to obtain a zero value or a non-zero value calculation result of the expression, wherein the preset expression is:
[0056] Fe((u-1), v)||+||Fe((u+1), v)||)||(||Fe(u, (v-1))||+||Fe(u, (v+1))||)
[0057] Among them, Fe((u-1), v) represents the extreme foreground value of the extreme foreground value point located on the left side of (u, v), Fe((u+1), v) represents the extreme foreground value of the extreme foreground value point located on the right side of (u, v), Fe(u, (v-1)) represents the extreme foreground value of the extreme foreground value point located above (u, v), represents the extreme foreground value of the extreme foreground value point located on the right side of (u, v), + represents the AND operator, || represents the absolute value operator; if the calculation result of the expression is zero, the current extreme foreground value is determined to be zero; if the calculation result of the expression is non-zero, the current extreme foreground value remains unchanged.
[0058] In the specific execution process, the server takes the four extreme foreground value points adjacent to the current extreme foreground point along the horizontal axis and the vertical axis as its neighborhood reference extreme foreground area, and other areas as its neighborhood non-reference extreme foreground area. Suppose the current extreme foreground value point in the first candidate area is (u, v), and its extreme foreground value is Fe(u, v); the reference extreme foreground value point on its left is ((u-1), v), and its extreme foreground value is Fe((u-1), v); the reference extreme foreground value point on its right is ((u+1), v), and its extreme foreground value is Fe((u+1), v); the reference extreme foreground value point on its upper side is (u, (v-1)), and its extreme foreground value is Fe( u, (v-1)); the reference extreme foreground value point on its lower side is (u, (v+1)), and its extreme foreground value is Fe(u, (v+1)), then the filtering calculation expression is (||Fe((u-1), v)||+||Fe((u+1), v)||)||(||Fe(u, (v-1))||+||Fe(u, (v+1))||), that is, the absolute value of Fe((u-1), v) is ANDed with the absolute value of Fe((u+1), v), the absolute value of Fe(u, (v-1)) is ANDed with the absolute value of Fe(u, (v+1)), and then the results of the two AND operations are ORed, where the expression can be visualized as follows Figure 3 As shown, from left to right, the first figure is the calculation in the horizontal axis direction, the second figure is the calculation in the vertical axis direction, and the third figure is the calculation result.
[0059] S10534. Determine each second candidate region according to the filtering result of each target extreme foreground value point in each first candidate region.
[0060] In other words, if and only if the result of the above expression is 0, the previous extreme foreground value of the current extreme foreground value point is set to Fe(u, v) = 0, that is, the point of each first candidate region is filtered out to obtain each second candidate region. The above operation can effectively filter out scattered interference noise that may be mixed into the Fe array.
[0061] S1054. Use the persistence of vision unit to process the first matrix of multiple adjacent image frames adjacent to the current image frame, obtain each neighborhood corresponding to each target point in each adjacent image frame, and determine multiple target candidate areas based on each target point and each neighborhood in the current image frame.
[0062] It is worth noting that this application also designs a persistence of vision unit based on the bionic persistence of vision effect. The principle is to construct a persistence of vision unit based on the persistence function of animal vision. The persistence of vision unit will remember the position information of the target and its neighborhood information in the previous few frames.
[0063] In an embodiment of the present application, step S105 may include the following execution process:
[0064] Determine whether the target point is within the range of each neighborhood;
[0065] If the target point is within the range of each neighborhood, the second candidate area corresponding to the target point is marked in the high-dimensional spatiotemporal grayscale value information matrix;
[0066] If the target point exceeds the range of each neighborhood, the target point is abandoned and marked as a pre-selected target point. The second candidate area corresponding to the pre-selected target point is used as the data in the third candidate area, and the visual persistence unit is used to search for multiple extreme foreground value points with extreme foreground values greater than a preset value in adjacent image frames as new target points. The combined clustering unit is used to process each new target point to obtain corresponding fourth candidate areas.
[0067] The K-nearest neighbor cluster voting algorithm is used to perform cluster voting on the second candidate area, the third candidate area, and the fourth candidate area to obtain the target candidate areas.
[0068] In the specific execution process, when the target point (i.e., target point) given by the Fe array is within a certain neighborhood range of the target points in the previous frames, the current target positioning is considered accurate, the target point (X, Y) is marked in the current time section in the G array, and the neighborhood information of the target point (X, Y) in the G array is sent to the visual bipolar cell unit for further analysis and judgment; when the target point (X, Y) given by the Fe array far exceeds the neighborhood range of the target points in the previous frames, it is determined that the current target positioning information is incorrect, and the target point is determined to be the pre-selected target point (X-Pre, Y-Pre), and the extremely significant motion area is re-searched in the neighborhood of the target points in the previous frames, and the target point is re-determined, i.e., the new target point, and the neighborhood information of the target point (X, Y), the pre-selected target point (X-Pre, Y-Pre) and the new target point in the G array and the Fe array is subjected to K-nearest neighbor clustering voting to obtain the final target point, and the target candidate area of the target point in the current time section in the G array and the Fe array is sent to the visual bipolar cell unit for further analysis and judgment.
[0069] S106, using the visual bipolar cell unit to process each target candidate region to obtain a first region and a second region, and selecting the second region or the first region based on a preset condition to obtain a final target candidate region;
[0070] S107 : Determine a weak moving target detection result based on the second matrix and the final target candidate region.
[0071] In an embodiment of the present application, step S107 may include the following execution process:
[0072] S1071, obtaining grayscale information and texture information of each target candidate area based on the visual bipolar cell unit;
[0073] S1072. Use the regional saliency clustering filtering algorithm to process the grayscale information and texture information to obtain the first area and the second area of each target candidate area, wherein the first area is an area where the grayscale value and the brightness value are both greater than the preset value, and the second area is an area where the grayscale value and the texture value are both less than the preset value.
[0074] Specifically, the server uses the visual link of the visual bipolar cell unit to perform regional saliency clustering filtering on the incoming relevant information combined with its grayscale texture changes, and combines the grayscale texture information of the target to divide the clustering results into bright areas (On areas) and dark areas (Off areas), and then obtains the final target candidate area through regional selection.
[0075] After step S107 , the server saves and visualizes the detection results.
[0076] refer to Figure 4 ,From right to left, the three pictures are the image before detection, the ,detected background image, and the detected foreground image.
[0077] In summary, the above embodiments of the present application provide a real-time weak motion target detection filtering method based on rod cell bionics by obtaining original image data to be processed; obtaining a pre-constructed rod cell bionic model, wherein the rod cell bionic model includes a rod cell unit, a horizontal visual cell unit and a bipolar visual cell unit; processing the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix; using a pre-constructed first motion target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a first matrix, and using a pre-constructed second motion target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix; using an improved horizontal visual cell unit to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix. The method comprises the following steps: processing the first matrix by the element to obtain multiple target points and corresponding target candidate areas; using the visual bipolar cell unit to process the multiple target candidate areas to obtain the first area and the second area of the target candidate area, and selecting the second area or the first area based on a preset condition to obtain the final target candidate area; determining the weak moving target detection result based on the second matrix and the final target candidate area. The filtering method of the present invention helps to help the detection method detect weak moving targets more stably in a complex dynamic background. Compared with a large number of comparison methods, the method of the present invention can significantly reduce the false alarm rate and the missed alarm rate while ensuring the detection accuracy, thereby improving the accuracy and stability of the detection work.
[0078] It should be noted that the step division of the various methods above is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this application; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this application.
[0079] In the above embodiment, another embodiment of the present application proposes a real-time weak moving target detection filtering device based on rod cell bionics, referring to Figure 5The detection filter device 100 may include a first acquisition module 1001, a second acquisition module 1002, a matrix construction module 1003, a motion detection module 1004, a first processing module 1005, a second processing module 1006 and an output module 1007: the first acquisition module 1001 is used to acquire the original image data to be processed; the second acquisition module 1002 is used to acquire a pre-built rod cell bionic model, wherein the rod cell bionic model includes a rod cell unit, an improved horizontal visual cell unit and a bipolar cell unit; the matrix construction module 1003 is used to process the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix; the motion detection module 1004 is used to use A pre-constructed first motion target detection algorithm is used to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a first matrix, and a pre-constructed second motion target detection algorithm is used to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix; a first processing module 1005 is used to process the first matrix using an improved visual horizontal cell unit to obtain multiple target points and corresponding target candidate areas; a second processing module 1006 is used to process each target candidate area using a visual bipolar cell unit to obtain a first area and a second area, and select the second area or the first area based on preset conditions to obtain a final target candidate area; an output module 1007 is used to determine a weak motion target detection result based on the second matrix and the final target candidate area.
[0080] It is not difficult to find that this embodiment is a system embodiment corresponding to the above-mentioned method embodiment, and this embodiment can be implemented in conjunction with the above-mentioned method embodiment. The relevant technical details and technical effects mentioned in the above-mentioned embodiments are still valid in this embodiment, and to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied to the above-mentioned embodiments.
[0081] It is worth mentioning that all modules involved in this embodiment are logical modules. In actual applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, to highlight the innovation of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application. However, this does not mean that other units do not exist in this embodiment.
[0082] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and that in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.
Claims
1. A real-time small moving target detection filtering method based on rod cell bionics, characterized in that: include: Obtaining original image data to be processed; Obtaining a pre-built bionic model of a rod cell, wherein the bionic model of a rod cell includes a rod cell unit, an improved horizontal photoreceptor cell unit, and a bipolar photoreceptor cell unit; Processing the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix; Processing the high-dimensional spatiotemporal grayscale value information matrix using a pre-constructed first moving target detection algorithm to obtain a first matrix, and processing the high-dimensional spatiotemporal grayscale value information matrix using a pre-constructed second moving target detection algorithm to obtain a second matrix; Processing the first matrix using the improved visual horizontal cell unit to obtain multiple target points and corresponding target candidate areas; Processing each of the target candidate regions using the visual bipolar cell unit to obtain a first region and a second region, and selecting the second region or the first region based on a preset condition to obtain a final target candidate region; Determine a small moving target detection result based on the second matrix and the final target candidate area; The method of using a pre-built first moving target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a first matrix, and using a pre-built second moving target detection algorithm to process the high-dimensional spatiotemporal grayscale value information matrix to obtain a second matrix, includes: Processing the high-dimensional spatiotemporal grayscale value information matrix using an inexact augmented Lagrange multiplier algorithm with a weight of a sparse error term in a cost function greater than 0.01 to obtain a first matrix, wherein the first matrix is used to represent a foreground area with more significant motion; Processing the high-dimensional spatiotemporal grayscale value information matrix using an inexact augmented Lagrange multiplier algorithm with a weight of a sparse error term in a cost function less than 0.001 to obtain a second matrix, wherein the second matrix is used to represent a foreground area including boundaries, details, and noise; Each point in the first matrix is an extreme foreground value point, the improved visual horizontal cell unit has a visual persistence unit and a combination clustering unit, and the first matrix is processed by using the improved visual horizontal cell unit to obtain multiple target points and corresponding target candidate areas, including: Acquire a plurality of extreme foreground value points in the first matrix whose extreme foreground values are greater than a preset value as target points; Clustering the target points in the first matrix using a combined clustering unit to obtain corresponding first candidate regions; Filtering all extreme foreground value points in each of the first candidate regions according to a preset filtering rule to obtain each second candidate region; Processing, using the persistence of vision unit, first matrices of a plurality of adjacent image frames adjacent to the current image frame, obtaining neighborhoods corresponding to the target points in the adjacent image frames, and determining a plurality of candidate target regions based on the target points and the neighborhoods in the current image frame; The method of processing each of the target candidate regions using the visual bipolar cell unit to obtain the first region and the second region includes: Acquiring grayscale information and texture information of each target candidate area based on the visual bipolar cell unit; The grayscale information and the texture information are processed using a regional saliency clustering filtering algorithm to obtain a first area and a second area of each target candidate area, wherein the first area is an area where both the grayscale value and the brightness value are greater than a preset value, and the second area is an area where both the grayscale value and the texture value are less than a preset value.
2. The rod cell biomimetic real-time small moving target detection filtering method according to claim 1, characterized in that: The step of processing the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix includes: Extracting a grayscale value of each image frame in the video data or the image sequence based on the rod cell unit; The grayscale value of each image frame is encoded based on the rod cell unit to obtain the high-dimensional spatiotemporal grayscale value information matrix.
3. The rod cell biomimetic real-time small moving target detection filtering method according to claim 1, characterized in that: The value corresponding to each of the extreme foreground value points in the first matrix is an extreme foreground value, and filtering all the extreme foreground value points in each of the first candidate regions according to a preset filtering rule to obtain each second candidate region includes: Acquire all extreme foreground value points in each of the first candidate regions as target extreme foreground value points; Acquiring a plurality of reference extreme foreground value points for each of the target extreme foreground value points, wherein the plurality of reference extreme foreground value points are determined based on points adjacent to the target extreme foreground value point in the horizontal and vertical directions; Processing a plurality of reference extreme foreground value points using a preset expression to obtain filtering results of each current target extreme foreground value point; The second candidate regions are determined according to the filtering results of the target extreme foreground value points in the first candidate regions.
4. The rod cell biomimetic real-time small moving target detection filtering method according to claim 3, characterized in that: The current extreme foreground value point in the first candidate area is (u, v), and the use of a preset expression to process multiple reference extreme foreground value points to obtain filtering results of each current target extreme foreground value point includes: The preset expression is used to process the plurality of reference extreme foreground value points to obtain a zero value or a non-zero value calculation result of the expression, wherein the preset expression is: (||Fe((u-1),v)||+ || Fe((u+1),v)||) || (||Fe (u,(v-1))||+|| Fe(u,(v+1))||) Among them, Fe((u-1), v) represents the extreme foreground value of the extreme foreground value point on the left side of (u, v), Fe((u+1), v) represents the extreme foreground value of the extreme foreground value point on the right side of (u, v), Fe (u, (v-1)) represents the extreme foreground value of the extreme foreground value point above (u, v), Fe (u, (v+1)) represents the extreme foreground value of the extreme foreground value point on the right side of (u, v), + represents the AND operator, || * || represents the absolute value operator, and || represents the or relationship; If the calculation result of the expression is zero, then the current extreme prospect value is determined to be zero; If the calculation result of the expression is a non-zero value, the current extreme prospect value remains unchanged.
5. The rod cell biomimetic real-time small moving target detection filtering method according to claim 3, characterized in that: The determining of a plurality of target candidate regions based on each of the target points and each of the neighborhoods in the current image frame includes: Determining whether the target point is within the range of each of the neighborhoods; If the target point is within the range of each of the neighborhoods, marking the second candidate region corresponding to the target point in the high-dimensional spatiotemporal grayscale value information matrix; If the target point exceeds the range of each of the neighborhoods, the target point is abandoned and marked as a pre-selected target point, the second candidate area corresponding to the pre-selected target point is used as data in the third candidate area, and the visual persistence unit is used to search for multiple extreme foreground value points with extreme foreground values greater than a preset value in the adjacent image frames as new target points, and the combined clustering unit is used to process each of the new target points to obtain corresponding fourth candidate areas; A K-nearest neighbor cluster voting algorithm is used to perform cluster voting on the second candidate region, the third candidate region, and the fourth candidate region to obtain the target candidate regions.
6. The rod cell biomimetic real-time small moving target detection filtering method according to claim 1, characterized in that: The determining of a weak moving target detection result based on the second matrix and the final target candidate area includes: An AND operation is performed on the second matrix and the target candidate area to obtain a final weak moving target detection result.
7. A rod cell-based bionic real-time small moving target detection filtering device, which executes the rod cell-based bionic real-time small moving target detection filtering method according to any one of claims 1 to 6, characterized in that: include: A first acquisition module is used to acquire original image data to be processed; A second acquisition module is used to acquire a pre-built rod cell bionic model, wherein the rod cell bionic model includes a rod cell unit, an improved horizontal photoreceptor cell unit, and a bipolar photoreceptor cell unit; A matrix construction module, configured to process the original image data to be processed based on the rod cell unit to obtain a high-dimensional spatiotemporal grayscale value information matrix; a motion detection module, configured to process the high-dimensional spatiotemporal grayscale value information matrix using a pre-constructed first moving target detection algorithm to obtain a first matrix, and to process the high-dimensional spatiotemporal grayscale value information matrix using a pre-constructed second moving target detection algorithm to obtain a second matrix; A first processing module is configured to process the first matrix using the improved visual horizontal cell unit to obtain a plurality of target points and corresponding target candidate regions; a second processing module, configured to process each of the target candidate regions using the visual bipolar cell unit to obtain a first region and a second region, and select the second region or the first region based on a preset condition to obtain a final target candidate region; An output module is used to determine a weak moving target detection result based on the second matrix and the final target candidate area.
Citation Information
Patent Citations
Weak and small target detection and tracking method
CN110490904A
Parking detection method and device based on monitoring video
WO2018130016A1