Method and device for detecting video copy containing borders

By extracting key frame images from the video, removing solid color edges, extracting feature vectors, and establishing indexes, the problem of insufficient detection accuracy of videos containing borders in the existing technology is solved, and accurate detection and position determination of copied segments in the video are achieved. , improving the accuracy and efficiency of video processing.

CN113971770BActive Publication Date: 2024-10-29北京中科闻歌科技股份有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010648949.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-07
Publication Date
2024-10-29
Estimated Expiration
2040-07-07

AI Technical Summary

Technical Problem

The existing technology has insufficient accuracy when detecting videos containing borders, especially when processing special videos such as black frames, white frames, and blue frames with large areas around the video, which affects the effect of video processing and analysis.

Method used

By extracting key frame images from the sample video, and traversing from the outside to the inside based on the image edges to remove the solid color pixel areas, an image with non-solid color pixels as edges is obtained; the image is traversed twice to remove areas where the number of solid color pixels is greater than the threshold. Extract image features and establish multi-dimensional image feature vectors, establish indexes based on these feature vectors and vectors in the video library, and integrate and copy video frame images to achieve accurate detection.

Benefits of technology

It achieves accurate detection of multiple copied video clips in videos containing borders, and determines the exact location of copied video clips in the original video, improving the accuracy and efficiency of video processing and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113971770B_ABST
    Figure CN113971770B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and device for detecting video copy containing a border. The method comprises: extracting a plurality of first key frame images from a sample video; traversing the first key frame images from the outside to the inside based on the image edge, removing the pure color pixel point area, and obtaining a plurality of second key frame images with non-pure color pixel points as the edge; traversing the second key frame images twice, and removing the image area with the number of pure color pixel points greater than a first threshold; extracting image features from each second key frame image, and obtaining a plurality of first multi-dimensional image feature vectors; establishing indexes based on the plurality of first multi-dimensional image feature vectors and a plurality of second multi-dimensional image feature vectors of a video stored in a video library, and obtaining a plurality of copied video frame images; integrating the plurality of copied video frame images according to time information, and obtaining copied video segments, thereby realizing accurate detection of a plurality of copied video segments existing in a video, and determining their positions in the original video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer vision, and in particular to a method and device for detecting video copies including a frame. Background Art

[0002] In recent years, with the rapid development of Internet technology and multimedia technology, a huge number of videos are uploaded to the Internet every day. The sharp increase in video data has created tremendous pressure on video data management. Moreover, among the massive amount of video data, a considerable amount of video content is repeated or similar.

[0003] Currently, the existing technology monitors, copyright protects, deduplicates and analyzes these duplicate videos through optical transformation, geometric transformation or time transformation. However, due to the diversity of videos and the uncertainty of detection methods, some special videos, such as special videos with large areas of black frames, white frames, blue frames or other borders around the videos, seriously affect the accuracy of video processing and analysis by existing technologies. Summary of the invention

[0004] In view of this, in order to solve the above-mentioned problem of inaccuracy in detecting a copy of a special video including a border, an embodiment of the present invention provides a method and apparatus for detecting a copy of a video including a border.

[0005] In a first aspect, an embodiment of the present invention provides a method for detecting a video copy including a border, comprising:

[0006] Extracting a plurality of first key frame images from a sample video;

[0007] Based on the image edge, multiple first key frame images are traversed from outside to inside until non-pure color pixels appear, and all traversed pure color pixel areas are removed to obtain a second key frame image with multiple non-pure color pixels as edges;

[0008] Performing a second traversal on the plurality of second key frame images, removing image regions where the number of pure color pixels is greater than a first threshold, and obtaining a plurality of processed second key frame images;

[0009] Extracting a plurality of corresponding image features from each of the second key frame images, and determining a multidimensional image feature vector corresponding to each of the second key frame images, to obtain a plurality of first multidimensional image feature vectors corresponding to the plurality of second key frame images;

[0010] Establishing an index based on the plurality of first multi-dimensional image feature vectors and a plurality of second multi-dimensional image feature vectors corresponding to the library videos stored in the video library, and acquiring a plurality of copied video frame images;

[0011] According to the time information corresponding to the multiple copied video frame images, the multiple copied video frame images are integrated to obtain a copied video segment.

[0012] In a possible implementation, the method further includes:

[0013] Based on visual saliency, extracting a plurality of key frame images from the sample video according to time sequence information;

[0014] Extracting corresponding multiple feature information from each of the key frame images to form a feature vector, thereby obtaining multiple feature vectors corresponding to the multiple key frame images;

[0015] The similarities of the plurality of feature vectors are compared in sequence, and the plurality of key frame images corresponding to the plurality of feature vectors having similarities lower than a second threshold are retained to obtain a plurality of first key frame images.

[0016] In a possible implementation, the method further includes:

[0017] Extracting a plurality of corresponding image features from each of the second key frame images based on a grayscale image feature extraction method;

[0018] Based on the multiple image features, a multidimensional image feature vector corresponding to each of the second key frame images is determined through a deep neural network, thereby obtaining multiple first multidimensional image feature vectors corresponding to multiple second key frame images.

[0019] In a possible implementation, the method further includes:

[0020] Based on the Hash structure, indexes are created for the plurality of first multi-dimensional image feature vectors and the plurality of second multi-dimensional image feature vectors to detect copied video segments.

[0021] In a possible implementation, the method further includes:

[0022] Based on the time alignment method of the sliding window, the plurality of copied video frame images are sequentially integrated according to the time information to obtain a copied video segment.

[0023] In a second aspect, an embodiment of the present invention provides a video copy detection device including a border, comprising:

[0024] An acquisition module, used for extracting a plurality of first key frame images from a sample video;

[0025] A processing module, configured to traverse the plurality of first key frame images from outside to inside based on the image edge until non-pure color pixels appear, remove all traversed pure color pixel regions, and obtain a second key frame image with a plurality of non-pure color pixels as edges;

[0026] The processing module is further used to perform a second traversal on the plurality of second key frame images, remove image regions where the number of pure color pixels is greater than a first threshold, and obtain a plurality of processed second key frame images;

[0027] A calculation module, used to extract a plurality of corresponding image features from each of the second key frame images, and determine a multi-dimensional image feature vector corresponding to each of the second key frame images, to obtain a plurality of first multi-dimensional image feature vectors corresponding to a plurality of the second key frame images;

[0028] A detection module, configured to establish an index based on the plurality of first multi-dimensional image feature vectors and a plurality of second multi-dimensional image feature vectors corresponding to the library videos stored in the video library, and obtain a plurality of copied video frame images;

[0029] The determination module is used to integrate the multiple copied video frame images according to the time information corresponding to the multiple copied video frame images to obtain a copied video segment.

[0030] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a processor and a memory, wherein the processor is used to execute a video copy detection program stored in the memory to implement the video copy detection method described in any one of the first aspects above.

[0031] In a fourth aspect, an embodiment of the present invention provides a storage medium, including: the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the video copy detection method described in any one of the first aspects above.

[0032] The video copy detection solution for border-containing video provided by the embodiment of the present invention extracts a plurality of first key frame images from a sample video; traverses the plurality of first key frame images from the outside to the inside based on the image edge until non-pure color pixels appear, removes all traversed pure color pixel areas, and obtains a plurality of second key frame images with non-pure color pixels as edges; traverses the plurality of second key frame images a second time, removes image areas with a number of pure color pixels greater than a first threshold, and obtains a plurality of processed second key frame images; extracts a plurality of corresponding image features from each of the second key frame images, and determines the corresponding A multi-dimensional image feature vector is obtained to obtain a plurality of first multi-dimensional image feature vectors corresponding to the plurality of second key frame images; an index is established based on the plurality of first multi-dimensional image feature vectors and the plurality of second multi-dimensional image feature vectors corresponding to the library videos stored in the video library to obtain a plurality of copied video frame images; according to the time information corresponding to the plurality of copied video frame images, the plurality of copied video frame images are integrated to obtain copied video segments. By this method, it is possible to accurately detect a plurality of copied video segments existing in a video containing a border, and determine the exact position of the copied video segments in the original video, so as to facilitate subsequent processing and analysis operations on the video. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A basic framework diagram of a method for detecting video copy including borders provided by an embodiment of the present invention;

[0034] Figure 2 A schematic flow chart of a method for detecting a video copy including a border provided by an embodiment of the present invention;

[0035] Figure 3 A schematic flow chart of another method for detecting video copy including a border provided by an embodiment of the present invention;

[0036] Figure 4 A schematic diagram of the structure of a video copy detection device including a frame provided by an embodiment of the present invention;

[0037] Figure 5 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention;

[0038] Figure 6 A schematic diagram of video data with transparent color borders on both sides provided by an embodiment of the present invention;

[0039] Figure 7 A schematic diagram of video data with black borders on both sides provided by an embodiment of the present invention;

[0040] Figure 8A schematic diagram of video data with blue borders on both sides provided by an embodiment of the present invention;

[0041] Fig. 9 A schematic diagram of video data with white borders on both sides provided by an embodiment of the present invention;

[0042] Fig.10 A schematic diagram of video data provided by an embodiment of the present invention with black frames on both sides and the black frame parts containing subtitles and LOGO;

[0043] Fig.11 A schematic diagram of a video key frame image feature extraction process provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0046] Figure 1 A basic framework diagram of a method for detecting video copy including a border provided by an embodiment of the present invention, such as Figure 1 As shown:

[0047] This scheme performs copy detection on sample videos and library videos in a video library. First, the video key frames are extracted, that is, a frame sequence containing important information in the video is obtained; then the video key frames are pre-transformed, that is, the invalid areas in the key frames extracted in the previous step are removed; then the key frames in the video are feature extracted, that is, the corresponding feature vectors are extracted from the video key frames, and a frame feature or video feature set is formed after a certain processing; then an index is established for the obtained frame features or video features in order to achieve more efficient retrieval; finally, the time information in the video is used to integrate the copied video frames into copied segments, and a time alignment operation is performed. After completing the time alignment operation, the copied video segments can be obtained.

[0048] It should be noted that the copy detection video targeted by this solution is a special video with a large black frame, white frame or other solid color frame around the video, and the frame part contains LOGO, subtitles, etc., such as Figure 6 A video with transparent borders on both sides, Figure 7 A video with black borders on both sides, Figure 8 A video with blue borders on both sides, Fig. 9 A video with white borders on both sides or Fig.10 The video shown has black frames on both sides, and the black frame parts contain subtitles and LOGO.

[0049] This solution is aimed at new media video data. The video copy detection method containing borders in this solution can improve the accuracy and speed of video copy detection containing borders, and can better serve the tasks of video copy detection, video reprinting and citation, and video dissemination influence analysis.

[0050] Figure 2 A flowchart of a method for detecting a video copy including a border provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method specifically includes:

[0051] S21. Extract multiple first key frame images from a sample video.

[0052] The sample video is segmented into shots, and then the main content of each shot is determined. A plurality of key frame images representing the content of the shot are extracted from each shot according to the video image sequence, and finally a plurality of first key frame images are obtained.

[0053] S22. Traverse the plurality of first key frame images from the outside to the inside based on the edge of the image until non-pure color pixels appear, remove all traversed pure color pixel areas, and obtain a second key frame image with a plurality of non-pure color pixels as edges. In the embodiment of the present invention, the plurality of first key frame images obtained as above are transformed. First, all pure color pixels in the image are traversed from the outside to the inside from the four edges of the image, until non-pure color pixels appear, and the area composed of all pure color pixels is removed to obtain a second key frame image with a plurality of non-pure color pixels as edges, that is, find the approximate outline representing the key image in the first key frame image. For example, Figure 6 The video frame image with transparent borders on both sides is shown. First, the top, bottom, left and right edges of the image are determined. Then, all the pure color pixels in the image are traversed from the outside to the inside along the four edges until a non-pure color pixel is traversed. The pure color pixel area is cropped. In this figure, the transparent border part is cropped, and finally the borderless part where the person in the figure below is located is retained.

[0054] S23, performing a second traversal of the plurality of second key frame images, removing image regions where the number of pure color pixels is greater than a second threshold, and obtaining a plurality of processed second key frame images.

[0055] Re-traverse the number of pure color and continuous pixels in multiple second key frame images. If the number of pure color and continuous pixels is lower than the threshold, save the cropped key frame. If the number of pure color and continuous pixels is higher than the threshold, perform image cropping operations on these pure color continuous key frame areas to remove these pure color continuous areas.

[0056] S24. Extracting a plurality of corresponding image features from each of the second key frame images, and determining a multidimensional image feature vector corresponding to each of the second key frame images, to obtain a plurality of first multidimensional image feature vectors corresponding to the plurality of second key frame images.

[0057] Image information is extracted from the multiple second key frame images obtained above by using a computer, the image information including color information, texture information, shape information or spatial relationship information, etc., and whether the color features, texture features, shape features or spatial relationship features in the image are important features of the image is determined from the image information. After the important image features are screened out, all features corresponding to each second key frame are converted into a multi-dimensional image feature vector, thereby obtaining multiple first multi-dimensional image feature vectors corresponding to all the second key frame images.

[0058] S25. Establish an index based on the plurality of first multi-dimensional image feature vectors and a plurality of second multi-dimensional image feature vectors corresponding to the library videos stored in the video library, and obtain a plurality of copied video frame images.

[0059] In order to quickly find out whether the video frame images in the sample video and the video frame images in the library video are copied from each other, it is necessary to index multiple of the first multidimensional image feature vectors and multiple second multidimensional image feature vectors corresponding to the library videos stored in the video library. The use of an efficient index structure can improve the speed of video copy detection and achieve the purpose of fast retrieval.

[0060] S26 . Integrate the plurality of copied video frame images according to time information corresponding to the plurality of copied video frame images to obtain a copied video segment.

[0061] According to the corresponding time information in the original video of each mutually copied video frame image in the detected sample video and the library video, the video frame images are integrated using a preset method to finally obtain an integrated copy video segment.

[0062] The embodiment of the present invention provides a video copy detection solution for containing borders, which extracts multiple first key frame images from a sample video; traverses the multiple first key frame images from the outside to the inside based on the image edge until non-pure color pixels appear, removes all traversed pure color pixel areas, and obtains multiple second key frame images with non-pure color pixels as edges; traverses the multiple second key frame images twice, removes image areas with the number of pure color pixels greater than a first threshold, and obtains multiple processed second key frame images; extracts multiple corresponding image features from each of the second key frame images, and determines each of the second key frame images. The corresponding multi-dimensional image feature vector is obtained to obtain multiple first multi-dimensional image feature vectors corresponding to multiple second key frame images; an index is established based on multiple first multi-dimensional image feature vectors and multiple second multi-dimensional image feature vectors corresponding to library videos stored in the video library to obtain multiple copied video frame images; according to the time information corresponding to the multiple copied video frame images, the multiple copied video frame images are integrated to obtain copied video fragments. This method can realize accurate detection of multiple copied video fragments in the video and determine the exact position of the copied video fragments in the original video, which is convenient for subsequent processing and analysis operations on the video.

[0063] Figure 3 A flowchart of another method for detecting a video copy including a border provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method specifically includes:

[0064] S31. Extracting a plurality of key frame images from the sample video according to time sequence information based on visual saliency.

[0065] In the embodiment of the present invention, an intelligent algorithm of visual saliency is used to simulate human visual characteristics, perform sequence detection on sample videos, mark salient areas in video frame images, and then multiply the original image with the saliency image to extract multiple key frame images in the video that are easy to attract people's attention.

[0066] S32: extracting corresponding multiple feature information from each of the key frame images to form a feature vector, thereby obtaining multiple feature vectors corresponding to the multiple key frame images.

[0067] In order to quantitatively describe the data information contained in the key frame image, the texture features of the original image, the color features of the multiplication result image, and the motion information of the saliency image are extracted respectively, and the features are fused to obtain multiple feature vectors corresponding to each key frame image.

[0068] S33 , comparing the similarities of the plurality of feature vectors in sequence, retaining a plurality of key frame images corresponding to the plurality of feature vectors whose similarities are lower than a second threshold, and obtaining a plurality of first key frame images.

[0069] The similarity of the feature vectors corresponding to each key frame image is compared in turn, and a plurality of candidate key frame images with small similarity and large difference are obtained by calculating the similarity between the feature vectors of the key frame images.

[0070] Furthermore, two-layer processing and clustering operations are performed on the obtained candidate key frame images to obtain a set number of first key frame images while maintaining the temporal sequence of the original video.

[0071] S34, traversing the plurality of first key frame images from outside to inside based on the image edge until non-pure color pixels appear, removing all traversed pure color pixel areas, and obtaining a second key frame image with a plurality of non-pure color pixels as edges.

[0072] Specifically, the coordinate positions of the top, bottom, left and right points of each frame image are first determined, and then all pure color pixels in the image are traversed from the outside to the inside with the four points as the starting point, until the non-pure color pixels are traversed. Finally, the non-pure color pixels are used as new boundary points, the key frame area inside the non-pure color pixels is retained, and the traversed pure color pixel area is cropped to obtain a second key frame image with multiple non-pure color pixels as edges.

[0073] For example, Figure 7 The video frame image with black borders on both sides is shown. First, determine the coordinates of the top, bottom, left, and right points of the image. Then, start from the four points and traverse all the pure color pixels in the image from the outside to the inside until you reach a non-pure color pixel. Crop the black pure color pixel area. This figure is to crop the black border part, and finally keep the borderless part where the person in the figure below is located.

[0074] S35 , performing a second traversal of the plurality of second key frame images, removing image regions where the number of pure color pixels is greater than a first threshold, and obtaining a plurality of processed second key frame images.

[0075] Re-traverse the number of pure color and continuous pixels in multiple second key frame images, if the number of pure color and continuous pixels is lower than the first threshold, save the cropped key frame; if the number of pure color and continuous pixels is higher than the first threshold, perform intra-region image cropping operations on these pure color continuous key frame areas to remove these pure color continuous areas.

[0076] First, the multiple second key frame images obtained after the above cropping are converted into grayscale images using a preset algorithm; then the Sobel operator is used to calculate the gradients in the x and y directions, and the gradient in the y direction is subtracted from the gradient in the x direction. The image area with high horizontal gradient and low vertical gradient is retained through the subtraction operation; then the image is denoised and the image is smoothed using a low-pass filter. The purpose of this step is to reduce the rate of change of the image, replace the area with obvious intensity changes with smoothing, and binarize the blurred image; then the black vacant part after the previous step is filled with white; after the previous step, the image will be Some small white spots appear, which can easily interfere with the object detection of the image. These white spots need to be removed. Six morphological corrosion and expansion operations are performed respectively. The contours of the non-pure color continuous areas in the image are found, and the key frames are converted into binary images. The outer contours of the key frames are detected according to the color of the key frame contour lines, the thickness of the lines and other features, and the rectangular area with the minimum area of ​​the point set is obtained. The detected area is cropped, and the coordinates of the four vertices of the detected rectangular area are calculated. The maximum and minimum values ​​of the x and y coordinates of the four vertices are found, and the height of the new image is calculated by the following formulas 1 and 2. new-image and width new-image .

[0077] height new-image =y max -y min (Formula 1)

[0078] width new-image =x max -x min (Formula 2)

[0079] S36. Extracting a plurality of corresponding image features from each of the second key frame images based on a grayscale image feature extraction method.

[0080] The method for extracting features based on grayscale frame images first converts each second key frame image into a grayscale image; then sets an m*n rectangular block to divide each second key frame image into multiple small rectangular blocks; secondly calculates the average grayscale value of each rectangular block area of ​​each second key frame image, and then stores the grayscale value of each rectangular block in sequence to form grayscale-based key frame image features, and extracts grayscale-based key frame image features.

[0081] S37. Based on the multiple image features, determine the multidimensional image feature vector corresponding to each of the second key frame images through a deep neural network, and then obtain multiple first multidimensional image feature vectors corresponding to multiple second key frame images.

[0082] In the convolutional neural network structure, the visual layer input of the multi-layer structure network is the small rectangular blocks divided into key frame images. In the convolution layer, the local features of the image are extracted through a set of filters and nonlinear layer transformations. The input image is convolved through multiple trainable filters and addable biases. After convolution, a feature map is generated in the convolution layer, and then the pixels of each group in the feature map are summed, weighted, and biased. The feature maps of multiple sampling layers are obtained through a Sigmoid function. The specific calculation process is shown in the following formula 3:

[0083]

[0084] Among them, M j is the feature map set input to this layer, t represents the current number of convolutional layers, represents the feature vector output by the jth neuron in the sampling layer, represents the output of the i-th neuron in the previous convolutional layer, represents the connection threshold between the i-th neuron in the previous convolutional layer and the j-th neuron in this layer. The bias added by this process is Through the activation function f.

[0085] In the sampling layer, pooling is used to reduce the dimension of the feature vector of the convolution layer to improve the expressive power of the features. These feature maps are then filtered to obtain the next convolution layer. The hierarchical structure repeats the same calculation process as the sampling layer for each map to generate the next sampling layer. Finally, these pixel values ​​are rasterized and connected into a vector input to the neural network to obtain multiple first multidimensional image feature vectors corresponding to multiple second key frame images, as shown in the following formula 4:

[0086]

[0087] Where n represents the window width from the convolutional layer to the sampling layer.

[0088] This scheme adopts Fig.11 The figure shows a schematic diagram of a video frame image feature extraction process based on grayscale video frame image feature extraction and a video frame image feature extraction algorithm based on a deep neural network.

[0089] S38. Based on a Hash structure, index the plurality of first multi-dimensional image feature vectors and the plurality of second multi-dimensional image feature vectors to detect copied video clips.

[0090] For the comparison of video features, the total feature quantity is very large. If one-to-one matching is performed by enumeration, the retrieval efficiency will be very low, and it is difficult to meet the large-scale video adoption calculation. In order to achieve the purpose of fast retrieval, an efficient index structure can be used. This solution uses a hash structure to establish indexes and feature matching for multiple first multi-dimensional image feature vectors obtained from sample videos and multiple second multi-dimensional image feature vectors obtained from library videos in the video library, thereby improving the speed of video copy detection and achieving the purpose of fast retrieval.

[0091] S39: Based on a sliding window time alignment method, the plurality of copied video frame images are sequentially integrated according to time information to obtain a copied video segment.

[0092] Time alignment is an operation performed in the local video copy detection task to determine the video segments copied between two videos. This scheme adopts a sliding window-based time alignment algorithm to integrate video frame images and finally obtain the integrated copied video segments.

[0093] The embodiment of the present invention provides a video copy detection solution for containing borders, which extracts multiple first key frame images from a sample video; transforms the multiple first key frame images to obtain multiple processed second key frame images; extracts multiple corresponding image features from each of the second key frame images, and determines the multidimensional image feature vector corresponding to each of the second key frame images to obtain multiple first multidimensional image feature vectors corresponding to the multiple second key frame images; establishes an index based on the multiple first multidimensional image feature vectors and the multiple second multidimensional image feature vectors corresponding to the library videos stored in the video library to obtain multiple copied video frame images; integrates the multiple copied video frame images according to the time information corresponding to the multiple copied video frame images to obtain copied video clips. By this method, a large number of special long video and short video data containing borders can be processed simultaneously, multiple copied video clips existing in the video can be accurately detected, and the preparation position of the copied video clips in the original video can be determined, so as to facilitate subsequent processing and analysis operations on the video.

[0094] Figure 4 A schematic diagram of a structure of a video copy detection device including a frame provided by an embodiment of the present invention specifically includes:

[0095] An acquisition module 401 is used to extract a plurality of first key frame images from a sample video;

[0096] Processing module 402, configured to traverse the plurality of first key frame images from outside to inside based on the image edge until non-pure color pixels appear, remove all traversed pure color pixel regions, and obtain a second key frame image with a plurality of non-pure color pixels as edges;

[0097] The processing module 402 is further used to perform a second traversal on the plurality of second key frame images, remove image regions where the number of pure color pixels is greater than a first threshold, and obtain a plurality of processed second key frame images;

[0098] A calculation module 403 is used to extract a plurality of corresponding image features from each of the second key frame images, and determine a multi-dimensional image feature vector corresponding to each of the second key frame images, so as to obtain a plurality of first multi-dimensional image feature vectors corresponding to the plurality of second key frame images;

[0099] A detection module 404 is used to establish an index based on the plurality of first multi-dimensional image feature vectors and a plurality of second multi-dimensional image feature vectors corresponding to the library videos stored in the video library, and obtain a plurality of copied video frame images;

[0100] The determination module 405 is used to integrate the multiple copied video frame images according to the time information corresponding to the multiple copied video frame images to obtain a copied video segment.

[0101] The acquisition module is specifically used to extract multiple key frame images from the sample video based on visual saliency and according to timing information; extract corresponding multiple feature information from each of the key frame images to form a feature vector, and obtain multiple feature vectors corresponding to the multiple key frame images; compare the similarities of the multiple feature vectors in turn, retain the multiple key frame images corresponding to the multiple feature vectors whose similarities are lower than a second threshold, and obtain multiple first key frame images.

[0102] The computing module is specifically used to extract corresponding multiple image features from each of the second key frame images based on a grayscale image feature extraction method; based on the multiple image features, determine the multidimensional image feature vector corresponding to each of the second key frame images through a deep neural network, and then obtain multiple first multidimensional image feature vectors corresponding to multiple second key frame images.

[0103] The detection module is specifically used to establish indexes for the plurality of first multi-dimensional image feature vectors and the plurality of second multi-dimensional image feature vectors based on a hash structure, and detect copied video clips.

[0104] The determination module is specifically used to integrate the plurality of copied video frame images in sequence according to time information based on a time alignment method of a sliding window to obtain a copied video segment.

[0105] The video copy detection device provided in this embodiment for containing a frame can be as follows Figure 4 A video copy detection device for a video containing a border as shown in FIG. Figure 2-3All steps of a video copy detection method including a border are implemented Figure 2-3 The technical effect of a method for detecting video copies containing borders is shown in FIG. Figure 2-3 For the sake of brevity, the relevant description is not repeated here.

[0106] Figure 5 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention, Figure 5 The computer device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the computer device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not described in detail. Figure 4 Various buses are labeled as bus system 505 .

[0107] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0108] It can be understood that the memory 502 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0109] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .

[0110] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 5022.

[0111] In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:

[0112] Extract multiple first key frame images from a sample video; traverse the multiple first key frame images from the outside to the inside based on the image edge until non-pure color pixels appear, remove all traversed pure color pixel areas, and obtain multiple second key frame images with non-pure color pixels as edges; traverse the multiple second key frame images twice, remove the image areas where the number of pure color pixels is greater than a first threshold, and obtain multiple processed second key frame images; extract the corresponding multiple image features from each of the second key frame images, and determine the multidimensional image feature vector corresponding to each of the second key frame images, and obtain multiple first multidimensional image feature vectors corresponding to the multiple second key frame images; establish an index based on the multiple first multidimensional image feature vectors and the multiple second multidimensional image feature vectors corresponding to the library videos stored in the video library, and obtain multiple copy video frame images; integrate the multiple copy video frame images according to the time information corresponding to the multiple copy video frame images to obtain a copy video clip.

[0113] In one possible implementation, based on visual saliency, multiple key frame images are extracted from the sample video according to timing information; corresponding multiple feature information is extracted from each of the key frame images to form a feature vector, thereby obtaining multiple feature vectors corresponding to the multiple key frame images; the similarities of the multiple feature vectors are compared in turn, and the multiple key frame images corresponding to the multiple feature vectors whose similarities are lower than a second threshold are retained to obtain multiple first key frame images.

[0114] In one possible implementation, based on a grayscale image feature extraction method, corresponding multiple image features are extracted from each of the second key frame images; based on the multiple image features, a multidimensional image feature vector corresponding to each of the second key frame images is determined through a deep neural network, thereby obtaining multiple first multidimensional image feature vectors corresponding to multiple second key frame images.

[0115] In a possible implementation, based on a Hash structure, indexes are created for a plurality of the first multi-dimensional image feature vectors and a plurality of the second multi-dimensional image feature vectors to detect copied video segments.

[0116] In a possible implementation, based on a sliding window time alignment method, a plurality of the copied video frame images are sequentially integrated according to time information to obtain a copied video segment.

[0117] The method disclosed in the above embodiment of the present invention can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 501 or the instruction in the form of software. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.

[0118] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0119] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0120] The computer device provided in this embodiment may be as follows Figure 5 The computer device shown in , can execute Figure 2-3 All steps of the video copy detection method are implemented Figure 2-3 For details, please refer to the technical effect of the video copy detection method shown in Figure 2-3 For the sake of brevity, the relevant description is not repeated here.

[0121] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0122] When one or more programs in the storage medium can be executed by one or more processors, the video copy detection method executed on the computer device side can be implemented.

[0123] The processor is used to execute the video copy detection program stored in the memory to implement the following steps of the video copy detection method performed on the computer device side:

[0124] Extract multiple first key frame images from a sample video; traverse the multiple first key frame images from the outside to the inside based on the image edge until non-pure color pixels appear, remove all traversed pure color pixel areas, and obtain multiple second key frame images with non-pure color pixels as edges; traverse the multiple second key frame images twice, remove the image areas where the number of pure color pixels is greater than a first threshold, and obtain multiple processed second key frame images; extract the corresponding multiple image features from each of the second key frame images, and determine the multidimensional image feature vector corresponding to each of the second key frame images, and obtain multiple first multidimensional image feature vectors corresponding to the multiple second key frame images; establish an index based on the multiple first multidimensional image feature vectors and the multiple second multidimensional image feature vectors corresponding to the library videos stored in the video library, and obtain multiple copy video frame images; integrate the multiple copy video frame images according to the time information corresponding to the multiple copy video frame images to obtain a copy video clip.

[0125] In one possible implementation, based on visual saliency, multiple key frame images are extracted from the sample video according to timing information; corresponding multiple feature information is extracted from each of the key frame images to form a feature vector, thereby obtaining multiple feature vectors corresponding to the multiple key frame images; the similarities of the multiple feature vectors are compared in turn, and the multiple key frame images corresponding to the multiple feature vectors whose similarities are lower than a second threshold are retained to obtain multiple first key frame images.

[0126] In one possible implementation, based on a grayscale image feature extraction method, corresponding multiple image features are extracted from each of the second key frame images; based on the multiple image features, a multidimensional image feature vector corresponding to each of the second key frame images is determined through a deep neural network, thereby obtaining multiple first multidimensional image feature vectors corresponding to multiple second key frame images.

[0127] In a possible implementation, based on a Hash structure, indexes are created for a plurality of the first multi-dimensional image feature vectors and a plurality of the second multi-dimensional image feature vectors to detect copied video segments.

[0128] In a possible implementation, based on a sliding window time alignment method, a plurality of the copied video frame images are sequentially integrated according to time information to obtain a copied video segment.

[0129] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0130] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0131] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for detecting video copy containing a border, characterized in that: include: Extracting a plurality of first key frame images from a sample video; Based on the image edge, multiple first key frame images are traversed from outside to inside until non-pure color pixels appear, and all traversed pure color pixel areas are removed to obtain a second key frame image with multiple non-pure color pixels as edges; Performing a second traversal on the plurality of second key frame images, removing image regions where the number of pure color pixels is greater than a first threshold, and obtaining a plurality of processed second key frame images; Extracting a plurality of corresponding image features from each of the second key frame images, and determining a multidimensional image feature vector corresponding to each of the second key frame images, to obtain a plurality of first multidimensional image feature vectors corresponding to the plurality of second key frame images; Establishing an index based on the plurality of first multi-dimensional image feature vectors and a plurality of second multi-dimensional image feature vectors corresponding to the library videos stored in the video library, and acquiring a plurality of copied video frame images; According to the time information corresponding to the multiple copied video frame images, the multiple copied video frame images are integrated to obtain a copied video segment.

2. The method according to claim 1, characterized in that The step of extracting a plurality of first key frame images from the sample video comprises: Based on visual saliency, extracting a plurality of key frame images from the sample video according to time sequence information; Extracting corresponding multiple feature information from each of the key frame images to form a feature vector, thereby obtaining multiple feature vectors corresponding to the multiple key frame images; The similarities of the plurality of feature vectors are compared in sequence, and the plurality of key frame images corresponding to the plurality of feature vectors having similarities lower than a second threshold are retained to obtain a plurality of first key frame images.

3. The method according to claim 1, characterized in that The step of extracting a plurality of corresponding image features from each of the second key frame images, and determining a multidimensional image feature vector corresponding to each of the second key frame images, to obtain a plurality of first multidimensional image feature vectors corresponding to a plurality of the second key frame images, comprises: Extracting a plurality of corresponding image features from each of the second key frame images based on a grayscale image feature extraction method; Based on the multiple image features, a multidimensional image feature vector corresponding to each of the second key frame images is determined through a deep neural network, thereby obtaining multiple first multidimensional image feature vectors corresponding to multiple second key frame images.

4. The method according to claim 1, characterized in that: The step of establishing an index based on the plurality of first multi-dimensional image feature vectors and a plurality of second multi-dimensional image feature vectors corresponding to the library videos stored in the video library to detect the copied video segments includes: Based on the Hash structure, indexes are created for the plurality of first multi-dimensional image feature vectors and the plurality of second multi-dimensional image feature vectors to detect copied video segments.

5. The method according to claim 1, characterized in that The step of integrating the plurality of copied video frame images according to time information corresponding to the plurality of copied video frame images to obtain a copied video segment includes: Based on the time alignment method of the sliding window, the plurality of copied video frame images are sequentially integrated according to the time information to obtain a copied video segment.

6. A video copy detection device for a video containing a frame, characterized in that: include: An acquisition module, used for extracting a plurality of first key frame images from a sample video; A processing module, configured to traverse the plurality of first key frame images from outside to inside based on the image edge until non-pure color pixels appear, remove all traversed pure color pixel regions, and obtain a second key frame image with a plurality of non-pure color pixels as edges; The processing module is further used to perform a second traversal on the plurality of second key frame images, remove image regions where the number of pure color pixels is greater than a first threshold, and obtain a plurality of processed second key frame images; A calculation module, used to extract a plurality of corresponding image features from each of the second key frame images, and determine a multi-dimensional image feature vector corresponding to each of the second key frame images, to obtain a plurality of first multi-dimensional image feature vectors corresponding to a plurality of the second key frame images; A detection module, configured to establish an index based on the plurality of first multi-dimensional image feature vectors and a plurality of second multi-dimensional image feature vectors corresponding to the library videos stored in the video library, and obtain a plurality of copied video frame images; The determination module is used to integrate the multiple copied video frame images according to the time information corresponding to the multiple copied video frame images to obtain a copied video segment.

7. A computer device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a video copy detection program stored in the memory to implement the video copy detection method according to any one of claims 1 to 5.

8. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the video copy detection method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and system for monitoring video copy based on content

    CN101442641A

  • Video copy detection method

    CN103390040A

  • Video copy detection method based on improved OM features

    CN105608233A

  • Duplicate video detection apparatus and its method, recording medium having computer program recorded

    KR1020110105978A

  • Suppressing duplicated bounding boxes from object detection in a video analytics system

    US20190130189A1