Embodiment
Below in conjunction with the drawings and specific embodiments, the embodiment that the present invention is detected the method and apparatus of two-way vision signal synchronism describes in further detail.
The invention provides a kind of method that detects two-way vision signal synchronism, as shown in Figure 1, this method comprises:
Step 101 is gathered the main road vision signal in real time and is equipped with the road vision signal, and the main road frame that described main road vision signal is broadcasted and the described road frame that is equipped with that is equipped with that the road vision signal broadcasts all show original image and be superimposed upon back interpolation image on the described original image;
Step 102 is handled the main road frame that the main road vision signal of gathering is broadcasted, and obtains only to show the first main road frame of original image, simultaneously, the road frame that is equipped with that the road vision signal fully of gathering is broadcasted is handled, and obtains only to show that first of original image is equipped with the road frame;
Step 103, whether the more described first main road frame and described first is equipped with the road frame synchronous, obtains first comparative result;
Whether step 104 is determined the main road vision signal and is equipped with the road vision signal synchronous according to described first comparative result.
The frame that the inventive method is broadcasted at active and standby two-path video signal is the situation of original image with back interpolation image that superposeed, at first the frame that the two-path video signal is broadcasted is handled, then the first main road frame and first that only shows original image being equipped with the road frame compares, when this method has avoided prior art directly to contrast having superposeed original image and back to add the frame of image, often owing to search the frequent problem of reporting to the police less than synchronization frame, solved the problem of conventional detection fault freedom difference.
The vision signal of TV station is normally successive and real-time update, the main purpose of the inventive method is to gather active and standby two-path video signal in real time, whether and it is synchronous to detect described two-path video signal, and the warning that will do when being asynchronous when testing result and adjustment work that vision signal is carried out is not within the scope of the invention, specifically can be with reference to prior art, the present invention repeats no more.
The TV programme that present TV station broadcasts is generally original image and the image that image is superimposed is added in the back, the inventive method mainly compares the vision signal of this class broadcast superimposed image, wherein, described original image is the image information that the raw video signal of TV programme broadcasts, the image information that image is the back stack on the original image of TV programme of each TV station is added in the back, as captions, station symbol, advertisement etc., so, original image generally can not change because of the change of TV station, then adds image and then generally can change because of the change of TV station.
The inventive method is at first extracted the original image in the frame that active and standby two-path video signal broadcasts, then the first main road frame and first that only shows original image being equipped with the road frame compares, and judge according to first comparative result that obtains whether active and standby two-path video signal is synchronous, this is because when image is added in superposeed in the frame that vision signal is broadcasted original image and back, picture material at each frame, human eye is often mainly paid close attention to original image, but not image is added in the back, therefore, the inventive method can compare on the basis of the back interpolation image of ignoring each frame, thereby so just can evade owing to the back interpolation image that superposeed causes finding the situation that the synchronization frame with identical image information causes frequent warning.
In order further to improve the testing accuracy of the inventive method, preferred, the inventive method also comprises:
Steps A 1, the main road frame that the main road vision signal of gathering is broadcasted is handled, obtained the second main road frame that image is added in a demonstration back, simultaneously, the road frame of gathering that is equipped with that is equipped with road vision signal broadcast is handled, added second of image after obtaining only to show and be equipped with the road frame;
Steps A 2, whether the more described second main road frame and described second is equipped with the road frame synchronous, obtains second comparative result;
Then definite main road vision signal with whether the road vision signal is synchronous fully comprises:
Whether steps A 3 according to described first comparative result and described second comparative result, is determined the main road vision signal and is equipped with the road vision signal synchronous.
Concrete, above-mentioned steps A1, A2, A3 is on the basis of the original image that has contrasted active and standby two-path video frame that signal broadcasts, also contrasted the back interpolation image of the frame that active and standby two-path video signal broadcasts, then on the basis of described first comparative result, in conjunction with second comparative result, judge whether active and standby two-path video signal is synchronous, owing to increased the detection of the back being added image synchronization, this method is compared with method shown in Figure 1 has higher accuracy of detection, in addition, because no longer ignore the back interpolation image in each frame when synchronism detects, this method can also detect the back interpolation image that whether successfully superposeed in the described original image.
And, preferred, according to described first comparative result and described second comparative result, determine the main road vision signal and be equipped with the road vision signal whether synchronously among the above-mentioned steps A3, specifically comprise:
Determine described first comparative result for synchronously, and described second comparative result is when also be synchronous, determines the main road vision signal and the road vision signal is synchronous fully.
Concrete, it is synchronous to have only the original image and described first that shows when the described first main road frame to be equipped with the original image of road frame demonstration, and the back interpolation image that the described second main road frame shows and described second is equipped with back interpolation image that the road frame shows when also synchronous, determine that just active and standby two-path video signal is synchronous, otherwise, just determine that active and standby two-path video signal is asynchronous.
Preferably, whether the road frame is synchronous fully for the more described first main road frame and described first in the above-mentioned steps 103, obtains first comparative result, specifically comprises:
Whether the original image that the first main road frame of more current acquisition shows is identical with the original image that first of current acquisition is equipped with road frame demonstration, if determine that then described first comparative result is synchronous; Otherwise,
The M that obtains before searching individual first is equipped with the road frame and is equipped with in the frame of road with the M individual first that is about to obtain, whether exist with the first main road frame of current acquisition and show that first of identical original image is equipped with the road frame, perhaps, search in M the first main road frame of the individual first main road frame of the M that obtains before and acquisition soon, whether exist with first of current acquisition and be equipped with the first main road frame that the road frame shows identical original image, if determine that then described first comparative result is synchronous; Otherwise, determine that described first comparative result is asynchronous, wherein, M is positive integer.
Concrete, when the synchronism of carrying out active and standby two-path video signal detects, if first of the road vision signal correspondence that is equipped with of the first main road frame of the main road vision signal correspondence of current collection and current collection is equipped with the road frame, the two shown original image is identical, can determine that then described first comparative result is for synchronously; Otherwise,
If the M of definite acquisition before first M individual first that is equipped with road frame and acquisition soon is equipped with in the frame of road, have when showing that with the first main road frame of current acquisition first of identical original image is equipped with the road frame, can determine that also described first comparative result is for synchronously, this is to allow active and standby two-path video signal to have less error at the image that synchronization broadcasts because TV station is general, be the image that broadcasts of current time main road vision signal be equipped with the road vision signal before certain moment or when certain image that broadcasts constantly is identical afterwards, TV station thinks that the two also is synchronous, in like manner, if in the individual first main road frame of M of determining M the first main road frame that obtains before and being about to obtain, have when first of current acquisition is equipped with the road frame and shows the first main road frame of identical original image, can determine that also described first comparative result is for synchronously; Otherwise,
If it is inequality that first of the original image that the first main road frame of definite current acquisition shows and current acquisition is equipped with the original image of road frame demonstration, and, the M of Huo Deing first is equipped with the road frame and the M that is about to obtain first is equipped with in the frame of road before, do not exist with the first main road frame of current acquisition and show that first of identical original image is equipped with the road frame, and, before in M the first main road frame of the individual first main road frame of the M of Huo Deing and acquisition soon, do not exist when first of current acquisition is equipped with the road frame and shows the first main road frame of identical original image, just can determine that described first comparative result is asynchronous.
Wherein, M first M individual first that is equipped with road frame and acquisition soon that searches acquisition before is equipped with in the frame of road, whether have when showing that with the first main road frame of current acquisition first of identical original image is equipped with the road frame, need to wait for the regular hour gathering vision signal on the horizon, and obtain M first and be equipped with the road frame.Herein, because TV station is meeting a period of time before broadcasting vision signal generally, just this vision signal has been carried out the synchronism detection, and this section period just can be used as and detects active and standby two-path video signal and adjust when asynchronous and handle the required crash time, so, the following M of described acquisition first is equipped with the required stand-by period of road frame and searches the required time and should not exceed the crash time that TV station reserves, in like manner, in M the first main road frame of the M that obtains before searching first a main road frame and acquisition soon, whether have when first of current acquisition is equipped with the road frame and shows the first main road frame of identical original image, obtain the required stand-by period of following M first main road frame and search the required time also not exceed the crash time that TV station reserves.
The present invention does not limit the occurrence of M, and TV station can determine the M value according to concrete performance.
Preferably, whether the road frame is synchronous fully for the more described second main road frame and described second among the above-mentioned steps A2, obtains second comparative result, specifically comprises:
Whether the back interpolation image that the second main road frame of more current acquisition shows is identical with the back interpolation image that second of current acquisition is equipped with road frame demonstration, if determine that then described second comparative result is synchronous; Otherwise,
The M that obtains before searching individual second is equipped with the road frame and is equipped with in the frame of road with the M individual second that is about to obtain, whether exist with the second main road frame of current acquisition and show that second of identical back interpolation image is equipped with the road frame, perhaps, search in M the second main road frame of the individual second main road frame of the M that obtains before and acquisition soon, whether exist with second of current acquisition and be equipped with the second main road frame that the road frame shows identical back interpolation image, if determine that then described second comparative result is synchronous; Otherwise, determine that described second comparative result is asynchronous, wherein, M is positive integer.
Concrete, the specific implementation process of implementation process and above-mentioned steps 103 is similar, repeats no more herein.
Preferably, the method for detection two-way vision signal synchronism provided by the invention also comprises:
Step B1 determines described main road frame and the template zone that is equipped with the road frame, and described template zone is described main road frame and the maximum region that is equipped with the back interpolation image of road frame demonstration;
Then above-mentioned steps 102 is specifically extracted the image beyond the template zone in the described main road frame, obtains only to show the first main road frame of original image;
Image in the described road frame fully of above-mentioned steps 102 concrete extractions beyond the template zone obtains only to show that first of original image is equipped with the road frame;
The concrete image that extracts template zone in the described main road frame of above-mentioned steps A1, and adopt Wavelet Transformation Algorithm that the image in template zone in the main road frame of described extraction is carried out edge extracting and calculate obtains only to show that the back adds second a main road frame of image;
Above-mentioned steps A1 is concrete to extract the described image that is equipped with template zone in the frame of road, and adopts Wavelet Transformation Algorithm that the image in template zone in the road frame fully of described extraction is carried out edge extracting and calculate, and adds second of image after obtaining only to show and is equipped with the road frame.
During in view of the back interpolation image of overlapping text, advertisement, station symbol etc. in the original image of TV programme, described back is added image and is had fixing viewing area usually, therefore, the maximum region that demonstration back in the frame of main road vision signal and road vision signal broadcast fully can be added image is defined as the template zone, then the image outside this template zone is original image certainly just in the frame, therefore, utilize this template zone to be implemented in easily and extract original image and back interpolation image in the frame respectively, carry out the image information contrast then.
Concrete, because described template zone is the main road frame or is equipped with the maximum region that shows interpolation image in back in the frame of road, therefore, may also can show the information of original image in the main road frame of described extraction in the image in template zone, compare in order exactly image to be added in the back, the inventive method also adopts Wavelet Transformation Algorithm that the image in the main road frame template zone of described extraction is carried out edge extracting and calculates, obtain only to show the second main road frame of back interpolation image, in like manner, after extracting the described image that is equipped with template zone in the frame of road, also adopt Wavelet Transformation Algorithm that the image in template zone in the road frame fully of described extraction is carried out edge extracting and calculate, add second of image after obtaining only to show and be equipped with the road frame.
Accordingly, the present invention also provides a kind of device that detects two-way vision signal synchronism, as shown in Figure 2, comprising:
Acquisition module 201 is used for collection main road vision signal and road vision signal in real time fully, and the main road frame that described main road vision signal is broadcasted and the described road frame that is equipped with that is equipped with road vision signal broadcast all show original image and the back interpolation image that is superimposed upon on the described original image;
The first frame processing module 202, be used for the main road frame that the main road vision signal of gathering is broadcasted is handled, obtain only to show the first main road frame of original image, simultaneously, the road frame of gathering that is equipped with that is equipped with road vision signal broadcast is handled, obtained only to show that first of original image is equipped with the road frame;
First comparison module 203, whether the road frame is synchronous fully to be used for the more described first main road frame and described first, obtains first comparative result;
Whether object module 204 is used for determining the main road vision signal and be equipped with the road vision signal synchronous according to described first comparative result.
Preferably, the device of described detection two-way vision signal synchronism also comprises:
The second frame processing module 205, be used for the main road frame that the main road vision signal of collection is broadcasted is handled, add second a main road frame of image after obtaining only to show, simultaneously, the road frame of gathering that is equipped with that is equipped with road vision signal broadcast is handled, added second of image after obtaining only to show and be equipped with the road frame;
Second comparison module 206, whether the road frame is synchronous fully to be used for the more described second main road frame and described second, obtains second comparative result;
Then described object module 204 definite main road vision signals with whether the road vision signal is synchronous fully comprise:
According to described first comparative result and described second comparative result, determine the main road vision signal and be equipped with the road vision signal whether synchronously.
Whether preferably, described object module 204 is according to described first comparative result and described second comparative result, determine the main road vision signal and be equipped with the road vision signal synchronous, specifically comprises:
Determine described first comparative result for synchronously, and described second comparative result is when also be synchronous, determines the main road vision signal and the road vision signal is synchronous fully.
Preferably, whether described first comparison module, the 203 more described first main road frames and described first are equipped with the road frame synchronous, obtains first comparative result, specifically comprises:
Whether the original image that the first main road frame of more current acquisition shows is identical with the original image that first of current acquisition is equipped with road frame demonstration, if determine that then described first comparative result is synchronous; Otherwise,
The M that obtains before searching individual first is equipped with the road frame and is equipped with in the frame of road with the M individual first that is about to obtain, whether exist with the first main road frame of current acquisition and show that first of identical original image is equipped with the road frame, perhaps, search in M the first main road frame of the individual first main road frame of the M that obtains before and acquisition soon, whether exist with first of current acquisition and be equipped with the first main road frame that the road frame shows identical original image, if determine that then described first comparative result is synchronous; Otherwise, determine that described first comparative result is asynchronous, wherein, M is positive integer.
Preferably, whether described second comparison module, the 206 more described second main road frames and described second are equipped with the road frame synchronous, obtains second comparative result, specifically comprises:
Whether the back interpolation image that the second main road frame of more current acquisition shows is identical with the back interpolation image that second of current acquisition is equipped with road frame demonstration, if determine that then described second comparative result is synchronous; Otherwise,
The M that obtains before searching individual second is equipped with the road frame and is equipped with in the frame of road with the M individual second that is about to obtain, whether exist with the second main road frame of current acquisition and show that second of identical back interpolation image is equipped with the road frame, perhaps, search in M the second main road frame of the individual second main road frame of the M that obtains before and acquisition soon, whether exist with second of current acquisition and be equipped with the second main road frame that the road frame shows identical back interpolation image, if determine that then described second comparative result is synchronous; Otherwise, determine that described second comparative result is asynchronous, wherein, M is positive integer.
Preferably, the device of described detection two-way vision signal synchronism also comprises:
Template regions module 207 is used for definite described main road frame and the template zone that is equipped with the road frame, and described template zone is described main road frame and the maximum region that is equipped with the back interpolation image of road frame demonstration;
Then the described first frame processing module 202 is specifically extracted the image beyond the template zone in the described main road frame, obtains only to show the first main road frame of original image;
Image in the described road frame fully of the described first frame processing module, 202 concrete extractions beyond the template zone obtains only to show that first of original image is equipped with the road frame;
Concrete images that extract template zone in the described main road frame of the described second frame processing module 205, and adopt Wavelet Transformation Algorithm that the image in template zone in the main road frame of described extraction is carried out edge extracting and calculate obtain only to show that the back adds second a main road frame of image;
The described second frame processing module 205 is concrete extracts the described images that are equipped with template zone in the frame of road, and adopts Wavelet Transformation Algorithm that the image that is equipped with template zone in the frame of road of described extraction is carried out edge extracting and calculate, and obtains only to show that the back adds second of image and be equipped with the road frame.
The specific implementation function of each module does not repeat them here referring to the specific implementation process of the method for above-mentioned detection two-way vision signal synchronism in the device of described detection two-way vision signal synchronism.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.This section is the final stage of specification.