Video detection method and device, computer equipment and storage medium

By clustering the feature vectors of genuine video frames, constructing feature clusters and central feature vectors, and only detecting the similarity of feature vectors of video frames in the N feature clusters with the smallest distances, the problem of low video detection efficiency in the existing technology is solved. problem, achieving efficient video infringement identification.

CN118820522APending Publication Date: 2024-10-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310436868.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing video detection methods take a long time, have low detection efficiency, and cannot efficiently identify video infringement issues, especially when the number of cover images in the retrieval database is huge.

Method used

By clustering the feature vectors of genuine video frames, we construct feature clusters and central feature vectors, and only detect the similarity of feature vectors of video frames in the N feature clusters with the smallest distance, narrowing the detection range and reducing the amount of data.

Benefits of technology

It improves the efficiency of video detection and the accuracy of infringement detection, significantly reduces detection time, and improves the ability to identify video frames and infringing videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820522A_ABST
    Figure CN118820522A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a video detection method and device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: displaying an infringement detection interface, wherein the infringement detection interface displays a video input area and a result display area; in response to a video input in the video input area, based on a feature vector of a first video frame in the video, determining N feature clusters with the minimum distance between the center feature vector and the feature vector of the first video frame in a retrieval library; in response to at least one target feature vector in the N feature clusters, determining at least one genuine video corresponding to the at least one target feature vector; and displaying a detection result of the video in the result display area, wherein the detection result indicates that the video has infringement possibility to the at least one genuine video. According to the scheme, the video infringement detection efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a video detection method, apparatus, computer equipment, and storage medium. Background Art

[0002] With the development of computer technology, the scale of videos on the Internet is getting bigger and bigger. The problem of video infringement is also getting more and more serious. Infringers often make some modifications to the original videos and publish the modified videos as their own videos. Therefore, how to detect whether a video is infringing is a technical problem that needs to be solved.

[0003] In the related art, whether a video is infringing is usually detected by searching the cover image of the video. For example, the cover image of the video is compared with the cover images of a large number of legitimate videos in the search library one by one to determine whether there is a cover image of a legitimate video in the search library that is highly similar to the cover image of the video. If there is, the video may be an infringing video.

[0004] However, due to the large number and scale of cover images in the retrieval library, the above video detection method is time-consuming and has low detection efficiency. Summary of the invention

[0005] The embodiments of the present application provide a video detection method, apparatus, computer equipment and storage medium, which can improve the efficiency of video detection. The technical solution is as follows:

[0006] In one aspect, a video detection method is provided, the method comprising:

[0007] Displaying an infringement detection interface, wherein the infringement detection interface includes a video input area and a result display area;

[0008] In response to a video input in the video input area, based on a feature vector of a first video frame in the video, determining in a search library N feature clusters whose central feature vector has the smallest distance to a feature vector of the first video frame, wherein the first video frame is any video frame in the video, the search library includes a plurality of feature clusters and a central feature vector of each feature cluster, the feature clusters are obtained by clustering feature vectors of video frames in the legitimate video, and N is a positive integer;

[0009] In response to at least one target feature vector existing in the N feature clusters, determining at least one legitimate video corresponding to the at least one target feature vector, wherein a distance between the target feature vector and a feature vector of the first video frame is less than a first distance threshold;

[0010] The detection result of the video is displayed in the result display area, and the detection result indicates that the video may infringe the at least one legitimate video.

[0011] In another aspect, a video detection device is provided, the device comprising:

[0012] A first display module, used to display an infringement detection interface, wherein the infringement detection interface includes a video input area and a result display area;

[0013] A first determination module is used to respond to the video input in the video input area, and determine, based on the feature vector of a first video frame in the video, N feature clusters whose central feature vector has the smallest distance to the feature vector of the first video frame in the search library, wherein the first video frame is any video frame in the video, the search library includes a plurality of feature clusters and a central feature vector of each feature cluster, the feature clusters are obtained by clustering the feature vectors of the video frames in the legitimate video, and N is a positive integer;

[0014] A second determination module is configured to determine, in response to at least one target feature vector existing in the N feature clusters, at least one legitimate video corresponding to the at least one target feature vector, wherein a distance between the target feature vector and a feature vector of the first video frame is less than a first distance threshold;

[0015] The second display module is used to display the detection result of the video in the result display area, and the detection result indicates that the video may infringe the at least one legitimate video.

[0016] In some embodiments, the second determination module is used to determine a second video frame for any target feature vector in response to the presence of at least one target feature vector in the N feature clusters, where the second video frame is a video frame corresponding to the target feature vector; and determine the authentic video where the second video frame is located.

[0017] In some embodiments, the apparatus further comprises:

[0018] A third determination module, configured to determine the information entropy of the first video frame based on the grayscale values ​​of the pixels in the first video frame, wherein the information entropy is positively correlated with the uniformity of the distribution of the grayscale values ​​of the pixels in the first video frame;

[0019] The feature extraction module is used to extract features from the first video frame in response to the information entropy of the first video frame being not less than an information entropy threshold, so as to obtain a feature vector of the first video frame.

[0020] In some embodiments, the first video frame is a cover image of the video, and the apparatus further comprises:

[0021] The feature extraction module is used to extract features of the cover image of any legitimate video among the multiple legitimate videos to obtain a feature vector of the legitimate video;

[0022] A clustering module, used for clustering feature vectors of multiple legitimate videos to obtain multiple feature clusters and a central feature vector of each feature cluster;

[0023] A construction module is used to construct the retrieval library based on the multiple feature clusters, the central feature vector of each feature cluster and the feature vectors of the multiple legitimate videos.

[0024] In some embodiments, the construction module is used to determine the distance between the feature vectors of the multiple genuine videos; divide the feature vectors of the multiple genuine videos into different feature clusters, and the distance between the multiple feature vectors in the feature cluster is not greater than a second distance threshold; for any feature cluster, the feature vector in the feature cluster with the smallest distance to the average feature vector is used as the central feature vector of the feature cluster, and the average feature vector is obtained by averaging the multiple feature vectors in the feature cluster.

[0025] In some embodiments, the feature extraction module is used to determine the information entropy of the cover image based on the grayscale values ​​of the pixels in the cover image of the legitimate video, and the information entropy is positively correlated with the uniformity of the distribution of the grayscale values ​​of the pixels in the cover image; in response to the information entropy being not less than an information entropy threshold, feature extraction is performed on the cover image to obtain a feature vector of the legitimate video.

[0026] In some embodiments, the apparatus further comprises:

[0027] A fourth determination module, used to determine the number of feature vectors in the plurality of feature clusters;

[0028] The deleting module is used for deleting, for any feature cluster, the feature cluster and the multiple feature vectors in the feature cluster from the search library when the number of feature vectors in the feature cluster is greater than a quantity threshold.

[0029] In some embodiments, the feature extraction module is used to extract features from any video frame in any one of the plurality of legitimate videos to obtain a feature vector of the legitimate video;

[0030] The clustering module is used to cluster the feature vectors of the plurality of legitimate videos to obtain a plurality of feature clusters and a central feature vector of each feature cluster;

[0031] The construction module is used to construct the retrieval library based on the multiple feature clusters, the central feature vector of each feature cluster, and the feature vectors of the multiple legitimate videos.

[0032] In some embodiments, the target feature vector is multiple, and the device further includes:

[0033] A fifth determination module, configured to determine, for any target feature vector, a legitimate video segment in the legitimate video where the video frame corresponding to the target feature vector is located, wherein the legitimate video segment includes the video frame corresponding to the target feature vector;

[0034] a sixth determining module, configured to determine a video segment to be detected in the video, wherein the video segment to be detected includes the first video frame;

[0035] A feature vector retaining module, configured to retain the target feature vector if the similarity between the legitimate video segment and the video segment to be detected is not less than a first similarity threshold;

[0036] The feature vector deletion module is used to delete the target feature vector when the similarity between the legitimate video segment and the video segment to be detected is less than the first similarity threshold.

[0037] In some embodiments, the apparatus further comprises:

[0038] A seventh determination module is used to determine, for any target feature vector, a legitimate audio segment in the legitimate video where the video frame corresponding to the target feature vector is located, wherein the legitimate audio segment is the audio segment corresponding to the video frame corresponding to the target feature vector;

[0039] an eighth determination module, configured to determine an audio segment to be detected in the video, wherein the audio segment to be detected is an audio segment corresponding to the first video frame;

[0040] The feature vector retaining module is used to retain the target feature vector if the similarity between the legitimate audio segment and the audio segment to be detected is not less than a second similarity threshold;

[0041] The feature vector deletion module is used to delete the target feature vector when the similarity between the legitimate audio segment and the audio segment to be detected is less than the second similarity threshold.

[0042] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the video detection method as described in the above aspects.

[0043] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the video detection method as described in the above aspects.

[0044] On the other hand, a computer program product is provided, including a computer program, wherein the computer program is loaded and executed by a processor to implement the video detection method as described in the above aspects.

[0045] The embodiment of the present application provides a video detection scheme. Since the retrieval library includes feature vectors of video frames of legitimate videos, and the above feature vectors are clustered in the retrieval library, multiple feature clusters and the central feature vector of each feature cluster are obtained. Therefore, in the process of infringement detection of the video where the first video frame is located, the N feature clusters where the N central feature vectors with the smallest distance from the feature vector of the first video frame are located can be first determined in the retrieval library. Only in the above N feature clusters is it detected whether there is a feature vector with a high degree of similarity to the feature vector of the first video frame, without the need to detect in all feature clusters, which narrows the detection range and reduces the amount of data detected. In the case where there is a target feature vector with a high degree of similarity to the feature vector of the first video frame in the N feature clusters, the detection result of the first video frame is displayed in the result display area. The detection result can indicate that the video where the first video frame is located has the possibility of infringement on at least one legitimate video. Through the above-mentioned fast retrieval method, the efficiency of video frame detection and the efficiency of video infringement detection are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0048] Figure 2 is a flow chart of a video detection method provided in an embodiment of the present application;

[0049] Figure 3 is a flow chart of another video detection method provided in an embodiment of the present application;

[0050] Figure 4 is a schematic diagram of an infringement detection interface provided in an embodiment of the present application;

[0051] Figure 5 is a schematic diagram of a video frame with low information entropy provided in an embodiment of the present application;

[0052] Figure 6 is a schematic diagram of a first video frame provided in an embodiment of the present application;

[0053] Figure 7 is a schematic diagram of a feature vector provided in an embodiment of the present application;

[0054] Figure 8 is a schematic diagram of a feature extraction network provided in an embodiment of the present application;

[0055] Fig. 9 is a schematic diagram of a bottleneck layer provided in an embodiment of the present application;

[0056] Fig.10 is a schematic diagram of a game settlement page provided in an embodiment of the present application;

[0057] Fig.11 is a schematic diagram of a similar title cover provided in an embodiment of the present application;

[0058] Fig.12 is a flow chart of a video detection provided by an embodiment of the present application;

[0059] Fig.13 is a flowchart of another video detection provided by an embodiment of the present application;

[0060] Fig.14 is a structural schematic diagram of a video detection device provided in an embodiment of the present application;

[0061] Fig.15 is a structural schematic diagram of another video detection device provided in an embodiment of the present application;

[0062] Fig.16 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0063] Fig.17 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0065] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.

[0066] In the present application, the term "at least one" means one or more, and the term "plurality" means two or more.

[0067] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the videos and genuine videos involved in this application were obtained with full authorization.

[0068] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application, see Figure 1 The implementation environment includes: a terminal 101 and a server 102. The terminal 101 and the server 102 can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.

[0069] In some embodiments, the terminal 101 is a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc., but is not limited thereto. The terminal 101 has an application installed and running, and the application is used for infringement detection of the video. The application is associated with the server 102, and the server 102 provides background services.

[0070] In some embodiments, the server 102 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In some embodiments, the server 102 receives the cover image of the video uploaded by the terminal 101 through the application. The server 102 searches the retrieval library for the cover image of the legitimate video that is similar to the cover image of the video. In the case where there is a cover image of the legitimate video with a high degree of similarity to the cover image in the retrieval library, it is determined that the above-mentioned video is likely to infringe the legitimate video. The server 102 returns the infringement detection result of the video to the terminal 101. The terminal 101 displays the infringement detection result through the application. In some embodiments, the server 102 undertakes the main computing work and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work and the terminal 101 undertakes the main computing work; or, the server 102 and the terminal 101 adopt a distributed computing architecture to perform collaborative computing.

[0071] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminal may be only one, or the above terminals may be dozens or hundreds, or more. The embodiment of the present application does not limit the number of terminals and device types.

[0072] Figure 2 is a flow chart of a video detection method provided in an embodiment of the present application, which is executed by a terminal, see Figure 2 , the method comprising:

[0073] 201. The terminal displays an infringement detection interface, which includes a video input area and a result display area.

[0074] In the embodiment of the present application, the terminal displays an infringement detection interface, which is used to detect infringement of the video. Since directly detecting the video during infringement detection consumes a lot of bandwidth resources and computing resources, in order to improve the efficiency of infringement detection and reduce the cost of infringement detection, infringement detection is usually performed through low-cost data such as the cover image of the video, any video frame in the video, or the video title.

[0075] The embodiment of the present application takes any video frame in the video as an example, and detects infringement of the video by detecting the video frame. The infringement detection interface displays a video input area and a result display area. The video input area is used to input the video to be detected, the cover image of the video, or any video frame in the video. The result display area can display the infringement detection result of the video. In the case where the video input area inputs any video frame in the video, the result display area can also display the detection result of the video frame. Among them, the detection result of the video frame can indicate the infringement detection result of the video. For example, in the case where the detection result of the video frame is that there is a video frame with a high degree of similarity to the input video frame, the infringement detection result of the video is that the video is likely to infringe the genuine video. In the case where the detection result of the video frame is that there is no video frame with a high degree of similarity to the input video frame, the infringement detection result of the video is that the infringement possibility of the video is small, and the video is a genuine video.

[0076] 202. In response to a video input in the video input area, the terminal determines, based on a feature vector of a first video frame in the video, N feature clusters having the smallest distance between a central feature vector and a feature vector of the first video frame in the video in a retrieval library, where the first video frame is any video frame in the video, the retrieval library includes multiple feature clusters and a central feature vector of each feature cluster, the feature clusters are obtained by clustering feature vectors of video frames in the legitimate video, and N is a positive integer.

[0077] In the embodiment of the present application, since the video input area is used to input the video to be detected, the cover image of the video, or any video frame in the video. Therefore, the user can input the video to be detected in the video input area. The user can also determine any video frame in the video to be detected, and input the video frame into the video input area as the first video frame. The video to be detected can also be obtained by the terminal, and the terminal determines any video frame in the video to be detected, and inputs the video frame into the video input area as the first video frame. The embodiment of the present application does not limit this.

[0078] The following is an example of inputting any video frame in the video input area to illustrate the infringement detection process of the video. In response to the first video frame input in the video input area, the terminal extracts the feature vector of the first video frame. The terminal determines whether there is a feature vector with a high degree of similarity to the feature vector of the first video frame in the search library. Among them, the search library includes feature vectors of video frames in multiple legitimate videos. The above feature vectors are clustered in the search library to obtain multiple feature clusters and the central feature vector of each feature cluster. After clustering, the distance between the feature vectors in each feature cluster is small, and the central feature vector of the feature cluster is the most representative feature vector in the feature cluster. The terminal determines the N central feature vectors with the smallest distance from the feature vector of the first video frame through the distance between the feature vector of the first video frame and each central feature vector in the search library. In the vector space, the smaller the distance between the vectors, the higher the degree of similarity between the vectors. Therefore, the N central feature vectors with the smallest distance are also the N central feature vectors that are most similar to the feature vector of the first video frame. Among them, N can be 20, 30 or 50, and the embodiment of the present application is not limited to this. Then, the terminal determines the N feature clusters where the N central feature vectors are located. The feature vectors in the N feature clusters are more similar to the feature vectors of the first video frame than the feature vectors in other feature clusters in the search library. Therefore, by detecting whether there is a feature vector similar to the feature vector of the first video frame in the N feature clusters, without having to detect in all feature clusters in the search library, the detection range can be narrowed and the amount of data detected can be reduced.

[0079] 203. In response to at least one target feature vector existing in the N feature clusters, the terminal determines at least one legitimate video corresponding to the at least one target feature vector, and a distance between the target feature vector and a feature vector of the first video frame is less than a first distance threshold.

[0080] In an embodiment of the present application, the terminal determines the distance between the feature vector of the first video frame and multiple feature vectors in N feature clusters. The terminal uses the feature vector in the N feature clusters whose distance from the feature vector of the first video frame is less than the first distance threshold as the target feature vector. Among them, the first distance threshold can be a preset value, and the embodiment of the present application is not limited to this. It can be considered that when the distance between two vectors is less than the first distance threshold, the similarity between the two vectors is high. In the above manner, the terminal can determine at least one target feature vector with a high degree of similarity to the feature vector of the first video frame. The terminal determines at least one legitimate video corresponding to at least one target feature vector. Since the target feature vector is relatively similar to the feature vector of the first video frame, the video frame corresponding to the target feature vector is also relatively similar to the first video frame. Therefore, the detection result of the first video frame can indicate that the first video frame has a high degree of similarity with the video frame in at least one legitimate video, and the video to be detected may infringe the at least one legitimate video. By the above method of detecting video frames, infringement detection of the video to be detected can be achieved.

[0081] 204. The terminal displays the detection result of the video in the result display area, and the detection result indicates that the video may infringe the copyright of at least one legitimate video.

[0082] In an embodiment of the present application, after the terminal determines the detection result of the first video frame, the terminal displays the detection result of the video in the result display area of ​​the infringement detection interface. The detection result indicates that the video where the first video frame is located may infringe the at least one legitimate video. In some embodiments, the detection result includes the first video frame, at least one video frame corresponding to the target feature vector, and at least one legitimate video. The implementation of the present application does not limit the displayed detection result.

[0083] The embodiment of the present application provides a video detection method. Since the retrieval library includes feature vectors of video frames of legitimate videos, and the above feature vectors are clustered in the retrieval library, multiple feature clusters and the central feature vector of each feature cluster are obtained. Therefore, in the process of infringement detection of the video where the first video frame is located, the N feature clusters where the N central feature vectors with the smallest distance from the feature vector of the first video frame are located can be first determined in the retrieval library. Only in the above N feature clusters is it detected whether there is a feature vector that is relatively similar to the feature vector of the first video frame, without the need to detect in all feature clusters, which narrows the detection range and reduces the amount of data detected. In the case where there is a target feature vector with a high degree of similarity to the feature vector of the first video frame in the N feature clusters, the detection result of the first video frame is displayed in the result display area. The detection result can indicate that the video where the first video frame is located is likely to infringe on at least one legitimate video. Through the above-mentioned fast retrieval method, the efficiency of video frame detection and the efficiency of video infringement detection are improved.

[0084] Figure 3 is a flowchart of another video detection method provided in an embodiment of the present application, which is executed by a terminal, see Figure 3 , the method comprising:

[0085] 301. The terminal displays an infringement detection interface, which includes a video input area and a result display area.

[0086] In the embodiment of the present application, the terminal displays an infringement detection interface, which is used to detect infringement of the video. Since directly detecting the video during infringement detection consumes a lot of bandwidth resources and computing resources, in order to improve the efficiency of infringement detection and reduce the cost of infringement detection, infringement detection is usually performed through low-cost data such as the cover image of the video, any video frame in the video, or the video title.

[0087] The embodiment of the present application takes any video frame in a video as an example, and detects infringement of the video by detecting the video frame. The infringement detection interface displays a video input area and a result display area. The video input area is used to input the video to be detected, the cover image of the video, or any video frame in the video. The result display area can display the infringement detection result of the video. In the case where the video input area inputs any video frame in the video, the result display area can also display the detection result of the video frame. Among them, the detection result of the video frame can indicate the infringement detection result of the video. For example, in the case where the detection result of the video frame is that there is a video frame with a high degree of similarity to the input video frame, the infringement detection result of the video is that the video is likely to infringe the genuine video. In the case where the detection result of the video frame is that there is no video frame with a high degree of similarity to the input video frame, the infringement detection result of the video is that the infringement possibility of the video is small, and the video is a genuine video.

[0088] For example, Figure 4 FIG. 1 is a schematic diagram of an infringement detection interface. Figure 4 As shown, the infringement detection interface displays a video input area 401 and a result display area 402. The video input area 401 displays an upload control, and by triggering the upload control, the video to be detected, the cover image of the video, or any video frame in the video can be input. When the infringement detection is completed, the result display area 402 displays the detection result. Illustratively, the detection results are two genuine videos, genuine video 1 and genuine video 2, and an ID pair consisting of the video ID (Identity Document) and the ID of the genuine video. The detection result can indicate that the video may infringe the above two genuine videos.

[0089] In the process of detecting infringement of a video, a user may input a video to be detected in the video input area. A user may also determine any video frame in the video to be detected and input the video frame into the video input area. The video to be detected may also be obtained by a terminal, and the terminal determines any video frame in the video to be detected and inputs the video frame into the video input area. The embodiments of the present application do not limit this. Wherein, in the case where the video frame to be detected is determined by the terminal, the terminal may obtain the video according to the video link and use any video frame in the video as the video frame to be detected. Alternatively, the terminal may also directly obtain any video frame in the video according to the video link and use the downloaded video frame as the video frame to be detected, and the embodiments of the present application do not limit this.

[0090] 302. In response to a first video frame input in the video input area, the terminal determines the information entropy of the first video frame based on the grayscale values ​​of the pixels in the first video frame, the first video frame being any video frame in the video to be detected, and the information entropy is positively correlated with the uniformity of the distribution of the grayscale values ​​of the pixels in the first video frame.

[0091] In an embodiment of the present application, in response to a first video frame input into a video input area, the terminal performs infringement detection on the first video frame, thereby performing infringement detection on the video in which the first video frame is located. Before the terminal performs infringement detection on the first video frame, the terminal determines the information entropy of the first video frame. The information entropy of the video frame is positively correlated with the average amount of information contained in the video frame. The greater the information entropy of the video frame, the greater the average amount of information contained in the video frame; the less the information entropy of the video frame, the less the average amount of information contained in the video frame.

[0092] In the process of determining the information entropy of the first video frame, the terminal obtains the grayscale value of the pixel in the first video frame. The terminal determines the probability of occurrence of the grayscale value of each pixel in the first video frame. Among them, the probability of occurrence of the grayscale value of each pixel in the first video frame can represent the uniformity of the distribution of the grayscale value of the pixel in the first video frame. When the probability of occurrence of the grayscale value of each pixel is not much different, the distribution of the grayscale value of each pixel is relatively uniform. The terminal determines the information entropy of the first video frame by the following formula (1).

[0093]

[0094] Where H is the information entropy of the first video frame. i is the grayscale value of the pixel, and the value range of i is 0-255. i is the probability of the pixel with gray value i appearing. For example, in the first video frame, there are 1000 pixels, of which 100 pixels have a gray value of 60, then p 60 for b is the base of the logarithmic function. In some embodiments, b is 2.

[0095] In some embodiments, the terminal converts the first video frame into a grayscale image. The pixel value of a pixel in the grayscale image is the grayscale value of the pixel. The terminal counts the probability of occurrence of the grayscale value of each pixel in the first video frame according to the pixel value of each pixel in the grayscale image.

[0096] In some embodiments, before determining the information entropy of the first video frame, the terminal normalizes the size of the first video frame and can reduce the size of the first video frame to a preset size. The preset size may be a preset standard size, such as 224*224, 300*300 or 500*500, which is not limited in the embodiments of the present application. By reducing the size of the first video frame, the number of pixels in the first video frame can be reduced, thereby reducing the amount of calculation for calculating the information entropy. This improves the efficiency of video infringement detection.

[0097] 303. In response to the information entropy of the first video frame being not less than the information entropy threshold, the terminal extracts features from the first video frame to obtain a feature vector of the first video frame.

[0098] In the embodiment of the present application, after the terminal determines the information entropy of the first video frame, the terminal determines whether the information entropy of the first video frame is less than the information entropy threshold. In the case where the information entropy of the first video frame is less than the information entropy threshold, the first video frame is a video frame with low information entropy. Figure 5 is a schematic diagram of a video frame with low information entropy. Figure 5 As shown, video frames with low information entropy contain less average information. For example, blurred video frames, video frames containing only a few words, and video frames with large blank areas are all video frames with low information entropy. The accuracy of infringement detection for video frames containing a small average amount of information is low and is prone to false alarms. Therefore, the terminal determines the first video frame as an invalid video frame, and the terminal does not need to perform infringement detection on the invalid video frame. Excluding video frames with low information entropy during infringement detection can avoid wasting resources.

[0099] When the information entropy of the first video frame is not less than the information entropy threshold, the terminal performs infringement detection on the first video frame. The terminal extracts the feature vector of the first video frame through the feature extraction network. The feature extraction network can be MobileNetV3 (a lightweight neural network) or other neural networks, which is not limited in the present embodiment of the application. For example, Figure 6 is a schematic diagram of a first video frame. The terminal uses MobileNetV3 to Figure 6 The first video frame shown in FIG. 1 is subjected to feature extraction, and the following can be obtained: Figure 7 The 576-dimensional feature vector shown in Figure 1 is a 576-dimensional feature vector. Due to space limitations, Figure 7Only the first 32 dimensions of the feature vector are listed. In the vector space, the closer the distance between two vectors, the higher the similarity between the two vectors. Therefore, by detecting whether there is a feature vector with a high degree of similarity to the feature vector of the first video frame, the terminal can determine whether there is a target video frame with a high degree of similarity to the first video frame, thereby realizing infringement detection of the first video frame through the feature vector. By determining the information entropy of the first video frame, and only performing infringement detection on the first video frame when the information entropy of the first video frame is not lower than the information entropy threshold, resources consumed by infringement detection can be saved.

[0100] The following takes MobileNetV3 as an example of a feature extraction network to illustrate the process of extracting a feature vector of a first video frame by a terminal through MobileNetV3. Figure 8 This is a schematic diagram of a feature extraction network. Figure 8 As shown in the figure, the feature extraction network is MobileNetV3. The size of the input video frame of MobileNetV3 is 3*224*224, indicating that MobileNetV3 can process video frames of size 224*224 on three channels: R (Red), G (Green), and B (Blue). Figure 5 The convolution layer-batch normalization layer-activation function layer, bottleneck layer, average pooling layer and fully connected layer-batch normalization layer-activation function layer in the MobileNetV3 shown in the figure process the first video frame to obtain the feature vector of the first video frame. Among them, the activation function of the activation function layer in MobileNetV3 is the h-swish activation function. The bottleneck layer is the core module of MobileNetV3. The bottleneck layer adopts channel separable convolution, SE (Squeeze-and-Excitation) attention mechanism and residual network connection structure. Fig. 9 is a schematic diagram of a bottleneck layer. Fig. 9As shown in the figure, the bottleneck layer adopts channel-separable convolution. Channel-separable convolution includes cascaded point-by-point convolution layers and depth-wise convolution layers. In the bottleneck layer, the feature vector is first convolved by a convolution kernel of size 1*1 in the first point-by-point convolution layer, which can increase the dimension of the feature vector. Then, the feature vector is convolved by a convolution kernel of size 3*3 in the depth-wise convolution layer. The depth-wise convolution layer does not change the dimension of the feature vector during the convolution process. Then, the convolution kernel of size 1*1 is used to convolve in the second point-by-point convolution layer, which can reduce the dimension of the feature vector. In addition, there is an attention mechanism module between the depth-wise convolution layer and the second point-by-point convolution layer. The attention mechanism module can correct the feature vector extracted by the convolution layer. The valuable feature vectors are retained in the corrected feature vector, and the worthless feature vectors are eliminated. Therefore, by extracting the feature vector of the first video frame through the MobileNetV3 of the above structure, the receptive field of the extracted feature vector is larger, the generalization is better, and the expression ability is stronger while ensuring the feature extraction speed. That is, MobileNetV3 can extract more global and semantically higher-level feature vectors in the first video frame, thereby ensuring the accuracy and coverage of feature extraction.

[0101] Since MobileNetV3 is a neural network for image classification, the output result of MobileNetV3 is the category label of the input image. Therefore, the terminal can map the feature vector of the first video frame through the fully connected layer to obtain the category label of the first video frame. However, in the embodiment of the present application, only the feature vector of the first video frame needs to be extracted. Therefore, in the process of extracting the feature vector of the first video frame through MobileNetV3, the terminal can use the feature vector output by the penultimate layer of MobileNetV3, that is, the fully connected layer-batch normalization layer-activation function layer as the feature vector of the first video frame. The terminal no longer needs to process the feature vector of the first video frame through the fully connected layer to obtain the category label of the first video frame.

[0102] The following is an explanation of the process of training MobileNetV3 through image classification tasks. The training process can be divided into two parts: pre-training and formal training. In the pre-training process, MobileNetV3 is pre-trained through public image datasets, such as the ImageNet dataset. Sample images in the image dataset are processed by MobileNetV3 to obtain the category labels of the sample images. Then the training loss is determined based on the category labels of the sample images output by MobileNetV3 and the category labels annotated in the image dataset. Then MobileNetV3 is pre-trained based on the training loss. Among them, the ImageNet dataset includes about 1.28 million sample images and corresponding 1,000 category labels. Pre-training the model through a public image dataset can save manual annotation costs. In the formal training process, sample video frames in multiple video infringement detection scenarios are obtained. For example, the sample video frames can be video frames in genuine videos. Then the category labels of the sample video frames are manually annotated. Among them, the category labels include but are not limited to labels corresponding to categories such as variety shows, animation, dance, technology, food, games, music, film and television, information, animals, cars, fashion, sports, open classes, and virtual characters. MobileNetV3 is formally trained through multiple sample video frames and category labels of sample video frames in the video infringement detection scenario. The formal training process is the same as the pre-training process mentioned above, so it will not be repeated here.

[0103] It should be noted that the embodiment of the present application is described by taking the terminal performing feature extraction on the first video frame as an example. In some embodiments, the terminal may also send the first video frame to the server, and the server performs feature extraction on the first video frame to obtain a feature vector of the first video frame. The server sends the extracted feature vector of the first video frame to the terminal.

[0104] 304. The terminal determines, based on the feature vector of the first video frame, N feature clusters in a retrieval library whose central feature vector has the smallest distance to the feature vector of the first video frame, wherein the retrieval library includes multiple feature clusters and a central feature vector of each feature cluster, and the feature clusters are obtained by clustering feature vectors of video frames in the legitimate video, and N is a positive integer.

[0105] In the embodiment of the present application, the retrieval library includes feature vectors of video frames in multiple legitimate videos. The feature vectors are clustered in the retrieval library to obtain multiple feature clusters and the central feature vector of each feature cluster. The distance between the feature vectors in the feature cluster is small, and the feature vectors are also relatively similar. The central vector of the feature cluster is the most representative feature vector in the feature cluster, that is, the central feature vector is the average feature vector that can best reflect the multiple feature vectors in the feature cluster. Therefore, in the process of the terminal retrieving the feature vector that is relatively similar to the feature vector of the first video frame in the retrieval library, the terminal determines the distance between the feature vector of the first video frame and each central vector in the retrieval library. Then, the terminal determines the N central feature vectors with the smallest distance to the feature vector of the first video frame and the N feature clusters where the N feature vectors are located. Among them, N can be 20, 30 or 50, and the embodiment of the present application does not limit this. The above N central feature vectors are the N central feature vectors with the highest similarity to the feature vector of the first video frame. The feature vectors in the above N feature clusters are more similar to the feature vector of the first video frame than the feature vectors in other feature clusters in the retrieval library. Therefore, the terminal can detect whether there is a feature vector with a high degree of similarity to the feature vector of the first video frame only in the above N feature clusters, without having to detect in all feature clusters, which can narrow the detection range and reduce the amount of data detected.

[0106] In some embodiments, in the process of determining the distance between vectors, the terminal may determine the distance between vectors by calculating the inner product distance, Euclidean distance, Manhattan distance or Chebyshev distance between the vectors. The embodiments of the present application are not limited here.

[0107] For example, the search library includes 3000 feature clusters and the central feature vector of each feature cluster. The terminal can determine the inner product distance between the feature vector of the first video frame and the 3000 central feature vectors respectively through the following formula (2). The terminal determines the 30 central feature vectors with the smallest inner product distance and the 30 feature clusters where the 30 central feature vectors are located among the 3000 central feature vectors.

[0108]

[0109] Wherein, vector x is the feature vector of the first video frame, and vector y is any central feature vector. L is the inner product distance between vector x and vector y. · represents vector dot product. ||x|| is the norm of vector x. ||y|| is the norm of vector y.

[0110] 305. In response to at least one target feature vector existing in the N feature clusters, for any target feature vector, the terminal determines a second video frame, the second video frame being a video frame corresponding to the target feature vector, and a distance between the target feature vector and a feature vector of the first video frame being less than a first distance threshold.

[0111] In the embodiment of the present application, after the terminal determines N feature clusters in the search library, the terminal determines whether there is a target feature vector in the N feature clusters whose distance from the feature vector of the first video frame is less than a first distance threshold. In the case where there is at least one target feature vector, the terminal determines the second video frame corresponding to the target feature vector. The target feature vector is the feature vector obtained by extracting features from the second video frame.

[0112] 306. The terminal determines that the second video frame is an authentic video.

[0113] In an embodiment of the present application, the terminal determines the legitimate video where the second video frame is located among multiple legitimate videos. Among them, the terminal can establish an association relationship between the legitimate video, the selected video frame in the legitimate video, and the feature vector of the video frame in the process of extracting the feature vector of any video frame in the legitimate video. Accordingly, after determining the target feature vector, the terminal can determine the video frame corresponding to the target feature vector and the legitimate video where the target feature vector is located based on the above-mentioned association relationship. Alternatively, the terminal can also directly determine the legitimate video where the target feature vector is located based on the target feature vector. The embodiment of the present application does not limit this. By determining the legitimate video where the target feature vector that meets the retrieval condition is located, the legitimate video suspected of infringing the video can be determined relatively quickly, thereby realizing rapid infringement detection of the video.

[0114] In some embodiments, the terminal determines multiple target feature vectors. After the terminal determines multiple target vectors, it can determine whether to retain the target feature vector according to the similarity between video clips. For any target feature vector, the terminal determines the legitimate video clip in the legitimate video where the video frame corresponding to the target feature vector is located. Among them, the legitimate video clip includes the video frame corresponding to the target feature vector. The terminal can use the video frame corresponding to the target feature vector and the multiple continuous video frames before the video frame as the legitimate video clip. The terminal can also use the video frame corresponding to the target feature vector and the multiple continuous video frames after the video frame as the legitimate video clip. The terminal can also use the video frame corresponding to the target feature vector, the multiple continuous video frames before the video frame, and the multiple continuous video frames after the video frame as the legitimate video clip. The embodiment of the present application does not limit this. The terminal determines the video clip to be detected in the video, and the video clip to be detected includes the first video frame. Among them, the method of determining the video clip to be detected is the same as the method of determining the legitimate video clip described above, and will not be repeated here. The terminal retains the target feature vector when the similarity between the legitimate video clip and the video clip to be detected is not less than the first similarity threshold. Among them, the first similarity threshold can be a preset value, such as 70, 80 or 90, or a preset percentage, such as 70%, 80% or 90%, and the embodiment of the present application does not limit this. The more similar video frames there are between the legitimate video segment and the video segment to be detected, the higher the similarity between the two; the fewer similar video frames there are between the legitimate video segment and the video segment to be detected, the lower the similarity between the two. The terminal deletes the target feature vector when the similarity between the legitimate video segment and the video segment to be detected is less than the first similarity threshold. By determining the similarity between multiple consecutive video frames, deleting the target feature vector when the similarity is small, and retaining the target feature vector when the similarity is high, the accuracy of retrieval can be improved. It avoids the situation where a video is judged to infringe the legitimate video even if only one video frame is similar to the legitimate video.

[0115] In some embodiments, the terminal can also determine whether to retain the target feature vector according to the similarity between the audio segments. For any target feature vector, the terminal determines the legitimate audio segment in the legitimate video where the video frame corresponding to the target feature vector is located. Among them, the legitimate audio segment is the audio segment corresponding to the video frame corresponding to the target feature vector. The terminal determines the audio segment to be detected in the video, and the audio segment to be detected is the audio segment corresponding to the first video frame. The terminal retains the target feature vector when the similarity between the legitimate audio segment and the audio segment to be detected is not less than the second similarity threshold. Among them, the second similarity threshold can be a preset value, such as 70, 80 or 90, or a preset percentage, such as 70%, 80% or 90%, which is not limited in the embodiment of the present application. The terminal deletes the target feature vector when the similarity between the legitimate audio segment and the audio segment to be detected is less than the second similarity threshold. Through the similarity between the audio segments, the target feature vector is deleted when the similarity is small, and the target feature vector is retained when the similarity is high, the accuracy of the retrieval can be improved. This avoids the situation where a video is judged to be infringing upon the original video even though the video frames are similar to the original video but the audio is not similar.

[0116] 307. The terminal displays the detection result of the video in the result display area, and the detection result indicates that the video may infringe the copyright of at least one legitimate video.

[0117] In an embodiment of the present application, after the terminal determines at least one legitimate video corresponding to at least one target feature vector, it can be considered that the video may infringe the at least one legitimate video. The terminal displays the detection result of the video in the result display area of ​​the infringement detection interface. Among them, the detection result indicates that the video where the first video frame is located may infringe the at least one legitimate video. In some embodiments, the detection result includes the first video frame, the video frame corresponding to at least one target feature vector, and at least one legitimate video. The implementation of this application does not limit the displayed detection results. In some embodiments, the retrieval results also include the identifier of the video where the first video frame is located and the identifier of at least one legitimate video.

[0118] The above embodiment is a process of the terminal detecting infringement of the video through the retrieval library. The following takes the construction of the retrieval library by the terminal as an example to illustrate the process of the terminal constructing the retrieval library. In some embodiments, the terminal constructs the retrieval library through the feature vector of any video frame in the legitimate video. The terminal obtains any video frame in each legitimate video. Among them, the legitimate video can be a video in the legitimate video website provided by the customer of the video infringement detection service. Correspondingly, the terminal can access the legitimate video website through the website link provided by the customer, and obtain any video frame in the legitimate video on the legitimate video website. For any legitimate video among multiple legitimate videos, the terminal extracts features from any video frame in the legitimate video to obtain the feature vector of the legitimate video. Among them, the process of feature extraction is the same as the process of feature extraction in the above step 303, and will not be repeated here. The terminal clusters the feature vectors of multiple legitimate videos to obtain multiple feature clusters and the central feature vector of each feature cluster. Among them, the feature cluster includes feature vectors of multiple legitimate videos, and the feature vectors in each feature cluster are relatively similar. The terminal constructs a retrieval library based on multiple feature clusters, the central feature vector of each feature cluster, and the feature vectors of multiple legitimate videos. The search library includes multiple feature clusters, each of which includes a central feature vector and feature vectors of multiple legitimate videos with high similarity. The search library is constructed by clustering the feature vectors of multiple legitimate videos. When searching for feature vectors in the search library, some feature clusters can be determined in the search library first, and then search can be performed in some feature clusters, which can narrow the search scope and improve the search efficiency.

[0119] For example, the terminal can build a search library based on Faiss (a similarity search library). Faiss is a similarity search library for vector KNN (K nearest neighbor algorithm) search. In the process of building a search library based on Faiss, the search library is built through two-layer indexes, which can improve the speed of retrieval while ensuring the accuracy of retrieval. Since the training process of Faiss is unsupervised training, the terminal imports the feature vectors of multiple legitimate videos into Faiss, and then the feature vectors are clustered and indexed. For example, the terminal imports the feature vectors of multiple legitimate videos into Faiss. First, the feature vectors of all legitimate videos are clustered in Faiss to obtain the target number of feature clusters and the central feature vector of each feature cluster. Among them, the target number can be set by IVF (Inverted File System). For example, if IVF is 3000, clustering the feature vectors of all legitimate videos can obtain 3000 feature clusters. Then, a Flat index is generated. In the process of index generation, the first layer index is first generated, and the first layer index is used to indicate the corresponding relationship between the feature cluster and the central feature vector of the feature cluster. Then, a second-layer index is generated, which is used to indicate the correspondence between the feature cluster and multiple feature vectors in the feature cluster. After the search library is constructed, the terminal can quickly search for feature vectors with a high degree of similarity to the feature vector of the first video frame in the search library through the above two layers of indexes.

[0120] In some embodiments, the first video frame is the cover image of the video to be detected. The terminal constructs a retrieval library through the feature vectors of the cover images of multiple legitimate videos. For any legitimate video among the multiple legitimate videos, feature extraction is performed on the cover image of the legitimate video to obtain the feature vector of the legitimate video. The terminal clusters the feature vectors of the multiple legitimate videos to obtain multiple feature clusters and the central feature vector of each feature cluster. The terminal constructs a retrieval library based on the multiple feature clusters, the central feature vector of each feature cluster, and the feature vectors of multiple legitimate videos. By constructing a retrieval library through the cover image of the legitimate video, when the input first video frame is the cover image of the video, it is possible to determine whether the video infringes on the legitimate video by determining whether there is a cover image of the legitimate video with a high degree of similarity to the cover image of the video in the above-mentioned retrieval library.

[0121] In some embodiments, the terminal performs feature extraction on the cover image only when the information entropy of the cover image is not less than the information entropy threshold. The terminal determines the information entropy of the cover image based on the grayscale values ​​of the pixels in the cover image of the legitimate video. The information entropy is positively correlated with the uniformity of the distribution of the grayscale values ​​of the pixels in the cover image. Among them, the process of determining the information entropy is the same as the above-mentioned step 302, and will not be repeated here. In response to the information entropy being not less than the information entropy threshold, the terminal performs feature extraction on the cover image to obtain a feature vector of the legitimate video. By determining the information entropy of the cover image, and only extracting features from the cover image when the information entropy of the cover image is not less than the information entropy threshold, the efficiency of feature extraction for the cover images of multiple legitimate videos can be improved while ensuring that the feature vector of the extracted cover image is relatively accurate, thereby improving the efficiency of constructing the retrieval library.

[0122] In some embodiments, the terminal clusters the feature vectors of multiple legitimate videos by the distance between the feature vectors. The terminal determines the distance between the feature vectors of multiple legitimate videos. The terminal divides the feature vectors of multiple legitimate videos into different feature clusters according to the distance between the feature vectors of each legitimate video. Among them, the distance between the feature vectors in each feature cluster is not greater than the second distance threshold. For any feature cluster, the terminal determines the average feature vector of multiple feature vectors in the feature cluster, and takes the feature vector with the smallest distance from the average feature vector in the feature cluster as the central feature vector of the feature cluster. Among them, the average feature vector is obtained by averaging multiple feature vectors in the feature cluster. In the clustering process, by dividing the feature vectors with smaller distances into the same feature cluster, it can be ensured that the similarity between the feature vectors in each feature cluster is high, and the similarity between the feature vectors in different feature clusters is low. The feature vectors of multiple legitimate videos are classified. Among them, in the process of determining the distance between the vectors, the terminal can determine the distance between the vectors by calculating the inner product distance, Euclidean distance, Manhattan distance or Chebyshev distance between the vectors. The embodiments of the present application are not limited here.

[0123] It should be noted that the above embodiment is described by taking the terminal building the search library as an example. In some embodiments, the search library can also be built by the server, and the embodiment of the present application does not limit this.

[0124] In some embodiments, after the terminal constructs the search library, it determines the number of feature vectors in multiple feature clusters. Since the color and composition of the image are randomly distributed, it is usually not the case that a large number of feature vectors of similar images exist in a feature cluster. Unless there are a large number of cover images with fixed backgrounds, such as Fig.10 The game settlement page shown, Fig.11Similar title covers shown. Since the above-mentioned cover images with fixed backgrounds often belong to videos from different sources, they do not constitute infringement. In the process of infringement detection, the above-mentioned cover images with fixed backgrounds are usually retrieved incorrectly, which affects the accuracy of the retrieval. Therefore, the terminal deletes the feature vectors of the cover images with fixed backgrounds in the retrieval library to improve the accuracy of the retrieval. For any feature cluster, when the number of feature vectors in the feature cluster is greater than the quantity threshold, it indicates that the feature vector in the feature cluster is the feature vector of the cover image with fixed background. The terminal deletes the above-mentioned feature cluster and multiple feature vectors in the feature cluster from the retrieval library. By deleting the feature clusters whose number of feature vectors exceeds the set quantity threshold in the retrieval library, the feature vectors of the cover image with fixed background can be filtered out in the retrieval library, thereby improving the accuracy of the retrieval.

[0125] After the terminal constructs the retrieval library, it can detect infringement of the video through multiple feature clusters in the retrieval library and feature vectors of multiple legitimate videos in the feature clusters. Fig.12 FIG. 1 is a flow chart of a video detection. Fig.12 As shown, the terminal performs preprocessing such as normalizing and determining information entropy on the cover image of the legitimate video. Then, the terminal performs feature extraction on the cover image whose information entropy is not lower than the information entropy threshold to obtain the feature vector of the legitimate video. The terminal obtains multiple feature clusters and the central feature vector of each feature cluster by clustering the feature vectors of multiple legitimate videos. The terminal constructs a retrieval library based on the multiple feature clusters, the central feature vector of each feature cluster and the feature vectors of multiple legitimate videos. The terminal can also delete the feature clusters whose number of feature vectors in the retrieval library exceeds the set number threshold to update the retrieval library. Then, the terminal detects infringement of the video through the constructed retrieval library. The terminal uses the cover image of the video to be detected as the first video frame, and performs preprocessing such as row normalization and determining information entropy on the first video frame. When the information entropy of the first video frame is not lower than the information entropy threshold, the terminal extracts features from the first video frame to obtain the feature vector of the first video frame. Then, the terminal determines at least one target feature vector in the retrieval library with a high degree of similarity to the feature vector of the first video frame. The terminal uses the legitimate video where the at least one target feature vector is located as the retrieval result of the first video frame.

[0126] Fig.13 Flowchart of another video detection. Fig.13 The right side shows the process of building a retrieval library on the terminal. Fig.13 In the middle is the process of training the feature extraction model. Fig.13 The left side shows the process of the terminal detecting the video through the retrieval library. The process of building the retrieval library is the same as above. Fig.12 The process of building a retrieval library described in the corresponding text is similar to the process of detecting videos through the retrieval library. Fig.12The process of video detection introduced in the corresponding text is the same, so it will not be repeated here. The process of training the feature extraction model is the same as the process of training MobileNetV3 in the above step 303, so it will not be repeated here. It should be noted that, since two layers of indexes are generated in the process of building the retrieval library. Therefore, the terminal can quickly retrieve feature vectors with a high degree of similarity to the feature vector of the first video frame through the above two layers of indexes in the retrieval library. It can be seen from the experimental data that when the number of retrieval data reaches the order of millions, the time taken to retrieve by comparing images one by one is tens of seconds, and the time taken to retrieve the feature vector of a single image by using the above two layers of indexes is about 100ms, and the retrieval speed is increased by 99%. In addition, since the terminal deletes the feature clusters whose number of feature vectors exceeds the set number threshold in the retrieval library, it avoids false detection when retrieving cover images with fixed backgrounds, thereby improving the accuracy of the retrieval. It can be seen from the experimental data that compared with the ordinary retrieval method, the above method can increase the accuracy by 12.3%. In addition, by extracting feature vectors of video frames through feature extraction models, such as the MobileNetV3 model, compared with using pHash (perceptual hashing algorithm) to extract feature vectors, it is possible to ensure the accuracy of feature extraction while making the extracted feature vectors have a larger receptive field, better generalization, and more powerful expression ability. That is, through the feature extraction model, it is possible to extract feature vectors that are more global and have a higher semantic level, thereby ensuring the accuracy and coverage of feature extraction. It can be seen from experimental data that when the accuracy is 0.85, the coverage of feature vectors extracted by the feature extraction model is 0.85, while the coverage of feature vectors extracted by pHash is 0.59. Therefore, when the video detection method provided in the embodiment of the present application is applied to the video infringement detection scenario, 400,000 video pairs suspected of infringement (video pairs consisting of suspected infringing videos and infringed genuine videos) can be detected based on the cover image of the video, and the accuracy and coverage are both above 85%.

[0127] The embodiment of the present application provides a video detection method. Since the retrieval library includes feature vectors of video frames of legitimate videos, and the above feature vectors are clustered in the retrieval library, multiple feature clusters and the central feature vector of each feature cluster are obtained. Therefore, in the process of infringement detection of the video where the first video frame is located, the N feature clusters where the N central feature vectors with the smallest distance from the feature vector of the first video frame are located can be first determined in the retrieval library. Only in the above N feature clusters is it detected whether there is a feature vector that is relatively similar to the feature vector of the first video frame, without the need to detect in all feature clusters, which narrows the detection range and reduces the amount of data detected. In the case where there is a target feature vector with a high degree of similarity to the feature vector of the first video frame in the N feature clusters, the detection result of the first video frame is displayed in the result display area. The detection result can indicate that the video where the first video frame is located is likely to infringe on at least one legitimate video. Through the above-mentioned fast retrieval method, the efficiency of video frame detection and the efficiency of video infringement detection are improved.

[0128] Fig.14 is a structural diagram of a video detection device provided in an embodiment of the present application. Fig.14 The device includes: a first display module 1401, a first determination module 1402, a second determination module 1403 and a second display module 1404.

[0129] The first display module 1401 is used to display an infringement detection interface, which includes a video input area and a result display area;

[0130] A first determination module 1402 is used to determine, in response to a video input in the video input area, N feature clusters having the smallest distance between a central feature vector and a feature vector of a first video frame in the video in a search library based on a feature vector of the first video frame in the video, wherein the first video frame is any video frame in the video, the search library includes a plurality of feature clusters and a central feature vector of each feature cluster, the feature clusters are obtained by clustering feature vectors of video frames in the legitimate video, and N is a positive integer;

[0131] The second determination module 1403 is configured to determine, in response to the existence of at least one target feature vector in the N feature clusters, at least one legitimate video corresponding to the at least one target feature vector, wherein a distance between the target feature vector and a feature vector of the first video frame is less than a first distance threshold;

[0132] The second display module 1404 is used to display the detection result of the video in the result display area, and the detection result indicates that the video may infringe the copyright of at least one legitimate video.

[0133] In some embodiments, the second determination module is used to determine a second video frame for any target feature vector in response to the presence of at least one target feature vector in the N feature clusters, the second video frame being the video frame corresponding to the target feature vector; and determine the genuine video where the second video frame is located.

[0134] In some embodiments, Fig.15 is a schematic diagram of the structure of another video detection device provided in an embodiment of the present application, such as Fig.15 As shown, the device also includes:

[0135] A third determination module 1405 is used to determine the information entropy of the first video frame based on the grayscale values ​​of the pixels in the first video frame, where the information entropy is positively correlated with the uniformity of the distribution of the grayscale values ​​of the pixels in the first video frame;

[0136] The feature extraction module 1406 is configured to extract features from the first video frame in response to the information entropy of the first video frame being not less than an information entropy threshold, so as to obtain a feature vector of the first video frame.

[0137] In some embodiments, the first video frame is a cover image of the video, and the apparatus further comprises:

[0138] The feature extraction module 1406 is used to extract features of the cover image of any legitimate video among the multiple legitimate videos to obtain a feature vector of the legitimate video;

[0139] A clustering module 1407, used to cluster the feature vectors of multiple legitimate videos to obtain multiple feature clusters and a central feature vector of each feature cluster;

[0140] The construction module 1408 is used to construct a retrieval library based on multiple feature clusters, the central feature vector of each feature cluster, and the feature vectors of multiple legitimate videos.

[0141] In some embodiments, a construction module 1408 is used to determine the distance between feature vectors of multiple genuine videos; divide the feature vectors of multiple genuine videos into different feature clusters, and the distance between multiple feature vectors in the feature cluster is not greater than a second distance threshold; for any feature cluster, the feature vector with the smallest distance to the average feature vector in the feature cluster is used as the central feature vector of the feature cluster, and the average feature vector is obtained by averaging multiple feature vectors in the feature cluster.

[0142] In some embodiments, the feature extraction module 1406 is used to determine the information entropy of the cover image based on the grayscale values ​​of the pixels in the cover image of the legitimate video, and the information entropy is positively correlated with the uniformity of the distribution of the grayscale values ​​of the pixels in the cover image; in response to the information entropy being not less than the information entropy threshold, feature extraction is performed on the cover image to obtain a feature vector of the legitimate video.

[0143] In some embodiments, the apparatus further comprises:

[0144] The fourth determination module 1409 is used to determine the number of feature vectors in the plurality of feature clusters;

[0145] The deletion module 1410 is used to delete the feature cluster and the multiple feature vectors in the feature cluster from the search library when the number of feature vectors in the feature cluster is greater than the number threshold for any feature cluster.

[0146] In some embodiments, the feature extraction module 1406 is used to extract features from any video frame in any legitimate video among the multiple legitimate videos to obtain a feature vector of the legitimate video;

[0147] A clustering module 1407, used to cluster the feature vectors of multiple legitimate videos to obtain multiple feature clusters and a central feature vector of each feature cluster;

[0148] The construction module 1408 is used to construct a retrieval library based on multiple feature clusters, the central feature vector of each feature cluster, and the feature vectors of multiple legitimate videos.

[0149] In some embodiments, the target feature vector is multiple, and the device further includes:

[0150] A fifth determining module 1411 is configured to determine, for any target feature vector, a legitimate video segment in the legitimate video where the video frame corresponding to the target feature vector is located, wherein the legitimate video segment includes the video frame corresponding to the target feature vector;

[0151] A sixth determining module 1412 is used to determine a video segment to be detected in the video, where the video segment to be detected includes the first video frame;

[0152] A feature vector retaining module 1413, configured to retain a target feature vector when the similarity between the legitimate video segment and the video segment to be detected is not less than a first similarity threshold;

[0153] The feature vector deleting module 1414 is configured to delete the target feature vector when the similarity between the legitimate video segment and the video segment to be detected is less than a first similarity threshold.

[0154] In some embodiments, the apparatus further comprises:

[0155] A seventh determination module 1415 is used to determine, for any target feature vector, a legitimate audio segment in the legitimate video where the video frame corresponding to the target feature vector is located, where the legitimate audio segment is the audio segment corresponding to the video frame corresponding to the target feature vector;

[0156] An eighth determining module 1416 is configured to determine an audio segment to be detected in the video, where the audio segment to be detected is an audio segment corresponding to the first video frame;

[0157] A feature vector retaining module 1413, configured to retain a target feature vector when the similarity between the legitimate audio segment and the audio segment to be detected is not less than a second similarity threshold;

[0158] The feature vector deleting module 1414 is configured to delete the target feature vector when the similarity between the legitimate audio segment and the audio segment to be detected is less than a second similarity threshold.

[0159] The embodiment of the present application provides a video detection device. Since the retrieval library includes feature vectors of video frames of legitimate videos, and the above feature vectors are clustered in the retrieval library, multiple feature clusters and the central feature vector of each feature cluster are obtained. Therefore, in the process of infringement detection of the video where the first video frame is located, the N feature clusters where the N central feature vectors with the smallest distance from the feature vector of the first video frame are located can be first determined in the retrieval library. Only in the above N feature clusters is it detected whether there is a feature vector with a high degree of similarity to the feature vector of the first video frame, without the need to detect in all feature clusters, which narrows the detection range and reduces the amount of data detected. In the case where there is a target feature vector with a high degree of similarity to the feature vector of the first video frame in the N feature clusters, the detection result of the first video frame is displayed in the result display area. The detection result can indicate that the video where the first video frame is located has the possibility of infringement on at least one legitimate video. Through the above-mentioned fast retrieval method, the efficiency of video frame detection and the efficiency of video infringement detection are improved.

[0160] It should be noted that: the video detection device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the video detection device and video detection method embodiments provided in the above embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0161] An embodiment of the present application further provides a terminal, which includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the video detection method provided in the above embodiment.

[0162] Fig.16 It is a structural diagram of a terminal provided in an embodiment of the present application.

[0163] The terminal 1600 includes a processor 1601 and a memory 1602 .

[0164] The processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit, an interactor for image detection), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0165] The memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1602 is used to store at least one computer program, which is used by the processor 1601 to implement the video detection method provided in the method embodiment of the present application.

[0166] In some embodiments, the terminal 1600 may further optionally include: a peripheral device interface 1603 and at least one peripheral device. The processor 1601, the memory 1602 and the peripheral device interface 1603 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1603 via a bus, a signal line or a circuit board. Optionally, the peripheral device includes: at least one of a radio frequency circuit 1604, a display screen 1605, a camera assembly 1606, an audio circuit 1607 and a power supply 1608.

[0167] The peripheral device interface 1603 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1601 and the memory 1602. In some embodiments, the processor 1601, the memory 1602, and the peripheral device interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602, and the peripheral device interface 1603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0168] The radio frequency circuit 1604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1604 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1604 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1604 can communicate with other devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1604 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0169] The display screen 1605 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1605 is a touch display screen, the display screen 1605 also has the ability to collect touch signals on the surface or above the surface of the display screen 1605. The touch signal can be input to the processor 1601 as a control signal for processing. At this time, the display screen 1605 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1605 can be one, set on the front panel of the terminal 1600; in other embodiments, the display screen 1605 can be at least two, respectively set on different surfaces of the terminal 1600 or in a folding design; in other embodiments, the display screen 1605 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 1600. Even, the display screen 1605 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1605 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0170] The camera assembly 1606 is used to capture images or videos. Optionally, the camera assembly 1606 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal 1600, and the rear camera is arranged on the back of the terminal 1600. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1606 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0171] The audio circuit 1607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1601 for processing, or input them into the radio frequency circuit 1604 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1600. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1601 or the radio frequency circuit 1604 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1607 may also include a headphone jack.

[0172] The power supply 1608 is used to power various components in the terminal 1600. The power supply 1608 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1608 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0173] In some embodiments, the terminal 1600 further includes one or more sensors 1609 , including but not limited to: an acceleration sensor 1610 , a gyroscope sensor 1611 , a pressure sensor 1612 , an optical sensor 1613 , and a proximity sensor 1614 .

[0174] The acceleration sensor 1610 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1600. For example, the acceleration sensor 1610 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1601 can control the display screen 1605 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1610. The acceleration sensor 1610 can also be used for collecting game or user motion data.

[0175] The gyro sensor 1611 can detect the body direction and rotation angle of the terminal 1600, and the gyro sensor 1611 can cooperate with the acceleration sensor 1610 to collect the user's 3D actions on the terminal 1600. The processor 1601 can implement the following functions based on the data collected by the gyro sensor 1611: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0176] The pressure sensor 1612 can be set on the side frame of the terminal 1600 and / or the lower layer of the display screen 1605. When the pressure sensor 1612 is set on the side frame of the terminal 1600, it can detect the user's holding signal of the terminal 1600, and the processor 1601 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1612. When the pressure sensor 1612 is set on the lower layer of the display screen 1605, the processor 1601 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1605. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0177] The optical sensor 1613 is used to collect the ambient light intensity. In one embodiment, the processor 1601 can control the display brightness of the display screen 1605 according to the ambient light intensity collected by the optical sensor 1613. Optionally, when the ambient light intensity is high, the display brightness of the display screen 1605 is increased; when the ambient light intensity is low, the display brightness of the display screen 1605 is decreased. In another embodiment, the processor 1601 can also dynamically adjust the shooting parameters of the camera assembly 1606 according to the ambient light intensity collected by the optical sensor 1613.

[0178] The proximity sensor 1614, also called a distance sensor, is disposed on the front panel of the terminal 1600. The proximity sensor 1614 is used to collect the distance between the user and the front of the terminal 1600. In one embodiment, when the proximity sensor 1614 detects that the distance between the user and the front of the terminal 1600 is gradually decreasing, the processor 1601 controls the display screen 1605 to switch from the screen-on state to the screen-off state; when the proximity sensor 1614 detects that the distance between the user and the front of the terminal 1600 is gradually increasing, the processor 1601 controls the display screen 1605 to switch from the screen-off state to the screen-on state.

[0179] Those skilled in the art will understand that Fig.16 The structure shown in the figure does not constitute a limitation on the terminal 1600, and the terminal 1600 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0180] Fig.17It is a structural diagram of a server provided in an embodiment of the present application. The server 1700 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1701 and one or more memories 1702, wherein at least one computer program is stored in the memory 1702, and the at least one computer program is loaded and executed by the processor 1701 to implement the video detection method provided in the above-mentioned various method embodiments. Of course, the server 1700 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 1700 may also include other components for implementing device functions, which will not be repeated here.

[0181] An embodiment of the present application further provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the video detection method provided in the above embodiment.

[0182] The embodiment of the present application also provides a computer program product, including a computer program, which is loaded and executed by a processor to implement the video detection method provided in the above embodiment.

[0183] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program. The above program may be stored in a computer-readable storage medium, and the above storage medium may be a read-only memory, a disk or an optical disk, etc.

[0184] The above description is only an optional embodiment of the embodiments of the present application and is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.

Claims

1. A video detection method, characterized in that: The method comprises: Displaying an infringement detection interface, wherein the infringement detection interface includes a video input area and a result display area; In response to a video input in the video input area, based on a feature vector of a first video frame in the video, determining in a search library N feature clusters whose central feature vector has the smallest distance to a feature vector of the first video frame, wherein the first video frame is any video frame in the video, the search library includes a plurality of feature clusters and a central feature vector of each feature cluster, the feature clusters are obtained by clustering feature vectors of video frames in the legitimate video, and N is a positive integer; In response to at least one target feature vector existing in the N feature clusters, determining at least one legitimate video corresponding to the at least one target feature vector, wherein a distance between the target feature vector and a feature vector of the first video frame is less than a first distance threshold; The detection result of the video is displayed in the result display area, and the detection result indicates that the video may infringe the at least one legitimate video.

2. The method according to claim 1, characterized in that In response to at least one target feature vector existing in the N feature clusters, determining at least one legitimate video corresponding to the at least one target feature vector comprises: In response to at least one target feature vector existing in the N feature clusters, for any target feature vector, determining a second video frame, where the second video frame is a video frame corresponding to the target feature vector; Determine the legitimate video where the second video frame is located.

3. The method according to claim 1, characterized in that The method further comprises: Determine, based on the grayscale values ​​of the pixels in the first video frame, the information entropy of the first video frame, wherein the information entropy is positively correlated with the uniformity of the distribution of the grayscale values ​​of the pixels in the first video frame; In response to the information entropy of the first video frame being not less than an information entropy threshold, feature extraction is performed on the first video frame to obtain a feature vector of the first video frame.

4. The method according to claim 1, characterized in that The first video frame is a cover image of the video, and the method further includes: For any legitimate video among the multiple legitimate videos, feature extraction is performed on the cover image of the legitimate video to obtain a feature vector of the legitimate video; Clustering the feature vectors of multiple legitimate videos to obtain multiple feature clusters and a central feature vector of each feature cluster; The retrieval library is constructed based on the multiple feature clusters, the central feature vector of each feature cluster, and the feature vectors of the multiple legitimate videos.

5. The method according to claim 4, characterized in that The clustering of the feature vectors of the plurality of legitimate videos to obtain a plurality of feature clusters and a central feature vector of each feature cluster includes: Determining distances between feature vectors of the plurality of legitimate videos; Dividing the feature vectors of the plurality of legitimate videos into different feature clusters, wherein the distance between the plurality of feature vectors in the feature cluster is not greater than a second distance threshold; For any feature cluster, the feature vector with the smallest distance from the average feature vector in the feature cluster is used as the central feature vector of the feature cluster, and the average feature vector is obtained by averaging multiple feature vectors in the feature cluster.

6. The method according to claim 4, characterized in that For any legitimate video among the multiple legitimate videos, extracting features from the cover image of the legitimate video to obtain a feature vector of the legitimate video includes: Based on the grayscale values ​​of the pixels in the cover image of the legitimate video, determining the information entropy of the cover image, wherein the information entropy is positively correlated with the uniformity of the distribution of the grayscale values ​​of the pixels in the cover image; In response to the information entropy being not less than an information entropy threshold, feature extraction is performed on the cover image to obtain a feature vector of the legitimate video.

7. The method according to claim 4, characterized in that The method further comprises: determining the number of feature vectors in the plurality of feature clusters; For any feature cluster, when the number of feature vectors in the feature cluster is greater than a quantity threshold, the feature cluster and a plurality of feature vectors in the feature cluster are deleted from the search library.

8. The method according to claim 1, characterized in that The method further comprises: For any legitimate video among the multiple legitimate videos, feature extraction is performed on any video frame in the legitimate video to obtain a feature vector of the legitimate video; Clustering the feature vectors of the plurality of legitimate videos to obtain a plurality of feature clusters and a central feature vector of each feature cluster; The retrieval library is constructed based on the multiple feature clusters, the central feature vector of each feature cluster, and the feature vectors of the multiple legitimate videos.

9. The method according to claim 1, characterized in that: There are multiple target feature vectors, and the method further includes: For any target feature vector, determining an authentic video segment in the authentic video where the video frame corresponding to the target feature vector is located, the authentic video segment including the video frame corresponding to the target feature vector; Determining a video segment to be detected in the video, wherein the video segment to be detected includes the first video frame; When the similarity between the legitimate video segment and the video segment to be detected is not less than a first similarity threshold, retaining the target feature vector; When the similarity between the legitimate video segment and the video segment to be detected is less than the first similarity threshold, the target feature vector is deleted.

10. The method according to claim 1, characterized in that The method further comprises: For any target feature vector, determining a legitimate audio segment in the legitimate video where the video frame corresponding to the target feature vector is located, wherein the legitimate audio segment is the audio segment corresponding to the video frame corresponding to the target feature vector; Determining an audio segment to be detected in the video, where the audio segment to be detected is an audio segment corresponding to the first video frame; When the similarity between the legitimate audio segment and the audio segment to be detected is not less than a second similarity threshold, retaining the target feature vector; When the similarity between the legitimate audio segment and the audio segment to be detected is less than the second similarity threshold, the target feature vector is deleted.

11. A video detection device, characterized in that: The device comprises: A first display module, used to display an infringement detection interface, wherein the infringement detection interface includes a video input area and a result display area; A first determination module is used to respond to the video input in the video input area, and determine, based on the feature vector of a first video frame in the video, N feature clusters whose central feature vector has the smallest distance to the feature vector of the first video frame in a retrieval library, wherein the first video frame is any video frame in the video, the retrieval library includes a plurality of feature clusters and a central feature vector of each feature cluster, the feature clusters are obtained by clustering the feature vectors of the video frames in the legitimate video, and N is a positive integer; A second determination module is configured to determine, in response to at least one target feature vector existing in the N feature clusters, at least one legitimate video corresponding to the at least one target feature vector, wherein a distance between the target feature vector and a feature vector of the first video frame is less than a first distance threshold; The second display module is used to display the detection result of the video in the result display area, and the detection result indicates that the video may infringe the at least one legitimate video.

12. A computer device, characterized in that: The computer device includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the video detection method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the video detection method according to any one of claims 1 to 10.

14. A computer program product comprising a computer program, characterized in that The computer program is loaded and executed by a processor to implement the video detection method according to any one of claims 1 to 10.