Two-dimensional barcode information sharing method and system between television terminal and mobile terminal
Technical field
The present invention relates to fields of communication technology, more particularly to the two-dimensional barcode information between a kind of television terminal and mobile terminal
Sharing method and system.
Background technique
Two dimensional code (Quick Response Code), also known as two-dimensional bar code, it is with specific geometric figure by a set pattern
The chequered with black and white figure being distributed on plane (two-dimensional directional) is restrained, is a key of all information datas.
With the propulsion of technology, two dimensional code is gradually applied in TV media, such as by information content two dimensional code abundant
(merchandise news of such as advertisement, the video of news, the relevant information of TV programme) is shown on the tv screen.Interested spectators
Two-dimension code image can be filmed with mobile phone at any time, and the decoder by downloading in mobile phone carries out real-time decoding, obtains
Relevant information.Cell phone network can also be directly logged in by linking, realized " one beats in net ", to further appreciate that.When TV is logical
After crossing mobile phone and network implementations intercommunication, user can be carried out more interacting, and such as enter online chat room, to news program reality
When comment, directly to manufacturer's consulting merchandise news etc..Network can expand broader space again, such as forum, blog, circle, from
And merge content with community.Realize the unification of three nets of cellular network, television network, internet.
In the application of daily life, such as when user watches TV programme at home, often shown on video screen
Two-dimension code image is out for scanning input.In the process, before the user usually needs to go to television set, then by the way that mobile phone to be aligned
Two dimensional code region on screen is to be scanned.The disadvantage of this mode is in front of needing user to go to television set, if
It is just more troublesome if user distance television set is distant, moreover due to the factor of distance, sometimes when user determines scanning again
When going to before television set, the two-dimension code image shown on screen has disappeared, to bring many inconvenience to user.
Therefore, the present inventor, which feels the above problem very, the necessity of its improvement, is engaged in related fields then with its many years
Design and professional manufacturing experience, energetically for the shared side of two-dimensional barcode information between a kind of television terminal and mobile terminal
Method and system carry out research improvement, develop the present invention finally under careful consideration of the conditions of all parties.
Summary of the invention
For above situation, the shortcomings that in order to overcome the prior art, the embodiment of the invention provides a kind of television terminal with
Two-dimensional barcode information sharing method and system between mobile terminal can effectively solve facilitate quickly scanning electricity in the prior art
The problem of showing timeliness depending on two dimensional code and two dimensional code, improves the experience effect of scanning input TV two dimensional code.
The embodiment of the present invention adopts the following technical scheme that
A kind of two-dimensional barcode information sharing method between television terminal and mobile terminal, which comprises
Whether two-dimension code image is shown on the screen-picture of monitoring TV terminal;
When showing the two-dimension code image on the screen-picture for monitoring the television terminal, the screen is obtained
Curtain picture simultaneously therefrom extracts the two-dimension code image;And
The two-dimension code image is sent on at least mobile terminal to establish a connection with the television terminal;Institute
State method further include: parse to the two-dimension code image extracted;And the information content after parsing is sent to institute
It states on mobile terminal;The two-dimension code image is being sent on the mobile terminal to establish a connection with the television terminal it
Before, the method also includes: the two-dimension code image extracted is stored in preset database;It receives by the movement
The instruction of the first information transmitted by terminal simultaneously instructs the two dimension by storage in the database according to the first information
Code picture is shown on the screen-picture of the television terminal;And receive the second letter as transmitted by the mobile terminal
Breath instruction.
Preferably, the two-dimension code image to be sent to the mobile terminal to establish a connection with the television terminal
Before upper, the method also includes:
Wireless title corresponding to a plurality of mobile terminals is sent to specified mobile terminal by the television terminal;With
And
The selection operation that user executes is received, the wireless title of an at least mobile terminal is fed back into the television terminal.
Preferably, the method also includes:
Important information is extracted in the information content after analytically and it will be shown in the two dimensions in the database
Under code picture.
A kind of two-dimensional barcode information shared system between television terminal and mobile terminal, including a television terminal are moved at least one
Dynamic terminal, wherein the television terminal includes:
Whether monitoring unit shows two-dimension code image on the screen-picture of monitoring TV terminal;
Acquiring unit shows the two-dimension code image on the screen-picture for monitoring the television terminal for working as
When, obtain the screen-picture;
Picture extraction unit, for extracting the two-dimension code image from the screen-picture;And
First transmission unit, for by the two-dimension code image be sent to the television terminal establish a connection to
On a few mobile terminal;The television terminal further include: resolution unit, for being solved to the two-dimension code image extracted
Analysis;Third transmission unit, for the information content after parsing to be sent to the mobile terminal;Storage element, for that will mention
The two-dimension code image taken out is stored in preset database;First receiving unit, for receiving by the mobile terminal
Transmitted first information instruction;First display unit will store in the database for first information instruction
The two-dimension code image is shown on the screen-picture of the television terminal;And
Second receiving unit, for receiving the second information command as transmitted by the mobile terminal.
Preferably, the television terminal further include:
Second transmission unit, for sending wireless title corresponding to a plurality of mobile terminals to specified mobile terminal;
The mobile terminal includes:
Feedback unit, for receiving the selection operation of user's execution to feed back to the wireless title of an at least mobile terminal
The television terminal.
Preferably, the television terminal further include:
Information extraction unit, for extracting important information in the information content after analytically;And
Second display unit, for showing the important information under the two-dimension code image in the database.
Technical solution provided in an embodiment of the present invention has the benefit that using technical solution of the present invention, first,
When showing two-dimension code image on the screen-picture of television terminal, the screen-picture will be carried out to obtain and therefrom extract
The two-dimension code image is then sent at least one to establish a connection with the television terminal and moved by the two-dimension code image
In dynamic terminal, such user directly passes through another mobile terminal and sweeps to the mobile terminal for receiving the two-dimension code image
Retouch, alternatively, user can by specified mobile terminal execute selection operation with promote the television terminal to
Mobile terminal corresponding to the wireless signal of family selection sends the two-dimension code image;The second, the present invention can also be by described
Television terminal parse and the information content after parsing is sent on the mobile terminal, such user to the two dimensional code
It then no longer needs to execute scan operation, can directly check the information content corresponding to the two-dimension code image on mobile terminals;The
Three, the two-dimension code image that the present invention can also be displayed on the screen-picture is stored in preset database, such as
This, user can transfer previous two-dimension code image, solve the limited time because of TV two-dimensional code display picture to lead to user
The imeliness problem of two-dimension code image cannot be obtained in time.
Detailed description of the invention
In order to which the above-mentioned and other purposes of the present invention, feature, advantage can be clearer and more comprehensible, embodiment will hereafter be described
Needed in attached drawing make one and simply introduce, it should be apparent that, the accompanying drawings in the following description is only of the invention one
A little embodiments, for those of ordinary skill in the art, do not pay create it is laborious under the premise of, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the two-dimensional barcode information sharing method between a kind of television terminal and mobile terminal that the embodiment of the present invention one provides
Flow diagram;
Fig. 2 is the example schematic diagram for the first time that the embodiment of the present invention one provides searching for anchor point;
Fig. 3 is the example schematic diagram for second of search anchor point that the embodiment of the present invention one provides;
Fig. 4 is the wireless title sending method stream between a kind of television terminal and mobile terminal provided by Embodiment 2 of the present invention
Journey schematic diagram;
Fig. 5 is that the picture analytic method process between a kind of television terminal and mobile terminal that the embodiment of the present invention three provides is shown
It is intended to;
Fig. 6 is the two-dimensional barcode information sharing method between a kind of television terminal and mobile terminal that the embodiment of the present invention three provides
Flow diagram;
Fig. 7 is the two-dimensional barcode information shared system between a kind of television terminal and mobile terminal that the embodiment of the present invention four provides
Block schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, belongs to protection scope of the present invention.
In following embodiment of the present invention, the mobile terminal include, but are not limited to have the smart phone of touch screen,
Tablet computer, net book, PDA(Portable Digital Assistant), intelligent wearable equipment etc..
Embodiment one
Referring to FIG. 1, Fig. 1 is that a kind of two dimensional code between the television terminal and mobile terminal that the embodiment of the present invention one provides is believed
Cease sharing method flow diagram.Specifically, the two dimensional code present embodiments provided between a kind of television terminal and mobile terminal is believed
Cease sharing method, comprising the following steps:
Step 101, monitoring TV terminal screen-picture on whether show two-dimension code image;
When showing the two-dimension code image on the screen-picture for monitoring the television terminal, step is executed
102, it obtains the screen-picture and therefrom extracts the two-dimension code image;And
The two-dimension code image is sent at least one movement to establish a connection with the television terminal by step 103
In terminal.
Step 101 in the specific implementation, the image data stream for needing convection current to enter master cpu is identified, i.e., to described image
Every width still frame picture in data flow carries out the search of two-dimension code image.
Those skilled in the art generally comprise three anchor points in the shape feature of known two dimensional code, for determining two dimension
The range of code, guarantee have still correct identification in certain inclined situation.Therefore, three will specifically be positioned in the present embodiment
Line search is clicked through, to determine the presence of two-dimension code image in still frame picture.It should be noted that the two-dimension code image
The size of position and display shown by still frame picture is simultaneously not fixed, that is to say, that the two-dimension code image can be shown
And can be with the shape of arbitrary size to show on any position in still frame picture, therefore need in search process to quiet
All areas in frame picture are searched.Specific search pattern is as follows:
Reference axis and three search boxes for covering three anchor points are established on still frame picture, wherein search box can
To be square.The mode of search is according to successively screening from big to small.Three search boxes will be specifically provided respectively to search for the first time
The coordinate of rope position, wherein the coordinate of the first time searching position is by the covering still frame picture of maximum magnitude.It then will control
Three search boxes are respectively displayed at corresponding coordinate position, and judge whether three search boxes are all covered with positioning
Point, if there is then determining that there are two-dimension code images on current still frame picture;Continue to search for if not.Continue
The mode of search are as follows: the coordinate of second of searching position is provided, wherein the area that the coordinate of second of searching position is covered
The region that domain is covered the coordinate for being less than the first time searching position;To equally control three search boxes be respectively displayed on
At its corresponding coordinate position and judged, if it is judged that will then control three simultaneously without all covering anchor point
A search box is integrally moved, cannot because smaller before the coordinate overlay area ratio of second of searching position
Covering still frame picture in maximum magnitude needs to move three search boxes simultaneously to cover entire still frame picture, when comprehensive covering
Still non-interpretation goes out there are when two-dimension code image after still frame picture, then will continue to search in such a way that second is searched for
Rope continues to reduce the region that the coordinate of searching position is covered, until there are stoppings when minimum clearance between three search boxes;
When covering there are minimum clearance between three search boxes and by movement, entire still frame picture is all no all to cover positioning
If point, then it is assumed that two-dimension code image is not present on current still frame picture, so then will carry out two to next still frame picture
Tie up code search.
Referring to FIG. 2, Fig. 2 is the example schematic diagram for the first time that the embodiment of the present invention one provides searching for anchor point.Such as figure
It is shown, it is assumed that the still frame picture in the present embodiment is square, and side length is 10.Wherein, three search boxes are respectively designated as
S1, S2 and S3, wherein the coordinate for providing search box S1 is (0,10), (1,10), (1,9), (0,9), i.e., the seat on four vertex
Mark;The coordinate for providing search box S2 is (9,10), (10,10), (10,9), (9,9);The coordinate for providing search box S3 is (0,1),
(1,1), (1,0), (0,0).After three search boxes are shown in given coordinate position, the TV terminal system will judge three
Whether a search box is all covered with anchor point, if all coverings, it is determined that there are two dimensions on current still frame picture
Code picture;Continue second of search if not.
Referring to FIG. 3, Fig. 3 is the example schematic diagram for second of search anchor point that the embodiment of the present invention one provides.Such as figure
It is shown, keep the coordinate position of search box S1 constant, the coordinate for providing search box S2 is (8,9), (9,10), (9,9), (8,9);
The coordinate for providing search box S3 is (0,2), (1,2), (1,1), (0,1).That is, search box S2 is shifted 1 to the left
Length unit;Search box S3 1 length unit is translated up into, after translation, between search box S1 and S2 and S1 and S3
Distance respectively shorten 1 length unit;Then, the TV terminal system will judge whether three search boxes after translation are complete
Portion is covered with anchor point, if all coverings, it is determined that there are two-dimension code images on current still frame picture;If no
Three search boxes will then be controlled simultaneously integrally to move, specific move mode are as follows: it is whole to the right first to control three search boxes
1 length unit is translated, is then judged, if it is determined that not all being covered with anchor point, then controls three search boxes again
It is whole to translate 1 length unit downwards on existing position, then judged, if it is determined that not being covered with positioning all
Point then controls three search boxes entirety on existing position to 1 length unit of left again.
It is described it should be noted that above-mentioned implementation process is only searched for first time with second of search, practical operation
In, if second has not determined on current still frame picture when searching for, there are two-dimension code image (i.e. three search box wholes
Positioning is covered with to point) if, then it will continue to search for, that is, continue that search box S2 is translated and judged with S3, directly
To search box S1 and S2 and the distance between S1 and S3 to continue to translate by stopping when minimum clearance, wherein the present embodiment is to most
The length of small―gap suture is not construed as limiting.
In step 102, the screen-picture acquired in the TV terminal system is to show the two dimensional code figure
The still frame picture of piece, specific acquisition modes can be duplication or interception, then will be from the still frame picture of acquisition described in extraction
Two-dimension code image.
The mode of extraction is preferred in the present embodiment are as follows: locating for first judging the two-dimension code image in still frame picture
Coordinate position then again intercepts region corresponding to the coordinate position.For example, judging the two-dimension code image quiet
Locating coordinate position is (0,5), (2,5), (2,3), (0,3) in frame picture;It then will be to region corresponding to the coordinate position
It is intercepted, the picture being truncated to will be the two-dimension code image.
It should be noted that whether way of search used in the present embodiment can be accurately to having two dimension on still frame picture
Code picture is judged, and ensures not have the region that do not search for.
In step 103, the television terminal needs establish a connection with an at least mobile terminal, specifically can be nothing
Line connection, such as bluetooth connection.Under the premise of establishing a connection, the television terminal will be mentioning from the screen-picture
The two-dimension code image taken out is sent on the mobile terminal.After sending successfully, the mobile terminal will receive described
Two-dimension code image, at this point, user can directly open the two-dimensional code scanning function of another mobile terminal to the two dimensional code figure
Piece is scanned.The thing generation for removing to scan the two-dimensional code picture is needed to go to before television set so as to avoid user.
Further, in the step 101 of the present embodiment, if do not shown on the screen-picture of monitoring TV terminal
Two-dimension code image then will directly terminate process.
Embodiment two
Referring to FIG. 4, Fig. 4 is the wireless title between a kind of television terminal and mobile terminal provided by Embodiment 2 of the present invention
Sending method flow diagram.Specifically, the present embodiment is substantially the same with embodiment one, and difference place is, the present embodiment
In, before being sent to the two-dimension code image on the mobile terminal to establish a connection with the television terminal, the side
Method further include:
Step 201 sends nothing corresponding to a plurality of mobile terminals to specified mobile terminal by the television terminal
Line title.
Wherein, wireless title corresponding to a plurality of mobile terminals can be the prior and television terminal and establish
Connection relationship, after having mobile terminal and the television terminal successful matching, the television terminal will acquire and record the shifting
The wireless title of dynamic terminal.For example, it is assumed that wireless title point corresponding to a plurality of mobile terminals of the television terminal record
Not Wei A1, A2, A3, then in this step, wireless title A1, A2, A3 will be sent respectively to the finger by the television terminal
Fixed mobile terminal.
Step 202 receives the selection operation that user executes, and the wireless title of an at least mobile terminal is fed back to the electricity
Depending on terminal.
Wherein, user can be that is, a plurality of mobile whole from what is received by operating to the specified mobile terminal
Selected in the corresponding wireless title in end one of them or it is a plurality of.For example, it is assumed that the wireless title of user's selection is A2, then institute
The television terminal will be fed back to wireless title A2 by stating specified mobile terminal.
In this way, then after the television terminal receives wireless title transmitted by the specified mobile terminal, just
The two-dimension code image extracted can be sent on mobile terminal corresponding to the wireless title.
The effect that the present embodiment is reached is: user can be by executing selection operation to specify the television terminal that will send out
Send the object of the two-dimension code image.For example, the television terminal can send the two dimensional code figure on the mobile phone of father user
Piece, such user can be by opening the two-dimensional code scanning function on oneself mobile phone to described in receiving on father's mobile phone
Two-dimension code image is scanned operation.
Embodiment three
Referring to FIG. 5, Fig. 5 is that a kind of picture between the television terminal and mobile terminal that the embodiment of the present invention three provides parses
Method flow schematic diagram.Specifically, the present embodiment is substantially the same with embodiment one, and difference place is, in the present embodiment, institute
State method further include:
Step 301 parses the two-dimension code image extracted;And
The information content after parsing is sent on the mobile terminal by step 302.
Wherein, if the information content parsed is network address, which is sent on the mobile terminal and to this
The safety of network address is detected, and directly opens the network address if testing result is safety;If the information content parsed is
The contents such as text, picture, music can then enter in text in the memorandum of the mobile terminal;Picture is stored in described
In the photograph album of mobile terminal;Music is stored in the music player of the mobile terminal, etc..
Referring to FIG. 6, Fig. 6 is that a kind of two dimensional code between the television terminal and mobile terminal that the embodiment of the present invention three provides is believed
Cease sharing method flow diagram.Specifically, it in the present embodiment, is sent to and the television terminal by the two-dimension code image
Before on the mobile terminal to establish a connection, the method also includes:
The two-dimension code image extracted is stored in preset database by step 303.
Step 304 receives the instruction of the first information as transmitted by the mobile terminal and is instructed according to the first information
The two-dimension code image of storage in the database is shown on the screen-picture of the television terminal;And
Step 305 receives the second information command as transmitted by the mobile terminal.
Because under normal circumstances, display of the two dimensional code on the television terminal has timeliness, that is, show the time
Of short duration, the present embodiment will be solved for this problem.In the present embodiment, when the television terminal is from the screen-picture
In be also stored in the database while extract the two-dimension code image, thus facilitate user to transfer out in the past
The two-dimension code image being shown on the television terminal.
It is instructed for example, user can send the first information to the television terminal by the mobile terminal, when described
When television terminal receives first information instruction, it will control the database and open, and real-time display is in the TV
In terminal, the previous all two-dimension code images stored in the database can be shown on the television terminal.
In this way, user can send second information command to the television terminal, second information command is specifically
Show the code name of the selected two-dimension code image of user, i.e., described two stored in the described database to the television terminal
Dimension code picture all has a code name;Assuming that the television terminal is 3 according to the code name that second information command identifies, then will
The two-dimension code image corresponding to code name 3 can be sent and give the mobile terminal.Wherein, may include in second information command
One code name, also may include a plurality of code names.
Further, in the present embodiment, the method also includes:
Step 306, analytically after the information content in extract important information and it will be shown in the database
Under the two-dimension code image.
Wherein, the important information may include type belonging to the two-dimension code image information content, affiliated type
Including advertisement, ballot, with lottery guess, message etc.;Alternatively, the important information can also include described in the two dimensional code is presented on
Corresponding TV station, time etc. or the important information can also include in the two-dimensional barcode information when on television terminal
It the validity period etc. of appearance, will not describe in detail herein.
In this way, the two-dimension code image stored in the database is shown described when the database is opened
When on television terminal, user can be by observing important information corresponding to the two-dimension code image to decide whether to open
With.
If function described in the present embodiment method is realized in the form of SFU software functional unit and as independent product pin
It sells or in use, can store in a storage medium readable by a compute device.Based on this understanding, the embodiment of the present invention
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, this is soft
Part product is stored in a storage medium, including some instructions are used so that calculating equipment (it can be personal computer,
Server, mobile computing device or network equipment etc.) execute all or part of step of each embodiment the method for the present invention
Suddenly.And storage medium above-mentioned includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Example IV
Referring to FIG. 7, Fig. 7 is that a kind of two dimensional code between the television terminal and mobile terminal that the embodiment of the present invention four provides is believed
Cease shared system block schematic diagram.Specifically, the present embodiment provides the two-dimensional barcode informations between a kind of television terminal and mobile terminal
Shared system 4, including a television terminal 40 and an at least mobile terminal 41, wherein the television terminal includes:
Whether monitoring unit 401 shows two-dimension code image on the screen-picture of monitoring TV terminal 40;
Acquiring unit 402 shows the two dimension on the screen-picture for monitoring the television terminal 40 for working as
When code picture, the screen-picture is obtained;
Picture extraction unit 403, for extracting the two-dimension code image from the screen-picture;And
First transmission unit 404 establishes connection pass with the television terminal 40 for being sent to the two-dimension code image
On an at least mobile terminal 41 for system.
As a kind of enforceable mode, in the present embodiment, the television terminal 40 further include:
Second transmission unit 405, it is wireless corresponding to a plurality of mobile terminals for being sent to specified mobile terminal 41
Title;
The mobile terminal 41 includes:
Feedback unit 406, for receiving the selection operation of user's execution so that the wireless title of an at least mobile terminal is anti-
It is fed to the television terminal.
As a kind of enforceable mode, in the present embodiment, the television terminal 40 further include:
Resolution unit 407, for being parsed to the two-dimension code image extracted;And
Third transmission unit 408, for the information content after parsing to be sent to the mobile terminal 41.
As a kind of enforceable mode, in the present embodiment, the television terminal 40 further include:
Storage element 409, for the two-dimension code image extracted to be stored in preset database;
First receiving unit 410, for receiving the instruction of the first information as transmitted by the mobile terminal 41;
First display unit 411, the two dimensional code for first information instruction by storage in the database
Picture is shown on the screen-picture of the television terminal 40;And
Second receiving unit 412, for receiving second information command as transmitted by the mobile terminal 41.
As a kind of enforceable mode, in the present embodiment, the television terminal 40 further include:
Information extraction unit 413, for extracting important information in the information content after analytically;And
Second display unit 414, for the important information to be shown the two-dimension code image in the database
Under.
It should be understood that the specific implementation process of above-mentioned each unit (can be implemented with above method embodiment in example IV
Example one to three) description it is corresponding, be not described in detail herein.
The television terminal in system provided by above-described embodiment four is only carried out with the division of above-mentioned each functional unit
For example, can according to need in practical application and function distribution will be appealed and completed by different functional units, i.e., it will be described
The internal structure of television terminal is divided into different functional units, to complete all or part of the functions described above.In addition,
System and method for embodiment provided by the above embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method,
This will be without repeating.The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Following advantages can be achieved in the present invention:
By the present invention, first, when showing two-dimension code image on the screen-picture of television terminal, it will be to the screen
Picture obtain and therefrom extracts the two-dimension code image, is then sent to the two-dimension code image whole with the TV
It holds on at least mobile terminal that establishes a connection, such user directly passes through another mobile terminal to receiving described two
The mobile terminal of dimension code picture is scanned, alternatively, user can be by executing selection behaviour on specified mobile terminal
Make with promote the television terminal select to user wireless signal corresponding to the mobile terminal transmission two-dimension code image;The
Two, the present invention to the two dimensional code can also parse and be sent to the information content after parsing by the television terminal
On the mobile terminal, such user then no longer needs to execute scan operation, can directly check the two dimensional code on mobile terminals
The information content corresponding to picture;Third, the present invention can also be displayed on the two-dimension code image on the screen-picture
It is stored in preset database, in this way, user can transfer previous two-dimension code image, solves because of TV two-dimensional code display figure
The limited time of piece is to cause user that cannot obtain the imeliness problem of two-dimension code image in time.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope of the requirement.