CN102769714A - Method for eliminating false transition report caused by flashing - Google Patents

Method for eliminating false transition report caused by flashing Download PDF

Info

Publication number
CN102769714A
CN102769714A CN2012100823029A CN201210082302A CN102769714A CN 102769714 A CN102769714 A CN 102769714A CN 2012100823029 A CN2012100823029 A CN 2012100823029A CN 201210082302 A CN201210082302 A CN 201210082302A CN 102769714 A CN102769714 A CN 102769714A
Authority
CN
China
Prior art keywords
frame
difference value
value
histogram
video
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
Application number
CN2012100823029A
Other languages
Chinese (zh)
Other versions
CN102769714B (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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201210082302.9A priority Critical patent/CN102769714B/en
Publication of CN102769714A publication Critical patent/CN102769714A/en
Application granted granted Critical
Publication of CN102769714B publication Critical patent/CN102769714B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for eliminating a false transition report caused by flashing, which mainly comprises the steps as follows: each frame in a video sequence is abstracted to generate a histogram of each frame; value differences between adjacent frames are computed according to the histogram of each frame; threshold values are computed according to the value differences between all the adjacent frames; the sizes of the value differences between the adjacent frames and the threshold values are compared on by one, and all current value differences larger than the threshold values are selected; according to the current value differences, a value difference between video frames corresponding to the current value differences and the histograms of two previous frames, and a value difference between one previous frame of a video frame corresponding to the current value differences and the histograms of five posterior frames are computed; and flashing points and transition points are judged via comparing the obtained histogram value differences and the threshold values. According to the invention, via the analysis of the value differences of adjacent frames in the video sequence and the comparison between the histogram value differences and the threshold values, the accuracy of transition point judgment and flashing points is improved, and false transition report caused by the flashing is eliminated.

Description

A kind ofly eliminate the method that flash of light causes transition wrong report
Technical field
The present invention relates to technical field of video processing, relate in particular to a kind of method that flash of light causes the transition wrong report of eliminating.
Background technology
Each paragraph (least unit that constitutes telefilm is a camera lens, one by one the shot sequence that is joined together to form of camera lens) all has certain single, complete relatively meaning, as shows a course of action, shows a kind of dependency relation, shows a kind of implication or the like.It is complete narration level in the telefilm, and just as the curtain in the drama, fictitious chapters and sections are the same, and paragraph links together one by one, has just formed complete telefilm.Therefore, paragraph is the most basic version of telefilm, and telefilm layer of structure in terms of content shows through paragraph.And transition between paragraph and paragraph, scene and the scene or conversion just are called transition.
Briefly, transition is exactly the camera lens switching in the video file, such as, video camera has been taken the auditorium earlier, switches to the rostrum then.
When daily TV programme are edited, usually earlier, find the point, transition in the video segment to the video analysis of cutting to automatically, bring convenience to editing.
Realize in the process of the present invention that the inventor inventor finds to exist in the prior art following technical problem:
Generally, the transition analysis all is a difference value of at first calculating consecutive frame in the video automatically, then according to the Changing Pattern of this difference value, finds than the big-difference place, and then is judged as point, transition.
If the flash of light camera lens is arranged in the video, so flash of light place will occur consecutive frame than big-difference, this will cause the wrong report that automatic transition is analyzed.
Summary of the invention
To defective of the prior art, the invention solves the problem that flash of light causes transition analysis wrong report.
In order to solve above technical problem, the invention provides a kind of method that flash of light causes the transition wrong report of eliminating, specifically comprise:
Extract each frame of video sequence, generate the histogram of each frame;
Difference value according to the histogram calculation consecutive frame of said each frame;
Difference value according to all consecutive frames calculates threshold value;
The size of the difference value of more said consecutive frame and said threshold value filters out all current difference value greater than said threshold value one by one;
Calculate the former frame of the corresponding frame of video of histogram difference and the said current difference value of the corresponding frame of video of said current difference value and front cross frame and the back histogram difference of five frames according to said current difference value;
Histogram difference that obtains and said threshold value are compared, if all surpass said threshold value, the corresponding frame of video of then current difference value is a point, transition, and if not, the corresponding frame of video of then current difference value is a shining point.
Wherein, comprise before each frame of said extraction video sequence: receive said video sequence.
Wherein, said histogram is stored in the one-dimension array.
Wherein, the difference value of said histogram calculation consecutive frame according to said each frame is specially:
According to the histogram calculation present frame of said each frame and the difference value of former frame, said difference value is stored in the two-dimensional array, and the sequence number of said two-dimensional array order in said video sequence is slided.
Wherein, said difference value according to all consecutive frames calculates threshold value and specifically comprises:
Difference value according to said consecutive frame calculates mean value;
Draw the difference value of the amplitude adjacent according to the maximum in said mean value and the said difference value greater than said mean value with said maximum;
Remove the difference value of the said maximum amplitude adjacent, calculate the mean value X and the mean square deviation Y of remaining difference value greater than said mean value with said maximum;
Threshold value is X+Y*Y.
Compared with prior art; The embodiment of the invention has the following advantages: through to the analysis of the difference value of consecutive frame in the video sequence and the comparison of histogram difference and threshold value; Increase the accuracy of judging point, transition and shining point, eliminate the transition wrong report that flash of light causes.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1: be a kind of flow chart of eliminating the method that causing cuts to reports by mistake of glistening in the embodiment of the invention 1;
Fig. 2: be the another kind of flow chart of eliminating the method that causing cuts to reports by mistake of glistening in the embodiment of the invention 2.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obvious described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
A kind of method that flash of light causes the transition wrong report of eliminating is provided in the embodiment of the invention 1, as shown in Figure 1, may further comprise the steps:
Step S101 extracts each frame of video sequence, generates the histogram of each frame.
Step S102 is according to the difference value of the histogram calculation consecutive frame of said each frame.
Step S103 calculates threshold value according to the difference value of all consecutive frames.
Step S104, the size of the difference value of more said consecutive frame and said threshold value filters out all current difference value greater than said threshold value one by one.
Step S105 calculates the former frame of the corresponding frame of video of histogram difference and the said current difference value of the corresponding frame of video of said current difference value and front cross frame and the back histogram difference of five frames according to said current difference value.
Step S106 compares histogram difference that obtains and said threshold value, if all surpass said threshold value, the corresponding frame of video of then current difference value is a point, transition, and if not, the corresponding frame of video of then current difference value is a shining point.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is following: through to the analysis of the difference value of consecutive frame in the video sequence and the comparison of histogram difference and threshold value; Increase the accuracy of judging point, transition and shining point, eliminate the transition wrong report that flash of light causes.
A kind of method that flash of light causes the transition wrong report of eliminating is provided in the embodiment of the invention 2, as shown in Figure 2, may further comprise the steps:
Step S201, the receiver, video sequence.
Step S202 extracts each frame of video sequence, generates the histogram of each frame, and said histogram is stored in the one-dimension array.
Step S203, the difference value according to the histogram calculation consecutive frame of said each frame is specially:
According to the histogram calculation present frame of said each frame and the difference value of former frame, said difference value is stored in the two-dimensional array, and the sequence number of said two-dimensional array order in said video sequence is slided.
Step S204 calculates threshold value according to the difference value of all consecutive frames, is specially:
Difference value according to said consecutive frame calculates mean value;
Draw the difference value of the amplitude adjacent according to the maximum in said mean value and the said difference value greater than said mean value with said maximum;
Remove the difference value of the said maximum amplitude adjacent, calculate the mean value X and the mean square deviation Y of remaining difference value greater than said mean value with said maximum;
Threshold value is X+Y*Y.
Step S205, the size of the difference value of more said consecutive frame and said threshold value filters out all current difference value greater than said threshold value one by one.
Step S206 calculates the former frame of the corresponding frame of video of histogram difference and the said current difference value of the corresponding frame of video of said current difference value and front cross frame and the back histogram difference of five frames according to said current difference value.
Step S207 compares histogram difference that obtains and said threshold value, if all surpass said threshold value, the corresponding frame of video of then current difference value is a point, transition, and if not, the corresponding frame of video of then current difference value is a shining point.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is following: through to the analysis of the difference value of consecutive frame in the video sequence and the comparison of histogram difference and threshold value; Increase the accuracy of judging point, transition and shining point, eliminate the transition wrong report that flash of light causes.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (5)

1. eliminate the method that flash of light causes the transition wrong report for one kind, it is characterized in that, comprising:
Extract each frame of video sequence, generate the histogram of each frame;
Difference value according to the histogram calculation consecutive frame of said each frame;
Difference value according to all consecutive frames calculates threshold value;
The size of the difference value of more said consecutive frame and said threshold value filters out all current difference value greater than said threshold value one by one;
Calculate the former frame of the corresponding frame of video of histogram difference and the said current difference value of the corresponding frame of video of said current difference value and front cross frame and the back histogram difference of five frames according to said current difference value;
Histogram difference that obtains and said threshold value are compared, if all surpass said threshold value, the corresponding frame of video of then current difference value is a point, transition, and if not, the corresponding frame of video of then current difference value is a shining point.
2. the method for claim 1 is characterized in that, comprises before each frame of said extraction video sequence:
Receive said video sequence.
3. the method for claim 1 is characterized in that, said histogram is stored in the one-dimension array.
4. the method for claim 1 is characterized in that, the difference value of said histogram calculation consecutive frame according to said each frame is specially:
According to the histogram calculation present frame of said each frame and the difference value of former frame, said difference value is stored in the two-dimensional array, and the sequence number of said two-dimensional array order in said video sequence is slided.
5. the method for claim 1 is characterized in that, said difference value according to all consecutive frames calculates threshold value and specifically comprises:
Difference value according to said consecutive frame calculates mean value;
Draw the difference value of the amplitude adjacent according to the maximum in said mean value and the said difference value greater than said mean value with said maximum;
Remove the difference value of the said maximum amplitude adjacent, calculate the mean value X and the mean square deviation Y of remaining difference value greater than said mean value with said maximum; Threshold value is X+Y*Y.
CN201210082302.9A 2012-03-26 2012-03-26 A method of it eliminating flash of light and transition is caused to be reported by mistake Active CN102769714B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210082302.9A CN102769714B (en) 2012-03-26 2012-03-26 A method of it eliminating flash of light and transition is caused to be reported by mistake

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210082302.9A CN102769714B (en) 2012-03-26 2012-03-26 A method of it eliminating flash of light and transition is caused to be reported by mistake

Publications (2)

Publication Number Publication Date
CN102769714A true CN102769714A (en) 2012-11-07
CN102769714B CN102769714B (en) 2018-12-11

Family

ID=47096959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210082302.9A Active CN102769714B (en) 2012-03-26 2012-03-26 A method of it eliminating flash of light and transition is caused to be reported by mistake

Country Status (1)

Country Link
CN (1) CN102769714B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980625A (en) * 2015-06-19 2015-10-14 新奥特(北京)视频技术有限公司 Method and apparatus of video transition detection
CN107527010A (en) * 2017-07-13 2017-12-29 央视国际网络无锡有限公司 A kind of method that video gene is extracted according to local feature and motion vector
CN108495171A (en) * 2018-04-03 2018-09-04 优视科技有限公司 Method for processing video frequency and its device, storage medium, electronic product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020047936A1 (en) * 2000-09-21 2002-04-25 Hiroshi Tojo Moving image processing apparatus and method, and computer readable memory
US20030123726A1 (en) * 2001-12-27 2003-07-03 Lg Electronics Inc. Scene change detection apparatus
US20060152634A1 (en) * 2005-01-10 2006-07-13 Mavs Lab Inc. Method for detecting and eliminating flash scene in digital video
CN101382998A (en) * 2008-08-18 2009-03-11 华为技术有限公司 Testing device and method of switching of video scenes
CN102348049A (en) * 2011-09-16 2012-02-08 央视国际网络有限公司 Method and device for detecting position of cut point of video segment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020047936A1 (en) * 2000-09-21 2002-04-25 Hiroshi Tojo Moving image processing apparatus and method, and computer readable memory
US20030123726A1 (en) * 2001-12-27 2003-07-03 Lg Electronics Inc. Scene change detection apparatus
US20060152634A1 (en) * 2005-01-10 2006-07-13 Mavs Lab Inc. Method for detecting and eliminating flash scene in digital video
CN101382998A (en) * 2008-08-18 2009-03-11 华为技术有限公司 Testing device and method of switching of video scenes
CN102348049A (en) * 2011-09-16 2012-02-08 央视国际网络有限公司 Method and device for detecting position of cut point of video segment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980625A (en) * 2015-06-19 2015-10-14 新奥特(北京)视频技术有限公司 Method and apparatus of video transition detection
CN107527010A (en) * 2017-07-13 2017-12-29 央视国际网络无锡有限公司 A kind of method that video gene is extracted according to local feature and motion vector
CN107527010B (en) * 2017-07-13 2020-07-10 央视国际网络无锡有限公司 Method for extracting video gene according to local feature and motion vector
CN108495171A (en) * 2018-04-03 2018-09-04 优视科技有限公司 Method for processing video frequency and its device, storage medium, electronic product

Also Published As

Publication number Publication date
CN102769714B (en) 2018-12-11

Similar Documents

Publication Publication Date Title
US9380213B2 (en) Image composition apparatus and method
CN104123396B (en) A kind of abstract of football video generation method and device based on cloud TV
US20130177252A1 (en) Detecting Video Copies
CN106887142B (en) Day and night switching method and device
EP3341753B1 (en) Method for identifying individual trees in airborne lidar data and corresponding computer program product
CN103824086A (en) Image matching method and device
CN102769714A (en) Method for eliminating false transition report caused by flashing
CN104320670A (en) Summary information extracting method and system for network video
CN103747276A (en) CDN data deletion method and CDN server
EP1331576A1 (en) Search information transmitting apparatus
CN105516578A (en) Image processing method and device and electronic equipment
CN106504261A (en) A kind of image partition method and device
CN111770359A (en) Event video clipping method, system and computer readable storage medium
CN107369450B (en) Recording method and recording apparatus
CN105975494A (en) Service information pushing method and apparatus
CN110751654B (en) Image matting method, medium, equipment and device
CN105516735A (en) Representation frame acquisition method and representation frame acquisition apparatus
KR101323369B1 (en) Apparatus and method for clustering video frames
CN104182959A (en) Target searching method and target searching device
CN104240697A (en) Audio data feature extraction method and device
CN103051923A (en) Lens detection method for high-speed and accurate segmentation
Apostolidis et al. CERTH at MediaEval 2014 Synchronization of Multi-User Event Media Task.
CN102760147A (en) Method for optimizing competition field database
CN104268446A (en) Method and device for preventing secondary video spreading
CN104159152B (en) A kind of time shaft automatic generation method for video display 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