Video object detection model training, video object detection method and device

By using video pipeline and timing alignment features in the video target detection model, combined with supporting image classification, the problem of poor performance of existing small sample target detection models in video data is solved, achieving efficient video target detection and reducing labeling costs. and model deployment complexity.

CN113065422BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202110294961.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-19
Publication Date
2024-09-20
Estimated Expiration
2041-03-19

AI Technical Summary

Technical Problem

Existing small-sample target detection models have poor performance in video data and require a large amount of annotated data, resulting in complex and high-cost model deployment and new category detection processes.

Method used

By obtaining the features of training sample videos and supporting images, we generate video pipeline and temporal alignment features, combine matching and position loss to train the video target detection model, and use supporting image classification to reduce overfitting and improve generalization capabilities.

Benefits of technology

It improves the detection effect of the small sample target detection model in video data, reduces the dependence on annotated data, saves annotation time and cost, and simplifies the model deployment and new category detection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113065422B
    Figure CN113065422B
Patent Text Reader

Abstract

The present disclosure relates to a training, video target detection method and device for a video target detection model. The training method for the video target detection model includes: obtaining a training sample video, a supporting image of the training sample video and a real target detection result; obtaining the target object features and supporting image features of the training sample video from the training sample video and the supporting image of the training sample video respectively; matching the target object features with the supporting image features to obtain a matching result; determining the first loss of the video target detection model based on the matching result and the real target detection result; and training the video target detection model based on the determined first loss. The training method and device for the video target detection model disclosed in the present disclosure can improve the video target detection effect, simplify the detection process and save detection time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of video technology. More specifically, the present disclosure relates to a training method and device for a video target detection model, and a target detection method and device. Background Art

[0002] As users' requirements for image processing continue to increase, the application of object detection technology is becoming more and more extensive. Especially in the modern era of explosive development of streaming media, the application scenarios of video object detection are increasing. Different from object detection in images, video object detection has higher requirements for algorithms due to its unique problems such as jitter, defocus, illumination change and occlusion. Users need to use a large number of high-quality object detection training samples to train the model, and then use this model for object detection tasks. However, in actual application scenarios, high-quality object detection training samples require a lot of manpower and material resources to label, and they are often not available quickly, so the detection model cannot be quickly deployed to the detection of new samples. Video data is particularly difficult to label because each video has a large number of images that need to be labeled. Small sample object detection methods can solve this problem well, but the existing small sample object detection models are all algorithms for images, and there is no algorithm specifically used to solve small sample object detection in videos. The uniqueness of video data greatly limits the application of these image algorithms. Summary of the invention

[0003] The exemplary embodiments of the present disclosure provide a method and device for training a video target detection model, and a target detection method and device, so as to at least solve the problem of video target detection in the related art, and may not solve any of the above problems.

[0004] According to an exemplary embodiment of the present disclosure, there is provided a method for training a video target detection model, comprising: obtaining a training sample video, a supporting image of the training sample video, and a real target detection result; obtaining target object features and supporting image features of the training sample video from the training sample video and the supporting image of the training sample video, respectively; matching the target object features with the supporting image features to obtain a matching result; determining a first loss of the video target detection model based on the matching result and the real target detection result; and training the video target detection model based on the determined first loss.

[0005] Optionally, the step of obtaining target object features of the training sample video from the training sample video may include: generating a video pipeline of the object in the training sample video, wherein the video pipeline contains the same object in at least one frame of the training sample video; and intercepting features in the video pipeline as target object features of the training sample video.

[0006] Optionally, the step of generating a video pipeline of an object in the training sample video may include: performing feature extraction on the training sample video to obtain features of the training sample video; and generating a video pipeline for each object in the training sample video based on the features of the training sample video.

[0007] Optionally, the step of generating a video pipeline for each object in the training sample video based on the features of the training sample video may include: tracking each object in the training sample video based on the features of the training sample video to obtain the location of each object in each frame; and generating a video pipeline for each object in the training sample video based on the location of each object in each frame.

[0008] Optionally, the step of generating a video pipeline for each object in the training sample video based on the positioning of each object in each frame may include: forming a trajectory pipeline of each object in the entire training sample video as a video pipeline based on the positioning of each object in each frame.

[0009] Optionally, the step of obtaining supporting picture features from the supporting pictures of the training sample video may include: performing feature extraction on the supporting pictures of the training sample video, wherein the number of supporting pictures of the training sample video is greater than or equal to 1; performing feature area interception on the extracted features; and performing a mean operation on the intercepted features to obtain supporting picture features.

[0010] Optionally, the training method may further include: classifying the training sample supporting images based on supporting image features; determining the second loss of the video target detection model based on the classification results and the true categories of the supporting images of the training sample video, wherein the step of training the video target detection model based on the determined first loss includes: adjusting the parameters of the video target detection model based on the determined first loss and second loss.

[0011] Optionally, the step of obtaining target object features of the training sample video from the training sample video may include: generating a video pipeline of the object in the training sample video; intercepting features within the video pipeline as video pipeline features; obtaining timing alignment features from the training sample; fusing the video pipeline features with the timing alignment features, and using the fused features as the target object features of the training sample video.

[0012] Optionally, the step of obtaining temporal alignment features from training samples may include: extracting features from different frame images of the same object appearing in the training sample video; intercepting features within the target object area from the extracted features; and averaging the features within the target object area of ​​the different frame images to obtain temporal alignment features.

[0013] Optionally, the first loss may include at least one of a matching loss and a position loss.

[0014] According to an exemplary embodiment of the present disclosure, a video target detection method is provided, comprising: obtaining a video to be detected; obtaining supporting image features of the video to be detected, and obtaining target object features of the video to be detected from the video to be detected; matching the target object features with the supporting image features to obtain the target in the video to be detected.

[0015] Optionally, the step of obtaining target object features of the video to be detected from the video to be detected may include: generating a video pipeline of the object in the video to be detected, wherein the video pipeline contains the same object in at least one frame of the video to be detected; and intercepting features in the video pipeline as target object features of the video to be detected.

[0016] Optionally, the step of generating a video pipeline of the object in the video to be detected may include: performing feature extraction on the video to be detected to obtain features of the video to be detected; and generating a video pipeline for each object in the video to be detected based on the features of the video to be detected.

[0017] Optionally, the step of generating a video pipeline for each object in the video to be detected based on the features of the video to be detected may include: tracking each object in the video to be detected based on the features of the video to be detected to obtain the position of each object in each frame; and generating a video pipeline for each object in the video to be detected based on the position of each object in each frame.

[0018] Optionally, the step of generating a video pipeline for each object in the video to be detected based on the positioning of each object in each frame may include: forming a trajectory pipeline of each object in the entire video to be detected as a video pipeline based on the positioning of each object in each frame.

[0019] According to an exemplary embodiment of the present disclosure, there is provided a training device for a video target detection model, comprising: a training data acquisition unit, configured to acquire a training sample video, a supporting image of the training sample video, and a real target detection result; a feature acquisition unit, configured to acquire a target object feature and a supporting image feature of the training sample video from the training sample video and the supporting image of the training sample video, respectively; a feature matching unit, configured to match the target object feature with the supporting image feature to obtain a matching result; a first loss determination unit, configured to determine a first loss of the video target detection model based on the matching result and the real target detection result; and a model training unit, configured to train the video target detection model based on the determined first loss.

[0020] Optionally, the feature acquisition unit may be configured to: generate a video pipeline of the object in the training sample video, wherein the video pipeline contains the same object in at least one frame of the training sample video; and capture features in the video pipeline as target object features of the training sample video.

[0021] Optionally, the feature acquisition unit may be configured to: perform feature extraction on the training sample video to obtain features of the training sample video; and generate a video pipeline for each object in the training sample video based on the features of the training sample video.

[0022] Optionally, the feature acquisition unit can be configured to: track each object in the training sample video based on the features of the training sample video to obtain the location of each object in each frame; and generate a video pipeline for each object in the training sample video based on the location of each object in each frame.

[0023] Optionally, the feature acquisition unit may be configured to form a trajectory pipeline of each object in the entire training sample video as a video pipeline based on the location of each object in each frame.

[0024] Optionally, the feature acquisition unit can be configured to: extract features from the supporting images of the training sample video, wherein the number of supporting images of the training sample video is greater than or equal to 1; perform feature region interception on the extracted features; and perform a mean operation on the intercepted features to obtain supporting image features.

[0025] Optionally, the training device may also include: a supporting picture classification unit, configured to classify the training sample supporting pictures based on supporting picture features; and a second loss determination unit, configured to determine the second loss of the video target detection model based on the classification result and the true category of the supporting pictures of the training sample video, wherein the model training unit is configured to adjust the parameters of the video target detection model based on the determined first loss and second loss.

[0026] Optionally, the feature acquisition unit can be configured to: generate a video pipeline of the object in the training sample video; intercept features within the video pipeline as video pipeline features; obtain timing alignment features from the training sample; fuse the video pipeline features with the timing alignment features, and use the fused features as the target object features of the training sample video.

[0027] Optionally, the feature acquisition unit can be configured to: extract features from different frame images of the same object appearing in the training sample video; capture features within the target object area from the extracted features; and average the features within the target object area of ​​the different frame images to obtain time-series alignment features.

[0028] Optionally, the first loss may include at least one of a matching loss and a position loss.

[0029] According to an exemplary embodiment of the present disclosure, there is provided a video target detection device, comprising: a video acquisition unit, configured to acquire a video to be detected; a feature acquisition unit, configured to acquire supporting image features of the video to be detected, and acquire target object features of the video to be detected from the video to be detected; and a feature matching unit, configured to match the target object features with the supporting image features, and obtain the target in the video to be detected by the video acquisition unit.

[0030] Optionally, the feature acquisition unit can be configured to: generate a video pipeline of the object in the video to be detected, wherein the video pipeline contains the same object in at least one frame of the video to be detected; and capture features in the video pipeline as target object features of the video to be detected.

[0031] Optionally, the feature acquisition unit may be configured to: perform feature extraction on the video to be detected to obtain features of the video to be detected; and generate a video pipeline for each object in the video to be detected based on the features of the video to be detected.

[0032] Optionally, the feature acquisition unit can be configured to: track each object in the video to be detected based on the features of the video to be detected to obtain the location of each object in each frame; and generate a video pipeline for each object in the video to be detected based on the location of each object in each frame.

[0033] Optionally, the feature acquisition unit may be configured to form a trajectory pipeline of each object in the entire to-be-detected video as a video pipeline based on the location of each object in each frame.

[0034] According to an exemplary embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement a video object detection method according to an exemplary embodiment of the present disclosure.

[0035] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor of an electronic device, the electronic device executes a training method for a video target detection model or a video target detection method according to an exemplary embodiment of the present disclosure.

[0036] According to an exemplary embodiment of the present disclosure, a computer program product is provided, including a computer program / instruction. When the computer program / instruction is executed by a processor, a training method for a video object detection model or a video object detection method according to an exemplary embodiment of the present disclosure is implemented.

[0037] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0038] Improve the detection effect of small sample target detection models in video data, improve model performance, and enable the model to be effectively applied to different video business scenarios;

[0039] New categories can be detected by relying on a small number of supporting images without the need for a large number of training samples, which greatly saves labeling time and cost and simplifies model deployment and the detection process of new categories.

[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0042] Figure 1 A schematic diagram of an overall system for training and applying a video object detection model according to an exemplary embodiment of the present disclosure is shown.

[0043] Figure 2 A flowchart of a method for training a video object detection model according to an exemplary embodiment of the present disclosure is shown.

[0044] Figure 3 A flowchart of a method for training a video object detection model according to another exemplary embodiment of the present disclosure is shown.

[0045] Figure 4 A flowchart of a video object detection method according to an exemplary embodiment of the present disclosure is shown.

[0046] Figure 5 A flowchart of a video object detection method according to another exemplary embodiment of the present disclosure is shown.

[0047] Figure 6 A block diagram of a training apparatus for a video object detection model according to an exemplary embodiment of the present disclosure is shown.

[0048] Figure 7 A block diagram of a training apparatus for a video object detection model according to another exemplary embodiment of the present disclosure is shown.

[0049] Figure 8 A block diagram of a video object detection apparatus according to an exemplary embodiment of the present disclosure is shown.

[0050] Fig. 9 A block diagram of a video object detection apparatus according to another exemplary embodiment of the present disclosure is shown.

[0051] Fig.10 is a block diagram of an electronic device 1000 according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0054] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0055] In the related art, a training triplet containing a target sample, a positive sample, and a negative sample is used to train a small sample detection network, and a region proposal network (RPN) based on an attention mechanism is proposed to generate detection boxes that may contain target objects, and then a multi-relation matching network is used to score these detection boxes, and the rectangular boxes containing the target objects are screened out as detection results. The small sample detection Jupiter trained by this technical solution only relies on a small number of template images to detect the corresponding new categories, without a large number of training samples, which greatly saves annotation time and cost. However, the above-mentioned related technology is a technology for image target detection, and the problems of jitter, defocus, illumination changes, and occlusion in the video make it impossible to obtain satisfactory detection results in video detection. This technology only detects each image separately, and does not utilize the temporal connection and information in the continuous frames of the video, so the effect in the task of small sample target detection in the video is relatively poor.

[0056] Next, we will refer to Figures 1 to 6 The following specifically describes a method and apparatus for training a video object detection model and a method and apparatus for video object detection according to exemplary embodiments of the present disclosure.

[0057] Figure 1 A schematic diagram of an overall system for training and applying a video object detection model according to an exemplary embodiment of the present disclosure is shown.

[0058] Reference Figure 1 The video target detection model may include a temporal feature alignment module, a supporting image classification module, a video pipeline generation module, a matching module, and multiple backbone networks. The input of the video target detection model may be a video, and the output may be a detected target in the video. The backbone network is used to extract features, and may be, for example, but not limited to, ResNet50, ResNet101, ResNet200, ResNeXt101, ResNeSt101, ResNet18, MobileNet, SqueezeNet, and other networks. Figure 1As shown, the temporal feature alignment module can randomly select different frames of the same object in the video as input, and use the backbone network to extract features, then use a rectangular frame to cut out the features in the target object area, then average the cut features, and finally fuse them with the features in the video pipeline generation module as the features of the target object. The video pipeline generation module is used to generate a video pipeline, which can be a multi-target tracking network, such as, but not limited to, CTracker. The matching module can be a matching module based on video pipeline features, such as, but not limited to, a multi-relation matching module, a convolution-based matching module, a cosine distance-based matching module, and a dot product-based matching module. Unlike the image-based matching module in FSOD, the matching module in the present disclosure is based on multi-frame image features, and its input target object features are multi-frame fusion features. In addition, the matching module in the present disclosure can use label smoothing technology to reduce overfitting and improve generalization ability. After the support image uses the backbone network to extract features and perform feature area cutting and averaging, it is processed using the support image classification module. The supporting image classification module can be composed of a global mean pooling, a fully connected layer with an input of 2048 dimensions and an output of 512 dimensions, and a fully connected layer with an input of 512 dimensions and an output of 300 dimensions (there need to be 300 categories in the training set). The output 300-dimensional vector is supervised for training using the cross entropy loss function.

[0059] The video object detection model needs to be trained before application. In the exemplary embodiments of the present disclosure, the video used for training is also referred to as a training sample video. The video object detection model can be trained based on the training sample video and the real object detection results of the training sample video. After obtaining the trained video object detection model, the video to be detected can be input to obtain the object in the video to be detected.

[0060] During the training process, for multiple continuous frames of the input video, first randomly select, for example, but not limited to two frames of pictures to train the backbone network and the video pipeline generation module (the video pipeline generation module here can use the existing multi-target tracking algorithm, for example, but not limited to CTracker). Then the features in the video pipeline are intercepted (for example, but not limited to RoIAlign technology, derived from Mask R-CNN) and the average is taken to obtain a feature map of size (1xCxHxW) as the feature of this video pipeline (a video pipeline contains the same object in multiple frames). Then this feature is fused with the feature of the temporal feature alignment module to obtain the feature of the target object. At the same time, multiple supporting images are also subjected to the backbone network and regional interception and averaging operations to obtain supporting features. The target object features and the supporting features are input into the matching module together for matching, and the network is trained using matching and position losses (the loss function can be a function of cross entropy loss and a function of smooth L1 loss). In addition, in the present disclosure, a supporting image classification module is also introduced to classify supporting images, and the cross entropy loss function is used to supervise them.

[0061] During the training process, the parameters of ResNet50 pre-trained on the ImageNet dataset and the MS COCO dataset can be used, and the newly added layer is initialized with a Gaussian distribution with a variance of 0.01 and a mean of 0. For example, the gradient descent method based on SGD (Stochastic Gradient Descent) can be used to solve the convolution template parameter w and the bias parameter b of the neural network model. In each iteration, the prediction result error is calculated and back-propagated to the convolution neural network model, and the gradient is calculated and the parameters of the convolution neural network model are updated. For example, the learning rate of the training is 0.002, and a total of 45,000 rounds are trained. The learning rate is reduced by ten times at the 30,000th and 40,000th rounds respectively.

[0062] During the test, the backbone network is used to extract the features of the input video, and the video pipeline generation module is used to generate the video pipeline of each object. The features in these video pipelines are region-cut and averaged, and finally input into the matching module together with the supporting image features to obtain the matching scores of these video pipelines. These video pipelines with matching scores are used as the final detection results.

[0063] According to the video object detection model of the exemplary embodiment of the present disclosure, the consistency of training and test features can be enhanced by introducing a feature alignment module, and the temporal connection and information of adjacent frames of the video can be utilized to improve the small sample object detection performance in the video, thereby solving the problem of poor performance of existing small sample object detection models on video data; and new categories can be detected by relying on only a small number of supporting images, without the need for a large number of training samples, which greatly saves labeling time and cost, and simplifies the model deployment and detection process of new categories.

[0064] Figure 2 A flowchart of a method for training a video object detection model according to an exemplary embodiment of the present disclosure is shown.

[0065] Reference Figure 2 In step S201, a training sample video, a supporting image of the training sample video, and a real target detection result are obtained.

[0066] The detection results obtained by detecting the training sample video in advance through manual detection methods or other methods can be used as the real target detection results. The supporting image includes most or all features of the video.

[0067] In step S202, the target object features and supporting image features of the training sample video are obtained from the training sample video and the supporting images of the training sample video, respectively. In this way, it is possible to detect targets of new categories by relying on only a small number of supporting images, without requiring a large number of training samples, thus greatly saving annotation time and cost, and simplifying the model deployment and detection process of new categories.

[0068] In an exemplary embodiment of the present disclosure, when obtaining the target object features of the training sample video from the training sample video, a video pipeline of the object in the training sample video may be first generated, and then the features in the video pipeline may be intercepted as the target object features of the training sample video, thereby improving the accuracy of the target object features. Here, a video pipeline includes the same object in at least one frame (for example, but not limited to all frames of the video) of the training sample video.

[0069] In an exemplary embodiment of the present disclosure, when generating a video pipeline for each object in the training sample video, feature extraction may be first performed on the training sample video to obtain features of the training sample video, and then a video pipeline for each object in the training sample video may be generated based on the features of the training sample video.

[0070] In an exemplary embodiment of the present disclosure, when generating a video pipeline for each object in the training sample video based on the features of the training sample video, each object in the training sample video can be first tracked based on the features of the training sample video to obtain the location of each object in each frame, and then a video pipeline for each object in the training sample video is generated based on the location of each object in each frame.

[0071] In an exemplary embodiment of the present disclosure, when a video pipeline of each object in the training sample video is generated based on the positioning of each object in each frame, a trajectory pipeline of each object in the entire training sample video can be formed as a video pipeline based on the positioning of each object in each frame.

[0072] In an exemplary embodiment of the present disclosure, when obtaining supporting picture features from the supporting pictures of the training sample video, the supporting pictures of the training sample video may be firstly subjected to feature extraction, and feature regions may be intercepted for the extracted features, and then the intercepted features may be subjected to a mean operation to obtain supporting picture features. Here, the number of supporting pictures of the training sample video is greater than or equal to 1.

[0073] In an exemplary embodiment of the present disclosure, when obtaining the target object features of the training sample video from the training sample video, a video pipeline of the object in the training sample video may be generated first, and features in the video pipeline may be intercepted as video pipeline features, and then temporal alignment features may be obtained from the training sample, and finally the video pipeline features may be fused with the temporal alignment features, and the fused features may be used as the target object features of the training sample video. In this way, the consistency of the training and test features is enhanced by the temporal alignment features, and the temporal connection and information of adjacent frames of the video may be utilized to improve the performance of small sample target detection in the video.

[0074] In an exemplary embodiment of the present disclosure, when obtaining temporal alignment features from training samples, features can first be extracted from different frame images of the same object appearing in the training sample video, and features within the target object area can be intercepted from the extracted features. Then, the features within the target object area of ​​the different frame images are averaged to obtain the temporal alignment features.

[0075] In step S203, the target object features are matched with the supporting image features to obtain a matching result. Here, during the matching process, label smoothing technology can be used to reduce overfitting and improve generalization ability.

[0076] In step S204, a first loss of the video object detection model is determined based on the matching result and the actual object detection result.

[0077] In an exemplary embodiment of the present disclosure, the first loss may include at least one of a matching loss and a position loss.

[0078] In step S205, the video object detection model is trained based on the determined first loss.

[0079] According to the video target detection method of the exemplary embodiment of the present disclosure, a feature alignment module is introduced to enhance the consistency of training and test features, and the temporal connection and information of adjacent frames of the video are utilized to improve the performance of small sample target detection in the video, thereby solving the problem of poor performance of existing small sample target detection models on video data; and target detection of new categories can be performed by relying on only a small number of supporting images, without the need for a large number of training samples, which greatly saves labeling time and cost, and simplifies the model deployment and detection process of new categories.

[0080] Figure 3 A flowchart of a method for training a video object detection model according to another exemplary embodiment of the present disclosure is shown.

[0081] Reference Figure 3 In step S301, a training sample video, a supporting image of the training sample video, and a real target detection result are obtained.

[0082] The detection result obtained by pre-detecting the training sample video can be used as the real target detection result. The supporting image includes some or all features of the video.

[0083] In step S302, the target object features and supporting image features of the training sample video are obtained from the training sample video and the supporting images of the training sample video, respectively. In this way, it is possible to detect targets of new categories by relying on only a small number of supporting images, without requiring a large number of training samples, thus greatly saving annotation time and cost, and simplifying the model deployment and detection process of new categories.

[0084] In an exemplary embodiment of the present disclosure, when acquiring the target object features of the training sample video from the training sample video, a video pipeline of the object in the training sample video may be generated first, and then the features in the video pipeline may be intercepted as the target object features of the training sample video.

[0085] In an exemplary embodiment of the present disclosure, when generating a video pipeline for each object in the training sample video, feature extraction may be first performed on the training sample video to obtain features of the training sample video, and then a video pipeline for each object in the training sample video may be generated based on the features of the training sample video.

[0086] In an exemplary embodiment of the present disclosure, when generating a video pipeline for each object in the training sample video based on the features of the training sample video, each object in the training sample video can be first tracked based on the features of the training sample video to obtain the location of each object in each frame, and then a video pipeline for each object in the training sample video is generated based on the location of each object in each frame.

[0087] In an exemplary embodiment of the present disclosure, when a video pipeline of each object in the training sample video is generated based on the positioning of each object in each frame, a trajectory pipeline of each object in the entire training sample video can be formed as a video pipeline based on the positioning of each object in each frame.

[0088] In an exemplary embodiment of the present disclosure, when obtaining supporting picture features from the supporting pictures of the training sample video, the supporting pictures of the training sample video may be firstly subjected to feature extraction, and feature regions may be intercepted for the extracted features, and then the intercepted features may be subjected to a mean operation to obtain supporting picture features. Here, the number of supporting pictures of the training sample video is greater than or equal to 1.

[0089] In an exemplary embodiment of the present disclosure, when obtaining the target object features of the training sample video from the training sample video, a video pipeline of the object in the training sample video may be generated first, and features in the video pipeline may be intercepted as video pipeline features, and then temporal alignment features may be obtained from the training sample, and finally the video pipeline features may be fused with the temporal alignment features, and the fused features may be used as the target object features of the training sample video. In this way, the consistency of the training and test features is enhanced by the temporal alignment features, and the temporal connection and information of adjacent frames of the video may be utilized to improve the performance of small sample target detection in the video.

[0090] In an exemplary embodiment of the present disclosure, when obtaining temporal alignment features from training samples, features can first be extracted from different frame images of the same object appearing in the training sample video, and features within the target object area can be intercepted from the extracted features. Then, the features within the target object area of ​​the different frame images are averaged to obtain the temporal alignment features.

[0091] In step S303, the target object features are matched with the supporting image features to obtain a matching result.

[0092] In step S304, a first loss of the video object detection model is determined based on the matching result and the actual object detection result.

[0093] In an exemplary embodiment of the present disclosure, the first loss may include at least one of a matching loss and a position loss.

[0094] In step S305, the training sample supporting pictures are classified based on the supporting picture features.

[0095] In step S306, a second loss of the video object detection model is determined based on the classification result and the true category of the supporting picture of the training sample video.

[0096] In step S307, the parameters of the video object detection model are adjusted based on the determined first loss and second loss. After the video object detection model is trained, the video object detection model can be put into actual application scenarios for use. The object can be detected from the video to be tested by running the video object detection model.

[0097] Figure 4 A flowchart of a video object detection method according to an exemplary embodiment of the present disclosure is shown.

[0098] Reference Figure 4 In step S401, a video to be detected is obtained.

[0099] In step S402, the supporting image features of the video to be detected are obtained, and the target object features of the video to be detected are obtained from the video to be detected. Specifically, after the video to be detected is obtained (or determined or received) in step S401, the supporting image features corresponding to the video to be detected can be determined in step S402, and the target object features of the video to be detected can be obtained from the video to be detected.

[0100] In an exemplary embodiment of the present disclosure, when obtaining the target object features of the video to be detected from the video to be detected, a video pipeline of the object in the video to be detected may be first generated, and then the features in the video pipeline may be intercepted as the target object features of the video to be detected, thereby representing the object and features in the video in the form of a video pipeline. Here, the video pipeline includes the same object in at least one frame of the video to be detected (for example, but not limited to all frames of the video).

[0101] In an exemplary embodiment of the present disclosure, when generating a video pipeline of an object in a video to be detected, feature extraction may be first performed on the video to be detected to obtain features of the video to be detected, and then a video pipeline for each object in the video to be detected is generated based on the features of the video to be detected, thereby improving the accuracy of the video pipeline.

[0102] In an exemplary embodiment of the present disclosure, when a video pipeline for each object in the video to be detected is generated based on the features of the video to be detected, each object in the video to be detected can be tracked first based on the features of the video to be detected to obtain the location of each object in each frame, and then a video pipeline for each object in the video to be detected is generated based on the location of each object in each frame, thereby improving the accuracy of the video pipeline.

[0103] In an exemplary embodiment of the present disclosure, when generating a video pipeline for each object in a video to be detected based on the positioning of each object in each frame, a trajectory pipeline of each object in the entire video to be detected can be first formed as a video pipeline based on the positioning of each object in each frame, thereby improving the accuracy of the video pipeline.

[0104] In step S403, the target object features are matched with the supporting image features to obtain the target in the video to be detected. Specifically, for example, the target object features can be matched with the supporting image features to obtain a similarity score of each target object feature relative to the supporting image feature, and the target in the video to be detected is determined based on the similarity score. For example, if the similarity score of the target object feature of the object exceeds a threshold, it is the target in the video to be detected.

[0105] Figure 5 A flowchart of a video object detection method according to another exemplary embodiment of the present disclosure is shown.

[0106] Reference Figure 5 In step S501, a video to be detected is obtained.

[0107] In step S502, using the training method according to the present disclosure (such as reference Figure 2 or Figure 3 The video target detection model trained by the training method described above detects the target in the video to be detected based on the supporting image features of the video to be detected.

[0108] In the trained video target detection model, the backbone network is used to extract the features of the input video, and the video pipeline generation module is used to generate the video pipeline of each object, and the features in these video pipelines are regionally intercepted and averaged. Finally, the supporting image features of the video to be detected are obtained, and the features after averaging and the supporting image features are simultaneously input into the matching module to obtain the matching scores of these video pipelines. These video pipelines with matching scores are used as the final detection results. The backbone network is used to extract features, and can be, for example, but not limited to ResNet50, ResNet101, ResNet200, ResNeXt101, ResNeSt101, ResNet18, MobileNet, SqueezeNet and other networks. The video pipeline generation module is used to generate video pipelines, which can be a multi-target tracking network, which can be, for example, but not limited to CTracker. The matching module can be a matching module based on video pipeline features, such as, but not limited to, a multi-relation matching module, a convolution-based matching module, a cosine distance-based matching module, and a dot product-based matching module. The above has been combined Figures 1 to 5The training method of the video object detection model and the video object detection method according to the exemplary embodiment of the present disclosure are described. Figure 6-9 A video object detection model training device, a video object detection device, and units thereof according to exemplary embodiments of the present disclosure are described.

[0109] Figure 6 A block diagram of a training apparatus for a video object detection model according to an exemplary embodiment of the present disclosure is shown.

[0110] Reference Figure 6 The training device of the video target detection model includes a training data acquisition unit 61, a feature acquisition unit 62, a feature matching unit 63, a first loss determination unit 64 and a model training unit 65.

[0111] The training data acquisition unit 61 is configured to acquire a training sample video, a supporting image of the training sample video, and a real target detection result.

[0112] The feature acquisition unit 62 is configured to acquire the target object feature and the supporting picture feature of the training sample video from the training sample video and the supporting picture of the training sample video respectively.

[0113] In an exemplary embodiment of the present disclosure, the feature acquisition unit 62 may be configured to: generate a video pipeline of the object in the training sample video; and capture features in the video pipeline as target object features of the training sample video.

[0114] In an exemplary embodiment of the present disclosure, the feature acquisition unit 62 may be configured to: extract features from the training sample video to obtain features of the training sample video; and generate a video pipeline for each object in the training sample video based on the features of the training sample video.

[0115] In an exemplary embodiment of the present disclosure, the feature acquisition unit 62 may be configured to: track each object in the training sample video based on the features of the training sample video to obtain the location of each object in each frame; and generate a video pipeline for each object in the training sample video based on the location of each object in each frame.

[0116] In an exemplary embodiment of the present disclosure, the feature acquisition unit 62 may be configured to form a trajectory pipeline of each object in the entire training sample video as a video pipeline based on the location of each object in each frame.

[0117] In an exemplary embodiment of the present disclosure, the feature acquisition unit 62 may be configured to: perform feature extraction on the supporting images of the training sample video, wherein the number of supporting images of the training sample video is greater than or equal to 1; perform feature region interception on the extracted features; and perform a mean operation on the intercepted features to obtain supporting image features.

[0118] In an exemplary embodiment of the present disclosure, the feature acquisition unit 62 may be configured to: generate a video pipeline of the object in the training sample video; intercept features within the video pipeline as video pipeline features; acquire timing alignment features from the training sample; fuse the video pipeline features with the timing alignment features, and use the fused features as target object features of the training sample video.

[0119] In an exemplary embodiment of the present disclosure, the feature acquisition unit 62 can be configured to: extract features from different frame images of the same object appearing in the training sample video; extract features within the target object area from the extracted features; and average the features within the target object area of ​​the different frame images to obtain time-series alignment features.

[0120] The feature matching unit 63 is configured to match the target object features with the supporting image features to obtain a matching result.

[0121] The first loss determining unit 64 is configured to determine a first loss of the video object detection model based on the matching result and the true object detection result.

[0122] In an exemplary embodiment of the present disclosure, the first loss may include at least one of a matching loss and a position loss.

[0123] The model training unit 65 is configured to train the video object detection model based on the determined first loss.

[0124] Figure 7 A block diagram of a training apparatus for a video object detection model according to another exemplary embodiment of the present disclosure is shown.

[0125] Reference Figure 7 The training device of the video target detection model includes a training data acquisition unit 71, a feature acquisition unit 72, a feature matching unit 73, a first loss determination unit 74, a supporting image classification unit 75, a second loss determination unit 76 and a model training unit 77.

[0126] The training data acquisition unit 71 is configured to acquire a training sample video, a supporting image of the training sample video, and a real target detection result.

[0127] The feature acquisition unit 72 is configured to acquire the target object feature and the supporting picture feature of the training sample video from the training sample video and the supporting picture of the training sample video respectively.

[0128] In an exemplary embodiment of the present disclosure, the feature acquisition unit 72 may be configured to: generate a video pipeline of the object in the training sample video, wherein the video pipeline contains the same object in at least one frame of the training sample video; and capture features within the video pipeline as target object features of the training sample video.

[0129] In an exemplary embodiment of the present disclosure, the feature acquisition unit 72 may be configured to: extract features from the training sample video to obtain features of the training sample video; and generate a video pipeline for each object in the training sample video based on the features of the training sample video.

[0130] In an exemplary embodiment of the present disclosure, the feature acquisition unit 72 may be configured to: track each object in the training sample video based on the features of the training sample video to obtain the location of each object in each frame; and generate a video pipeline for each object in the training sample video based on the location of each object in each frame.

[0131] In an exemplary embodiment of the present disclosure, the feature acquisition unit 72 may be configured to form a trajectory pipeline of each object in the entire training sample video as a video pipeline based on the location of each object in each frame.

[0132] In an exemplary embodiment of the present disclosure, the feature acquisition unit 72 may be configured to: extract features from the supporting images of the training sample video; perform feature region interception on the extracted features; and perform a mean operation on the intercepted features to obtain supporting image features. Here, the number of supporting images of the training sample video is greater than or equal to 1.

[0133] In an exemplary embodiment of the present disclosure, the feature acquisition unit 72 may be configured to: generate a video pipeline of the object in the training sample video; intercept features within the video pipeline as video pipeline features; acquire timing alignment features from the training sample; fuse the video pipeline features with the timing alignment features, and use the fused features as target object features of the training sample video.

[0134] In an exemplary embodiment of the present disclosure, the feature acquisition unit 72 can be configured to: extract features from different frame images of the same object appearing in the training sample video; extract features within the target object area from the extracted features; and average the features within the target object area of ​​the different frame images to obtain time-series alignment features.

[0135] The feature matching unit 73 is configured to match the target object features with the supporting image features to obtain a matching result.

[0136] The first loss determining unit 74 is configured to determine a first loss of the video object detection model based on the matching result and the true object detection result.

[0137] In an exemplary embodiment of the present disclosure, the first loss may include at least one of a matching loss and a position loss.

[0138] The supporting picture classification unit 75 is configured to classify the training sample supporting pictures based on the supporting picture features.

[0139] The second loss determining unit 76 is configured to determine a second loss of the video object detection model based on the classification result and the true category of the supporting picture of the training sample video.

[0140] The model training unit 77 is configured to adjust the parameters of the video object detection model based on the determined first loss and second loss.

[0141] Figure 8 A block diagram of a video object detection apparatus according to an exemplary embodiment of the present disclosure is shown.

[0142] Reference Figure 8 The video target detection device includes a video acquisition unit 81, a feature acquisition unit 82 and a feature matching unit 83.

[0143] The video acquisition unit 81 is configured to acquire a video to be detected.

[0144] The feature acquisition unit 82 is configured to acquire supporting image features of the video to be detected, and acquire target object features of the video to be detected from the video to be detected.

[0145] In an exemplary embodiment of the present disclosure, the feature acquisition unit 82 may be configured to: generate a video pipeline of the object in the video to be detected, wherein the video pipeline contains the same object in at least one frame of the video to be detected; and capture features within the video pipeline as target object features of the video to be detected.

[0146] In an exemplary embodiment of the present disclosure, the feature acquisition unit 82 may be configured to: perform feature extraction on the video to be detected to obtain features of the video to be detected; and generate a video pipeline for each object in the video to be detected based on the features of the video to be detected.

[0147] In an exemplary embodiment of the present disclosure, the feature acquisition unit 82 may be configured to: track each object in the video to be detected based on the features of the video to be detected, and obtain the location of each object in each frame; and generate a video pipeline for each object in the video to be detected based on the location of each object in each frame.

[0148] In an exemplary embodiment of the present disclosure, the feature acquisition unit 82 may be configured to form a trajectory pipeline of each object in the entire to-be-detected video as a video pipeline based on the location of each object in each frame.

[0149] The feature matching unit 83 is configured to match the target object features with the supporting image features to obtain the target in the video to be detected.

[0150] Fig. 9 A block diagram of a video object detection apparatus according to another exemplary embodiment of the present disclosure is shown.

[0151] Reference Fig. 9 The video target detection device includes a video acquisition unit 91 and a target detection unit 92.

[0152] The video acquisition unit 91 is configured to acquire a video to be detected.

[0153] The target detection unit 92 is configured to utilize the training method according to the present disclosure (such as reference Figure 2 or Figure 3 The video target detection model trained by the training method described above detects the target in the video to be detected based on the supporting image features of the video to be detected.

[0154] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0155] The above has been combined Figures 6 to 9 The training device of the video object detection model and the video object detection device according to the exemplary embodiment of the present disclosure are described. Fig.10 An electronic device according to an exemplary embodiment of the present disclosure is described.

[0156] Fig.10 is a block diagram of an electronic device 1000 according to an exemplary embodiment of the present disclosure.

[0157] Reference Fig.10The electronic device 1000 includes at least one memory 1001 and at least one processor 1002, wherein the at least one memory 1001 stores a set of computer executable instructions, and when the computer executable instruction set is executed by the at least one processor 1002, a method for video target detection according to an exemplary embodiment of the present disclosure is performed.

[0158] For example, the electronic device 1000 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above-mentioned instruction set. Here, the electronic device 1000 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above-mentioned instructions (or instruction sets) individually or in combination. The electronic device 1000 may also be part of an integrated control system or a system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.

[0159] In the electronic device 1000, the processor 1002 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.

[0160] The processor 1002 may execute instructions or codes stored in the memory 1001, wherein the memory 1001 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.

[0161] The memory 1001 may be integrated with the processor 1002, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 1001 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 1001 and the processor 1002 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 1002 can read files stored in the memory.

[0162] In addition, the electronic device 1000 may further include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 1000 may be connected to each other via a bus and / or a network.

[0163] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium including instructions is also provided, such as a memory 1001 including instructions, and the instructions can be executed by a processor 1002 of the device 1000 to complete the above method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0164] According to an exemplary embodiment of the present disclosure, a computer program product may also be provided. The computer program product includes a computer program / instruction. When the computer program / instruction is executed by a processor, the method for video object detection according to the exemplary embodiment of the present disclosure is implemented.

[0165] The above has been referred to Figures 1 to 10 The training method and device of the video object detection model and the video object detection method and device according to the exemplary embodiments of the present disclosure are described. However, it should be understood that: Figures 6 to 9 The training of the video target detection model, the video target detection device and its units shown in the figure can be respectively configured as software, hardware, firmware or any combination of the above items to perform specific functions. Fig.10 The electronic device shown in is not limited to including the components shown above, but some components may be added or deleted as needed, and the above components may also be combined.

[0166] The training method and device of the video target detection model disclosed in the present invention can be used to improve the detection effect of the small sample target detection model in video data, improve the model performance, and enable the model to be effectively applied to different video business scenarios, such as video target detection data labeling (especially suitable for cold start and labeling of new categories and new samples).

[0167] In addition, according to the video target detection method and device disclosed in the present invention, the user only needs to provide a small number of supporting images to detect all objects of the same category in the video, which greatly saves labeling time and cost, and simplifies the model deployment and detection process of new categories, thereby improving the user experience.

[0168] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0169] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for training a video object detection model, characterized in that: include: Obtaining a training sample video, supporting images of the training sample video, and a real target detection result; Acquire target object features and supporting image features of the training sample video from the training sample video and the supporting image of the training sample video respectively; Match the target object features with the supporting image features to obtain a matching result; Determine a first loss of the video object detection model based on the matching result and the true object detection result; Classify the training sample support images based on the support image features; Determine a second loss of the video object detection model based on the classification result and the true category of the supporting picture of the training sample video; Parameters of the video object detection model are adjusted based on the determined first loss and second loss.

2. The training method according to claim 1, characterized in that: The step of acquiring the target object features of the training sample video from the training sample video comprises: Generating a video pipeline of the object in the training sample video, wherein the video pipeline includes the same object in at least one frame of the training sample video; The features in the video pipeline are captured as the target object features of the training sample video.

3. The training method according to claim 2, characterized in that: The step of generating a video pipeline of an object in the training sample video comprises: Extracting features from the training sample video to obtain features of the training sample video; A video pipeline for each object in the training sample video is generated based on the features of the training sample video.

4. The training method according to claim 3, characterized in that: The step of generating a video pipeline of each object in the training sample video based on the features of the training sample video comprises: Tracking each object in the training sample video based on the features of the training sample video to obtain the location of each object in each frame; A video pipeline of each object in the training sample video is generated based on the location of each object in each frame.

5. The training method according to claim 4, characterized in that: The step of generating a video pipeline of each object in the training sample video based on the location of each object in each frame includes: Based on the positioning of each object in each frame, a trajectory pipeline of each object in the entire training sample video is formed as a video pipeline.

6. The training method according to claim 1, characterized in that: The step of obtaining supporting picture features from the supporting pictures of the training sample video comprises: Performing feature extraction on the supporting images of the training sample video, wherein the number of supporting images of the training sample video is greater than or equal to 1; Perform feature region interception on the extracted features; The intercepted features are averaged to obtain the supporting image features.

7. The training method according to claim 1, characterized in that: The step of acquiring the target object features of the training sample video from the training sample video comprises: Generating a video pipeline of objects in the training sample video; Capturing features in the video pipeline as video pipeline features; Obtaining time-series alignment features from training samples; The video pipeline features are fused with the temporal alignment features, and the fused features are used as the target object features of the training sample video.

8. The training method according to claim 7, characterized in that: The steps to obtain time series alignment features from training samples include: Extracting features from different frame images of the same object in the training sample video; Extract features in the target object area from the extracted features; The features in the target object area of ​​the different frame images are averaged to obtain the time series alignment features.

9. The training method according to claim 1, characterized in that: The first loss includes at least one of a matching loss and a position loss.

10. A video target detection method, characterized in that: include: Inputting the video to be detected into a video object detection model trained by the training method described in any one of claims 1 to 9; Acquire supporting image features of the video to be detected through the video target detection model, and acquire target object features of the video to be detected from the video to be detected; The target object features are matched with the supporting image features through the video target detection model to obtain the target in the video to be detected.

11. The video target detection method according to claim 10, characterized in that: The step of acquiring the target object features of the video to be detected from the video to be detected comprises: Generate a video pipeline of the object in the video to be detected, wherein the video pipeline contains the same object in at least one frame of the video to be detected; The features in the video pipeline are captured as the target object features of the video to be detected.

12. The video target detection method according to claim 11, characterized in that: The step of generating a video pipeline of the object to be detected in the video comprises: Extracting features from the video to be detected to obtain features of the video to be detected; A video pipeline for each object in the video to be detected is generated based on the features of the video to be detected.

13. The video target detection method according to claim 12, characterized in that: The step of generating a video pipeline of each object in the video to be detected based on the features of the video to be detected comprises: Tracking each object in the video to be detected based on the features of the video to be detected to obtain the location of each object in each frame; A video pipeline of each object in the to-be-detected video is generated based on the location of each object in each frame.

14. The video target detection method according to claim 13, characterized in that: The step of generating a video pipeline for each object in the video to be detected based on the location of each object in each frame includes: Based on the positioning of each object in each frame, a trajectory pipeline of each object in the entire to-be-detected video is formed as a video pipeline.

15. A training device for a video object detection model, characterized in that: include: A training data acquisition unit is configured to acquire a training sample video, a supporting image of the training sample video, and a real target detection result; A feature acquisition unit, configured to acquire target object features and supporting image features of the training sample video from the training sample video and the supporting image of the training sample video respectively; A feature matching unit is configured to match the target object features with the supporting image features to obtain a matching result; A first loss determining unit, configured to determine a first loss of the video object detection model based on the matching result and the true object detection result; A supporting picture classification unit, configured to classify the training sample supporting pictures based on supporting picture features; as well as A second loss determination unit is configured to determine a second loss of the video object detection model based on the classification result and the true category of the supporting picture of the training sample video; and The model training unit is configured to adjust the parameters of the video object detection model based on the determined first loss and second loss.

16. The training device according to claim 15, characterized in that The feature acquisition unit is configured as follows: Generating a video pipeline of the object in the training sample video, wherein the video pipeline contains the same object in at least one frame of the training sample video; The features in the video pipeline are captured as the target object features of the training sample video.

17. The training device according to claim 16, characterized in that The feature acquisition unit is configured as follows: Extracting features from the training sample video to obtain features of the training sample video; A video pipeline for each object in the training sample video is generated based on the features of the training sample video.

18. The training device according to claim 17, characterized in that The feature acquisition unit is configured as follows: Tracking each object in the training sample video based on the features of the training sample video to obtain the location of each object in each frame; A video pipeline of each object in the training sample video is generated based on the location of each object in each frame.

19. The training device according to claim 18, characterized in that The feature acquisition unit is configured as follows: Based on the positioning of each object in each frame, a trajectory pipeline of each object in the entire training sample video is formed as a video pipeline.

20. The training device according to claim 15, characterized in that The feature acquisition unit is configured as follows: Performing feature extraction on the supporting images of the training sample video, wherein the number of supporting images of the training sample video is greater than or equal to 1; Perform feature region interception on the extracted features; The intercepted features are averaged to obtain the supporting image features.

21. The training device according to claim 15, characterized in that The feature acquisition unit is configured as follows: Generating a video pipeline of objects in the training sample video; Capturing features in the video pipeline as video pipeline features; Obtaining time-series alignment features from training samples; The video pipeline features are fused with the temporal alignment features, and the fused features are used as the target object features of the training sample video.

22. The training device according to claim 21, characterized in that The feature acquisition unit is configured as follows: Extracting features from different frame images of the same object in the training sample video; Extract features in the target object area from the extracted features; The features in the target object area of ​​the different frame images are averaged to obtain the time series alignment features.

23. The training device according to claim 15, characterized in that The first loss includes at least one of a matching loss and a position loss.

24. A video object detection device, characterized in that: include: A video acquisition unit, configured to input the video to be detected into a video target detection model trained by the training method according to any one of claims 1 to 9; A feature acquisition unit is configured to acquire supporting image features of the video to be detected through the video target detection model, and acquire target object features of the video to be detected from the video to be detected; and The feature matching unit is configured to match the target object features with the supporting image features through the video target detection model to obtain the target in the video to be detected.

25. The video object detection device according to claim 24, characterized in that: The feature acquisition unit is configured as follows: Generate a video pipeline of the object in the video to be detected, wherein the video pipeline contains the same object in at least one frame of the video to be detected; The features in the video pipeline are captured as the target object features of the video to be detected.

26. The video object detection device according to claim 25, characterized in that: The feature acquisition unit is configured as follows: Extracting features from the video to be detected to obtain features of the video to be detected; A video pipeline for each object in the video to be detected is generated based on the features of the video to be detected.

27. The video object detection device according to claim 26, characterized in that: The feature acquisition unit is configured as follows: Tracking each object in the video to be detected based on the features of the video to be detected to obtain the location of each object in each frame; A video pipeline of each object in the to-be-detected video is generated based on the location of each object in each frame.

28. The video object detection device according to claim 27, characterized in that: The feature acquisition unit is configured as follows: Based on the positioning of each object in each frame, a trajectory pipeline of each object in the entire to-be-detected video is formed as a video pipeline.

29. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 14.

30. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor of an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 14.

31. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.

Citation Information

Cited By

  • Video target detection method based on deep neural network architecture

    CN122157104A