CN102769714B - A method of it eliminating flash of light and transition is caused to be reported by mistake - Google Patents

A method of it eliminating flash of light and transition is caused to be reported by mistake Download PDF

Info

Publication number
CN102769714B
CN102769714B CN201210082302.9A CN201210082302A CN102769714B CN 102769714 B CN102769714 B CN 102769714B CN 201210082302 A CN201210082302 A CN 201210082302A CN 102769714 B CN102769714 B CN 102769714B
Authority
CN
China
Prior art keywords
frame
value
difference value
difference
histogram
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
CN201210082302.9A
Other languages
Chinese (zh)
Other versions
CN102769714A (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

Abstract

The invention discloses a kind of methods eliminated flash of light and transition is caused to be reported by mistake, specifically include: extracting each frame of video sequence, generate the histogram of each frame;According to the difference value of the histogram calculation consecutive frame of each frame;Threshold value is calculated according to the difference value of all consecutive frames;The size of the difference value of the consecutive frame and the threshold value one by one filters out all current difference values greater than the threshold value;The former frame of the corresponding video frame of current difference value video frame corresponding with the histogram difference of front cross frame and the current difference value and the histogram difference of rear five frame are calculated according to the current difference value;By obtained histogram difference compared with the threshold value, shining point and point, transition are judged.The present invention eliminates the wrong report of transition caused by glistening by compared with threshold value, increasing the accuracy for judging point, transition and shining point to the analysis of the difference value of consecutive frame and histogram difference in video sequence.

Description

A method of it eliminating flash of light and transition is caused to be reported by mistake
Technical field
The present invention relates to technical field of video processing more particularly to a kind of methods eliminated flash of light and transition is caused to be reported by mistake.
Background technique
(minimum unit for constituting telefilm is camera lens to each paragraph, the camera lens sequence that camera lens is joined together to form one by one Column) all there is some single, relatively complete meaning, an action process is such as showed, a kind of correlativity, performance one are showed Kind meaning etc..It is a complete narration level in telefilm, and just as the curtain in drama, fictitious chapters and sections are the same, one Each and every one links together at paragraph, is formed complete telefilm.Therefore, paragraph is the most basic structure type of telefilm, electricity It depending on the layer of structure of piece is in terms of content showed by paragraph.And the transition between paragraph and paragraph, scene and scene Or conversion, just it is called transition.
Briefly, transition is exactly the Shot change in video file, for example, video camera first has taken auditorium, then It is switched to rostrum.
When being edited to daily TV programme, automatic transition analysis first usually is carried out to video, finds video clip In point, transition, brought convenience to editing.
During inventor realizes the present invention, following technical problem is existed in the prior art in inventor:
Under normal conditions, automatic transition analysis is all to calculate the difference value of consecutive frame in video first, then according to this The changing rule of difference value to find at larger difference, and then is judged as point, transition.
If there is flash of light camera lens in video, the larger difference of consecutive frame will occur at flash of light, this will cause from turn The wrong report of field analysis.
Summary of the invention
For the defects in the prior art, the present invention solves the problems, such as that flash of light causes transition analysis wrong report.
In order to solve the above technical problems, the present invention provides a kind of methods eliminated flash of light and transition is caused to be reported by mistake, specifically Include:
The each frame for extracting video sequence, generates the histogram of each frame;
According to the difference value of the histogram calculation consecutive frame of each frame;
Threshold value is calculated according to the difference value of all consecutive frames;
The size of the difference value of the consecutive frame and the threshold value one by one filters out all greater than the threshold value Current difference value;
The histogram difference of the current difference value corresponding video frame and front cross frame is calculated according to the current difference value And the corresponding video frame of the current difference value former frame and rear five frame histogram difference;
By obtained histogram difference compared with the threshold value, if the above described threshold value, current difference value pair The video frame answered is point, transition, if it is not, then the corresponding video frame of current difference value is shining point.
It wherein, include: to receive the video sequence before each frame for extracting video sequence.
Wherein, the histogram is stored in an one-dimension array.
Wherein, the difference value of the histogram calculation consecutive frame according to each frame specifically:
According to the difference value of the histogram calculation present frame of each frame and former frame, the difference value is stored in one In two-dimensional array, the serial number of the two-dimensional array is sequentially slided in the video sequence.
Wherein, the difference value according to all consecutive frames is calculated threshold value and specifically includes:
Average value is calculated according to the difference value of the consecutive frame;
Show that the amplitude adjacent with the maximum value is greater than according to the maximum value in the average value and the difference value The difference value of the average value;
It removes the maximum value and the adjacent amplitude of the maximum value is greater than the difference value of the average value, calculate remaining The average value X and mean square deviation Y of difference value;
Threshold value is X+Y*Y.
Compared with prior art, the embodiment of the present invention has the advantage that through the difference to consecutive frame in video sequence The analysis of value and histogram difference increase the accuracy for judging point, transition and shining point compared with threshold value, eliminate flash of light Caused transition wrong report.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, 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 Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1: being a kind of flow chart for eliminating the method that flash of light causes transition to be reported by mistake in the embodiment of the present invention 1;
Fig. 2: being another flow chart for eliminating the method that flash of light causes transition to be reported by mistake in the embodiment of the present invention 2.
Specific embodiment
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 description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on the present invention In embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Provided in the embodiment of the present invention 1 it is a kind of eliminate flash of light cause transition report by mistake method, as shown in Figure 1, include with Lower step:
Step S101 extracts each frame of video sequence, generates the histogram of each frame.
Step S102, according to the difference value of the histogram calculation consecutive frame of each frame.
Threshold value is calculated according to the difference value of all consecutive frames in step S103.
Step S104, the size of the difference value of the consecutive frame and the threshold value, filters out all be greater than one by one The current difference value of the threshold value.
Step S105 calculates the straight of the corresponding video frame of the current difference value and front cross frame according to the current difference value The histogram difference of the former frame of square figure difference and the corresponding video frame of the current difference value and rear five frame.
Step S106, by obtained histogram difference compared with the threshold value, if the above described threshold value, currently The corresponding video frame of difference value is point, transition, if it is not, then the corresponding video frame of current difference value is shining point.
The technical solution bring of the embodiment of the present invention has the beneficial effect that: by the difference to consecutive frame in video sequence The analysis of value and histogram difference increase the accuracy for judging point, transition and shining point compared with threshold value, eliminate flash of light Caused transition wrong report.
Provided in the embodiment of the present invention 2 it is a kind of eliminate flash of light cause transition report by mistake method, as shown in Fig. 2, include with Lower step:
Step S201 receives video sequence.
Step S202 extracts each frame of video sequence, generates the histogram of each frame, and the histogram is stored in one In one-dimension array.
Step S203, according to the difference value of the histogram calculation consecutive frame of each frame, specifically:
According to the difference value of the histogram calculation present frame of each frame and former frame, the difference value is stored in one In two-dimensional array, the serial number of the two-dimensional array is sequentially slided in the video sequence.
Threshold value is calculated according to the difference value of all consecutive frames in step S204, specifically:
Average value is calculated according to the difference value of the consecutive frame;
Show that the amplitude adjacent with the maximum value is greater than according to the maximum value in the average value and the difference value The difference value of the average value;
It removes the maximum value and the adjacent amplitude of the maximum value is greater than the difference value of the average value, calculate remaining The average value X and mean square deviation Y of difference value;
Threshold value is X+Y*Y.
Step S205, the size of the difference value of the consecutive frame and the threshold value, filters out all be greater than one by one The current difference value of the threshold value.
Step S206 calculates the straight of the corresponding video frame of the current difference value and front cross frame according to the current difference value The histogram difference of the former frame of square figure difference and the corresponding video frame of the current difference value and rear five frame.
Step S207, by obtained histogram difference compared with the threshold value, if the above described threshold value, currently The corresponding video frame of difference value is point, transition, if it is not, then the corresponding video frame of current difference value is shining point.
The technical solution bring of the embodiment of the present invention has the beneficial effect that: by the difference to consecutive frame in video sequence The analysis of value and histogram difference increase the accuracy for judging point, transition and shining point compared with threshold value, eliminate flash of light Caused transition wrong report.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can lead to Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Based on this understanding, this hair Bright technical solution can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer equipment (can be Personal computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, module or stream in attached drawing Journey is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Disclosed above is only several specific embodiments of the invention, and still, the present invention is not limited to this, any ability What the technical staff in domain can think variation should all fall into protection scope of the present invention.

Claims (4)

1. a kind of method eliminated flash of light and transition is caused to be reported by mistake characterized by comprising
The each frame for extracting video sequence, generates the histogram of each frame;
According to the difference value of the histogram calculation consecutive frame of each frame, specifically: according to the histogram meter of each frame The difference value of present frame and former frame is calculated, the difference value is stored in a two-dimensional array, and the serial number of the two-dimensional array exists It is sequentially slided in the video sequence;
Threshold value is calculated according to the difference value of all consecutive frames;
The size of the difference value of the consecutive frame and the threshold value one by one filters out all working as greater than the threshold value Preceding difference value;
According to the current difference value calculate the corresponding video frame of the current difference value and front cross frame histogram difference and The former frame of the corresponding video frame of the current difference value and the histogram difference of rear five frame;
By obtained histogram difference compared with the threshold value, if the above described threshold value, current difference value are corresponding Video frame is point, transition, if it is not, then the corresponding video frame of current difference value is shining point.
2. the method as described in claim 1, which is characterized in that include: before each frame for extracting video sequence
Receive the video sequence.
3. the method as described in claim 1, which is characterized in that the histogram is stored in an one-dimension array.
4. the method as described in claim 1, which is characterized in that thresholding is calculated in the difference value according to all consecutive frames Value specifically includes:
Average value is calculated according to the difference value of the consecutive frame;
It is described to show that the amplitude adjacent with the maximum value is greater than according to the maximum value in the average value and the difference value The difference value of average value;
It removes the maximum value and the adjacent amplitude of the maximum value is greater than the difference value of the average value, calculate remaining difference The average value X and mean square deviation Y of value;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 CN102769714A (en) 2012-11-07
CN102769714B true 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)

Families Citing this family (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
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7038736B2 (en) * 2000-09-21 2006-05-02 Canon Kabushiki Kaisha Moving image processing apparatus and method, and computer readable memory
KR100850935B1 (en) * 2001-12-27 2008-08-08 주식회사 엘지이아이 Apparatus for detecting scene conversion
US7880815B2 (en) * 2005-01-10 2011-02-01 Mavs Lab, Inc. Method for detecting and eliminating flash scene in digital video

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN102769714A (en) 2012-11-07

Similar Documents

Publication Publication Date Title
US20200288187A1 (en) Encoding technique for optimizing distortion and bitrate
EP3586517B1 (en) Iterative techniques for encoding video content
RU2016102884A (en) SYSTEM AND METHODS FOR FORMING SCENE STABILIZED METADATA
CN107481271B (en) Stereo matching method, system and mobile terminal
CN102769714B (en) A method of it eliminating flash of light and transition is caused to be reported by mistake
EP3156897B1 (en) Program generation device, program generation method and program
CN109360168A (en) Infrared image removes method, apparatus, infrared detector and the storage medium of striped
RU2014149360A (en) SYSTEM AND METHOD FOR STABILIZING OPTICAL DETERMINATION OF FORM
CN104090842A (en) Detection method for application program running
CN103425973B (en) The method, apparatus and video display apparatus of enhancing processing are carried out to the image containing text
CN104102582A (en) Application program running detecting device and terminal
CN105975494A (en) Service information pushing method and apparatus
US9395887B2 (en) Image processing apparatus and method for removing noise from a frame group
CN105024989A (en) Malicious URL heuristic detection method and system based on abnormal port
CN105516735A (en) Representation frame acquisition method and representation frame acquisition apparatus
WO2014112339A1 (en) Region segmenting device, program, and method
CN113361462B (en) Method and device for video processing and caption detection model
CN101378507A (en) Blocking effect removal system and method
CN109100441B (en) Method for removing pulse interference of liquid chromatography curve
CN104700378A (en) Genetic algorithm based low-illumination video image processing method
CN106570832A (en) Minimum value background difference-based PIV (particle image velocimetry) image processing method
CN104360854A (en) Information processing method and electronic equipment
CN109963087A (en) A kind of multiterminal interdynamic video processing method, apparatus and system
Krulikovská et al. Abrupt cut detection based on mutual information and motion prediction
CN104980621A (en) Frame rate adjustment method and electronic equipment

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