Embodiment
Below in conjunction with description of drawings the specific embodiment of the present invention.In each accompanying drawing, the part in the frame of broken lines is optional part.
Embodiment one
Present embodiment is the embodiment that obtains the method for two-dimension code from video.As shown in Figure 1, present embodiment may further comprise the steps:
S11 obtains the video code flow that includes two-dimension code;
The video here can be the streaming media video with the communication network transmission, also can be the TV programme that transmits by wired, terrestrial broadcasting, satellite broadcast, certainly, also can be to be stored in local video.Include two-dimension code in these videos, these two-dimension codes can adopt the mode of making in early stage or post-production to be blended in the video, just two-dimension code shows as the part of video pictures, also can transmit separately and in playing process and the vision signal stack be presented on the screen.
S12 obtains the image that comprises two-dimension code in the described video code flow;
This step is different from traditional takes two-dimension code with camera arrangement, but video code flow itself is analyzed, and obtains the image that includes two-dimension code in the video.The triggering of this step can for example, be carried out this step by clicking menu by user's manual triggers.
S13 extracts the two-dimension code in the described image that comprises two-dimension code.
Shown in the inner branch of Fig. 1 frame of broken lines, in one embodiment of the invention, after step S13, also have:
S14 distinguishes the information in the described two-dimension code;
So can make the user utilize information in the two-dimension code.
Following examples two to four all are the concrete application to present embodiment.
Embodiment two
The mode of present embodiment employing video interception is obtained the two-dimension code in the video.As shown in Figure 2, the step S12 among the embodiment one specifically comprises:
S211 intercepts the picture that comprises two-dimension code in the described video, obtains the described image that comprises two-dimension code;
This step can adopt existing video interception method to finish, and the data storage that is about to a frame picture in the screen buffer is got up.This step can be triggered by the user, for example clicks menu by the user and carries out the sectional drawing operation, perhaps keys in the operation that mode such as order triggers sectional drawing.
Step S13 among the embodiment one is specially:
S212 carries out image recognition to the described image that comprises two-dimension code, extracts two-dimension code wherein;
This step is to analyze the conventional steps that extracts two-dimension code, and prior art is very ripe.
Adopt the method for present embodiment, when coding comprises the video of two-dimension code, need not to carry out special processing, simple and easy to do.
In one embodiment of the invention, consider that video interception may be clear inadequately, have influence on the analysis of two-dimension code is extracted that so the picture of intercepting is carried out the clarity threshold judgement, the picture that only reaches threshold value is just analyzed it.Shown in Fig. 2 a, between aforesaid step S211 and S212, increase:
S213 detects the described sharpness that comprises the image of two-dimension code and whether reaches preset threshold value; If sharpness reaches preset threshold value, execution in step S212 then, otherwise execution in step S211.
Sharpness is one of standard of weighing the image quality quality, refers generally to the sharp degree of image detail edge variation.The stick that two-dimension code is replaced by black and white is formed the marginal portion feature, and Image Definition is used in its description that quantizes more.The sharpness that a lot of Image Definition can the computed image data is arranged in the actual engineering, and for example the sharpness evaluation function that can choose based on the Sobel edge detection operator calculates sharpness.
Adopt this method, can avoid the unclear information that causes to obtain in the two-dimension code of video image that intercepts.
Also can take another kind of mode to solve this problem, promptly two-dimension code be distinguished in real time,, then continue the picture in the intercepting video if can not distinguish information in the two-dimension code.Shown in Fig. 2 b, after aforesaid step S13, increase:
If recognition failure, then execution in step S211.
This mode adopts the method for information in the real-time recognition two-dimension code, can guarantee to obtain the information in the two-dimension code.
Embodiment three
Present embodiment adopts the signal of two-dimension code as be added to method in the video of an independent code stream.As shown in Figure 3, before aforesaid S12, increase step:
S30 detects whether comprise the two-dimension code code stream in the described video code flow; If comprise the two-dimension code code stream in the described video code flow, execution in step S12 then;
In described independent two-dimension code code stream, it oneself is the two-dimension code code stream to show that special sign can be set, thereby can identify to detect whether the two-dimension code code stream is arranged in the video code flow by detecting this.
Aforesaid step S12 is specially:
S31 extracts the image of described two-dimension code code stream correspondence;
Because in the present embodiment, the signal of two-dimension code is to occur as an independent code stream, thereby is easy to extract.
Adopt the method for present embodiment, do not need to use the mode of image recognition to obtain two-dimension code, the accuracy rate height.
Extract the action of two-dimension code and can in this case, can send prompting to the user earlier by user's manual triggers.For this reason, shown in the frame of broken lines of top among Fig. 3, between aforesaid step S30 and step S31, increase:
S33 produces information, in the prompting user video two-dimension code is arranged;
The method of prompting has a variety of, can eject a dialog box and inform that two-dimension code is arranged in the user video, also can be with in the voice reminder user video two-dimension code being arranged.The present invention does not do qualification to the method for prompting.
S34 receives the extraction instruction of user according to described information input;
Here, the user can import by modes such as click, touch-screen click, keyboard inputs and extract instruction.
Adopting this method can allow the user in time know has two-dimension code in the video, so that the user triggers the operation of extracting two-dimension code, prevent that the user from missing the two-dimension code in the video.
Embodiment four
In the present embodiment, two-dimension code in the video contains the information of writing to each other such as network address, telephone number, E-mail address, communication function such as video playback apparatus then has online, make a phone call, video playback apparatus can directly utilize the information in the two-dimension code that recognition comes out to surf the Net or call, or carry out other communications, in fact, present 3G mobile can both be realized these functions.As shown in Figure 4, after aforesaid step S13, increase:
Whether in correspondence with S40 detects in the described information of distinguishing out information from described two-dimension code; If have, execution in step S41 then;
In the prior art, the information realizations already in Related product of writing to each other such as identification telephone number, for example mobile phone can be discerned telephone number, network address, E-mail address etc.
S41 carries out the communication of corresponding kind according to the kind of the information of distinguishing out of writing to each other from two-dimension code;
Communication herein comprises log-on webpage, calls, sends note, send Email etc., and the information of writing to each other then comprises network address, telephone number, E-mail address etc.And carry out the communication of corresponding kind according to the kind of the information of writing to each other, then being meant according to the information of writing to each other takes corresponding mode to communicate, for example according to the telephone number dialing phone or send note, according to the network address log-on webpage, according to the E-mail address send Email etc.In the prior art, the kind of discerning these information realizes already that in Related product for example mobile phone can be discerned telephone number, network address, E-mail address etc.
Sometimes may both comprise telephone number in the two-dimension code, comprise network address, E-mail address again, and in this case, shown in Fig. 4 a, can before step S41, increase by one and select step:
S43 points out the user to select the kind of communicating by letter;
Aforesaid step S41 is specially: according to the communications category that the user selects, carry out the communication of corresponding kind according to the information of writing to each other of the corresponding kind in the two-dimension code of distinguishing out from two-dimension code;
For example, existing telephone number has network address again in the two-dimension code, and the user selects logon web page, and then video playback apparatus is according to the network address log-on webpage of obtaining from two-dimension code.
Adopt the method for present embodiment, the user can directly utilize the information of obtaining from two-dimension code of writing to each other to communicate by video play device, and is convenient for users to use.
Embodiment five
Present embodiment is the embodiment that extracts the video play device of two-dimension code in the video.As shown in Figure 5, this device comprises:
Video acquiring unit U51 is used to obtain the video code flow that includes two-dimension code;
The video here can be the streaming media video with the communication network transmission, also can be the TV programme that transmits by wired, terrestrial broadcasting, satellite broadcast, certainly, also can be to be stored in local video.Include two-dimension code in these videos, these two-dimension codes can adopt the mode of making in early stage or post-production to be blended in the video, just two-dimension code shows as the part of video pictures, also can transmit separately and in playing process and the vision signal stack be presented on the screen.
Image acquisition unit U52 is used for obtaining the image that described video code flow comprises two-dimension code;
Two-dimension code extraction unit U53 is used for extracting the described two-dimension code that comprises the image of two-dimension code.
This element is analyzed video code flow itself, and wherein two-dimension code is extracted.
Shown in the inner branch of the frame of broken lines among Fig. 5, on the basis of embodiment five, can also increase:
Two dimension code reading unit U54 is used for distinguishing the information of described two-dimension code;
So can make the user utilize information in the two-dimension code.
In one embodiment of the invention, shown in Fig. 5 a, the two-dimension code code stream independent as one transmit and in playing process and the vision signal stack be presented under the situation on the screen, can also increase:
Two-dimension code detecting unit U55, whether be used for detecting described video code flow has the two-dimension code code stream;
In described independent two-dimension code code stream, it oneself is the two-dimension code code stream to show that special sign can be set, thereby can identify to detect whether the two-dimension code code stream is arranged in the video code flow by detecting this.
Two-dimension code extraction unit U53 specifically is used for when described video code flow comprises the two-dimension code code stream, extracts the image of described two-dimension code code stream correspondence.
Present embodiment does not need to use the mode of image recognition to obtain two-dimension code, the accuracy rate height.
Extract the action of two-dimension code and can in this case, can send prompting to the user earlier by user's manual triggers.For this reason, shown in Fig. 5 b, can also increase:
Two-dimension code Tip element U56 is used to produce information, in the prompting user video two-dimension code is arranged;
The method of prompting has a variety of, can eject a dialog box and inform that two-dimension code is arranged in the user video, also can be with in the voice reminder user video two-dimension code being arranged.The present invention does not do qualification to the method for prompting.
Extract instruction accepting unit U57, be used to receive the extraction instruction of user according to described information input;
Here, the user can import by modes such as click, touch-screen click, keyboard inputs and extract instruction.
So can allow the user know that in time two-dimension code is arranged in the video,, prevent that the user from missing the two-dimension code in the video so that the user triggers the operation of extracting two-dimension code.
Following examples all are the concrete application to embodiment five.
Embodiment six
The mode of the device employing video interception of present embodiment is obtained the two-dimension code in the video.
Image acquisition unit U52 among the embodiment five specifically is used for intercepting the picture that described video comprises two-dimension code, obtains the described image that comprises two-dimension code;
This element can adopt existing video interception method to finish video interception, and the data storage that is about to a frame picture in the screen buffer is got up.
Two-dimension code extraction unit U53 among the embodiment five specifically is used for the picture of described video interception unit intercepting is carried out image recognition, extracts two-dimension code wherein.
The realization of this element, prior art are very ripe.
The device of present embodiment obtains two-dimension code in the video by video interception, need not the video that comprises two-dimension code is carried out special processing, and is simple and easy to do.
In one embodiment of the invention, consider that video interception may be clear inadequately, have influence on the analysis of two-dimension code is extracted, judge that so device carries out clarity threshold to the picture that intercepts the picture that only reaches threshold value is just analyzed it.As shown in Figure 6, the image acquisition unit U52 among the embodiment five specifically comprises:
Interception unit U650 is used for intercepting the picture that described video comprises two-dimension code;
Sharpness detecting unit U651 is used to detect the sharpness of the picture of intercepting;
Sharpness is one of standard of weighing the image quality quality, refers generally to the sharp degree of image detail edge variation.The stick that two-dimension code is replaced by black and white is formed the marginal portion feature, and Image Definition is used in its description that quantizes more.The sharpness that a lot of Image Definition can the computed image data is arranged in the actual engineering, and for example the sharpness evaluation function that can choose based on the Sobel edge detection operator calculates sharpness.
Determining unit U652 when the sharpness that is used for the picture of the described interception unit intercepting that detects at described sharpness detecting unit is lower than preset threshold value, makes described interception unit intercept the picture that comprises two-dimension code in the described video once more; When the sharpness of the picture of the described interception unit intercepting that detects at described sharpness detecting unit is not less than preset threshold value, with the picture of described interception unit intercepting as the described image that comprises two-dimension code.
Adopt this method, the video image that can avoid intercepting is not known the information that causes obtaining in the two-dimension code, has improved the accuracy rate of extracting two-dimension code.
Also can take another kind of mode to solve this problem, promptly install two-dimension code is distinguished in real time,, then continue the picture in the intercepting video if can not distinguish information in the two-dimension code.Promptly under the situation that aforesaid two dimension code reading unit U53 is arranged, image acquisition unit U52 also is used for when two dimension code reading unit U54 can not distinguish the information of described two-dimension code, intercept the picture that comprises two-dimension code in the described video, obtain the described image that comprises two-dimension code.
This mode adopts the method for information in the real time parsing two-dimension code, can guarantee to obtain the information in the two-dimension code.
Embodiment seven
Communication functions such as the device of present embodiment has online, calls, send Email, and the two-dimension code in the video contains the information of writing to each other such as network address, telephone number, E-mail address, and device can directly utilize the information of distinguishing out from two-dimension code of writing to each other to communicate.As shown in Figure 7, in embodiment five, increase on the basis of two dimension code reading unit U54, further increase:
Whether in correspondence with the information detecting unit of writing to each other U750 is used for detecting the information that goes out from described two dimension code reading information;
In the prior art, the information realizations already in Related product of writing to each other such as identification telephone number, for example mobile phone can be discerned telephone number, network address, E-mail address etc.
Communication unit U751 is used for when the information that goes out from described two dimension code reading in correspondence with during information, and the kind of the information of distinguishing out from two-dimension code according to two dimension code reading unit U54 of writing to each other is carried out the communication of corresponding kind;
Communication herein comprises log-on webpage, calls, sends note, send Email etc., and the information of writing to each other then comprises network address, telephone number, E-mail address etc.And carry out the communication of corresponding kind according to the kind of the information of writing to each other, then being meant according to the information of writing to each other takes corresponding mode to communicate, for example according to the telephone number dialing phone or send note, according to the network address log-on webpage, according to the E-mail address send Email etc.In the prior art, the kind of discerning these information realizes already that in Related product for example mobile phone can be discerned telephone number, network address, E-mail address etc.
Sometimes may both comprise telephone number in the two-dimension code, comprise network address, E-mail address again, then shown in the part in the frame of broken lines among Fig. 7, can increase again:
Tip element U752 is selected in communication, is used to point out the user to select the kind of communicating by letter;
Aforesaid communication unit U751 specifically is used for: according to the communications category that the user selects, carry out the communication of corresponding kind according to the information of writing to each other of the corresponding kind in the two-dimension code that obtains;
For example, existing telephone number has network address again in the two-dimension code, and the user selects logon web page, and then video playback apparatus is according to the network address log-on webpage of obtaining from two-dimension code.
Adopt the method for present embodiment, the user can directly utilize the information of obtaining from two-dimension code of writing to each other to communicate by video play device, and is convenient for users to use.
In addition; the technical characterictic that illustrates respectively among each technology, system, device, method and each embodiment that illustrates respectively among the above embodiment can make up; thereby form other the module do not break away within the spirit and principles in the present invention; method, device, system and technology; the module that these combine according to the record of the embodiment of the invention; method, device, system and technology are all within protection scope of the present invention.
Obviously, those skilled in the art should be understood that, above-mentioned each unit of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element.Perhaps they are made into each circuit module respectively, perhaps a plurality of unit in them or step are made into single circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
More than being preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All any modifications of being done within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.