CN108419092A - A kind of method and device of determining same video - Google Patents
A kind of method and device of determining same video Download PDFInfo
- Publication number
- CN108419092A CN108419092A CN201810353327.5A CN201810353327A CN108419092A CN 108419092 A CN108419092 A CN 108419092A CN 201810353327 A CN201810353327 A CN 201810353327A CN 108419092 A CN108419092 A CN 108419092A
- Authority
- CN
- China
- Prior art keywords
- video
- image
- frame image
- sample point
- moment
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000003860 storage Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 15
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23418—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the invention discloses the device of a kind of method of determining same video and determining same video, manpower can be saved and improve the efficiency of identification same video.This method includes:The first moment of the first video and the second moment of the second video are determined, at the time of first moment is that positive starts in first video, at the time of second moment is that positive starts in second video;Obtain the image of the first sample point, the image of first sample point be in first video the first moment described in distance be the image at the third moment of preset duration;Obtain the image of the second sample point, the image of second sample point be in second video be image mutually in the same time at the time of first sample point;Judge whether the histogram of the image of first sample point is similar to the histogram of the image of second sample point;If so, determining that first video and second video are identical video.
Description
Technical field
The present invention relates to the dresses of the method and determining same video of video field more particularly to a kind of determining same video
It sets.
Background technology
Such as hard disk (Hard Disk) in storage facilities, solid state disk (Solid State Drives, SSD) etc., often
There are one the above identical archiving positions different in storage device to store one due to being the relationship of same files
Above same files and the waste for causing memory space.How this kind of identical archives to be pointed out one by one, and is commented by user
Estimate and whether be intended to by this kind of identical archives for removing, is current urgent problem to be solved to inhibit to store up the waste in space.
In general same portion's film is differentiated in storage, and usual simplest mode is to see whether shelves name is similar simultaneously
Judging these same or similar shelves names, whether archives size is also consistent, wait for above-mentioned film or image pick out after again by
Manually checked one by one to conclude that those are identical film or picture.
However above-mentioned is all to be determined by worker and operation, if film quantity is more and same film is by a lot of portions, so
Seemed to be less susceptible to by artificial treatment and be easy error, perhaps not for their film size of same portion's film or resolution ratio
Together however there is identical substance film, to analyze those in storage for this kind of film is that same film content is more tired
It is difficult
Invention content
In view of the above technical problems, an embodiment of the present invention provides a kind of method of determining same video, determine identical regard
The method and relevant device of frequency can save manpower and improve the efficiency of identification same video.
The first aspect of the embodiment of the present invention provides a kind of method of determining same video, specifically includes:
Determine that the first moment of the first video and the second moment of the second video, first moment are described first
At the time of positive starts in video, at the time of second moment is that positive starts in second video;
Obtain the image of the first sample point, the image of first sample point is in first video the described in distance
One moment was the image at the third moment of preset duration;
Obtain the image of the second sample point, the image of second sample point is in second video with described first
It is image mutually in the same time at the time of sample point;
Judge the histogram of the image of first sample point and the image of second sample point histogram whether
It is similar;
If so, determining that first video and second video are identical video.
Optionally, the first moment of the first video of the determination and the second moment of the second video include:
The third video of the first duration is extracted from first video, first duration is more than preset duration, described
The initial position of first duration is the initial position of the third video;
The 4th video of the second duration is extracted from second video, second duration is more than the preset duration,
And the initial position that the initial position of second duration is the 4th video;
By the straight of the histogram of the first frame image in the third video and the second frame image in the 4th video
Square figure is compared, to judge whether the first frame image and the second frame image are similar, and the first frame image is institute
Any frame image in third video is stated, the second frame image is any frame image in the 4th video;
When the first frame image is similar to the second frame image, then judge first described in the third video
The rear preset number frame figure of the rear preset number frame image of frame image and the second frame image in the 4th video
Seem no similar;
If so, being determined as first moment at the time of by the first frame image;
It is determined as second moment at the time of by the second needle image.
Optionally, when in a later frame image of first frame image described in the third video and the 4th video
When a later frame image dissmilarity of the second frame image, the method further includes:
Then determining first video is different videos from second video.
Optionally, when the diversity factor of the image of first sample point and the histogram of the image of second sample point
When more than the preset value, the method further includes:
Determine that first video and second video are different videos.
Second aspect of the embodiment of the present invention provides a kind of device of determining same video, specifically includes:
Determination unit, second moment at the first moment and the second video for determining the first video, when described first
At the time of quarter is that positive starts in first video, at the time of second moment is that positive starts in second video;
The image of acquiring unit, the image for obtaining the first sample point, first sample point is first video
The middle image apart from the third moment that first moment is preset duration;
The acquiring unit, is additionally operable to obtain the image of the second sample point, and the image of second sample point is described the
In two videos be image mutually in the same time at the time of first sample point;
Judging unit, the image of the histogram and second sample point of the image for judging first sample point
Histogram it is whether similar;
The determination unit is additionally operable to the histogram when the image of first sample point and second sample point
When the histogram of image is similar, determine that first video and second video are identical video.
Optionally, the determination unit is specifically used for:
The third video of the first duration is extracted from first video, first duration is more than preset duration, described
The initial position of first duration is the initial position of the third video;
The 4th video of the second duration is extracted from second video, second duration is more than the preset duration,
And the initial position that the initial position of second duration is the 4th video;
By the straight of the histogram of the first frame image in the third video and the second frame image in the 4th video
Square figure is compared, to judge whether the first frame image and the second frame image are similar, and the first frame image is institute
Any frame image in third video is stated, the second frame image is any frame image in the 4th video;
When the first frame image is similar to the second frame image, then judge first described in the third video
The rear preset number frame figure of the rear preset number frame image of frame image and the second frame image in the 4th video
Seem no similar;
If so, being determined as first moment at the time of by the first frame image;
It is determined as second moment at the time of by the second needle image.
Optionally, the determination unit is additionally operable to:
Described second in a later frame image of first frame image described in the third video and the 4th video
The a later frame image of frame image is dissimilar, it is determined that first video is different videos from second video.
Optionally, the determination unit is additionally operable to:
Described in being more than when the diversity factor of the histogram of the image of the image and second sample point of first sample point
When preset value, determine that first video and second video are different videos.
The third aspect of the embodiment of the present invention provides a kind of processor, and the processor is for running computer program, institute
The step of stating the method that the determination same video as described in above-mentioned any one is executed when computer program operation.
Fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, is stored thereon with computer journey
Sequence, it is characterised in that:The computer program realizes the determination same video described in above-mentioned any one when being executed by processor
Method the step of.
In conclusion in embodiment provided by the invention, determine the first video the first moment and the second video
Two moment obtained the image of the first sample point;Obtain the image of the second sample point;Judge the image of first sample point
Whether histogram is similar to the histogram of the image of second sample point;If so, determine first video with it is described
Second video is identical video.It can thus be seen that by judging whether the histogram of sample point is similar come really in the present invention
Whether fixed two videos are identical video, compared with the existing technology in by manually going to analyze one by one, a large amount of people can be saved
Power can also equally improve efficiency.
Description of the drawings
Fig. 1 is the embodiment schematic diagram of the method for determining same video provided in an embodiment of the present invention;
Fig. 2 is the first moment of the first video of determination provided in an embodiment of the present invention and the second moment of the second video
Embodiment schematic diagram
Fig. 3 is the corresponding histogram of artwork, thumbnail and the low resolution figure of picture provided in an embodiment of the present invention
Figure;
Fig. 4 is the embodiment schematic diagram of the device of determining same video provided in an embodiment of the present invention;
Fig. 5 is the hardware architecture diagram of the device of determining same video provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, the every other reality that those skilled in the art are obtained without creative efforts
Example is applied, shall fall within the protection scope of the present invention.
Core of the invention is to be how to conclude that those are identical videos.First define first herein what cry it is identical
Film, identical film refers to that the content of film is identical and do not lie in its film title or resolution ratio.Such as film
【The fast and the furious】, perhaps it is different names in different areas however they are all same portion's films.On the other hand, no
It manages you and goes to the cinema and see digital high-definition version or be in and see the SD version of network, they are all that same portion's movie contents are
It is that the resolution ratio of film is different.Different resolution ratio is typically shared by higher resolution ratio film for same portion's film
It is bigger to store data.
Below from the angle for the device for determining same video, the method that same video is determined in the present invention is carried out detailed
Illustrate, the device of the determining same video can be server, or the functional unit in the server,
Referring to Fig. 1, Fig. 1 is one embodiment signal of the method for determining same video provided in an embodiment of the present invention
Figure, specifically includes:
101, the first moment of the first video and the second moment of the second video are determined.
In the present embodiment, when it needs to be determined that whether there is identical video in storage device, the dress of same video is determined
Set second moment at the first moment and the second video that can determine the first video first, wherein the first video and second
Video is any two video in storage device, and at the time of the first moment was that positive starts in the first video, the second moment was
At the time of positive starts in second video.
It should be noted that being regarded for the first video and second at the time of the positive described in the embodiment of the present invention starts
At the time of broadcasting content exactly starts in frequency, advertisement is played due to that in certain video files, may start in video, this
What the positive in invention referred at the time of beginning is exactly, at the time of the particular content of video is played after advertisement starting.
The first moment of the first video how is determined to determining the device of same video with reference to Fig. 2 and determines the
Second moment of two videos is specifically described, referring to Fig. 2, Fig. 2 is the first video of determination provided in an embodiment of the present invention
The embodiment schematic diagram at the first moment and the second moment of the second video, specifically includes:
201, the third video of the first duration is extracted from the first video.
It, can be first from the first video when the device for determining same video it needs to be determined that when the first moment in the present embodiment
The third video of the first duration of middle extraction, wherein the first duration is more than preset duration, the initial position of the first duration is regarded with first
The initial position of frequency is identical.That is, the third video is the video more than preset duration after the initial position of the first video.
202, the 4th video of the second duration is extracted from the second video.
It, can be first from the second video when the device for determining same video it needs to be determined that when the second moment in the present embodiment
4th video of the second duration of middle extraction, wherein the second duration is more than preset duration, the initial position of the second duration regards for second
The initial position of frequency.That is, the 4th video is the video more than preset duration after the initial position of the second video, wherein
First duration is identical as the length of the second duration.
It should be noted that the preset duration can be 2 minutes, or 5 minutes, also can also be other certainly
Numerical value, do not limit specifically.
It should be noted that can determine for the first moment by step 201, when can determine second by step 202
It carves, however can first carry out step 201 there is no the limitation of sequencing between the two steps, step can also be first carried out
202, or be performed simultaneously, it does not limit specifically.
203, by the histogram of the second frame image in the histogram and the 4th video of the first frame image in third video
It is compared, to judge whether first frame image and the second frame image are similar, if similar, 204 are thened follow the steps, if not
It is similar, then follow the steps 207.
In the present embodiment, determine that the device of same video can obtain the histogram of first frame image in third video first
Figure obtains the histogram of the second frame image in the 4th video, and first frame image is any frame image in third video, the
Two frame images are any frame image in the 4th video, judge the histogram of the histogram and the second frame image of first frame image later
Whether figure is similar, when similar, thens follow the steps 204, when dissmilarity, thens follow the steps 207.
It should be noted that due to the film in different resolution, same picture perhaps we can encounter following three
Situation is illustrated with reference to Fig. 3, referring to Fig. 3, Fig. 3 is the artwork of picture provided in an embodiment of the present invention, thumbnail
And the histogram that low resolution figure is corresponding, the A in 3 is please referred to, A is the artwork and the corresponding histograms of A of picture
A1, B are that narrow down to 1/5 original, B1 be the corresponding histograms of B to artwork, and C is that artwork resolution ratio is narrowed down to original 1/5,
C1 is the corresponding histograms of C.
Ordinate in histogram is as several numbers, and abscissa is picture numerical value, and in general (8bit) is from left to right
It is dark from 0~255,0 table, 255 indicate all light.It is dark that be from 0~1023,0 table from left to right if it is 10bit be, and 1023
Indicate all light.From the above, it is seen that the histogram base either corresponding to artwork or thumbnail or low resolution figure
This is identical, therefore the histogram by comparing two pictures can determine whether two pictures are identical picture.
204, when first frame image is similar to the second frame image, then judge the rear pre- of first frame image in third video
If whether number frame image and the rear preset number frame image of the second frame image in the 4th video are all similar, if so, executing
Step 205 or step 206, if it is not, thening follow the steps 207.
In the present embodiment, when determining that the device of same video determines that first frame image is similar to the second frame image, then sentence
The second frame in disconnected third video in rear preset number frame (such as 20 frames or 50 frames) image and the 4th video of first frame image
It is similar that whether image corresponds the rear preset number frame ((such as 20 frames or 50 frames)) of image respectively, if so, thening follow the steps
205 or step 206, if it is not, thening follow the steps 207.It, can be right i.e. when determining that first frame image is similar to the second frame image
Whether content in video more subsequent than third video and the 4th video is identical (to be distinguished by extracting frame image therein
One-to-one correspondence is compared), if identical, 205 or step 206 are thened follow the steps, if it is different, thening follow the steps 207.
205, when in third video first frame image after preset number frame image and the 4th video in the second frame image
Rear preset number frame image it is similar, then by first frame image at the time of be determined as the first moment.
In the present embodiment, when the after preset number for determining that the device of same video determines first frame image in third video
When frame image is similar to the rear preset number frame image of the second frame image in the 4th video, you can to determine from first frame figure
It was determined as the first moment as being the image that starts of positive in third video, at the time of at this time can be by first frame image.
206, by the second needle image it was determined as the second moment at the time of.
In the present embodiment, when the after preset number for determining that the device of same video determines first frame image in third video
When frame image is similar to the rear preset number frame image of the second frame image in the 4th video, you can to determine from the second frame figure
It was determined as the second moment as being the image that starts of positive in the 4th video, at the time of at this time can be by the second frame image.
It should be noted that can determine for the first moment by step 205, by step 206, it may be determined that when second
Carve, however the two steps are there is no the limitation of priority execution sequence, can step 205 performed below, step can also be first carried out
206, or be performed simultaneously, it does not limit specifically.
207, other operations are executed.
In the present embodiment, when by the second frame figure in the histogram and the 4th video of the first frame image in third video
When the histogram dissmilarity of picture, it is determined that first frame image is different images from the second frame image, and then can determine third
Video is different videos from the 4th video, and third video is one section in the first video, and the 4th video is in the second video
One section, therefore can also determine that the first video and the second video are different videos;When first frame image in third video
Whether preset number frame image and the rear preset number frame image of the second frame image in the 4th video are all similar afterwards, it is determined that
Third video is different videos from the 4th video.
It should be noted that above in conjunction with Fig. 2 in the embodiment of the present invention, when how to determine the first moment and second
Quarter illustrates, and also also has other methods certainly, does not limit specifically.
102, the image of the first sample point is obtained.
In the present embodiment, determine that the device of same video can obtain the image of the first sample point, such as directly to first
Carry out sectional drawing sometime in video, the image of first sample point be in the first video the first moment of distance be default
The image at the third moment of duration, for example, image when positive starts 10 minutes in the first video.
103, the image of the second sample point is obtained.
In the present embodiment, determine that the device of same video can obtain the image of the second sample point, such as directly to second
Carry out sectional drawing sometime in video, the image of second sample point be in the second video the second moment of distance be default
The image at the third moment of duration, for example, image when positive starts 10 minutes in the second video.
It should be noted that the image of the first sample point can be obtained by step 102, can be obtained by step 103
The image of second sample point, however the limitation of sequence is not carried out between the two steps, step 102 can be first carried out,
Step 103 can be first carried out, or is performed simultaneously, is not limited specifically.
It should be noted that first sample point and the second sample point, can be a sample point, or more
A sample point, does not limit specifically, is corresponded respectively i.e. as long as the first sample point is engraved with the second sample point in sampling
It can.
104, judge the histogram of the image of the first sample point and the histogram of the image of the second sample point whether phase
Seemingly, if so, thening follow the steps 105, if it is not, thening follow the steps 106.
In the present embodiment, determine the device of same video in the image and the second sample point for obtaining the first sample point
After image, it can be determined that whether the difference of the histogram of the image of the histogram of the image of the first sample point and the second sample point
It is similar, if similar, 105 are thened follow the steps, if dissimilar, thens follow the steps 106.Such as extract the image of the first sample point
Some characteristic points in histogram extract the histogram with the image of the first sample point in the histogram of the image of the second sample point
The characteristic point of same position, the two is compared in figure, if different numbers are less than a threshold value (such as 3), it is determined that the
The histogram of the image of one sample point is similar to the histogram of the image of the second sample point, if different numbers are more than a threshold value
(such as 3), it is determined that the histogram of the image of the histogram of the image of the first sample point and the second sample point is dissimilar, when
So also there are other methods, illustrates as example, do not limit herein specifically.
105, determine that the first video and the second video are identical video.
In the present embodiment, when determining that the device of same video determines that the histogram of the image of the first sample point and second takes
When the histogram of the image of sampling point is similar, it is determined that the first video is identical not video with the second video.
106, other operations are executed.
In the present embodiment, when determining that the device of same video determines that the histogram of the image of the first sample point and second takes
When the histogram dissmilarity of the image of sampling point, it is determined that the first video is identical not video with the second video.
In conclusion in embodiment provided by the invention, determine the first video the first moment and the second video
Two moment obtained the image of the first sample point;Obtain the image of the second sample point;Judge the image of first sample point
Whether histogram is similar to the histogram of the image of the second sample point;If so, determining the first video and second video
For identical video.It can thus be seen that determining that two regard by judging whether the histogram of sample point is similar in the present invention
Frequency whether be identical video, compared with the existing technology in by manually going to analyze one by one, a large amount of manpower can be saved, equally
Efficiency can also be improved.
The method of the determination same video in the embodiment of the present invention is described above, the present invention is implemented below
The device of determination same video in example is described, referring to Fig. 4, Fig. 4 is to determine same video in the embodiment of the present invention
One embodiment schematic diagram of device, specifically includes:
Determination unit 401, second moment at the first moment and the second video for determining the first video, described
At the time of one moment was that positive starts in first video, positive starts in the second moment second video
Moment;
The image of acquiring unit 402, the image for obtaining the first sample point, first sample point is described first
The first moment described in distance is the image at the third moment of preset duration in video;
The acquiring unit 401 is additionally operable to obtain the image of the second sample point, and the image of second sample point is institute
State in the second video be image mutually in the same time at the time of first sample point;
Judging unit 403, the figure of the histogram and second sample point of the image for judging first sample point
The histogram of picture it is whether similar;
The determination unit 401 is additionally operable to the histogram when the image of first sample point and second sample point
Image histogram it is similar when, determine that first video and second video are identical video.
Optionally, the determination unit 401 is specifically used for:
The third video of the first duration is extracted from first video, first duration is more than preset duration, described
The initial position of first duration is the initial position of the third video;
The 4th video of the second duration is extracted from second video, second duration is more than the preset duration,
And the initial position that the initial position of second duration is the 4th video;
By the straight of the histogram of the first frame image in the third video and the second frame image in the 4th video
Square figure is compared, to judge whether the first frame image and the second frame image are similar, and the first frame image is institute
Any frame image in third video is stated, the second frame image is any frame image in the 4th video;
When the first frame image is similar to the second frame image, then judge first described in the third video
The rear preset number frame figure of the rear preset number frame image of frame image and the second frame image in the 4th video
Seem no similar;
If so, being determined as first moment at the time of by the first frame image;
It is determined as second moment at the time of by the second needle image.
Optionally, the determination unit 401 is additionally operable to:
Described second in a later frame image of first frame image described in the third video and the 4th video
The a later frame image of frame image is dissimilar, it is determined that first video is different videos from second video.
Optionally, the determination unit 401 is additionally operable to:
Described in being more than when the diversity factor of the histogram of the image of the image and second sample point of first sample point
When preset value, determine that first video and second video are different videos.
In conclusion in embodiment provided by the invention, determine the first video the first moment and the second video
Two moment obtained the image of the first sample point;Obtain the image of the second sample point;Judge the image of first sample point
Whether histogram is similar to the histogram of the image of the second sample point;If so, determining the first video and second video
For identical video.It can thus be seen that determining that two regard by judging whether the histogram of sample point is similar in the present invention
Frequency whether be identical video, compared with the existing technology in by manually going to analyze one by one, a large amount of manpower can be saved, equally
Efficiency can also be improved.
It should be noted that in the above-described embodiments, all emphasize particularly on different fields to the description of each embodiment, some embodiment
In the part that is not described in, may refer to the associated description of other embodiments.
Referring to Fig. 5, the embodiment of the present invention additionally provides a kind of server, the server includes processor 501 and deposits
Reservoir 502, the units such as above-mentioned determination unit, acquiring unit and judging unit are used as program unit storage in memory, by
Processor executes above procedure unit stored in memory to realize corresponding function.
Include kernel in processor 501, is gone in memory to transfer corresponding program unit by kernel.Kernel can be arranged
One or more is updated user data by adjusting kernel parameter.
Memory 502 may include the volatile memory in computer-readable medium, random access memory
(RAM) and/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes extremely
A few storage chip.
An embodiment of the present invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
The method of the existing determining same video.
An embodiment of the present invention provides a kind of processor, the processor is for running program, wherein described program is transported
The method that the determining same video is executed when row.
Present invention also provides a kind of computer program products, when being executed on data processing equipment, are adapted for carrying out just
The method that beginningization executes the determining same video:
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the application
The form of embodiment.Moreover, the application can be used in one or more wherein include computer usable program code calculating
The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is the flow chart of the method for reference the embodiment of the present application, equipment (system) and computer program product
And/or block diagram describes.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer journeys can be provided
Sequence instruct to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with
Generate a machine so that the instruction executed by computer or the processor of other programmable data processing devices generates use
In the function that realization is specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
Device.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction stored in the computer readable memory, which generates, includes
The manufacture of command device, the command device are realized in one flow of flow chart or multiple flows and/or one box of block diagram
Or the function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that
Series of operation steps are executed on computer or other programmable devices to generate computer implemented processing, to calculate
The instruction executed on machine or other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or side
The step of function of being specified in one box of block diagram or multiple boxes.
In a typical configuration, computing device include one or more processors (CPU), input/output interface,
Network interface and memory.
Memory may include the volatile memory in computer-readable medium, random access memory (RAM)
And/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is that computer can
Read the example of medium.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any side
Method or technology realize information storage.Information can be computer-readable instruction, data structure, the module of program or other numbers
According to.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM
(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory
(ROM), electrically erasable programmable read-only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM are read-only
Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or
Other magnetic storage apparatus or any other non-transmission medium can be used for storage and can be accessed by a computing device information.According to
Herein defines, and computer-readable medium does not include temporary computer readable media (transitory media), is such as modulated
Data-signal and carrier wave.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
Process, method, there is also other identical elements in commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program production
Product.Therefore, complete hardware embodiment, complete software embodiment or implementation combining software and hardware aspects can be used in the application
The form of example.Moreover, can be used can in the computer that one or more wherein includes computer usable program code by the application
With the computer program product implemented on storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Form.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments
Invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each implementation
Technical solution recorded in example is modified or equivalent replacement of some of the technical features;And these modification or
It replaces, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method of determining same video, which is characterized in that including:
Determine that the first moment of the first video and the second moment of the second video, first moment are in first video
At the time of positive starts, at the time of second moment is that positive starts in second video;
The image of the first sample point is obtained, the image of first sample point is the first moment described in distance in first video
For the image at the third moment of preset duration;
Obtain the image of the second sample point, the image of second sample point be in second video with first sample point
At the time of for image mutually in the same time;
Judge whether the histogram of the image of first sample point is similar to the histogram of the image of second sample point;
If so, determining that first video and second video are identical video.
2. according to the method described in claim 1, it is characterized in that, the first moment of the first video of the determination and second regarding
Second moment of frequency includes:
Extracting the third video of the first duration from first video, first duration is more than preset duration, and described first
The initial position of duration is the initial position of the third video;
The 4th video of the second duration is extracted from second video, second duration is more than the preset duration, and institute
The initial position for stating the second duration is the initial position of the 4th video;
By the histogram of the second frame image in the histogram of the first frame image in the third video and the 4th video
It is compared, to judge whether the first frame image and the second frame image are similar, the first frame image is described the
Any frame image in three videos, the second frame image are any frame image in the 4th video;
When the first frame image is similar to the second frame image, then first frame image described in the third video is judged
Rear preset number frame image and the 4th video in the second frame image the rear preset number frame image whether
It is similar;
If so, being determined as first moment at the time of by the first frame image;
It is determined as second moment at the time of by the second needle image.
3. according to the method described in claim 2, it is characterized in that, working as the latter of first frame image described in the third video
When a later frame image dissmilarity of frame image and the second frame image in the 4th video, the method further includes:
Then determining first video is different videos from second video.
4. according to the method described in claim 1, it is characterized in that, the image when first sample point is sampled with described second
When the diversity factor of the histogram of the image of point is more than the preset value, the method further includes:
Determine that first video and second video are different videos.
5. a kind of device of determining same video, which is characterized in that including:
Determination unit, at second moment at the first moment and the second video for determining the first video, first moment is
At the time of positive starts in first video, at the time of second moment is that positive starts in second video;
The image of acquiring unit, the image for obtaining the first sample point, first sample point is the first video middle-range
From the image at the third moment that first moment is preset duration;
The acquiring unit is additionally operable to obtain the image of the second sample point, and the image of second sample point regards for described second
In frequency be image mutually in the same time at the time of first sample point;
Judging unit, the histogram of the histogram and the image of second sample point of the image for judging first sample point
It seeks for no similar;
The determination unit is additionally operable to work as the histogram of the image of first sample point and the image of second sample point
When histogram is similar, determine that first video and second video are identical video.
6. device according to claim 5, which is characterized in that the determination unit is specifically used for:
Extracting the third video of the first duration from first video, first duration is more than preset duration, and described first
The initial position of duration is the initial position of the third video;
The 4th video of the second duration is extracted from second video, second duration is more than the preset duration, and institute
The initial position for stating the second duration is the initial position of the 4th video;
By the histogram of the second frame image in the histogram of the first frame image in the third video and the 4th video
It is compared, to judge whether the first frame image and the second frame image are similar, the first frame image is described the
Any frame image in three videos, the second frame image are any frame image in the 4th video;
When the first frame image is similar to the second frame image, then first frame image described in the third video is judged
Rear preset number frame image and the 4th video in the second frame image the rear preset number frame image whether
It is similar;
If so, being determined as first moment at the time of by the first frame image;
It is determined as second moment at the time of by the second needle image.
7. device according to claim 6, which is characterized in that the determination unit is additionally operable to:
The second frame figure in a later frame image of first frame image described in the third video and the 4th video
The a later frame image of picture is dissimilar, it is determined that first video is different videos from second video.
8. device according to claim 5, which is characterized in that the determination unit is additionally operable to:
When the diversity factor of the histogram of the image of the image and second sample point of first sample point is more than described preset
When value, determine that first video and second video are different videos.
9. a kind of processor, which is characterized in that the processor is for running computer program, when the computer program is run
Execute as described in any one of Claims 1-4 based on determination same video method the step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that:The computer program
The step of method of the determination same video as described in any one of Claims 1-4 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810353327.5A CN108419092B (en) | 2018-04-19 | 2018-04-19 | Method and device for determining same video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810353327.5A CN108419092B (en) | 2018-04-19 | 2018-04-19 | Method and device for determining same video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108419092A true CN108419092A (en) | 2018-08-17 |
CN108419092B CN108419092B (en) | 2021-12-10 |
Family
ID=63135877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810353327.5A Active CN108419092B (en) | 2018-04-19 | 2018-04-19 | Method and device for determining same video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108419092B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111008666A (en) * | 2019-12-05 | 2020-04-14 | 秒针信息技术有限公司 | Video similarity determination method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009026803A1 (en) * | 2007-08-27 | 2009-03-05 | Yuvad Technologies Co., Ltd. | A method for identifying motion video content |
CN104216925A (en) * | 2013-06-05 | 2014-12-17 | 中国科学院声学研究所 | Repetition deleting processing method for video content |
CN105468755A (en) * | 2015-11-27 | 2016-04-06 | 东方网力科技股份有限公司 | Video screening and storing method and device |
CN105657547A (en) * | 2015-12-31 | 2016-06-08 | 北京奇艺世纪科技有限公司 | Detection method and device for similar video and pirated video |
CN105681899A (en) * | 2015-12-31 | 2016-06-15 | 北京奇艺世纪科技有限公司 | Method and device for detecting similar video and pirated video |
-
2018
- 2018-04-19 CN CN201810353327.5A patent/CN108419092B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009026803A1 (en) * | 2007-08-27 | 2009-03-05 | Yuvad Technologies Co., Ltd. | A method for identifying motion video content |
CN104216925A (en) * | 2013-06-05 | 2014-12-17 | 中国科学院声学研究所 | Repetition deleting processing method for video content |
CN105468755A (en) * | 2015-11-27 | 2016-04-06 | 东方网力科技股份有限公司 | Video screening and storing method and device |
CN105657547A (en) * | 2015-12-31 | 2016-06-08 | 北京奇艺世纪科技有限公司 | Detection method and device for similar video and pirated video |
CN105681899A (en) * | 2015-12-31 | 2016-06-15 | 北京奇艺世纪科技有限公司 | Method and device for detecting similar video and pirated video |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111008666A (en) * | 2019-12-05 | 2020-04-14 | 秒针信息技术有限公司 | Video similarity determination method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108419092B (en) | 2021-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140219633A1 (en) | Systems and Methods for Performing Selective Video Rendering | |
CN104572056B (en) | A kind of method and device of page comparison | |
BRPI0721462A2 (en) | 2d image region classification system and method for 2d to 3d conversion | |
CN108492342B (en) | Method, device, processor, storage medium and terminal for merging broken graphs | |
CN114708287A (en) | Shot boundary detection method, device and storage medium | |
EP2779104A2 (en) | Preserving and reusing intermediate data | |
CN106354587A (en) | Mirror image server and method for exporting mirror image files of virtual machine | |
CN116847043A (en) | Mixed shear video generation method, system, storage medium and electronic equipment | |
CN104636218B (en) | Data reconstruction method and device | |
CN113448946B (en) | Data migration method and device and electronic equipment | |
Spina et al. | Point cloud segmentation for cultural heritage sites | |
CN108419092A (en) | A kind of method and device of determining same video | |
EP2791778A1 (en) | Method for real-time processing of a video sequence on mobile terminals | |
CN112446361A (en) | Method and equipment for cleaning training data | |
US10217489B2 (en) | Systems and methods for media track management in a media editing tool | |
CN103503469B (en) | The categorizing system of element stage by stage | |
KR20150089598A (en) | Apparatus and method for creating summary information, and computer readable medium having computer program recorded therefor | |
CN110457998A (en) | Image data correlating method and equipment, data processing equipment and medium | |
US11594259B1 (en) | Simplifying digital content layers of an editing sequence | |
CN113569862B (en) | Method and system for secondary cutting of atlas | |
CN105306961B (en) | A kind of method and device for taking out frame | |
CN111028135B (en) | Image file repairing method | |
CN109413350B (en) | Remote desktop video key frame creation method and device | |
CN114207640A (en) | High resolution movie creation and management system | |
KR20190060027A (en) | Method and apparatus for editing video based on character emotions |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |