Video saliency detection method, device and storage medium based on adaptive matching
By using the adaptive matching method and lightweight feature extraction network in video saliency detection, combined with the correlation matching and update mechanism of the memory module, the problem of insufficient utilization of temporal information in the existing technology is solved, and high accuracy and low cost are achieved. Computational video saliency detection, suitable for real-time deployment on mobile devices.
Patent Information
- Application Number
- CN202210557195.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-19
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-19
AI Technical Summary
Existing video saliency detection methods are difficult to effectively utilize the overall timing information of the video, resulting in low detection accuracy, and the amount of calculation increases with the increase in the number of video frames, making them unable to be deployed on mobile devices in real time.
A video saliency detection method based on adaptive matching is adopted, using the lightweight feature extraction network MobileNetV3 and the memory module. Through the correlation matching and adaptive update mechanism, the overall timing information of the video is fully utilized, the calculation amount is reduced, and the detection accuracy is improved.
It achieves lightweight, fast, and high-precision video saliency detection, and can effectively use the overall timing information of the video without increasing the amount of calculation. It is suitable for real-time deployment to mobile devices.
Smart Images

Figure CN115115970B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a video saliency detection method, device and storage medium based on adaptive matching. Background Art
[0002] Video salient object detection technology is mainly used to automatically detect and segment the objects that attract the most visual attention in a video. It plays a great role in many key tasks such as autonomous driving, human-computer interaction, and security. Compared with image saliency detection, since videos contain rich temporal information, how to deal with the temporal correlation between video frames is a challenging problem in video saliency detection.
[0003] Traditional video saliency detection methods often rely on manually designed features and priors, such as color contrast, background priors, center point priors, etc. They extract features from the time and space dimensions respectively and then fuse them together. However, these low-level features have great limitations. Once the scene becomes complex, the effect will be greatly reduced.
[0004] In recent years, with the rapid development of deep learning, video saliency detection methods based on convolutional neural networks have made great progress. They usually use a pre-trained deep backbone network (such as ResNet50, ResNet101) as a feature extractor to extract features at multiple resolution scales, obtain robust image feature representations, and improve segmentation accuracy. At the same time, these methods have also conducted extensive explorations on how to utilize the rich temporal information in video frames. Most methods choose to use optical flow to provide motion information between video frames, merge it with appearance feature representation, and fully explore the complementary relationship between the two modal information, which greatly improves the accuracy of saliency detection. However, since the acquisition of optical flow requires the use of additional networks and additional data for training specifically for extracting optical flow, and when there is almost no change between two frames of the video, the obtained optical flow is often a blank image, which needs to be manually screened out to reduce the negative impact of these blank images on the entire network. This series of processes is time-consuming and labor-intensive, and it is obviously impossible to apply it to actual scenarios.
[0005] In 2019, Fan Dengping et al. applied ConvLSTM to video saliency detection, using two layers of ConvLSTM to capture video temporal information and human attention transfer mechanism, and proposed a benchmark dataset specifically for video saliency detection tasks for the first time, making a great contribution to the development of this task. In "PyramidConstrained Self-AttentionNetwork for Fast Video Salient Object Detection, AAAI, 2020", Gu Yuchao et al. first used a lightweight MobileNet as a feature extraction network, and used the self-attention mechanism and Conv3D convolution to directly establish a temporal relationship for every 5 frames of video, which greatly improved the speed. However, this method is limited to using temporal information within 5 frames of video, lacks consideration of the global information of the entire video, and limits the accuracy. Summary of the invention
[0006] According to the above technical problem of low accuracy of video saliency detection, a method, device and storage medium for video saliency detection based on adaptive matching are provided. The present invention provides a lightweight, fast and high-precision video saliency detection method, which effectively utilizes the overall timing information of the video and does not increase the amount of calculation as the number of video frames increases.
[0007] The technical means adopted by the present invention are as follows:
[0008] A video saliency detection method based on adaptive matching, comprising:
[0009] S1, obtaining a video to be detected, and inputting the first frame image data of the video to be detected into a segmentation network for processing, wherein the segmentation network includes a feature extraction network and a prediction network, wherein the feature extraction network is used to output 4-fold down-sampling features and 8-fold down-sampling features based on the input image data, and the prediction network is used to output a saliency prediction map based on the 4-fold down-sampling features and the 8-fold down-sampling features;
[0010] S2, establishing a memory module to store reference features, wherein the reference features are initialized by the foreground features of the first frame;
[0011] S3, inputting the next frame of image data of the video to be detected as the current frame into the feature extraction network of the segmentation network for feature extraction, performing correlation matching on the current frame feature and the reference feature to obtain a correlation matching map, obtaining correlation matching features based on the correlation matching map and the saliency prediction map of the previous frame, fusing the correlation matching features, the 8-fold down-sampled features of the current frame and the foreground features of the previous frame and sending them to the prediction network to obtain the saliency prediction map of the current frame, and updating the reference features based on the foreground features of the current frame, and integrating the current frame features as reference features for correlation matching of the next frame;
[0012] S4, when the foreground feature of the current frame is empty, the memory module is not updated; when the foreground feature of the current frame is not empty, the reference feature of the memory module is updated according to the correlation matching result between the foreground feature of the current frame and the reference feature;
[0013] S5. Continue to input video frames, and repeat the above S3-S4 until the saliency prediction maps of all video frames are obtained.
[0014] Furthermore, in S1, the feature extraction network is a general lightweight backbone neural network MobileNetV3.
[0015] Further, in S1, the prediction network is used to output a saliency prediction map based on the 4-fold down-sampling features and the 8-fold down-sampling features, including:
[0016] The 8-fold downsampled features are processed, upsampled by 2 times, and concatenated with the 4-fold downsampled features to generate cascaded features;
[0017] The cascade features are processed through the residual module and the convolution module to obtain the final saliency prediction map.
[0018] Further, in S3, the foreground features of the current frame are obtained according to the following steps:
[0019] Based on the saliency prediction map of the current frame, the saved current frame features are screened and the background feature pixels are filtered out to obtain the foreground features of the current frame.
[0020] Further, in S3, correlation matching is performed between the current frame feature and the reference feature to obtain a correlation matching graph, including:
[0021] a. Obtain the pixel-level correlation distance between the current frame feature and the reference feature in the memory module according to the following calculation:
[0022]
[0023] where f p Represents the feature of pixel p in the current frame feature, f qrepresents the reference feature of pixel point q in the memory module, d(p,q) represents the distance between the feature of point p in the current frame and the feature of point q in the memory module in the feature space;
[0024] b. Based on the calculated correlation distance between each pixel, calculate the correlation matching map corresponding to the current frame in the memory module:
[0025]
[0026] Wherein, D represents the correlation matching graph matrix, D(p) represents the elements in the matrix D, and the value of the element is the distance value between the point p in the current frame and the pixel point q with the smallest distance to the memory module.
[0027] Further, in S4, the reference features of the memory module are updated according to the correlation matching result between the foreground features of the current frame and the reference features, including:
[0028] a. Obtain the correlation matching graph of the memory module reference feature matching the current frame pixel point according to the following calculation;
[0029]
[0030] Where D represents the correlation matching graph matrix, D(q) represents the elements in the matrix D, and the value of the element is the distance between the feature matching of point q in the memory module and the pixel with the smallest distance in the current frame feature;
[0031] b. Sort the correlation matching graph in descending order, retain the first 10% of the pixels, and merge the retained pixels with the foreground features of the current frame as reference features for the next frame prediction.
[0032] The present invention also discloses a video saliency detection device based on adaptive matching, comprising:
[0033] A first-frame saliency prediction map output module is used to obtain a video to be detected, and input the first frame image data of the video to be detected into a segmentation network for processing, wherein the segmentation network includes a feature extraction network and a prediction network, wherein the feature extraction network is used to output 4-fold down-sampling features and 8-fold down-sampling features based on the input image data, and the prediction network is used to output a saliency prediction map based on the 4-fold down-sampling features and the 8-fold down-sampling features;
[0034] A memory module, which is used to store reference features, wherein the reference features are initialized by the foreground features of the first frame;
[0035] The remaining frame saliency prediction map output module is specifically used to input the next frame image data of the video to be detected as the current frame into the feature extraction network of the segmentation network for feature extraction, perform correlation matching on the current frame features and the reference features to obtain a correlation matching map, obtain correlation matching features based on the correlation matching map and the saliency prediction map of the previous frame, fuse the correlation matching features, the 8-fold down-sampled features of the current frame, and the foreground features of the previous frame and send them to the prediction network to obtain the saliency prediction map of the current frame, and the reference features are updated based on the foreground features of the current frame and integrated into the current frame features as reference features for correlation matching of the next frame;
[0036] An updating module, which is used for not updating the memory module when the foreground feature of the current frame is empty; when the foreground feature of the current frame is not empty, updating the reference feature of the memory module according to the correlation matching result between the foreground feature of the current frame and the reference feature;
[0037] The video frame saliency prediction map output module is used to continuously input video frames until saliency prediction maps of all video frames are obtained.
[0038] The present invention also discloses a storage medium, which includes a stored program, wherein when the program is run, the above method is executed.
[0039] Compared with the prior art, the present invention has the following advantages:
[0040] The present invention uses a lightweight feature extractor to reduce the number of model parameters. At the same time, the adaptive update mechanism can fully use the useful timing information of the entire video as a reference without increasing the amount of additional calculations in advance. While achieving high accuracy, it greatly improves the speed of video saliency detection technology and provides a feasible method for real-time deployment of the technology in mobile devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0042] Figure 1 The flowchart of the video saliency detection method based on adaptive matching of the present invention is shown in FIG.
[0043] FIG2 is a structural diagram of the feature extraction network MobileNetV3 of the present invention, wherein Figure 2a This is the basic plate structure diagram. Figure 2b This is the structure diagram of the channel attention layer.
[0044] Figure 3 This is a network structure diagram of the feature fusion module related to the present invention.
[0045] Figure 4 This is a network structure diagram predicted by the present invention.
[0046] Figure 5 The example graphs of input video frames, correlation matching graphs, and output significance predictions in the embodiment are shown. DETAILED DESCRIPTION
[0047] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0048] A video saliency detection method based on adaptive matching, comprising:
[0049] S1. Obtain a video to be detected, and input the first frame image data of the video to be detected into a segmentation network for processing, wherein the segmentation network includes a feature extraction network and a prediction network, wherein the feature extraction network is used to output 4x down-sampling features and 8x down-sampling features based on the input image data, and the prediction network is used to output a saliency prediction map based on the 4x down-sampling features and the 8x down-sampling features.
[0050] Specifically, the segmentation network is mainly composed of a feature extraction network and a prediction network. The feature extraction network is a general lightweight backbone neural network MobileNetV3, which consists of a series of group convolution modules, residual modules, channel attention modules, etc. It extracts 4x downsampled features and 8x downsampled features from the input image and sends them to the prediction network. The prediction network processes the 8x downsampled features through the residual module and convolution module, upsamples them by 2 times, and cascades them with the 4x downsampled features. The cascaded features are then processed through the residual module and convolution module to obtain the final saliency prediction map, which is upsampled to the original image size.
[0051] S2. Establish a memory module to store reference features, wherein the reference features are initialized by the foreground features of the first frame.
[0052] S3. Input the next frame image data of the video to be detected into the feature extraction network of the segmentation network for feature extraction, perform correlation matching on the current frame features and the reference features stored in the memory module to obtain a correlation matching map, obtain the correlation matching features based on the correlation matching map and the saliency prediction map of the previous frame, fuse the 8-fold downsampled features of the correlation features of the current frame and the foreground features of the previous frame and send them to the prediction network to obtain the saliency prediction map of the current frame, and update the reference features based on the foreground features of the current frame, and integrate them into the current frame features as reference features for correlation matching of the next frame.
[0053] The present invention saves the 8-fold downsampled features of the previous frame and the saliency prediction map, adds an adaptive correlation matching mechanism to the segmentation network, which includes a memory module to store reference feature information, and inputs the current frame for saliency prediction.
[0054] Preferably, the acquisition of the foreground feature of the current frame includes: screening the saved current frame features based on the saliency prediction map of the current frame, filtering out background feature pixels, and thus obtaining the foreground feature of the current frame.
[0055] Calculate the pixel-level correlation distance between the 8x downsampled features extracted by the feature extraction network of the current frame and the reference features in the memory module. The formula is as follows:
[0056]
[0057] where f p Represents the feature of pixel p in the current frame feature, f q represents the reference feature of pixel q in the memory module, d(p,q) represents the distance between the feature of point p in the current frame and the feature of point q in the memory module in the feature space. When d approaches 0, it means that the two features are very close, that is, the two features are very similar. On the contrary, when d approaches 1, it means that the two features are far apart, that is, the two features are not similar. Therefore, according to the correlation distance, the minimum value along the feature dimension of the memory module can be taken to calculate the correlation matching map corresponding to the current frame in the memory module. The formula is as follows:
[0058]
[0059] D represents the correlation matching graph matrix, and D(p) represents each element in the matrix D. The value of each element is the distance value between the point p in the current frame and the pixel q with the smallest distance to the memory module.
[0060] After the correlation matching is completed, the next step is a correlation feature fusion module. The correlation matching map is cascaded with the saliency prediction map of the previous frame, and the correlation matching features are extracted through a convolution module. Then, they are cascaded with the 8x downsampled features of the current frame and the foreground features of the previous frame, and feature fusion is performed through two residual modules. The fused features are sent to the prediction network of the segmentation network for saliency prediction of the current frame.
[0061] S4. When the foreground feature of the current frame is empty, the memory module is not updated; when the foreground feature of the current frame is not empty, the reference feature of the memory module is updated according to the correlation matching result between the foreground feature of the current frame and the reference feature.
[0062] Specifically, when the foreground feature of the current frame is empty, it means that there is no reference available in the previous frame, so the memory module is not updated; when the foreground feature of the current frame is not empty, the adaptive update mechanism is triggered to update the storage features of the memory module according to the correlation distance of the current frame. The specific process is as follows:
[0063] First, for the calculated correlation distance d(p,q), take the minimum value along the current frame feature module, and calculate the correlation matching graph corresponding to the memory module to the current frame. The formula is as follows:
[0064]
[0065] D(q) indicates that the feature of point q in the memory module matches the pixel with the smallest distance (i.e., the most similar) in the current frame feature. Sort the correlation matching graph D(q) in descending order, and retain the first 10% of the pixels, that is, the first 10% of the pixels with the largest correlation distance, which represent the points with the lowest correlation with the current frame features. It is believed that this part of the pixels may contain useful information that the current frame cannot fully provide. The features corresponding to the retained pixels are used as the reference features of the new memory module, and will be merged with the foreground features of the current frame as the reference features for the next frame prediction. That is, the features corresponding to the retained pixels are merged with the foreground features and used as the reference features of the new memory module.
[0066] S5. Continue to input video frames, and repeat the above S3-S4 until the saliency prediction maps of all video frames are obtained.
[0067] The scheme and effect of the present invention are further described below through specific application examples.
[0068] Figure 1The overall flow chart of the video saliency detection method based on adaptive matching given in the embodiment. First, the first frame of the video I1 is input, and the 8-fold down-sampled features are directly extracted by the feature extraction network and passed through the prediction network to obtain the saliency prediction map M1 of the first frame (the process shown by the black dotted line in the upper branch). At the same time, the 4-fold down-sampled features extracted are also sent to the prediction network through the jump connection (the upper arc) to be fused with the 8-fold down-sampled features, providing rich multi-level feature information. Subsequently, the 8-fold down-sampled features are filtered with M1, the foreground features of the first frame are screened out, added to the memory module, and the subsequent video frames I2…I are started. t Prediction process (the process shown by the black solid line in the lower branch). The input video frame is first extracted by the feature extraction network to the current frame feature f p , and the reference feature f in the memory module q (Initialized by the foreground features of the first frame) Calculate the correlation matching graphs D(p) and D(q), send D(p) to the relevant feature fusion module to fuse with the saliency prediction graph of the previous frame, the foreground features of the previous frame, and the features of the current frame. The fused features are passed through the prediction network to obtain the saliency prediction graph of the current frame. At the same time, start the adaptive mechanism, filter the features in the current memory module according to D(q), retain some useful features, update the memory module, and filter the foreground features of the current frame from the current prediction results, add them to the memory module, and use them together as a new memory module as a reference for the next frame prediction.
[0069] Figure 2 is a structural diagram of the feature extraction network MobileNetV3 in the embodiment. MobileNetV3 consists of a series of basic blocks, each of which contains convolutional layers of different sizes, activation functions, channel attention layers, etc., which are connected in a residual manner. Figure 2(a) shows the basic block structure diagram, and Figure 2(b) shows the channel attention layer structure diagram. The overall MobileNetV3 network consists of 15 basic blocks, as shown below, and each row represents the parameter setting of a basic block:
[0070] Table 1 MobileNetV3 network composition
[0071]
[0072]
[0073] Figure 3The following is the network structure diagram of the correlation feature fusion module, where "Conv" represents the convolution layer, "Bn" represents the batch normalization layer, and "Relu" represents the activation function. After the correlation matching of the current frame features and the memory module is performed, the correlation matching map of the current frame is obtained. This matching map is cascaded with the saliency prediction map of the previous frame, and then initially fused through a basic convolution module, and then cascaded with the current frame features and the foreground features of the previous frame, and further fused through two BottleNet modules. After feature fusion, the final saliency prediction result is obtained through the prediction network. The prediction network structure diagram is shown in the figure below. Figure 4 As shown in FIG. 1 , the 4-fold down-sampled features additionally output by the feature extraction network are fused with the fusion features here. Note that when the current frame is the first frame of the video, there is no correlation fusion process, so the 8-fold down-sampled features are the features directly extracted by the feature extraction network for the first frame.
[0074] In this embodiment, the input size of the network is unified as 256×448, and the input images are subjected to data enhancement by random flipping, cropping, scaling, etc. The overall network is trained in two stages. The first stage is the pre-training stage, which only uses static image data sets, and only trains the feature extraction network and the prediction network. The BCE loss function is used for supervision. This stage can be regarded as image saliency detection. There is no temporal information of the video in order to learn more significant feature representations. The second stage is the fine-tuning stage, which uses the video data set, adds the intermediate correlation matching process, and trains the entire network. This stage adopts a sequence training method, randomly sampling three frames in a video each time as a sequence. The process of one iteration is as follows:
[0075] First, the first frame of video is directly passed through the feature extraction network and the prediction network to obtain a saliency prediction map. Then, the foreground features of the first frame are used to initialize the memory module. The second frame of video is input, and the correlation matching is calculated with the memory module (at this time, the memory module only contains the reference information of the first frame). The saliency prediction map of the second frame is obtained. At the same time, the memory module is updated and the foreground features of the second frame are added. Finally, the third frame of video is input, and the correlation matching is calculated (at this time, the memory module already contains the reference information of the first two frames), and the saliency prediction map of the third frame is obtained. The prediction results of the three frames are all compared with the true value to calculate the BCE loss, and the average is calculated as the total loss, so that the network learns a strong ability to capture temporal information.
[0076] Figure 5 This is an example diagram of network input and output, where the first line is the input video frame image, the second line is the correlation matching result map, and the third line is the final output saliency prediction map.
[0077] The present invention also discloses a video saliency detection device based on adaptive matching, comprising:
[0078] A first-frame saliency prediction map output module is used to obtain a video to be detected, and input the first frame image data of the video to be detected into a segmentation network for processing, wherein the segmentation network includes a feature extraction network and a prediction network, wherein the feature extraction network is used to output 4-fold down-sampling features and 8-fold down-sampling features based on the input image data, and the prediction network is used to output a saliency prediction map based on the 4-fold down-sampling features and the 8-fold down-sampling features;
[0079] A memory module, which is used to store reference features, wherein the reference features are initialized by the foreground features of the first frame;
[0080] The remaining frame saliency prediction map output module is specifically used to input the next frame image data of the video to be detected as the current frame into the feature extraction network of the segmentation network for feature extraction, perform correlation matching on the current frame features and the reference features to obtain a correlation matching map, obtain correlation matching features based on the correlation matching map and the saliency prediction map of the previous frame, fuse the correlation matching features, the 8-fold down-sampled features of the current frame, and the foreground features of the previous frame and send them to the prediction network to obtain the saliency prediction map of the current frame, and the reference features are updated based on the foreground features of the current frame and integrated into the current frame features as reference features for correlation matching of the next frame;
[0081] An updating module, which is used for not updating the memory module when the foreground feature of the current frame is empty; when the foreground feature of the current frame is not empty, updating the reference feature of the memory module according to the correlation matching result between the foreground feature of the current frame and the reference feature;
[0082] The video frame saliency prediction map output module is used to continuously input video frames until saliency prediction maps of all video frames are obtained.
[0083] As for the embodiments of the present invention, since they correspond to the embodiments above, the description is relatively simple. For the relevant similarities, please refer to the description of the above embodiments, which will not be described in detail here.
[0084] The present invention also discloses a storage medium, which includes a stored program, wherein when the program is run, the above method is executed.
[0085] As for the embodiments of the present invention, since they correspond to the embodiments above, the description is relatively simple. For the relevant similarities, please refer to the description of the above embodiments, which will not be described in detail here.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A video saliency detection method based on adaptive matching, characterized in that: include: S1, obtaining a video to be detected, and inputting the first frame image data of the video to be detected into a segmentation network for processing, wherein the segmentation network includes a feature extraction network and a prediction network, wherein the feature extraction network is used to output 4-fold down-sampling features and 8-fold down-sampling features based on the input image data, and the prediction network is used to output a saliency prediction map based on the 4-fold down-sampling features and the 8-fold down-sampling features; S2, establishing a memory module to store reference features, wherein the reference features are initialized by the foreground features of the first frame; S3, inputting the next frame of image data of the video to be detected as the current frame into the feature extraction network of the segmentation network for feature extraction, performing correlation matching on the current frame feature and the reference feature to obtain a correlation matching map, obtaining correlation matching features based on the correlation matching map and the saliency prediction map of the previous frame, fusing the correlation matching features, the 8-fold down-sampled features of the current frame and the foreground features of the previous frame and sending them to the prediction network to obtain the saliency prediction map of the current frame, and updating the reference features based on the foreground features of the current frame, and integrating the current frame features as reference features for correlation matching of the next frame; S4, when the foreground feature of the current frame is empty, the memory module is not updated; when the foreground feature of the current frame is not empty, the reference feature of the memory module is updated according to the correlation matching result between the foreground feature of the current frame and the reference feature; S5. Continue to input video frames, and repeat the above S3-S4 until the saliency prediction maps of all video frames are obtained.
2. The video saliency detection method based on adaptive matching according to claim 1, characterized in that: In S1, the feature extraction network is a general lightweight backbone neural network MobileNetV3.
3. The video saliency detection method based on adaptive matching according to claim 1, characterized in that: In S1, the prediction network is used to output a saliency prediction map based on the 4-fold down-sampling features and the 8-fold down-sampling features, including: The 8-fold downsampled features are processed, upsampled by 2 times, and concatenated with the 4-fold downsampled features to generate cascaded features; The cascade features are processed through the residual module and the convolution module to obtain the final saliency prediction map.
4. The video saliency detection method based on adaptive matching according to claim 1, characterized in that: In S3, the foreground features of the current frame are obtained according to the following steps: Based on the saliency prediction map of the current frame, the saved current frame features are screened and the background feature pixels are filtered out to obtain the foreground features of the current frame.
5. The video saliency detection method based on adaptive matching according to claim 1, characterized in that: In S3, correlation matching is performed between the current frame feature and the reference feature to obtain a correlation matching graph, including: a. Obtain the pixel-level correlation distance between the current frame feature and the reference feature in the memory module according to the following calculation: where f p Represents the feature of pixel p in the current frame feature, f q represents the reference feature of pixel point q in the memory module, d(p,q) represents the distance between the feature of point p in the current frame and the feature of point q in the memory module in the feature space; b. Based on the calculated correlation distance between each pixel, calculate the correlation matching map corresponding to the current frame in the memory module: Wherein, D represents the correlation matching graph matrix, D(p) represents the element in the matrix D, and the value of the element is the distance value between the point p in the current frame and the pixel point q with the smallest distance to the memory module.
6. The video saliency detection method based on adaptive matching according to claim 1, characterized in that: In S4, the reference features of the memory module are updated according to the correlation matching result between the foreground features of the current frame and the reference features, including: a. Obtain the correlation matching graph of the memory module reference feature matching the current frame pixel point according to the following calculation; Where D represents the correlation matching graph matrix, D(q) represents the element in the matrix D, and the value of the element is the distance between the feature matching of point q in the memory module and the pixel with the smallest distance in the current frame feature; b. Sort the correlation matching graph in descending order, retain the first 10% of the pixels, and merge the retained pixels with the foreground features of the current frame as reference features for the next frame prediction.
7. A video saliency detection device based on adaptive matching, characterized in that: include: A first-frame saliency prediction map output module is used to obtain a video to be detected, and input the first frame image data of the video to be detected into a segmentation network for processing, wherein the segmentation network includes a feature extraction network and a prediction network, wherein the feature extraction network is used to output 4-fold down-sampling features and 8-fold down-sampling features based on the input image data, and the prediction network is used to output a saliency prediction map based on the 4-fold down-sampling features and the 8-fold down-sampling features; A memory module, which is used to store reference features, wherein the reference features are initialized by the foreground features of the first frame; The remaining frame saliency prediction map output module is specifically used to input the next frame image data of the video to be detected as the current frame into the feature extraction network of the segmentation network for feature extraction, perform correlation matching on the current frame features and the reference features to obtain a correlation matching map, obtain correlation matching features based on the correlation matching map and the saliency prediction map of the previous frame, fuse the correlation matching features, the 8-fold down-sampled features of the current frame, and the foreground features of the previous frame and send them to the prediction network to obtain the saliency prediction map of the current frame, and the reference features are updated based on the foreground features of the current frame and integrated into the current frame features as reference features for correlation matching of the next frame; An updating module, which is used for not updating the memory module when the foreground feature of the current frame is empty; when the foreground feature of the current frame is not empty, updating the reference feature of the memory module according to the correlation matching result between the foreground feature of the current frame and the reference feature; The video frame saliency prediction map output module is used to continuously input video frames until saliency prediction maps of all video frames are obtained.
8. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the method according to any one of claims 1 to 6 is executed.
