CN102857790B - Digital video static frame detection method based on time domain check - Google Patents

Digital video static frame detection method based on time domain check Download PDF

Info

Publication number
CN102857790B
CN102857790B CN201210379916.3A CN201210379916A CN102857790B CN 102857790 B CN102857790 B CN 102857790B CN 201210379916 A CN201210379916 A CN 201210379916A CN 102857790 B CN102857790 B CN 102857790B
Authority
CN
China
Prior art keywords
frame
check
signal
row
pixel
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
CN201210379916.3A
Other languages
Chinese (zh)
Other versions
CN102857790A (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.)
Anhui Telehome Digital Technology Co., Ltd.
Original Assignee
ANHUI TELEHOME DIGITAL TECHNOLOGY 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 ANHUI TELEHOME DIGITAL TECHNOLOGY Co Ltd filed Critical ANHUI TELEHOME DIGITAL TECHNOLOGY Co Ltd
Priority to CN201210379916.3A priority Critical patent/CN102857790B/en
Publication of CN102857790A publication Critical patent/CN102857790A/en
Application granted granted Critical
Publication of CN102857790B publication Critical patent/CN102857790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention provides a digital video static frame detection method based on time domain check. The digital video static frame detection method mainly comprises the following steps of: setting a type and a detection threshold parameter of a signal to be detected, pre-detecting and extracting a frame synchronous signal and a frame starting limit, respectively checking the brightness Y and two chromas U and V of each row of pixel points by adopting a cyclic redundancy check (CRC) polynomial to obtain check results of each row and each frame, comparing the check result of each frame with the check result of the next frame, calculating the number of same frames, and when the number of same frames is greater than the set static frame threshold, sending a static frame indication signal and alarming. By the method, check is executed by a shift register by adopting the polynomial through simple bit XOR operation; the algorithm is simple; the calculating time is greatly shortened; the number of occupied resources is small; and the precision is high.

Description

A kind of time domain check digit digital video static frame detection
Technical field
The present invention relates to the detection method of the quiet frame of digital video image, be specifically related to a kind of based on CRC check digital video static frame detection method.
Background technology
In radio and television field of photography, in order to ensure the safety and stability of broadcast items, quiet frame detection to be carried out in multiple link to vision signal, judging whether image quiet frame and interruption occur according to testing result, to make the process such as switching in time, guarantee safety and the integrality of broadcast.
YUV is a kind of colour coding method adopted in modern color television pickup system, and wherein " Y " represents lightness, namely grey decision-making; What " U " and " V " represented is then colourity, and effect describes colors of image and saturation, is used to specify the color of pixel." brightness " is through RGB input signal to set up, and method is superimposed together by the specific part of rgb signal." colourity " then defines two aspects-tone and the saturation of color, represents respectively with Cr and Cb.At present to the detection method of the quiet frame in vision signal mainly based on to pixel Y, the weighted accumulation of U, V obtains the weighted sum of each frame, then contrasts weighted sum.Because video image vegetarian refreshments Y, U, V data volume is large, and reach the data volume of per second tens, weighted accumulation certainly will require that adder figure place is abundant and add operation is enough fast.In addition, weighted sum also needs the multiplying realizing tens with multiplier, so algorithm relative complex, takies resource many, and causes final testing result inaccuracy.
Summary of the invention
Object of the present invention will solve above-mentioned deficiency exactly, a kind of CRC check that adopts is provided to realize digital video static frame detection method, avoided complicated add operation and multiplying by position XOR and shift register, reach computing simple, take the object that resource is few, accuracy is high.
In order to achieve the above object, the invention provides a kind of time domain check digit digital video static frame detection, mainly comprise the following steps:
(1) type and the detection threshold parameter of signal to be detected is set: set pixel thresholding P, row thresholding L, frame thresholding F;
(2) treat detection signal and carry out pre-detection, obtain the type of signal to be detected;
(3) frame synchronizing signal is extracted according to the pre-detection result of (2) and frame is initial defines, and the type of output signal, obtain quiet frame threshold parameter P ', L ', F ';
(4) automatic aligning frame synchronization border, from frame boundaries, adopts CRC multinomial to verify to a pixel brightness Y and two colourity U, the V in every row the assay obtaining each row respectively:
f ( i , x ( p ) ) = x ( i , p ) CRC - M
In formula: x represents Y, U, V of pixel respectively,
X (i, p) represents sampling Y, U, V value of p pixel of the i-th row,
CRC-M represents a M CRC multinomial, M >=16,
The value of p is 1,2,3 ..., P ',
The value of i is 1,2,3 ..., L ';
(5), after completing the pixel verification of often going, the check results of often going is counted in the check formula of this frame and carries out the cumulative check results obtaining a frame:
CSx ( k ) = Σ i = 1 L ′ CSx ( i , x ( p ) )
In formula: x represents Y, U, V of pixel respectively;
(6) check results of every frame and the check results of its next frame are compared respectively, calculate the frame number SF of same number of frames: when SF is greater than the quiet frame thresholding F ' of setting, then send quiet frame index signal, otherwise provide non-quiet frame index signal.
The preferred version of such scheme is, when the line number i+1 of present frame is not more than L ' in described step (5), then turns back in step (4) and continues to verify next line.
Wherein detection threshold parameter P ', L ', F ' contrast according to threshold parameter P, L, F of outside input the video inner parameter that corresponding signal type carries out changing.
The present invention adopts simple position XOR and shift register to complete CRC multinomial and tests, and CRC check is using number to be detected as dividend in essence, and check polynomial, as divisor, carries out without borrow division arithmetic.
Below for CRC-32, its multinomial is:
x 32-x 26+x 23+x 22+x 16+x 12+x 11+x 10+x 8+x 7+x 5+x 4+x 2+x+1
The present invention has following beneficial effect compared to prior art:
1, the present invention is that employing CRC multinomial carries out simple position XOR and shift register completes inspection, and be weighted accumulative relative to traditional single frame, the algorithm of method of the present invention is relatively simple, and greatly reduces operation time;
2, the present invention utilizes FPGA, improves the compatibility of system, all has larger compatible space for different types of equipment;
3, computing circuit of the present invention is simple, so it takies, resource is few, accuracy is high.
Accompanying drawing explanation
Fig. 1 is the circuit structure diagram of CRC serial verification;
Fig. 2 is flow chart of the present invention.
Embodiment
Below in conjunction with embodiment, the present invention is further elaborated.
The register stage circuit structure chart of CRC serial verification as shown in Figure 1, before starting verification, the value of register is initialized as 1, serial signal is from the input of datin end and a high position is leading, until all data to be tested are stopped displacement by during shift-in shift register chain, namely complete verification, now the value of register is School Affairs.The verification eigenpolynomial that in figure, CRC register is corresponding is 32 ' H04C11DB7, and polynomial repressentation is as follows:
x 32+x 26+x 23+x 22+x 16+x 12+x 11+x 10+x 8+x 7+x 5+x 4+x 2+x+1。
Be flow chart of the present invention as shown in Figure 2, digital video static frame detection method of the present invention comprises the steps:
(1) type and the detection threshold parameter of signal to be detected is set: set pixel thresholding P, row thresholding L, frame thresholding F;
(2) treat detection signal and carry out pre-detection, obtain the type of signal to be detected;
(3) frame synchronizing signal is extracted according to the pre-detection result of (2) and frame is initial defines, and the type of output signal, obtain quiet frame threshold parameter P ', L ', F ';
(4) automatic aligning frame synchronization border, from frame boundaries, adopts CRC multinomial to verify to a pixel brightness Y and two colourity U, the V in every row the assay obtaining each row respectively:
f ( i , x ( p ) ) = x ( i , p ) CRC - M
In formula: x represents Y, U, V of pixel respectively;
X (i, p) represents sampling Y, U, V value of p pixel of the i-th row;
CRC-M represents a M CRC multinomial, M >=16;
The value of p is 1,2,3 ..., P ';
The value of i is 1,2,3 ..., L '.
According to verification function formula above first calculate kth frame, the i-th row Y, U, V check results as follows:
CSY(k,i)=f(i,Y(p))
CSU(k,i)=f(i,U(p))
CSV(k,i)=f(i,V(p))
Again Y, U, V of the i-th row of its next frame and k+1 frame are verified, as follows:
CSy(k+1,i)=f(i,y(p))
CSu(k+1,i)=f(i,u(p))
CSv(k+1,i)=f(i,v(p))
(5), after completing the pixel verification of often going, the check results of often going is counted in the check formula of this frame and carries out the cumulative check results obtaining a frame:
CSx ( k ) = Σ i = 1 L ′ CSx ( i , x ( p ) )
In formula: x represents Y, U, V of pixel respectively.
According to weighted formula above to each row CSy (k, i) in kth frame, CSu (k, i), CSv (k, i) carries out the cumulative integrity checking and the CSy (k) that obtain kth frame respectively, CSu (k), CSv (k).
Calculate the check results CSy (k+1, i) of each row of kth+1 frame again, CSu (k+1, i), CSv (k+1, i) cumulative integrity checking and the CSy (k+1) obtaining kth+1 frame respectively, CSu (k+1), CSv (k+1).
(6) finally by the integrity checking of kth frame and CSy (k), CSu (k), the integrity checking of CSv (k) and kth+1 frame and CSy (k+1), CSu (k+1), CSv (k+1) contrasts respectively:
When the check results of correspondence is equal, think that kth frame is identical with kth+1 frame, then the frame number SF of same number of frames now k+1=SF k+ 1, if SF k+1be greater than F ' and then judge that frame is quiet frame and exports quiet frame indication warning for this reason; Otherwise be judged as normal video frame, export non-quiet frame instruction, now K+1 frame being set as new reference frame, is SF k+1=0 re-starts detection.
Only that the preferred embodiment of the present invention is described above; not scope of the present invention is limited; do not departing under the present invention designs spiritual prerequisite; the various distortion that the common engineers and technicians in this area make technical solution of the present invention and improvement, all should fall in protection range that claims of the present invention determine.

Claims (2)

1. a time domain check digit digital video static frame detection, is characterized in that: comprise the following steps:
(1) type and the detection threshold parameter of signal to be detected is set: set pixel thresholding P, row thresholding L, frame thresholding F;
(2) treat detection signal and carry out pre-detection, obtain the type of signal to be detected;
(3) frame synchronizing signal is extracted according to the pre-detection result of (2) and frame is initial defines, and the type of output signal, obtain quiet frame threshold parameter P ', L ', F ';
(4) automatic aligning frame synchronization border, from frame boundaries, adopts CRC multinomial to verify to brightness Y, the colourity U of every row pixel, V the assay obtaining each row respectively:
In formula: x represents Y, U, V of pixel respectively,
X (i, p) represents sampling Y, U, V value of p pixel of the i-th row,
CRC-M represents a M CRC multinomial, M >=16,
The value of p is 1,2,3 ..., P ',
The value of i is 1,2,3 ..., L ';
Again according to above-mentioned assay calculate kth frame, the i-th row Y, U, V check results as follows:
CSY(k,i) = f( i,Y(p) )
CSU(k,i)= f( i, U(p) )
CSV(k,i)=f( i, V(p) );
(5), after completing the pixel verification of often going, the check results of often going is counted in the check formula of this frame and carries out the cumulative check results obtaining a frame:
In formula: x represents Y, U, V of pixel respectively;
(6) check results of every frame and the check results of its next frame are compared respectively, when the check results of correspondence is equal, think that this two frame is identical, then draw the frame number SF calculating same number of frames: when SF is greater than the quiet frame thresholding F ' of setting, then send quiet frame index signal, otherwise provide non-quiet frame index signal.
2. a kind of time domain check digit digital video static frame detection according to claim 1, is characterized in that: when in described step (5), the line number i+1 of present frame is not more than L ', then turn back in step (4) and continue next line verification.
CN201210379916.3A 2012-10-09 2012-10-09 Digital video static frame detection method based on time domain check Active CN102857790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210379916.3A CN102857790B (en) 2012-10-09 2012-10-09 Digital video static frame detection method based on time domain check

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210379916.3A CN102857790B (en) 2012-10-09 2012-10-09 Digital video static frame detection method based on time domain check

Publications (2)

Publication Number Publication Date
CN102857790A CN102857790A (en) 2013-01-02
CN102857790B true CN102857790B (en) 2015-02-11

Family

ID=47403924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210379916.3A Active CN102857790B (en) 2012-10-09 2012-10-09 Digital video static frame detection method based on time domain check

Country Status (1)

Country Link
CN (1) CN102857790B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980765B (en) * 2015-06-15 2018-07-27 北京维鲸视界科技有限公司 A kind of plain text frame monitoring method
CN105578177A (en) * 2015-12-15 2016-05-11 浙江广播电视集团 Video static frame detection system based on CRC check and method thereof
CN110675425B (en) * 2019-08-22 2020-12-15 腾讯科技(深圳)有限公司 Video frame identification method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321234A (en) * 2007-06-06 2008-12-10 苏州科达科技有限公司 Control device and method for filtering video image based on motion detection
CN101765027A (en) * 2009-10-20 2010-06-30 大连捷成实业发展有限公司 Method for detecting time-domain weighted digital video static frame
CN102547370A (en) * 2011-11-01 2012-07-04 大连捷成实业发展有限公司 Black frame and frozen frame monitoring method and system for video signal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321234A (en) * 2007-06-06 2008-12-10 苏州科达科技有限公司 Control device and method for filtering video image based on motion detection
CN101765027A (en) * 2009-10-20 2010-06-30 大连捷成实业发展有限公司 Method for detecting time-domain weighted digital video static frame
CN102547370A (en) * 2011-11-01 2012-07-04 大连捷成实业发展有限公司 Black frame and frozen frame monitoring method and system for video signal

Also Published As

Publication number Publication date
CN102857790A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
CN103024434B (en) Automatic test system based on image matching
KR101619287B1 (en) Method and wireless handheld device for determining image hue
CN105408936A (en) System and method of correcting image artifacts
US8488004B2 (en) System and method for identifying discrepancy of image of object
CN107909569B (en) Screen-patterned detection method, screen-patterned detection device and electronic equipment
CN101374191A (en) Method and apparatus for correcting chromatic aberration of image
CN103733608B (en) Image processing apparatus and control method therefor
CN102867295B (en) A kind of color correction method for color image
CN101277385A (en) Method and apparatus to detect a dead pixel of an image sensor and method and apparatus to capture an image from an image sensor
CN102857790B (en) Digital video static frame detection method based on time domain check
CN106056021A (en) Hue-based volume-flexible color two-dimensional code stream data communication method and system
CN104202583A (en) Image processing device and method
CN105578177A (en) Video static frame detection system based on CRC check and method thereof
CN109068132B (en) VBO display interface test method, device, equipment and storage medium
CN103780887B (en) A kind of video signal processing method and device
CN105955754A (en) Method and device for displaying characters of user interface
CN109993718B (en) Multi-channel projection image fusion method and device
CN111160340B (en) Moving object detection method and device, storage medium and terminal equipment
US20160241830A1 (en) Electronic system and image processing method
CN105208379A (en) Method and device for detecting video port
CN116546335A (en) Simulation image acquisition method, simulation image acquisition device, electronic equipment and computer readable storage medium
CN105389781A (en) Vehicle light repairing method based on saliency detection and Criminisi algorithm
CN106686363A (en) Signal mixed processing method and device in display terminal
CN114414067B (en) Thermal imaging data processing method and device, thermal imaging photographic equipment and storage medium
US10321321B2 (en) Method and device for displaying locked interface and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: ANHUI TELEHOME DIGITAL TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: ANHUI TIANHONG DIGITAL TECH CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 230031, Anhui, Hefei Province Road No. 68, Shushan independent innovation industry base 7 8F

Patentee after: Anhui Telehome Digital Technology Co., Ltd.

Address before: 230031, Anhui, Hefei Province Road No. 68, Shushan independent innovation industry base 7 8F

Patentee before: Anhui Telehome Digital Technology Co., Ltd.