Summary of the invention
The technical problem that the present invention mainly solves is to provide a kind of method and the client terminal that generate signature photograph based on online live application, can by main broadcaster user in real-time live broadcast process to spectators give signature shine into row preservation, so that spectators can also obtain signature photograph after live completing, be conducive to improving spectators to the intimate degree of main broadcaster user and interactive between spectators and main broadcaster user so that the popularity of main broadcaster user is better.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provides a kind of method generating signature photograph based on online live application, comprising: obtains the signature information that main broadcaster user inputs on mobile terminals; Described signature information is shown in the live picture of described main broadcaster user; Preservation instruction according to described main broadcaster user, synthesizes a width picture to generate signature photograph by described signature information and described live picture, and by described signature according to being saved to specified path.
Wherein, the step of the signature information that described acquisition main broadcaster user inputs on mobile terminals comprises: the startup instruction obtaining the generation signature photograph that main broadcaster user sends; Two-dimension identification code is shown, so that described mobile terminal is by identifying that described two-dimension identification code enters signature information and writes interface according to described startup instruction; Obtain the signature information that main broadcaster user writes input in interface in described signature information.
Wherein, described the step that described signature information carries out showing in the live picture of described main broadcaster user is comprised: by described signature information with specify the personal information of spectators user to show in the live picture of described main broadcaster user; The described width picture that described signature information and described live picture synthesized comprises to generate the step of signature photograph: the personal information of described signature information, described appointment spectators user and described live picture synthesize a width picture, and to generate, described signature shines.
Wherein, described by after the described step shone and be saved to specified path of signing, comprising: the message carrying described specified path is sent to described appointment spectators user.
Wherein, after the step of the signature information that described acquisition main broadcaster user inputs on mobile terminals, comprising: generate the signature picture with described signature information; Described the step that described signature information carries out showing in the live picture of described main broadcaster user is comprised: described signature picture is superimposed on described live picture so that described signature information shows in described live picture; The described width picture that described signature information and described live picture synthesized comprises to generate the step of signature photograph: described signature picture and described live picture synthesize a width picture, and to generate, signature shines.
Wherein, the form of described signature picture is PNG picture form, and in described signature picture, rest part except described signature information is transparent.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provides the online live client terminal of kind, comprising: acquisition module, for obtaining the signature information that main broadcaster user inputs on mobile terminals; Display module, for showing described signature information in the live picture of described main broadcaster user; Synthesis module, for the preservation instruction according to described main broadcaster user, described signature information and described live picture synthesize a width picture, and to generate, signature shines; Preserve module, it is saved to specified path for being shone by described signature.
Wherein, described acquisition module comprises: the first acquiring unit, for obtaining the startup instruction of the generation signature photograph that main broadcaster user sends; Display unit, for showing two-dimension identification code according to described startup instruction, so that described mobile terminal is by identifying that described two-dimension identification code enters signature information and writes interface; 2nd acquiring unit, writes in interface, for obtaining main broadcaster user, the signature information inputted in described signature information.
Wherein, described display module is used for described signature information and specifies the personal information of spectators user to show in the live picture of described main broadcaster user; Described synthesis module is used for that the personal information of described signature information, described appointment spectators user and described live picture synthesize a width picture, and to generate, described signature shines.
Wherein, also comprising sending module, described sending module is used for being sent to the message carrying described specified path described appointment spectators user.
Wherein, also comprise generation module, for generating the signature picture with described signature information; Described display module is for being superimposed on described live picture by described signature picture, so that described signature information shows in described live picture; Described synthesis module is used for that described signature picture and described live picture synthesize a width picture, and to generate, signature shines.
Wherein, the form of described signature picture is PNG picture form, and in described signature picture, rest part except described signature information is transparent.
The invention has the beneficial effects as follows: the situation being different from prior art, the present invention obtains the signature information that main broadcaster user inputs on mobile terminals, by the signature information of main broadcaster user and live picture synthesize a width picture, to generate, signature shines, and by signature according to being saved to specified path, signature after live completing thus can be avoided to shine be eliminated, therefore after live completing, spectators user can also download in specified path, the signature sharing main broadcaster user shines, make the intimacy between spectators user and main broadcaster user that signature can be relied on according to being maintained further, such that it is able to improve the popularity of main broadcaster user and improve the interactive of main broadcaster user and spectators.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only the present invention's part embodiment, instead of whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Generate method and the client terminal of signature photograph based on online live application it is desirable to provide a kind of, the signature that can generate main broadcaster user online shines, it is saved to specified path by being shone by signature, thus spectators user can obtain signature in specified path shines, it is to increase main broadcaster user and spectators' is interactive. To be described in detail respectively below.
In order to better understand a kind of method and client terminal generating signature photograph based on online live application disclosed in the embodiment of the present invention, first the network architecture that the embodiment of the present invention is suitable for is described below. Referring to Fig. 1, Fig. 1 is a kind of network architecture schematic diagram based on online live application disclosed in the embodiment of the present invention.
As shown in Figure 1, this network architecture schematic diagram can comprise server and multiple client terminal, and wherein, server can also be called as background server, component server etc., and server can be communicated to connect by internet and multiple client terminal. in multiple client terminal, part client terminal can provide online direct broadcast band as main broadcaster's client terminal, and all the other client terminals can participate in client terminal as activity or spectators' client terminal logs in the online direct broadcast band entering the offer of main broadcaster's client terminal, main broadcaster's user end to server uploads online live content, by server, this online live content is sent to the movable participation client terminal or spectators' client terminal that log in and enter this online direct broadcast band, participates in client terminal or the viewing of spectators' client terminal for activity, wherein, the spectators' client terminal in its channel of access is had control and initiative by main broadcaster's client terminal, and main broadcaster's client terminal can carry out with server alternately. online direct broadcast band in the embodiment of the present invention is exactly briefly a kind of Virtual Space (or virtual room) that server creates, main broadcaster's client terminal and spectators' client terminal can enter into this Virtual Space, it is positioned at the movable participation client terminal of this Virtual Space or spectators' client terminal can not only watch the live content of main broadcaster's client terminal, the movable activity (such as make friend activity) participating in client terminal and can also participating in main broadcaster's client terminal and preside over, and the movable client terminal that participates in can carry out various interaction with main broadcaster's client terminal, such as can carry out the mutual of real-time online voice or word, or can carrying out real-time online present to give, can give fresh flower, applause etc. to main broadcaster's client terminal as activity participates in client terminal, or be praised by main broadcaster client's end points, and for example main broadcaster's client terminal can participate in client terminal to activity and give individual's souvenir badge etc.
In the embodiment of the present invention, main broadcaster user typically refers to video content publisher, main broadcaster user is by shooting device, microphone input video and voice information, live content is being sent to server after the fusion of audio/video information, server obtains the user ID signing in the channel that main broadcaster user creates, and pushes live content to user.
In the embodiment of the present invention, client terminal (comprises main broadcaster's client terminal, movable participation client terminal or spectators' client terminal) and can comprise the Rich Media gathering the function such as group chat, net cast, channel K song, game on line, online video display and being integrated. In the network architecture shown in Fig. 1, client terminal may operate in and includes but not limited to mobile telephone, removable computer, panel computer, personal digital assistant (PersonalDigitalAssistant, PDA), on the terminating unit such as media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet, terminating unit can be that mobile terminal can also PC (desktop computer or notebook computer). The client terminal mentioned in some embodiment of the present invention, it is possible to be any one in main broadcaster's client terminal, acquisition participation client terminal or spectators' client terminal.
In following each enforcement mode, the executive agent of each step is to run the client terminal of online live application, described live is online applied as real-time live broadcast.
Based on the network architecture shown in Fig. 1, the embodiment of the invention discloses a kind of method generating signature photograph based on online live application. Referring to Fig. 2, Fig. 2 is that the method one that the present invention generates signature photograph based on online live application implements the schema of mode, and described method comprises the steps:
Step S201: obtain the signature information that main broadcaster user inputs on mobile terminals.
In present embodiment, the terminating unit of running client and the mobile terminal for the signature information receiving main broadcaster user's input are same mobile terminal, such as, for having the mobile phone of touch function, panel computer etc., so that the hand-written operation of main broadcaster user. As shown in Figure 3, main broadcaster user draws on the screen of the mobile terminal and writes signature, thus client terminal is according to the handwriting tracks of main broadcaster user, obtains the signature information 30 of main broadcaster user's input. Wherein, in input process, it is possible to signature is modified, wipes or rewrite operation.
Step S202: signature information is shown in the live picture of main broadcaster user.
Composition graphs 4, by signature information 30 being shown in live picture 40, main broadcaster user can intuitively see the effect of signature photograph. Wherein, main broadcaster user can adjust the position of signature information in live picture.
Step S203: according to the preservation instruction of main broadcaster user, synthesizes a secondary picture to generate signature photograph by signature information and live picture, and by signature according to being saved to specified path.
Wherein, it is possible to preservation button is set in live picture. Button is preserved to determine preservation signature photograph by clicking after main broadcaster user sets the position of signature information. After client terminal receives the preservation instruction of main broadcaster user, signature information and live picture are synthesized a secondary picture and then generates signature photograph, and by signature according to being saved in specified path.
Wherein, specified path can be the common storage district of client terminal, or local storage zone or the cloud dish specified etc., and spectators user can download from specified path or copy or share the signature photograph of main broadcaster user.
Based on the method generating signature photograph based on online live application of above embodiment of the present invention, by the live picture synthesis of the signature information of main broadcaster user and main broadcaster user is generated a width picture, the signature being possible not only to generate online main broadcaster user shines, and photograph of signing is accompanied with the live picture of main broadcaster user so that signature is according to having more commemoration meaning, more like by spectators. And, compared with the application of existing real-time online live broadcast, the signature of the main broadcaster user generated in real-time live broadcast process can be shone into row storage by the present invention, therefore after live end, spectators user can obtain the signature photograph of main broadcaster user in specified path, signature thus can be shone into row souvenir, it is set to desktop wallpaper etc., make the intimacy between spectators user and main broadcaster user that signature can be relied on according to being maintained further, make the popularity of main broadcaster user better, it is to increase interactive between spectators user and main broadcaster user.
In above-mentioned enforcement mode, it is same equipment that the terminating unit of running client and main broadcaster user input the mobile terminal of signature information, generate in another enforcement mode of method of signature photograph based on online live application in the present invention, it can also be different equipment that the terminating unit of running client and main broadcaster user input the mobile terminal of signature information. Wherein, the terminating unit of running client is PC (PersonalComputer, PC), such as, be notebook computer or desktop computer. PC has bigger screen, it is possible to facilitate main broadcaster user to watch live effect, and therefore more main broadcaster user's choice for use PCs carry out live online. It is there are the cell phone of touch function, panel computer etc., this kind of mobile terminal random handwritten signature of more convenient main broadcaster user for receiving the mobile terminal of signature information of main broadcaster user's input.
In present embodiment, as shown in Figure 5, Fig. 5 is the schema of the signature information that the acquisition main broadcaster user that another enforcement mode provides inputs on mobile terminals, comprises following sub-step:
Step S501: the startup instruction obtaining the generation signature photograph that main broadcaster user sends. When main broadcaster user need to generate signature according to time, it is possible to by the button of generation on-line signature photograph clicked in live picture to send the startup instruction generating signature photograph.
Step S502: according to startup instruction display two-dimension identification code, so that mobile terminal is by identifying that two-dimension identification code enters signature information and writes interface.
Specifically, in present embodiment, it is different terminating unit that the PC of running client and main broadcaster user input the mobile terminal of signature information. As shown in Figure 6, receive after starting instruction, display two-dimension identification code 60. After display two-dimension identification code 60, main broadcaster user, and then makes mobile terminal enter signature information to write interface so that mobile terminal identification two-dimension identification code 60 by making mobile terminal be scanned by two-dimension identification code 60. Such as, main broadcaster user can open the browser on mobile terminal, then " sweep and sweep " button of click browser, then carries out scanning facing to two-dimension identification code 60 by the camera of mobile terminal so that mobile terminal enters signature information by scanning two-dimension identification code 60 writes interface.
Wherein, signature information writes the specified page that interface can be browser on mobile terminal. Specifically, two-dimension identification code carries and enters the unified resource location symbol (UniformResourceLocator that signature information writes interface, URL), certain web address that mobile terminal jumps to described URL on mobile terminal answer by scanning two-dimension identification code, enters signature information and writes interface.
Step S503: obtain the signature information that main broadcaster user writes input in interface in signature information.
Wherein, client terminal obtains, by URL, the signature information that main broadcaster user writes interface input in signature information further to described web address.
Further, main broadcaster user can write in signature information and write signature in interface, or insert pictures etc. When main broadcaster user is after signature information is write and completed in interface to write, it is possible to write on interface set button really by clicking signature information client terminal obtains signature information by described web address to trigger; Or main broadcaster user can also carry out gesture and slides by writing in signature information and obtain signature information to trigger client terminal by described web address on interface, such as, can write on interface in signature information and upwards slide or slide to trigger client terminal to the left and obtain signature information.
After client terminal obtains signature information, generate signature according to step S202 and step S203 and shine.
Wherein, in another kind of possible implementation, when the terminating unit of running client with for when to input the mobile terminal of signature information be not same equipment, the terminating unit of running client can also by carrying out wired or wireless connection with for inputting the mobile terminal of signature information, after client terminal receives the startup instruction that user sends generation signature photograph, client terminal control mobile terminal enters signature information and writes interface, so that main broadcaster user writes in the signature information of mobile terminal inputs signature information on interface, client terminal receives signature information to generate signature photograph afterwards.
In another enforcement mode, when the terminating unit of running client with for when to input the mobile terminal of signature information be same mobile terminal, when main broadcaster user starts button (can be the button in live picture can also be the mechanical button on mobile terminal) with after sending the startup instruction generating signature photograph by clicking, client terminal can according to startup instruction display two-dimension identification code, now main broadcaster user is by clicking or long press two-dimension identification code with triggering mobile terminals identification two-dimension identification code, and then makes mobile terminal open signature information to write interface.
Certainly, when the terminating unit of running client with for when to input the mobile terminal of signature information be same mobile terminal, can not also by identifying that two-dimension identification code enters signature information and writes interface, can be such as: when after the startup instruction receiving the generation on-line signature photograph that main broadcaster user sends, namely the browser on mobile terminal is called, and open the specified page of the browser on mobile terminal, and then open signature information and write interface, this kind of mode is for main broadcaster user, only need to click and start button and triggering mobile terminals can enter signature information and write interface.
In the above-described embodiment, the signature information of acquisition is directly carried out synthesizing to obtain signature and shines by client terminal with live picture, generate in the method one enforcement mode of signature photograph based on online live application in the present invention, different from the embodiment described above is, after client terminal obtains the signature information that main broadcaster user inputs on mobile terminals, generate the signature picture with signature information, then signature picture is superimposed on live picture so that signature information shows in live picture, then signature picture and live picture synthesize a width picture after the preservation instruction receiving main broadcaster user, and to generate, signature shines.
Further, the picture form of signature picture is PNG picture form, naturally it is also possible to be the picture forms such as JPG, GIF. Wherein, in signature picture, rest part except signature information is transparent, to avoid the signed picture of live picture to block too much.
Generate in the method one enforcement mode of signature photograph based on online live application in the present invention, the signature generated is according to except having signature information and live picture, can also by spectators' user profile signature according in display, to increase the interactive of main broadcaster user and spectators user.
Specifically, in present embodiment, the step that signature information carries out showing in the live picture of main broadcaster user is comprised by client terminal: the personal information of signature information and appointment spectators user shown in the live picture of main broadcaster user.
Wherein, as shown in Figure 7, after signature information being shown in live picture, main broadcaster user can choose spectators user from spectators user's list on live picture side, and the spectators chosen are and specify spectators user. The personal information such as pet name of the spectators user chosen is displayed on live picture according to the selection of main broadcaster user by client terminal, and concrete display form can be such as " toXXX ", is give to " XXX " spectators user to represent that this signature shines. Such as, designated user is " the happy water of flying fish ", shows " the happy water of to flying fish " on live picture, is give to " the happy water of flying fish " to represent that this signature shines. Main broadcaster user can adjust signature information and specify the position of the personal information of spectators user in live picture.
Or, in another kind of possible implementation, main broadcaster user, before sending the startup instruction generating signature photograph, first selects spectators user to specify spectators user, and then sends startup instruction. The personal information of the spectators user in user-selected to signature information and main broadcaster obtaining after signature information, is all shown by client terminal in live picture.
In present embodiment, signature information and live picture are synthesized a width picture and comprises to generate the concrete steps of signature photograph: signature information, the personal information specifying spectators user and live picture are synthesized a width picture, and signature shines to generate. As shown in Figure 8, the signature of generation is according to comprising live picture, the signature of main broadcaster user and the pet name of appointment spectators user.
Pass through present embodiment, it is possible to improve further the interactive of main broadcaster user and spectators user so that signature is according to having more individual character and interest.
Further, in present embodiment, signature is shone after being saved to specified path, comprise step: the message carrying specified path be sent to and specify spectators user. Thus, it is possible to spectators user is shone with conveniently obtaining to sign in time.
Consulting Fig. 9, Fig. 9 is the structural representation that the online live client terminal one of the present invention implements mode, and online live client terminal is run the client terminal of online live application, live is online applied as real-time live broadcast. The method that described online live client terminal is used for the signature photograph of the generation according to aforementioned any embodiment generates signature photograph online. In present embodiment, online live client terminal comprises acquisition module 71, display module 72, synthesis module 73 and preserves module 74.
The signature information that acquisition module 71 inputs on mobile terminals for obtaining main broadcaster user. Wherein, the mobile terminal of signature information is same mobile terminal for inputting for the terminating unit of running client and main broadcaster user, such as, for having the mobile phone of touch function, panel computer etc., so that the hand-written operation of main broadcaster user.
Display module 72 is for showing signature information in the live picture of main broadcaster user. Thus main broadcaster user can intuitively arrive the effect of signature photograph.
Synthesis module 73 is for the preservation instruction according to main broadcaster user, and signature information and live picture synthesize a width picture, and to generate, signature shines.
Preserve module 74 and it is saved to specified path for being shone by signature.
Wherein, specified path can be the common storage district of client terminal, and the signature that spectators user could download, share main broadcaster user from specified path shines.
Based on the online live client terminal of above embodiment of the present invention, by the live picture synthesis of the signature information of main broadcaster user and main broadcaster user is generated a width picture, the signature being possible not only to generate online main broadcaster user shines, and photograph of signing is accompanied with the live picture of main broadcaster user so that signature is according to having more commemoration meaning, more like by spectators. And, compared with the application of existing real-time online live broadcast, the signature of the main broadcaster user generated in real-time live broadcast process can be shone into row storage by the present invention, therefore after live end, spectators user can obtain the signature photograph of main broadcaster user in specified path, signature thus can be shone into row souvenir, it is set to desktop wallpaper etc., make the intimacy between spectators user and main broadcaster user that signature can be relied on according to being maintained further, make the popularity of main broadcaster user better, it is to increase interactive between spectators user and main broadcaster user.
Consulting Figure 10, Figure 10 is another structural representation implementing mode of the online live client terminal of the present invention. In present embodiment, the terminating unit of running client and be different terminating unit for inputting the mobile terminal of signature information. Wherein, the terminating unit of running client is PC, such as, be notebook computer or desktop computer, and PC has bigger screen, it is possible to facilitate main broadcaster user to watch live effect. It is there are the cell phone of touch function, panel computer etc., the random handwritten signature of the more convenient main broadcaster user of mobile terminal for receiving the mobile terminal of signature information of main broadcaster user's input.
Wherein, acquisition module 81 comprises the first acquiring unit 811, display unit 812 and the 2nd acquiring unit 813.
The startup instruction of the generation signature photograph that acquisition module 811 sends for obtaining main broadcaster user. When main broadcaster user need to generate signature according to time, it is possible to by the button of generation on-line signature photograph clicked in live picture to send the startup instruction generating signature photograph.
Display unit 812 is for showing two-dimension identification code according to startup instruction, so that mobile terminal is by identifying that two-dimension identification code enters signature information and writes interface. Wherein, after display two-dimension identification code, main broadcaster user, and then makes mobile terminal enter signature information to write interface so that mobile terminal identification two-dimension identification code by making mobile terminal be scanned by two-dimension identification code. Such as, main broadcaster user can open the browser on mobile terminal, then " sweep and sweep " button of click browser, then carries out scanning facing to two-dimension identification code by the camera of mobile terminal so that mobile terminal enters signature information by scanning two-dimension identification code writes interface.
For obtaining, main broadcaster user writes in interface the signature information inputted to 2nd acquiring unit 813 in signature information. Specifically, two-dimension identification code carries and enters the unified resource location symbol (UniformResourceLocator that signature information writes interface, URL), certain web address that mobile terminal jumps to described URL on mobile terminal answer by scanning two-dimension identification code, enters signature information and writes interface. 2nd acquiring unit 813 obtains, by URL, the signature information that main broadcaster user writes interface input in signature information to described web address.
Wherein, when main broadcaster user is after signature information is write and completed in interface to write, it is possible to write on interface set button really by clicking signature information client terminal obtains signature information by described web address to trigger; Or main broadcaster user can also carry out gesture and slides by writing in signature information and obtain signature information to trigger client terminal by described web address on interface, such as, can write on interface in signature information and upwards slide or slide to trigger client terminal to the left and obtain signature information.
Further, present embodiment also comprises generation module 85 and sending module 86. After 2nd acquiring unit 813 obtains signature information, the signature picture that generation module 85 has signature information for generating. The picture form of signature picture is PNG picture form, naturally it is also possible to be the picture forms such as JPG, GIF. Wherein, in signature picture, rest part except signature information is transparent, to avoid the signed picture of live picture to block too much.
Display module 82 is for being superimposed on live picture by signature picture so that signature information shows in live picture, and display module 82 is except for except signature information being shown in the live picture of main broadcaster user, also showing the personal information specifying spectators user in live picture.
Wherein, main broadcaster user can choose spectators user from spectators user's list on live picture side, and the spectators chosen are and specify spectators user. The personal information such as pet name of the spectators user chosen is displayed on live picture according to the selection of main broadcaster user by display module 82, and concrete display form can be such as " toXXX ", is give to " XXX " spectators user to represent that this signature shines. Main broadcaster user can adjust signature information and specify the position of the personal information of spectators user in live picture.
Synthesis module 83 is for the preservation instruction according to main broadcaster user, and signature information, the personal information specifying spectators user and live picture are synthesized a width picture, and to generate, signature shines.
Preserve module 84 and it is saved to specified path for being shone by signature.
Sending module 86 specifies spectators user for the message carrying specified path being sent to. Thus specify spectators user can open specified path signature shines into row to download, share.
Pass through present embodiment, it is possible to improve further the interactive of main broadcaster user and spectators user so that signature is according to having more individual character and interest.
The foregoing is only embodiments of the present invention; not thereby the patent scope of the present invention is limited; every utilize specification sheets of the present invention and accompanying drawing content to do equivalent structure or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all it is included in the scope of patent protection of the present invention with reason.