CN109960960A - Video fingerprint generation and matching method and device, computer equipment and storage medium - Google Patents
Video fingerprint generation and matching method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109960960A CN109960960A CN201711337566.3A CN201711337566A CN109960960A CN 109960960 A CN109960960 A CN 109960960A CN 201711337566 A CN201711337566 A CN 201711337566A CN 109960960 A CN109960960 A CN 109960960A
- Authority
- CN
- China
- Prior art keywords
- video
- fingerprint
- key frame
- matrix
- matched
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 100
- 238000003860 storage Methods 0.000 title claims abstract description 14
- 239000011159 matrix material Substances 0.000 claims abstract description 118
- 238000012545 processing Methods 0.000 claims abstract description 35
- 238000000354 decomposition reaction Methods 0.000 claims abstract description 30
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 18
- 239000000284 extract Substances 0.000 claims abstract description 17
- 230000009467 reduction Effects 0.000 claims abstract description 16
- 238000007781 pre-processing Methods 0.000 claims abstract description 15
- 238000004364 calculation method Methods 0.000 claims abstract description 11
- 238000004590 computer program Methods 0.000 claims description 14
- 238000000605 extraction Methods 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 238000005070 sampling Methods 0.000 description 6
- 230000009466 transformation Effects 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000005259 measurement Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000010223 real-time analysis Methods 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000011946 reduction process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/46—Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/48—Matching video sequences
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Collating Specific Patterns (AREA)
Abstract
本发明公开了一种视频指纹生成和匹配方法及装置、计算机设备和存储介质。该生成方法包括:对待处理视频进行预处理,提取预处理后的视频的关键帧图像;将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵;将稀疏矩阵进行分块处理,提取其中预设块分块矩阵,计算得出预设块分块矩阵的平均值组成的特征矩阵;对特征矩阵进行奇异值分解,将对特征矩阵奇异值分解后得到的奇异值定义为视频的指纹。根据本发明实施例,能够基于压缩传感算法生成视频指纹,使得生成的视频指纹能够有效地抵御外界环境带来的变化,通过压缩传感的稀疏性在保留原视频基本特性的基础上降低指纹的维度,简化计算过程。
The invention discloses a video fingerprint generation and matching method and device, computer equipment and storage medium. The generating method includes: preprocessing the video to be processed, and extracting key frame images of the preprocessed video; performing dimensionality reduction processing on the key frame images through a compressed sensing algorithm to obtain a sparse matrix; performing block processing on the sparse matrix, Extract the preset block block matrix, calculate and obtain a feature matrix composed of the average value of the preset block block matrix; perform singular value decomposition on the feature matrix, and define the singular value obtained after the singular value decomposition of the feature matrix as the video fingerprint. According to the embodiment of the present invention, a video fingerprint can be generated based on a compressed sensing algorithm, so that the generated video fingerprint can effectively resist the changes brought by the external environment, and the sparseness of the compressed sensing can reduce the fingerprint on the basis of retaining the basic characteristics of the original video. dimension to simplify the calculation process.
Description
技术领域technical field
本发明属于计算机技术领域,尤其涉及一种视频指纹的生成方法、视频指纹的匹配方法、视频指纹的生成装置、视频指纹的匹配装置、计算机设备及计算机存储介质。The invention belongs to the field of computer technology, and in particular relates to a method for generating video fingerprints, a method for matching video fingerprints, a device for generating video fingerprints, a device for matching video fingerprints, computer equipment and a computer storage medium.
背景技术Background technique
目前,多媒体技术在数据信息存储和传播方面取得了重大进展,使得可利用的视频信息日益膨胀。然而视频信息结构复杂、信息容量大、抽象程度低,也带来了非常严重的信息膨胀问题,因此如何对这些非结构化的海量数据进行有效的组织、表达、管理、查询和检索成为研究重点。为此,视频指纹应运而生,其是一种软件识别、提取、压缩视频的技术,从视频文件中提取的可以唯一标识视频文件的特征作为视频指纹,相对比原始视频内容,它的数据量明显减小,同时需要满足稳健性、可区分性、实时性等要求。所以,为了更好的保护视频节目制造商和发售商的商业利益、有效的检索侵权视频,视频指纹技术越来越受到广泛的关注。At present, the multimedia technology has made great progress in the storage and dissemination of data information, which makes the available video information expand day by day. However, video information has a complex structure, large information capacity, and low degree of abstraction, which also brings a very serious problem of information expansion. Therefore, how to effectively organize, express, manage, query and retrieve these unstructured massive data has become the focus of research. . To this end, video fingerprinting came into being, which is a technology for software to identify, extract, and compress videos. The features extracted from video files that can uniquely identify video files are used as video fingerprints. Compared with the original video content, its data volume It is significantly reduced, and at the same time, it needs to meet the requirements of robustness, distinguishability, and real-time performance. Therefore, in order to better protect the commercial interests of video program manufacturers and distributors and effectively retrieve infringing videos, video fingerprinting technology has received more and more attention.
但相关技术在生成视频指纹时,通过选取感兴趣区域生成视频指纹存在该区域不能表达原视频的特性而造成视频部分特性丢失,或采用时域和空域的结合方法生成视频指纹时又会造成指纹数据量较大造成检索时间较长、误码率偏高等问题。However, when generating a video fingerprint in the related art, the video fingerprint is generated by selecting a region of interest, and the region cannot express the characteristics of the original video, resulting in the loss of some characteristics of the video, or the combination of time domain and space domain is used to generate video fingerprints. The large amount of data results in long retrieval time and high bit error rate.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种视频指纹的生成方法、匹配方法、生成装置、匹配装置,计算机设备及计算机存储介质,能够基于压缩传感算法生成视频指纹,使得生成的视频指纹能够有效地抵御外界环境带来的变化,并且通过压缩传感的稀疏性能够在保留原视频基本特性的基础上降低指纹的维度,减小指纹数据量,简化计算过程。The embodiments of the present invention provide a video fingerprint generation method, a matching method, a generation device, a matching device, computer equipment and a computer storage medium, which can generate a video fingerprint based on a compressed sensing algorithm, so that the generated video fingerprint can effectively resist the external environment. The sparseness of the compressed sensing can reduce the dimension of the fingerprint, reduce the amount of fingerprint data, and simplify the calculation process on the basis of retaining the basic characteristics of the original video.
一方面,本发明实施例提供一种视频指纹的生成方法,包括:对待处理视频进行预处理,并提取预处理后的视频的关键帧图像;将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵;将稀疏矩阵进行分块处理,并且提取其中预设块分块矩阵,并计算得出预设块分块矩阵的平均值组成的特征矩阵;对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为视频的指纹。On the one hand, an embodiment of the present invention provides a method for generating a video fingerprint, including: preprocessing a video to be processed, and extracting a key frame image of the preprocessed video; performing dimensionality reduction processing on the key frame image through a compressed sensing algorithm , to obtain a sparse matrix; perform block processing on the sparse matrix, extract a preset block block matrix, and calculate a feature matrix composed of the average value of the preset block block matrix; perform singular value decomposition on the feature matrix, And the singular value obtained by decomposing the singular value of the feature matrix is defined as the fingerprint of the video.
在上述技术方案中,优选地,对待处理视频进行预处理,并提取预处理后的视频的关键帧图像的步骤具体包括:对待处理视频以预设固定帧速率转换成帧图像,并对帧图像按照预设比例提取出关键帧图像。In the above technical solution, preferably, the steps of preprocessing the video to be processed and extracting key frame images of the preprocessed video specifically include: converting the video to be processed into frame images at a preset fixed frame rate, and processing the frame images Extract the key frame image according to the preset ratio.
在上述任一技术方案中,优选地,对待处理视频进行预处理,并提取预处理后的视频的关键帧图像的步骤与将关键帧图像通过压缩传感理论进行降维处理,以得到稀疏矩阵的步骤之间还包括:将关键帧图像进行灰度转换,并将转换后的关键帧图像的高度调整为预设高度,且将转换后的关键帧图像的宽度调整为预设宽度。In any of the above technical solutions, preferably, the steps of preprocessing the video to be processed and extracting the key frame image of the preprocessed video are the same as performing dimensionality reduction processing on the key frame image through compressed sensing theory to obtain a sparse matrix The steps further include: performing grayscale conversion on the key frame image, adjusting the height of the converted key frame image to a preset height, and adjusting the width of the converted key frame image to a preset width.
在上述任一技术方案中,优选地,对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为视频的指纹的步骤后还包括:对指纹采用格雷码进行编码。In any of the above technical solutions, preferably, performing singular value decomposition on the feature matrix, and defining the singular value obtained after the singular value decomposition of the feature matrix as the fingerprint of the video, the step further includes: encoding the fingerprint using Gray code. .
在上述任一技术方案中,优选地,提取所述预设块分块矩阵的具体步骤为:将所述稀疏矩阵分块后所得到的全部分块矩阵的值按照从大到小的顺序排列,选取位于前预设个的分块矩阵作为所述预设块分块矩阵。In any of the above technical solutions, preferably, the specific step of extracting the preset block-blocking matrix is: arranging the values of all the block-blocking matrices obtained after dividing the sparse matrix into blocks in descending order , and select the block matrix located in the previous preset as the preset block block matrix.
另一方面,本发明实施例提供了一种视频指纹的生成装置,视频指纹的生成装置应用于本发明上述任一项技术方案提供的视频指纹的生成方法。视频指纹的生成装置包括:预处理单元,用于对待处理视频进行预处理,并提取预处理后的待处理视频的关键帧图像;降维处理单元,用于将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵;分块处理单元,用于将稀疏矩阵进行分块处理,并且提取其中预设块分块矩阵,并计算得出预设块分块矩阵的平均值组成的特征矩阵;指纹生成单元,用于对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为待处理视频的指纹。On the other hand, an embodiment of the present invention provides a device for generating a video fingerprint, and the device for generating a video fingerprint is applied to the method for generating a video fingerprint provided by any one of the above technical solutions of the present invention. The device for generating video fingerprints includes: a preprocessing unit for preprocessing the video to be processed and extracting key frame images of the preprocessed video to be processed; a dimensionality reduction processing unit for passing the key frame images through a compressed sensing algorithm Dimension reduction processing is performed to obtain a sparse matrix; a block processing unit is used to perform block processing on the sparse matrix, and extract the preset block block matrix, and calculate the average value of the preset block block matrix. The feature matrix; the fingerprint generating unit is used for singular value decomposition of the feature matrix, and the singular value obtained after the singular value decomposition of the feature matrix is defined as the fingerprint of the video to be processed.
再一方面,本发明实施例提供了一种视频指纹的匹配方法,应用本发明上述任一项技术方案提供的视频指纹的生成方法对目标视频及待匹配视频的指纹进行生成,视频指纹的匹配方法包括:提取目标视频的第一关键帧的第一指纹;将第一指纹与待匹配视频的每一个关键帧的指纹进行比较,得出待匹配视频中的第二关键帧,且第二关键帧为待匹配视频中的各个关键帧的指纹到第一指纹的欧式距离最小的关键帧;以第二关键帧为中心,分别向前和向后按照预设时长选取待匹配视频所包含的关键帧数目,使得选取的待匹配视频所包含的关键帧数目与目标视频的关键帧数目相等;逐一计算目标视频中所有关键帧的指纹和待检测视频中选取的关键帧之间的欧式距离,在各个欧式距离均小于阈值时,判定此时选取的待匹配视频为目标视频的相似视频。In another aspect, an embodiment of the present invention provides a method for matching video fingerprints. The method for generating video fingerprints provided by any of the above technical solutions of the present invention is used to generate fingerprints of a target video and a video to be matched, and the matching of video fingerprints is performed. The method includes: extracting the first fingerprint of the first key frame of the target video; comparing the first fingerprint with the fingerprint of each key frame of the video to be matched, and obtaining the second key frame in the video to be matched, and the second key frame The frame is the key frame with the smallest Euclidean distance from the fingerprint of each key frame in the video to be matched to the first fingerprint; with the second key frame as the center, select the key frame contained in the video to be matched forward and backward respectively according to the preset duration. The number of frames, so that the number of key frames contained in the selected video to be matched is equal to the number of key frames of the target video; calculate the fingerprints of all key frames in the target video one by one and the Euclidean distance between the key frames selected in the video to be detected, in When each Euclidean distance is less than the threshold, it is determined that the video to be matched selected at this time is a similar video to the target video.
在上述技术方案中,优选地,提取目标视频的第一关键帧的第一指纹的步骤具体包括:随机选取目标视频中的任一关键帧为第一关键帧。In the above technical solution, preferably, the step of extracting the first fingerprint of the first key frame of the target video specifically includes: randomly selecting any key frame in the target video as the first key frame.
在上述任一技术方案中,优选地,预设时长为3秒。In any of the above technical solutions, preferably, the preset duration is 3 seconds.
再一方面,本发明实施例提供了一种视频指纹的匹配装置,视频指纹的匹配装置应用于本发明上述任一项技术方案提供的视频指纹的匹配方法,视频指纹的匹配装置包括:提取单元,用于提取目标视频的第一关键帧的第一指纹;比较单元,用于将第一指纹与待匹配视频的每一个关键帧的指纹进行比较,得出待匹配视频中的第二关键帧,且第二关键帧为待匹配视频中的各个关键帧的指纹到第一指纹的欧式距离最小的关键帧;选取单元,用于以第二关键帧为中心,分别向前和向后按照预设时长选取待匹配视频所包含的关键帧数目,使得选取的待匹配视频所包含的关键帧数目与目标视频的关键帧数目相等;计算单元,用于逐一计算目标视频中所有关键帧的指纹和待检测视频中选取的关键帧之间的欧式距离,在各个欧式距离均小于阈值时,判定此时选取的待匹配视频为目标视频的相似视频。In another aspect, an embodiment of the present invention provides a video fingerprint matching device, the video fingerprint matching device is applied to the video fingerprint matching method provided by any of the above technical solutions of the present invention, and the video fingerprint matching device includes: an extraction unit , is used to extract the first fingerprint of the first key frame of the target video; the comparison unit is used to compare the first fingerprint with the fingerprint of each key frame of the video to be matched, and obtain the second key frame of the video to be matched. , and the second key frame is the key frame with the smallest Euclidean distance from the fingerprint of each key frame in the video to be matched to the first fingerprint; the selection unit is used for taking the second key frame as the center, respectively forward and backward according to the preset Set the time length to select the number of key frames contained in the video to be matched, so that the number of key frames contained in the selected video to be matched is equal to the number of key frames of the target video; the computing unit is used to calculate the fingerprints of all the key frames in the target video one by one. The Euclidean distance between the selected key frames in the video to be detected, when each Euclidean distance is less than a threshold, it is determined that the selected video to be matched at this time is a similar video to the target video.
再一方面,本发明实施例提供了一种计算机设备,设备包括:处理器以及存储有计算机程序指令的存储器;处理器执行计算机程序指令时实现如上述任一项技术方案提供的视频指纹的生成方法或上述任一项技术方案提供的视频指纹的匹配方法。In another aspect, an embodiment of the present invention provides a computer device, the device includes: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the generation of the video fingerprint provided by any of the above technical solutions is realized The method or the video fingerprint matching method provided by any one of the above technical solutions.
再一方面,本发明实施例提供了一种计算机存储介质,计算机存储介质上存储有计算机程序指令,计算机程序指令被处理器执行时实现如上述任一项技术方案提供的视频指纹的生成方法或上述任一项技术方案提供的视频指纹的匹配方法。On the other hand, an embodiment of the present invention provides a computer storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method for generating a video fingerprint provided by any of the above technical solutions or The video fingerprint matching method provided by any one of the above technical solutions.
本发明实施例的视频指纹的生成方法、匹配方法、生成装置、匹配装置、计算机设备及一种计算机存储介质,能够利用压缩传感理论生成视频指纹,由于采用压缩传感理论,使得其生成的视频指纹能够很好抗击视角、光线、亮度变换、帧比率变换、剪裁和标签覆盖等外界环境带来的变化,充分利用原视频的时域和空域特性,以此提升指纹的稳健性和可区分性,同时压缩传感的稀疏性能够在保留原视频基本特性的基础上降低指纹的维度,最后采用格雷码编码生成视频指纹,有效地降低了所生成的视频的误码率,保证视频指纹能够真实有效地表征待处理视频的特征。此外在通过将采用上述方法生成的目标视频的指纹与数据库中的待匹配视频的关键帧进行欧式距离的比较,计算出目标视频与待匹配视频的相似度,可在视频指纹检索时,提升检索速度。The video fingerprint generation method, matching method, generation device, matching device, computer equipment, and a computer storage medium according to the embodiments of the present invention can generate video fingerprints by using compressed sensing theory. Video fingerprints can well resist the changes brought by the external environment such as viewing angle, light, brightness transformation, frame ratio transformation, cropping and label coverage, and make full use of the temporal and spatial characteristics of the original video to improve the robustness and distinguishability of fingerprints. At the same time, the sparsity of compressed sensing can reduce the dimension of the fingerprint on the basis of retaining the basic characteristics of the original video, and finally use Gray code to generate the video fingerprint, which effectively reduces the bit error rate of the generated video and ensures that the video fingerprint can be Realistically and effectively characterize the features of the video to be processed. In addition, by comparing the Euclidean distance between the fingerprint of the target video generated by the above method and the key frame of the video to be matched in the database, the similarity between the target video and the video to be matched is calculated, which can improve the retrieval efficiency during video fingerprint retrieval. speed.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单的介绍,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the embodiments of the present invention. For those of ordinary skill in the art, without creative work, the Additional drawings can be obtained from these drawings.
图1示出了本发明一个实施例提供的视频指纹的生成方法的流程示意图。FIG. 1 shows a schematic flowchart of a method for generating a video fingerprint provided by an embodiment of the present invention.
图2示出了本发明一个实施例提供的视频指纹的生成方法的流程示意图。FIG. 2 shows a schematic flowchart of a method for generating a video fingerprint provided by an embodiment of the present invention.
图3示出了本发明一个实施例提供的视频指纹的生成方法的流程示意图。FIG. 3 shows a schematic flowchart of a method for generating a video fingerprint provided by an embodiment of the present invention.
图4示出了本发明一个实施例提供的视频指纹的生成方法的流程示意图。FIG. 4 shows a schematic flowchart of a method for generating a video fingerprint provided by an embodiment of the present invention.
图5示出了本发明一个实施例提供的视频指纹的生成方法的示意图。FIG. 5 shows a schematic diagram of a method for generating a video fingerprint provided by an embodiment of the present invention.
图6示出了本发明一个实施例提供的视频指纹的生成装置的框架示意图。FIG. 6 shows a schematic diagram of a framework of an apparatus for generating video fingerprints provided by an embodiment of the present invention.
图7示出了本发明一个实施例提供的视频指纹的匹配方法的流程示意图。FIG. 7 shows a schematic flowchart of a video fingerprint matching method provided by an embodiment of the present invention.
图8示出了本发明一个实施例提供的视频指纹的匹配方法的示意图。FIG. 8 shows a schematic diagram of a video fingerprint matching method provided by an embodiment of the present invention.
图9示出了本发明一个实施例提供的视频指纹的匹配装置的框架示意图。FIG. 9 shows a schematic diagram of a framework of a video fingerprint matching apparatus provided by an embodiment of the present invention.
图10示出了本发明一个实施例提供的视频指纹的匹配方法与相关技术的实时性分析对比图。FIG. 10 shows a real-time analysis and comparison diagram of a video fingerprint matching method provided by an embodiment of the present invention and related technologies.
图11示出了本发明一个实施例提供的计算机设备的硬件结构示意图。FIG. 11 shows a schematic diagram of a hardware structure of a computer device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将详细描述本发明的各个方面的特征和示例性实施例,为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及具体实施例,对本发明进行进一步详细描述。应理解,此处所描述的具体实施例仅被配置为解释本发明,并不被配置为限定本发明。对于本领域技术人员来说,本发明可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本发明的示例来提供对本发明更好的理解。The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention, and are not configured to limit the present invention. It will be apparent to those skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is only intended to provide a better understanding of the present invention by illustrating examples of the invention.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprising" does not preclude the presence of additional identical elements in the process, method, article or device that includes the element.
为了解决现有技术问题,本发明实施例提供了一种视频指纹的生成方法、匹配方法、生成装置、匹配装置,计算机设备及计算机存储介质。下面首先对本发明实施例所提供的视频指纹的生成方法进行介绍。In order to solve the problems of the prior art, the embodiments of the present invention provide a video fingerprint generation method, a matching method, a generation apparatus, a matching apparatus, computer equipment and a computer storage medium. The following first introduces the method for generating a video fingerprint provided by the embodiment of the present invention.
图1示出了本发明一个实施例提供的视频指纹的生成方法的流程示意图。如图1所示,本实施例提供的一种视频指纹的生成方法包括:FIG. 1 shows a schematic flowchart of a method for generating a video fingerprint provided by an embodiment of the present invention. As shown in FIG. 1 , a method for generating a video fingerprint provided by this embodiment includes:
S102,对待处理视频进行预处理,并提取预处理后的待处理视频的关键帧图像;S102, preprocessing the video to be processed, and extracting key frame images of the preprocessed video to be processed;
S104,将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵;S104, performing dimension reduction processing on the key frame image through a compressed sensing algorithm to obtain a sparse matrix;
S106,将稀疏矩阵进行分块处理,并且提取其中预设块分块矩阵,并计算得出预设块分块矩阵的平均值组成的特征矩阵;S106, performing block processing on the sparse matrix, extracting a preset block block matrix, and calculating a feature matrix composed of an average value of the preset block block matrix;
S108,对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为视频的指纹。S108, perform singular value decomposition on the feature matrix, and define the singular value obtained after the singular value decomposition of the feature matrix as the fingerprint of the video.
本发明提供的视频指纹的生成方法,首先对待处理视频进行预处理,并提取预处理后的视频的关键帧图像,由于视频可以理解为由在大量帧图像在连续时间上组合而成,因此首先需要提取出待处理视频的关键帧图像来进行后续的步骤。The method for generating a video fingerprint provided by the present invention firstly preprocesses the video to be processed, and extracts key frame images of the preprocessed video. The key frame images of the video to be processed need to be extracted for subsequent steps.
其次,将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵Si,此时需要将关键帧图像投影到离散小波变换基上,计算得到稀疏矩阵,由于得到的绝大部分变化系数的绝对值很小,所得到的变换向量是稀疏或者近似稀疏,因此将其命名为稀疏矩阵Si,以降低生成的视频指纹的维度,有效地去除关键帧图像中的多余信息。同时,压缩传感的主要思想是将压缩与采样合并进行,先采集信号的非自适应线性投影(测量值),然后测量值根据相应重构算法来重构原始信号。其优点在于采样过程突破了奈奎斯特采样定理的束缚,信号重建时没有或是只有很少的信息损失,使高分辨率采集成为可能。Secondly, the key frame image is dimensionally reduced by the compressed sensing algorithm to obtain the sparse matrix S i . At this time, the key frame image needs to be projected on the discrete wavelet transform basis, and the sparse matrix is obtained by calculation. Since most of the obtained changes The absolute value of the coefficient is very small, and the resulting transformation vector is sparse or approximately sparse, so it is named as a sparse matrix S i to reduce the dimension of the generated video fingerprint and effectively remove the redundant information in the key frame image. At the same time, the main idea of compressed sensing is to combine compression and sampling. First, the non-adaptive linear projection (measurement value) of the signal is collected, and then the measurement value reconstructs the original signal according to the corresponding reconstruction algorithm. The advantage is that the sampling process breaks through the constraints of the Nyquist sampling theorem, and there is no or only little information loss during signal reconstruction, making high-resolution acquisition possible.
随后,将稀疏矩阵Si进行分块处理,并且提取其中预设块分块矩阵,并计算得出预设块分块矩阵的平均值组成的特征矩阵G=[g1,g2,......gi]T。Subsequently, the sparse matrix S i is subjected to block processing, and the preset block block matrix is extracted, and the feature matrix G=[g 1 , g 2 , . . . ....g i ] T .
优选地,在稀疏矩阵Si中的分块中提取K块,提取K块的步骤为将稀疏矩阵Si中的分块按照能量的大小进行排序。Preferably, K blocks are extracted from the blocks in the sparse matrix Si, and the step of extracting the K blocks is to sort the blocks in the sparse matrix Si according to the size of the energy.
再次,对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为视频的指纹,奇异值分解的算法如下:Thirdly, perform singular value decomposition on the feature matrix, and define the singular value obtained after the singular value decomposition of the feature matrix as the fingerprint of the video. The algorithm of singular value decomposition is as follows:
G=UDVH (式1)G=UDV H (Formula 1)
式中: where:
称dr,i=1,2,.....,k为矩阵D的奇异值,即Call d r , i=1,2,.....,k the singular value of matrix D, namely
Dv=[diag(d1,d2,...,dr)]是最终代表该待处理视频的特征描述值,即待处理视频的指纹。D v =[diag(d 1 ,d 2 ,...,d r )] is the feature description value that finally represents the video to be processed, that is, the fingerprint of the video to be processed.
此外,视频的指纹的数量取决于提取的关键帧的数量,每一个关键帧相对于与一个视频指纹,计算得到的指纹越多,越能详尽的表征该视频,但也会使得指纹计算量及内容过于冗长,不利于信息携带;因此可以根据实际需要对提取的视频指纹的数量进行控制。In addition, the number of video fingerprints depends on the number of extracted key frames. Each key frame is relative to a video fingerprint. The more fingerprints are calculated, the more detailed the video can be characterized, but it will also reduce the amount of fingerprint calculation and The content is too long, which is not conducive to information carrying; therefore, the number of extracted video fingerprints can be controlled according to actual needs.
图2示出了本发明一个实施例提供的视频指纹的生成方法的流程示意图。如图2所示,本实施例提供的视频指纹的生成方法包括:FIG. 2 shows a schematic flowchart of a method for generating a video fingerprint provided by an embodiment of the present invention. As shown in Figure 2, the method for generating a video fingerprint provided by this embodiment includes:
S202,对待处理视频以预设固定帧速率转换成帧图像,并对帧图像按照预设比例提取出关键帧图像;S202, converting the video to be processed into a frame image at a preset fixed frame rate, and extracting a key frame image from the frame image according to a preset ratio;
S204,将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵;S204, performing dimension reduction processing on the key frame image through a compressed sensing algorithm to obtain a sparse matrix;
S206,将稀疏矩阵进行分块处理,并且提取其中预设块分块矩阵,并计算得出预设块分块矩阵的平均值组成的特征矩阵;S206, performing block processing on the sparse matrix, extracting a preset block block matrix, and calculating a feature matrix composed of an average value of the preset block block matrix;
S208,对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为视频的指纹。S208 , perform singular value decomposition on the feature matrix, and define the singular value obtained after the singular value decomposition of the feature matrix as the fingerprint of the video.
在该实施例中,在进行视频指纹提取时首先对待处理视频以预设固定帧速率转换成帧图像,并对帧图像按照预设比例提取出关键帧图像,通过以预设固定帧速率转换成帧图像,可以抵御帧比例变化的攻击,从而保证视频的稳定性。优选地,预设固定帧速率为每秒20帧。In this embodiment, when extracting video fingerprints, the video to be processed is first converted into a frame image at a preset fixed frame rate, and a key frame image is extracted from the frame image according to a preset ratio. Frame image, which can resist the attack of frame ratio change, so as to ensure the stability of the video. Preferably, the preset fixed frame rate is 20 frames per second.
图3示出了本发明一个实施例提供的视频指纹的生成方法的流程示意图。如图3所示,本实施例提供的视频指纹的生成方法包括:FIG. 3 shows a schematic flowchart of a method for generating a video fingerprint provided by an embodiment of the present invention. As shown in FIG. 3 , the method for generating a video fingerprint provided by this embodiment includes:
S302,对待处理视频进行预处理,并提取预处理后的待处理视频的关键帧图像;S302, preprocessing the video to be processed, and extracting key frame images of the preprocessed video to be processed;
S304,将关键帧图像进行灰度转换,并将转换后的关键帧图像的高度调整为预设高度,且将转换后的关键帧图像的宽度调整为预设宽度;S304, performing grayscale conversion on the key frame image, adjusting the height of the converted key frame image to a preset height, and adjusting the width of the converted key frame image to a preset width;
S306,将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵;S306, performing dimension reduction processing on the key frame image through a compressed sensing algorithm to obtain a sparse matrix;
S308,将稀疏矩阵进行分块处理,并且提取其中预设块分块矩阵,并计算得出预设块分块矩阵的平均值组成的特征矩阵;S308, performing block processing on the sparse matrix, extracting a preset block block matrix, and calculating a feature matrix composed of an average value of the preset block block matrix;
S310,对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为视频的指纹。S310, perform singular value decomposition on the feature matrix, and define the singular value obtained after the singular value decomposition of the feature matrix as the fingerprint of the video.
在该实施例中,将关键帧图像进行灰度转换,使其对颜色变化有稳健性,这样可以保证本发明实施例提供的视频指纹生成方法不仅能应用于彩色的视频,而且对传统的黑白视频也同样适用。并且,将转换后的关键帧图像的高度调整为预设高度,且将转换后的关键帧图像的宽度调整为预设宽度,通过统一高度和宽度的数值,使本发明实施例提供的视频指纹生成方法对任意尺寸大小的图像有鲁棒性,统一的规格尺度,也为后续处理有统一的标准,减免了图像大小不一而带来的误差。In this embodiment, the key frame image is gray-scaled to make it robust to color changes, which can ensure that the video fingerprint generation method provided by the embodiment of the present invention can not only be applied to color videos, but also to traditional black and white videos. The same goes for video. In addition, the height of the converted key frame image is adjusted to a preset height, and the width of the converted key frame image is adjusted to a preset width, and the video fingerprint provided by the embodiment of the present invention is made by unifying the values of the height and width. The generation method is robust to images of any size, has a unified specification scale, and also has a unified standard for subsequent processing, which reduces the error caused by different image sizes.
图4示出了本发明一个实施例提供的视频指纹的生成方法的流程示意图。如图4所示,本实施例提供的视频指纹的生成方法包括:FIG. 4 shows a schematic flowchart of a method for generating a video fingerprint provided by an embodiment of the present invention. As shown in FIG. 4 , the method for generating a video fingerprint provided by this embodiment includes:
S402,对待处理视频进行预处理,并提取预处理后的待处理视频的关键帧图像;S402, preprocessing the video to be processed, and extracting key frame images of the preprocessed video to be processed;
S404,将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵;S404, performing dimension reduction processing on the key frame image through a compressed sensing algorithm to obtain a sparse matrix;
S406,将稀疏矩阵进行分块处理,并且提取其中预设块分块矩阵,并计算得出预设块分块矩阵的平均值组成的特征矩阵;S406, performing block processing on the sparse matrix, extracting a preset block block matrix, and calculating a feature matrix composed of an average value of the preset block block matrix;
S408,对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为视频的指纹;S408, perform singular value decomposition on the feature matrix, and define the singular value obtained after the singular value decomposition of the feature matrix as the fingerprint of the video;
S410,对指纹采用格雷码进行编码。S410, the fingerprint is encoded using Gray code.
在该实施例中,采用格雷码进行编码可以有效地降低误码率。具体地,由于格雷码属于可靠性编码,是一种错误最小化的编码方式,因此采用格雷码进行编码生成视频指纹能够有效地降低误码率。In this embodiment, using the Gray code for coding can effectively reduce the bit error rate. Specifically, since the Gray code belongs to reliability encoding and is an error-minimizing encoding method, the use of the Gray code for encoding to generate a video fingerprint can effectively reduce the bit error rate.
在本发明的一个实施例中,优选地,提取所述预设块分块矩阵的具体步骤为:将所述稀疏矩阵分块后所得到的全部分块矩阵的值按照从大到小的顺序排列,选取位于前预设个的分块矩阵作为所述预设块分块矩阵。In an embodiment of the present invention, preferably, the specific step of extracting the preset block-blocking matrix is: the values of all the block-blocking matrices obtained after dividing the sparse matrix into blocks are in descending order Arrangement, selecting the block matrix located in the previous preset as the preset block block matrix.
在该技术方案中,在提取预设块分块矩阵时,预设块可以为一块也可以为多块,预设块为全部分块矩阵中能量大的预设个矩阵,其提取的步骤为将稀疏矩阵分块后,将所得到的全部分块矩阵按照值从大到小进行排序,并提取位于前预设个的分块矩阵,使得提取的分块矩阵的能量(即矩阵的值)大于未提取的分块矩阵,因为能量大的分块中能更多保留图像的特征信息。In this technical solution, when extracting the preset block sub-block matrix, the preset block may be one block or multiple blocks, and the preset block is a preset matrix with large energy in all sub-block matrices, and the extraction steps are as follows: After dividing the sparse matrix into blocks, sort all the obtained block matrices in descending order of value, and extract the block matrix located in the previous preset, so that the energy of the extracted block matrix (that is, the value of the matrix) It is larger than the unextracted block matrix, because more feature information of the image can be preserved in the block with high energy.
图5示出了本发明一个实施例提供的视频指纹的生成方法的示意图。FIG. 5 shows a schematic diagram of a method for generating a video fingerprint provided by an embodiment of the present invention.
如图5所示,首先S502中为原始视频中的各帧图像;在S504中进行关键帧抽取,选取S502中的部分帧图像作为关键帧图像;将S504中关键帧帧图像转换为灰度图像,并统一高度和宽度得到S506;并在S506中引入压缩传感理论,将图像变得稀疏,然后将稀疏后的帧图像分块,(如图中将棒球图像进行了分块);最后提取能量值大的块,用平均值构成特征矩阵,并对特征矩阵进行奇异值SVD分解,得到S值生产指纹,结果如S508所示。As shown in Figure 5, firstly, S502 is each frame image in the original video; in S504, key frame extraction is performed, and some frame images in S502 are selected as key frame images; the key frame frame images in S504 are converted into grayscale images , and unify the height and width to get S506; and introduce the compressed sensing theory in S506, make the image sparse, and then divide the sparse frame image into blocks, (the baseball image is divided into blocks in the figure); finally extract For blocks with large energy values, the average value is used to form a feature matrix, and singular value SVD decomposition is performed on the feature matrix to obtain an S-value production fingerprint, and the result is shown in S508.
本发明实施例提供的视频指纹的生成方法能够很好抗击视角、光线,亮度变换、帧比率变换、剪裁和标签覆盖等外界环境带来的变化,并通过最小的信息保留原视频的基本特性和信息。表1显示了相关技术与本发明技术方案的视频指纹稳定性分析对比:The method for generating a video fingerprint provided by the embodiment of the present invention can well resist the changes brought by the external environment such as viewing angle, light, brightness transformation, frame ratio transformation, clipping and label coverage, and retains the basic characteristics and characteristics of the original video through the minimum information. information. Table 1 shows the video fingerprint stability analysis and comparison of the related art and the technical solution of the present invention:
表1Table 1
通过表1可以看出本发明提供的视频指纹的生成方法在受到各个类型的攻击时均能具有良好的查全率与查准率。It can be seen from Table 1 that the method for generating a video fingerprint provided by the present invention can have a good recall rate and precision rate when subjected to various types of attacks.
另一方面,本发明实施例提供了一种视频指纹的生成装置,视频指纹的生成装置应用于本发明前述任一项实施例的技术方案提供的视频指纹的生成方法,因此,本发明的实施例提供的视频指纹的生成装置具有与前面任一实施例提供的视频指纹的生成方法的全部有益效果,在此不一一列举。On the other hand, an embodiment of the present invention provides a device for generating video fingerprints, and the device for generating video fingerprints is applied to the method for generating video fingerprints provided by the technical solutions of any of the foregoing embodiments of the present invention. Therefore, the implementation of the present invention The apparatus for generating a video fingerprint provided in this example has all the beneficial effects of the method for generating a video fingerprint provided in any of the previous embodiments, which will not be listed one by one here.
图6示出了本发明一个实施例提供的视频指纹的生成装置的框架示意图。如图6所示,本实施例提供视频指纹的生成装置600包括:FIG. 6 shows a schematic diagram of a framework of an apparatus for generating video fingerprints provided by an embodiment of the present invention. As shown in FIG. 6 , the apparatus 600 for generating a video fingerprint provided in this embodiment includes:
预处理单元602,用于对待处理视频进行预处理,并提取预处理后的待处理视频的关键帧图像;A preprocessing unit 602, configured to preprocess the video to be processed, and extract the key frame image of the preprocessed video to be processed;
降维处理单元604,用于将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵;A dimensionality reduction processing unit 604, configured to perform dimensionality reduction processing on the key frame image through a compressed sensing algorithm to obtain a sparse matrix;
分块处理单元606,用于将稀疏矩阵进行分块处理,并且提取其中预设块分块矩阵,并计算得出预设块分块矩阵的平均值组成的特征矩阵;A block processing unit 606, configured to perform block processing on the sparse matrix, extract a preset block block matrix, and calculate a feature matrix composed of an average value of the preset block block matrix;
指纹生成单元608,用于对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为待处理视频的指纹。The fingerprint generating unit 608 is configured to perform singular value decomposition on the feature matrix, and define the singular value obtained after the singular value decomposition of the feature matrix as the fingerprint of the video to be processed.
本发明提供的视频指纹的生成装置,首先通过预处理单元602对待处理视频进行预处理,并提取预处理后的视频的关键帧图像,由于视频可以理解为由在大量帧图像在连续时间上组合而成,因此需要提取出待处理视频的关键帧图像来进行后续的操作。The device for generating video fingerprints provided by the present invention first preprocesses the video to be processed by the preprocessing unit 602, and extracts the key frame images of the preprocessed video, because the video can be understood as a combination of a large number of frame images in a continuous time Therefore, it is necessary to extract the key frame images of the video to be processed for subsequent operations.
其次,通过降维处理单元604将关键帧图像通过压缩传感算法进行降维处理,以得到稀疏矩阵Si,此时需要将关键帧图像投影到离散小波变换基上,计算得到稀疏矩阵,由于得到的绝大部分变化系数的绝对值很小,所得到的变换向量是稀疏或者近似稀疏,因此将其命名为稀疏矩阵Si,以降低生成的视频指纹的维度,有效地去除关键帧图像中的多余信息。同时,压缩传感的主要思想是将压缩与采样合并进行,先采集信号的非自适应线性投影(测量值),然后测量值根据相应重构算法来重构原始信号。其优点在于采样过程突破了奈奎斯特采样定理的束缚,信号重建时没有或是只有很少的信息损失,使高分辨率采集成为可能。Secondly, the dimensionality reduction processing unit 604 performs the dimensionality reduction process on the key frame image through the compressed sensing algorithm to obtain the sparse matrix S i . At this time, the key frame image needs to be projected on the discrete wavelet transform basis to obtain the sparse matrix by calculation. The absolute value of most of the obtained change coefficients is very small, and the obtained transformation vector is sparse or approximately sparse, so it is named as the sparse matrix S i to reduce the dimension of the generated video fingerprint and effectively remove the key frame image. redundant information. At the same time, the main idea of compressed sensing is to combine compression and sampling. First, the non-adaptive linear projection (measurement value) of the signal is collected, and then the measurement value reconstructs the original signal according to the corresponding reconstruction algorithm. The advantage is that the sampling process breaks through the constraints of the Nyquist sampling theorem, and there is no or only little information loss during signal reconstruction, making high-resolution acquisition possible.
随后,通过分块处理单元606将稀疏矩阵Si进行分块处理,并且提取其中预设块分块矩阵,并计算得出预设块分块矩阵的平均值组成的特征矩阵G=[g1,g2,......gi]T。Subsequently, the sparse matrix S i is subjected to block processing by the block processing unit 606, and a preset block block matrix is extracted, and a feature matrix G=[g 1 ,g 2 ,...g i ] T .
优选地,在稀疏矩阵Si中的分块中提取K块,提取K块的步骤为将稀疏矩阵Si中的分块按照能量的大小进行排序。Preferably, K blocks are extracted from the blocks in the sparse matrix Si, and the step of extracting the K blocks is to sort the blocks in the sparse matrix Si according to the size of the energy.
再次,通过指纹生成单元608对特征矩阵进行奇异值分解,并将对特征矩阵奇异值分解后得到的奇异值定义为视频的指纹,奇异值分解的算法如上述(式1),并且将计算得到的Dv=[diag(d1,d2,...,dr)]最终代表该待处理视频的特征描述值,即待处理视频的指纹。Once again, singular value decomposition is performed on the feature matrix by the fingerprint generating unit 608, and the singular value obtained after singular value decomposition of the feature matrix is defined as the fingerprint of the video. The algorithm of singular value decomposition is as above (Equation 1), and the calculated The D v =[diag(d 1 ,d 2 ,...,d r )] finally represents the feature description value of the video to be processed, that is, the fingerprint of the video to be processed.
此外,视频的指纹的数量取决于提取的关键帧的数量,每一个关键帧相对于与一个视频指纹,计算得到的指纹越多,越能详尽的表征该视频,但也会使得指纹计算量及内容过于冗长,不利于信息携带;因此可以根据实际需要对提取的视频指纹的数量进行控制。In addition, the number of video fingerprints depends on the number of extracted key frames. Each key frame is relative to a video fingerprint. The more fingerprints are calculated, the more detailed the video can be characterized, but it will also reduce the amount of fingerprint calculation and The content is too long, which is not conducive to information carrying; therefore, the number of extracted video fingerprints can be controlled according to actual needs.
图7示出了本发明一个实施例提供的视频指纹的匹配方法的流程示意图。如图7所示,本实施例提供视频指纹的匹配方法包括:FIG. 7 shows a schematic flowchart of a video fingerprint matching method provided by an embodiment of the present invention. As shown in FIG. 7 , the method for matching video fingerprints provided in this embodiment includes:
S702,提取目标视频的第一关键帧的第一指纹;S702, extract the first fingerprint of the first key frame of the target video;
S704,将第一指纹与待匹配视频的每一个关键帧的指纹进行比较,得出待匹配视频中的第二关键帧,且第二关键帧为待匹配视频中的各个关键帧的指纹到第一指纹的欧式距离最小的关键帧;S704, compare the first fingerprint with the fingerprint of each key frame of the video to be matched, and obtain the second key frame in the video to be matched, and the second key frame is the fingerprint of each key frame in the video to be matched to the first key frame The key frame with the smallest Euclidean distance of a fingerprint;
S706,以第二关键帧为中心,分别向前和向后按照预设时长选取待匹配视频所包含的关键帧数目,使得选取的待匹配视频所包含的关键帧数目与目标视频的关键帧数目相等;S706, with the second key frame as the center, select the number of key frames contained in the video to be matched forward and backward respectively according to the preset duration, so that the number of key frames contained in the selected video to be matched and the number of key frames of the target video are equal;
S708,逐一计算目标视频中所有关键帧的指纹和待检测视频中选取的关键帧之间的欧式距离,在各个欧式距离均小于阈值时,判定此时选取的待匹配视频为目标视频的相似视频。S708, calculate the Euclidean distances between the fingerprints of all key frames in the target video and the selected key frames in the video to be detected one by one, and when each Euclidean distance is less than the threshold, determine that the selected video to be matched at this time is a similar video of the target video .
本实施例提供的视频指纹的匹配方法首先提取目标视频的第一关键帧的第一指纹,该步骤即为粗略选取关键帧;然后将第一指纹与待匹配视频的每一个关键帧的指纹进行比较,得出待匹配视频中的第二关键帧,且第二关键帧为待匹配视频中的各个关键帧的指纹到第一指纹的欧式距离最小的关键帧;其次以第二关键帧为中心,分别向前和向后按照预设时长选取待匹配视频所包含的关键帧数目,使得选取的待匹配视频所包含的关键帧数目与目标视频的关键帧数目相等,该步骤即为在粗略选取的基础上进行精确选取关键帧。最后,逐一计算目标视频中所有关键帧的指纹和待检测视频中选取的关键帧之间的欧式距离,在各个欧式距离均小于阈值时,判定此时选取的待匹配视频为目标视频的相似视频。The video fingerprint matching method provided by this embodiment first extracts the first fingerprint of the first key frame of the target video, and this step is to roughly select the key frame; then the first fingerprint is matched with the fingerprint of each key frame of the video to be matched. By comparison, the second key frame in the video to be matched is obtained, and the second key frame is the key frame with the smallest Euclidean distance from the fingerprint of each key frame in the video to be matched to the first fingerprint; secondly, the second key frame is centered , select the number of key frames contained in the video to be matched forward and backward respectively according to the preset duration, so that the number of key frames contained in the selected video to be matched is equal to the number of key frames of the target video, and this step is to roughly select Based on the precise selection of keyframes. Finally, calculate the Euclidean distances between the fingerprints of all key frames in the target video and the selected key frames in the video to be detected one by one. When each Euclidean distance is less than the threshold, it is determined that the selected video to be matched is a similar video to the target video. .
如图8所示,为本发明一个实施例提供的视频指纹的匹配方法的匹配过程示意图。其中,随机选取目标视频(图8中为10s长度)中的任一个关键帧,利用压缩传感提取指纹,再将该关键帧Si指纹与待匹配视频(图8中为20s长度),每一个关键帧指纹进行逐一比较,找到与Si欧式距离最小的关键帧ti。As shown in FIG. 8 , it is a schematic diagram of a matching process of a video fingerprint matching method provided by an embodiment of the present invention. Among them, randomly select any key frame in the target video (10s length in Figure 8), extract fingerprints by using compressed sensing, and then use the key frame S i fingerprint with the video to be matched (20s length in Figure 8), each time A keyframe fingerprint is compared one by one to find the keyframe t i with the smallest Euclidean distance from S i .
其中,假设阈值为T,则判定此时选取的待匹配视频为目标视频的相似视频需要满足:Among them, assuming that the threshold value is T, it is determined that the video to be matched selected at this time is a similar video of the target video and needs to satisfy:
其中:长度r的目标视频指纹序列,为视频库里待匹配视频的指纹序列。in: target video fingerprint sequence of length r, is the fingerprint sequence of the video to be matched in the video library.
本发明中提供的一个实施例中,利用压缩传感形成的指纹,分别按照粗滤选取和精确选取关键帧并计算指纹搜索对视频关键帧进行选取,通过计算视频关键帧指纹之间的欧式距离判定相似性,减少视频检索期间的计算量,以此提升检索的快速,来达到实时性的要求。In an embodiment provided in the present invention, the fingerprints formed by compressed sensing are used to select key frames according to rough filtering and precise selection respectively, and calculate the fingerprint search to select the video key frames, and calculate the Euclidean distance between the fingerprints of the video key frames. Determine the similarity and reduce the amount of calculation during video retrieval, so as to improve the speed of retrieval and meet the requirements of real-time.
在本发明提供的任一实施例中,优选地,提取目标视频的第一关键帧的第一指纹的步骤具体为:随机选取目标视频中的任一关键帧为第一关键帧。In any embodiment provided by the present invention, preferably, the step of extracting the first fingerprint of the first key frame of the target video is specifically: randomly selecting any key frame in the target video as the first key frame.
在该实施例的技术方案中,提取目标视频的第一关键帧的第一指纹的步骤具体为随机选取目标视频中的任一关键帧为第一关键帧,并且可以在目标视频中随机提取任意数量的第一指纹分别进行匹配,以次来提供匹配检索的相似性。In the technical solution of this embodiment, the step of extracting the first fingerprint of the first key frame of the target video is specifically to randomly select any key frame in the target video as the first key frame, and randomly extract any key frame from the target video. The number of first fingerprints are matched separately to provide similarity for matching retrieval.
在上述任一实施例的技术方案中,优选地,预设时长为3秒。In the technical solutions of any of the above embodiments, preferably, the preset duration is 3 seconds.
在该技术方案中,预设时长为3秒,使得以第二关键帧为中心分别向前和向后按照每3s选取待检测视频所包含的关键帧数目(精确选取关键帧)。In this technical solution, the preset duration is 3 seconds, so that the number of key frames included in the video to be detected is selected (precisely select key frames) forward and backward respectively every 3 seconds with the second key frame as the center.
此外,由于视频数据库里存在着庞大的数据和信息,一段视频会产生多个帧图像,仅仅一个关键帧的指纹不足以表示该段视频指纹的全部信息,且为了达到匹配的可靠性,需要大量的视频帧信息,而且其中会有重叠选择的部分,这样造成巨大的计算负担,达不到实时性的要求。本文发明实施例提出的一种粗精匹配的视频检索方案,通过比较指纹之间的欧式距离,能够减少计算量并满足实时性。In addition, due to the huge amount of data and information in the video database, a video will generate multiple frame images, and the fingerprint of only one key frame is not enough to represent all the information of the video fingerprint, and in order to achieve the reliability of matching, a large amount of video frame information, and there will be overlapping selected parts, which causes a huge computational burden and cannot meet the real-time requirements. A coarse-fine matching video retrieval scheme proposed in the embodiments of the present invention can reduce the amount of calculation and meet the real-time performance by comparing the Euclidean distance between fingerprints.
再一方面,本发明实施例提供了一种视频指纹的匹配装置,视频指纹的匹配装置应用于本发明前述任一项实施例提供的视频指纹的匹配方法。因此,本发明实施例提供的视频指纹的匹配装置具有前述任一实施例提供的视频指纹的匹配方法的全部有益效果,在此不一一列举。In another aspect, an embodiment of the present invention provides a video fingerprint matching apparatus, and the video fingerprint matching apparatus is applied to the video fingerprint matching method provided by any of the foregoing embodiments of the present invention. Therefore, the video fingerprint matching apparatus provided by the embodiment of the present invention has all the beneficial effects of the video fingerprint matching method provided by any of the foregoing embodiments, which will not be listed one by one here.
图9出示了本发明一个实施例提供的视频指纹的匹配装置的框架意图。如图9所示,本实施例提供视频指纹的匹配装置900包括:FIG. 9 shows a schematic diagram of a video fingerprint matching apparatus provided by an embodiment of the present invention. As shown in FIG. 9 , the apparatus 900 for matching video fingerprints provided in this embodiment includes:
提取单元902,用于提取目标视频的第一关键帧的第一指纹;Extraction unit 902, for extracting the first fingerprint of the first key frame of the target video;
比较单元904,用于将第一指纹与待匹配视频的每一个关键帧的指纹进行比较,得出待匹配视频中的第二关键帧,且第二关键帧为待匹配视频中的各个关键帧的指纹到第一指纹的欧式距离最小的关键帧;The comparison unit 904 is used to compare the first fingerprint with the fingerprint of each key frame of the video to be matched, and obtain the second key frame in the video to be matched, and the second key frame is each key frame in the video to be matched The key frame with the smallest Euclidean distance from the fingerprint to the first fingerprint;
选取单元906,用于以第二关键帧为中心,分别向前和向后按照预设时长选取待匹配视频所包含的关键帧数目,使得选取的待匹配视频所包含的关键帧数目与目标视频的关键帧数目相等;The selection unit 906 is used to select the number of key frames contained in the video to be matched forward and backward according to the preset duration respectively, with the second key frame as the center, so that the number of key frames contained in the selected video to be matched is the same as the target video. The number of keyframes is equal;
计算单元908,用于逐一计算目标视频中所有关键帧的指纹和待检测视频中选取的关键帧之间的欧式距离,在各个欧式距离均小于阈值时,判定此时选取的待匹配视频为目标视频的相似视频。The calculation unit 908 is used to calculate the Euclidean distance between the fingerprints of all key frames in the target video and the selected key frame in the video to be detected one by one, and when each Euclidean distance is less than the threshold, it is determined that the selected video to be matched is the target at this time. Similar videos of videos.
本实施例提供的视频指纹的匹配装置,首先通过提取单元902提取目标视频的第一关键帧的第一指纹,该单元为粗略选取关键帧的单元;然后通过比较单元904将第一指纹与待匹配视频的每一个关键帧的指纹进行比较,得出待匹配视频中的第二关键帧,且第二关键帧为待匹配视频中的各个关键帧的指纹到第一指纹的欧式距离最小的关键帧;其次以第二关键帧为中心,通过选取单元906分别向前和向后按照预设时长选取待匹配视频所包含的关键帧数目,使得选取的待匹配视频所包含的关键帧数目与目标视频的关键帧数目相等,该单元即为在粗略选取的基础上进行精确选取关键帧的单元。最后,通过计算单元908逐一计算目标视频中所有关键帧的指纹和待检测视频中选取的关键帧之间的欧式距离,在各个欧式距离均小于阈值时,判定此时选取的待匹配视频为目标视频的相似视频。The video fingerprint matching device provided by this embodiment firstly extracts the first fingerprint of the first key frame of the target video through the extraction unit 902, which is a unit for roughly selecting the key frame; The fingerprints of each key frame of the matching video are compared, and the second key frame in the video to be matched is obtained, and the second key frame is the key of the minimum Euclidean distance from the fingerprint of each key frame in the video to be matched to the first fingerprint. frame; secondly take the second key frame as the center, select the number of key frames included in the video to be matched by selecting unit 906 forward and backward respectively according to the preset duration, so that the number of key frames included in the selected video to be matched and the target The number of key frames in the video is equal, and this unit is the unit for accurately selecting key frames on the basis of rough selection. Finally, the Euclidean distance between the fingerprints of all key frames in the target video and the selected key frame in the video to be detected is calculated by the calculation unit 908 one by one, and when each Euclidean distance is less than the threshold, it is determined that the selected video to be matched at this time is the target Similar videos of videos.
图10出示了本发明与相关技术的实时性分析对比图,如图10所示,在相同情况下,本发明与相关技术的实时性分析对比结果可知,通过本发明提供的视频指纹的匹配方法的实时性明显降低。Fig. 10 shows the real-time analysis and comparison diagram of the present invention and the related art. As shown in Fig. 10, under the same situation, the real-time analysis and comparison results of the present invention and the related art show that the matching method of the video fingerprint provided by the present invention The real-time performance is significantly reduced.
再一方面,本发明实施例提供了一种计算机设备,包括:处理器以及存储有计算机程序指令的存储器;处理器执行计算机程序指令时实现上述任一实施例提供的视频指纹的生成方法或上述任一实施例提供的视频指纹的匹配方法。因此,本发明的实施例提供的计算机设备具有前述任一实施例提供的视频指纹的生产方法及前述任一实施例提供的视频指纹的匹配方法的全部有益效果,在此不一一列举。In another aspect, an embodiment of the present invention provides a computer device, including: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for generating a video fingerprint provided by any of the above embodiments or the above A method for matching video fingerprints provided by any embodiment. Therefore, the computer device provided by the embodiment of the present invention has all the beneficial effects of the video fingerprint production method provided by any of the foregoing embodiments and the video fingerprint matching method provided by any of the foregoing embodiments, which will not be listed one by one here.
再一方面,本发明实施例提供了一种计算机存储介质,计算机存储介质上存储有计算机程序指令,计算机程序指令被处理器执行时实现上述任一实施例提供的视频指纹的生成方法或上述任一实施例提供的视频指纹的匹配方法。因此,本发明的实施例提供的计算机设备具有前述任一实施例提供的视频指纹的生产方法及前述任一实施例提供的视频指纹的匹配方法的全部有益效果,在此不一一列举。In another aspect, an embodiment of the present invention provides a computer storage medium, where computer program instructions are stored on the computer storage medium, and when the computer program instructions are executed by a processor, the method for generating a video fingerprint provided by any of the foregoing embodiments or any of the foregoing embodiments is implemented. An embodiment provides a video fingerprint matching method. Therefore, the computer device provided by the embodiment of the present invention has all the beneficial effects of the video fingerprint production method provided by any of the foregoing embodiments and the video fingerprint matching method provided by any of the foregoing embodiments, which will not be listed one by one here.
图11示出了本发明实施例提供的计算机设备的硬件结构示意图。FIG. 11 shows a schematic diagram of a hardware structure of a computer device provided by an embodiment of the present invention.
该计算机设备可以包括处理器301以及存储有计算机程序指令的存储器302。The computer device may include a processor 301 and a memory 302 storing computer program instructions.
具体地,上述处理器301可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本发明实施例的一个或多个集成电路。Specifically, the above-mentioned processor 301 may include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing the embodiments of the present invention.
存储器302可以包括用于数据或指令的大容量存储器。举例来说而非限制,存储器302可包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器302可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器302可在综合网关容灾设备的内部或外部。在特定实施例中,存储器302是非易失性固态存储器。在特定实施例中,存储器302包括只读存储器(ROM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(PROM)、可擦除PROM(EPROM)、电可擦除PROM(EEPROM)、电可改写ROM(EAROM)或闪存或者两个或更多个以上这些的组合。Memory 302 may include mass storage for data or instructions. By way of example and not limitation, memory 302 may include a Hard Disk Drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive or two or more A combination of more than one of the above. Memory 302 may include removable or non-removable (or fixed) media, where appropriate. Storage 302 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In certain embodiments, memory 302 is non-volatile solid state memory. In particular embodiments, memory 302 includes read only memory (ROM). Where appropriate, the ROM may be a mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically rewritable ROM (EAROM) or flash memory or A combination of two or more of the above.
处理器301通过读取并执行存储器302中存储的计算机程序指令,以实现上述实施例中的任意一种视频指纹的生成方法及视频指纹的匹配方法。The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any of the methods for generating video fingerprints and the method for matching video fingerprints in the foregoing embodiments.
在一个示例中,计算机设备还可包括通信接口303和总线310。其中,如图11所示,处理器301、存储器302、通信接口303通过总线310连接并完成相互间的通信。In one example, the computer device may also include a communication interface 303 and a bus 310 . Among them, as shown in FIG. 11 , the processor 301 , the memory 302 , and the communication interface 303 are connected through the bus 310 and complete the mutual communication.
通信接口303,主要用于实现本发明实施例中各模块、装置、单元和/或设备之间的通信。The communication interface 303 is mainly used to implement communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
总线310包括硬件、软件或两者,将在线数据流量计费设备的部件彼此耦接在一起。举例来说而非限制,总线可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线310可包括一个或多个总线。尽管本发明实施例描述和示出了特定的总线,但本发明考虑任何合适的总线或互连。The bus 310 includes hardware, software, or both, coupling the components of the online data flow metering device to each other. By way of example and not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), HyperTransport (HT) Interconnect, Industry Standard Architecture (ISA) Bus, Infiniband Interconnect, Low Pin Count (LPC) Bus, Memory Bus, Microchannel Architecture (MCA) Bus, Peripheral Component Interconnect (PCI) Bus, PCI-Express (PCI-X) Bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or a combination of two or more of the above. Bus 310 may include one or more buses, where appropriate. Although embodiments of the present invention describe and illustrate a particular bus, the present invention contemplates any suitable bus or interconnect.
需要明确的是,本发明并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本发明的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本发明的精神后,作出各种改变、修改和添加,或者改变步骤之间的顺序。It is to be understood that the present invention is not limited to the specific arrangements and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above-described embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the sequence of steps after comprehending the spirit of the present invention.
以上的结构框图中所示的功能块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本发明的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。机器可读介质的例子包括电子电路、半导体存储器设备、ROM、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。The functional blocks shown in the above structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, elements of the invention are programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted over a transmission medium or communication link by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like. The code segments may be downloaded via a computer network such as the Internet, an intranet, or the like.
还需要说明的是,本发明中提及的示例性实施例,基于一系列的步骤或者装置描述一些方法或系统。但是,本发明不局限于上述步骤的顺序,也就是说,可以按照实施例中提及的顺序执行步骤,也可以不同于实施例中的顺序,或者若干步骤同时执行。It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be different from the order in the embodiments, or several steps may be performed simultaneously.
以上,仅为本发明的具体实施方式,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。应理解,本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。The above are only specific implementations of the present invention, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, modules and units can be referred to in the foregoing method embodiments. The corresponding process is not repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should all cover within the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711337566.3A CN109960960A (en) | 2017-12-14 | 2017-12-14 | Video fingerprint generation and matching method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711337566.3A CN109960960A (en) | 2017-12-14 | 2017-12-14 | Video fingerprint generation and matching method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109960960A true CN109960960A (en) | 2019-07-02 |
Family
ID=67017716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711337566.3A Pending CN109960960A (en) | 2017-12-14 | 2017-12-14 | Video fingerprint generation and matching method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109960960A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143619A (en) * | 2019-12-27 | 2020-05-12 | 咪咕文化科技有限公司 | Video fingerprint generation method, retrieval method, electronic device and medium |
CN111860367A (en) * | 2020-07-24 | 2020-10-30 | 上海连尚网络科技有限公司 | Video repetition identification method, electronic device and computer-readable storage medium |
CN113596575A (en) * | 2021-08-02 | 2021-11-02 | 北京市博汇科技股份有限公司 | Video fingerprint data generation method, comparison method and equipment |
CN114827714A (en) * | 2022-04-11 | 2022-07-29 | 咪咕文化科技有限公司 | Video restoration method based on video fingerprints, terminal equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404750A (en) * | 2008-11-11 | 2009-04-08 | 清华大学 | Video fingerprint generation method and device |
CN102307301A (en) * | 2011-05-30 | 2012-01-04 | 电子科技大学 | Audio-video fingerprint generation method based on key frames |
CN102547477A (en) * | 2012-01-12 | 2012-07-04 | 合肥工业大学 | Video fingerprint method based on contourlet transformation model |
CN103593464A (en) * | 2013-11-25 | 2014-02-19 | 华中科技大学 | Video fingerprint detecting and video sequence matching method and system based on visual features |
CN104239420A (en) * | 2014-10-20 | 2014-12-24 | 北京畅景立达软件技术有限公司 | Video fingerprinting-based video similarity matching method |
CN105279489A (en) * | 2015-10-13 | 2016-01-27 | 成都纽捷那科技有限公司 | Video fingerprint extraction method based on sparse coding |
-
2017
- 2017-12-14 CN CN201711337566.3A patent/CN109960960A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404750A (en) * | 2008-11-11 | 2009-04-08 | 清华大学 | Video fingerprint generation method and device |
CN102307301A (en) * | 2011-05-30 | 2012-01-04 | 电子科技大学 | Audio-video fingerprint generation method based on key frames |
CN102547477A (en) * | 2012-01-12 | 2012-07-04 | 合肥工业大学 | Video fingerprint method based on contourlet transformation model |
CN103593464A (en) * | 2013-11-25 | 2014-02-19 | 华中科技大学 | Video fingerprint detecting and video sequence matching method and system based on visual features |
CN104239420A (en) * | 2014-10-20 | 2014-12-24 | 北京畅景立达软件技术有限公司 | Video fingerprinting-based video similarity matching method |
CN105279489A (en) * | 2015-10-13 | 2016-01-27 | 成都纽捷那科技有限公司 | Video fingerprint extraction method based on sparse coding |
Non-Patent Citations (1)
Title |
---|
孙锐等: "《采用压缩传感的鲁棒的视频指纹方案》", 《中国图象图形学报》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143619A (en) * | 2019-12-27 | 2020-05-12 | 咪咕文化科技有限公司 | Video fingerprint generation method, retrieval method, electronic device and medium |
CN111143619B (en) * | 2019-12-27 | 2023-08-15 | 咪咕文化科技有限公司 | Video fingerprint generation method, search method, electronic device and medium |
CN111860367A (en) * | 2020-07-24 | 2020-10-30 | 上海连尚网络科技有限公司 | Video repetition identification method, electronic device and computer-readable storage medium |
CN111860367B (en) * | 2020-07-24 | 2024-12-27 | 上海连尚网络科技有限公司 | Video repeatability identification method, electronic device and computer-readable storage medium |
CN113596575A (en) * | 2021-08-02 | 2021-11-02 | 北京市博汇科技股份有限公司 | Video fingerprint data generation method, comparison method and equipment |
CN113596575B (en) * | 2021-08-02 | 2023-09-22 | 北京市博汇科技股份有限公司 | A method, comparison method and device for generating video fingerprint data |
CN114827714A (en) * | 2022-04-11 | 2022-07-29 | 咪咕文化科技有限公司 | Video restoration method based on video fingerprints, terminal equipment and storage medium |
CN114827714B (en) * | 2022-04-11 | 2023-11-21 | 咪咕文化科技有限公司 | Video restoration method, terminal equipment and storage media based on video fingerprinting |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Duan et al. | Compact descriptors for visual search | |
CN101523415B (en) | Method of deriving representation of image, method for recognizing and comparing image and device thereof | |
CN109960960A (en) | Video fingerprint generation and matching method and device, computer equipment and storage medium | |
CN110516100A (en) | Method, system, storage medium and electronic device for calculating image similarity | |
Samanta et al. | Analysis of perceptual hashing algorithms in image manipulation detection | |
CN106445939A (en) | Image retrieval, image information acquisition and image identification methods and apparatuses, and image identification system | |
CN109871749B (en) | A deep hash-based pedestrian re-identification method and device, and computer system | |
US10387731B2 (en) | Systems and methods for extracting and matching descriptors from data structures describing an image sequence | |
Varna et al. | Modeling and analysis of correlated binary fingerprints for content identification | |
CN115424051B (en) | A Method for Panoramic Stitching Image Quality Evaluation | |
CN104392207B (en) | A kind of feature coding method recognized for digital image content | |
CN106845516A (en) | A Footprint Image Recognition Method Based on Multi-Sample Joint Representation | |
US8571255B2 (en) | Scalable media fingerprint extraction | |
CN103903271B (en) | Image forensics method for natural image and compressed and tampered image based on DWT | |
CN101464909A (en) | Fast robust approximately same video detection and exclusion method | |
CN111143619B (en) | Video fingerprint generation method, search method, electronic device and medium | |
CN106101732B (en) | A Vector Quantization Scheme for Fast Compression of Hyperspectral Signals | |
CN106952211B (en) | Compact image hashing method based on feature point projection | |
Al-Obaide et al. | Image retrieval based on discrete curvelet transform | |
CN102662955A (en) | Image retrieval method based on fractal image coding | |
CN107563391B (en) | A digital image feature extraction method based on expert model | |
Kale et al. | Copy Move Forgery Detection-A Robust Technique | |
Rathgeb et al. | Image compression in iris-biometric fuzzy commitment schemes | |
Özkan et al. | Visual group binary signature for video copy detection | |
Kekre et al. | Digital image forgery detection using Image hashing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190702 |
|
RJ01 | Rejection of invention patent application after publication |