CN106210718B - Scene switching detection method and device in a kind of video sequence - Google Patents

Scene switching detection method and device in a kind of video sequence Download PDF

Info

Publication number
CN106210718B
CN106210718B CN201610650437.9A CN201610650437A CN106210718B CN 106210718 B CN106210718 B CN 106210718B CN 201610650437 A CN201610650437 A CN 201610650437A CN 106210718 B CN106210718 B CN 106210718B
Authority
CN
China
Prior art keywords
frame
complexity
video sequence
scene switching
difference
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.)
Active
Application number
CN201610650437.9A
Other languages
Chinese (zh)
Other versions
CN106210718A (en
Inventor
于江鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feihu Information Technology Tianjin Co Ltd
Original Assignee
Feihu Information Technology Tianjin Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Feihu Information Technology Tianjin Co Ltd filed Critical Feihu Information Technology Tianjin Co Ltd
Priority to CN201610650437.9A priority Critical patent/CN106210718B/en
Publication of CN106210718A publication Critical patent/CN106210718A/en
Application granted granted Critical
Publication of CN106210718B publication Critical patent/CN106210718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/142Detection of scene cut or scene change
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the invention discloses scene switching detection methods in a kind of video sequence, comprising: obtains video sequence, the video sequence includes at least the identical frame of two resolution ratio being arranged in order;The inter-frame complexity in the frame of first frame between complexity and the first frame and the second frame is obtained, the first frame is the frame in the video sequence, and second frame is another frame in the video sequence;The difference for obtaining complexity and the inter-frame complexity in the frame, it is poor to obtain complexity;According to the corresponding relationship between complexity difference and preset value, judge the first frame whether be scene switching in the video sequence frame.Scene switching detection method in video sequence provided in an embodiment of the present invention can be accurately judged to the frame that occurrence scene switches in video sequence, improve the efficiency of Video coding.

Description

Scene switching detection method and device in a kind of video sequence
Technical field
The present invention relates to scene switching detection method and dresses in technical field of video processing more particularly to a kind of video sequence It sets.
Background technique
Frame is the basic unit for forming video image.In Video coding, frame type can be set as I frame, P frame or B Frame.Intracoded frame (I frame) is the coded frame of a full frame data compression.Only use the data of I frame with regard to restructural complete graph when decoding Picture is generated without necessarily referring to other pictures.The picture difference of present frame and I frame or former frame is only preserved in prediction frame (P frame) Data;What bi-directional predicted frames (B frame) recorded is the difference of present frame and before and after frames.It usually in the video sequence can be in two kinds of feelings I frame: the generation of the needs, scene switching of random access is set under condition.It can be seen from the above, detecting that scene is cut in the video sequence The frame changed sets it to I frame, most important for improving code efficiency.
Therefore, those skilled in the art need to provide scene switching detection method and device in a kind of video sequence, can The frame that occurrence scene switches in accurate judgement video sequence.
Summary of the invention
In order to solve prior art problem, the present invention provides scene switching detection method and dresses in a kind of video sequence Set, can in accurate judgement video sequence occurrence scene switching frame.
Scene switching detection method in a kind of video sequence provided in an embodiment of the present invention, comprising:
Video sequence is obtained, the video sequence includes at least the identical frame of two resolution ratio being arranged in order;
Inter-frame complexity in the frame of acquisition first frame between complexity and the first frame and the second frame, described first Frame is the frame in the video sequence, and second frame is another frame in the video sequence;
The difference for obtaining complexity and the inter-frame complexity in the frame, it is poor to obtain complexity;
According to the corresponding relationship between the complexity difference and preset value, judge whether the first frame is the video sequence The frame of scene switching in column.
Preferably, whether the corresponding relationship according between the complexity difference and preset value, judge the first frame For the frame of scene switching in the video sequence, specifically include:
Complexity in the frame is poor divided by the complexity, obtain the first complexity quotient;
When the first complexity quotient is greater than the first preset threshold, the first frame is that scene is cut in the video sequence The frame changed.
Preferably, whether the corresponding relationship according between the complexity difference and preset value, judge the first frame For the frame of scene switching in the video sequence, specifically include:
The inter-frame complexity is poor divided by the complexity, obtain the second complexity quotient;
When the second complexity quotient is greater than the second preset threshold, the first frame is that scene is cut in the video sequence The frame changed.
Preferably, whether the corresponding relationship according between the complexity difference and preset value, judge the first frame For the frame of scene switching in the video sequence, specifically include:
By the X power of complexity in the frame divided by the first value, third complexity quotient is obtained, first value is equal to described The Y power of complexity difference, Y are greater than 0;
When the third complexity quotient is greater than third predetermined threshold value, the first frame is that scene is cut in the video sequence The frame changed.
Preferably, whether the corresponding relationship according between the complexity difference and preset value, judge the first frame For the frame of scene switching in the video sequence, specifically include:
By the M power of the inter-frame complexity divided by second value, the 4th complexity quotient is obtained, the second value is equal to described The Nth power of complexity difference, N are greater than 0;
When the 4th complexity quotient is greater than four preset thresholds, the first frame is that scene is cut in the video sequence The frame changed.
The embodiment of the invention also provides scene change detection devices in a kind of video sequence, comprising: first acquisition unit, Second acquisition unit and detection unit;
The first acquisition unit, for obtaining video sequence, the video sequence includes at least two and is arranged in order The identical frame of resolution ratio;
The second acquisition unit, in the frame for obtaining first frame between complexity and the first frame and the second frame Inter-frame complexity, the first frame be the video sequence in a frame, second frame be the video sequence in it is another One frame;
The second acquisition unit is also used to obtain the difference of complexity and the inter-frame complexity in the frame, obtains Complexity is poor;
The detection unit, for judging described first according to the corresponding relationship between the complexity difference and preset value Frame whether be scene switching in the video sequence frame.
Preferably, the detection unit, comprising: the first computation subunit, the first judgment sub-unit and first determine that son is single Member;
First computation subunit, it is multiple for complexity in the frame is poor divided by the complexity, obtaining first Miscellaneous degree quotient;
First judgment sub-unit, for judging whether the first complexity quotient is greater than the first preset threshold;
Described first determines subelement, for judging that the first complexity quotient is greater than institute when first judgment sub-unit When stating the first preset threshold, determine that the first frame is the frame of scene switching in the video sequence.
Preferably, the detection unit, comprising: the second computation subunit, the second judgment sub-unit and second determine that son is single Member;
Second computation subunit, it is poor divided by the complexity by the inter-frame complexity to be used for, and obtains the second complexity Spend quotient;
Second judgment sub-unit, for judging whether the second complexity quotient is greater than the second preset threshold;
Described second determines subelement, for judging that the second complexity quotient is greater than institute when second judgment sub-unit When stating the second preset threshold, determine that the first frame is the frame of scene switching in the video sequence.
Preferably, the detection unit, comprising: third computation subunit, third judgment sub-unit and third determine that son is single Member;
The third computation subunit, for the X power of complexity in the frame divided by the first value, to be obtained third complexity Quotient is spent, first value is equal to the Y power of the complexity difference, and Y is greater than 0;
The third judgment sub-unit, for judging whether the third complexity quotient is greater than third predetermined threshold value;
The third determines subelement, for judging that the third complexity quotient is greater than institute when the third judgment sub-unit When stating third predetermined threshold value, determine that the first frame is the frame of scene switching in the video sequence.
Preferably, the detection unit, comprising: the 4th computation subunit, the 4th judgment sub-unit and the 4th determine that son is single Member;
4th computation subunit, for the M power of the inter-frame complexity divided by second value, to be obtained the 4th complexity Quotient is spent, the second value is equal to the Nth power of the complexity difference, and N is greater than 0;
4th judgment sub-unit, for judging whether the 4th complexity quotient is greater than the 4th preset threshold;
Described 4th determines subelement, for judging that the 4th complexity quotient is greater than institute when the 4th judgment sub-unit When stating four preset thresholds, determine that the first frame is the frame of scene switching in the video sequence.
Compared with prior art, the present invention has at least the following advantages:
Scene switching detection method in video sequence provided in an embodiment of the present invention, after getting video sequence, respectively Interframe in the frame of the identical each frame of calculating resolution between complexity and its reference frame different from position on time shaft is multiple Miscellaneous degree.Due to when in video a certain frame occurrence scene conversion when, relative to there is no the frame of scene switching, the interframe of the frame The proportionate relationship of complexity can change in complexity and frame.At this point, can be multiple according to complexity in the frame of each frame and interframe Corresponding relationship between the difference and preset value of miscellaneous degree, judge the frame whether be scene switching in video sequence frame.The present invention is real Scene switching detection method in the video sequence of example offer is provided, can be accurately judged to what occurrence scene in video sequence switched Frame improves the efficiency of Video coding.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow diagram of scene switching detection method embodiment one in video sequence provided by the invention;
Fig. 2 is the flow diagram of scene switching detection method embodiment two in video sequence provided by the invention;
Fig. 3 is the flow diagram of scene switching detection method embodiment three in video sequence provided by the invention;
Fig. 4 is the structural schematic diagram of scene change detection Installation practice one in video sequence provided by the invention;
Fig. 5 is the structural schematic diagram of scene change detection Installation practice two in video sequence provided by the invention;
Fig. 6 is the structural schematic diagram of scene change detection Installation practice three in video sequence provided by the invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Firstly the need of explanation, require in an encoding process calculate present frame autocorrelation and present frame and Cross correlation between reference frame (an other frame different from current frame position on time shaft).In the auto-correlation for calculating present frame Property when, can be used original resolution video image or reduce resolution ratio down-sampling video image, to carry out frame Interior prediction.Then the sum of quadratic sum or the absolute value of intra prediction are calculated, with complicated in this frame to describe present frame Degree.Interframe cross correlation between present frame and reference frame may be used the inter-prediction between present frame and reference frame and be obtained Inter prediction residue quadratic sum or the sum of absolute value describe.Then, the quadratic sum of Inter prediction residue obtained Perhaps the sum of absolute value need further with the quadratic sum of intra prediction obtained when intra prediction or absolute value it With compare, value lesser in the two is called inter-frame complexity.It should also be noted that, those skilled in the art can also adopt The inter-frame complexity in the frame of present frame between complexity and present frame and reference frame is calculated with other methods, herein no longer one by one It enumerates.
Embodiment of the method one:
Referring to Fig. 1, which is that the process of scene switching detection method embodiment one in video sequence provided by the invention is shown It is intended to.
Scene switching detection method in video sequence provided in this embodiment, comprising:
S101: obtaining video sequence, and the video sequence includes at least the identical frame of two resolution ratio being arranged in order;
It is understood that video was made of the still picture that multiple temporally axis arrange, each still picture is One frame.
S102: the inter-frame complexity in the frame of first frame between complexity and the first frame and the second frame, institute are obtained Stating first frame is the frame in the video sequence, and second frame is another frame in the video sequence;
It should be noted that the second frame can be the forward direction frame adjacent thereto of first frame, before being also possible to first frame To with its non-conterminous frame.
S103: the difference of complexity and the inter-frame complexity in the frame is obtained, it is poor to obtain complexity;
It is understood that when calculating inter-frame complexity, by the quadratic sum of Inter prediction residue obtained or absolutely It further compares with the sum of the quadratic sum of intra prediction obtained when intra prediction or absolute value to the sum of value, it will Lesser value is called inter-frame complexity in the two.Therefore, in the frame of first frame complexity always greater than first frame and reference frame Between inter-frame complexity, i.e., the complexity difference of first frame be greater than zero.
S104: according to the corresponding relationship between the complexity difference and preset value, judge whether the first frame is described The frame of scene switching in video sequence.
Those skilled in the art can specifically set preset value according to the actual situation.For example, preset value can be detection frame Complexity or inter-frame complexity etc. in frame.
It should be noted that one outstanding feature is when actual scene switching occurs for frame a certain in video Present frame different cross correlation very littles with reference to interframe with a certain position on time shaft, i.e., between present frame and reference frame Inter-frame complexity is larger.If there is no when scene switching, since the cross correlation of reference frame and present frame is larger, when Previous frame and the inter-frame complexity with reference to interframe are smaller.In this way, for first frame, when occurrence scene switches between the second frame Inter-frame complexity when inter-frame complexity is greater than no scene switching between the second frame.And for same frame, the frame The complexity that complexity difference when for scene switching frame is greater than when the frame is not scene conversion frame is poor.That is, occurrence scene switching The complexity difference of frame is less than that there is no the complexity of scene switching frame is poor.
It therefore, can corresponding relationship (such as lines such as size using preset value as standard, between more complicated degree difference and preset value Other functional relations such as sexual intercourse or proportionate relationship) come judge first frame whether be scene switching in video frame.Due at certain In a little situations, the difference in the frame of scene switching frame between complexity and inter-frame complexity is smaller, multiple in frame compared to only comparing Size relation between miscellaneous degree and inter-frame complexity come judge first frame whether be scene switching in video sequence frame, it is relatively pre- If the accuracy rate of scene change detection can be improved in the corresponding relationship between value and complexity difference.
It should also be noted that, since the calculating of complexity and inter-frame complexity in frame is influenced by video resolution, this Scene switching detection method can be unfolded under the original resolution of video sequence image in the video sequence that embodiment provides, It can be carried out in the down-sampled images for reducing resolution ratio.But two frames that scene change detection is related to, i.e. first frame and The resolution ratio of second frame is identical.
Scene switching detection method calculates separately after getting video sequence in video sequence provided in this embodiment Inter-frame complexity in the frame of the identical each frame of resolution ratio between complexity and its reference frame different from position on time shaft. Since when a certain frame occurrence scene conversion in video, relative to there is no the frame of scene switching, the interframe of the frame is complicated The proportionate relationship of complexity can change in degree and frame.At this point, can be according to complexity and inter-frame complexity in the frame of each frame Difference and preset value between corresponding relationship, judge the frame whether be scene switching in video sequence frame.The present embodiment provides Video sequence in scene switching detection method, the frame that occurrence scene in video sequence switches can be accurately judged to, improve view The efficiency of frequency coding.
Embodiment of the method two:
Referring to fig. 2, which is that the process of scene switching detection method embodiment two in video sequence provided by the invention is shown It is intended to.Compared to Fig. 1, scene change detection side in the more specific and high accuracy video sequence of one kind is present embodiments provided How method illustrates according to the corresponding relationship between the complexity difference and preset value, judges whether the first frame is institute State the frame of scene switching in video sequence.
The step S201-S203 of scene switching detection method is implemented respectively at method in video sequence provided in this embodiment The S101-S103 of example one is identical, and details are not described herein.
Scene switching detection method in video sequence provided in this embodiment, further includes:
S204: complexity in the frame is poor divided by the complexity, obtain the first complexity quotient;
At this moment, preset value is complexity in the frame of first frame.
S205: when the first complexity quotient is greater than the first preset threshold, the first frame is in the video sequence The frame of scene switching.
Using complexity difference as divisor, using complexity in frame as dividend, after obtaining complexity quotient, due to being field when first frame When scape switch frame, complexity quotient is larger;And when first frame is not scene switching frame, complexity quotient is smaller.In this way, by complexity Quotient is compared with preset threshold, so that it may judge whether first frame is scene switching frame.
What needs to be explained here is that when in inter-frame complexity and frame complexity relatively in the case where, interframe is used only The accuracy that the size relation of complexity and complexity in frame carries out the obtained result of scene change detection is lower.Therefore, it adopts Judged with above-mentioned steps first frame whether be scene switching in video sequence frame, using complexity difference as divisor, with multiple in frame Miscellaneous degree is dividend, may make the first complexity quotient to have a bigger variation range in different situations, more accurately sentences Disconnected first frame whether be scene switching in video sequence frame.
In addition, scene switching detection method in video sequence provided in this embodiment, can also pass through after step S203 Following steps come judge first frame whether be scene switching in video sequence frame:
S206: by the X power of complexity in the frame divided by the first value, third complexity quotient, first value etc. are obtained In the Y power of the complexity difference, Y is greater than 0;
S207: when the third complexity quotient is greater than third predetermined threshold value, the first frame is in the video sequence The frame of scene switching.
It should be noted that for example, when Y is numerical value more than or equal to 0.1, using the Y power of complexity difference for except After number, when first frame is scene switching frame, obtained third complexity quotient and first frame obtains when not being scene switching frame The gap expanding of third complexity quotient can more accurately distinguish two kinds of different situations (whether being scene switching frame).
It should be noted that complexity and inter-frame complexity are related to the resolution ratio of frame in frame.Therefore, when first frame and When the resolution ratio of second frame is identical, the first complexity quotient and the second complexity quotient are unrelated with resolution ratio.At this point, those skilled in the art The first preset threshold and third predetermined threshold value can be set according to actual conditions in member, must be not necessarily according to next with the resolution ratio of video Setting.
There is also the need to explanation, those skilled in the art can also be tested using other methods according to the actual situation Card, will not enumerate herein.
Embodiment of the method three:
Referring to Fig. 3, which is that the process of scene switching detection method embodiment three in video sequence provided by the invention is shown It is intended to.Compared to Fig. 1, scene change detection side in the more specific and high accuracy video sequence of one kind is present embodiments provided How method illustrates according to the corresponding relationship between complexity difference and preset value, judges whether the first frame is the view The frame of scene switching in frequency sequence.
The step S301-S303 of scene switching detection method is implemented respectively at method in video sequence provided in this embodiment The S101-S103 of example one is identical, and details are not described herein.
Scene switching detection method in video sequence provided in this embodiment, further includes:
S304: the inter-frame complexity is poor divided by the complexity, obtain the second complexity quotient;
At this point, preset value is the inter-frame complexity of first frame.
S305: when the second complexity quotient is greater than the second preset threshold, the first frame is in the video sequence The frame of scene switching.
It is understood that using inter-frame complexity as dividend, using complexity difference as the concrete principle of divisor and in frame Complexity is dividend, and similar as the principle of divisor using complexity difference, details are not described herein.
In addition, scene switching detection method in video sequence provided in this embodiment, can also pass through after step S303 Following steps come judge first frame whether be scene switching in video sequence frame:
S306: by the M power of complexity in the frame divided by second value, the 4th complexity quotient, the second value etc. are obtained In the Nth power of the complexity difference, N is greater than 0;
S307: when the 4th complexity quotient is greater than four preset thresholds, the first frame is in the video sequence The frame of scene switching.
It is understood that for example, when N is numerical value more than or equal to 0.1, using the Nth power of complexity difference for except After number, when first frame is scene switching frame, obtained the 4th complexity quotient and first frame obtains when not being scene switching frame The gap expanding of 4th complexity quotient can more accurately distinguish two kinds of different situations (whether being scene switching frame).
It should be noted that complexity and inter-frame complexity are related to the resolution ratio of frame in frame.Therefore, when first frame and When the resolution ratio of second frame is identical, the second complexity quotient and the 4th complexity quotient are unrelated with resolution ratio.At this point, those skilled in the art The second preset threshold and the 4th preset threshold can be set according to actual conditions in member, must be not necessarily according to next with the resolution ratio of video Setting.
There is also the need to explanation, those skilled in the art can also be tested using other methods according to the actual situation Card, will not enumerate herein.
Scene switching detection method in the video sequence provided based on the above embodiment, the embodiment of the invention also provides one Scene change detection device in kind video sequence.
Installation practice one:
Referring to fig. 4, which is the schematic diagram of scene change detection Installation practice one in video sequence provided by the invention.
Scene change detection device in video sequence provided in this embodiment, comprising: first acquisition unit 100, second are obtained Take unit 200 and detection unit 300;
The first acquisition unit 100, for obtaining video sequence, the video sequence includes at least two and arranges in order The identical frame of the resolution ratio of column;
The second acquisition unit 200, complexity and the first frame and the second frame in the frame for obtaining first frame Between inter-frame complexity, the first frame be the video sequence in a frame, second frame be the video sequence in Another frame;
The second acquisition unit 200, is also used to obtain the difference of complexity and the inter-frame complexity in the frame, obtains It is poor to complexity;
The detection unit 300, for according to the corresponding relationship between complexity difference and preset value, judging described the One frame whether be scene switching in the video sequence frame.
Scene change detection device in video sequence provided in this embodiment, after acquiring unit gets video sequence, Computing unit calculates separately complexity and its reference frame different from position on time shaft in the frame of the identical each frame of resolution ratio Between inter-frame complexity.Due to when in video a certain frame occurrence scene conversion when, relative to there is no scene switchings Frame, the proportionate relationship of complexity can change in the inter-frame complexity and frame of the frame.At this point, detection unit is according to each frame Corresponding relationship in frame between complexity and the difference and preset value of inter-frame complexity judges whether the frame is scene in video sequence The frame of switching.Scene change detection device in video sequence provided in this embodiment can be accurately judged to send out in video sequence The frame of raw scene switching, improves the efficiency of Video coding.
Installation practice two:
Referring to Fig. 5, which is the schematic diagram of scene change detection Installation practice two in video sequence provided by the invention. Compared to Fig. 4, scene change detection device in the more specific and high accuracy rate video sequence of one kind is present embodiments provided.
In scene change detection device provided in this embodiment, the detection unit 300, comprising: the first computation subunit 301a, the first judgment sub-unit 302a and first determine subelement 303a;
The first computation subunit 301a, it is poor divided by the complexity by complexity in the frame to be used for, and obtains first Complexity quotient;
The first judgment sub-unit 302a, for judging whether the first complexity quotient is greater than the first preset threshold;
Described first determines subelement 303a, for judging first complexity as the first judgment sub-unit 302a When quotient is greater than the first preset threshold, determine that the first frame is the frame of scene switching in the video sequence.
In addition, in order to further increase the accuracy of detection, it is described in scene change detection device provided in this embodiment Detection unit 300 can also include: that third computation subunit 301c, third judgment sub-unit 302c and third determine subelement 303c;
The third computation subunit 301c, for the X power of complexity in the frame divided by the first value, to be obtained third Complexity quotient, first value are equal to the Y power of the complexity difference, and Y is greater than 0;
The third judgment sub-unit 302c, for judging whether the third complexity quotient is greater than third predetermined threshold value;
The third determines subelement 303c, for judging the third complexity as the third judgment sub-unit 302c When quotient is greater than the third predetermined threshold value, determine that the first frame is the frame of scene switching in the video sequence.
Installation practice three:
Referring to Fig. 6, which is the schematic diagram of scene change detection Installation practice three in video sequence provided by the invention. Compared to Fig. 4, scene change detection device in the more specific and high accuracy rate video sequence of one kind is present embodiments provided.
In scene change detection device provided in this embodiment, the detection unit, comprising: the second computation subunit 301b, the second judgment sub-unit 302b and second determine subelement 303b;
The second computation subunit 301b, it is poor divided by the complexity by the inter-frame complexity to be used for, and obtains second Complexity quotient;
The second judgment sub-unit 302b, for judging whether the second complexity quotient is greater than the second preset threshold;
Described second determines subelement 303b, for judging second complexity as the second judgment sub-unit 302b When quotient is greater than the second preset threshold, determine that the first frame is the frame of scene switching in the video sequence.
It should be noted that complexity and inter-frame complexity are related to the resolution ratio of frame in frame.Therefore, when first frame and When the resolution ratio of second frame is identical, complexity quotient is unrelated with resolution ratio.At this point, those skilled in the art can set according to the actual situation Fixed first preset threshold and the second preset threshold must not necessarily be set so that the resolution ratio of video is foundation.
In addition, in order to further increase the accuracy of detection, it is described in scene change detection device provided in this embodiment Detection unit can also include: that the 4th computation subunit 301d, the 4th judgment sub-unit 302d and the 4th determine subelement 302d;
The 4th computation subunit 301d, for the M power of complexity in the frame divided by second value, to be obtained the 4th Complexity quotient, the second value are equal to the Nth power of the complexity difference, and N is greater than 0;
The 4th judgment sub-unit 302d, for judging whether the 4th complexity quotient is greater than the 4th preset threshold;
Described 4th determines subelement 302d, for judging the 4th complexity as the 4th judgment sub-unit 302d When quotient is greater than four preset threshold, determine that the first frame is the frame of scene switching in the video sequence.
There is also the need to explanation, those skilled in the art can also be tested using other methods according to the actual situation Card, will not enumerate herein.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is said Bright is the difference from other embodiments, and same and similar part may refer to each other between each embodiment.For implementing For system disclosed in example or device, since it is corresponded to the methods disclosed in the examples, so be described relatively simple, it is related Place is referring to method part illustration.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are separated with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The above described is only a preferred embodiment of the present invention, being not intended to limit the present invention in any form.Though So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention.It is any to be familiar with those skilled in the art Member, without departing from the scope of the technical proposal of the invention, all using the methods and technical content of the disclosure above to the present invention Technical solution makes many possible changes and modifications or equivalent example modified to equivalent change.Therefore, it is all without departing from The content of technical solution of the present invention, according to the technical essence of the invention any simple modification made to the above embodiment, equivalent Variation and modification, all of which are still within the scope of protection of the technical scheme of the invention.

Claims (8)

1. scene switching detection method in a kind of video sequence characterized by comprising
Video sequence is obtained, the video sequence includes at least the identical frame of two resolution ratio being arranged in order;
The inter-frame complexity in the frame of first frame between complexity and the first frame and the second frame is obtained, the first frame is A frame in the video sequence, second frame are another frame in the video sequence;
The difference for obtaining complexity and the inter-frame complexity in the frame, it is poor to obtain complexity;
According to the corresponding relationship between the complexity difference and preset value, judge whether the first frame is in the video sequence The frame of scene switching;
The corresponding relationship according between the complexity difference and preset value, judges whether the first frame is the video sequence The frame of scene switching in column, specifically includes:
Complexity in the frame is poor divided by the complexity, obtain the first complexity quotient;
When the first complexity quotient is greater than the first preset threshold, the first frame is scene switching in the video sequence Frame.
2. scene switching detection method in a kind of video sequence characterized by comprising
Video sequence is obtained, the video sequence includes at least the identical frame of two resolution ratio being arranged in order;
The inter-frame complexity in the frame of first frame between complexity and the first frame and the second frame is obtained, the first frame is A frame in the video sequence, second frame are another frame in the video sequence;
The difference for obtaining complexity and the inter-frame complexity in the frame, it is poor to obtain complexity;
According to the corresponding relationship between the complexity difference and preset value, judge whether the first frame is in the video sequence The frame of scene switching;
The corresponding relationship according between the complexity difference and preset value, judges whether the first frame is the video sequence The frame of scene switching in column, specifically includes:
The inter-frame complexity is poor divided by the complexity, obtain the second complexity quotient;
When the second complexity quotient is greater than the second preset threshold, the first frame is scene switching in the video sequence Frame.
3. scene switching detection method in a kind of video sequence characterized by comprising
Video sequence is obtained, the video sequence includes at least the identical frame of two resolution ratio being arranged in order;
The inter-frame complexity in the frame of first frame between complexity and the first frame and the second frame is obtained, the first frame is A frame in the video sequence, second frame are another frame in the video sequence;
The difference for obtaining complexity and the inter-frame complexity in the frame, it is poor to obtain complexity;
According to the corresponding relationship between the complexity difference and preset value, judge whether the first frame is in the video sequence The frame of scene switching;
The corresponding relationship according between the complexity difference and preset value, judges whether the first frame is the video sequence The frame of scene switching in column, specifically includes:
By the X power of complexity in the frame divided by the first value, third complexity quotient is obtained, first value is equal to the complexity The Y power of difference is spent, Y is greater than 0;
When the third complexity quotient is greater than third predetermined threshold value, the first frame is scene switching in the video sequence Frame.
4. scene switching detection method in a kind of video sequence characterized by comprising
Video sequence is obtained, the video sequence includes at least the identical frame of two resolution ratio being arranged in order;
The inter-frame complexity in the frame of first frame between complexity and the first frame and the second frame is obtained, the first frame is A frame in the video sequence, second frame are another frame in the video sequence;
The difference for obtaining complexity and the inter-frame complexity in the frame, it is poor to obtain complexity;
According to the corresponding relationship between the complexity difference and preset value, judge whether the first frame is in the video sequence The frame of scene switching;
The corresponding relationship according between the complexity difference and preset value, judges whether the first frame is the video sequence The frame of scene switching in column, specifically includes:
By the M power of the inter-frame complexity divided by second value, the 4th complexity quotient is obtained, the second value is equal to the complexity The Nth power of difference is spent, N is greater than 0;
When the 4th complexity quotient is greater than four preset thresholds, the first frame is scene switching in the video sequence Frame.
5. scene change detection device in a kind of video sequence characterized by comprising first acquisition unit, second obtain list Member and detection unit;
The first acquisition unit, for obtaining video sequence, the video sequence includes at least two points being arranged in order The identical frame of resolution;
The second acquisition unit, the frame in the frame for obtaining first frame between complexity and the first frame and the second frame Between complexity, the first frame be the video sequence in a frame, second frame be the video sequence in another frame;
The second acquisition unit is also used to obtain the difference of complexity and the inter-frame complexity in the frame, obtains complexity It is poor to spend;
The detection unit, for judging that the first frame is according to the corresponding relationship between the complexity difference and preset value The no frame for scene switching in the video sequence;
The detection unit, comprising: the first computation subunit, the first judgment sub-unit and first determine subelement;
First computation subunit, for obtaining the first complexity with complexity in the frame is poor divided by the complexity Quotient;
First judgment sub-unit, for judging whether the first complexity quotient is greater than the first preset threshold;
Described first determines subelement, for judge the first complexity quotient greater than described the when first judgment sub-unit When one preset threshold, determine that the first frame is the frame of scene switching in the video sequence.
6. scene change detection device in a kind of video sequence characterized by comprising first acquisition unit, second obtain list Member and detection unit;
The first acquisition unit, for obtaining video sequence, the video sequence includes at least two points being arranged in order The identical frame of resolution;
The second acquisition unit, the frame in the frame for obtaining first frame between complexity and the first frame and the second frame Between complexity, the first frame be the video sequence in a frame, second frame be the video sequence in another frame;
The second acquisition unit is also used to obtain the difference of complexity and the inter-frame complexity in the frame, obtains complexity It is poor to spend;
The detection unit, for judging that the first frame is according to the corresponding relationship between the complexity difference and preset value The no frame for scene switching in the video sequence;
The detection unit, comprising: the second computation subunit, the second judgment sub-unit and second determine subelement;
Second computation subunit, it is poor divided by the complexity by the inter-frame complexity to be used for, and obtains the second complexity quotient;
Second judgment sub-unit, for judging whether the second complexity quotient is greater than the second preset threshold;
Described second determines subelement, for judge the second complexity quotient greater than described the when second judgment sub-unit When two preset thresholds, determine that the first frame is the frame of scene switching in the video sequence.
7. scene change detection device in a kind of video sequence characterized by comprising first acquisition unit, second obtain list Member and detection unit;
The first acquisition unit, for obtaining video sequence, the video sequence includes at least two points being arranged in order The identical frame of resolution;
The second acquisition unit, the frame in the frame for obtaining first frame between complexity and the first frame and the second frame Between complexity, the first frame be the video sequence in a frame, second frame be the video sequence in another frame;
The second acquisition unit is also used to obtain the difference of complexity and the inter-frame complexity in the frame, obtains complexity It is poor to spend;
The detection unit, for judging that the first frame is according to the corresponding relationship between the complexity difference and preset value The no frame for scene switching in the video sequence;
The detection unit, comprising: third computation subunit, third judgment sub-unit and third determine subelement;
The third computation subunit, for the X power of complexity in the frame divided by the first value, to be obtained third complexity Quotient, first value are equal to the Y power of the complexity difference, and Y is greater than 0;
The third judgment sub-unit, for judging whether the third complexity quotient is greater than third predetermined threshold value;
The third determines subelement, for judge the third complexity quotient greater than described the when the third judgment sub-unit When three preset thresholds, determine that the first frame is the frame of scene switching in the video sequence.
8. scene change detection device in a kind of video sequence characterized by comprising first acquisition unit, second obtain list Member and detection unit;
The first acquisition unit, for obtaining video sequence, the video sequence includes at least two points being arranged in order The identical frame of resolution;
The second acquisition unit, the frame in the frame for obtaining first frame between complexity and the first frame and the second frame Between complexity, the first frame be the video sequence in a frame, second frame be the video sequence in another frame;
The second acquisition unit is also used to obtain the difference of complexity and the inter-frame complexity in the frame, obtains complexity It is poor to spend;
The detection unit, for judging that the first frame is according to the corresponding relationship between the complexity difference and preset value The no frame for scene switching in the video sequence;
The detection unit, comprising: the 4th computation subunit, the 4th judgment sub-unit and the 4th determine subelement;
4th computation subunit, for the M power of the inter-frame complexity divided by second value, to be obtained the 4th complexity Quotient, the second value are equal to the Nth power of the complexity difference, and N is greater than 0;
4th judgment sub-unit, for judging whether the 4th complexity quotient is greater than the 4th preset threshold;
Described 4th determines subelement, for judge the 4th complexity quotient greater than described the when the 4th judgment sub-unit When four preset thresholds, determine that the first frame is the frame of scene switching in the video sequence.
CN201610650437.9A 2016-08-08 2016-08-08 Scene switching detection method and device in a kind of video sequence Active CN106210718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610650437.9A CN106210718B (en) 2016-08-08 2016-08-08 Scene switching detection method and device in a kind of video sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610650437.9A CN106210718B (en) 2016-08-08 2016-08-08 Scene switching detection method and device in a kind of video sequence

Publications (2)

Publication Number Publication Date
CN106210718A CN106210718A (en) 2016-12-07
CN106210718B true CN106210718B (en) 2019-04-26

Family

ID=57514933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610650437.9A Active CN106210718B (en) 2016-08-08 2016-08-08 Scene switching detection method and device in a kind of video sequence

Country Status (1)

Country Link
CN (1) CN106210718B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194955B (en) * 2018-11-16 2021-04-30 深圳市梦网视讯有限公司 Scene switching detection method and system
CN113627363B (en) * 2021-08-13 2023-08-15 百度在线网络技术(北京)有限公司 Video file processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724554A (en) * 2012-07-02 2012-10-10 西南科技大学 Scene-segmentation-based semantic watermark embedding method for video resource
CN103888765A (en) * 2014-03-27 2014-06-25 天格科技(杭州)有限公司 H.265 rate control method for improved R-lambda model
CN104038762A (en) * 2013-03-06 2014-09-10 三星电子株式会社 Video Encoder, Method Of Detecting Scene Change And Method Of Controlling Video Encoder
CN105744270A (en) * 2014-12-10 2016-07-06 中国移动通信集团公司 Cloud-platform-based video coding method and apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002005214A2 (en) * 2000-07-11 2002-01-17 Eg Technology Adaptive edge detection and enhancement for image processing
US20040146108A1 (en) * 2003-01-23 2004-07-29 Shih-Chang Hsia MPEG-II video encoder chip design

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724554A (en) * 2012-07-02 2012-10-10 西南科技大学 Scene-segmentation-based semantic watermark embedding method for video resource
CN104038762A (en) * 2013-03-06 2014-09-10 三星电子株式会社 Video Encoder, Method Of Detecting Scene Change And Method Of Controlling Video Encoder
CN103888765A (en) * 2014-03-27 2014-06-25 天格科技(杭州)有限公司 H.265 rate control method for improved R-lambda model
CN105744270A (en) * 2014-12-10 2016-07-06 中国移动通信集团公司 Cloud-platform-based video coding method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
实现xAVS编码器运动图像算法及整体性能优化;李瑞刚;《太原理工大学,2010》;20110228;第43-45页

Also Published As

Publication number Publication date
CN106210718A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
RU2671307C1 (en) Method for predicting images and related device
Amel et al. Video shot boundary detection using motion activity descriptor
EP2375737A1 (en) Device and method for frame rate conversion
JP2009147807A (en) Image processing apparatus
KR960039997A (en) Method and apparatus for encoding video signal using feature point based motion estimation
Lee A new edge-based intra-field interpolation method for deinterlacing using locally adaptive-thresholded binary image
EP1932117A2 (en) Method and apparatus for determining automatically the shot type of an image (close-up shot versus long shot)
CN106210718B (en) Scene switching detection method and device in a kind of video sequence
JPWO2018061976A1 (en) Image processing device
KR940008466A (en) Digital Image Stabilization Method and System
CN108875519B (en) Object detection method, device and system and storage medium
CN102292727B (en) Video descriptor generator
CN109377515A (en) A kind of moving target detecting method and system based on improvement ViBe algorithm
WO2007112974A1 (en) Method and apparatus to improve the convergence speed of a recursive motion estimator
CN104333758A (en) Depth map prediction method, pixel detection method and related devices
Rad et al. A predictive algorithm for multimedia data compression
CN101453559B (en) Noise detection method and apparatus for video signal
US20070086525A1 (en) Motion vector detection method and device of the same
US20200065979A1 (en) Imaging system and method with motion detection
TW545063B (en) Adaptive early exit techniques in image correlation
CN104980621A (en) Frame rate adjustment method and electronic equipment
US9432690B2 (en) Apparatus and method for video processing
CN106412580A (en) Method and device for setting intra-frame coding frame in video sequence
CN100579231C (en) Motion vector prediction method and device
KR100343780B1 (en) Method of Camera Motion Detection in Compressed Domain for Content-Based Indexing of Compressed Video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant