Fast moving target detection method, device, equipment and storage medium

By acquiring and connecting adjacent target frame sequences, the pre-trained network model is used for target detection in video surveillance, which solves the problem of fast-moving targets being lost and achieves effective detection of fast-moving targets.

CN112465859BActive Publication Date: 2024-10-01SF TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN201910843150.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-06
Publication Date
2024-10-01
Estimated Expiration
2039-09-06

AI Technical Summary

Technical Problem

Existing video surveillance technology is difficult to effectively detect fast-moving targets, resulting in target tracking and loss problems.

Method used

By obtaining adjacent target frame sequences, the pre-trained network model is used for target detection, and target frame sequences corresponding to the same target are judged and connected to prevent the target from being lost.

Benefits of technology

It achieves effective tracking and detection of fast-moving targets, avoids target tracking and loss during video surveillance, and improves detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112465859B_ABST
    Figure CN112465859B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for detecting fast-moving targets. The method comprises: obtaining adjacent first target frame sequences and second target frame sequences, each target frame sequence comprises at least one target frame, each target frame corresponds to a video frame number, the target frame is used to indicate the position area of ​​the detection target in the video frame, the first target frame sequence and the second target frame sequence respectively comprise target frames corresponding to the same video frame number; judging whether the first target frame sequence and the second target frame sequence can be connected; if so, connecting the first target frame sequence and the second target frame sequence into a new target frame sequence. The problem that the video detection process is easy to lose track of targets with fast movement speed is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of video processing, and in particular to a method, device, equipment and storage medium for detecting a fast-moving target. Background Art

[0002] Surveillance videos provide valuable raw data for anti-theft, emergency management, traffic control and other tasks. In particular, the widespread application of machine learning technology has freed video surveillance from the influence of human factors on the accuracy of understanding of surveillance video content during the manual monitoring stage.

[0003] In the related art, target detection can be performed on the initial video frame of the video to be monitored. In the next video frame, by searching the surrounding area of ​​the same area as the target area in the initial video frame, it is determined whether the same detection target exists in the initial video frame and the next video frame, thereby realizing target detection in the video.

[0004] However, the biggest problem with this method is that it is easy to lose track of fast-moving targets. Summary of the invention

[0005] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a fast-moving target detection method, device, equipment and storage medium that can track and detect targets with faster moving speeds during target detection in a video.

[0006] In a first aspect, the present application provides a method for detecting a fast-moving target, the method comprising:

[0007] Acquire a first target frame sequence and a second target frame sequence that are adjacent to each other, each target frame sequence includes at least one target frame, each target frame corresponds to a video frame number, the target frame is used to indicate a location area of ​​a detection target in a video frame, and the first target frame sequence and the second target frame sequence respectively include target frames corresponding to the same video frame number;

[0008] Determine whether the first target frame sequence and the second target frame sequence can be connected;

[0009] If possible, the first target frame sequence and the second target frame sequence are connected into a new target frame sequence.

[0010] In a second aspect, the present application provides a fast-moving target detection device, the device comprising:

[0011] an acquisition module, configured to acquire adjacent first target frame sequences and second target frame sequences, each target frame sequence including at least one target frame, each target frame corresponding to a video frame number, the target frame being used to indicate a location area of ​​a detection target in a video frame, and the first target frame sequence and the second target frame sequence respectively including target frames corresponding to the same video frame number;

[0012] A judging module is configured to judge whether the first target frame sequence and the second target frame sequence can be connected;

[0013] The connection module is configured to connect the first target frame sequence and the second target frame sequence into a new target frame sequence if possible.

[0014] In a third aspect, the present application provides a computer device, the computer device comprising:

[0015] processor;

[0016] a memory for storing executable instructions for the processor;

[0017] The processor is configured to execute the fast-moving target detection method of the first aspect.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method for detecting fast-moving targets as in the first aspect is implemented.

[0019] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0020] The method, apparatus, device and storage medium for tracking and detecting a target moving at a relatively fast speed provided in the embodiments of the present application can use a pre-trained network model to perform target detection on adjacent first video frame sequences and second video frame sequences respectively, obtain adjacent first target frame sequences and second target frame sequences corresponding to the two video frame sequences respectively, and connect the first target frame sequence and the second target frame sequence corresponding to the same detection target by judging whether the first target frame sequence and the second target frame sequence correspond to the same detection target, so as to prevent the problem of losing the tracking of the target moving at a relatively fast speed during the video detection process, and realize the detection of the target moving at a relatively fast speed; the sequence classification value of the new target frame sequence after the connection can be updated to prepare for the connection of the new target frame sequence with the target frame sequence adjacent to it. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0022] Figure 1 A flowchart of a fast-moving target detection method according to an embodiment of the present invention;

[0023] Figure 2 A flowchart of a method for detecting a fast-moving target according to another embodiment of the present invention;

[0024] Figure 3 A flowchart of another fast-moving target detection method according to another embodiment of the present invention;

[0025] Figure 4 A schematic diagram of an implementation process of a fast-moving target detection method according to an embodiment of the present application;

[0026] Figure 5 A schematic diagram of the structure of a fast-moving target detection device according to an embodiment of the present application;

[0027] Figure 6 A schematic structural diagram of another fast-moving target detection device according to an embodiment of the present application;

[0028] Figure 7 This is a schematic structural diagram of a fast-moving target detection device according to another embodiment of the present application. DETAILED DESCRIPTION

[0029] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant application, rather than to limit the application. It is also necessary to explain that, for ease of description, only the parts related to the application are shown in the accompanying drawings.

[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0031] The present application embodiment provides a method for detecting fast-moving targets, which can detect targets with relatively fast moving speeds in a video to be detected. Figure 1 As shown, the method includes:

[0032] Step 101: Acquire a first target frame sequence and a second target frame sequence that are adjacent to each other.

[0033] In an embodiment of the present application, each target frame sequence includes at least one target frame, each target frame corresponds to a video frame number, the target frame is used to indicate the position area of ​​the detection target in the video frame, and the first target frame sequence and the second target frame sequence respectively contain target frames corresponding to the same video frame number.

[0034] Step 102: Determine whether the first target frame sequence and the second target frame sequence can be connected.

[0035] Step 103: If possible, connect the first target frame sequence and the second target frame sequence into a new target frame sequence.

[0036] In summary, the fast-moving target detection method provided in the embodiment of the present application can use a pre-trained network model to perform target detection on adjacent first video frame sequences and second video frame sequences respectively, and obtain adjacent first target frame sequences and second target frame sequences corresponding to the two video frame sequences respectively. By judging whether the first target frame sequence and the second target frame sequence correspond to the same detection target, the first target frame sequence and the second target frame sequence corresponding to the same detection target are connected to prevent the problem of losing the faster moving target during the video detection process, thereby realizing the detection of faster moving targets.

[0037] The present application embodiment provides a method for detecting fast-moving targets, which can detect targets with fast moving speeds in a video to be detected. The method can be applied to mobile terminal devices (e.g., smart phones, tablet computers, etc.), and can also be applied to fixed terminals (desktop computers) or servers. The present application embodiment takes the detection of fast-moving pedestrians in surveillance videos as an example to illustrate the method. Figure 2 As shown, the method includes:

[0038] Step 201: Acquire adjacent first target frame sequences and second target frame sequences.

[0039] In an embodiment of the present application, each target frame sequence includes at least one target frame, each target frame corresponds to a video frame number, and the target frame is used to indicate the location area of ​​the detection target in the video frame. Among them, the first target frame sequence and the second target frame sequence respectively include target frames corresponding to the same video frame number. In this step, the process of obtaining the adjacent first target frame sequence and the second target frame sequence includes:

[0040] Step 2011: Acquire adjacent first video frame sequence and second video frame sequence.

[0041] In the embodiment of the present application, the first video frame sequence and the second video sequence respectively include video frames corresponding to the same video frame number, the first video frame sequence corresponds to the first target frame sequence, and the second video frame sequence corresponds to the second target frame sequence. In this step, the first video frame sequence and the second video sequence respectively include at least one video frame, and the number of video frames included in each video frame sequence can be the same, for example, 3 frames.

[0042] For example, assume that during the playback of the video to be detected, the time difference between two consecutive video frames is t0, such as Figure 4 As shown, the video frame P1 at the t second, the video frame P2 at the t+t0 second, and the video frame P3 at the t+2t0 second can be obtained, and the video frame sequence consisting of the video frame P1, the video frame P2, and the video frame P3 is determined as the first video frame sequence; the video frame P3 at the t+2t0 second, the video frame P4 at the t+3t0 second, and the video frame P5 at the t+4t0 second are obtained, and the video frame sequence consisting of the video frame P3, the video frame P4, and the video frame P5 is determined as the second video frame sequence, then the first video frame sequence and the second video frame sequence are two adjacent video frame sequences, and video frame P3 is a video frame corresponding to the same video frame number in the first video frame sequence and the second video sequence.

[0043] Step 2012: Obtain target frame sequences corresponding to the first video frame sequence and the second video sequence respectively.

[0044] In this step, for each video frame sequence, the process of obtaining the corresponding target frame sequence includes:

[0045] Step S11: input the video frame sequence into a pre-trained feature extraction network, and output a feature image corresponding to the video frame sequence.

[0046] In the embodiment of the present application, the Faster R-CNN network framework is used to detect the target in the video frame sequence. The Faster R-CNN network framework includes: an RPN network (English: Region Proposal Network Chinese: Regional Candidate Network) for generating candidate regions and a Fast R-CNN network for distinguishing the target category. The candidate region is used to represent the position area in the video frame sequence that contains the category to which the detection target belongs. Among them, the training process of the Fast R-CNN network is: the Fast R-CNN network model is initialized using the model trained on the ImageNet data set, so that the feature extraction network in the network model can extract the feature image of the video frame sequence in the video frame to be detected, and the target detection network can judge the candidate region generated by the RPN network, and screen out the target frame for the detection target and the classification value corresponding to the target frame from the candidate region. The classification value is used to indicate the possibility that the target frame belongs to the category to which the detection target belongs. In the Faster R-CNN network framework, the target detection network is two fully connected layers. In the embodiment of the present application, the category of the detection target is pedestrians.

[0047] In this step, before the video frame sequence is input into the pre-trained feature extraction network, the size of each video frame in the video frame sequence needs to be normalized, all video frames are normalized to 512*512 size, and the pixel values ​​of the three channels of BRG of each video frame are subtracted by 128. Among them, the network used to extract feature images is the ResNet101 network (English: Residual Networks; Chinese: residual network). Since features can be extracted from multiple video frames at the same time, the speed of target tracking in the pedestrian detection process can be improved.

[0048] For example, Figure 4 As shown, the first video frame sequence is input into a pre-trained feature extraction network, and a feature image F1 corresponding to the first video frame sequence is output.

[0049] Step S12: dividing the feature image into a plurality of sub-feature images according to the number of video frames included in the video frame sequence.

[0050] In this step, the feature image is divided into multiple sub-feature images according to the number of video frames contained in the video frame sequence, and a sub-feature image corresponding to each video frame in the video frame sequence can be obtained. Since the feature image is obtained based on multiple input video frames, the feature richness of the feature image is higher than the feature image determined by feature extraction of a single video frame, and the sub-feature image determined based on the feature image also has rich image features, thereby improving the accuracy of image detection.

[0051] For example, in this step, Figure 4 As shown, the feature image F1 can be divided into sub-feature images f 11 , sub-feature image f 12 and sub-feature image f 13 , which are sub-feature images corresponding to the video frame P1, the video frame P2 and the video frame P3 in the first video frame sequence respectively.

[0052] Step S13: input multiple sub-feature images into the pre-trained region candidate network and target detection network to output a target box sequence corresponding to the video frame sequence.

[0053] In the embodiment of the present application, the region candidate network is obtained by training the feature image, and the target frame sequence corresponding to the video frame sequence can be determined based on multiple sub-feature images, the region candidate network and the target detection network. The process includes:

[0054] Step A1: input each sub-feature image into the region candidate network and the target detection network to output at least one target box contained in each sub-feature image and a classification value corresponding to each target box.

[0055] In this step, the candidate regions in the region candidate network can be mapped to the multiple sub-feature maps determined in step S13, and the candidate regions of different sizes in each sub-feature map can be pooled to a fixed size; then the target detection network is used to determine at least one target box belonging to the detection target in each sub-feature map and a classification value corresponding to each target box, and the target detection network is two fully connected layers.

[0056] For example, Figure 4 As shown, the candidate regions b1, b2 and a1 in the region proposal network are mapped to the sub-feature image f 11 , sub-feature image f 12 and sub-feature image f 13 By performing candidate region pooling and target detection network classification operations, the sub-feature image f can be determined. 11 The target box b1 in 1 ' and b2 1 ', sub-feature image f 12 The target box b1 in 2 ' and b2 2 ', sub-feature image f 13 The target box b1 in 3 ' and b2 3 '.

[0057] Step A2: for a plurality of sub-feature images corresponding to each video frame sequence, a second IOU value between target frames included in two adjacent sub-feature images is calculated to determine a set of target frame sequences to be screened corresponding to the video frame sequence.

[0058] In this step, for multiple sub-feature images corresponding to each video frame sequence, the second IOU value between the target frames contained in two adjacent sub-feature images can be calculated. For any two target frames, when their second IOU values ​​are greater than the first threshold, it is determined that the same target appears in the two adjacent sub-feature images, and the two target frames are connected as a target frame sequence to be screened. The first threshold can be 0.7. Based on this method, a set of target frame sequences to be screened corresponding to the video frame sequence can be determined, and the set of target frame sequences to be screened includes at least one target frame sequence to be screened.

[0059] For example, Figure 4 As shown, for the sub-feature image f corresponding to the first video frame sequence 11 , sub-feature image f 12 and sub-feature image f 13 , select sub-feature image f 11 and sub-feature image f 12 The target box b1 in 1 ', b2 1 ', b1 2' and b2 2 ', calculate the target box b1 1 ' and b1 2 'Between, target frame b1 1 ' and b2 2 'Between, target frame b2 1 ' and b1 2 'Between, target frame b2 1 ' and b2 2 'The second IOU value between them can determine the target box b1 1 ' and b1 2 'Between, target frame b2 1 ' and b2 2 'The second IOU value between is greater than the first threshold, then the target box b1 1 ' and b1 2 'Connect, target frame b2 1 ' and b2 2 'Connect; select sub-feature image f 12 and sub-feature image f 13 The target box b1 in 2 ', b2 2 ', b1 3 ' and b2 3 ', calculate the target box b1 2 ' and b1 3 'Between, target frame b1 2 ' and b2 3 'Between, target frame b2 2 ' and b1 3 'Between, target frame b2 2 ' and b2 3 'The second IOU value between them can determine the target box b1 2 ' and b1 3 'Between, target frame b2 2 ' and b2 3 'The second IOU value between is greater than the first threshold, then the target box b1 2 ' and b1 3 'Connect, target frame b2 2 ' and b2 3 'Connect. Then, a set of target frame sequences to be screened corresponding to the first video frame sequence can be determined. The target frame sequences to be screened included in the set of target frame sequences to be screened are target frame sequences S1' and S2'. The target frame sequence S1' consists of target frame b1 1 ', b1 2 ' and b1 3 ', the target frame sequence S2' consists of the target frame b2 1 ', b2 2 ' and b23 'composition.

[0060] Step A3: performing non-maximum suppression processing on the target frame sequence set to be screened to determine a target frame sequence corresponding to the video frame sequence.

[0061] In the embodiment of the present application, the target frame sequences to be screened in the target frame sequence set to be screened correspond to the same detection target, and the target frame sequence corresponding to the video frame sequence can be determined by performing non-maximum suppression processing on the target frame sequence to be screened. Figure 3 As shown, the process includes:

[0062] Step A31: Calculate the third IOU value of any two target frame sequences to be screened.

[0063] In the set of target frame sequences to be screened corresponding to the video frame sequence, the fourth IOU value between two target frames corresponding to the same video frame number in any two target frame sequences to be screened is calculated; the minimum value among the fourth IOU values ​​is determined as the third IOU value between any two target frame sequences to be screened. The process can be expressed as:

[0064] Overlap(S i ,S j )=min IOU(b i t ,b j t );

[0065] Among them, i and j are numbers, S is the target frame sequence, b is the target frame, t represents the video frame number, b i t represents the target box numbered i corresponding to the video frame numbered t, b j t It represents the target box numbered j corresponding to the video frame numbered t, and Overlap represents the IOU value of the two target box sequences.

[0066] Step A32: Calculate the sequence classification value of each target frame sequence to be screened.

[0067] The calculation process of the sequence classification value of the target frame sequence to be screened includes: calculating the mean of the classification values ​​corresponding to all target frames in the target frame sequence to be screened, and determining half of the mean as the sequence classification value of the target frame sequence to be screened. The process can be expressed as:

[0068] Score(S i )=1 / 2*(mean(score(b i t )));

[0069] Among them, i is the number, S is the target frame sequence, b is the target frame, t represents the video frame number, b i t It represents the target box numbered i corresponding to the video frame numbered t, and score is the sequence classification value.

[0070] Step A33: Based on the third IOU value and the sequence classification value, determine a target frame sequence corresponding to the video frame sequence in the set of target frame sequences to be screened.

[0071] Based on the third IOU value of any two target frame sequences to be screened and the sequence classification value of the any two target frame sequences to be screened calculated in the above steps, if the third IOU value is greater than the overlap threshold, filter the target frame sequences to be screened with smaller corresponding sequence classification values ​​in any two target frame sequences to be screened, and retain the target frame sequences to be screened with larger corresponding sequence classification values; if the third IOU value is less than the overlap threshold, retain the any two target frame sequences to be screened, and traverse all target frame sequences to be screened in the target frame sequence set to be screened based on this method to determine the target frame sequence corresponding to the video frame sequence.

[0072] For example, Figure 4 As shown, the target frame sequence set to be screened in the first video frame sequence includes target frame sequences S1' and S2' to be screened, and two target frames b1 corresponding to the same video frame number P1 can be calculated. 1' and b2 1 The fourth IOU value between the two target boxes b1 corresponding to the same video frame number P2 2' and b2 2' The fourth IOU value between the two target boxes b1 corresponding to the same video frame number P3 3' and b2 3' The minimum value among the three fourth IOU values ​​is determined as the third IOU value between the target frame sequences S1' and S2' to be screened; for the target frame sequence S1' to be screened, three target frames b1 are obtained. 1' 、b1 2' and b1 3' The classification value of the target frame sequence S1' to be screened is determined as half of the average of the three. The classification value of the target frame sequence S2 can be determined based on the same method. If the third IOU value is greater than the overlapping threshold, the target frame sequences S1' and S2' to be screened have smaller corresponding sequence classification values; if the third IOU value is less than the overlapping threshold, the target frame sequences S1' and S2' to be screened are retained. Based on this method, all the target frame sequences to be screened in the target frame sequence set to be screened are traversed to determine the target frame sequence corresponding to the first video frame sequence. Figure 4The target frame sequences corresponding to the first video frame sequence determined in are S1' and S2'.

[0073] In this step, target frame sequences corresponding to the first video frame sequence and the second video sequence can be obtained. Figure 4 As shown, target frame sequences S1' and S2' corresponding to the first video frame sequence may be determined, and target frame sequences S1" and S2" corresponding to the second video frame sequence may be determined.

[0074] Step 202: Determine whether the first target frame sequence and the second target frame sequence can be connected.

[0075] In an embodiment of the present application, by determining whether the first target frame sequence and the second target frame sequence can be connected, the first target frame sequence and the second target frame sequence that can be connected can be connected to achieve detection of a detection target that moves faster in the video to be detected. In this step, the process of determining whether the first target frame sequence and the second target frame sequence can be connected may include: calculating the first IOU value between the target frames corresponding to the same video frame number; when the first IOU value is greater than the first threshold, it indicates that the first target frame sequence and the second target frame sequence track the same detection target, and the first target frame sequence and the second target frame sequence are allowed to be connected; when the first IOU value is less than or equal to the first threshold, it indicates that the first target frame sequence and the second target frame sequence do not track the same detection target, and the first target frame sequence and the second target frame sequence are not allowed to be connected, and return to step 201 to re-acquire new adjacent first target frame sequences and second target frame sequences.

[0076] Step 203: If possible, connect the first target frame sequence and the second target frame sequence into a new target frame sequence.

[0077] The connection process of the first target frame sequence and the second target frame sequence may include: determining the classification values ​​of two target frames corresponding to the same video frame number, the classification value being used to indicate the possibility that the target frame belongs to the category to which the detection target belongs; retaining the target frame corresponding to the larger classification value and deleting the target frame corresponding to the smaller classification value; and connecting the first target frame sequence and the second target frame sequence into a new target frame sequence in the order of the video frame numbers.

[0078] For example, Figure 4 As shown, the first target frame sequence corresponding to the first video frame sequence is the target frame sequence S1' and S2', and the second target frame sequence corresponding to the second video frame sequence is S1" and S2". In the first target frame sequence, the target frame corresponding to the same video frame number P3 is determined to be b1 3 ' and b2 3 ', in the second target frame sequence, determine the target frame corresponding to the same video frame number P3 as b1 3" and b2 3 ”( Figure 4 (not shown), calculate the first IOU value between the four target boxes, and you can get the target box b1 3 ' and target frame b2 3 ", target frame b1 3 ' and target frame b2 3 If the first IOU value between " is zero, it is determined that the target frame sequence S1' and the target frame sequence S2", the target frame sequence S2' and the target frame sequence S1" are not tracking the same detection target; target frame b1 3 ' and target frame b1 3 "If the first IOU value between is greater than the first threshold, it is determined that the target frame sequence S1' and the target frame sequence S1" are tracking the same detection target, and the target frame sequence S1' and the target frame sequence S1" can be linked into a new target frame sequence S1; target frame b2 3 ' and target frame b2 3 ” is greater than the first threshold, it is determined that the target frame sequence S2′ and the target frame sequence S2” are tracking the same detection target, and the target frame sequence S2′ and the target frame sequence S2” are linked into a new target frame sequence S2.

[0079] The connection process of the target frame sequence S1' and the target frame sequence S1" is to obtain the target frame b1 3 ' and target frame b1 3 "The classification value of the target box b1 3 "The corresponding classification value is small, and the target box b1 3 "Filter to get the target frame b1 to be connected 3 '; According to the video frame number, the target frame b1 1 ', b1 2 ', b1 3 ”, b1 4 ”( Figure 4 not shown) and b1 5 ”( Figure 4 ) are connected into a new target frame sequence S1, and a new target frame sequence S2 can be obtained based on the same method.

[0080] Step 204: Update the classification value of the connected new target frame sequence.

[0081] In this step, the classification value of the new target frame sequence after connection can be updated. The process is: obtain the classification value of each target frame in the new target frame sequence, and use half of the average classification value of all target frames as the classification value of the new target frame sequence. This method can refer to the above step A32, and this embodiment of the present application will not be described in detail.

[0082] For example, Figure 4 As shown, for the new target frame sequence S1, get the target frame b1 1 ', b1 2 ', b1 3 ”, b1 4 " and b1 5 ", and take half of the mean of the five classification values ​​as the classification value of the new target frame sequence S1.

[0083] In summary, the fast-moving target detection method provided in the embodiment of the present application can use a pre-trained network model to perform target detection on adjacent first video frame sequences and second video frame sequences respectively, and obtain adjacent first target frame sequences and second target frame sequences corresponding to the two video frame sequences respectively. By judging whether the first target frame sequence and the second target frame sequence correspond to the same detection target, the first target frame sequence and the second target frame sequence corresponding to the same detection target are connected to prevent the problem of losing faster-moving targets during the video detection process, thereby realizing the detection of faster-moving targets; the sequence classification value of the new target frame sequence after the connection can be updated to prepare for the connection of the new target frame sequence and the target frame sequence adjacent to it.

[0084] The present application embodiment provides a fast moving target detection device, such as Figure 5 As shown, the device 30 comprises:

[0085] The acquisition module 301 is configured to acquire adjacent first target frame sequences and second target frame sequences, each target frame sequence includes at least one target frame, each target frame corresponds to a video frame number, the target frame is used to indicate a location area of ​​the detection target in the video frame, and the first target frame sequence and the second target frame sequence respectively include target frames corresponding to the same video frame number;

[0086] A determination module 302 is configured to determine whether the first target frame sequence and the second target frame sequence can be connected;

[0087] The connection module 303 is configured to connect the first target frame sequence and the second target frame sequence into a new target frame sequence if possible.

[0088] Optionally, the determination module 302 is configured to:

[0089] Calculate the first IOU value between target frames corresponding to the same video frame number;

[0090] When the first IOU value is greater than the first threshold, the first target frame sequence and the second target frame sequence are allowed to be connected;

[0091] When the first IOU value is less than or equal to the first threshold, the first target frame sequence and the second target frame sequence are not allowed to be connected.

[0092] Optionally, the connection module 303 is configured to:

[0093] Determine the classification values ​​of two target boxes corresponding to the same video frame number, where the classification value is used to indicate the possibility that the target box belongs to the category to which the detection target belongs;

[0094] Keep the target box corresponding to the larger classification value and delete the target box corresponding to the smaller one;

[0095] The first target frame sequence and the second target frame sequence are connected into a new target frame sequence according to the sequence of video frame numbers.

[0096] Optionally, the acquisition module 301 is configured to:

[0097] Acquire a first adjacent video frame sequence and a second adjacent video frame sequence, wherein the first video frame sequence and the second video frame sequence respectively include video frames corresponding to the same video frame number, the first video frame sequence corresponds to a first target frame sequence, and the second video frame sequence corresponds to a second target frame sequence;

[0098] Perform the following operations on each video frame sequence to obtain the corresponding target frame sequence, including:

[0099] Input the video frame sequence into the pre-trained feature extraction network, and output the feature image corresponding to the video frame sequence;

[0100] Dividing the feature image into a plurality of sub-feature images according to the number of video frames included in the video frame sequence;

[0101] Multiple sub-feature images are input into a pre-trained region candidate network and a target detection network to output a target box sequence corresponding to a video frame sequence, wherein the region candidate network is pre-trained using feature images.

[0102] Optionally, the acquisition module 301 is configured to:

[0103] Input each sub-feature image into the region candidate network and the target detection network to output at least one target box contained in each sub-feature image and a classification value corresponding to each target box;

[0104] For a plurality of sub-feature images corresponding to each video frame sequence, a second IOU value between target frames included in two adjacent sub-feature images is calculated to determine a set of target frame sequences to be screened corresponding to the video frame sequence, where the set of target frame sequences to be screened includes at least one target frame sequence to be screened;

[0105] The set of target frame sequences to be screened is subjected to non-maximum suppression processing to determine the target frame sequence corresponding to the video frame sequence.

[0106] Optionally, the acquisition module 301 is configured to:

[0107] Calculate the third IOU value of any two target frame sequences to be screened;

[0108] Calculate the sequence classification value of each target frame sequence to be screened;

[0109] Based on the third IOU value and the sequence classification value, a target frame sequence corresponding to the video frame sequence is determined in the set of target frame sequences to be screened.

[0110] Optional, such as Figure 6 As shown, the device 30 also includes:

[0111] The updating module 304 is configured to update the sequence classification value corresponding to the new target box sequence.

[0112] In summary, in the fast-moving target detection device provided by the embodiment of the present application, the acquisition module can use the pre-trained network model to perform target detection on the adjacent first video frame sequence and the second video frame sequence respectively, and obtain the adjacent first target frame sequence and the second target frame sequence corresponding to the two video frame sequences respectively. The judgment module judges whether the first target frame sequence and the second target frame sequence correspond to the same detection target. The connection module connects the first target frame sequence and the second target frame sequence corresponding to the same detection target to prevent the problem of losing the faster moving target during the video detection process, and realizes the detection of the faster moving target; the update module can update the sequence classification value of the new target frame sequence after the connection, and prepare for the connection of the new target frame sequence and the target frame sequence adjacent to it.

[0113] Figure 7 4 is a computer system according to an exemplary embodiment, which includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part to a random access memory (RAM) 403. In RAM 403, various programs and data required for system operation are also stored. CPU 401, ROM 402 and RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0114] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.

[0115] In particular, according to the embodiments of the present application, the above Figures 1 to 6 The described process can be implemented as a computer software program. For example, various embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present application are executed.

[0116] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0117] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the method, device and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0118] The units involved in the embodiments described in the present application may be implemented by software or by hardware, and the described units may also be arranged in a processor. The names of these units do not constitute limitations on the units themselves in certain circumstances. The described units or modules may also be arranged in a processor, for example, they may be described as: a processor includes an acquisition module, a judgment module, and a connection module. The names of these units or modules do not constitute limitations on the units or modules themselves in certain circumstances, for example, the acquisition module may also be described as "an acquisition module for acquiring adjacent first target frame sequences and second target frame sequences".

[0119] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method for detecting fast-moving targets as described in the above embodiment.

[0120] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the concept of the application. For example, the above features are replaced with the technical features with similar functions disclosed in the present application (but not limited to) to form a technical solution.

Claims

1. A method for detecting a fast moving target, characterized in that: The method comprises: Acquire a first target frame sequence and a second target frame sequence that are adjacent to each other, each of the target frame sequences comprising at least one target frame, each of the target frame corresponding to a video frame number, the target frame being used to indicate a location area of ​​a detection target in a video frame, and the first target frame sequence and the second target frame sequence respectively comprising target frames corresponding to the same video frame number; Determining whether the first target frame sequence and the second target frame sequence can be connected; If possible, connecting the first target frame sequence and the second target frame sequence into a new target frame sequence; The determining whether the first target frame sequence and the second target frame sequence can be connected includes: Calculate the first IOU value between the target frames corresponding to the same video frame number; When the first IOU value is greater than a first threshold, allowing the first target frame sequence and the second target frame sequence to be connected; When the first IOU value is less than or equal to a first threshold, the first target frame sequence and the second target frame sequence are not allowed to be connected.

2. The method according to claim 1, characterized in that The connecting the first target frame sequence and the second target frame sequence into a new target frame sequence includes: Determine the classification values ​​of the two target frames corresponding to the same video frame number, wherein the classification values ​​are used to indicate the possibility that the target frame belongs to the category to which the detection target belongs; The target box corresponding to the larger one of the classification values ​​is retained, and the target box corresponding to the smaller one is deleted; The first target frame sequence and the second target frame sequence are connected into a new target frame sequence according to the sequence of the video frame numbers.

3. The method according to claim 1, characterized in that: The acquiring of adjacent first target frame sequence and second target frame sequence comprises: Acquire a first adjacent video frame sequence and a second adjacent video frame sequence, wherein the first video frame sequence and the second video frame sequence respectively include video frames corresponding to the same video frame number, the first video frame sequence corresponds to the first target frame sequence, and the second video frame sequence corresponds to the second target frame sequence; Perform the following operations on each of the video frame sequences to obtain a corresponding target frame sequence, including: Inputting the video frame sequence into a pre-trained feature extraction network, and outputting a feature image corresponding to the video frame sequence; Dividing the feature image into a plurality of sub-feature images according to the number of video frames included in the video frame sequence; The multiple sub-feature images are input into a pre-trained region candidate network and a target detection network to output a target frame sequence corresponding to the video frame sequence, wherein the region candidate network is pre-trained using the feature images.

4. The method according to claim 3, characterized in that The step of inputting the plurality of sub-feature images into a pre-trained region candidate network and a target detection network to output a target frame sequence corresponding to the video frame sequence includes: Inputting each of the sub-feature images into the region candidate network and the target detection network to output at least one target frame contained in each of the sub-feature images and a classification value corresponding to each of the target frames; For the plurality of sub-feature images corresponding to each video frame sequence, calculating a second IOU value between target frames included in two adjacent sub-feature images to determine a set of target frame sequences to be screened corresponding to the video frame sequence, wherein the set of target frame sequences to be screened includes at least one target frame sequence to be screened; A non-maximum suppression process is performed on the target frame sequence set to be screened to determine a target frame sequence corresponding to the video frame sequence.

5. The method according to claim 4, characterized in that The performing non-maximum suppression processing on the target frame sequence set to be screened to determine a target frame sequence corresponding to the video frame sequence includes: Calculate the third IOU value of any two target frame sequences to be screened; Calculating the sequence classification value of each target frame sequence to be screened; Based on the third IOU value and the sequence classification value, a target frame sequence corresponding to the video frame sequence is determined in the set of target frame sequences to be screened.

6. The method according to any one of claims 1 to 5, characterized in that: After connecting the first target frame sequence and the second target frame sequence into a new target frame sequence according to the sequence of the video frame numbers, the method further includes: Update the sequence classification value corresponding to the new target frame sequence.

7. A fast moving target detection device, characterized in that: The device comprises: an acquisition module, configured to acquire adjacent first target frame sequences and second target frame sequences, each of the target frame sequences including at least one target frame, each of the target frame corresponding to a video frame number, the target frame being used to indicate a location area of ​​a detection target in a video frame, and the first target frame sequence and the second target frame sequence respectively including target frames corresponding to the same video frame number; A judging module, configured to judge whether the first target frame sequence and the second target frame sequence can be connected; a connection module, configured to connect the first target frame sequence and the second target frame sequence into a new target frame sequence if possible; The judging module is configured as follows: Calculate the first IOU value between the target frames corresponding to the same video frame number; When the first IOU value is greater than a first threshold, allowing the first target frame sequence and the second target frame sequence to be connected; When the first IOU value is less than or equal to a first threshold, the first target frame sequence and the second target frame sequence are not allowed to be connected.

8. The device according to claim 7, characterized in that The connection module is configured as follows: Determine the classification values ​​of the two target frames corresponding to the same video frame number, wherein the classification values ​​are used to indicate the possibility that the target frame belongs to the category to which the detection target belongs; The target box corresponding to the larger one of the classification values ​​is retained, and the target box corresponding to the smaller one is deleted; The first target frame sequence and the second target frame sequence are connected into a new target frame sequence according to the sequence of the video frame numbers.

9. The device according to claim 7, characterized in that The acquisition module is configured as follows: Acquire a first adjacent video frame sequence and a second adjacent video frame sequence, wherein the first video frame sequence and the second video frame sequence respectively include video frames corresponding to the same video frame number, the first video frame sequence corresponds to the first target frame sequence, and the second video frame sequence corresponds to the second target frame sequence; Perform the following operations on each of the video frame sequences to obtain a corresponding target frame sequence, including: Inputting the video frame sequence into a pre-trained feature extraction network, and outputting a feature image corresponding to the video frame sequence; Dividing the feature image into a plurality of sub-feature images according to the number of video frames included in the video frame sequence; The multiple sub-feature images are input into a pre-trained region candidate network and a target detection network to output a target frame sequence corresponding to the video frame sequence, wherein the region candidate network is pre-trained using the feature images.

10. The device according to claim 9, characterized in that The acquisition module is configured as follows: Inputting each of the sub-feature images into the region candidate network and the target detection network to output at least one target frame contained in each of the sub-feature images and a classification value corresponding to each of the target frames; For the plurality of sub-feature images corresponding to each video frame sequence, calculating a second IOU value between target frames included in two adjacent sub-feature images to determine a set of target frame sequences to be screened corresponding to the video frame sequence, wherein the set of target frame sequences to be screened includes at least one target frame sequence to be screened; A non-maximum suppression process is performed on the target frame sequence set to be screened to determine a target frame sequence corresponding to the video frame sequence.

11. The device according to claim 10, characterized in that The acquisition module is configured as follows: Calculate the third IOU value of any two target frame sequences to be screened; Calculating the sequence classification value of each target frame sequence to be screened; Based on the third IOU value and the sequence classification value, a target frame sequence corresponding to the video frame sequence is determined in the set of target frame sequences to be screened.

12. The device according to any one of claims 7 to 11, characterized in that: After connecting the first target frame sequence and the second target frame sequence into a new target frame sequence according to the sequence of the video frame numbers, the device further includes: An updating module is configured to update a sequence classification value corresponding to the new target frame sequence.

13. A computer device, characterized in that: The computer device comprises: processor; a memory for storing executable instructions for the processor; Wherein, the processor is configured to execute the fast-moving target detection method as described in any one of claims 1 to 6.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for detecting fast-moving targets as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Target tracking method based on sample reselecting

    CN103793926A

  • Target tracking and holding method during field-of-view switching under airborne motion conditions

    CN106342332B

  • Moving target extraction method and apparatus for image sequence

    CN106920255A

  • Target tracking method and device, mobile equipment and storage medium

    CN107992052A

  • Key point detection method and apparatus, storage medium, computer program and electronic device

    CN108230357A