CN107277500A - The treating method and apparatus that video is compared - Google Patents
The treating method and apparatus that video is compared Download PDFInfo
- Publication number
- CN107277500A CN107277500A CN201710502377.0A CN201710502377A CN107277500A CN 107277500 A CN107277500 A CN 107277500A CN 201710502377 A CN201710502377 A CN 201710502377A CN 107277500 A CN107277500 A CN 107277500A
- Authority
- CN
- China
- Prior art keywords
- pel
- vision signal
- comparison
- field picture
- characteristic value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/004—Diagnosis, testing or measuring for television systems or their details for digital television systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/04—Synchronising
Abstract
The present invention provides the treating method and apparatus that a kind of video is compared, wherein, this method includes:For first via vision signal to be compared and the second tunnel vision signal, procedure below is performed respectively:For each two field picture of vision signal, according to the image feature value of each pixel of current frame image, the fit characteristic value of each comparison pel of current frame image is determined;Find the video frame synchronization point of first via vision signal and the second tunnel vision signal;For each two field picture since video frame synchronization point, determine the fit characteristic value of each comparison pel of the first via vision signal on current frame image, each difference between the fit characteristic value for respectively comparing pel of the second tunnel vision signal, according to each difference determine first via vision signal and the second tunnel vision signal on each two field picture it is whether consistent.The video analysis method accurate and effective of offer, can effectively identify whether each two field picture of vision signal there occurs exception, effectively identify whether vision signal occurs exception.
Description
Technical field
The present invention relates to broadcasting television technology field, more particularly to the treating method and apparatus that a kind of video is compared.
Background technology
With the fast development of TV tech and video media technology, for regarding for being played in field of broadcast televisions
The security of frequency is increasingly paid attention to, and the grade for the safe broadcast of video is also more and more stricter.So as to need to regard broadcasting
Frequency is monitored, and then can be found that the abnormal problem of vision signal within the very short time, to be handled.
In the prior art, the monitoring for video is the conditions such as the frozen frame based on video, Hei Chang, colour bar, color field, to video
Broadcast state judged, judge whether vision signal abnormal, to judge whether the broadcast state of video abnormal.
But in the prior art, for the monitoring of video, the vision signal all the way of transmission can be detected, can only be in inspection
When measuring video and frozen frame or black field or colour bar occur, it is abnormal to determine vision signal, and then determines the broadcast shape of video
State is abnormal.Such monitoring mode, is only able to detect frozen frame, Hei Chang, colour bar, these abnormalities of color field of video, and is directed to
Can not be detected in other vision signal unusual conditions being likely to occur, so for analyze vision signal exception when, should
Method promptness is relatively low.
The content of the invention
The present invention provides the treating method and apparatus that a kind of video is compared, can to solve to be directed to other in the prior art
Can occur vision signal unusual condition can not detect, and then for analyze vision signal exception when, existing method and
The problem of when property is relatively low.
It is an aspect of the present invention to provide the processing method that a kind of video is compared, including:
For first via vision signal to be compared and the second tunnel vision signal, procedure below is performed respectively:For described
Each two field picture of vision signal, according to the image feature value of each pixel of current frame image, determines each of current frame image
Compare the fit characteristic value of pel;Wherein, each comparison pel obtains for a two field picture to be divided into the region of predetermined number
Arrive;
The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with described
Whether the fit characteristic value of each comparison pel of the two tunnel vision signals on each two field picture is identical, is regarded with finding the first via
Frequency signal and the video frame synchronization point of second tunnel vision signal, wherein, the video frame synchronization point characterizes the first via
Vision signal and second tunnel vision signal from the video frame synchronization point be initially synchronous;
For each two field picture since the video frame synchronization point, determine the first via vision signal in present frame
The fit characteristic value of each comparison pel on image, with second tunnel vision signal in the present frame with first via vision signal
Each difference between the fit characteristic value of each comparison pel on image corresponding to image, and institute is determined according to each difference
State first via vision signal and second tunnel vision signal whether consistent on each two field picture.
Another aspect of the present invention is to provide the processing unit that a kind of video is compared, including:
Determining module, for for first via vision signal to be compared and the second tunnel vision signal, performing respectively following
Process:For each two field picture of the vision signal, according to the image feature value of each pixel of current frame image, it is determined that working as
The fit characteristic value of each comparison pel of prior image frame;Wherein, each comparison pel is that a two field picture is divided into default
Obtained from several regions;
Analysis module, for determining that the fitting of each comparison pel of the first via vision signal on each two field picture is special
Value indicative, it is whether identical with the fit characteristic value that respectively compares pel of second tunnel vision signal on each two field picture, to seek
The video frame synchronization point of the first via vision signal and second tunnel vision signal is looked for, wherein, the video frame synchronization point
Characterize the first via vision signal and second tunnel vision signal from the video frame synchronization point be initially synchronous;
Comparing module, for for each two field picture since the video frame synchronization point, determining that the first via is regarded
The fit characteristic value of each comparison pel of the frequency signal on current frame image, is regarded with second tunnel vision signal with the first via
Each difference between the fit characteristic value of each comparison pel on image corresponding to the current frame image of frequency signal, and according to institute
State each difference and determine whether the first via vision signal and second tunnel vision signal are consistent on each two field picture.
The solution have the advantages that:By for first via vision signal to be compared and the second tunnel vision signal, dividing
Procedure below is not performed:For each two field picture of vision signal, according to the image feature value of each pixel of current frame image,
Determine the fit characteristic value of each comparison pel of current frame image;Wherein, each comparison pel is default for a two field picture is divided into
Obtained from the region of number;The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined,
It is whether identical with the fit characteristic value that respectively compares pel of the second tunnel vision signal on each two field picture, regarded with finding the first via
The video frame synchronization point of frequency signal and the second tunnel vision signal, wherein, video frame synchronization point characterizes first via vision signal and the
Two tunnel vision signals from the video frame synchronization point be initially synchronous;For each two field picture since video frame synchronization point,
Determine the fit characteristic value of each comparison pel of the first via vision signal on current frame image, with the second tunnel vision signal with
Each difference between the fit characteristic value of each comparison pel on image corresponding to the current frame image of first via vision signal,
And according to each difference determine first via vision signal and the second tunnel vision signal on each two field picture it is whether consistent.So as to provide
A kind of new video comparison method, the comparison that two-path video signal is carried out into vision signal is analyzed, and can more accurately be supervised
Whether abnormal measure needs progress broadcast vision signal;Also, the division in region is carried out for each two field picture of vision signal,
Obtain at least one and compare pel, the uniformity of each two field picture is analyzed using the fit characteristic value for comparing pel, carried
The video analysis method accurate and effective of confession, can effectively identify whether each two field picture of vision signal there occurs exception,
And then effectively identify whether vision signal occurs exception.
Brief description of the drawings
Fig. 1 is the flow chart for the processing method that the video that the embodiment of the present invention one is provided is compared;
Fig. 2 is the flow chart one for the processing method that the video that the embodiment of the present invention two is provided is compared;
The schematic diagram of basic pel in the processing method that Fig. 3 compares for the video that the embodiment of the present invention two is provided;
Fig. 4 is the schematic diagram one for comparing pel in the processing method that the video that the embodiment of the present invention two is provided is compared;
Fig. 5 is the schematic diagram two for comparing pel in the processing method that the video that the embodiment of the present invention two is provided is compared;
The flow of searching video frame synchronization point in the processing method that Fig. 6 compares for the video that the embodiment of the present invention two is provided
Figure;
Fig. 7 is the flowchart 2 for the processing method that the video that the embodiment of the present invention two is provided is compared;
Fig. 8 is the structural representation for the processing unit that the video that the embodiment of the present invention three is provided is compared;
Fig. 9 is the structural representation for the processing unit that the video that the embodiment of the present invention four is provided is compared.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the flow chart for the processing method that the video that the embodiment of the present invention one is provided is compared, as shown in figure 1, this implementation
The method of example, including:
Step 101, for first via vision signal to be compared and the second tunnel vision signal, procedure below is performed respectively:
For each two field picture of vision signal, according to the image feature value of each pixel of current frame image, current frame image is determined
Each comparison pel fit characteristic value;Wherein, each pel that compares obtains for a two field picture to be divided into the region of predetermined number
Arrive.
In the present embodiment, specifically, processing unit or clothes that the executive agent of the present embodiment can compare for video
The device or system of business device or arbitrarily other methods that can perform the present embodiment.
, it is necessary to which transmitting two paths vision signal, is divided into main road vision signal and standby when the vision signal of TV is transmitted
Road vision signal, generally, main road vision signal are used as vision signal to be played.In the present embodiment, can be by master
Road vision signal is referred to as first via vision signal, and standby road vision signal is referred to as into the second tunnel vision signal;Or, first via video
Signal, the second tunnel vision signal are all main road vision signals, or first via vision signal, the second tunnel vision signal Dou Shibei roads
Vision signal;Go the comparison for carrying out vision signal to two-path video signal to analyze, can more accurately monitor to need to carry out
Whether abnormal broadcast vision signal.
For first via vision signal to be compared and the second tunnel vision signal, it is required for determining respectively respective each
The individual fit characteristic value for comparing pel.
For first via vision signal, it is necessary to which for each two field picture of first via vision signal, each two field picture is drawn
Being divided into the comparison pel that predetermined number has been marked off on the region of predetermined number, and then each two field picture, i.e. each region is
One comparison pel;For each two field picture, then the image feature value of each pixel in current frame image, is counted
Each fit characteristic value for comparing pel in current frame image is calculated, wherein, one compares pel and has a fit characteristic value.Its
In, for a pixel, the image feature value of a pixel includes Y characteristic values, U characteristic values and V characteristic values;Y
Characteristic value, U characteristic values and V characteristic values, are according to obtained from colour coding method of the prior art.
Likewise, for the second tunnel vision signal, it is necessary to for each two field picture of the second tunnel vision signal, by each frame
Image is divided into the comparison pel that predetermined number has been marked off on the region of predetermined number, and then each two field picture, i.e., each
Region is a comparison pel;For each two field picture, then the image of each pixel in current frame image is special
Value indicative, calculates each fit characteristic value for comparing pel in current frame image, wherein, one compares pel and has a fitting special
Value indicative.Wherein, for a pixel, the image feature value of a pixel includes Y characteristic values, U characteristic values and V spies
Value indicative.
Step 102, the fit characteristic value for determining each comparison pel of the first via vision signal on each two field picture, with
Whether the fit characteristic value of each comparison pel of the two tunnel vision signals on each two field picture is identical, to find first via video letter
Video frame synchronization point number with the second tunnel vision signal, wherein, video frame synchronization point characterizes first via vision signal and the second tunnel
Vision signal from the video frame synchronization point be initially synchronous.
In the present embodiment, specifically, first by each two field picture of first via vision signal and the second tunnel vision signal
Each two field picture be compared, specifically, by each comparison pel of the first via vision signal on each two field picture
Fit characteristic value, be compared point with the fit characteristic value that respectively compares pel of the second tunnel vision signal on each two field picture
Analysis, goes to judge the fit characteristic value of each comparison pel of the first via vision signal on each two field picture, believes with the second road video
Whether the fit characteristic value of each comparison pel number on each two field picture is identical, and then judges the every of first via vision signal
One two field picture, whether each two field picture with the second tunnel vision signal is identical respectively.Compared to multiple image
After analysis, search out in first via vision signal and the second tunnel vision signal when continuous Q two field pictures are identical, so that it may
To determine to have found video frame synchronization point, the video frame synchronization point characterize first via vision signal and the second tunnel vision signal from this
That two field picture that video frame synchronization point is characterized is initially synchronous.
For example, video frame synchronization point represents the i-th two field picture from first via vision signal, the second tunnel vision signal
Jth two field picture starts, and first via vision signal is synchronous with the second tunnel vision signal;Wherein, i, j are positive integer.
Step 103, for each two field picture since video frame synchronization point, determine first via vision signal in present frame
The fit characteristic value of each comparison pel on image, with the second tunnel vision signal in the current frame image with first via vision signal
Each difference between the fit characteristic value of each comparison pel on corresponding image, and first via video is determined according to each difference
Whether signal and the second tunnel vision signal are consistent on each two field picture.
In the present embodiment, specifically, after video frame synchronization point is determined, being directed to from the video frame synchronization point and opening
The each two field picture begun is fitted the analysis of characteristic value, go to determine first via vision signal and the second tunnel vision signal from this
It is whether consistent on each two field picture that video frame synchronization point starts.
For example, video frame synchronization point represents the i-th two field picture from first via vision signal, the jth of the second tunnel vision signal
Two field picture starts, and first via vision signal is synchronous with the second tunnel vision signal;So just can be from first via vision signal
The i-th two field picture start to analyze first via vision signal, to second since the jth two field picture of the second tunnel vision signal
Road vision signal is analyzed, and the i-th two field picture of first via vision signal and the jth two field picture of the second tunnel vision signal are carried out
Analysis is compared, the i+1 two field picture of first via vision signal and the two field picture of jth+1 of the second tunnel vision signal are analyzed,
The i-th+2 two field picture and the two field picture of jth+2 of the second tunnel vision signal of first via vision signal are analyzed, by that analogy.
Wherein, i, j are positive integer.
Specifically, for each two field picture since video frame synchronization point, calculate first via vision signal and working as
The fit characteristic value of each comparison pel on prior image frame, with the second tunnel vision signal in the present frame with first via vision signal
Each difference between the fit characteristic value of each comparison pel on image corresponding to image.For example, video frame synchronization point
The i-th two field picture from first via vision signal is represented, the jth two field picture of the second tunnel vision signal starts, first via vision signal
It is synchronous with the second tunnel vision signal;Pel is compared for the i-th two field picture of first via vision signal each, for the
The current comparison pel of the i-th two field picture of vision signal, calculates the fit characteristic of the current comparison pel of i-th two field picture all the way
Value, the fit characteristic for comparing pel corresponding with current comparison chart member with the jth two field picture with the second tunnel vision signal
Difference between value;Then, for first via vision signal i+1 two field picture each compare pel, for the first via
The fit characteristic value of the current comparison pel of the i+1 two field picture of vision signal, calculates the current comparison chart of the i+1 two field picture
Member, the fitting spy for comparing pel corresponding with the current comparison chart member with the two field picture of jth+1 with the second tunnel vision signal
Difference between value indicative;The like.
Then, for each two field picture since video frame synchronization point, regarded according to first via vision signal with the second tunnel
Each difference of the frequency signal on a corresponding two field picture, goes analysis first via vision signal and the second tunnel vision signal corresponding at this
A two field picture on whether be consistent.
For example, for first via vision signal the i-th two field picture each compare pel, for first via video
The current comparison pel of i-th two field picture of signal, calculates the fit characteristic value of the current comparison pel of i-th two field picture, with
Between the fit characteristic value for comparing pel corresponding current comparison chart member on the jth two field picture of second tunnel vision signal
Difference;If having x comparison pel, it may be determined that go out x difference;Then, if difference is zero, it is determined that ratio corresponding with the difference
It is consistent to pel;If for a current two field picture, the number of consistent comparison pel can be with preset range, then
Determine that the i-th two field picture of first via vision signal and the jth two field picture of the second tunnel vision signal are consistent, otherwise determine first
I-th two field picture of road vision signal and the jth two field picture of the second tunnel vision signal are inconsistent.
The present embodiment by for first via vision signal to be compared and the second tunnel vision signal, performing following mistake respectively
Journey:For each two field picture of vision signal, according to the image feature value of each pixel of current frame image, present frame figure is determined
The fit characteristic value of each comparison pel of picture;Wherein, it is each compare pel be by a two field picture be divided into predetermined number region and
Obtain;The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with the second road video
Whether the fit characteristic value of each comparison pel of the signal on each two field picture is identical, to find first via vision signal and second
The video frame synchronization point of road vision signal, wherein, video frame synchronization point characterizes first via vision signal and the second tunnel vision signal
It is initially synchronous from the video frame synchronization point;For each two field picture since video frame synchronization point, determine that the first via is regarded
The fit characteristic value of each comparison pel of the frequency signal on current frame image, believes with the second tunnel vision signal with first via video
Number current frame image corresponding to image on each comparison pel fit characteristic value between each difference, and according to each difference
Determine whether first via vision signal and the second tunnel vision signal are consistent on each two field picture.So as to be regarded there is provided a kind of new
Frequency comparison method, the comparison that two-path video signal is carried out into vision signal is analyzed, and can more accurately monitor to need to carry out
Whether abnormal broadcast vision signal;Also, the division in region is carried out for each two field picture of vision signal, at least one is obtained
Compare pel, using compare pel fit characteristic value the uniformity of each two field picture is analyzed there is provided video analysis
Method accurate and effective, can effectively identify whether each two field picture of vision signal there occurs exception, and then effective knowledge
Do not go out whether vision signal occurs exception.
Fig. 2 is the flow chart one for the processing method that the video that the embodiment of the present invention two is provided is compared, as shown in Fig. 2 this reality
The method for applying example, including:
Step 201, for first via vision signal to be compared and the second tunnel vision signal, procedure below is performed respectively:
It is for each two field picture of vision signal, Y, U, V SD of current frame image is special when vision signal is SD vision signal
Value indicative, is converted to R, G, B characteristic value, and according to default compensating factor, R, G, B characteristic value are converted into Y, U, V high definition feature
Value;Wherein, Y, U, V high definition characteristic value are the image feature value of each pixel of current frame image.
Wherein, the Y high definitions characteristic value in image feature value is the U in 0.21*R+0.71*G+0.07*B, image feature value
High definition characteristic value is that the V high definitions characteristic value in (0.5*B-0.11*R-0.38G) * 1.02+128, image feature value is (0.5*R-
0.45*G-0.045B)*1.02+128。
In the present embodiment, specifically, based on digital component serial line interface (Serial Digital Interface, letter
Claim SDI) high-definition video signal, have differences, needing high definition in color gamut space with the SD vision signal based on SDI
, it is necessary to which Y, U, V characteristic value to SD vision signal are carried out when vision signal is compared with SD vision signal
Chrominance space is compensated.
In the present embodiment, main road vision signal can be referred to as to first via vision signal, standby road vision signal is referred to as
Second tunnel vision signal;Or, first via vision signal, the second tunnel vision signal are all main road vision signals, or the first via
Vision signal, the second tunnel vision signal Dou Shibei roads vision signal.For example, first via vision signal is main road HD video
Signal, the second tunnel vision signal is standby road high-definition video signal;Or, first via vision signal is the clear vision signal of main road sign,
Second tunnel vision signal is the clear vision signal of standby road sign;Or, first via vision signal is main road high-definition video signal, the second tunnel
Vision signal is the clear vision signal of main road sign;Or, first via vision signal is standby road high-definition video signal, the second road video letter
Number it is the standby clear vision signal of road sign.
, it is necessary to be regarded to SD when in first via vision signal, the second tunnel vision signal with SD vision signal
Frequency signal carries out chrominance space compensation.First, for SD vision signal each two field picture each pixel, present frame figure
The image feature value of the current pixel point of picture is Y, U, V high definition characteristic value, and Y, U, V of the current pixel point of current frame image are marked
Clear characteristic value, is respectively converted into R, G, B characteristic value, for example, R=Y+1.36* (V-128), G=Y-0.33* (U-128-0.7*
(V-128), B=Y+1.72* (U-128);Then, for SD vision signal each two field picture each pixel, according to
The compensating factor pre-set, by R, G, B characteristic value of the current pixel point of current frame image, is converted to Y, U, V high definition feature
Value, for example, Y high definitions characteristic value is 0.21*R+0.71*G+0.07*B, U high definitions characteristic value is (0.5*B-0.11*R-0.38*G) *
1.02+128, V high definition characteristic value are (0.5*R-0.45*G-0.045*B) * 1.02+128.Y, U, the V used in subsequent step
Characteristic value, is Y, U, V high definition characteristic value here.
Y, U, V high definition characteristic value can also be referred to as to Y compensation, U compensation, V compensation, Y, U, V high definition characteristic value are respectively pair
Y, U, V characteristic value of SD vision signal compensate after Y, U, V characteristic value;Y, U, V of SD video just may be used after being compensated
To carry out the Vector operation of subsequent step.
Step 202, for first via vision signal to be compared and the second tunnel vision signal, procedure below is performed respectively:
For each two field picture of vision signal, according to the image feature value of each pixel of current frame image, current frame image is determined
Each comparison pel fit characteristic value;Wherein, each pel that compares obtains for a two field picture to be divided into the region of predetermined number
Arrive;
Wherein, step 202, specifically include:
For first via vision signal to be compared and the second tunnel vision signal, procedure below is performed respectively:
For each two field picture, by the pixel of every X adjacent position of current frame image, it is defined as a basis
Pel, wherein, X is positive integer;
For each basic pel of each two field picture, the image of each pixel in the basic pel is special
Value indicative, determines the foundation characteristic value of the basic pel;
For each two field picture, by the basic pel of every N number of adjacent position of current frame image, it is defined as a ratio
To pel, wherein, N is positive integer;
For each comparison pel of each two field picture, the basis of each basic pel in the comparison pel
Characteristic value, determines the vector characteristic value of the comparison pel;
For each comparison pel of each two field picture, according to the vector characteristic value of the comparison pel, it is determined that should
Compare the fit characteristic value of pel.
Wherein, Y characteristic values, U characteristic values and V characteristic values are included in image feature value;Include Y in foundation characteristic value special
Levy average, U characteristic means and V characteristic means;Include Y ' characteristic values, U ' characteristic values and V ' characteristic values in vector characteristic value;Intend
Conjunction characteristic value is P=a*Y '+b*U '+c*V ', wherein, a, b and c are weight coefficient.
In the present embodiment, specifically, for first via vision signal to be compared and the second tunnel vision signal, being required for
The fit characteristic value of each respective comparison pel is determined respectively.First via vision signal and the second road video can be believed
Number, the process of this step is performed respectively, to determine that each of each two field picture compares pel in the second tunnel vision signal
Fit characteristic value.
It is described below and vision signal is handled, determines each comparison chart of each two field picture in vision signal
The process of the fit characteristic value of member.
First, the collection of vision signal is carried out, de-embedding is carried out to the vision signal based on SDI;Then, vision signal is entered
The preliminary signal transacting of row, that is, carry out the extraction of the image feature value of each pixel, the characteristics of image of each pixel
Value includes Y characteristic values, U characteristic values and V characteristic values.
Then, for each two field picture of vision signal, by the pixel of every X adjacent position of current frame image
Point, is defined as a basic pel, wherein, X is positive integer.For example, Fig. 3 is the video ratio that the embodiment of the present invention two is provided
To processing method in basic pel schematic diagram, will be per X phase as shown in figure 3, for each two field picture of vision signal
The pixel that ortho position is put is defined as a basic pel, and then each two field picture is divided into the basic pel of m*n blocks, wherein, n
Represent that the line number of basic pel, m represent the columns of basic pel.
Then, for each basic pel of each two field picture of vision signal, according in current basal pel
Each pixel image feature value, calculate the foundation characteristic value of current basal pel;Wherein, include in image feature value
Y characteristic values, U characteristic values and V characteristic values;Include Y characteristic means in foundation characteristic valueU characteristic meansWith V characteristic meansSpecifically, the average of the Y characteristic values of each pixel in current basal pel is asked for, is used as the Y of current basal pel special
Levy averageThe average of the U characteristic values of each pixel in current basal pel is asked for, the U features of current basal pel are used as
AverageThe average of the V characteristic values of each pixel in current basal pel is asked for, it is equal as the V features of current basal pel
Value
Then, for each two field picture of vision signal, by the foundation drawing of every N number of adjacent position of current frame image
Member, is defined as a comparison pel, wherein, N is positive integer.For example, Fig. 4 is the video ratio that the embodiment of the present invention two is provided
To processing method in comparison pel schematic diagram one, can be by every 4 adjacent bits as shown in figure 4, for each two field picture
The basic pel put is defined as a comparison pel, i.e., the area of basic pel is the 1/4 of the area of comparison pel;N ' expressions ratio
To the line number of pel, m ' expressions compare the columns of pel.
Then, for each comparison pel of each two field picture of vision signal, compared according to current in pel
Each basic pel foundation characteristic value, it is determined that currently compare pel vector characteristic value;Wherein, include in vector characteristic value
Y ' characteristic values, U ' characteristic values and V ' characteristic values.Specifically, by the current Y characteristic means for comparing each basic pel in pel
Radian value conversion is carried out, the current Y ' characteristic values for comparing pel are obtained;By the current U features for comparing each basic pel in pel
Average carries out radian value conversion, obtains the current U ' characteristic values for comparing pel;By the current V for comparing each basic pel in pel
Characteristic mean carries out radian value conversion, obtains the current V ' characteristic values for comparing pel.Wherein, the process of radian value conversion is a kind of
The process of Vectorization Algorithm.
For example, Fig. 5 showing for the comparison pel in the processing method of the video comparison of the offer of the embodiment of the present invention two
It is intended to two, as shown in figure 5, for the basic pel of every 4 adjacent positions, this 4 basic pels constitute a comparison pel,
Per adjacent 4, the Y characteristic means of basic pel are respectivelyThen will by algorithm
Y ' the characteristic values of this 4 characteristic mean resultant vector characteristic values, can be by the Y characteristic means of corresponding 4 basic pels in x side
Radian value is up-converted to, y side, obtaining Y ' characteristic values isThe basic pel per adjacent 4
U characteristic means are respectivelyThen this 4 characteristic mean synthesis are sweared by algorithm
U ' the characteristic values of measure feature value, in x directions, y side can be up-converted to arc by the Y characteristic means of corresponding 4 basic pels
Angle value, obtaining U ' characteristic values isPer adjacent 4, the V characteristic means of basic pel are respectivelyThen by algorithm by the U ' features of this 4 characteristic mean resultant vector characteristic values
Value, in x directions, y side can be up-converted to radian value by the Y characteristic means of corresponding 4 basic pels, obtainCharacteristic value
For
Then, for for each comparison pel of each two field picture, in the current vector characteristic value for comparing pel
Y ' characteristic values, U ' characteristic values and V ' characteristic values be weighted after processing, obtain the current fit characteristic value for comparing pel;Its
In, fit characteristic value is P=a*Y '+b*U '+c*V ', and a, b and c are weight coefficient, and Y ' characteristic values, U ' characteristic values and V ' features
It is worth for vector characteristic value.One compares pel and has a fit characteristic value.
Step 203, the fit characteristic value for determining each comparison pel of the first via vision signal on each two field picture, with
Whether the fit characteristic value of each comparison pel of the two tunnel vision signals on each two field picture is identical, to find first via video letter
Video frame synchronization point number with the second tunnel vision signal, wherein, video frame synchronization point characterizes first via vision signal and the second tunnel
Vision signal from the video frame synchronization point be initially synchronous.
Wherein, step 203, specifically include:
The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with the second road video
Whether the fit characteristic value of each comparison pel of the signal on each two field picture is identical, to determine first via vision signal and second
Whether each comparison pel of the road vision signal on each two field picture be identical, and determines first via vision signal and the second road video
Signal compares the different block number of pel on each two field picture;
It is determined that first via vision signal and the second tunnel vision signal comparison chart in each two field picture of continuous P two field picture
The different block number of member, during less than the first block number threshold value, determines that the frame after P frames is video frame synchronization point;Or, it is determined that
The vision signal block number that in each two field picture of continuous Q two field pictures to compare pel from the second tunnel vision signal different, small all the way
When the second block number threshold value, determine that the frame after Q frames is video frame synchronization point;
Wherein, P, Q are positive integer, and P is more than Q, and the first block number threshold value is less than the second block number threshold value.
In the present embodiment, specifically, next needing to find regarding for first via vision signal and the second tunnel vision signal
Frequency frame synchronization point.Firstly the need of the fit characteristic value of each comparison pel by first via vision signal on each two field picture, with
The fit characteristic value of each comparison pel of the second tunnel vision signal on each two field picture is compared, and is confirmed whether identical, is entered
And determine first via vision signal and the second tunnel vision signal on each two field picture whether respectively compare pel identical, for example,
By the first two field picture of first via vision signal, the second two field picture ..., N1 two field pictures, first with the second tunnel vision signal
Two field picture, the second two field picture ..., N2 two field pictures are compared analysis;By each of the first two field picture of first via vision signal
The fit characteristic value of pel is compared, respectively with the fit characteristic for respectively comparing pel of the first two field picture of the second tunnel vision signal
Value, the fit characteristic value of each comparison pel of the second two field picture ..., the fit characteristic value of each comparison pel of N2 two field pictures is entered
Row compares;By by the fit characteristic value of each comparison pel of the second two field picture of first via vision signal, regarded respectively with the second tunnel
The fit characteristic of the fit characteristic value of each comparison pel of first two field picture of frequency signal, each comparison pel of the second two field picture
Value ..., the fit characteristic value of each comparison pel of N2 two field pictures is compared;By that analogy.
First via vision signal and the second tunnel vision signal is determined respectively whether pel is compared on each two field picture
After identical, count first via vision signal and the second tunnel vision signal and compare the different block of pel on each two field picture
Number.
Then, it is determined that first via vision signal and the second tunnel vision signal are in each two field picture of continuous P two field picture
The different block number of pel is compared, during less than the first block number threshold value, it is possible to determine that the frame after P frames is video frame synchronization point;
Or, it is determined that first via vision signal compares pel with the second tunnel vision signal in each two field picture of continuous Q two field pictures
Different block number, during less than the second block number threshold value, it is possible to determine that the frame after Q frames is video frame synchronization point;Wherein, P, Q
For positive integer, P is more than Q, and the first block number threshold value is less than the second block number threshold value.
For example, it is determined that first via vision signal and the second tunnel vision signal continuous 30 two field picture each frame figure
The different block number of pel is compared as in, during less than 15, it is possible to determine that the frame after 30 frames is video frame synchronization point;Or,
Determine that first via vision signal in each two field picture of continuous 15 two field picture compares pel from the second tunnel vision signal different
Block number, during less than 40, it is possible to determine that the frame after 40 frames is video frame synchronization point.
Specifically, the specific strategy of video frame synchronization point of first via vision signal and the second tunnel vision signal is found such as
Lower process.First against first via vision signal, the second tunnel vision signal, a FIFO buffer area is set up respectively and carries out data
Caching, is respectively defined as A buffer areas and B buffer areas.
The condition for setting synchronization is first needed as first via vision signal is with the second tunnel vision signal in continuous P 1 or Q1 frame phases
Together.And due to there is actual frame difference S between first via vision signal and the second tunnel vision signal, and then need to consider actual frame
Poor the problem of;So as to finally set synchronous condition to be, first via vision signal is with the second tunnel vision signal in continuous P=P1+S
Or Q=Q1+S frames are identical.For example, S values can be 15 frames, and the S value upper limit can be set as 750 frames, i.e., 30 second.From
And, the sizes of FIFO buffer areas is P or Q, and P=P1+S, Q=Q1+S.Below using the size of FIFO buffer areas as P, it is situated between
Continue.
Arrived in the 1st two field picture a [1] of first via vision signal and the 1st two field picture b [1] of the second tunnel vision signal
When, respectively there are the data of 1 two field picture in A buffer areas and B buffer areas.Then, statistics a [1] and b [1] comparison knot are started
Really.Specifically, judge that fit characteristic value and the fitting of b [1] the 1st comparison pel of a [1] the 1st comparison pel are special
Whether value indicative is identical, if identical, and a [1] the 1st the 1st comparison pel for comparing pel and b [1] is identical, if not phase
Together, then the 1st comparison pel that the 1st of a [1] compares pel and b [1] is to differ;Equally, a [1] the 2nd ratio is judged
Whether the fit characteristic value to the fit characteristic value of pel and b [1] the 2nd comparison pel is identical, if identical, and the of a [1]
2 the 2nd comparison pels for comparing pel and b [1] are identical, if differing, the 2nd of a [1] compares pel and b's [1]
It is to differ that 2nd, which compares pel,;By that analogy, until judge a [1] last compare pel fit characteristic value with
Whether the fit characteristic value that last of b [1] compares pel is identical, to judge a [1] last comparison pel and b
Whether [1] last compares pel identical;Then count compared in a [1] and b [1] the different block number of pel and, should
Whether block number is less than the first block number threshold value, and then obtained a [1] and b [1] comparison result.By a [1] and b [1] comparison
As a result record in RA [0] and RB [0], respectively there is the comparison result of 1 pair of data in RA [0] and RB [0].
Arrived in the 2nd two field picture a [2] of first via vision signal and the 2nd two field picture b [2] of the second tunnel vision signal
When, respectively there are the data of 2 two field pictures in A buffer areas and B buffer areas;Then a [2] and b [2] comparison result, a are counted
[2] it is identical with b [1] comparison process with a [1] with b [2] comparison process, count a [2] different with pel is compared in b [2]
Block number, and whether the block number be less than the first block number threshold value, and then has obtained a [2] and b [2] comparison result.By a [2]
Do not recorded in RA [0] and RB [0] with b [2] comparison result, now, respectively there is the comparison knot of 2 pairs of data in RA [0] and RB [0]
Really;And a [1] and b [2] comparison result are counted, a [1] and b [2] comparison result are recorded in RA [1], now, RA
[1] there is the comparison result of 1 pair of data in;And a [2] and b [1] comparison result are counted, by a [2] and b [1] comparison result
Record now, there is the comparison result of 1 pair of data in RB [1] in RB [1].
Arrived in the 3rd two field picture a [3] of first via vision signal and the 3rd two field picture b [3] of the second tunnel vision signal
When, respectively there are the data of 3 two field pictures in A buffer areas and B buffer areas;Then a [3] and b [3] comparison result are counted, by a
[3] and b [3] comparison result, record in RA [0] and RB [0], now respectively have the comparison of 3 pairs of data in RA [0] and RB [0]
As a result;A [2] and b [3] comparison result are counted, a [2] and b [3] comparison result are recorded in RA [1], now, RA [1]
In have the comparison results of 2 pairs of data;A [3] and b [2] comparison result are counted, a [3] and b [2] comparison result are recorded in RB
[1] in, now, RB [1] has the comparison result of 2 pairs of data;A [1] and b [3] comparison result are counted, by a [1] and b [3] ratio
To result record in RA [2], now, there is the comparison result of 1 pair of data in RA [2];A [3] and b [1] comparison result are counted,
A [3] and b [1] comparison result are recorded in RB [2], now there is the comparison result of 1 pair of data in RB [2].
By that analogy, in the P1 two field pictures a [P1] and the P1 frames of the second tunnel vision signal of first via vision signal
When image b [P1] arrives, respectively there are the data of P1 two field pictures in A buffer areas and B buffer areas.Count a's [P1] and b [P1]
Comparison result, a [P1] and b [P1] comparison result are recorded in RA [0] and RB [0], now, respectively had in RA [0] and RB [0]
Comparison results of the P1 to data.This when, judge that RA [0] meets in the two field pictures of P1 altogether in synchronous thresholding, i.e. RA [0],
The first via vision signal block number that in each two field picture of the two field picture of continuous P 1 to compare pel from the second tunnel vision signal different
Less than the first block number threshold value;If RA [0] meets synchronous thresholding, RA [0] now is recorded as RA_best, if RB [0] is accorded with
Contract walks thresholding, and RB [0] now is recorded as into RB_best.It is similar with the comparison process of each frame before, in addition it is also necessary to count a
[P1-1] and b [P1] comparison result, a [P1-1] and b [P1] comparison result are recorded in RA [1], now, in RA [1]
There is comparison results of the P1-1 to data;A [P1] and b [P1-1] comparison result are counted, by [P1] and b [P1-1] comparison result
Record now, there is comparison results of the P1-1 to data in RB [1] in RB [1];Until counting on a [1] and b [P1] comparison
As a result, a [1] and b [P1] comparison result are recorded in RA [P1-1], now, there is the comparison knot of 1 pair of data in RA [P1-1]
Really;A [P1] and b [1] comparison result are counted, a [P1] and b [1] comparison result are recorded in RB [P1-1], now, RB
There is the comparison result of 1 pair of data in [P1-1].
Then, in the P1+1 two field pictures a [P1+1] and the P1+1 of the second tunnel vision signal of first via vision signal
When two field picture b [P1+1] arrives, respectively there are the data of P1+1 two field pictures in A buffer areas and B buffer areas.This when, need
A [1] and b [1] comparison result are deleted from the RA [0] and RB [0], and increase a [P1+1] and b [comparison result of [P1+1],
Now respectively there is comparison results of the P1 to data in RA [0] and RB [0];It is determined that meet synchronous thresholding when now RA [0], and it is excellent
When RA_best before, then the RA_best before being covered with now RA [0] obtains new RA_best;It is determined that this
When RB [0] meet synchronous thresholding, and when RB_best before being better than, then the RB_ before being covered with now RB [0]
Best, obtains new RB_best.Then, a [1] and b [2] comparison result are deleted from RA [1], and increases a [P1-1] and b
The comparison result of [P1], now RA [1] respectively have comparison results of the P1 to data;It is determined that RA [1] meets synchronous thresholding, and it is better than
The RA_best obtained before, then with the RA_best obtained before RA [1] coverings now, then obtain a new RA_best.
A [2] and b [1] comparison result are deleted from RB [1], and increases a [P1] and b [P1-1] comparison result, now RB [1] is each
There is comparison results of the P1 to data;Equally, judge if meeting synchronous thresholding when to RB [1].By that analogy, statistics a [2]
With b [P1+1] comparison result, record in RA [P1-1], now there is the comparison result of 2 pairs of data in RA [P1-1];Count a
[P1+1] and b [2] comparison result, record in RB [P1-1], now, there is the comparison result of 2 pairs of data in RB [P1-1].
Wherein, RA [p] and the RA_best before being better than, or RB [p] be better than before RB_best, p be 0 to P-1 it
Between integer, here the different block number of pel is compared in each two field picture better than referring in current RA [p], be less than it
Comparison chart in each two field picture is compared in the different block number of pel, RB [p] current in other words in preceding RA_best in each two field picture
The different block number of pel is compared in the different block number of member, the RB_best before being less than in each two field picture.For example, RA_
Have the comparison result of 3 pairs of data in best, a [1] and b [1] comparison result be compare the different block number of pel be 20, a [2] and
B [2] comparison result is to compare that the different block number of pel is 10, a [3] and b [3] comparison result is the different block of comparison pel
Number is 15;There is the comparison result of 3 pairs of data in RA [1], a [1] is to compare the different block number of pel to be with b [2] comparison result
5, a [2] and b [3] comparison result are to compare that the different block number of pel is 8, a [3] and b [4] comparison result is comparison pel
Different block numbers is 5;Understand, the different total block data of the comparison pel of each two field picture, is less than each frame in RA_best in RA [1]
Image compares the different total block data of pel, it may be determined that RA [1] be better than before RA_best, at this moment video frame synchronization point be
4th frame of first via vision signal and the 5th frame of the second tunnel vision signal.
It is similar with the analysis process of P1+1 two field pictures, carry out the judgement of follow-up each frame.In first via vision signal
When P=P1+S two field pictures a [P] and the P=P1+S two field pictures b [P] of the second tunnel vision signal arrivals, in A cachings
Respectively there are the data of P two field pictures in area and B buffer areas.A [1] and b [1] comparison knot are deleted from RA [P-P1] and RB [P-P1]
Really, and increase a [N] and b [N] comparison result, be separately recorded in RA [0] and RB [0], respectively there is comparison knots of the P1 to data
Really;If RA [0] meets synchronous thresholding, and better than the newest RA_best obtained in said process, is then covered with now RA [0]
The RA_best, obtains a new RA_best;If RB [0] meets synchronous thresholding, and newest better than what is obtained in said process
RB_best, then cover the RB_best with now RB [0], obtain a new RB_best.By that analogy.Then from RA [1]
Middle deletion a [1] and b [S] comparison result, and increase a [P-S-1] and b [P] comparison result, now RA [S-1] respectively has M pairs
The comparison result of data;If RA [S-1] meets synchronous thresholding, and better than newest RA_best, is then covered with now RA [S-1]
Newest RA_best, obtains a new RA_best.A [S] and b [1] comparison result are deleted from RB [1], and increases a
[P] and b [P-S-1] comparison result, now RB [1] respectively have comparison results of the M to data;If RB [S-1] meets synchronous thresholding,
And better than newest RB_best, then newest RB_best is covered with now RB [S-1], a new RB_best is obtained.
It is similar with above procedure, can be for first via vision signal and the second tunnel vision signal in continuous Q=Q1+S frames
Upper identical condition, is analyzed.Similar, by comparison result record in CRA [0]~CRA [S-1] and CRB [0]~CRB [S-
1] in.CRA is similar with CRB statistics and RA, RB statistical method, and here is omitted.Wherein, if CRA [0]~CRA [S-1]
In have meet compare thresholding result, then it is true to define bFindNoramal_A;If having in CRB [0]~CRB [S-1] and meeting ratio
To the result of thresholding, then it is true to define bFindNoramal_B.
Then, it is necessary to be compared analysis to the RA [0] and RA [0] finally given, if the RA [0] and RA that finally give
[0] result is consistent, then need to judge to be currently found video frame synchronization point whether be in frozen frame, Hei Chang, color field, colour bar one
Kind;If it is one kind in frozen frame, Hei Chang, color field, colour bar that video frame synchronization point, which is currently found, does not generate and compare abnormal report
It is alert, and relative recording is resetted, video frame synchronization point is looked for again;If it is not frozen frame, Hei Chang, coloured silk that video frame synchronization point, which is currently found,
One kind in field, colour bar, then it is final result that can determine RB_best.
The flow of searching video frame synchronization point in the processing method that Fig. 6 compares for the video that the embodiment of the present invention two is provided
Figure, as shown in fig. 6, including step 301- steps 308, main process is as follows:
Step 301, determine whether to have found video frame synchronization point.
Step 302, determine whether synchronous success.
Step 303, after step 302, if synchronous success, it is determined that RA_best and RB_best.
In this step, after the success synchronous with the second tunnel vision signal not by first via vision signal, still need
To go to analyze RA_best and RB_best using above procedure.
Step 304, after step 303, judges whether to reach the thresholding frame number found and judge synchronized result.
In step 304, refer here to be necessary to determine whether to analyze P two field pictures or Q two field pictures.If step
Confirm to reach thresholding after rapid 304, then perform step 301.
Step 305, judge whether to define video frame synchronization point.
In this step, if the RA_best and RB_best that finally give have the RA_best, it is necessary to finally giving
It is compared, takes optimal as synchronized result in the two with RB_best;Specifically, each frame in current RA_best
The different block number of pel is compared in image, if the block number different less than comparison pel in each two field picture in current RB_best;
If being less than, it is determined that RA_best is optimal, however, it is determined that be more than or equal to, it is determined that RB_best is optimal.If RA_best is deposited
, but RB_best is not present, and takes RA_best as final result;If RA_best is not present, RB_best is present, and takes RB_
Best is used as final result.
If RA_best and RB_best are not present, need to judge whether bFindNoramal_A or
BFindNoramal_B is true;If it is determined that bFindNoramal_A or bFindNoramal_B are true, then comparison is not generated abnormal
Alarm, and reset relative recording, video frame synchronization point looked for again;If it is determined that bFindNoramal_A and bFindNoramal_B
It is not true, then generation compares inconsistent information, and resets relative recording, and video frame synchronization point is looked for again.
Step 306, if it is determined that video frame synchronization point, then carried out to first via vision signal with the second tunnel vision signal
It is synchronous.
In this step, if after step 306, step 301 is performed if needing to find video frame synchronization point again.
If step 307, being not determined by video frame synchronization point, relative recording is resetted, video frame synchronization point is found again.
In this step, if performing step 301 after step 307.
Step 308, after step 302, if synchronous success, enters to first via vision signal with the second tunnel vision signal
On each two field picture of row whether consistent analysis.
After step 203, step 204 is performed.
Step 204, for each two field picture since video frame synchronization point, determine first via vision signal in present frame
The fit characteristic value of each comparison pel on image, with the second tunnel vision signal in the current frame image with first via vision signal
Each difference between the fit characteristic value of each comparison pel on corresponding image, and first via video is determined according to each difference
Whether signal and the second tunnel vision signal are consistent on each two field picture.
Wherein, step 204, specifically include:
Each two field picture since video frame synchronization point, for each comparison pel of each two field picture, it is determined that
The fit characteristic value of the current comparison pel of first via vision signal, and the current comparison pel of the second tunnel vision signal fitting
Difference between characteristic value;
Each two field picture since video frame synchronization point, for each comparison pel of each two field picture, true
When determining difference less than or equal to difference threshold, the current comparison pel of first via vision signal, and the second tunnel vision signal are determined
Current comparison pel be consistent;When it is determined that difference is more than difference threshold, the current ratio of first via vision signal is determined
To pel, and the current comparison pel of the second tunnel vision signal is inconsistent, and comparison pel differs in current frame image
The block number of cause;
Each two field picture since video frame synchronization point, for each two field picture, differs it is determined that comparing pel
When the block number of cause is less than the 3rd block number threshold value, determine first via vision signal with the second tunnel vision signal on current frame image
It is consistent;When it is determined that comparing the inconsistent block number of pel more than or equal to the 3rd block number threshold value, determine that first via video is believed
Number it is inconsistent on current frame image with the second tunnel vision signal;
Each two field picture since video frame synchronization point, it is determined that first via vision signal exists with the second tunnel vision signal
When being inconsistent on continuous Z two field pictures, determine that video is compared abnormal, and send the abnormal information warning of comparison, wherein, Z is just whole
Number;
After sending and comparing abnormal information warning, it is determined that first via vision signal with the second tunnel vision signal continuous
When being consistent on M two field pictures, determine that video is compared normal, wherein, M is positive integer.
In the present embodiment, specifically, first via vision signal and the second tunnel vision signal are directed to, from video frame synchronization
Each two field picture that point starts, for each comparison pel of each two field picture, calculates the current of first via vision signal
Compare pel fit characteristic value, and the second tunnel vision signal current comparison pel fit characteristic value between difference;So
After be less than or equal to difference threshold when judging the difference;If it is determined that the difference is less than or equal to difference threshold, it is determined that first
The current comparison pel of road vision signal, the current comparison pel with the second tunnel vision signal is consistent;If it is determined that difference is big
In difference threshold, it is determined that the current comparison pel of first via vision signal, and the second tunnel vision signal current comparison chart
Member is inconsistent.For for each two field picture video frame synchronization point, counting each ratio of current frame image
The inconsistent block number of pel is compared in current frame image, it is necessary to count after whether consistent to pel.
Then, judge current frame image compares whether the inconsistent block number of pel is less than the 3rd block number threshold value;If really
The inconsistent block number of pel that compares of settled prior image frame is less than the 3rd block number threshold value, it is determined that first via vision signal and the
Two tunnel vision signals are consistent on current frame image;If it is determined that comparing the inconsistent block number of pel is more than or equal to the 3rd block number
During threshold value, it is determined that first via vision signal and the second tunnel vision signal are inconsistent on current frame image.
For example, video frame synchronization point represents the i-th two field picture from first via vision signal, the second tunnel vision signal
Jth two field picture starts, and first via vision signal is synchronous with the second tunnel vision signal;So it can just believe from first via video
Number the i-th two field picture start to analyze first via vision signal, to since the jth two field picture of the second tunnel vision signal
Two tunnel vision signals are analyzed.
The jth two field picture of the i-th two field picture of first via vision signal and the second tunnel vision signal is compared point first
Analysis;The fit characteristic value of the 1st comparison pel of the i-th two field picture of first via vision signal is first calculated, with the second road video
Difference between the fit characteristic value of 1st comparison pel of the jth two field picture of signal, if the difference is less than or equal to difference threshold
Value, it is determined that the 1st comparison pel of the i-th two field picture of first via vision signal, the jth two field picture with the second tunnel vision signal
The 1st compare pel be consistent, if the difference be more than difference threshold, it is determined that the i-th frame figure of first via vision signal
1st comparison pel of picture, it is inconsistent to compare pel with the 1st of the jth two field picture of the second tunnel vision signal;With such
Push away, compare last comparison pel, the jth frame with the second tunnel vision signal of the i-th two field picture of first via vision signal
Last of image compares whether pel is consistent, and the i-th two field picture and the second tunnel for then counting first via vision signal are regarded
The jth two field picture of frequency signal compares the inconsistent block number of pel;Then, if the block number is less than the 3rd block number threshold value, really
It is consistent to determine the i-th two field picture of first via vision signal and the jth two field picture of the second tunnel vision signal, if the block number be more than etc.
In the 3rd block number threshold value, it is determined that the i-th two field picture of first via vision signal and the jth two field picture of the second tunnel vision signal are
Inconsistent.
By that analogy, the i+1 two field picture and the two field picture of jth+1 of the second tunnel vision signal of first via vision signal are entered
Row compare analysis, determine first via vision signal i+1 two field picture and the second tunnel vision signal the two field picture of jth+1 whether
It is consistent.
By analyzing frame by frame, if detect first via vision signal is on continuous Z two field pictures with the second tunnel vision signal
When inconsistent, wherein, Z is positive integer, it is possible to it is determined that current video comparison result, which is video, compares exception, and it is flat to management
Platform, which is sent, compares abnormal information warning.Then, after the abnormal information warning of the comparison is sent, if occurring in that the determination first via again
When vision signal is consistent situation with the second tunnel vision signal on continuous N two field picture, it may be determined that video is compared normally, this
When not alert, wherein, M is positive integer.
Fig. 7 is the flowchart 2 for the processing method that the video that the embodiment of the present invention two is provided is compared, as shown in fig. 7, comprises:
Step 401, initialization.
Step 402, the video frame synchronization point for determining first via vision signal and the second tunnel vision signal.
Step 403, the analysis result to video frame synchronization point judge, and determines whether successfully to search out frame of video same
Beans-and bullets shooter.
In this step, step 402-403, can perform step 201,202, the process of step 203.
If step 404, the point failure of searching video frame synchronization, warning message, the warning message table are sent to network management platform
Levy audio video synchronization failure.
If step 405, the point success of searching video frame synchronization, synchronous successful information is sent to network management platform.
The poor relation of step 406, the record first via vision signal frame synchronous with the generation of the second tunnel vision signal.
In this step, if frame difference relation refers to that video frame synchronization point represents the i-th frame figure from first via vision signal
Picture, the jth two field picture of the second tunnel vision signal starts, and first via vision signal is synchronous with the second tunnel vision signal;So
First via vision signal can just be analyzed since the i-th two field picture of first via vision signal, from the second road video letter
Number jth two field picture start to analyze the second tunnel vision signal.
Step 407, the poor relation of frame is sent to audio comparing module.
Step 408, according to the poor relation of frame, the comparison point of image is carried out with the second tunnel vision signal to first via vision signal
Analysis.
In this step, step 408, the process of step 204 can be performed.
Step 409, the comparison result for determining first via vision signal and the second tunnel vision signal, if aligned for video ratio
Often.Here, if the result of video comparison is identical with last comparison result, step 408 is performed.
Step 410, if it is determined that video compares normal and different from last comparison result, then send ratio to network management platform
Request to abnormal restoring, and perform step 408.
Step 411, if it is determined that video compare it is abnormal and different from last comparison result, it is determined whether progress video
Fast synchronization.Here, if the Fast synchronization success of video, performs step 406.
If the Fast synchronization failure of step 412, video, sends to network management platform and compares abnormal message, and perform step
Rapid 408.
The present embodiment by for first via vision signal to be compared and the second tunnel vision signal, performing following mistake respectively
Journey:For each two field picture of vision signal, according to the image feature value of each pixel of current frame image, present frame figure is determined
The fit characteristic value of each comparison pel of picture;Wherein, it is each compare pel be by a two field picture be divided into predetermined number region and
Obtain;The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with the second road video
Whether the fit characteristic value of each comparison pel of the signal on each two field picture is identical, to find first via vision signal and second
The video frame synchronization point of road vision signal, wherein, video frame synchronization point characterizes first via vision signal and the second tunnel vision signal
It is initially synchronous from the video frame synchronization point;For each two field picture since video frame synchronization point, determine that the first via is regarded
The fit characteristic value of each comparison pel of the frequency signal on current frame image, believes with the second tunnel vision signal with first via video
Number current frame image corresponding to image on each comparison pel fit characteristic value between each difference, and according to each difference
Determine whether first via vision signal and the second tunnel vision signal are consistent on each two field picture.Wherein, wrapped in image feature value
Y characteristic values, U characteristic values and V characteristic values are included.So as to which there is provided a kind of new video comparison method, two-path video signal be entered
Whether the comparison analysis of row vision signal, can more accurately monitor to need progress broadcast vision signal abnormal;Also, pin
The division in region is carried out to each two field picture of vision signal, at least one is obtained and compares pel, using the fitting for comparing pel
Characteristic value the uniformity of each two field picture is analyzed there is provided video analysis method accurate and effective, can effectively recognize
Whether each two field picture for going out vision signal there occurs exception, and then effectively identify whether vision signal occurs exception;And
And, it is mainly based upon what Y characteristic values were compared compared to existing video alignments, and because video is in encoding and decoding, biography
The complexity of the link process such as defeated, the comparison based on Y characteristic values, which often exists, compares wrong report, in this application to Y characteristic values, U
Characteristic value and V characteristic values are analyzed, and obtain vector characteristic value, then obtain a fit characteristic value, and then can be special based on YUV
Value indicative carries out com-parison and analysis to video, can effectively reduce wrong report, improves and compares accuracy.
Fig. 8 is the structural representation for the processing unit that the video that the embodiment of the present invention three is provided is compared, as shown in figure 8, this
The device of embodiment, including:
Determining module 81, for for first via vision signal to be compared and the second tunnel vision signal, perform respectively with
Lower process:For each two field picture of vision signal, according to the image feature value of each pixel of current frame image, it is determined that currently
The fit characteristic value of each comparison pel of two field picture;Wherein, each pel that compares is the area that a two field picture is divided into predetermined number
Obtained from domain;
Analysis module 82, the fit characteristic for determining each comparison pel of the first via vision signal on each two field picture
Value, it is whether identical with the fit characteristic value that respectively compares pel of the second tunnel vision signal on each two field picture, to find first
The video frame synchronization point of road vision signal and the second tunnel vision signal, wherein, video frame synchronization point characterizes first via vision signal
With the second tunnel vision signal from the video frame synchronization point be initially synchronous;
Comparing module 83, for for each two field picture since video frame synchronization point, determining first via vision signal
The fit characteristic value of each comparison pel on current frame image, with the second tunnel vision signal with first via vision signal work as
Each difference between the fit characteristic value of each comparison pel on image corresponding to prior image frame, and determine according to each difference
Whether vision signal and the second tunnel vision signal are consistent on each two field picture all the way.
The processing unit that the video of the present embodiment is compared can perform the processing for the video comparison that the embodiment of the present invention one is provided
Method, its realization principle is similar, and here is omitted.
The present embodiment by for first via vision signal to be compared and the second tunnel vision signal, performing following mistake respectively
Journey:For each two field picture of vision signal, according to the image feature value of each pixel of current frame image, present frame figure is determined
The fit characteristic value of each comparison pel of picture;Wherein, it is each compare pel be by a two field picture be divided into predetermined number region and
Obtain;The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with the second road video
Whether the fit characteristic value of each comparison pel of the signal on each two field picture is identical, to find first via vision signal and second
The video frame synchronization point of road vision signal, wherein, video frame synchronization point characterizes first via vision signal and the second tunnel vision signal
It is initially synchronous from the video frame synchronization point;For each two field picture since video frame synchronization point, determine that the first via is regarded
The fit characteristic value of each comparison pel of the frequency signal on current frame image, believes with the second tunnel vision signal with first via video
Number current frame image corresponding to image on each comparison pel fit characteristic value between each difference, and according to each difference
Determine whether first via vision signal and the second tunnel vision signal are consistent on each two field picture.So as to be regarded there is provided a kind of new
Frequency comparison method, the comparison that two-path video signal is carried out into vision signal is analyzed, and can more accurately monitor to need to carry out
Whether abnormal broadcast vision signal;Also, the division in region is carried out for each two field picture of vision signal, at least one is obtained
Compare pel, using compare pel fit characteristic value the uniformity of each two field picture is analyzed there is provided video analysis
Method accurate and effective, can effectively identify whether each two field picture of vision signal there occurs exception, and then effective knowledge
Do not go out whether vision signal occurs exception.
Fig. 9 is the structural representation for the processing unit that the video that the embodiment of the present invention four is provided is compared, in embodiment three
On the basis of, as shown in figure 9, the device of the present embodiment, determining module 81, including:
First determination sub-module 811, for for each two field picture, by every X adjacent position of current frame image
Pixel, be defined as a basic pel, wherein, X is positive integer;
Second determination sub-module 812, for each basic pel for each two field picture, according to the foundation drawing
The image feature value of each pixel in member, determines the foundation characteristic value of the basic pel;
3rd determination sub-module 813, for for each two field picture, by every N number of adjacent position of current frame image
Basic pel, be defined as one comparison pel, wherein, N is positive integer;
4th determination sub-module 814, for each comparison pel for each two field picture, according to the comparison chart
The foundation characteristic value of each basic pel in member, determines the vector characteristic value of the comparison pel;
5th determination sub-module 815, for each comparison pel for each two field picture, according to the comparison chart
The vector characteristic value of member, determines the fit characteristic value of the comparison pel.
Include Y characteristic values, U characteristic values and V characteristic values in image feature value;Include Y features in foundation characteristic value equal
Value, U characteristic means and V characteristic means;Second determination sub-module 812, specifically for:
For each basic pel of each two field picture, the Y features of each pixel in the basic pel are determined
The average of value, the average of the U characteristic values of each pixel, the average of the V characteristic values of each pixel, are respectively the Y of the basic pel
Characteristic mean, U characteristic means, V characteristic means.
Include Y ' characteristic values, U ' characteristic values and V ' characteristic values in vector characteristic value;4th determination sub-module 814, specifically
For:
For each comparison pel of each two field picture, by the Y features of each basic pel in the comparison pel
Average carries out radian value conversion, obtains the Y ' characteristic values of the comparison pel, and the U of each basic pel in the comparison pel is special
Levy average and carry out radian value conversion, obtain the U ' characteristic values of the comparison pel, and by the V of each basic pel in the comparison pel
Characteristic mean carries out radian value conversion, obtains the V ' characteristic values of the comparison pel.
Fit characteristic value is P=a*Y '+b*U '+c*V ', wherein, a, b and c are weight coefficient.
The device that the present embodiment is provided, in addition to:
Modular converter 91, each two field picture for being directed to vision signal in determining module 81, according to current frame image
Before the image feature value of each pixel, the fit characteristic value of each comparison pel for determining current frame image, for be compared
First via vision signal and the second tunnel vision signal, perform procedure below respectively:When vision signal is SD vision signal, pin
To each two field picture of vision signal, by Y, U, V SD characteristic value of current frame image, R, G, B characteristic value are converted to, and according to
Default compensating factor, Y, U, V high definition characteristic value are converted to by R, G, B characteristic value;Wherein, Y, U, V high definition characteristic value are current
The image feature value of each pixel of two field picture.
Wherein, the Y high definitions characteristic value in image feature value is the U in 0.21*R+0.71*G+0.07*B, image feature value
High definition characteristic value is that the V high definitions characteristic value in (0.5*B-0.11*R-0.38*G) * 1.02+128, image feature value is (0.5*R-
0.45*G-0.045*B)*1.02+128。
Analysis module 82, specifically for:
The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with the second road video
Whether the fit characteristic value of each comparison pel of the signal on each two field picture is identical, to determine first via vision signal and second
Whether each comparison pel of the road vision signal on each two field picture be identical, and determines first via vision signal and the second road video
Signal compares the different block number of pel on each two field picture;
It is determined that first via vision signal and the second tunnel vision signal comparison chart in each two field picture of continuous P two field picture
The different block number of member, during less than the first block number threshold value, determines that the frame after P frames is video frame synchronization point;Or, it is determined that
The vision signal block number that in each two field picture of continuous Q two field pictures to compare pel from the second tunnel vision signal different, small all the way
When the second block number threshold value, determine that the frame after Q frames is video frame synchronization point;
Wherein, P, Q are positive integer, and P is more than Q, and the first block number threshold value is less than the second block number threshold value.
Comparing module 83, including:
First compares submodule 831, for each two field picture since video frame synchronization point, for each two field picture
For each comparison pel, the fit characteristic value of the current comparison pel of first via vision signal, and the second road video letter are determined
Number current comparison pel fit characteristic value between difference;
Second compares submodule 832, for each two field picture since video frame synchronization point, for each two field picture
For each comparison pel, when it is determined that difference is less than or equal to difference threshold, the current comparison of first via vision signal is determined
Pel, the current comparison pel with the second tunnel vision signal is consistent;When it is determined that difference is more than difference threshold, the is determined
The current comparison pel of vision signal, and the current comparison pel of the second tunnel vision signal is inconsistent all the way, and currently
The inconsistent block number of pel is compared in two field picture;
3rd compares submodule 833, for each two field picture since video frame synchronization point, for each two field picture come
Say, when it is determined that comparing the inconsistent block number of pel less than the 3rd block number threshold value, determine first via vision signal and the second tunnel
Vision signal is consistent on current frame image;It is determined that comparing the inconsistent block number of pel is more than or equal to the 3rd block number thresholding
During value, determine that first via vision signal and the second tunnel vision signal are inconsistent on current frame image;
First confirms submodule 834, for each two field picture since video frame synchronization point, it is determined that first via video
When signal and the second tunnel vision signal are inconsistent on continuous Z two field pictures, determine that video is compared abnormal, and it is abnormal to send comparison
Information warning, wherein, Z is positive integer.
Second confirms submodule 835, after sending the abnormal information warning of comparison in the first confirmation submodule 834,
When to determine first via vision signal and the second tunnel vision signal be consistent on continuous N two field picture, determine that video is compared normal, its
In, M is positive integer.
The processing unit that the video of the present embodiment is compared can perform the processing for the video comparison that the embodiment of the present invention two is provided
Method, its realization principle is similar, and here is omitted.
The present embodiment by for first via vision signal to be compared and the second tunnel vision signal, performing following mistake respectively
Journey:For each two field picture of vision signal, according to the image feature value of each pixel of current frame image, present frame figure is determined
The fit characteristic value of each comparison pel of picture;Wherein, it is each compare pel be by a two field picture be divided into predetermined number region and
Obtain;The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with the second road video
Whether the fit characteristic value of each comparison pel of the signal on each two field picture is identical, to find first via vision signal and second
The video frame synchronization point of road vision signal, wherein, video frame synchronization point characterizes first via vision signal and the second tunnel vision signal
It is initially synchronous from the video frame synchronization point;For each two field picture since video frame synchronization point, determine that the first via is regarded
The fit characteristic value of each comparison pel of the frequency signal on current frame image, believes with the second tunnel vision signal with first via video
Number current frame image corresponding to image on each comparison pel fit characteristic value between each difference, and according to each difference
Determine whether first via vision signal and the second tunnel vision signal are consistent on each two field picture.Wherein, wrapped in image feature value
Y characteristic values, U characteristic values and V characteristic values are included.So as to which there is provided a kind of new video comparison method, two-path video signal be entered
Whether the comparison analysis of row vision signal, can more accurately monitor to need progress broadcast vision signal abnormal;Also, pin
The division in region is carried out to each two field picture of vision signal, at least one is obtained and compares pel, using the fitting for comparing pel
Characteristic value the uniformity of each two field picture is analyzed there is provided video analysis method accurate and effective, can effectively recognize
Whether each two field picture for going out vision signal there occurs exception, and then effectively identify whether vision signal occurs exception;And
And, it is mainly based upon what Y characteristic values were compared compared to existing video alignments, and because video is in encoding and decoding, biography
The complexity of the link process such as defeated, the comparison based on Y characteristic values, which often exists, compares wrong report, in this application to Y characteristic values, U
Characteristic value and V characteristic values are analyzed, and obtain vector characteristic value, then obtain a fit characteristic value, and then can be special based on YUV
Value indicative carries out com-parison and analysis to video, can effectively reduce wrong report, improves and compares accuracy.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (20)
1. the processing method that a kind of video is compared, it is characterised in that including:
For first via vision signal to be compared and the second tunnel vision signal, procedure below is performed respectively:For the video
Each two field picture of signal, according to the image feature value of each pixel of current frame image, determines each comparison of current frame image
The fit characteristic value of pel;Wherein, each comparison pel is that a two field picture is divided into obtained from the region of predetermined number;
The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with second tunnel
Whether the fit characteristic value of each comparison pel of the vision signal on each two field picture is identical, is believed with finding the first via video
Video frame synchronization point number with second tunnel vision signal, wherein, the video frame synchronization point characterizes the first via video
Signal and second tunnel vision signal from the video frame synchronization point be initially synchronous;
For each two field picture since the video frame synchronization point, determine the first via vision signal in current frame image
On each comparison pel fit characteristic value, with second tunnel vision signal in the current frame image with first via vision signal
Each difference between the fit characteristic value of each comparison pel on corresponding image, and determine described according to each difference
Whether vision signal and second tunnel vision signal are consistent on each two field picture all the way.
2. according to the method described in claim 1, it is characterised in that each two field picture for the vision signal, root
According to the image feature value of each pixel of current frame image, the fit characteristic value of each comparison pel of current frame image is determined, is wrapped
Include:
For each two field picture, by the pixel of every X adjacent position of current frame image, it is defined as a foundation drawing
Member, wherein, X is positive integer;
For each basic pel of each two field picture, the characteristics of image of each pixel in the basic pel
Value, determines the foundation characteristic value of the basic pel;
For each two field picture, by the basic pel of every N number of adjacent position of current frame image, it is defined as a comparison chart
Member, wherein, N is positive integer;
For each comparison pel of each two field picture, the foundation characteristic of each basic pel in the comparison pel
Value, determines the vector characteristic value of the comparison pel;
For each comparison pel of each two field picture, according to the vector characteristic value of the comparison pel, the comparison is determined
The fit characteristic value of pel.
3. method according to claim 2, it is characterised in that include Y characteristic values, U features in described image characteristic value
Value and V characteristic values;Include Y characteristic means, U characteristic means and V characteristic means in the foundation characteristic value;
For described each basic pel for each two field picture, the image of each pixel in the basic pel is special
Value indicative, determines the foundation characteristic value of the basic pel, including:
For each basic pel of each two field picture, the Y characteristic values of each pixel in the basic pel are determined
Average, the average of the U characteristic values of each pixel, the average of the V characteristic values of each pixel, are respectively the Y features of the basic pel
Average, U characteristic means, V characteristic means.
4. method according to claim 3, it is characterised in that include Y ' characteristic values, U ' in the vector characteristic value special
Value indicative and V ' characteristic values;
For described each comparison pel for each two field picture, the basis of each basic pel in the comparison pel
Characteristic value, determines the vector characteristic value of the comparison pel, including:
For each comparison pel of each two field picture, by the Y characteristic means of each basic pel in the comparison pel
Radian value conversion is carried out, the Y ' characteristic values of the comparison pel are obtained, and the U features of each basic pel in the comparison pel is equal
Value carries out radian value conversion, obtains the U ' characteristic values of the comparison pel, and by the V features of each basic pel in the comparison pel
Average carries out radian value conversion, obtains the V ' characteristic values of the comparison pel.
5. method according to claim 4, it is characterised in that the fit characteristic value is P=a*Y '+b*U '+c*V ', its
In, a, b and c are weight coefficient.
6. according to the method described in claim 1, it is characterised in that in each two field picture for the vision signal,
According to the image feature value of each pixel of current frame image, determine current frame image each comparison pel fit characteristic value it
Before, in addition to:
When the vision signal is SD vision signal, for each two field picture of the vision signal, by current frame image
Y, U, V SD characteristic value, be converted to R, G, B characteristic value, and according to default compensating factor, R, G, B characteristic value is turned
It is changed to Y, U, V high definition characteristic value;Wherein, Y, U, V high definition characteristic value is the image of each pixel of current frame image
Characteristic value.
7. method according to claim 6, it is characterised in that the Y high definitions characteristic value in described image characteristic value is 0.21*
U high definitions characteristic value in R+0.71*G+0.07*B, described image characteristic value is (0.5*B-0.11*R-0.38*G) * 1.02+
128, the V high definitions characteristic value in described image characteristic value is (0.5*R-0.45*G-0.045*B) * 1.02+128.
8. the method according to claim any one of 1-7, it is characterised in that the determination first via vision signal exists
The fit characteristic value of each comparison pel on each two field picture, with each ratio of second tunnel vision signal on each two field picture
Whether the fit characteristic value to pel is identical, to find the video of the first via vision signal and second tunnel vision signal
Frame synchronization point, including:
The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with second tunnel
Whether the fit characteristic value of each comparison pel of the vision signal on each two field picture is identical, to determine that the first via video is believed
Number with second tunnel vision signal on each two field picture whether respectively compare pel identical, and determine the first via video
Signal and second tunnel vision signal compare the different block number of pel on each two field picture;
It is determined that the first via vision signal compares with second tunnel vision signal in each two field picture of continuous P two field picture
The block number different to pel, during less than the first block number threshold value, determines that the frame after P frames is the video frame synchronization point;Or,
It is determined that the first via vision signal and second tunnel vision signal comparison chart in each two field picture of continuous Q two field pictures
The different block number of member, during less than the second block number threshold value, determines that the frame after Q frames is the video frame synchronization point;
Wherein, P, Q are positive integer, and P is more than Q, and the first block number threshold value is less than the second block number threshold value.
9. the method according to claim any one of 1-7, it is characterised in that described for being opened from the video frame synchronization point
The each two field picture begun, determines the fit characteristic value of each comparison pel of the first via vision signal on current frame image,
With second tunnel vision signal pel is respectively compared on the image corresponding to the current frame image with first via vision signal
Fit characteristic value between each difference, and determine that the first via vision signal is regarded with second tunnel according to each difference
Whether frequency signal is consistent on each two field picture, including:
Each two field picture since the video frame synchronization point, for each comparison pel of each two field picture, it is determined that
The fit characteristic value of the current comparison pel of the first via vision signal, and second tunnel vision signal current comparison chart
Difference between the fit characteristic value of member;
Each two field picture since the video frame synchronization point, for each comparison pel of each two field picture, true
When the fixed difference is less than or equal to difference threshold, the current comparison pel of the first via vision signal is determined, and described the
The current comparison pel of two tunnel vision signals is consistent;When it is determined that the difference is more than difference threshold, described the is determined
The current comparison pel of vision signal, and the current comparison pel of second tunnel vision signal is inconsistent all the way, and
The inconsistent block number of pel is compared in current frame image;
Each two field picture since the video frame synchronization point, for each two field picture, it is determined that the comparison pel
When inconsistent block number is less than the 3rd block number threshold value, determine that the first via vision signal exists with second tunnel vision signal
It is consistent on current frame image;When it is determined that the inconsistent block number of the comparison pel is more than or equal to the 3rd block number threshold value,
Determine that the first via vision signal and second tunnel vision signal are inconsistent on current frame image;
Each two field picture since the video frame synchronization point, it is determined that the first via vision signal is regarded with second tunnel
When frequency signal is inconsistent on continuous Z two field pictures, determine that video is compared abnormal, and send the abnormal information warning of comparison, wherein,
Z is positive integer.
10. method according to claim 9, it is characterised in that methods described, in addition to:
After the abnormal information warning of comparison is sent, it is determined that the first via vision signal exists with second tunnel vision signal
When being consistent on continuous N two field picture, determine that video is compared normal, wherein, M is positive integer.
11. the processing unit that a kind of video is compared, it is characterised in that including:
Determining module, for for first via vision signal to be compared and the second tunnel vision signal, procedure below to be performed respectively:
For each two field picture of the vision signal, according to the image feature value of each pixel of current frame image, present frame is determined
The fit characteristic value of each comparison pel of image;Wherein, each comparison pel is that a two field picture is divided into predetermined number
Obtained from region;
Analysis module, the fit characteristic for determining each comparison pel of the first via vision signal on each two field picture
Value, it is whether identical with the fit characteristic value that respectively compares pel of second tunnel vision signal on each two field picture, to find
The video frame synchronization point of the first via vision signal and second tunnel vision signal, wherein, the video frame synchronization point table
Levy the first via vision signal and second tunnel vision signal from the video frame synchronization point be initially synchronous;
Comparing module, for for each two field picture since the video frame synchronization point, determining the first via video letter
The fit characteristic value of each comparison pel number on current frame image, believes with second tunnel vision signal with first via video
Number current frame image corresponding to image on each comparison pel fit characteristic value between each difference, and according to described each
Difference determines whether the first via vision signal and second tunnel vision signal are consistent on each two field picture.
12. device according to claim 11, it is characterised in that the determining module, including:
First determination sub-module, for for each two field picture, by the pixel of every X adjacent position of current frame image
Point, is defined as a basic pel, wherein, X is positive integer;
Second determination sub-module, for each basic pel for each two field picture, according in the basic pel
The image feature value of each pixel, determines the foundation characteristic value of the basic pel;
3rd determination sub-module, for for each two field picture, by the foundation drawing of every N number of adjacent position of current frame image
Member, is defined as a comparison pel, wherein, N is positive integer;
4th determination sub-module, for each comparison pel for each two field picture, according in the comparison pel
The foundation characteristic value of each basic pel, determines the vector characteristic value of the comparison pel;
5th determination sub-module, for each comparison pel for each two field picture, according to the arrow of the comparison pel
Measure feature value, determines the fit characteristic value of the comparison pel.
13. device according to claim 12, it is characterised in that include Y characteristic values, U in described image characteristic value special
Value indicative and V characteristic values;Include Y characteristic means, U characteristic means and V characteristic means in the foundation characteristic value;
Second determination sub-module, specifically for:
For each basic pel of each two field picture, the Y characteristic values of each pixel in the basic pel are determined
Average, the average of the U characteristic values of each pixel, the average of the V characteristic values of each pixel, are respectively the Y features of the basic pel
Average, U characteristic means, V characteristic means.
14. device according to claim 13, it is characterised in that include Y ' characteristic values, U ' in the vector characteristic value
Characteristic value and V ' characteristic values;
4th determination sub-module, specifically for:
For each comparison pel of each two field picture, by the Y characteristic means of each basic pel in the comparison pel
Radian value conversion is carried out, the Y ' characteristic values of the comparison pel are obtained, and the U features of each basic pel in the comparison pel is equal
Value carries out radian value conversion, obtains the U ' characteristic values of the comparison pel, and by the V features of each basic pel in the comparison pel
Average carries out radian value conversion, obtains the V ' characteristic values of the comparison pel.
15. device according to claim 14, it is characterised in that the fit characteristic value is P=a*Y '+b*U '+c*V ',
Wherein, a, b and c are weight coefficient.
16. device according to claim 11, it is characterised in that described device, in addition to:
Modular converter, each two field picture for being directed to the vision signal in the determining module, according to current frame image
Before the image feature value of each pixel, the fit characteristic value of each comparison pel for determining current frame image, for be compared
First via vision signal and the second tunnel vision signal, perform procedure below respectively:It is SD vision signal in the vision signal
When, for each two field picture of the vision signal, by Y, U, V SD characteristic value of current frame image, be converted to R, G, B feature
Value, and according to default compensating factor, R, G, B characteristic value is converted into Y, U, V high definition characteristic value;Wherein, described Y, U, V
High definition characteristic value is the image feature value of each pixel of current frame image.
17. device according to claim 16, it is characterised in that the Y high definition characteristic values in described image characteristic value are
U high definitions characteristic value in 0.21*R+0.71*G+0.07*B, described image characteristic value is (0.5*B-0.11*R-0.38*G) *
V high definitions characteristic value in 1.02+128, described image characteristic value is (0.5*R-0.45*G-0.045*B) * 1.02+128.
18. the device according to claim any one of 11-17, it is characterised in that the analysis module, specifically for:
The fit characteristic value of each comparison pel of the first via vision signal on each two field picture is determined, with second tunnel
Whether the fit characteristic value of each comparison pel of the vision signal on each two field picture is identical, to determine that the first via video is believed
Number with second tunnel vision signal on each two field picture whether respectively compare pel identical, and determine the first via video
Signal and second tunnel vision signal compare the different block number of pel on each two field picture;
It is determined that the first via vision signal compares with second tunnel vision signal in each two field picture of continuous P two field picture
The block number different to pel, during less than the first block number threshold value, determines that the frame after P frames is the video frame synchronization point;Or,
It is determined that the first via vision signal and second tunnel vision signal comparison chart in each two field picture of continuous Q two field pictures
The different block number of member, during less than the second block number threshold value, determines that the frame after Q frames is the video frame synchronization point;
Wherein, P, Q are positive integer, and P is more than Q, and the first block number threshold value is less than the second block number threshold value.
19. the device according to claim any one of 11-17, it is characterised in that the comparing module, including:
First compares submodule, for each two field picture since the video frame synchronization point, for the every of each two field picture
For one comparison pel, the fit characteristic value of the current comparison pel of the first via vision signal, and second tunnel are determined
Difference between the fit characteristic value of the current comparison pel of vision signal;
Second compares submodule, for each two field picture since the video frame synchronization point, for the every of each two field picture
For one comparison pel, when it is determined that the difference is less than or equal to difference threshold, working as the first via vision signal is determined
Preceding comparison pel, the current comparison pel with second tunnel vision signal is consistent;It is determined that the difference is more than difference
During threshold value, determine the current comparison pel of the first via vision signal, and second tunnel vision signal current comparison
Pel is inconsistent, and the inconsistent block number of pel is compared in current frame image;
3rd compares submodule, for each two field picture since the video frame synchronization point, for each two field picture,
When it is determined that the inconsistent block number of the comparison pel is less than the 3rd block number threshold value, the first via vision signal and institute are determined
It is consistent on current frame image to state the second tunnel vision signal;It is determined that the inconsistent block number of pel that compares is more than or equal to
During the 3rd block number threshold value, determine that the first via vision signal and second tunnel vision signal are not on current frame image
Consistent;
First confirms submodule, for each two field picture since the video frame synchronization point, it is determined that the first via is regarded
When frequency signal and second tunnel vision signal are inconsistent on continuous Z two field pictures, determine that video is compared abnormal, and send ratio
To abnormal information warning, wherein, Z is positive integer.
20. device according to claim 19, it is characterised in that the comparing module, in addition to:
Second confirms submodule, after sending the abnormal information warning of comparison in the described first confirmation submodule, it is determined that institute
When to state first via vision signal and second tunnel vision signal be consistent on continuous N two field picture, determine that video is compared normal,
Wherein, M is positive integer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710502377.0A CN107277500B (en) | 2017-06-27 | 2017-06-27 | The treating method and apparatus that video compares |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710502377.0A CN107277500B (en) | 2017-06-27 | 2017-06-27 | The treating method and apparatus that video compares |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107277500A true CN107277500A (en) | 2017-10-20 |
CN107277500B CN107277500B (en) | 2019-03-19 |
Family
ID=60069851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710502377.0A Active CN107277500B (en) | 2017-06-27 | 2017-06-27 | The treating method and apparatus that video compares |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107277500B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020588A (en) * | 2019-01-28 | 2019-07-16 | 深圳市睿智物联科技有限公司 | A kind of building screen lamps and lanterns monitoring method and system based on video identification |
CN112954408A (en) * | 2021-01-25 | 2021-06-11 | 中央广播电视总台 | Method and corresponding device for monitoring abnormity of ultra-high definition video signal |
US20220246081A1 (en) * | 2021-01-05 | 2022-08-04 | Google Llc | Hidden display interfaces and associated systems and methods |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1107177A2 (en) * | 1999-12-09 | 2001-06-13 | ATI International SRL | Method and apparatus for processing portions of primitives that are being rendered |
CN103067778A (en) * | 2013-01-06 | 2013-04-24 | 北京华兴宏视技术发展有限公司 | Data monitoring system and data monitoring method |
CN104539975A (en) * | 2014-12-03 | 2015-04-22 | 上海交通大学 | Double-compressed video tampering detection method based on blocking effect |
CN106507191A (en) * | 2016-11-15 | 2017-03-15 | 北京鹏润鸿途科技股份有限公司 | Synchronous relay content monitoring method and device |
-
2017
- 2017-06-27 CN CN201710502377.0A patent/CN107277500B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1107177A2 (en) * | 1999-12-09 | 2001-06-13 | ATI International SRL | Method and apparatus for processing portions of primitives that are being rendered |
CN103067778A (en) * | 2013-01-06 | 2013-04-24 | 北京华兴宏视技术发展有限公司 | Data monitoring system and data monitoring method |
CN104539975A (en) * | 2014-12-03 | 2015-04-22 | 上海交通大学 | Double-compressed video tampering detection method based on blocking effect |
CN106507191A (en) * | 2016-11-15 | 2017-03-15 | 北京鹏润鸿途科技股份有限公司 | Synchronous relay content monitoring method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020588A (en) * | 2019-01-28 | 2019-07-16 | 深圳市睿智物联科技有限公司 | A kind of building screen lamps and lanterns monitoring method and system based on video identification |
US20220246081A1 (en) * | 2021-01-05 | 2022-08-04 | Google Llc | Hidden display interfaces and associated systems and methods |
CN112954408A (en) * | 2021-01-25 | 2021-06-11 | 中央广播电视总台 | Method and corresponding device for monitoring abnormity of ultra-high definition video signal |
CN112954408B (en) * | 2021-01-25 | 2023-05-12 | 中央广播电视总台 | Abnormality monitoring method and corresponding device for ultra-high definition video signal |
Also Published As
Publication number | Publication date |
---|---|
CN107277500B (en) | 2019-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3391651B1 (en) | Dynamic video overlays | |
CN107277500A (en) | The treating method and apparatus that video is compared | |
EP3104327B1 (en) | Anomalous pixel detection | |
CN102025959B (en) | The System and method for of high definition video is produced from low definition video | |
EP4090036A1 (en) | Privacy shielding processing method and apparatus, electronic device, and monitoring system | |
CN106534972A (en) | Method and device for nondestructive zoomed display of local video | |
CN111416960B (en) | Video monitoring system based on cloud service | |
CN102714691B (en) | Information display device, display and control integrated circuit, display control program and display control method | |
CN110581988B (en) | Signal quality detection method and device, electronic equipment and storage medium | |
CN102957940B (en) | Improvement-based four-way operator video noise detection method | |
KR20120015980A (en) | Method, system and computer program product for object color correction | |
CN102143376A (en) | Method and device for detecting consistency of twin-channel video signals | |
US20160203617A1 (en) | Image generation device and display device | |
KR20060063937A (en) | Graphics overlay detection | |
CN111145219B (en) | Efficient video moving target detection method based on Codebook principle | |
CN107197326B (en) | Video frequency identifying method and device | |
TWI792997B (en) | Analysis method and non-transitory computer-readable storage medium | |
CN102196259B (en) | Moving object detection system and method suitable for compression domain | |
EP3742392A1 (en) | Aspect ratio error recognition | |
CN115035151B (en) | Method and device for detecting comb distortion, computer equipment and storage medium | |
CN111652237B (en) | OSD image detection method and device in video image and terminal equipment | |
CN110868585B (en) | Real-time video quality diagnosis system and method | |
CN108288060A (en) | Title detection method, device and electronic equipment in a kind of video | |
KR20190036486A (en) | Method for video shot boundary detection based on enhanced local directional pattern, method and apparatus for set-top box quality control using the same method | |
CN112118439B (en) | Video quality detection method and image processing circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |