WO2016095602A1 - Method and apparatus for generating live comments overlaid on playing object - Google Patents

Method and apparatus for generating live comments overlaid on playing object Download PDF

Info

Publication number
WO2016095602A1
WO2016095602A1 PCT/CN2015/091926 CN2015091926W WO2016095602A1 WO 2016095602 A1 WO2016095602 A1 WO 2016095602A1 CN 2015091926 W CN2015091926 W CN 2015091926W WO 2016095602 A1 WO2016095602 A1 WO 2016095602A1
Authority
WO
WIPO (PCT)
Prior art keywords
barrage
user
text
barrage text
unit
Prior art date
Application number
PCT/CN2015/091926
Other languages
French (fr)
Chinese (zh)
Inventor
宋鳌
陈国庆
张健
杜曲生
胡侨鑫
褚静波
郏夹
李凡
娄同兵
Original Assignee
百度时代网络技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 百度时代网络技术(北京)有限公司 filed Critical 百度时代网络技术(北京)有限公司
Publication of WO2016095602A1 publication Critical patent/WO2016095602A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Definitions

  • the present invention relates to the field of image processing, and more particularly to a method and apparatus for generating a barrage superimposed on a playback object.
  • Barrage is a short comment sent by a person watching a picture or video in real time.
  • the short comment will be played with the picture or video in real time as the picture or video is played, so that the barrage text that the user publishes when viewing the picture or video will be Other users who also watch the picture or video will see it and see it themselves.
  • the prior art barrage playback often uses the same form of play for all published barrage information, such as scrolling from the right side of the screen to the left side.
  • One of the technical problems solved by the present invention is to improve the pertinence of the barrage playback to the user, so that the user can obtain useful information more quickly from the playback of a large number of barrage.
  • a method for generating a barrage superimposed on a play object comprising: receiving a barrage text published by a user other than the current user; and the friend information in the login account information according to the current user Determining whether the other user is a friend of the current user; playing the barrage text on the play object, wherein if the other user is not the current user's friend, playing the barrage text on the play object in the shape of the first play track; The other user is a friend of the current user, and the barrage text is played on the play object in a shape of the second play track different from the shape of the first play track.
  • a method for generating an overlay on a playback object comprises: a unit for receiving a barrage text published by a user other than the current user; determining, according to the friend information in the login account information of the current user, whether the other user is a unit of a friend of the current user;
  • the unit for playing the barrage text is configured to: if the other user is not a friend of the current user, play the barrage text on the play object in the shape of the first play track; if the other user is a friend of the current user, the difference is The shape of the second play track in the shape of the first play track plays the barrage text on the play object.
  • the barrage text when the barrage text that is not published by the user's friend is received, the barrage text is played on the play object in the shape of the first play track, and when the barrage text published by the user friend is received,
  • the second play track shape different from the shape of the first play track plays the barrage text on the play object, and the barrage text published by the user friend may be more important, so that the user can quickly get from a large amount of barrage information. Get information that is useful to the user.
  • FIG. 1 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention.
  • FIG. 2 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 3 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 4 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 5 is a diagram showing generation of superimposed on a playback object according to another embodiment of the present invention. Flow chart of the method of barrage.
  • FIG. 6 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 7 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 8 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention.
  • FIG. 9 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 10 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention.
  • FIG. 11 is a block diagram of an apparatus for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention.
  • Figure 12 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • Figure 13 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • Figure 14 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • Figure 15 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • Figure 16 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • Figure 17 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • Figure 18 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 19 is a block diagram of an apparatus for generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention.
  • FIG. 20 is a block diagram of an apparatus for generating a barrage superimposed on a playback object, in accordance with another embodiment of the present invention.
  • FIG. 1 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention.
  • the method of the present invention is primarily accomplished by an operating system or processing controller in a computer device.
  • the operating system or processing controller is referred to as a device that generates a barrage superimposed on a playback object, hereinafter referred to as a generating device.
  • the computer device includes but is not limited to a single network server, a server group composed of a plurality of network servers, or a cloud-based cloud composed of a large number of computers or network servers, wherein the cloud computing is a kind of distributed computing, which is loosely coupled by a group of Computer set consisting of a super virtual computer.
  • the playback object refers to the played pictures, videos, TV programs, and the like.
  • a barrage is a short comment sent by a user watching a playback object in real time, which plays in real time as the playback object plays.
  • the general process of barrage playback is when a user visits a web page with a picture or video.
  • the website of this website has established a partnership with the barrage website.
  • the website of the web page knows the terminal ID of the user, and sends the terminal ID along with the web page address, the picture or video name to the server of the barrage website. If the user is logged in to browse the webpage, the webpage of the webpage will also send the login account name of the user to the server of the barrage website.
  • the server of the barrage website will make the barrage text that is published when other users watch the picture or video into a web server that will be superimposed on the played picture or video and sent back to the webpage of the webpage.
  • the web server of the web page adds the overlay to the picture or video for viewing by the user. If the user wants to post a barrage text, for example, select the "Publishing Barrage" option that appears next to the picture or video. At this point, the web server of the web page sends the user's barrage text to the server of the barrage website, and the server of the barrage website creates a layer with a barrage superimposed on the picture or video.
  • the server of the barrage website creates a layer with a barrage superimposed on the picture or video and sends the layer back to the web server of the web page, which is added to the picture or video by the web server of the web page for viewing by the user.
  • the method of generating a barrage superimposed on a play object is a method in which a barrage web server creates a layer with a barrage to superimpose the object on the play object.
  • a barrage text published by a user other than the current user is received.
  • the current user refers to a user who currently browses a server with a playback object (such as a web server with video) and sends its terminal ID to the server of the barrage website by the server with the playback object.
  • a playback object such as a web server with video
  • the current user does not publish the barrage text, so the server of the barrage website only receives its terminal ID, the server address and the name of the playback object through the server with the playback object.
  • the server of the barrage website receives its terminal ID and the published barrage text.
  • step 120 according to the friend information in the login account information of the current user, it is determined whether the other user is a friend of the current user.
  • the current user needs to log in to browse a server with a playback object (such as a web server with video) instead of an anonymous login, and a server with a playback object on the login (such as a web server with video)
  • a server with a playback object on the login such as a web server with video
  • the displayed page has similar friend information on the Weibo website, such as "Follow”, "Fans” and so on.
  • the current user can find other users through this page, and “follow” other users, and other users can also “follow” the current user through the page, thereby becoming a fan of the current user.
  • the server with the playback object will put the terminal ID, the user login account name, and the user login account name.
  • the friend information (for example, "attention", "fan") is sent to the barrage server along with the server address and the play object name.
  • the barrage server can determine whether the other user is a friend of the current user according to the friend information in the login account information of the current user.
  • the other user belongs to the user of the current user or the user who is concerned with the current user (ie, the fan of the current user), the other user is considered to be the friend of the current user.
  • the other user is considered to be the current user's friend only when the other user belongs to the current user's attention.
  • step 130 the barrage text is played on the play object, wherein if the other user is not the current user's friend, the barrage text is played on the play object in the shape of the first play track; if the other user is the current user The friend plays the barrage text on the play object in a shape of the second play track different from the shape of the first play track.
  • the play track shape refers to the shape of the track that the barrage text passes when it is played on the screen. For example, when the barrage text scrolls from right to left in the lower position on the screen or the playback object (it appears from the right end of the screen or the lower position of the playback object, scrolls to the left, disappears to the left of the screen or the playback object)
  • the playback track shape is the line from the right to the left of the screen or the lower part of the playback object.
  • an elongated background area is provided at a lower position of the screen or the playback object, and the first play track shape may be a line from right to left in the background area.
  • the background area can accommodate several such lines from top to bottom.
  • the shape of the second play track may be that the barrage text appears from the screen or the center of the play object to scatter to the surrounding diffused shape and disappears on the screen or the edge of the play object.
  • the shape of the second play track may also be that the barrage text appears from the top of the screen or the play object, and falls to the screen or the center of the play object disappears.
  • a background area such as a strip shape is set at a lower position of the screen or the playback object, and the shape of the second play track is that the barrage text appears from the center of the screen or the play object, falls in a parabolic shape, and is inserted into the barrage background. Scrolls from right to left with other barrage text in the barrage background.
  • first and second play track shapes are merely examples, and those skilled in the art can conceive the shapes of other play specifications, which fall within the protection scope of the present invention.
  • the effect achieved by the embodiment of FIG. 1 is that since the pop-up text of the current user's non-friend user and the current user's friend user follows the different play track shapes in the current user, the current user can see at a glance To the friend’s barrage, this These barrages may be more of a concern for current users.
  • FIG. 2 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention.
  • step 121 to determine whether the barrage texts published by the other users are related to Internet emergent topics or popular events.
  • the Internet's sudden topic refers to topics that have been hotly debated on the Internet recently, such as the price increase of the subway or the purchase restriction of the house.
  • Hot events refer to recent events on the Internet that are of concern to everyone, such as the Xiamen bombings. If the barred texts published by the other users are related to the reasons and latest developments of the Xiamen bombings, the barred texts published by the other users are considered to be related to Internet emergent topics or popular events.
  • the barred texts published by the other users are searched on the Internet. If some recent news or a large number of recent comments by netizens are searched, the barred texts published by the other users are considered to be in the Internet.
  • Related topics or hot events For example, if there are more than 5 comments in the week of the searched news or more than 20 comments in the searched week, the barred texts published by the other users are considered to be related to Internet emergent topics or popular events.
  • the headlines of news appearing on various Internet sites are periodically crawled and maintained in a database on the barrage web server. Comparing the barrage texts published by the other users with the titles in the database, and if the similarity is greater than the predetermined similarity threshold by more than a predetermined number, the other user's published barrage text and the Internet sudden topic or Popular events related.
  • the similarity is defined, for example, as the ratio of the number of words commonly contained in the title of the barrage text published by the other user to the title in the database to the number of words of the barrage text published by the other user.
  • the similarity of the title text published by the other user is greater than 80% in the six titles in the database, the similarity threshold is specified as 75%, and the predetermined number is specified as five, the other users are considered
  • the published barrage text is related to sudden or hot events on the Internet.
  • step 130 includes: if the barred text published by the other user is related to an internet burst topic or a popular event, playing the barrage text on the play object in a shape different from the third play track shape of the first play track shape.
  • the third play track shape may be the same shape as the second play track.
  • the barrage text appears from the screen or the center of the playback object, scatters to the surrounding diffused shape, and disappears on the screen or the edge of the playback object, or the barrage text appears from the top of the screen or the playback object, and drops to the screen or the center of the playback object. The location disappears.
  • the shape of the third play track may also be different from the shapes of the first and second play tracks.
  • the shape of the third play track is such that it appears from the edge of the screen or the playback object, and the center position of the playback object or the playback object disappears.
  • the barrage text published by the other user is not related to the Internet sudden topic or the popular event
  • the barrage text published by the other user is played according to the playing rule in step 130. That is, if the other user is not the friend of the current user, the barrage text is played on the play object in the shape of the first play track; if the other user is the friend of the current user, the second play track is different from the shape of the first play track.
  • the shape plays the barrage text on the playback object.
  • the effect of the embodiment of FIG. 2 is to enable the current user's attention to quickly lock the barrage text associated with the Internet sudden topic or hot event on the screen or the playback object, so that the current user can quickly obtain the most useful information.
  • FIG. 3 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention. Compared with FIG. 1, FIG. 3 adds steps 102 and 103.
  • step 102 a live screenshot of the play object is performed.
  • a real-time screenshot of the playback object is periodically performed, for example, every 0.5 s.
  • step 103 the primary color in the picture captured by the real-time screenshot is analyzed.
  • the color of each pixel in the picture is composed of three color elements of red (R), green (G), and blue (B), and the color value can be represented by three values of (R, G, B).
  • R represents the red color value of the pixel
  • G represents the green color value of the pixel
  • B represents the blue color value of the pixel.
  • the range of R, G, and B is a positive integer between 0 and 255. When R, G, and B are both 0, the color of the pixel is pure white. R, G, and B are both 255, and the color of the pixel is pure black.
  • the (R, G, B) values of all pixels in the picture are counted. Which (R, G, B) value appears most in all pixels, the value of (R, G, B) is considered to be the dominant color in the picture.
  • the step 130 includes playing the barrage text in the background area of the barrage superimposed on the playing object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color, and the color of the barrage text is set to be based on the main color.
  • the second color is set to be based on the main color.
  • the play barrage text is not played in a fixed area of the screen or the playback object. It is very likely that a barrage text published by another user has just flew over the screen or the top of the object, and then another barrage text published by another user flies over the screen or at the bottom of the object. In this way, it will affect the main picture of the current user watching the playback object. Therefore, the present invention sets a special area on the playback object as the background area of the barrage, unless it is a barrage published by a friend of the current user or a barrage text related to a sudden topic or a popular event on the Internet, and other barrage text. They are played in the background area of the barrage, which increases the comfort of the user.
  • the first color obtained based on the main color is, for example, a color obtained by increasing or decreasing n values on the basis of R, G, and B of the main color.
  • the main color is (145, 18, 78), in the main
  • the color R, G, and B are subtracted by 10 values to obtain the first color (135, 8, 68) as the color of the background area of the barrage.
  • n should not be too big or too small. Due to the visual characteristics of the human eye, when the superimposed background area of the barrage is substantially the same as the main color of the picture, the comfort of the human eye is the highest, so n should not be too large. In addition, if n is too small, the background area and the main color of the picture are indistinguishable. In practice, n is 10 is a more preferable way to ensure the comfort of the human eye and avoid confusion with the picture content.
  • the second color obtained based on the dominant color is, for example, the contrast color of the main color.
  • the contrast color is the relative color in the color wheel, ie (255, 255, 255) minus the main color. For example, if the primary color is (125, 115, 105), the contrast color is (130, 140, 150).
  • the color of the barrage text is set to be larger than the color of the background area of the barrage, so that the user can clearly see the barrage text more clearly.
  • the first color and the second color obtained based on the main color described above are merely examples.
  • the first color and the second color can also be obtained based on the main colors in other ways.
  • the second color based on the main color is not necessarily the contrast color of the main color, and may be a color near the contrast color or the like. These other methods are all within the scope of the present invention.
  • the effect of the embodiment of Fig. 3 is that it makes the playback of the barrage better adapted to the user's viewing habits, improving the friendliness of play and the comfort of the user.
  • FIG. 4 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention. Compared to Figure 1, Figure 4 adds steps 102, 104, 105, 106, 107.
  • Step 102 in FIG. 4 is the same as step 102 in FIG.
  • step 104 the elements in the picture captured by the live screenshot are identified.
  • An element refers to a complete object represented in the picture. For example, an apple, a school bag.
  • a color block is a block in which pixels of an approximate color in a picture are aggregated. It can compare whether the (R, G, B) value of the pixel and surrounding pixels is less than a threshold, for example (10, 10, 10), for example for any pixel in the picture. If less than the threshold, the surrounding pixels are aggregated with the pixel. Then, whether the (R, G, B) values of the surrounding pixels and surrounding pixels of the surrounding pixels are compared is less than a threshold.
  • a threshold for example (10, 10, 10
  • the graphics library stores various pre-set graphics and corresponding element names, such as Apple's image and Apple's name. In this way, by matching the graphics composed of the boundaries of the color patches in the picture with the graphics in the graphics library, the elements in the picture intercepted by the real-time screenshot are identified.
  • the graphics of the graphics library may be pre-stored by an expert, or may be adaptively obtained by training a model using a large number of image samples by a self-learning method.
  • the larger one is used as the identified element. For example, for a hat with a moon, both the moon and the hat with the moon can find a match in the graphics library, then the hat with the moon should be considered an element.
  • step 105 based on the identified elements, a picture with the identified elements and related comments are searched on the Internet.
  • step 106 a correspondence of the related comment to the identified element is determined.
  • step 107 elements that search for the most relevant related comments on the Internet are highlighted on the playback object.
  • the hat and the table with the moon are identified.
  • On the Internet there are 108 corresponding related comments on the hat with the moon.
  • the table has 16 corresponding related comments, which are highlighted on the playback object. Show the hat with the moon.
  • the manner in which the elements of the related comment that are most searched for on the Internet are highlighted on the playback object may be a frame superimposed on the element, or a layer of light may be superimposed on the element, or a person skilled in the art may think of Other highlighted parties They all fall within the scope of the present invention.
  • the effect of the embodiment of FIG. 4 is that it can combine the degree of discussion on the elements of the screenshot of the playback object on the Internet, find out the hottest elements and highlight them, thereby concentrating the user's limited energy on the entire picture. Elements that allow users to get more information when watching.
  • FIG. 5 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 5 adds steps 102, 104, 108, 109.
  • Steps 102, 104 in Figure 5 are the same as steps 102, 104 in Figure 4.
  • step 108 the emotional color of the picture is determined based on the identified elements.
  • the emotional color represented is cheerful.
  • the emotional color of the representative is sad.
  • an emotional color score database can be set up on the server of the barrage website to pre-store various possible identified elements and corresponding emotional color scores.
  • the emotional color represented by the elements is cheerful, and the emotional color score is positive. The more cheerful the emotional color, the more positive the emotional color score.
  • the emotional color represented by the element is sad, and the emotional color score is negative. The more sad the emotional color, the more negative the emotional color score.
  • the corresponding emotional color score cannot be found in the emotional color score database. If there is only one element in the picture that has a corresponding emotional color score in the emotional color score database, the emotional color score is used as the emotional color score of the entire picture. If there are multiple elements in the picture that have corresponding emotional color scores in the emotional color score database, the average of the emotional color scores corresponding to the multiple elements is taken as the emotional color score of the picture.
  • step 109 based on the determined emotional color of the picture, the playback speed of the barrage text is determined.
  • a correspondence table of the emotional color score of the picture and the playback speed of the barrage text is stored. In this way, it can be judged by means of table lookup The emotional color of the picture is determined, and the playing speed of the barrage text is determined.
  • step 130 includes: determining the playing speed and playing the barrage text.
  • the effect of the embodiment of Fig. 5 is to play the barrage text at a playback speed corresponding to the emotional color of the picture.
  • the whole picture is more cheerful, the faster the barrage text is played.
  • the whole picture is sad, the playback speed of the barrage text is slower. This is very consistent with the look and feel of the user when viewing the object, which can greatly improve the user's viewing comfort.
  • FIG. 6 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 6 adds steps 140,150.
  • step 140 in response to the first operation of the played barrage text, the playback of the barrage text is stopped, displaying a functional area containing at least one of the following functions: like, comment, forward.
  • the first operation for example, hovering over the played barrage text with the mouse.
  • the first operation such as the user's gesture hovering over the played barrage text.
  • the first operation such as the user's gesture, hovers over the barrage text played on the mobile phone bound to the television.
  • the first operation may be a barrage text that is clicked with a mouse, double-clicked, or right-clicked.
  • the meaning of stopping the play of the barrage text is that the other barrage text being played disappears on the screen or the playback object, and the barrage text for the first operation is still.
  • the current user can resume playing on the screen or the playback object after the current user completes the like, comment or forwarding, or can no longer play.
  • the function of stopping the playing of the barrage text is to make the user feel like a like, comment or forward operation, and improve the user's experience of like, comment or forward.
  • a function area including at least one of a favorite, a comment, and a forwarding function may be displayed next to the barrage text for which the first operation is directed, or may be displayed at a specified position of the screen or the playback object.
  • processing corresponding to the function is performed in response to a second operation on the function in the functional area.
  • the second operation is, for example, clicking with a mouse, double clicking, or right clicking on the position of the corresponding function in the function area.
  • the second operation such as the user touching the location of the corresponding function in the functional area.
  • a second operation such as the user touching the location of the corresponding function in the functional area on the handset bound to the television.
  • the second operation may also be other specified operations than those described above, and they all fall within the scope of the present invention.
  • the processing corresponding to the function is to praise the barrage text. That is, add 1 to the number of likes displayed next to the Like feature. If the user wants to see which users have liked the barrage text and triggered (such as click, double click, right click) to display the number of likes, the user name that is praised for the barrage text is displayed on the screen. And / or avatar.
  • the processing corresponding to the function is to display a comment input box on the screen. After receiving the comment entered by the user in the comment input box, add 1 to the number of comments next to the comment function. If the user wants to view the specific content of the comment or who has added a comment to the barrage text, triggering (eg, clicking, double clicking, right clicking) the number of comments displayed, then displaying the comment on the screen text on the screen User name and/or avatar, and user's comments.
  • the corresponding processing is to generate a new barrage text for the current user, the content of which is the barrage text for the second operation plus a forwarding tag.
  • the user name and/or avatar of the barrage text is displayed in front of the barrage text.
  • the user can also trigger (eg, click, double-click, right-click) the username and/or avatar, and then display to the user an interface that privately chats with the user of the username and/or avatar, through This interface can be private chat.
  • the effect of the embodiment of FIG. 6 is that the embodiment provides a pair of barrage text compared to the prior art barrage video which can only publish the barrage text itself or view the barrage text and cannot complete the barrage interaction.
  • the possibility of interaction increases the incentives for users.
  • FIG. 7 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared to Figure 6, Figure 7 adds step 151.
  • step 151 after the processing corresponding to the function is performed, the display style of the barrage text for which the first operation is directed is changed.
  • the display style of the barrage text for which the first operation is changed may be to increase the font of the barrage text for which the first operation is directed.
  • the font of the barrage text becomes larger and larger, making it easier for users to notice the barrage text.
  • the display style of the barrage text for which the first operation is changed may also be to increase the brightness of the barrage text for the first operation. In this way, when more and more people praise, comment or forward a certain barrage text, the barrage text becomes more and more bright, and it can also achieve the effect of attracting users to pay attention to the barrage text.
  • the effect of the embodiment of FIG. 7 is that when the number of people who like, comment, or forward a certain barrage text is increasing, the font of the barrage text is getting larger or larger, and thus the user can Pay more attention to the barrage text that other people are more concerned about. These barrage words are often more valuable, making it easier for users to get the most effective information in a short period of time.
  • FIG. 8 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 8 adds steps 102, 104, 160, 170, 180.
  • step 102 a real-time screenshot of the object is performed.
  • step 104 the elements in the picture captured by the live screenshot are identified.
  • Steps 102, 104 in Figure 8 are identical to steps 102, 104 in Figure 5.
  • step 160 the barrage text published by the current user is received.
  • a barred text publishing area is provided on the lower portion of the screen or the playback object (for example, below the background area of the barrage).
  • the user can post a barrage in the bulletin text publishing area. Text.
  • the bullet text publishing area can also be set on the screen or other location of the playback object, such as the upper part of the screen or the playback object.
  • step 170 an element in the picture related to the barrage text published by the current user is identified.
  • step 104 Use the existing word segmentation technology to segment the user's published barrage text. Since each element and element name in the picture has been identified in step 104, the divided words are respectively matched with the element names of the respective elements in the recognized picture. If it matches, the element corresponding to the element name is considered to be related to the barrage text published by the current user.
  • step 180 the barrage text published by the current user is played on the play object, wherein the barrage text published by the current user appears from the position of the element related to the barrage text published by the current user, and enters the play along a specific track.
  • the background area of the barrage superimposed on the object is played.
  • the specific trajectory is, for example, a serpentine shape, a star-shaped trajectory This particular trajectory can be implemented by the user.
  • the current user's barrage text is "This bear is so cute!”.
  • the bear is identified, and the barrage text "This bear is so cute! appears from the bear on the playback object, along a serpentine track into the bar-shaped background area of the bar at the bottom of the object. Medium, then play from right to left in the background area of the barrage.
  • the effect of the embodiment of FIG. 8 is that the barrage text published by the current user appears from the element to which the barrage text is directed, and enters the background area of the barrage superimposed on the object to be played along a specific track, so that the current user's bullet is played.
  • the corresponding relationship between the screen text and the elements it targets on the screen is clearly displayed, enhancing the user experience.
  • the shape of the play track of the current user's own published barrage text is distinguished from the track play shape of the barrage text published by other users, so that the current user can clearly distinguish which are the published barrage texts and which are other users. Published barrage text.
  • FIG. 9 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 9 adds steps 102, 104, 105, 106, 156, 158.
  • Steps 102, 104, 105, 106 in Figure 9 are identical to steps 102, 104, 105, 106 in Figure 4.
  • step 156 in response to the current user's third operation of the particular location of the playback object, the element to which the particular location belongs is determined.
  • the third operation may be a mouse click, a double click, or a right click play.
  • the specific location of the object is, for example, a mouse click, a double tap, or a right click on a specific position of the playback object
  • the third operation may be, for example, hovering over the played barr text with the mouse, and the user's gesture hovering over the play.
  • the barrage text is equal.
  • the third operation generally adopts a different method from the first operation, because if the same method is used, it is difficult to recognize whether the user wants to like, comment or forward the played barrage text, or want to see about the What are the relevant comments on the elemental internet.
  • step 104 Since the boundaries of the elements and elements have been identified in step 104, it can be determined which element the particular location for which the third operation is directed belongs. When the specific location falls within the boundary of the plurality of elements, the element having the largest area of the specific location within the boundary of the plurality of elements may be determined as the element to which the specific location belongs.
  • step 158 based on the determined element, the related user corresponding to the element searched on the Internet is displayed to the current user.
  • the prompt box may also prompt the user to enter a comment to be published, that is, a barrage text.
  • a comment to be published that is, a barrage text.
  • the publication of the barrage text can be performed either through the bullet-screen text publishing area of the screen or the playback object, or by the third operation of the specific position of the playback object, and the latter can be seen on the Internet for a certain
  • the elements have been published in the comments, and the published barrage text is more targeted.
  • the effect of the embodiment of Fig. 9 is to enable the user to publish the barrage text while looking at the comments on the Internet that have been published for an element, and to more specifically publish the barrage text to improve user friendliness.
  • FIG. 10 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 10 adds steps 1001, 1002.
  • Prior art barrage can only be published for pictures or videos.
  • the user visits a web page with a picture or video, and the web server of the web page sends the terminal ID (and possibly the login account name) along with the web page address, the picture or video name to the server of the barrage website for the barrage website.
  • the server that makes the layer with the barrage and sends it back to the webpage server superimposes the layer on the image or video for the user to watch.
  • the prior art barrage cannot be directed to a television program because the user lacks an operational interface to the television set and does not know the address of the television station server.
  • the present invention can be used to publish a barrage for a television program.
  • step 1001 a server address or a two-dimensional code of the television program is displayed in the television program, and the two-dimensional code includes a server address where the television program is located and a television program name.
  • the server address is displayed, for example, at the top of the television program, and the two-dimensional code is displayed, for example, in the lower right corner of the television program, but may be other locations.
  • step 1002 receiving a server address and a television program name of the television program transmitted by the user through the mobile device, or sending the scanned two-dimensional code, binding the identification number of the mobile device to the television program of the server address, thereby The barrage-related operations for the television program are performed by the mobile device.
  • the user can access the server address on their mobile device and enter the television program name they are watching. Since the mobile device accesses the server of the television station, the server of the television station knows the ID of the mobile device.
  • the television station's server will bind the mobile device's ID to the television program on the television station server.
  • the meaning of the binding is that the barrage-related operations for the television program are performed by the mobile device. For example, the first operation and the second operation used for the praise, comment, and forwarding of the barrage texts published by other users, and the third operation used when the barrage text is published for a specific element, the default is Performed by the mobile device.
  • the television station server reports the third operation of the specific location to the server of the barrage website.
  • the server of the television station The mobile device ID (and possibly the login account name), the TV station server address it visits, and the TV program name are also sent to the server of the barrage website.
  • the barrage web server will know which mobile device ID user (which user who logged in to the account name) has published a barrage, and the user's mobile device ID (or login account name) together Published.
  • the user can scan the two-dimensional code with his mobile device. Since the two-dimensional code includes the server address and the TV program name where the television program is located, the result of scanning the two-dimensional code is that the user automatically logs in to the server of the television station. In this way, the server of the television station will know the ID of the mobile device. The television station's server will bind the ID of the mobile device to the television program being played on the television station server.
  • the effect of the embodiment of Fig. 10 is to enable the mobile device to be bound to the television program of the television station server by transmitting the server address or the two-dimensional code of the television program, thereby realizing the television program with the barrage.
  • FIG 11 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention.
  • the device 2 includes: a unit 210 for receiving a barrage text published by a user other than the current user (hereinafter referred to as a “first receiving unit”); and determining, according to the friend information in the login account information of the current user, whether the other user is the current user.
  • a unit 220 of a friend (hereinafter referred to as “first judgment unit”); a unit 230 (hereinafter referred to as “first play unit”) that plays the barred text on the play object is configured to: if the other user is not the current user a friend playing the barrage text on the play object in the shape of the first play track; if the other user is a friend of the current user, playing the barrage text on the play object in a shape different from the shape of the second play track of the first play track shape .
  • the first receiving unit 210 receives the barrage texts published by other users than the current user.
  • the current user refers to a user who currently browses a server with a playback object (such as a web server with video) and sends its terminal ID to the server of the barrage website by the server with the playback object.
  • a playback object such as a web server with video
  • the current user does not publish the barrage text, so the server of the barrage website only receives its terminal ID through the server with the playback object, And the server address and play object name that it browses.
  • the server of the barrage website receives its terminal ID and the published barrage text.
  • the first determining unit 220 determines, according to the friend information in the login account information of the current user, whether the other user is a friend of the current user.
  • the current user needs to log in to browse a server with a playback object (such as a web server with video) instead of an anonymous login, and a server with a playback object on the login (such as a web server with video)
  • a server with a playback object on the login such as a web server with video
  • the displayed page has similar friend information on the Weibo website, such as "Follow”, "Fans” and so on.
  • the current user can find other users through this page, and “follow” other users, and other users can also “follow” the current user through the page, thereby becoming a fan of the current user.
  • the server with the playback object will put the terminal ID, the user login account name, and the user login account name.
  • the friend information (for example, "attention", "fan") is sent to the barrage server along with the server address and the play object name.
  • the barrage server can determine whether the other user is a friend of the current user according to the friend information in the login account information of the current user.
  • the other user belongs to the user of the current user or the user who is concerned with the current user (ie, the fan of the current user), the other user is considered to be the friend of the current user.
  • the other user is considered to be the current user's friend only when the other user belongs to the current user's attention.
  • the first playing unit 230 plays the barrage text on the playing object, wherein if the other user is not the current user's friend, the first playing track shape is broadcasted on the playing object.
  • the screen text is played; if the other user is a friend of the current user, the barrage text is played on the play object in a shape of the second play track different from the shape of the first play track.
  • the play track shape refers to the shape of the track that the barrage text passes when it is played on the screen. For example, when the barrage text scrolls from right to left in the lower position on the screen or the playback object (it appears from the right end of the screen or the lower position of the playback object, scrolls to the left, disappears to the left of the screen or the playback object)
  • the playback track shape is the line from the right to the left of the screen or the lower part of the playback object.
  • an elongated background area is provided at a lower position of the screen or the playback object, and the first play track shape may be a line from right to left in the background area.
  • the background area can accommodate several such lines from top to bottom.
  • the shape of the second play track may be that the barrage text appears from the screen or the center of the play object to scatter to the surrounding diffused shape and disappears on the screen or the edge of the play object.
  • the shape of the second play track may also be that the barrage text appears from the top of the screen or the play object, and falls to the screen or the center of the play object disappears.
  • a background area such as a strip shape is set at a lower position of the screen or the playback object, and the shape of the second play track is that the barrage text appears from the center of the screen or the play object, falls in a parabolic shape, and is inserted into the barrage background. Scrolls from right to left with other barrage text in the barrage background.
  • first and second play track shapes are merely examples, and those skilled in the art can conceive the shapes of other play specifications, which fall within the protection scope of the present invention.
  • the effect achieved by the embodiment of FIG. 11 is that since the pop-up text published by the non-friend user of the current user and the friend user of the current user follows the shape of different play tracks in the current user, the current user can see at a glance To the barrage published by friends, these barrages may be more of a concern for current users.
  • Figure 12 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention.
  • FIG. 12 further adds a unit 221 (hereinafter referred to as "second judging unit") for judging whether the barrage text published by the other user is related to an Internet burst topic or a hot event.
  • second judging unit a unit 221 for judging whether the barrage text published by the other user is related to an Internet burst topic or a hot event.
  • Internet emergent topics refer to topics that have been hotly debated on the Internet recently, such as subway price increases. Or the house is restricted to release.
  • Hot events refer to recent events on the Internet that are of concern to everyone, such as the Xiamen bombings. If the barred texts published by the other users are related to the reasons and latest developments of the Xiamen bombings, the barred texts published by the other users are considered to be related to Internet emergent topics or popular events.
  • the barred texts published by the other users are searched on the Internet. If some recent news or a large number of recent comments by netizens are searched, the barred texts published by the other users are considered to be in the Internet.
  • Related topics or hot events For example, if there are more than 5 comments in the week of the searched news or more than 20 comments in the searched week, the barred texts published by the other users are considered to be related to Internet emergent topics or popular events.
  • the headlines of news appearing on various Internet sites are periodically crawled and maintained in a database on the barrage web server. Comparing the barrage texts published by the other users with the titles in the database, and if the similarity is greater than the predetermined similarity threshold by more than a predetermined number, the other user's published barrage text and the Internet sudden topic or Popular events related.
  • the similarity is defined, for example, as the ratio of the number of words commonly contained in the title of the barrage text published by the other user to the title in the database to the number of words of the barrage text published by the other user.
  • the similarity of the title text published by the other user is greater than 80% in the six titles in the database, the similarity threshold is specified as 75%, and the predetermined number is specified as five, the other users are considered
  • the published barrage text is related to sudden or hot events on the Internet.
  • the first playing unit 230 is configured to play on the playing object with the third playing track shape different from the shape of the first playing track if the barrage text published by the other user is related to the Internet sudden topic or the popular event. Barrage text.
  • the third play track shape may be the same shape as the second play track.
  • barrage text Appears from the center of the screen or the playback object, scatters to the surrounding diffused shape, and disappears on the screen or the edge of the playback object, or the barrage text appears from the top of the screen or the playback object, and drops to the screen or the center of the playback object disappears.
  • the shape of the third play track may also be different from the shapes of the first and second play tracks.
  • the shape of the third play track is such that it appears from the edge of the screen or the playback object, and the center position of the playback object or the playback object disappears.
  • the barrage text published by the other user is not related to the Internet sudden topic or the popular event, if the other user is not the current user's friend, the barrage text is played on the playing object in the shape of the first playing track, if the other The user is a friend of the current user, and the barrage text is played on the play object in a shape of the second play track different from the shape of the first play track.
  • the effect of the embodiment of FIG. 12 is to enable the current user's attention to quickly lock the barrage text associated with the Internet sudden topic or the hot event on the screen or the playback object, so that the current user can quickly obtain the most useful information.
  • FIG. 13 is a flow diagram of an apparatus 2 for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention.
  • FIG. 13 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshot of the object, and a unit 203 that analyzes the main color in the picture captured by the real-time screenshot (hereinafter referred to as “analysis unit”). ).
  • screening unit that performs real-time screenshot of the object
  • analysis unit that analyzes the main color in the picture captured by the real-time screenshot
  • the screenshot unit 202 performs a real-time screenshot of the playback object.
  • a real-time screenshot of the playback object is periodically performed, for example, every 0.5 s.
  • the analyzing unit 203 analyzes the main colors in the pictures cut in the real-time screenshot.
  • the color of each pixel in the picture is composed of three color elements of red (R), green (G), and blue (B), and the color value can be represented by three values of (R, G, B).
  • R represents the red color value of the pixel
  • G represents the green color value of the pixel
  • B represents the blue color value of the pixel.
  • the range of R, G, and B is a positive integer between 0 and 255.
  • R, G, B are all 0, then The color of the pixel is pure white.
  • R, G, and B are both 255, and the color of the pixel is pure black.
  • the (R, G, B) values of all pixels in the picture are counted. Which (R, G, B) value appears most in all pixels, the value of (R, G, B) is considered to be the dominant color in the picture.
  • the first playing unit 230 is configured to play the barrage text in the background area of the barrage superimposed on the playing object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color, and the color setting of the barrage text The second color is based on the dominant color.
  • the play barrage text is not played in a fixed area of the screen or the playback object. It is very likely that a barrage text published by another user has just flew over the screen or the top of the object, and then another barrage text published by another user flies over the screen or at the bottom of the object. In this way, it will affect the main picture of the current user watching the playback object. Therefore, the present invention sets a special area on the playback object as the background area of the barrage, unless it is a barrage published by a friend of the current user or a barrage text related to a sudden topic or a popular event on the Internet, and other barrage text. They are played in the background area of the barrage, which increases the comfort of the user.
  • the first color obtained based on the main color is, for example, a color obtained by increasing or decreasing n values on the basis of R, G, and B of the main color.
  • the main color is (145, 18, 78), and 10 values are subtracted from the R, G, and B of the main color to obtain the first color (135, 8, 68) as the background area of the barrage. colour.
  • n should not be too big or too small. Due to the visual characteristics of the human eye, when the superimposed background area of the barrage is substantially the same as the main color of the picture, the comfort of the human eye is the highest, so n should not be too large. In addition, if n is too small, the background area and the main color of the picture are indistinguishable. In practice, n is 10 is preferred. The way to ensure the comfort of the human eye is to avoid confusion with the content of the picture.
  • the second color obtained based on the dominant color is, for example, the contrast color of the main color.
  • the contrast color is the relative color in the color wheel, ie (255, 255, 255) minus the main color. For example, if the primary color is (125, 115, 105), the contrast color is (130, 140, 150).
  • the color of the barrage text is set to be larger than the color of the background area of the barrage, so that the user can clearly see the barrage text more clearly.
  • the first color and the second color obtained based on the main color described above are merely examples.
  • the first color and the second color can also be obtained based on the main colors in other ways.
  • the second color based on the main color is not necessarily the contrast color of the main color, and may be a color near the contrast color or the like. These other methods are all within the scope of the present invention.
  • the effect of the embodiment of Fig. 13 is that it makes the playback of the barrage better adapted to the viewing habits of the user, improving the friendliness of play and the comfort of the user.
  • FIG. 14 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention.
  • FIG. 14 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshots on the object, and a unit 204 that identifies elements in the picture captured by the real-time screenshot (hereinafter referred to as “the first identification unit”.
  • a unit 205 (hereinafter referred to as "search unit”) that searches for pictures and related comments having the identified elements on the Internet based on the identified elements, and determines correspondence between the related comments and the identified elements.
  • the unit 206 (hereinafter referred to as "third judgment unit”) highlights a unit 207 (hereinafter referred to as "highlighting unit”) that searches for an element of the most relevant related comment on the Internet on the playback object.
  • the screenshot unit 202 in FIG. 14 is the same as the screenshot unit 202 in FIG.
  • the first identification unit 204 identifies the elements in the picture intercepted by the live screenshot.
  • An element refers to a complete object represented in the picture. For example, an apple, a school bag.
  • a color block is a block in which pixels of an approximate color in a picture are aggregated. It can compare whether the (R, G, B) value of the pixel and surrounding pixels is less than a threshold, for example (10, 10, 10), for example for any pixel in the picture. If less than the threshold, the surrounding pixels are aggregated with the pixel. Then compare the surrounding pixels with the surrounding pixels of the surrounding pixels (R, G, B) Whether the value is less than the threshold.
  • a threshold for example (10, 10, 10
  • the graphics library stores various pre-set graphics and corresponding element names, such as Apple's image and Apple's name. In this way, by matching the graphics composed of the boundaries of the color patches in the picture with the graphics in the graphics library, the elements in the picture intercepted by the real-time screenshot are identified.
  • the graphics of the graphics library may be pre-stored by an expert, or may be adaptively obtained by training a model using a large number of image samples by a self-learning method.
  • the larger one is used as the identified element. For example, for a hat with a moon, both the moon and the hat with the moon can find a match in the graphics library, then the hat with the moon should be considered an element.
  • the search unit 205 searches the Internet for pictures and related comments having the identified elements based on the identified elements.
  • the third determining unit 206 determines the correspondence between the related comment and the identified element.
  • the highlighting unit 207 highlights an element on the play object that searches for the most relevant related comment on the Internet.
  • the hat and the table with the moon are identified.
  • On the Internet there are 108 corresponding related comments on the hat with the moon.
  • the table has 16 corresponding related comments, which are highlighted on the playback object. Show the hat with the moon.
  • the elements may be arranged by superimposing a frame around the elements, or by superimposing a layer of light on the elements, or other highlighting methods that can be conceived by those skilled in the art, which fall within the scope of the present invention. within.
  • the effect of the embodiment of FIG. 14 is that it can combine the degree of discussion on the elements of the screenshot of the playback object on the Internet, find the hottest elements and highlight them, thereby concentrating the user's limited energy on the entire picture. Elements that allow users to get more information when watching.
  • FIG. 15 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 15 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshots on the object, and a unit 204 that identifies elements in the picture captured by the real-time screenshot (hereinafter referred to as “the first identification unit”.
  • a unit 208 (hereinafter referred to as a "fourth determining unit") that determines the emotional color of the picture based on the identified element, and a unit 209 that determines the playing speed of the barrage text based on the determined emotional color of the picture ( Hereinafter referred to as “first determining unit”).
  • the screenshot unit 202 and the first identification unit 204 in FIG. 15 are the same as the screenshot unit 202 and the first identification unit 204 in FIG.
  • the fourth determining unit 208 determines the emotional color of the picture based on the identified element.
  • the emotional color represented is cheerful.
  • the emotional color of the representative is sad.
  • an emotional color score database can be set up on the server of the barrage website to pre-store various possible identified elements and corresponding emotional color scores.
  • the emotional color represented by the elements is cheerful, and the emotional color score is positive. The more cheerful the emotional color, the more positive the emotional color score.
  • the emotional color represented by the element is sad, and the emotional color score is negative. The more sad the emotional color, the more negative the emotional color score.
  • the corresponding emotional color score cannot be found in the emotional color score database. If there is only one element in the picture that has a corresponding emotional color score in the emotional color score database, the emotional color score is used as the emotional color score of the entire picture. If there are multiple elements in the image that have corresponding emotional color scores in the emotional color score database, the average of the emotional color scores corresponding to the multiple elements is taken as the emotional relationship of the image. Color score.
  • the first determining unit 209 determines the playback speed of the barrage text based on the determined emotional color of the picture.
  • a correspondence table of the emotional color score of the picture and the playback speed of the barrage text is stored.
  • the playback speed of the barrage text can be determined based on the determined emotional color of the picture by means of a table lookup.
  • the first playing unit 230 is configured to: play the barrage text at the determined playing speed.
  • the effect of the embodiment of Fig. 15 is to play the barrage text at a playback speed corresponding to the emotional color of the picture.
  • the whole picture is more cheerful, the faster the barrage text is played.
  • the whole picture is sad, the playback speed of the barrage text is slower. This is very consistent with the look and feel of the user when viewing the object, which can greatly improve the user's viewing comfort.
  • FIG. 16 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 16 adds a unit 240 for stopping the playing of the barrage text in response to the first operation of the played barrage text, displaying a functional area containing at least one of the like, comment, and forwarding functions (
  • first display unit and a unit 250 (hereinafter referred to as "execution unit”) that performs processing corresponding to the function in response to the second operation of the function in the function area.
  • the first display unit 240 stops playing the barrage text in response to the first operation of the played barrage text, and displays a functional area including at least one of the following functions: like, comment, and forward.
  • the first operation for example, hovering over the played barrage text with the mouse.
  • the first operation such as the user's gesture hovering over the played barrage text.
  • the first operation such as the user's gesture hovering on the mobile phone bound to the television, is played.
  • the screen text On the screen text.
  • the first operation may be a barrage text that is clicked with a mouse, double-clicked, or right-clicked.
  • the meaning of stopping the play of the barrage text is that the other barrage text being played disappears on the screen or the playback object, and the barrage text for the first operation is still.
  • the current user can resume playing on the screen or the playback object after the current user completes the like, comment or forwarding, or can no longer play.
  • the function of stopping the playing of the barrage text is to make the user feel like a like, comment or forward operation, and improve the user's experience of like, comment or forward.
  • a function area including at least one of a favorite, a comment, and a forwarding function may be displayed next to the barrage text for which the first operation is directed, or may be displayed at a specified position of the screen or the playback object.
  • the execution unit 250 performs processing corresponding to the function in response to the second operation of the function in the function area.
  • the second operation is, for example, clicking with a mouse, double clicking, or right clicking on the position of the corresponding function in the function area.
  • the second operation such as the user touching the location of the corresponding function in the functional area.
  • a second operation such as the user touching the location of the corresponding function in the functional area on the handset bound to the television.
  • the second operation may also be other specified operations than those described above, and they all fall within the scope of the present invention.
  • the processing corresponding to the function is to praise the barrage text. That is, add 1 to the number of likes displayed next to the Like feature. If the user wants to see which users have liked the barrage text and triggered (such as click, double click, right click) to display the number of likes, the user name that is praised for the barrage text is displayed on the screen. And / or avatar.
  • the processing corresponding to the function is to display a comment input box on the screen. After receiving the comment entered by the user in the comment input box, add 1 to the number of comments next to the comment function. If the user wants to see the specific content of the comment or who Adding a comment to the barrage text, triggering (for example, clicking, double-clicking, right-clicking) the number of comments displayed, then displaying the user name and/or avatar for the title of the barrage text, and the user's comment on the screen. .
  • the corresponding processing is to generate a new barrage text for the current user, the content of which is the barrage text for the second operation plus a forwarding tag.
  • the user name and/or avatar of the barrage text is displayed in front of the barrage text.
  • the user can also trigger (eg, click, double click, right click) the username and/or avatar, and then display to the user an interface that is privately chatted with the user of the username and/or avatar through which the private chat can be made.
  • the effect of the embodiment of FIG. 16 is that the embodiment provides a pair of barrage text compared to the prior art barrage video which can only publish the barrage text itself or view the barrage text and cannot complete the barrage interaction.
  • the possibility of interaction increases the incentives for users.
  • FIG. 17 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared with FIG. 16, FIG. 17 adds a unit 251 (hereinafter referred to as "change unit") which changes the display style of the barrage text for the first operation after the processing corresponding to the function is executed.
  • change unit a unit 251 which changes the display style of the barrage text for the first operation after the processing corresponding to the function is executed.
  • the display style of the barrage text for which the first operation is changed may be to increase the font of the barrage text for which the first operation is directed.
  • the font of the barrage text becomes larger and larger, making it easier for users to notice the barrage text.
  • the display style of the barrage text for which the first operation is changed may also be to increase the brightness of the barrage text for the first operation. In this way, when more and more people praise, comment or forward a certain barrage text, the barrage text becomes more and more bright, and it can also achieve the effect of attracting users to pay attention to the barrage text.
  • FIG. 18 is a flow diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 18 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshots on the object, and a unit 204 that identifies elements in the picture captured by the real-time screenshot (hereinafter referred to as “the first identification unit”.
  • a unit 260 (hereinafter referred to as “second receiving unit”) that receives the barrage text published by the current user, and a unit 270 that identifies an element related to the barrage text published by the current user in the picture (hereinafter referred to as “the second”)
  • the identification unit ") the unit 280 (hereinafter referred to as "second playback unit") that plays the barred text of the current user on the playback object
  • the screenshot unit 202 and the first identification unit 204 in FIG. 18 are consistent with the screenshot unit 202 and the first identification unit 204 in FIG.
  • the second receiving unit 260 receives the barrage text published by the current user.
  • a barred text publishing area is provided on the lower portion of the screen or the playback object (for example, below the background area of the barrage). The user can post the barrage text in the bulletin text publishing area.
  • the bullet text publishing area can also be set on the screen or other location of the playback object, such as the upper part of the screen or the playback object.
  • the second identification unit 270 identifies an element in the picture that is related to the barrage text published by the current user.
  • step 104 Use the existing word segmentation technology to segment the user's published barrage text. Since each element and element name in the picture has been identified in step 104, the divided words are respectively matched with the element names of the respective elements in the recognized picture. If it matches, the element corresponding to the element name is considered to be related to the barrage text published by the current user.
  • the second playing unit 280 plays the barrage text published by the current user on the playing object, wherein the barrage text published by the current user appears from the position of the element related to the barrage text published by the current user, and enters the playing along the specific track.
  • the background area of the barrage superimposed on the object is played.
  • the specific trajectory is, for example, a serpentine shape, a star-shaped trajectory This particular trajectory can be implemented by the user.
  • the current user's barrage text is "This bear is so cute!”.
  • the bear is identified, and the barrage text "This bear is so cute! appears from the bear on the playback object, along a serpentine track into the bar-shaped background area of the bar at the bottom of the object. Medium, then play from right to left in the background area of the barrage.
  • the effect of the embodiment of FIG. 18 is that the current user-published barrage text appears from the element to which the barrage text is directed, and enters the background area of the barrage superimposed on the object to be played along a specific track, so that the current user's bullet is played.
  • the corresponding relationship between the screen text and the elements it targets on the screen is clearly displayed, enhancing the user experience.
  • the shape of the play track of the current user's own published barrage text is distinguished from the track play shape of the barrage text published by other users, so that the current user can clearly distinguish which are the published barrage texts and which are other users. Published barrage text.
  • FIG. 19 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 19 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshots on the object, and a unit 204 that identifies elements in the picture captured by the real-time screenshot (hereinafter referred to as “the first identification unit”.
  • a unit 205 hereinafter referred to as "search unit” that searches for pictures and related comments having the identified elements on the Internet, and determines the correspondence between the related comments and the identified elements.
  • the unit 206 in response to the current user's third operation on the specific position of the playing object, finds the unit 256 of the element to which the specific position belongs (hereinafter referred to as “the second determining unit”) And displaying, by the found element, the unit 258 (hereinafter referred to as “second display unit”) of the related comment corresponding to the element searched on the Internet to the current user.
  • the screenshot unit 202, the first identification unit 204, the search unit 205, and the third determination unit 206 in FIG. 19 are consistent with the screenshot unit 202, the first identification unit 204, the search unit 205, and the third determination unit 206 in FIG. .
  • the second determining unit 256 determines an element to which the specific location belongs in response to the current user's third operation on the specific location of the playback object.
  • the third operation may be a mouse click, a double click, or a right click play.
  • the specific location of the object is, for example, a mouse click, a double tap, or a right click on a specific position of the playback object
  • the third operation may be, for example, hovering over the played barr text with the mouse, and the user's gesture hovering over the play.
  • the barrage text is equal.
  • the third operation generally adopts a different method from the first operation, because if the same method is used, it is difficult to recognize whether the user wants to like, comment or forward the played barrage text, or want to see about the What are the relevant comments on the elemental internet.
  • the boundaries of the elements and elements have been identified, it is possible to determine which element the particular location for which the third operation is directed belongs.
  • the specific location falls within the boundary of the plurality of elements
  • the element having the largest area of the specific location within the boundary of the plurality of elements may be determined as the element to which the specific location belongs.
  • the second display unit 258 displays the related comment corresponding to the element searched on the Internet to the current user according to the determined element.
  • the prompt box may also prompt the user to enter a comment to be published, that is, a barrage text.
  • a comment to be published that is, a barrage text.
  • the publication of the barrage text can be performed either through the bullet-screen text publishing area of the screen or the playback object, or by the third operation of the specific position of the playback object, and the latter can be seen on the Internet for a certain
  • the elements have been published in the comments, and the published barrage text is more targeted.
  • the effect of the embodiment of Fig. 19 is to enable the user to publish the barrage text while looking at the comments on the Internet that have been published for an element, and to more specifically publish the barrage text to improve user friendliness.
  • FIG. 20 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
  • FIG. 20 adds a unit 2001 (hereinafter referred to as "third display unit”) for displaying a server address or a two-dimensional code of a television program in a television program, and a server address of a television program transmitted by a user through a mobile device.
  • a unit 2002 hereinafter referred to as "third receiving unit” that views the program name or the scanned two-dimensional code.
  • Prior art barrage can only be published for pictures or videos.
  • the user visits a web page with a picture or video, and the web server of the web page sends the terminal ID (and possibly the login account name) along with the web page address, the picture or video name to the server of the barrage website for the barrage website.
  • the server that makes the layer with the barrage and sends it back to the webpage server superimposes the layer on the image or video for the user to watch.
  • the prior art barrage cannot be directed to a television program because the user lacks an operational interface to the television set and does not know the address of the television station server.
  • the present invention can be used to publish a barrage for a television program.
  • the third display unit 2001 displays the server address or the two-dimensional code of the television program in the television program, and the two-dimensional code includes the server address where the television program is located and the television program name.
  • the server address is displayed, for example, at the top of the television program, and the two-dimensional code is displayed, for example, in the lower right corner of the television program, but may be other locations.
  • the third receiving unit 2002 receives the server address and the TV program name of the television program transmitted by the user through the mobile device, or the scanned two-dimensional code, and binds the identification number of the mobile device to the television program of the server address, thereby The barrage-related operations for the television program are performed by the mobile device.
  • the user can access the server address on their mobile device and enter the television program name they are watching. Since the mobile device accesses the server of the television station, the server of the television station knows the ID of the mobile device.
  • the television station's server will bind the mobile device's ID to the television program on the television station server.
  • the meaning of the binding is that the barrage-related operations for the television program are performed by the mobile device. For example, the first operation and the second operation used for the praise, comment, and forwarding of the barrage texts published by other users, and the third operation used when the barrage text is published for a specific element, the default is Performed by the mobile device.
  • the television station server reports the third operation of the specific location to the server of the barrage website.
  • the server of the television station The mobile device ID (and possibly the login account name), the TV station server address it visits, and the TV program name are also sent to the server of the barrage website.
  • the barrage web server will know which mobile device ID user (which user who logged in to the account name) has published a barrage, and the user's mobile device ID (or login account name) together Published.
  • the user can scan the two-dimensional code with his mobile device. Since the two-dimensional code includes the server address and the TV program name where the television program is located, the result of scanning the two-dimensional code is that the user automatically logs in to the server of the television station. In this way, the server of the television station will know the ID of the mobile device. The television station's server will bind the ID of the mobile device to the television program being played on the television station server.
  • the effect of the embodiment of Fig. 20 is to enable the mobile device to be bound to the television program of the television station server by transmitting the server address or the two-dimensional code of the television program, thereby realizing the television program with the barrage.
  • the present invention can be implemented as a device, apparatus, method, or computer program product. Therefore, the present disclosure may be embodied in the following forms, that is, it may be complete hardware, full software, or a combination of hardware and software.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions.
  • the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • a method (1) for generating a barrage superimposed on a playback object comprising:
  • Playing the barrage text (130) on the play object wherein if the other user is not the current user's friend, playing the barrage text on the play object in the shape of the first play track; if the other user is the current user's friend, The barrage text is played on the playback object in a second play track shape different from the shape of the first play track.
  • the step of playing the barrage text (130) on the play object includes: if the barrage text published by the other user is related to an Internet burst topic or a popular event, the shape of the third play track different from the shape of the first play track is Play the barrage text on the playback object.
  • the step of playing the barrage text (130) on the playing object includes playing the barrage text in the background area of the barrage superimposed on the playing object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color, the barrage The color of the text is set to the second color based on the main color.
  • An element (107) that searches for the most relevant related comment on the Internet is highlighted on the play object.
  • the step of playing the barrage text (130) on the playback object includes: determining the playback speed and playing the barrage text.
  • the playback of the barrage text is stopped, displaying a functional area containing at least one of the following functions: like, comment, forward (140).
  • processing corresponding to the function is performed (150).
  • the relevant user is searched for the relevant comment (158) corresponding to the element searched on the Internet.
  • a device (2) for generating a barrage superimposed on a playback object comprising:
  • the unit (230) for playing the barr text on the play object is configured to: if the other user is not the current user's friend, play the barrage text on the play object in the shape of the first play track; if the other user is The current user's friend plays the barrage text on the play object in a shape of the second play track different from the shape of the first play track.
  • the unit (230) for playing the barrage text on the play object is configured to: if the barrage text published by the other user is related to an Internet burst topic or a popular event, a third play track different from the shape of the first play track The shape plays the barrage text on the playback object.
  • a unit (203) of the dominant color in the picture captured in the real-time screenshot is analyzed, and
  • the unit (230) for playing the barrage text on the playback object is configured to: play the barrage text in the background area of the barrage superimposed on the playback object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color The color of the barrage text is set to a second color based on the main color.
  • a unit (207) that searches for elements of the most relevant related comment on the Internet is highlighted on the play object.
  • the unit (230) for playing the barrage text on the playback object is configured to: determine the playback speed, and play the barrage text.
  • the playback of the barrage text is stopped, displaying a unit (240) of the functional area containing at least one of the following functions: like, comment, forward.
  • a unit (250) that performs processing corresponding to the function is performed.
  • the unit (251) of the display style of the barrage text for the first operation is changed.
  • the background area of the barrage superimposed on the object is played.
  • the unit associated with the barrage operation is performed by the mobile device (2002).
  • a computer apparatus comprising means (2) for generating a barrage superimposed on a play object according to any one of clauses 11-20.
  • a computer readable storage medium comprising computer instructions, when the computer instructions are executed, the method of any one of clauses 1 to 10 being performed.
  • a computer device comprising a memory and a processor, the memory storing computer instructions, the processor being configured to perform any of the clauses 1 to 10 by executing the computer instructions Said method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a method and apparatus for generating live comments overlaid on a playing object. The method comprises: receiving live comment texts published by another user apart from a current user; according to friend information in login account information about the current user, judging whether the other user is a friend of the current user; and playing the live comment texts on a playing object, wherein if the other user is not a friend of the current user, the live comment texts are played on the playing object in a first playing track shape; and if the other user is a friend of the current user, the live comment texts are played on the playing object in a second playing track shape which is different from the first playing track shape. The present invention improves the pertinence of live comment playing for a user, such that the user can more quickly acquire useful information from the great number of live comments being played.

Description

产生叠加在播放对象上的弹幕的方法和装置Method and apparatus for generating a barrage superimposed on a playback object
相关申请的交叉引用Cross-reference to related applications
本申请请求于2014年12月19日提交的申请号为201410804346.7的中国专利申请的优先权,该中国专利申请的内容以引用方式被完整包含于此。The present application claims the priority of the Chinese Patent Application No. 201410804346.7 filed on Dec. 19, 2014, the content of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及图像处理领域,尤其涉及一种产生叠加在播放对象上的弹幕的方法和装置。The present invention relates to the field of image processing, and more particularly to a method and apparatus for generating a barrage superimposed on a playback object.
背景技术Background technique
弹幕是指观看图片或视频的人实时发送的简短评论,该简短评论会随着图片或视频的播放实时地随图片或视频播放,这样用户在观看图片或视频时发表的弹幕文字会被其它同样观看该图片或视频的用户看到,也会被自己看到。现有技术的弹幕播放对所有发布的弹幕信息往往采用同样的播放形式,例如从屏幕的右侧向左侧滚动。Barrage is a short comment sent by a person watching a picture or video in real time. The short comment will be played with the picture or video in real time as the picture or video is played, so that the barrage text that the user publishes when viewing the picture or video will be Other users who also watch the picture or video will see it and see it themselves. The prior art barrage playback often uses the same form of play for all published barrage information, such as scrolling from the right side of the screen to the left side.
发明内容Summary of the invention
本发明解决的技术问题之一是提高弹幕播放对用户的针对性,使用户能够从大量弹幕的播放中更迅速获取有用的信息。One of the technical problems solved by the present invention is to improve the pertinence of the barrage playback to the user, so that the user can obtain useful information more quickly from the playback of a large number of barrage.
根据本发明的一个实施例,提供了一种产生叠加在播放对象上的弹幕的方法,包括:接收当前用户以外的其它用户发表的弹幕文字;根据当前用户的登录账户信息中的好友信息,判断该其它用户是否是当前用户的好友;在播放对象上播放所述弹幕文字,其中如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。According to an embodiment of the present invention, a method for generating a barrage superimposed on a play object is provided, comprising: receiving a barrage text published by a user other than the current user; and the friend information in the login account information according to the current user Determining whether the other user is a friend of the current user; playing the barrage text on the play object, wherein if the other user is not the current user's friend, playing the barrage text on the play object in the shape of the first play track; The other user is a friend of the current user, and the barrage text is played on the play object in a shape of the second play track different from the shape of the first play track.
根据本发明的一个实施例,提供了一种产生叠加在播放对象上的 弹幕的装置,包括:接收当前用户以外的其它用户发表的弹幕文字的单元;根据当前用户的登录账户信息中的好友信息判断该其它用户是否是当前用户的好友的单元;在播放对象上播放所述弹幕文字的单元,被配置成:如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。According to an embodiment of the present invention, there is provided a method for generating an overlay on a playback object The device of the barrage comprises: a unit for receiving a barrage text published by a user other than the current user; determining, according to the friend information in the login account information of the current user, whether the other user is a unit of a friend of the current user; The unit for playing the barrage text is configured to: if the other user is not a friend of the current user, play the barrage text on the play object in the shape of the first play track; if the other user is a friend of the current user, the difference is The shape of the second play track in the shape of the first play track plays the barrage text on the play object.
由于本发明实施例中,当接收到不是用户好友发表的弹幕文字时,就以第一播放轨迹形状在播放对象上播放弹幕文字,当接收到用户好友发表的弹幕文字时,就以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字,而用户好友发表的弹幕文字可能是更为重要的,这样,就能够帮助用户从大量弹幕信息中快速获取到对用户有用的信息。In the embodiment of the present invention, when the barrage text that is not published by the user's friend is received, the barrage text is played on the play object in the shape of the first play track, and when the barrage text published by the user friend is received, The second play track shape different from the shape of the first play track plays the barrage text on the play object, and the barrage text published by the user friend may be more important, so that the user can quickly get from a large amount of barrage information. Get information that is useful to the user.
本领域普通技术人员将了解,虽然下面的详细说明将参考图示实施例、附图进行,但本发明并不仅限于这些实施例。而是,本发明的范围是广泛的,且意在仅通过后附的权利要求限定本发明的范围。Those skilled in the art will appreciate that although the following detailed description is made with reference to the illustrated embodiments and drawings, the invention is not limited to these embodiments. Rather, the scope of the invention is intended to be limited the scope of the invention
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present invention will become more apparent from the Detailed Description of Description
图1是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。1 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention.
图2是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。2 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图3是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。3 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图4是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。4 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图5是根据本发明另一个实施例的一种产生叠加在播放对象上的 弹幕的方法的流程图。FIG. 5 is a diagram showing generation of superimposed on a playback object according to another embodiment of the present invention. Flow chart of the method of barrage.
图6是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。6 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图7是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。7 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图8是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。8 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention.
图9是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。9 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图10是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。10 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention.
图11是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。11 is a block diagram of an apparatus for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention.
图12是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。Figure 12 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图13是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。Figure 13 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图14是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。Figure 14 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图15是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。Figure 15 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图16是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。Figure 16 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图17是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。Figure 17 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图18是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。Figure 18 is a block diagram of an apparatus for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention.
图19是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。 19 is a block diagram of an apparatus for generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention.
图20是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置的框图。20 is a block diagram of an apparatus for generating a barrage superimposed on a playback object, in accordance with another embodiment of the present invention.
附图中相同或相似的附图标记代表相同或相似的部件。The same or similar reference numerals in the drawings denote the same or similar components.
具体实施方式detailed description
下面结合附图对本发明作进一步详细描述。The invention is further described in detail below with reference to the accompanying drawings.
图1是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。本发明中的方法主要通过计算机设备中的操作系统或处理控制器来完成。将操作系统或处理控制器称为产生叠加在播放对象上的弹幕的装置,下简称产生装置。该计算机设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算的由大量计算机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。1 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention. The method of the present invention is primarily accomplished by an operating system or processing controller in a computer device. The operating system or processing controller is referred to as a device that generates a barrage superimposed on a playback object, hereinafter referred to as a generating device. The computer device includes but is not limited to a single network server, a server group composed of a plurality of network servers, or a cloud-based cloud composed of a large number of computers or network servers, wherein the cloud computing is a kind of distributed computing, which is loosely coupled by a group of Computer set consisting of a super virtual computer.
播放对象是指播放的图片、视频、电视节目等。弹幕是指观看播放对象的用户实时发送的简短评论,它会随播放对象的播放而实时播放。弹幕播放的一般过程是:用户访问带有图片或视频的网页。该网页的网站与弹幕网站已建立合作关系。这样,当用户浏览该网页时,该网页的网站就会知道该用户的终端ID,并将该终端ID和该网页地址、该图片或视频名称一起发到弹幕网站的服务器。如果用户是登录浏览该网页,该网页的网站还会把该用户的登录账户名发到弹幕网站的服务器。弹幕网站的服务器就会将其它用户观看该图片或视频时发表的弹幕文字做成将要叠加在播放的图片或视频上的一个层发回该网页的网站服务器。该网页的网站服务器将该层叠加到该图片或视频上给用户观看。如果用户想要发表弹幕文字,就例如选择在图片或视频旁边显示的“发表弹幕”选项。此时该网页的网站服务器就将用户的弹幕文字发送到弹幕网站的服务器,由弹幕网站的服务器制作叠加在图片或视频上的带有弹幕的层。弹幕网站的服务器制作叠加在图片或视频上的带有弹幕的层后将该层发回网页的网站服务器,由网页的网站服务器将该层叠加到该图片或视频上给用户观看。根据本发明实施 例的产生叠加在播放对象上的弹幕的方法就是弹幕网站服务器制作带有弹幕的层从而叠加上播放对象上的方法。The playback object refers to the played pictures, videos, TV programs, and the like. A barrage is a short comment sent by a user watching a playback object in real time, which plays in real time as the playback object plays. The general process of barrage playback is when a user visits a web page with a picture or video. The website of this website has established a partnership with the barrage website. Thus, when the user browses the web page, the website of the web page knows the terminal ID of the user, and sends the terminal ID along with the web page address, the picture or video name to the server of the barrage website. If the user is logged in to browse the webpage, the webpage of the webpage will also send the login account name of the user to the server of the barrage website. The server of the barrage website will make the barrage text that is published when other users watch the picture or video into a web server that will be superimposed on the played picture or video and sent back to the webpage of the webpage. The web server of the web page adds the overlay to the picture or video for viewing by the user. If the user wants to post a barrage text, for example, select the "Publishing Barrage" option that appears next to the picture or video. At this point, the web server of the web page sends the user's barrage text to the server of the barrage website, and the server of the barrage website creates a layer with a barrage superimposed on the picture or video. The server of the barrage website creates a layer with a barrage superimposed on the picture or video and sends the layer back to the web server of the web page, which is added to the picture or video by the web server of the web page for viewing by the user. Implemented in accordance with the present invention The method of generating a barrage superimposed on a play object is a method in which a barrage web server creates a layer with a barrage to superimpose the object on the play object.
在步骤110,接收当前用户以外的其它用户发表的弹幕文字。At step 110, a barrage text published by a user other than the current user is received.
当前用户是指当前浏览带有播放对象的服务器(如带有视频的网页服务器)、并由带有该播放对象的服务器把其终端ID发送给弹幕网站的服务器的用户。目前,当前用户并没有发表弹幕文字,因此弹幕网站的服务器只通过带有播放对象的服务器接收到其终端ID、以及其浏览的服务器地址和播放对象名。对于其它已经针对该服务器的该播放对象发表了弹幕文字的用户(即其它用户),弹幕网站的服务器接收到其终端ID和发表的弹幕文字。The current user refers to a user who currently browses a server with a playback object (such as a web server with video) and sends its terminal ID to the server of the barrage website by the server with the playback object. At present, the current user does not publish the barrage text, so the server of the barrage website only receives its terminal ID, the server address and the name of the playback object through the server with the playback object. For other users (ie, other users) who have published the barrage text for the playback object of the server, the server of the barrage website receives its terminal ID and the published barrage text.
在步骤120,根据当前用户的登录账户信息中的好友信息,判断该其它用户是否是当前用户的好友。In step 120, according to the friend information in the login account information of the current user, it is determined whether the other user is a friend of the current user.
在本实施例中,当前用户需要登录浏览带有播放对象的服务器(如带有视频的网页服务器)而不能是匿名登录,并且在登录上带有播放对象的服务器(如带有视频的网页服务器)后,显示的页面带有类似于微博网站上的好友信息,例如“关注”、“粉丝”等。当前用户可以通过该页面找到其它用户,并“关注”其它用户,其它用户也可以通过该页面“关注”当前用户,从而成为当前用户的粉丝。这样,当前用户需要登录浏览带有播放对象的服务器(如带有视频的网页服务器)后,带有播放对象的服务器会把该终端ID、该用户登录账户名、以及该用户登录账户名下的好友信息(例如“关注”、“粉丝”的情况)连同该服务器地址、该播放对象名一起发送到弹幕服务器。弹幕服务器就可以根据当前用户的登录账户信息中的好友信息,判断该其它用户是否是当前用户的好友。In this embodiment, the current user needs to log in to browse a server with a playback object (such as a web server with video) instead of an anonymous login, and a server with a playback object on the login (such as a web server with video) After that, the displayed page has similar friend information on the Weibo website, such as "Follow", "Fans" and so on. The current user can find other users through this page, and “follow” other users, and other users can also “follow” the current user through the page, thereby becoming a fan of the current user. In this way, after the current user needs to log in to browse the server with the playback object (such as a web server with video), the server with the playback object will put the terminal ID, the user login account name, and the user login account name. The friend information (for example, "attention", "fan") is sent to the barrage server along with the server address and the play object name. The barrage server can determine whether the other user is a friend of the current user according to the friend information in the login account information of the current user.
在一种情况下,只要该其它用户属于当前用户关注的用户、或关注当前用户的用户(即当前用户的粉丝),就认为该其它用户是当前用户的好友。In one case, as long as the other user belongs to the user of the current user or the user who is concerned with the current user (ie, the fan of the current user), the other user is considered to be the friend of the current user.
在另一种情况下,只有该其它用户属于当前用户关注的用户时,才认为该其它用户是当前用户的好友。 In another case, the other user is considered to be the current user's friend only when the other user belongs to the current user's attention.
应该理解,上述两种判断该其它用户是否是当前用户的好友的方式仅是举例,其它根据当前用户的登录账户信息中的好友信息判断该其它用户是否是当前用户的好友的方式(例如,将关注的用户分为“密友”、“一般关注”、“名人明星”等,只有属于“密友”的其它用户才认为是当前用户的好友)也落入本发明的保护范围之内。It should be understood that the above two ways of determining whether the other user is a friend of the current user are only examples, and other ways of determining whether the other user is a friend of the current user according to the friend information in the login account information of the current user (for example, The users concerned are classified into "close friends", "general attention", "celebrity stars", etc., and only other users belonging to "close friends" are considered to be friends of the current user) also fall within the protection scope of the present invention.
在步骤130中,在播放对象上播放所述弹幕文字,其中如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。In step 130, the barrage text is played on the play object, wherein if the other user is not the current user's friend, the barrage text is played on the play object in the shape of the first play track; if the other user is the current user The friend plays the barrage text on the play object in a shape of the second play track different from the shape of the first play track.
播放轨迹形状指弹幕文字在屏幕上播放时经过的轨迹的形状。例如,当弹幕文字在屏幕或者播放对象上比较靠下的位置从右向左直线滚动(其从屏幕或者播放对象靠下的位置右端出现,向左滚动,消失与屏幕或播放对象的左边)时,播放轨迹形状是屏幕或者播放对象下部从右向左的行。在本实施例中,在屏幕或播放对象的下部位置设置例如长条形的背景区域,第一播放轨迹形状可以是该背景区域中从右向左的行。背景区域可以从上到下容纳若干个这样的行。第二播放轨迹形状可以是,弹幕文字从屏幕或者播放对象中心位置出现,以向四周扩散的形状散射,并消失于屏幕或者播放对象边缘。第二播放轨迹形状还可以是,弹幕文字从屏幕或播放对象顶部出现,掉落到屏幕或播放对象中心位置消失。或者,在屏幕或播放对象的下部位置设置例如长条形的背景区域,第二播放轨迹形状是,弹幕文字从屏幕或播放对象的中心位置出现,以抛物线形状下落,插入到弹幕背景中,在弹幕背景中随其他弹幕文字从右到左滚动。The play track shape refers to the shape of the track that the barrage text passes when it is played on the screen. For example, when the barrage text scrolls from right to left in the lower position on the screen or the playback object (it appears from the right end of the screen or the lower position of the playback object, scrolls to the left, disappears to the left of the screen or the playback object) The playback track shape is the line from the right to the left of the screen or the lower part of the playback object. In the present embodiment, for example, an elongated background area is provided at a lower position of the screen or the playback object, and the first play track shape may be a line from right to left in the background area. The background area can accommodate several such lines from top to bottom. The shape of the second play track may be that the barrage text appears from the screen or the center of the play object to scatter to the surrounding diffused shape and disappears on the screen or the edge of the play object. The shape of the second play track may also be that the barrage text appears from the top of the screen or the play object, and falls to the screen or the center of the play object disappears. Alternatively, a background area such as a strip shape is set at a lower position of the screen or the playback object, and the shape of the second play track is that the barrage text appears from the center of the screen or the play object, falls in a parabolic shape, and is inserted into the barrage background. Scrolls from right to left with other barrage text in the barrage background.
当然,上述的第一、二播放轨迹形状的具体形状仅是举例,本领域技术人员可以构想出其它播放规范的形状,它们都落在本发明的保护范围之内。Of course, the specific shapes of the first and second play track shapes described above are merely examples, and those skilled in the art can conceive the shapes of other play specifications, which fall within the protection scope of the present invention.
图1的实施例达到的效果是,由于对于当前用户的非好友用户和当前用户的好友用户,其发表的弹幕文字在当前用户看来是遵循不同播放轨迹形状的,当前用户就能够一目了然看到好友发表的弹幕,这 些弹幕对于当前用户来说可能是更需要关注的。The effect achieved by the embodiment of FIG. 1 is that since the pop-up text of the current user's non-friend user and the current user's friend user follows the different play track shapes in the current user, the current user can see at a glance To the friend’s barrage, this These barrages may be more of a concern for current users.
图2是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。2 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention.
与图1相比,图2的实施例还增加了步骤121,即判断所述其它用户发表的弹幕文字是否与互联网突发话题或热门事件相关。Compared with FIG. 1, the embodiment of FIG. 2 further adds step 121 to determine whether the barrage texts published by the other users are related to Internet emergent topics or popular events.
互联网突发话题是指互联网上最近大家热议的话题,如地铁涨价或房屋限购放开。热门事件是指互联网上最近大家关注的事件,如厦门爆炸案。如果所述其它用户发表的弹幕文字跟厦门爆炸案的原因、最新动态有关,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。The Internet's sudden topic refers to topics that have been hotly debated on the Internet recently, such as the price increase of the subway or the purchase restriction of the house. Hot events refer to recent events on the Internet that are of concern to everyone, such as the Xiamen bombings. If the barred texts published by the other users are related to the reasons and latest developments of the Xiamen bombings, the barred texts published by the other users are considered to be related to Internet emergent topics or popular events.
判断所述其它用户发表的弹幕文字是否与互联网突发话题或热门事件相关可以采取多种方式。It can be determined in various ways whether it is determined whether the barred texts published by other users are related to Internet emergent topics or hot events.
在一种方式中,根据所述其它用户发表的弹幕文字在互联网上搜索,如果搜索出来一些近期的新闻或大量近期网友发表的评论,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。例如,如果搜索出来的一周内的新闻在5篇以上或搜索出来的一周内的网友评论超过20条,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。In one mode, the barred texts published by the other users are searched on the Internet. If some recent news or a large number of recent comments by netizens are searched, the barred texts published by the other users are considered to be in the Internet. Related topics or hot events. For example, if there are more than 5 comments in the week of the searched news or more than 20 comments in the searched week, the barred texts published by the other users are considered to be related to Internet emergent topics or popular events.
在另一种方式中,定期爬取各互联网网站上出现的新闻的标题,将它们维护在弹幕网站服务器的一个数据库中。将所述其它用户发表的弹幕文字与数据库中的标题一一对比,如果相似度大于预定相似度阈值的超过预定个数,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。相似度例如定义为所述其它用户发表的弹幕文字与数据库中的标题中共同含有的字数占所述其它用户发表的弹幕文字字数的比。例如,可以规定,如果所述其它用户发表的弹幕文字与数据库中的6个标题相似度大于80%,相似度阈值规定为75%,预定个数规定为5个,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。In another way, the headlines of news appearing on various Internet sites are periodically crawled and maintained in a database on the barrage web server. Comparing the barrage texts published by the other users with the titles in the database, and if the similarity is greater than the predetermined similarity threshold by more than a predetermined number, the other user's published barrage text and the Internet sudden topic or Popular events related. The similarity is defined, for example, as the ratio of the number of words commonly contained in the title of the barrage text published by the other user to the title in the database to the number of words of the barrage text published by the other user. For example, it may be provided that if the similarity of the title text published by the other user is greater than 80% in the six titles in the database, the similarity threshold is specified as 75%, and the predetermined number is specified as five, the other users are considered The published barrage text is related to sudden or hot events on the Internet.
当然,还有其他判断所述其它用户发表的弹幕文字是否与互联网 突发话题或热门事件相关的方式,它们都包括在本发明的保护范围之内。Of course, there are other judgments as to whether the other users’ barred texts are related to the Internet. The manner in which a sudden topic or a hot event is related is included in the scope of protection of the present invention.
另外,步骤130包括:如果所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关,以不同于第一播放轨迹形状的第三播放轨迹形状在播放对象上播放弹幕文字。In addition, step 130 includes: if the barred text published by the other user is related to an internet burst topic or a popular event, playing the barrage text on the play object in a shape different from the third play track shape of the first play track shape.
第三播放轨迹形状可以与第二播放轨迹形状相同。例如弹幕文字从屏幕或者播放对象中心位置出现,以向四周扩散的形状散射,并消失于屏幕或者播放对象边缘,或者弹幕文字从屏幕或播放对象顶部出现,掉落到屏幕或播放对象中心位置消失。The third play track shape may be the same shape as the second play track. For example, the barrage text appears from the screen or the center of the playback object, scatters to the surrounding diffused shape, and disappears on the screen or the edge of the playback object, or the barrage text appears from the top of the screen or the playback object, and drops to the screen or the center of the playback object. The location disappears.
第三播放轨迹形状也可以与第一、二播放轨迹形状都不同。例如可以规定,第三播放轨迹形状是,从屏幕或者播放对象的边缘出现,涌向屏幕或者播放对象的中心位置消失。The shape of the third play track may also be different from the shapes of the first and second play tracks. For example, it may be provided that the shape of the third play track is such that it appears from the edge of the screen or the playback object, and the center position of the playback object or the playback object disappears.
如果所述其它用户发表的弹幕文字与互联网突发话题或热门事件不相关,则按照步骤130中的播放规则播放所述其它用户发表的弹幕文字。即,如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。If the barrage text published by the other user is not related to the Internet sudden topic or the popular event, the barrage text published by the other user is played according to the playing rule in step 130. That is, if the other user is not the friend of the current user, the barrage text is played on the play object in the shape of the first play track; if the other user is the friend of the current user, the second play track is different from the shape of the first play track. The shape plays the barrage text on the playback object.
图2的实施例的效果是,能够使当前用户的注意力在屏幕或播放对象上迅速锁定与互联网突发话题或热门事件相关的弹幕文字,使当前用户迅速地获取到最有用的信息。The effect of the embodiment of FIG. 2 is to enable the current user's attention to quickly lock the barrage text associated with the Internet sudden topic or hot event on the screen or the playback object, so that the current user can quickly obtain the most useful information.
图3是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。与图1相比,图3增加了步骤102和步骤103。3 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention. Compared with FIG. 1, FIG. 3 adds steps 102 and 103.
在步骤102中,对播放对象进行实时截图。In step 102, a live screenshot of the play object is performed.
对于图片来说,由于图片是静态的,可能只需要进行一次截图。对于视频或电视节目来说,由于其是动态的,例如周期性地对播放对象进行实时截图,例如每隔0.5s截一次图。For images, since the image is static, you may only need to take a screenshot. For video or television programs, since it is dynamic, for example, a real-time screenshot of the playback object is periodically performed, for example, every 0.5 s.
除了周期性截图之外,也可以采取根据播放对象的画面变化速度调整截图的频率等其它方式,它们都落在本发明的保护范围之内。 In addition to the periodic screenshots, other methods such as adjusting the frequency of the screenshot according to the screen change speed of the playback object may be adopted, and they all fall within the protection scope of the present invention.
在步骤103中,分析实时截图截得的图片中的主色。In step 103, the primary color in the picture captured by the real-time screenshot is analyzed.
可以认为图片中每个像素的颜色是由红(R)、绿(G)、蓝(B)三种元色组成的,其色值可以用(R,G,B)三个值来表示,R表示该像素的红色色值,G表示该像素的绿色色值,B表示该像素的蓝色色值。R,G,B的范围是0-255之间的正整数。R,G,B都为0,则像素的颜色为纯白色。R,G,B都为255,则像素的颜色为纯黑色。It can be considered that the color of each pixel in the picture is composed of three color elements of red (R), green (G), and blue (B), and the color value can be represented by three values of (R, G, B). R represents the red color value of the pixel, G represents the green color value of the pixel, and B represents the blue color value of the pixel. The range of R, G, and B is a positive integer between 0 and 255. When R, G, and B are both 0, the color of the pixel is pure white. R, G, and B are both 255, and the color of the pixel is pure black.
在一种方式中,统计图片中所有像素的(R,G,B)值。哪个(R,G,B)值在所有像素中出现的最多,则认为该(R,G,B)值就是图片中的主色。In one way, the (R, G, B) values of all pixels in the picture are counted. Which (R, G, B) value appears most in all pixels, the value of (R, G, B) is considered to be the dominant color in the picture.
在另一种方式中,考虑到区分两个非常近似的(R,G,B)值没有意义,例如(45,136,37)与(46,137,37)颜色可能差不多,因此先将所有像素的(R,G,B)值的R、G、B值四舍五入到十位。然后,统计四舍五入后的哪个(R,G,B)值在所有像素中出现的最多,则认为该(R,G,B)值就是图片中的主色。In another way, considering that it is meaningless to distinguish between two very similar (R, G, B) values, for example (45, 136, 37) and (46, 137, 37) colors may be similar, so first all The R, G, and B values of the (R, G, B) values of the pixels are rounded to the tenth position. Then, it is considered that the (R, G, B) value is the dominant color in the picture, whichever (R, G, B) value is rounded up in all pixels.
本领域技术人员还能够构想出其它分析实时截图截得的图片中的主色的方式,它们都落在本发明的保护范围之内。Those skilled in the art will also be able to devise other ways of analyzing the dominant colors in the pictures captured by the real-time screenshots, all of which fall within the scope of the present invention.
另外,步骤130包括在播放对象上叠加的弹幕背景区域中播放弹幕文字,其中弹幕背景区域的颜色设置成基于主色得到的第一色,弹幕文字的颜色设置成基于主色得到的第二色。In addition, the step 130 includes playing the barrage text in the background area of the barrage superimposed on the playing object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color, and the color of the barrage text is set to be based on the main color. The second color.
在现有技术中,播放弹幕文字不是在屏幕或播放对象的一个固定区域中播放的。很可能刚刚有一个其它用户发表的弹幕文字在屏幕或播放对象的上端飞过,接着又有另一个其它用户发表的弹幕文字在屏幕或播放对象的下端飞过。这样,会影响当前用户观看播放对象的主要画面。因此,本发明在播放对象上设置专门的一个区域作为弹幕背景区域,除非是当前用户的好友发表的弹幕或与与互联网突发话题或热门事件相关的弹幕文字,其它的弹幕文字都在弹幕背景区域中播放,增加了用户观看的舒适度。In the prior art, the play barrage text is not played in a fixed area of the screen or the playback object. It is very likely that a barrage text published by another user has just flew over the screen or the top of the object, and then another barrage text published by another user flies over the screen or at the bottom of the object. In this way, it will affect the main picture of the current user watching the playback object. Therefore, the present invention sets a special area on the playback object as the background area of the barrage, unless it is a barrage published by a friend of the current user or a barrage text related to a sudden topic or a popular event on the Internet, and other barrage text. They are played in the background area of the barrage, which increases the comfort of the user.
基于主色得到的第一色例如是在主色的R,G,B的基础上各增加或减少n个值得到的颜色。例如,主色是(145,18,78),在主 色的R,G,B的基础上分别减去10个值,得到第一色(135,8,68),作为弹幕背景区域的颜色。一般n不宜过大,也不宜过小。由于人眼的视觉特性,当叠加的弹幕背景区域与画面的主色调基本一致,人眼观看时的舒适度是最高的,因此n不宜过大。另外,如果n太小的话,背景区域和画面的主色调又区分不开。实践中,n取10是比较优选的方式,即保证了人眼观看的舒适度,又避免了与画面内容混淆。The first color obtained based on the main color is, for example, a color obtained by increasing or decreasing n values on the basis of R, G, and B of the main color. For example, the main color is (145, 18, 78), in the main The color R, G, and B are subtracted by 10 values to obtain the first color (135, 8, 68) as the color of the background area of the barrage. Generally, n should not be too big or too small. Due to the visual characteristics of the human eye, when the superimposed background area of the barrage is substantially the same as the main color of the picture, the comfort of the human eye is the highest, so n should not be too large. In addition, if n is too small, the background area and the main color of the picture are indistinguishable. In practice, n is 10 is a more preferable way to ensure the comfort of the human eye and avoid confusion with the picture content.
基于主色得到的第二色例如是主色的对撞色。对撞色是色盘中相对的颜色,即(255,255,255)减去主色。例如,主色是(125,115,105),则对撞色是(130,140,150)。将弹幕文字的颜色设置成与弹幕背景区域的颜色反差较大,这样就能够使用户更清楚地看清弹幕文字。The second color obtained based on the dominant color is, for example, the contrast color of the main color. The contrast color is the relative color in the color wheel, ie (255, 255, 255) minus the main color. For example, if the primary color is (125, 115, 105), the contrast color is (130, 140, 150). The color of the barrage text is set to be larger than the color of the background area of the barrage, so that the user can clearly see the barrage text more clearly.
上述基于主色得到的第一色、第二色仅是举例。实际上,也可以以其它方式基于主色得到第一色、第二色。例如,基于主色的第二色不一定是主色的对撞色,可以是对撞色附近的颜色等。这些其它方式都落在本发明的保护范围之内。The first color and the second color obtained based on the main color described above are merely examples. In fact, the first color and the second color can also be obtained based on the main colors in other ways. For example, the second color based on the main color is not necessarily the contrast color of the main color, and may be a color near the contrast color or the like. These other methods are all within the scope of the present invention.
图3的实施例的效果是,它使弹幕的播放更好地适应了用户的观看习惯,提高了播放的友好度和用户的舒适度。The effect of the embodiment of Fig. 3 is that it makes the playback of the barrage better adapted to the user's viewing habits, improving the friendliness of play and the comfort of the user.
图4是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。与图1相比,图4增加了步骤102、104、105、106、107。4 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with one embodiment of the present invention. Compared to Figure 1, Figure 4 adds steps 102, 104, 105, 106, 107.
图4中的步骤102与图3中的步骤102相同。Step 102 in FIG. 4 is the same as step 102 in FIG.
在步骤104中,识别实时截图截得的图片中的元素。In step 104, the elements in the picture captured by the live screenshot are identified.
元素指图片中表示出的一个完整物体。例如一个苹果、一个书包。An element refers to a complete object represented in the picture. For example, an apple, a school bag.
在一种方式中,可以先找出图片中的色块。色块是图片中具有近似颜色的像素聚合成的块。它可以通过例如针对图片中的任一个像素,比较该像素与周围像素的(R,G,B)值是否小于一个阈值,例如(10,10,10)。如果小于该阈值,则将该周围像素与该像素聚合在一起。然后再比较该周围像素与该周围像素的周围像素的(R,G,B)值是否小于阈值。以此类推,将整个图片划分成色块。然后,将图片 中各色块的边界组成的图形与一个预先设置的图形库中的图形进行匹配。该图形库中存储有各种预先设置的图形和对应的元素名,如苹果的图片和苹果的名称。这样,通过将图片中各色块的边界组成的图形与图形库中的图形进行匹配,就识别出了实时截图截得的图片中的元素。该图形库的图形可以是专家预存的,也可以是通过自学习的方法利用大量图片样本训练一个模型自适应地获得的。In one way, you can first find the color patches in the picture. A color block is a block in which pixels of an approximate color in a picture are aggregated. It can compare whether the (R, G, B) value of the pixel and surrounding pixels is less than a threshold, for example (10, 10, 10), for example for any pixel in the picture. If less than the threshold, the surrounding pixels are aggregated with the pixel. Then, whether the (R, G, B) values of the surrounding pixels and surrounding pixels of the surrounding pixels are compared is less than a threshold. By analogy, the entire picture is divided into color blocks. Then, take the picture The graphics formed by the boundaries of the various color blocks are matched with the graphics in a preset graphics library. The graphics library stores various pre-set graphics and corresponding element names, such as Apple's image and Apple's name. In this way, by matching the graphics composed of the boundaries of the color patches in the picture with the graphics in the graphics library, the elements in the picture intercepted by the real-time screenshot are identified. The graphics of the graphics library may be pre-stored by an expert, or may be adaptively obtained by training a model using a large number of image samples by a self-learning method.
如果图片中两个相互之间具有包含关系的元素都能在图形库中找到匹配,则将较大者作为识别出的元素。例如,对于带月亮的帽子,月亮和带月亮的帽子两者都能在图形库中找到匹配,则应认为带月亮的帽子是一个元素。If two elements in the image that have an inclusion relationship with each other can find a match in the graphics library, the larger one is used as the identified element. For example, for a hat with a moon, both the moon and the hat with the moon can find a match in the graphics library, then the hat with the moon should be considered an element.
应当理解,也可以通过其它方式识别实时截图截得的图片中的元素,它们都落在本发明的保护范围之内。It should be understood that the elements in the picture captured by the real-time screenshot may also be identified by other means, which fall within the scope of the present invention.
在步骤105中,基于识别出的元素,在互联网上搜索具有所述识别出的元素的图片和相关评论。In step 105, based on the identified elements, a picture with the identified elements and related comments are searched on the Internet.
例如,识别出带有月亮的帽子,然后在互联网上搜索具有带有月亮的帽子的图片和相关评论。For example, identify a hat with a moon and then search the Internet for pictures and related comments with a hat with a moon.
在步骤106中,判断所述相关评论与所述识别出的元素的对应性。In step 106, a correspondence of the related comment to the identified element is determined.
例如,识别出带有月亮的帽子。在互联网上搜索到具有带有月亮的帽子的图片,但该图片上还有一个小孩,而图片的评述中有一些是关于小孩的(目前可以通过语义分析技术识别出评述是关于图片的哪部分的),则认为这些评论与识别出的元素不对应。For example, identify a hat with a moon. I searched the Internet for a picture with a hat with a moon, but there is a child on the picture, and some of the comments in the picture are about children (currently, semantic analysis techniques can be used to identify which part of the picture the comment is about. The comments are considered to correspond to the identified elements.
在步骤107中,在播放对象上突出显示在互联网上搜索到最多对应的相关评论的元素。In step 107, elements that search for the most relevant related comments on the Internet are highlighted on the playback object.
例如在图片上识别出带有月亮的帽子和桌子两个元素,在互联网上搜索到带有月亮的帽子有108个对应的相关评论,桌子有16个对应的相关评论,则在播放对象上突出显示带有月亮的帽子。For example, in the picture, the hat and the table with the moon are identified. On the Internet, there are 108 corresponding related comments on the hat with the moon. The table has 16 corresponding related comments, which are highlighted on the playback object. Show the hat with the moon.
在播放对象上突出显示在互联网上搜索到最多对应的相关评论的元素的方式可以是在元素的周围叠加一个框,也可以是在元素上叠加一层亮光,也可以是本领域技术人员能想到的其它突出显示的方 式,它们都落在本发明的保护范围之内。The manner in which the elements of the related comment that are most searched for on the Internet are highlighted on the playback object may be a frame superimposed on the element, or a layer of light may be superimposed on the element, or a person skilled in the art may think of Other highlighted parties They all fall within the scope of the present invention.
图4的实施例的效果是,它能够结合互联网上对播放对象截图中各个元素的议论程度,找出最热议的元素并突出显示,从而将用户有限的精力集中到整个画面中最需要关注的元素,使用户观看时获得更多信息。The effect of the embodiment of FIG. 4 is that it can combine the degree of discussion on the elements of the screenshot of the playback object on the Internet, find out the hottest elements and highlight them, thereby concentrating the user's limited energy on the entire picture. Elements that allow users to get more information when watching.
图5是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。与图1相比,图5增加了步骤102、104、108、109。FIG. 5 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 5 adds steps 102, 104, 108, 109.
图5中的步骤102、104与图4中的步骤102、104相同。 Steps 102, 104 in Figure 5 are the same as steps 102, 104 in Figure 4.
在步骤108中,根据识别出的元素,判断所述图片的感情色彩。In step 108, the emotional color of the picture is determined based on the identified elements.
例如,当识别出喜字时,代表的感情色彩是欢快。当识别是医院病房时,代表的感情色彩是悲伤。For example, when a hi word is recognized, the emotional color represented is cheerful. When the identification is a hospital ward, the emotional color of the representative is sad.
在一种方式中,可以在弹幕网站的服务器设置一个感情色彩分数数据库,预先存储各种可能识别出的元素及对应的感情色彩分数。元素代表的感情色彩是欢快的,感情色彩分数为正。感情色彩越欢快,则感情色彩分数正的越多。元素代表的感情色彩是悲伤的,感情色彩分数为负。感情色彩越悲伤,则感情色彩分数负的越多。当一个元素既不代表欢快,也不代表悲伤,则在感情色彩分数数据库找不到对应的感情色彩分数。如果图片中仅有一个元素在感情色彩分数数据库中有对应的感情色彩分数,该感情色彩分数作为整个图片的感情色彩分数。如果图片中有多个元素在感情色彩分数数据库中有对应的感情色彩分数,将这多个元素对应的感情色彩分数的平均值作为图片的感情色彩分数。In one mode, an emotional color score database can be set up on the server of the barrage website to pre-store various possible identified elements and corresponding emotional color scores. The emotional color represented by the elements is cheerful, and the emotional color score is positive. The more cheerful the emotional color, the more positive the emotional color score. The emotional color represented by the element is sad, and the emotional color score is negative. The more sad the emotional color, the more negative the emotional color score. When an element does not represent cheerfulness or grief, the corresponding emotional color score cannot be found in the emotional color score database. If there is only one element in the picture that has a corresponding emotional color score in the emotional color score database, the emotional color score is used as the emotional color score of the entire picture. If there are multiple elements in the picture that have corresponding emotional color scores in the emotional color score database, the average of the emotional color scores corresponding to the multiple elements is taken as the emotional color score of the picture.
应当理解,也可以有其它根据识别出的元素判断所述图片的感情色彩的方式,它们都落在本发明的保护范围之内。It should be understood that there may be other ways of determining the emotional color of the picture based on the identified elements, all of which fall within the scope of the present invention.
在步骤109中,基于判断出的所述图片的感情色彩,确定弹幕文字的播放速度。In step 109, based on the determined emotional color of the picture, the playback speed of the barrage text is determined.
例如,在弹幕网站的服务器中存储有图片的感情色彩分数与弹幕文字的播放速度的对应表。这样,就可以通过查表的方式,基于判断 出的所述图片的感情色彩,确定弹幕文字的播放速度。For example, in the server of the barrage website, a correspondence table of the emotional color score of the picture and the playback speed of the barrage text is stored. In this way, it can be judged by means of table lookup The emotional color of the picture is determined, and the playing speed of the barrage text is determined.
应该理解,也可以有其它基于判断出的所述图片的感情色彩确定弹幕文字的播放速度的方式,它们都落在本发明的保护范围之内。It should be understood that there may be other ways of determining the playback speed of the barrage text based on the determined emotional color of the picture, which are all within the scope of the present invention.
另外,步骤130包括:以确定出的播放速度,播放弹幕文字。In addition, step 130 includes: determining the playing speed and playing the barrage text.
图5的实施例的效果是,以与画面的感情色彩相对应的播放速度来播放弹幕文字。当整个画面越欢快时,弹幕文字的播放速度越快。当整个画面越悲伤时,弹幕文字的播放速度越慢。这非常符合用户观看播放对象时的观感,能够极大提高用户的观看舒适度。The effect of the embodiment of Fig. 5 is to play the barrage text at a playback speed corresponding to the emotional color of the picture. When the whole picture is more cheerful, the faster the barrage text is played. When the whole picture is sad, the playback speed of the barrage text is slower. This is very consistent with the look and feel of the user when viewing the object, which can greatly improve the user's viewing comfort.
图6是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。与图1相比,图6增加了步骤140、150。6 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 6 adds steps 140,150.
在步骤140中,响应于对播放的弹幕文字的第一操作,停止播放弹幕文字,显示至少包含下列功能中的一种的功能区:点赞、评论、转发。In step 140, in response to the first operation of the played barrage text, the playback of the barrage text is stopped, displaying a functional area containing at least one of the following functions: like, comment, forward.
当用户在桌面电脑上观看播放对象时,第一操作例如用鼠标悬停在播放的弹幕文字上。当用户在手机上观看播放对象时,第一操作例如用户的手势悬停在播放的弹幕文字上。当用户在电视上观看电视节目时,第一操作例如用户的手势悬停在与电视绑定的手机上播放的弹幕文字上。When the user views the playback object on the desktop computer, the first operation, for example, hovering over the played barrage text with the mouse. When the user views the play object on the mobile phone, the first operation such as the user's gesture hovering over the played barrage text. When the user watches the television program on the television, the first operation, such as the user's gesture, hovers over the barrage text played on the mobile phone bound to the television.
当然,还有其它第一操作的方式,例如第一操作可以是用鼠标单击、双击或右击播放的弹幕文字等。Of course, there are other ways of the first operation, for example, the first operation may be a barrage text that is clicked with a mouse, double-clicked, or right-clicked.
停止播放弹幕文字的含义是正在播放的其它弹幕文字在屏幕或播放对象上消失,第一操作所针对的弹幕文字静止。对于在屏幕或播放对象上消失的弹幕文字,可以在当前用户完成点赞、评论或转发后,恢复在屏幕或播放对象上播放,也可以不再播放。The meaning of stopping the play of the barrage text is that the other barrage text being played disappears on the screen or the playback object, and the barrage text for the first operation is still. For the barrage text that disappears on the screen or the playback object, the current user can resume playing on the screen or the playback object after the current user completes the like, comment or forwarding, or can no longer play.
停止播放弹幕文字的作用是使用户安心进行点赞、评论或转发操作,提高用户进行点赞、评论或转发的体验。The function of stopping the playing of the barrage text is to make the user feel like a like, comment or forward operation, and improve the user's experience of like, comment or forward.
可以在第一操作所针对的弹幕文字的旁边显示至少包含点赞、评论、转发功能中的一种的功能区,也可以在屏幕或播放对象的指定位置显示该功能区。 A function area including at least one of a favorite, a comment, and a forwarding function may be displayed next to the barrage text for which the first operation is directed, or may be displayed at a specified position of the screen or the playback object.
在步骤150,响应于对所述功能区中的功能的第二操作,执行与该功能相应的处理。At step 150, processing corresponding to the function is performed in response to a second operation on the function in the functional area.
当用户在桌面电脑上观看播放对象时,第二操作例如用鼠标单击、双击、或右击所述功能区中相应功能的位置。当用户在手机上观看播放对象时,第二操作例如用户触摸所述功能区中相应功能的位置。当用户在电视上观看电视节目时,第二操作例如用户触摸与电视绑定的手机上所述功能区中相应功能的位置。When the user views the play object on the desktop computer, the second operation is, for example, clicking with a mouse, double clicking, or right clicking on the position of the corresponding function in the function area. When the user views the play object on the mobile phone, the second operation, such as the user touching the location of the corresponding function in the functional area. When the user watches the television program on the television, a second operation, such as the user touching the location of the corresponding function in the functional area on the handset bound to the television.
第二操作也可以是上述操作之外的其它规定的操作,它们都落入本发明的保护范围之内。The second operation may also be other specified operations than those described above, and they all fall within the scope of the present invention.
当第二操作针对的功能是点赞时,与该功能相应的处理是给该弹幕文字点赞。即,给点赞功能旁边显示的点赞人数加1。如果用户想要查看是哪些用户给该弹幕文字点了赞,触发(例如单击、双击、右击)显示的该点赞人数,则在屏幕上显示给该弹幕文字点赞的用户名称和/或头像。When the function for the second operation is a compliment, the processing corresponding to the function is to praise the barrage text. That is, add 1 to the number of likes displayed next to the Like feature. If the user wants to see which users have liked the barrage text and triggered (such as click, double click, right click) to display the number of likes, the user name that is praised for the barrage text is displayed on the screen. And / or avatar.
当第二操作针对的功能是评论时,与该功能相应的处理是在屏幕上显示评论输入框。接收到用户在评论输入框中输入的评论后,给评论功能旁边的评论人数加1。如果用户想要查看评论的具体内容或谁给该弹幕文字加了评论,触发(例如单击、双击、右击)显示的该评论人数,则在屏幕上显示给该弹幕文字加评论的用户名称和/或头像、以及用户的评论。When the function for the second operation is a comment, the processing corresponding to the function is to display a comment input box on the screen. After receiving the comment entered by the user in the comment input box, add 1 to the number of comments next to the comment function. If the user wants to view the specific content of the comment or who has added a comment to the barrage text, triggering (eg, clicking, double clicking, right clicking) the number of comments displayed, then displaying the comment on the screen text on the screen User name and/or avatar, and user's comments.
当第二操作针对的功能是转发时,与该功能相应的处理是为当前用户生成一条新的弹幕文字,其内容是第二操作针对的弹幕文字加上一个转发标记。当然,也可以先显示一个提示框,提示用户是否在转发的同时输入评论。如果用户选择在转发的同时输入评论,为当前用户生成一条新的弹幕文字,其内容是用户输入的评论加上转发所针对的弹幕文字。When the function for the second operation is forwarding, the corresponding processing is to generate a new barrage text for the current user, the content of which is the barrage text for the second operation plus a forwarding tag. Of course, you can also display a prompt box to prompt the user to enter a comment while forwarding. If the user chooses to enter a comment while forwarding, a new barrage text is generated for the current user, the content of which is the comment entered by the user plus the barrage text targeted for forwarding.
在播放弹幕文字时,弹幕文字前面有发表该弹幕文字的用户名和/或头像。用户还可以触发(例如单击、双击、右击)该用户名和/或头像,然后向用户显示与该用户名和/或头像的用户私聊的界面,通过 该界面可以私聊。When playing the barrage text, the user name and/or avatar of the barrage text is displayed in front of the barrage text. The user can also trigger (eg, click, double-click, right-click) the username and/or avatar, and then display to the user an interface that privately chats with the user of the username and/or avatar, through This interface can be private chat.
图6的实施例的效果是,与现有技术的弹幕视频只能自己发表弹幕文字或观看弹幕文字、不能完成弹幕的互动相比,该实施例提供了一种对弹幕文字进行互动的可能,提高了对用户的激励。The effect of the embodiment of FIG. 6 is that the embodiment provides a pair of barrage text compared to the prior art barrage video which can only publish the barrage text itself or view the barrage text and cannot complete the barrage interaction. The possibility of interaction increases the incentives for users.
图7是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。与图6相比,图7增加了步骤151。7 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared to Figure 6, Figure 7 adds step 151.
在步骤151中,在执行与该功能相应的处理后,改变第一操作所针对的弹幕文字的显示样式。In step 151, after the processing corresponding to the function is performed, the display style of the barrage text for which the first operation is directed is changed.
改变第一操作所针对的弹幕文字的显示样式可以是将第一操作所针对的弹幕文字的字体增大。这样,当对某条弹幕文字点赞、评论或转发的人数越来越多时,该弹幕文字的字体就越来越大,使用户更容易注意到这条弹幕文字。The display style of the barrage text for which the first operation is changed may be to increase the font of the barrage text for which the first operation is directed. Thus, when more and more people like, praise, or forward a certain barrage text, the font of the barrage text becomes larger and larger, making it easier for users to notice the barrage text.
改变第一操作所针对的弹幕文字的显示样式还可以是将第一操作所针对的弹幕文字的亮度增大。这样,当对某条弹幕文字点赞、评论或转发的人数越来越多时,该弹幕文字就越来越亮,也能够达到吸引用户注意这条弹幕文字的效果。The display style of the barrage text for which the first operation is changed may also be to increase the brightness of the barrage text for the first operation. In this way, when more and more people praise, comment or forward a certain barrage text, the barrage text becomes more and more bright, and it can also achieve the effect of attracting users to pay attention to the barrage text.
图7的实施例的效果是,当对某条弹幕文字点赞、评论或转发的人数越来越多时,该弹幕文字的字体越来越大或越来越亮等,从而是用户能够更多地关注那些其它人更关注的弹幕文字,这些弹幕文字往往更有价值,使用户更容易在短时间内获得最有效的信息。The effect of the embodiment of FIG. 7 is that when the number of people who like, comment, or forward a certain barrage text is increasing, the font of the barrage text is getting larger or larger, and thus the user can Pay more attention to the barrage text that other people are more concerned about. These barrage words are often more valuable, making it easier for users to get the most effective information in a short period of time.
图8是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。与图1相比,图8增加了步骤102、104、160、170、180。8 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 8 adds steps 102, 104, 160, 170, 180.
在步骤102中,对所述对象进行实时截图。In step 102, a real-time screenshot of the object is performed.
在步骤104中,识别实时截图截得的图片中的元素。In step 104, the elements in the picture captured by the live screenshot are identified.
图8中的步骤102、104与图5中的步骤102、104一致。 Steps 102, 104 in Figure 8 are identical to steps 102, 104 in Figure 5.
在步骤160中,接收当前用户发表的弹幕文字。In step 160, the barrage text published by the current user is received.
例如,在屏幕或播放对象的下部(例如弹幕背景区域的更下面)设置有一个弹幕文字发表区。用户可以在该弹幕文字发表区发表弹幕 文字。For example, a barred text publishing area is provided on the lower portion of the screen or the playback object (for example, below the background area of the barrage). The user can post a barrage in the bulletin text publishing area. Text.
该弹幕文字发表区也可以设置在屏幕或播放对象的其它位置,例如屏幕或播放对象的上部。The bullet text publishing area can also be set on the screen or other location of the playback object, such as the upper part of the screen or the playback object.
在步骤170中,识别所述图片中与当前用户发表的弹幕文字相关的元素。In step 170, an element in the picture related to the barrage text published by the current user is identified.
利用目前已有的分词技术将用户发表的弹幕文字分词。由于在步骤104中已经识别出图片中的各元素及元素名,将分成的词语分别与识别出的图片中的各元素的元素名进行匹配。如果匹配上,则认为该元素名对应的元素与当前用户发表的弹幕文字相关。Use the existing word segmentation technology to segment the user's published barrage text. Since each element and element name in the picture has been identified in step 104, the divided words are respectively matched with the element names of the respective elements in the recognized picture. If it matches, the element corresponding to the element name is considered to be related to the barrage text published by the current user.
在步骤180中,在播放对象上播放当前用户发表的弹幕文字,其中当前用户发表的弹幕文字从所述与当前用户发表的弹幕文字相关的元素的位置处出现,沿特定轨迹进入播放对象上叠加的弹幕背景区域进行播放。In step 180, the barrage text published by the current user is played on the play object, wherein the barrage text published by the current user appears from the position of the element related to the barrage text published by the current user, and enters the play along a specific track. The background area of the barrage superimposed on the object is played.
该特定轨迹例如是蛇形、爆炸形轨迹等。该特定轨迹可以实现由用户设定。The specific trajectory is, for example, a serpentine shape, a star-shaped trajectory This particular trajectory can be implemented by the user.
例如,当前用户发表的弹幕文字是“这个小熊好可爱啊!”。在截图得到的图片中识别出小熊,则弹幕文字“这个小熊好可爱啊!”从播放对象上的这个小熊处出现,沿一个蛇形轨迹进入在播放对象底部的条形的弹幕背景区域中,然后在弹幕背景区域中从右向左播放。For example, the current user's barrage text is "This bear is so cute!". In the picture obtained from the screenshot, the bear is identified, and the barrage text "This bear is so cute!" appears from the bear on the playback object, along a serpentine track into the bar-shaped background area of the bar at the bottom of the object. Medium, then play from right to left in the background area of the barrage.
图8的实施例的效果是,让当前用户发表的弹幕文字从其弹幕文字所针对的元素处出现,沿特定轨迹进入播放对象上叠加的弹幕背景区域进行播放,使得当前用户的弹幕文字与其针对的元素在屏幕上的对应关系一目了然地显示出来,增强了用户的体验。另外,让当前用户自己发表的弹幕文字的播放轨迹形状从其它用户发表的弹幕文字的轨迹播放形状区分开,使当前用户能够清楚区分开哪些是自己发表的弹幕文字,哪些是其它用户发表的弹幕文字。The effect of the embodiment of FIG. 8 is that the barrage text published by the current user appears from the element to which the barrage text is directed, and enters the background area of the barrage superimposed on the object to be played along a specific track, so that the current user's bullet is played. The corresponding relationship between the screen text and the elements it targets on the screen is clearly displayed, enhancing the user experience. In addition, the shape of the play track of the current user's own published barrage text is distinguished from the track play shape of the barrage text published by other users, so that the current user can clearly distinguish which are the published barrage texts and which are other users. Published barrage text.
图9是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。与图1相比,图9增加了步骤102、104、105、106、156、158。 9 is a flow chart of a method of generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 9 adds steps 102, 104, 105, 106, 156, 158.
图9中的步骤102、104、105、106与图4中的步骤102、104、105、106是一致的。 Steps 102, 104, 105, 106 in Figure 9 are identical to steps 102, 104, 105, 106 in Figure 4.
在步骤156中,响应于当前用户对播放对象特定位置的第三操作,确定出该特定位置所属的元素。In step 156, in response to the current user's third operation of the particular location of the playback object, the element to which the particular location belongs is determined.
当前述第一操作是例如用鼠标悬停在播放的弹幕文字上、用户的手势悬停在播放的弹幕文字上等时,第三操作可以是用鼠标单击、双击、或右击播放对象的特定位置。当前述第一操作是例如用鼠标单击、双击、或右击播放对象的特定位置时,第三操作可以是例如用鼠标悬停在播放的弹幕文字上、用户的手势悬停在播放的弹幕文字上等。第三操作一般采用与第一操作不一样的方式,这是因为如果采用一样的方式,就很难识别用户是想要对播放的弹幕文字点赞、评论或转发,还是想要看关于该元素互联网上有哪些相关评论。When the foregoing first operation is, for example, hovering over the played barr text with the mouse, the user's gesture hovering over the played barrage text, etc., the third operation may be a mouse click, a double click, or a right click play. The specific location of the object. When the foregoing first operation is, for example, a mouse click, a double tap, or a right click on a specific position of the playback object, the third operation may be, for example, hovering over the played barr text with the mouse, and the user's gesture hovering over the play. The barrage text is equal. The third operation generally adopts a different method from the first operation, because if the same method is used, it is difficult to recognize whether the user wants to like, comment or forward the played barrage text, or want to see about the What are the relevant comments on the elemental internet.
由于在步骤104中已经识别出元素和元素的边界,因此就可以确定第三操作所针对的特定位置是属于哪个元素。当该特定位置落在多个元素的边界内,可以将该多个元素的边界内拥有该特定位置面积最大的元素确定为特定位置所属的元素。Since the boundaries of the elements and elements have been identified in step 104, it can be determined which element the particular location for which the third operation is directed belongs. When the specific location falls within the boundary of the plurality of elements, the element having the largest area of the specific location within the boundary of the plurality of elements may be determined as the element to which the specific location belongs.
在步骤158中,根据确定出的元素,向当前用户显示在互联网上搜索到的与该元素相应的所述相关评论。In step 158, based on the determined element, the related user corresponding to the element searched on the Internet is displayed to the current user.
这些相关评论例如显示在屏幕或播放对象上出现的一个提示框中。该提示框可能同时还提示用户输入想要发表的评论,即弹幕文字。这样,就能达到用户可以一边看着互联网上对某一元素已经发表的评论,一边发表弹幕文字的目的。These related comments are displayed, for example, in a prompt box that appears on the screen or on the playback object. The prompt box may also prompt the user to enter a comment to be published, that is, a barrage text. In this way, users can be able to publish the words of the barrage while watching the comments on the Internet that have been published on an element.
也就是说,发表弹幕文字既可以通过在屏幕或播放对象的弹幕文字发表区进行,也可以通过对播放对象的特定位置的第三操作进行,而且后者可以看到互联网上针对某一元素已经发表的评论,发表弹幕文字更有的放矢。That is to say, the publication of the barrage text can be performed either through the bullet-screen text publishing area of the screen or the playback object, or by the third operation of the specific position of the playback object, and the latter can be seen on the Internet for a certain The elements have been published in the comments, and the published barrage text is more targeted.
图9的实施例的效果是,使用户能够一边看着互联网上针对某一元素已经发表的评论一边发表弹幕文字,更有针对性地发表弹幕文字,提高用户友好度。 The effect of the embodiment of Fig. 9 is to enable the user to publish the barrage text while looking at the comments on the Internet that have been published for an element, and to more specifically publish the barrage text to improve user friendliness.
图10是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的方法的流程图。与图1相比,图10增加了步骤1001、1002。10 is a flow chart of a method of generating a barrage superimposed on a play object, in accordance with another embodiment of the present invention. Compared to Figure 1, Figure 10 adds steps 1001, 1002.
现有技术的弹幕只能针对图片或视频发表。用户访问带有图片或视频的网页,该网页的网站服务器将终端ID(可能还有登录账户名)和该网页地址、该图片或视频名称一起发到弹幕网站的服务器,供弹幕网站的服务器制作带有弹幕的层后发回该网页的网站服务器将该层叠加在该图片或视频上供用户观看。现有技术的弹幕不能针对电视节目,这是因为用户对电视机缺乏操作接口以及不知道电视台服务器的地址等原因。Prior art barrage can only be published for pictures or videos. The user visits a web page with a picture or video, and the web server of the web page sends the terminal ID (and possibly the login account name) along with the web page address, the picture or video name to the server of the barrage website for the barrage website. The server that makes the layer with the barrage and sends it back to the webpage server superimposes the layer on the image or video for the user to watch. The prior art barrage cannot be directed to a television program because the user lacks an operational interface to the television set and does not know the address of the television station server.
本发明可以针对电视节目发表弹幕。The present invention can be used to publish a barrage for a television program.
在步骤1001中,在电视节目中显示电视节目所在服务器地址或二维码,该二维码包括电视节目所在服务器地址和电视节目名。In step 1001, a server address or a two-dimensional code of the television program is displayed in the television program, and the two-dimensional code includes a server address where the television program is located and a television program name.
服务器地址例如显示在电视节目的顶端,二维码例如显示在电视节目的右下角,但也可以是其它位置。The server address is displayed, for example, at the top of the television program, and the two-dimensional code is displayed, for example, in the lower right corner of the television program, but may be other locations.
在步骤1002中,接收用户通过移动设备发送的电视节目所在服务器地址及电视节目名、或发送的扫描的二维码,将该移动设备的识别号与该服务器地址的该电视节目绑定,从而针对该电视节目的与弹幕有关的操作通过该移动设备进行。In step 1002, receiving a server address and a television program name of the television program transmitted by the user through the mobile device, or sending the scanned two-dimensional code, binding the identification number of the mobile device to the television program of the server address, thereby The barrage-related operations for the television program are performed by the mobile device.
在一种方式中,用户看到电视节目上显示的服务器地址后,可以在其移动设备上访问该服务器地址并输入其观看的电视节目名。由于该移动设备访问了电视台的服务器,电视台的服务器就会知道该移动设备的ID。电视台的服务器就会将该移动设备的ID与该电视台服务器上的该电视节目进行绑定。绑定的含义是针对该电视节目的与弹幕有关的操作通过该移动设备进行。例如前述的在对其它用户发表的弹幕文字进行点赞、评论、转发时用到的第一、第二操作,在对特定元素发表弹幕文字时用到的第三操作,默认为都是由该移动设备进行的。此时,当用户例如在该移动设备上对特定位置执行第三操作时,电视台服务器就将该对特定位置的第三操作报告给弹幕网站的服务器。而且,由于该移动设备访问了电视台的服务器,电视台的服务器 也会将该移动设备ID(可能还有登录账户名)、其访问的电视台服务器地址、电视节目名发送到弹幕网站的服务器。在当前用户发表了弹幕文字后,弹幕网站服务器会知道是哪个移动设备ID的用户(哪个登录账户名的用户)发表了弹幕,将该用户的移动设备ID(或登录账户名)一起发表。In one approach, after the user sees the server address displayed on the television program, the user can access the server address on their mobile device and enter the television program name they are watching. Since the mobile device accesses the server of the television station, the server of the television station knows the ID of the mobile device. The television station's server will bind the mobile device's ID to the television program on the television station server. The meaning of the binding is that the barrage-related operations for the television program are performed by the mobile device. For example, the first operation and the second operation used for the praise, comment, and forwarding of the barrage texts published by other users, and the third operation used when the barrage text is published for a specific element, the default is Performed by the mobile device. At this time, when the user performs the third operation on the specific location, for example, on the mobile device, the television station server reports the third operation of the specific location to the server of the barrage website. Moreover, since the mobile device accesses the server of the television station, the server of the television station The mobile device ID (and possibly the login account name), the TV station server address it visits, and the TV program name are also sent to the server of the barrage website. After the current user has published the barrage text, the barrage web server will know which mobile device ID user (which user who logged in to the account name) has published a barrage, and the user's mobile device ID (or login account name) together Published.
在另一种方式中,用户看到电视节目上显示的二维码后,可以利用其移动设备扫描该二维码。由于该二维码包括电视节目所在服务器地址和电视节目名,扫描二维码的结果就是用户自动登录了电视台的服务器。这样,电视台的服务器就会知道该移动设备的ID。电视台的服务器就会将该移动设备的ID与该电视台服务器上的正播放的电视节目进行绑定。In another mode, after the user sees the two-dimensional code displayed on the television program, the user can scan the two-dimensional code with his mobile device. Since the two-dimensional code includes the server address and the TV program name where the television program is located, the result of scanning the two-dimensional code is that the user automatically logs in to the server of the television station. In this way, the server of the television station will know the ID of the mobile device. The television station's server will bind the ID of the mobile device to the television program being played on the television station server.
图10的实施例的效果是,通过传递电视节目所在服务器地址或二维码的方式使移动设备与电视台服务器的电视节目绑定,从而实现带有弹幕的电视节目。The effect of the embodiment of Fig. 10 is to enable the mobile device to be bound to the television program of the television station server by transmitting the server address or the two-dimensional code of the television program, thereby realizing the television program with the barrage.
图11是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的装置2的框图。装置2包括:接收当前用户以外的其它用户发表的弹幕文字的单元210(下称“第一接收单元”);根据当前用户的登录账户信息中的好友信息判断该其它用户是否是当前用户的好友的单元220(下称“第一判断单元”);在播放对象上播放所述弹幕文字的单元230(下称“第一播放单元”),被配置成:如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。Figure 11 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention. The device 2 includes: a unit 210 for receiving a barrage text published by a user other than the current user (hereinafter referred to as a “first receiving unit”); and determining, according to the friend information in the login account information of the current user, whether the other user is the current user. a unit 220 of a friend (hereinafter referred to as "first judgment unit"); a unit 230 (hereinafter referred to as "first play unit") that plays the barred text on the play object is configured to: if the other user is not the current user a friend playing the barrage text on the play object in the shape of the first play track; if the other user is a friend of the current user, playing the barrage text on the play object in a shape different from the shape of the second play track of the first play track shape .
第一接收单元210接收当前用户以外的其它用户发表的弹幕文字。The first receiving unit 210 receives the barrage texts published by other users than the current user.
当前用户是指当前浏览带有播放对象的服务器(如带有视频的网页服务器)、并由带有该播放对象的服务器把其终端ID发送给弹幕网站的服务器的用户。目前,当前用户并没有发表弹幕文字,因此弹幕网站的服务器只通过带有播放对象的服务器接收到其终端ID、以 及其浏览的服务器地址和播放对象名。对于其它已经针对该服务器的该播放对象发表了弹幕文字的用户(即其它用户),弹幕网站的服务器接收到其终端ID和发表的弹幕文字。The current user refers to a user who currently browses a server with a playback object (such as a web server with video) and sends its terminal ID to the server of the barrage website by the server with the playback object. At present, the current user does not publish the barrage text, so the server of the barrage website only receives its terminal ID through the server with the playback object, And the server address and play object name that it browses. For other users (ie, other users) who have published the barrage text for the playback object of the server, the server of the barrage website receives its terminal ID and the published barrage text.
第一判断单元220根据当前用户的登录账户信息中的好友信息,判断该其它用户是否是当前用户的好友。The first determining unit 220 determines, according to the friend information in the login account information of the current user, whether the other user is a friend of the current user.
在本实施例中,当前用户需要登录浏览带有播放对象的服务器(如带有视频的网页服务器)而不能是匿名登录,并且在登录上带有播放对象的服务器(如带有视频的网页服务器)后,显示的页面带有类似于微博网站上的好友信息,例如“关注”、“粉丝”等。当前用户可以通过该页面找到其它用户,并“关注”其它用户,其它用户也可以通过该页面“关注”当前用户,从而成为当前用户的粉丝。这样,当前用户需要登录浏览带有播放对象的服务器(如带有视频的网页服务器)后,带有播放对象的服务器会把该终端ID、该用户登录账户名、以及该用户登录账户名下的好友信息(例如“关注”、“粉丝”的情况)连同该服务器地址、该播放对象名一起发送到弹幕服务器。弹幕服务器就可以根据当前用户的登录账户信息中的好友信息,判断该其它用户是否是当前用户的好友。In this embodiment, the current user needs to log in to browse a server with a playback object (such as a web server with video) instead of an anonymous login, and a server with a playback object on the login (such as a web server with video) After that, the displayed page has similar friend information on the Weibo website, such as "Follow", "Fans" and so on. The current user can find other users through this page, and “follow” other users, and other users can also “follow” the current user through the page, thereby becoming a fan of the current user. In this way, after the current user needs to log in to browse the server with the playback object (such as a web server with video), the server with the playback object will put the terminal ID, the user login account name, and the user login account name. The friend information (for example, "attention", "fan") is sent to the barrage server along with the server address and the play object name. The barrage server can determine whether the other user is a friend of the current user according to the friend information in the login account information of the current user.
在一种情况下,只要该其它用户属于当前用户关注的用户、或关注当前用户的用户(即当前用户的粉丝),就认为该其它用户是当前用户的好友。In one case, as long as the other user belongs to the user of the current user or the user who is concerned with the current user (ie, the fan of the current user), the other user is considered to be the friend of the current user.
在另一种情况下,只有该其它用户属于当前用户关注的用户时,才认为该其它用户是当前用户的好友。In another case, the other user is considered to be the current user's friend only when the other user belongs to the current user's attention.
应该理解,上述两种判断该其它用户是否是当前用户的好友的方式仅是举例,其它根据当前用户的登录账户信息中的好友信息判断该其它用户是否是当前用户的好友的方式(例如,将关注的用户分为“密友”、“一般关注”、“名人明星”等,只有属于“密友”的其它用户才认为是当前用户的好友)也落入本发明的保护范围之内。It should be understood that the above two ways of determining whether the other user is a friend of the current user are only examples, and other ways of determining whether the other user is a friend of the current user according to the friend information in the login account information of the current user (for example, The users concerned are classified into "close friends", "general attention", "celebrity stars", etc., and only other users belonging to "close friends" are considered to be friends of the current user) also fall within the protection scope of the present invention.
第一播放单元230在播放对象上播放所述弹幕文字,其中如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播 放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。The first playing unit 230 plays the barrage text on the playing object, wherein if the other user is not the current user's friend, the first playing track shape is broadcasted on the playing object. The screen text is played; if the other user is a friend of the current user, the barrage text is played on the play object in a shape of the second play track different from the shape of the first play track.
播放轨迹形状指弹幕文字在屏幕上播放时经过的轨迹的形状。例如,当弹幕文字在屏幕或者播放对象上比较靠下的位置从右向左直线滚动(其从屏幕或者播放对象靠下的位置右端出现,向左滚动,消失与屏幕或播放对象的左边)时,播放轨迹形状是屏幕或者播放对象下部从右向左的行。在本实施例中,在屏幕或播放对象的下部位置设置例如长条形的背景区域,第一播放轨迹形状可以是该背景区域中从右向左的行。背景区域可以从上到下容纳若干个这样的行。第二播放轨迹形状可以是,弹幕文字从屏幕或者播放对象中心位置出现,以向四周扩散的形状散射,并消失于屏幕或者播放对象边缘。第二播放轨迹形状还可以是,弹幕文字从屏幕或播放对象顶部出现,掉落到屏幕或播放对象中心位置消失。或者,在屏幕或播放对象的下部位置设置例如长条形的背景区域,第二播放轨迹形状是,弹幕文字从屏幕或播放对象的中心位置出现,以抛物线形状下落,插入到弹幕背景中,在弹幕背景中随其他弹幕文字从右到左滚动。The play track shape refers to the shape of the track that the barrage text passes when it is played on the screen. For example, when the barrage text scrolls from right to left in the lower position on the screen or the playback object (it appears from the right end of the screen or the lower position of the playback object, scrolls to the left, disappears to the left of the screen or the playback object) The playback track shape is the line from the right to the left of the screen or the lower part of the playback object. In the present embodiment, for example, an elongated background area is provided at a lower position of the screen or the playback object, and the first play track shape may be a line from right to left in the background area. The background area can accommodate several such lines from top to bottom. The shape of the second play track may be that the barrage text appears from the screen or the center of the play object to scatter to the surrounding diffused shape and disappears on the screen or the edge of the play object. The shape of the second play track may also be that the barrage text appears from the top of the screen or the play object, and falls to the screen or the center of the play object disappears. Alternatively, a background area such as a strip shape is set at a lower position of the screen or the playback object, and the shape of the second play track is that the barrage text appears from the center of the screen or the play object, falls in a parabolic shape, and is inserted into the barrage background. Scrolls from right to left with other barrage text in the barrage background.
当然,上述的第一、二播放轨迹形状的具体形状仅是举例,本领域技术人员可以构想出其它播放规范的形状,它们都落在本发明的保护范围之内。Of course, the specific shapes of the first and second play track shapes described above are merely examples, and those skilled in the art can conceive the shapes of other play specifications, which fall within the protection scope of the present invention.
图11的实施例达到的效果是,由于对于当前用户的非好友用户和当前用户的好友用户,其发表的弹幕文字在当前用户看来是遵循不同播放轨迹形状的,当前用户就能够一目了然看到好友发表的弹幕,这些弹幕对于当前用户来说可能是更需要关注的。The effect achieved by the embodiment of FIG. 11 is that since the pop-up text published by the non-friend user of the current user and the friend user of the current user follows the shape of different play tracks in the current user, the current user can see at a glance To the barrage published by friends, these barrages may be more of a concern for current users.
图12是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的装置2的框图。Figure 12 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention.
与图11相比,图12的实施例还增加了判断所述其它用户发表的弹幕文字是否与互联网突发话题或热门事件相关的单元221(下称“第二判断单元”)。Compared with FIG. 11, the embodiment of FIG. 12 further adds a unit 221 (hereinafter referred to as "second judging unit") for judging whether the barrage text published by the other user is related to an Internet burst topic or a hot event.
互联网突发话题是指互联网上最近大家热议的话题,如地铁涨价 或房屋限购放开。热门事件是指互联网上最近大家关注的事件,如厦门爆炸案。如果所述其它用户发表的弹幕文字跟厦门爆炸案的原因、最新动态有关,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。Internet emergent topics refer to topics that have been hotly debated on the Internet recently, such as subway price increases. Or the house is restricted to release. Hot events refer to recent events on the Internet that are of concern to everyone, such as the Xiamen bombings. If the barred texts published by the other users are related to the reasons and latest developments of the Xiamen bombings, the barred texts published by the other users are considered to be related to Internet emergent topics or popular events.
判断所述其它用户发表的弹幕文字是否与互联网突发话题或热门事件相关可以采取多种方式。It can be determined in various ways whether it is determined whether the barred texts published by other users are related to Internet emergent topics or hot events.
在一种方式中,根据所述其它用户发表的弹幕文字在互联网上搜索,如果搜索出来一些近期的新闻或大量近期网友发表的评论,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。例如,如果搜索出来的一周内的新闻在5篇以上或搜索出来的一周内的网友评论超过20条,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。In one mode, the barred texts published by the other users are searched on the Internet. If some recent news or a large number of recent comments by netizens are searched, the barred texts published by the other users are considered to be in the Internet. Related topics or hot events. For example, if there are more than 5 comments in the week of the searched news or more than 20 comments in the searched week, the barred texts published by the other users are considered to be related to Internet emergent topics or popular events.
在另一种方式中,定期爬取各互联网网站上出现的新闻的标题,将它们维护在弹幕网站服务器的一个数据库中。将所述其它用户发表的弹幕文字与数据库中的标题一一对比,如果相似度大于预定相似度阈值的超过预定个数,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。相似度例如定义为所述其它用户发表的弹幕文字与数据库中的标题中共同含有的字数占所述其它用户发表的弹幕文字字数的比。例如,可以规定,如果所述其它用户发表的弹幕文字与数据库中的6个标题相似度大于80%,相似度阈值规定为75%,预定个数规定为5个,则认为所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关。In another way, the headlines of news appearing on various Internet sites are periodically crawled and maintained in a database on the barrage web server. Comparing the barrage texts published by the other users with the titles in the database, and if the similarity is greater than the predetermined similarity threshold by more than a predetermined number, the other user's published barrage text and the Internet sudden topic or Popular events related. The similarity is defined, for example, as the ratio of the number of words commonly contained in the title of the barrage text published by the other user to the title in the database to the number of words of the barrage text published by the other user. For example, it may be provided that if the similarity of the title text published by the other user is greater than 80% in the six titles in the database, the similarity threshold is specified as 75%, and the predetermined number is specified as five, the other users are considered The published barrage text is related to sudden or hot events on the Internet.
当然,还有其他判断所述其它用户发表的弹幕文字是否与互联网突发话题或热门事件相关的方式,它们都包括在本发明的保护范围之内。Of course, there are other ways to judge whether the barred texts published by other users are related to Internet emergent topics or hot events, and they are all included in the scope of protection of the present invention.
另外,第一播放单元230被配置为:如果所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关,以不同于第一播放轨迹形状的第三播放轨迹形状在播放对象上播放弹幕文字。In addition, the first playing unit 230 is configured to play on the playing object with the third playing track shape different from the shape of the first playing track if the barrage text published by the other user is related to the Internet sudden topic or the popular event. Barrage text.
第三播放轨迹形状可以与第二播放轨迹形状相同。例如弹幕文字 从屏幕或者播放对象中心位置出现,以向四周扩散的形状散射,并消失于屏幕或者播放对象边缘,或者弹幕文字从屏幕或播放对象顶部出现,掉落到屏幕或播放对象中心位置消失。The third play track shape may be the same shape as the second play track. Such as barrage text Appears from the center of the screen or the playback object, scatters to the surrounding diffused shape, and disappears on the screen or the edge of the playback object, or the barrage text appears from the top of the screen or the playback object, and drops to the screen or the center of the playback object disappears.
第三播放轨迹形状也可以与第一、二播放轨迹形状都不同。例如可以规定,第三播放轨迹形状是,从屏幕或者播放对象的边缘出现,涌向屏幕或者播放对象的中心位置消失。The shape of the third play track may also be different from the shapes of the first and second play tracks. For example, it may be provided that the shape of the third play track is such that it appears from the edge of the screen or the playback object, and the center position of the playback object or the playback object disappears.
如果所述其它用户发表的弹幕文字与互联网突发话题或热门事件不相关,则如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字,如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。If the barrage text published by the other user is not related to the Internet sudden topic or the popular event, if the other user is not the current user's friend, the barrage text is played on the playing object in the shape of the first playing track, if the other The user is a friend of the current user, and the barrage text is played on the play object in a shape of the second play track different from the shape of the first play track.
图12的实施例的效果是,能够使当前用户的注意力在屏幕或播放对象上迅速锁定与互联网突发话题或热门事件相关的弹幕文字,使当前用户迅速地获取到最有用的信息。The effect of the embodiment of FIG. 12 is to enable the current user's attention to quickly lock the barrage text associated with the Internet sudden topic or the hot event on the screen or the playback object, so that the current user can quickly obtain the most useful information.
图13是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的装置2的流程图。与图11相比,图13增加了对所述对象进行实时截图的单元202(下称“截图单元”)、分析实时截图截得的图片中的主色的单元203(下称“分析单元”)。Figure 13 is a flow diagram of an apparatus 2 for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention. Compared with FIG. 11 , FIG. 13 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshot of the object, and a unit 203 that analyzes the main color in the picture captured by the real-time screenshot (hereinafter referred to as “analysis unit”). ).
截图单元202对播放对象进行实时截图。The screenshot unit 202 performs a real-time screenshot of the playback object.
对于图片来说,由于图片是静态的,可能只需要进行一次截图。对于视频或电视节目来说,由于其是动态的,例如周期性地对播放对象进行实时截图,例如每隔0.5s截一次图。For images, since the image is static, you may only need to take a screenshot. For video or television programs, since it is dynamic, for example, a real-time screenshot of the playback object is periodically performed, for example, every 0.5 s.
除了周期性截图之外,也可以采取根据播放对象的画面变化速度调整截图的频率等其它方式,它们都落在本发明的保护范围之内。In addition to the periodic screenshots, other methods such as adjusting the frequency of the screenshot according to the screen change speed of the playback object may be adopted, and they all fall within the protection scope of the present invention.
分析单元203分析实时截图截得的图片中的主色。The analyzing unit 203 analyzes the main colors in the pictures cut in the real-time screenshot.
可以认为图片中每个像素的颜色是由红(R)、绿(G)、蓝(B)三种元色组成的,其色值可以用(R,G,B)三个值来表示,R表示该像素的红色色值,G表示该像素的绿色色值,B表示该像素的蓝色色值。R,G,B的范围是0-255之间的正整数。R,G,B都为0,则 像素的颜色为纯白色。R,G,B都为255,则像素的颜色为纯黑色。It can be considered that the color of each pixel in the picture is composed of three color elements of red (R), green (G), and blue (B), and the color value can be represented by three values of (R, G, B). R represents the red color value of the pixel, G represents the green color value of the pixel, and B represents the blue color value of the pixel. The range of R, G, and B is a positive integer between 0 and 255. R, G, B are all 0, then The color of the pixel is pure white. R, G, and B are both 255, and the color of the pixel is pure black.
在一种方式中,统计图片中所有像素的(R,G,B)值。哪个(R,G,B)值在所有像素中出现的最多,则认为该(R,G,B)值就是图片中的主色。In one way, the (R, G, B) values of all pixels in the picture are counted. Which (R, G, B) value appears most in all pixels, the value of (R, G, B) is considered to be the dominant color in the picture.
在另一种方式中,考虑到区分两个非常近似的(R,G,B)值没有意义,例如(45,136,37)与(46,137,37)颜色可能差不多,因此先将所有像素的(R,G,B)值的R、G、B值四舍五入到十位。然后,统计四舍五入后的哪个(R,G,B)值在所有像素中出现的最多,则则认为该(R,G,B)值就是图片中的主色。In another way, considering that it is meaningless to distinguish between two very similar (R, G, B) values, for example (45, 136, 37) and (46, 137, 37) colors may be similar, so first all The R, G, and B values of the (R, G, B) values of the pixels are rounded to the tenth position. Then, which of the (R, G, B) values after rounding is the most common in all pixels, the (R, G, B) value is considered to be the dominant color in the picture.
本领域技术人员还能够构想出其它分析实时截图截得的图片中的主色的方式,它们都落在本发明的保护范围之内。Those skilled in the art will also be able to devise other ways of analyzing the dominant colors in the pictures captured by the real-time screenshots, all of which fall within the scope of the present invention.
另外,第一播放单元230被配置为在播放对象上叠加的弹幕背景区域中播放弹幕文字,其中弹幕背景区域的颜色设置成基于主色得到的第一色,弹幕文字的颜色设置成基于主色得到的第二色。In addition, the first playing unit 230 is configured to play the barrage text in the background area of the barrage superimposed on the playing object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color, and the color setting of the barrage text The second color is based on the dominant color.
在现有技术中,播放弹幕文字不是在屏幕或播放对象的一个固定区域中播放的。很可能刚刚有一个其它用户发表的弹幕文字在屏幕或播放对象的上端飞过,接着又有另一个其它用户发表的弹幕文字在屏幕或播放对象的下端飞过。这样,会影响当前用户观看播放对象的主要画面。因此,本发明在播放对象上设置专门的一个区域作为弹幕背景区域,除非是当前用户的好友发表的弹幕或与与互联网突发话题或热门事件相关的弹幕文字,其它的弹幕文字都在弹幕背景区域中播放,增加了用户观看的舒适度。In the prior art, the play barrage text is not played in a fixed area of the screen or the playback object. It is very likely that a barrage text published by another user has just flew over the screen or the top of the object, and then another barrage text published by another user flies over the screen or at the bottom of the object. In this way, it will affect the main picture of the current user watching the playback object. Therefore, the present invention sets a special area on the playback object as the background area of the barrage, unless it is a barrage published by a friend of the current user or a barrage text related to a sudden topic or a popular event on the Internet, and other barrage text. They are played in the background area of the barrage, which increases the comfort of the user.
基于主色得到的第一色例如是在主色的R,G,B的基础上各增加或减少n个值得到的颜色。例如,主色是(145,18,78),在主色的R,G,B的基础上分别减去10个值,得到第一色(135,8,68),作为弹幕背景区域的颜色。一般n不宜过大,也不宜过小。由于人眼的视觉特性,当叠加的弹幕背景区域与画面的主色调基本一致,人眼观看时的舒适度是最高的,因此n不宜过大。另外,如果n太小的话,背景区域和画面的主色调又区分不开。实践中,n取10是比较优选的 方式,即保证了人眼观看的舒适度,又避免了与画面内容混淆。The first color obtained based on the main color is, for example, a color obtained by increasing or decreasing n values on the basis of R, G, and B of the main color. For example, the main color is (145, 18, 78), and 10 values are subtracted from the R, G, and B of the main color to obtain the first color (135, 8, 68) as the background area of the barrage. colour. Generally, n should not be too big or too small. Due to the visual characteristics of the human eye, when the superimposed background area of the barrage is substantially the same as the main color of the picture, the comfort of the human eye is the highest, so n should not be too large. In addition, if n is too small, the background area and the main color of the picture are indistinguishable. In practice, n is 10 is preferred. The way to ensure the comfort of the human eye is to avoid confusion with the content of the picture.
基于主色得到的第二色例如是主色的对撞色。对撞色是色盘中相对的颜色,即(255,255,255)减去主色。例如,主色是(125,115,105),则对撞色是(130,140,150)。将弹幕文字的颜色设置成与弹幕背景区域的颜色反差较大,这样就能够使用户更清楚地看清弹幕文字。The second color obtained based on the dominant color is, for example, the contrast color of the main color. The contrast color is the relative color in the color wheel, ie (255, 255, 255) minus the main color. For example, if the primary color is (125, 115, 105), the contrast color is (130, 140, 150). The color of the barrage text is set to be larger than the color of the background area of the barrage, so that the user can clearly see the barrage text more clearly.
上述基于主色得到的第一色、第二色仅是举例。实际上,也可以以其它方式基于主色得到第一色、第二色。例如,基于主色的第二色不一定是主色的对撞色,可以是对撞色附近的颜色等。这些其它方式都落在本发明的保护范围之内。The first color and the second color obtained based on the main color described above are merely examples. In fact, the first color and the second color can also be obtained based on the main colors in other ways. For example, the second color based on the main color is not necessarily the contrast color of the main color, and may be a color near the contrast color or the like. These other methods are all within the scope of the present invention.
图13的实施例的效果是,它使弹幕的播放更好地适应了用户的观看习惯,提高了播放的友好度和用户的舒适度。The effect of the embodiment of Fig. 13 is that it makes the playback of the barrage better adapted to the viewing habits of the user, improving the friendliness of play and the comfort of the user.
图14是根据本发明一个实施例的一种产生叠加在播放对象上的弹幕的装置2的框图。与图11相比,图14增加了对所述对象进行实时截图的单元202(下称“截图单元”)、识别实时截图截得的图片中的元素的单元204(下称“第一识别单元”)、基于识别出的元素在互联网上搜索具有所述识别出的元素的图片和相关评论的单元205(下称“搜索单元”)、判断所述相关评论与所述识别出的元素的对应性的单元206(下称“第三判断单元”)、在播放对象上突出显示在互联网上搜索到最多对应的相关评论的元素的单元207(下称“突出显示单元”)。Figure 14 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object, in accordance with one embodiment of the present invention. Compared with FIG. 11 , FIG. 14 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshots on the object, and a unit 204 that identifies elements in the picture captured by the real-time screenshot (hereinafter referred to as “the first identification unit”. a unit 205 (hereinafter referred to as "search unit") that searches for pictures and related comments having the identified elements on the Internet based on the identified elements, and determines correspondence between the related comments and the identified elements. The unit 206 (hereinafter referred to as "third judgment unit") highlights a unit 207 (hereinafter referred to as "highlighting unit") that searches for an element of the most relevant related comment on the Internet on the playback object.
图14中的截图单元202与图13中的截图单元202相同。The screenshot unit 202 in FIG. 14 is the same as the screenshot unit 202 in FIG.
第一识别单元204识别实时截图截得的图片中的元素。The first identification unit 204 identifies the elements in the picture intercepted by the live screenshot.
元素指图片中表示出的一个完整物体。例如一个苹果、一个书包。An element refers to a complete object represented in the picture. For example, an apple, a school bag.
在一种方式中,可以先找出图片中的色块。色块是图片中具有近似颜色的像素聚合成的块。它可以通过例如针对图片中的任一个像素,比较该像素与周围像素的(R,G,B)值是否小于一个阈值,例如(10,10,10)。如果小于该阈值,则将该周围像素与该像素聚合在一起。然后再比较该周围像素与该周围像素的周围像素的(R,G,B) 值是否小于阈值。以此类推,将整个图片划分成色块。然后,将图片中各色块的边界组成的图形与一个预先设置的图形库中的图形进行匹配。该图形库中存储有各种预先设置的图形和对应的元素名,如苹果的图片和苹果的名称。这样,通过将图片中各色块的边界组成的图形与图形库中的图形进行匹配,就识别出了实时截图截得的图片中的元素。该图形库的图形可以是专家预存的,也可以是通过自学习的方法利用大量图片样本训练一个模型自适应地获得的。In one way, you can first find the color patches in the picture. A color block is a block in which pixels of an approximate color in a picture are aggregated. It can compare whether the (R, G, B) value of the pixel and surrounding pixels is less than a threshold, for example (10, 10, 10), for example for any pixel in the picture. If less than the threshold, the surrounding pixels are aggregated with the pixel. Then compare the surrounding pixels with the surrounding pixels of the surrounding pixels (R, G, B) Whether the value is less than the threshold. By analogy, the entire picture is divided into color blocks. Then, the graphics composed of the boundaries of the patches in the picture are matched with the graphics in a preset graphics library. The graphics library stores various pre-set graphics and corresponding element names, such as Apple's image and Apple's name. In this way, by matching the graphics composed of the boundaries of the color patches in the picture with the graphics in the graphics library, the elements in the picture intercepted by the real-time screenshot are identified. The graphics of the graphics library may be pre-stored by an expert, or may be adaptively obtained by training a model using a large number of image samples by a self-learning method.
如果图片中两个相互之间具有包含关系的元素都能在图形库中找到匹配,则将较大者作为识别出的元素。例如,对于带月亮的帽子,月亮和带月亮的帽子两者都能在图形库中找到匹配,则应认为带月亮的帽子是一个元素。If two elements in the image that have an inclusion relationship with each other can find a match in the graphics library, the larger one is used as the identified element. For example, for a hat with a moon, both the moon and the hat with the moon can find a match in the graphics library, then the hat with the moon should be considered an element.
应当理解,也可以通过其它方式识别实时截图截得的图片中的元素,它们都落在本发明的保护范围之内。It should be understood that the elements in the picture captured by the real-time screenshot may also be identified by other means, which fall within the scope of the present invention.
搜索单元205基于识别出的元素,在互联网上搜索具有所述识别出的元素的图片和相关评论。The search unit 205 searches the Internet for pictures and related comments having the identified elements based on the identified elements.
例如,识别出带有月亮的帽子,然后在互联网上搜索具有带有月亮的帽子的图片和相关评论。For example, identify a hat with a moon and then search the Internet for pictures and related comments with a hat with a moon.
第三判断单元206判断所述相关评论与所述识别出的元素的对应性。The third determining unit 206 determines the correspondence between the related comment and the identified element.
例如,识别出带有月亮的帽子。在互联网上搜索到具有带有月亮的帽子的图片,但该图片上还有一个小孩,而图片的评述中有一些是关于小孩的(目前可以通过语义分析技术识别出评述是关于图片的哪部分的),则认为这些评论与识别出的元素不对应。For example, identify a hat with a moon. I searched the Internet for a picture with a hat with a moon, but there is a child on the picture, and some of the comments in the picture are about children (currently, semantic analysis techniques can be used to identify which part of the picture the comment is about. The comments are considered to correspond to the identified elements.
突出显示单元207在播放对象上突出显示在互联网上搜索到最多对应的相关评论的元素。The highlighting unit 207 highlights an element on the play object that searches for the most relevant related comment on the Internet.
例如在图片上识别出带有月亮的帽子和桌子两个元素,在互联网上搜索到带有月亮的帽子有108个对应的相关评论,桌子有16个对应的相关评论,则在播放对象上突出显示带有月亮的帽子。For example, in the picture, the hat and the table with the moon are identified. On the Internet, there are 108 corresponding related comments on the hat with the moon. The table has 16 corresponding related comments, which are highlighted on the playback object. Show the hat with the moon.
在播放对象上突出显示在互联网上搜索到最多对应的相关评论 的元素的方式可以是在元素的周围叠加一个框,也可以是在元素上叠加一层亮光,也可以是本领域技术人员能想到的其它突出显示的方式,它们都落在本发明的保护范围之内。Highlight the most relevant comments found on the Internet on the playback object The elements may be arranged by superimposing a frame around the elements, or by superimposing a layer of light on the elements, or other highlighting methods that can be conceived by those skilled in the art, which fall within the scope of the present invention. within.
图14的实施例的效果是,它能够结合互联网上对播放对象截图中各个元素的议论程度,找出最热议的元素并突出显示,从而将用户有限的精力集中到整个画面中最需要关注的元素,使用户观看时获得更多信息。The effect of the embodiment of FIG. 14 is that it can combine the degree of discussion on the elements of the screenshot of the playback object on the Internet, find the hottest elements and highlight them, thereby concentrating the user's limited energy on the entire picture. Elements that allow users to get more information when watching.
图15是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置2的框图。与图11相比,图15增加了对所述对象进行实时截图的单元202(下称“截图单元”)、识别实时截图截得的图片中的元素的单元204(下称“第一识别单元”)、根据识别出的元素判断所述图片的感情色彩的单元208(下称“第四判断单元”)、基于判断出的所述图片的感情色彩确定弹幕文字的播放速度的单元209(下称“第一确定单元”)。Figure 15 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared with FIG. 11 , FIG. 15 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshots on the object, and a unit 204 that identifies elements in the picture captured by the real-time screenshot (hereinafter referred to as “the first identification unit”. a unit 208 (hereinafter referred to as a "fourth determining unit") that determines the emotional color of the picture based on the identified element, and a unit 209 that determines the playing speed of the barrage text based on the determined emotional color of the picture ( Hereinafter referred to as "first determining unit").
图15中的截图单元202、第一识别单元204与图14中的截图单元202、第一识别单元204相同。The screenshot unit 202 and the first identification unit 204 in FIG. 15 are the same as the screenshot unit 202 and the first identification unit 204 in FIG.
第四判断单元208根据识别出的元素,判断所述图片的感情色彩。The fourth determining unit 208 determines the emotional color of the picture based on the identified element.
例如,当识别出喜字时,代表的感情色彩是欢快。当识别是医院病房时,代表的感情色彩是悲伤。For example, when a hi word is recognized, the emotional color represented is cheerful. When the identification is a hospital ward, the emotional color of the representative is sad.
在一种方式中,可以在弹幕网站的服务器设置一个感情色彩分数数据库,预先存储各种可能识别出的元素及对应的感情色彩分数。元素代表的感情色彩是欢快的,感情色彩分数为正。感情色彩越欢快,则感情色彩分数正的越多。元素代表的感情色彩是悲伤的,感情色彩分数为负。感情色彩越悲伤,则感情色彩分数负的越多。当一个元素既不代表欢快,也不代表悲伤,则在感情色彩分数数据库找不到对应的感情色彩分数。如果图片中仅有一个元素在感情色彩分数数据库中有对应的感情色彩分数,该感情色彩分数作为整个图片的感情色彩分数。如果图片中有多个元素在感情色彩分数数据库中有对应的感情色彩分数,将这多个元素对应的感情色彩分数的平均值作为图片的感情 色彩分数。In one mode, an emotional color score database can be set up on the server of the barrage website to pre-store various possible identified elements and corresponding emotional color scores. The emotional color represented by the elements is cheerful, and the emotional color score is positive. The more cheerful the emotional color, the more positive the emotional color score. The emotional color represented by the element is sad, and the emotional color score is negative. The more sad the emotional color, the more negative the emotional color score. When an element does not represent cheerfulness or grief, the corresponding emotional color score cannot be found in the emotional color score database. If there is only one element in the picture that has a corresponding emotional color score in the emotional color score database, the emotional color score is used as the emotional color score of the entire picture. If there are multiple elements in the image that have corresponding emotional color scores in the emotional color score database, the average of the emotional color scores corresponding to the multiple elements is taken as the emotional relationship of the image. Color score.
应当理解,也可以有其它根据识别出的元素判断所述图片的感情色彩的方式,它们都落在本发明的保护范围之内。It should be understood that there may be other ways of determining the emotional color of the picture based on the identified elements, all of which fall within the scope of the present invention.
第一确定单元209基于判断出的所述图片的感情色彩,确定弹幕文字的播放速度。The first determining unit 209 determines the playback speed of the barrage text based on the determined emotional color of the picture.
例如,在弹幕网站的服务器中存储有图片的感情色彩分数与弹幕文字的播放速度的对应表。这样,就可以通过查表的方式,基于判断出的所述图片的感情色彩,确定弹幕文字的播放速度。For example, in the server of the barrage website, a correspondence table of the emotional color score of the picture and the playback speed of the barrage text is stored. In this way, the playback speed of the barrage text can be determined based on the determined emotional color of the picture by means of a table lookup.
应该理解,也可以有其它基于判断出的所述图片的感情色彩确定弹幕文字的播放速度的方式,它们都落在本发明的保护范围之内。It should be understood that there may be other ways of determining the playback speed of the barrage text based on the determined emotional color of the picture, which are all within the scope of the present invention.
另外,第一播放单元230被配置为:以确定出的播放速度,播放弹幕文字。In addition, the first playing unit 230 is configured to: play the barrage text at the determined playing speed.
图15的实施例的效果是,以与画面的感情色彩相对应的播放速度来播放弹幕文字。当整个画面越欢快时,弹幕文字的播放速度越快。当整个画面越悲伤时,弹幕文字的播放速度越慢。这非常符合用户观看播放对象时的观感,能够极大提高用户的观看舒适度。The effect of the embodiment of Fig. 15 is to play the barrage text at a playback speed corresponding to the emotional color of the picture. When the whole picture is more cheerful, the faster the barrage text is played. When the whole picture is sad, the playback speed of the barrage text is slower. This is very consistent with the look and feel of the user when viewing the object, which can greatly improve the user's viewing comfort.
图16是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置2的框图。与图11相比,图16增加了响应于对播放的弹幕文字的第一操作,停止播放弹幕文字,显示至少包含点赞、评论、转发功能中的一种的功能区的单元240(下称“第一显示单元”)和响应于对所述功能区中的功能的第二操作,执行与该功能相应的处理的单元250(下称“执行单元”)。Figure 16 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared with FIG. 11, FIG. 16 adds a unit 240 for stopping the playing of the barrage text in response to the first operation of the played barrage text, displaying a functional area containing at least one of the like, comment, and forwarding functions ( Hereinafter, the "first display unit" and a unit 250 (hereinafter referred to as "execution unit") that performs processing corresponding to the function in response to the second operation of the function in the function area.
第一显示单元240响应于对播放的弹幕文字的第一操作,停止播放弹幕文字,显示至少包含下列功能中的一种的功能区:点赞、评论、转发。The first display unit 240 stops playing the barrage text in response to the first operation of the played barrage text, and displays a functional area including at least one of the following functions: like, comment, and forward.
当用户在桌面电脑上观看播放对象时,第一操作例如用鼠标悬停在播放的弹幕文字上。当用户在手机上观看播放对象时,第一操作例如用户的手势悬停在播放的弹幕文字上。当用户在电视上观看电视节目时,第一操作例如用户的手势悬停在与电视绑定的手机上播放的弹 幕文字上。When the user views the playback object on the desktop computer, the first operation, for example, hovering over the played barrage text with the mouse. When the user views the play object on the mobile phone, the first operation such as the user's gesture hovering over the played barrage text. When the user watches the television program on the television, the first operation, such as the user's gesture hovering on the mobile phone bound to the television, is played. On the screen text.
当然,还有其它第一操作的方式,例如第一操作可以是用鼠标单击、双击或右击播放的弹幕文字等。Of course, there are other ways of the first operation, for example, the first operation may be a barrage text that is clicked with a mouse, double-clicked, or right-clicked.
停止播放弹幕文字的含义是正在播放的其它弹幕文字在屏幕或播放对象上消失,第一操作所针对的弹幕文字静止。对于在屏幕或播放对象上消失的弹幕文字,可以在当前用户完成点赞、评论或转发后,恢复在屏幕或播放对象上播放,也可以不再播放。The meaning of stopping the play of the barrage text is that the other barrage text being played disappears on the screen or the playback object, and the barrage text for the first operation is still. For the barrage text that disappears on the screen or the playback object, the current user can resume playing on the screen or the playback object after the current user completes the like, comment or forwarding, or can no longer play.
停止播放弹幕文字的作用是使用户安心进行点赞、评论或转发操作,提高用户进行点赞、评论或转发的体验。The function of stopping the playing of the barrage text is to make the user feel like a like, comment or forward operation, and improve the user's experience of like, comment or forward.
可以在第一操作所针对的弹幕文字的旁边显示至少包含点赞、评论、转发功能中的一种的功能区,也可以在屏幕或播放对象的指定位置显示该功能区。A function area including at least one of a favorite, a comment, and a forwarding function may be displayed next to the barrage text for which the first operation is directed, or may be displayed at a specified position of the screen or the playback object.
执行单元250响应于对所述功能区中的功能的第二操作,执行与该功能相应的处理。The execution unit 250 performs processing corresponding to the function in response to the second operation of the function in the function area.
当用户在桌面电脑上观看播放对象时,第二操作例如用鼠标单击、双击、或右击所述功能区中相应功能的位置。当用户在手机上观看播放对象时,第二操作例如用户触摸所述功能区中相应功能的位置。当用户在电视上观看电视节目时,第二操作例如用户触摸与电视绑定的手机上所述功能区中相应功能的位置。When the user views the play object on the desktop computer, the second operation is, for example, clicking with a mouse, double clicking, or right clicking on the position of the corresponding function in the function area. When the user views the play object on the mobile phone, the second operation, such as the user touching the location of the corresponding function in the functional area. When the user watches the television program on the television, a second operation, such as the user touching the location of the corresponding function in the functional area on the handset bound to the television.
第二操作也可以是上述操作之外的其它规定的操作,它们都落入本发明的保护范围之内。The second operation may also be other specified operations than those described above, and they all fall within the scope of the present invention.
当第二操作针对的功能是点赞时,与该功能相应的处理是给该弹幕文字点赞。即,给点赞功能旁边显示的点赞人数加1。如果用户想要查看是哪些用户给该弹幕文字点了赞,触发(例如单击、双击、右击)显示的该点赞人数,则在屏幕上显示给该弹幕文字点赞的用户名称和/或头像。When the function for the second operation is a compliment, the processing corresponding to the function is to praise the barrage text. That is, add 1 to the number of likes displayed next to the Like feature. If the user wants to see which users have liked the barrage text and triggered (such as click, double click, right click) to display the number of likes, the user name that is praised for the barrage text is displayed on the screen. And / or avatar.
当第二操作针对的功能是评论时,与该功能相应的处理是在屏幕上显示评论输入框。接收到用户在评论输入框中输入的评论后,给评论功能旁边的评论人数加1。如果用户想要查看评论的具体内容或谁 给该弹幕文字加了评论,触发(例如单击、双击、右击)显示的该评论人数,则在屏幕上显示给该弹幕文字加评论的用户名称和/或头像、以及用户的评论。When the function for the second operation is a comment, the processing corresponding to the function is to display a comment input box on the screen. After receiving the comment entered by the user in the comment input box, add 1 to the number of comments next to the comment function. If the user wants to see the specific content of the comment or who Adding a comment to the barrage text, triggering (for example, clicking, double-clicking, right-clicking) the number of comments displayed, then displaying the user name and/or avatar for the title of the barrage text, and the user's comment on the screen. .
当第二操作针对的功能是转发时,与该功能相应的处理是为当前用户生成一条新的弹幕文字,其内容是第二操作针对的弹幕文字加上一个转发标记。当然,也可以先显示一个提示框,提示用户是否在转发的同时输入评论。如果用户选择在转发的同时输入评论,为当前用户生成一条新的弹幕文字,其内容是用户输入的评论加上转发所针对的弹幕文字。When the function for the second operation is forwarding, the corresponding processing is to generate a new barrage text for the current user, the content of which is the barrage text for the second operation plus a forwarding tag. Of course, you can also display a prompt box to prompt the user to enter a comment while forwarding. If the user chooses to enter a comment while forwarding, a new barrage text is generated for the current user, the content of which is the comment entered by the user plus the barrage text targeted for forwarding.
在播放弹幕文字时,弹幕文字前面有发表该弹幕文字的用户名和/或头像。用户还可以触发(例如单击、双击、右击)该用户名和/或头像,然后向用户显示与该用户名和/或头像的用户私聊的界面,通过该界面可以私聊。When playing the barrage text, the user name and/or avatar of the barrage text is displayed in front of the barrage text. The user can also trigger (eg, click, double click, right click) the username and/or avatar, and then display to the user an interface that is privately chatted with the user of the username and/or avatar through which the private chat can be made.
图16的实施例的效果是,与现有技术的弹幕视频只能自己发表弹幕文字或观看弹幕文字、不能完成弹幕的互动相比,该实施例提供了一种对弹幕文字进行互动的可能,提高了对用户的激励。The effect of the embodiment of FIG. 16 is that the embodiment provides a pair of barrage text compared to the prior art barrage video which can only publish the barrage text itself or view the barrage text and cannot complete the barrage interaction. The possibility of interaction increases the incentives for users.
图17是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置2的框图。与图16相比,图17增加了在执行与该功能相应的处理后,改变第一操作所针对的弹幕文字的显示样式的单元251(下称“改变单元”)。Figure 17 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared with FIG. 16, FIG. 17 adds a unit 251 (hereinafter referred to as "change unit") which changes the display style of the barrage text for the first operation after the processing corresponding to the function is executed.
改变第一操作所针对的弹幕文字的显示样式可以是将第一操作所针对的弹幕文字的字体增大。这样,当对某条弹幕文字点赞、评论或转发的人数越来越多时,该弹幕文字的字体就越来越大,使用户更容易注意到这条弹幕文字。The display style of the barrage text for which the first operation is changed may be to increase the font of the barrage text for which the first operation is directed. Thus, when more and more people like, praise, or forward a certain barrage text, the font of the barrage text becomes larger and larger, making it easier for users to notice the barrage text.
改变第一操作所针对的弹幕文字的显示样式还可以是将第一操作所针对的弹幕文字的亮度增大。这样,当对某条弹幕文字点赞、评论或转发的人数越来越多时,该弹幕文字就越来越亮,也能够达到吸引用户注意这条弹幕文字的效果。The display style of the barrage text for which the first operation is changed may also be to increase the brightness of the barrage text for the first operation. In this way, when more and more people praise, comment or forward a certain barrage text, the barrage text becomes more and more bright, and it can also achieve the effect of attracting users to pay attention to the barrage text.
图17的实施例的效果是,当对某条弹幕文字点赞、评论或转发 的人数越来越多时,该弹幕文字的字体越来越大或越来越亮等,从而是用户能够更多地关注那些其它人更关注的弹幕文字,这些弹幕文字往往更有价值,使用户更容易在短时间内获得最有效的信息。The effect of the embodiment of Figure 17 is that when a certain barrage text is liked, commented or forwarded When the number of people is increasing, the font of the barrage text is getting bigger or brighter, so that users can pay more attention to the barrage words that other people are more concerned about. These barrage words are often more valuable. To make it easier for users to get the most effective information in a short time.
图18是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置2的流程图。与图11相比,图18增加了对所述对象进行实时截图的单元202(下称“截图单元”)、识别实时截图截得的图片中的元素的单元204(下称“第一识别单元”)、接收当前用户发表的弹幕文字的单元260(下称“第二接收单元”)、识别所述图片中与当前用户发表的弹幕文字相关的元素的单元270(下称“第二识别单元”)、在播放对象上播放当前用户发表的弹幕文字的单元280(下称“第二播放单元”)Figure 18 is a flow diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared with FIG. 11 , FIG. 18 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshots on the object, and a unit 204 that identifies elements in the picture captured by the real-time screenshot (hereinafter referred to as “the first identification unit”. ”, a unit 260 (hereinafter referred to as “second receiving unit”) that receives the barrage text published by the current user, and a unit 270 that identifies an element related to the barrage text published by the current user in the picture (hereinafter referred to as “the second”) The identification unit "), the unit 280 (hereinafter referred to as "second playback unit") that plays the barred text of the current user on the playback object
图18中的截图单元202、第一识别单元204与图15中的截图单元202、第一识别单元204一致。The screenshot unit 202 and the first identification unit 204 in FIG. 18 are consistent with the screenshot unit 202 and the first identification unit 204 in FIG.
第二接收单元260接收当前用户发表的弹幕文字。The second receiving unit 260 receives the barrage text published by the current user.
例如,在屏幕或播放对象的下部(例如弹幕背景区域的更下面)设置有一个弹幕文字发表区。用户可以在该弹幕文字发表区发表弹幕文字。For example, a barred text publishing area is provided on the lower portion of the screen or the playback object (for example, below the background area of the barrage). The user can post the barrage text in the bulletin text publishing area.
该弹幕文字发表区也可以设置在屏幕或播放对象的其它位置,例如屏幕或播放对象的上部。The bullet text publishing area can also be set on the screen or other location of the playback object, such as the upper part of the screen or the playback object.
第二识别单元270识别所述图片中与当前用户发表的弹幕文字相关的元素。The second identification unit 270 identifies an element in the picture that is related to the barrage text published by the current user.
利用目前已有的分词技术将用户发表的弹幕文字分词。由于在步骤104中已经识别出图片中的各元素及元素名,将分成的词语分别与识别出的图片中的各元素的元素名进行匹配。如果匹配上,则认为该元素名对应的元素与当前用户发表的弹幕文字相关。Use the existing word segmentation technology to segment the user's published barrage text. Since each element and element name in the picture has been identified in step 104, the divided words are respectively matched with the element names of the respective elements in the recognized picture. If it matches, the element corresponding to the element name is considered to be related to the barrage text published by the current user.
第二播放单元280在播放对象上播放当前用户发表的弹幕文字,其中当前用户发表的弹幕文字从所述与当前用户发表的弹幕文字相关的元素的位置处出现,沿特定轨迹进入播放对象上叠加的弹幕背景区域进行播放。 The second playing unit 280 plays the barrage text published by the current user on the playing object, wherein the barrage text published by the current user appears from the position of the element related to the barrage text published by the current user, and enters the playing along the specific track. The background area of the barrage superimposed on the object is played.
该特定轨迹例如是蛇形、爆炸形轨迹等。该特定轨迹可以实现由用户设定。The specific trajectory is, for example, a serpentine shape, a star-shaped trajectory This particular trajectory can be implemented by the user.
例如,当前用户发表的弹幕文字是“这个小熊好可爱啊!”。在截图得到的图片中识别出小熊,则弹幕文字“这个小熊好可爱啊!”从播放对象上的这个小熊处出现,沿一个蛇形轨迹进入在播放对象底部的条形的弹幕背景区域中,然后在弹幕背景区域中从右向左播放。For example, the current user's barrage text is "This bear is so cute!". In the picture obtained from the screenshot, the bear is identified, and the barrage text "This bear is so cute!" appears from the bear on the playback object, along a serpentine track into the bar-shaped background area of the bar at the bottom of the object. Medium, then play from right to left in the background area of the barrage.
图18的实施例的效果是,让当前用户发表的弹幕文字从其弹幕文字所针对的元素处出现,沿特定轨迹进入播放对象上叠加的弹幕背景区域进行播放,使得当前用户的弹幕文字与其针对的元素在屏幕上的对应关系一目了然地显示出来,增强了用户的体验。另外,让当前用户自己发表的弹幕文字的播放轨迹形状从其它用户发表的弹幕文字的轨迹播放形状区分开,使当前用户能够清楚区分开哪些是自己发表的弹幕文字,哪些是其它用户发表的弹幕文字。The effect of the embodiment of FIG. 18 is that the current user-published barrage text appears from the element to which the barrage text is directed, and enters the background area of the barrage superimposed on the object to be played along a specific track, so that the current user's bullet is played. The corresponding relationship between the screen text and the elements it targets on the screen is clearly displayed, enhancing the user experience. In addition, the shape of the play track of the current user's own published barrage text is distinguished from the track play shape of the barrage text published by other users, so that the current user can clearly distinguish which are the published barrage texts and which are other users. Published barrage text.
图19是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置2的框图。与图11相比,图19增加了对所述对象进行实时截图的单元202(下简称“截图单元”)、识别实时截图截得的图片中的元素的单元204(下简称“第一识别单元”)、基于识别出的元素在互联网上搜索具有所述识别出的元素的图片和相关评论的单元205(下简称“搜索单元”)、判断所述相关评论与所述识别出的元素的对应性的单元206(下简称“第三判断单元”)、响应于当前用户对播放对象特定位置的第三操作,查找出该特定位置所属的元素的单元256(下简称“第二确定单元”)、根据查找出的元素向当前用户显示在互联网上搜索到的与该元素相应的所述相关评论的单元258(下简称“第二显示单元”)。Figure 19 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared with FIG. 11 , FIG. 19 adds a unit 202 (hereinafter referred to as “screening unit”) that performs real-time screenshots on the object, and a unit 204 that identifies elements in the picture captured by the real-time screenshot (hereinafter referred to as “the first identification unit”. a unit 205 (hereinafter referred to as "search unit") that searches for pictures and related comments having the identified elements on the Internet, and determines the correspondence between the related comments and the identified elements. The unit 206 (hereinafter referred to as "the third determining unit"), in response to the current user's third operation on the specific position of the playing object, finds the unit 256 of the element to which the specific position belongs (hereinafter referred to as "the second determining unit") And displaying, by the found element, the unit 258 (hereinafter referred to as “second display unit”) of the related comment corresponding to the element searched on the Internet to the current user.
图19中的截图单元202、第一识别单元204、搜索单元205、第三判断单元206与图14中的截图单元202、第一识别单元204、搜索单元205、第三判断单元206是一致的。The screenshot unit 202, the first identification unit 204, the search unit 205, and the third determination unit 206 in FIG. 19 are consistent with the screenshot unit 202, the first identification unit 204, the search unit 205, and the third determination unit 206 in FIG. .
第二确定单元256响应于当前用户对播放对象特定位置的第三操作,确定出该特定位置所属的元素。 The second determining unit 256 determines an element to which the specific location belongs in response to the current user's third operation on the specific location of the playback object.
当前述第一操作是例如用鼠标悬停在播放的弹幕文字上、用户的手势悬停在播放的弹幕文字上等时,第三操作可以是用鼠标单击、双击、或右击播放对象的特定位置。当前述第一操作是例如用鼠标单击、双击、或右击播放对象的特定位置时,第三操作可以是例如用鼠标悬停在播放的弹幕文字上、用户的手势悬停在播放的弹幕文字上等。第三操作一般采用与第一操作不一样的方式,这是因为如果采用一样的方式,就很难识别用户是想要对播放的弹幕文字点赞、评论或转发,还是想要看关于该元素互联网上有哪些相关评论。When the foregoing first operation is, for example, hovering over the played barr text with the mouse, the user's gesture hovering over the played barrage text, etc., the third operation may be a mouse click, a double click, or a right click play. The specific location of the object. When the foregoing first operation is, for example, a mouse click, a double tap, or a right click on a specific position of the playback object, the third operation may be, for example, hovering over the played barr text with the mouse, and the user's gesture hovering over the play. The barrage text is equal. The third operation generally adopts a different method from the first operation, because if the same method is used, it is difficult to recognize whether the user wants to like, comment or forward the played barrage text, or want to see about the What are the relevant comments on the elemental internet.
由于已经识别出元素和元素的边界,因此就可以确定第三操作所针对的特定位置是属于哪个元素。当该特定位置落在多个元素的边界内,可以将该多个元素的边界内拥有该特定位置面积最大的元素确定为特定位置所属的元素。Since the boundaries of the elements and elements have been identified, it is possible to determine which element the particular location for which the third operation is directed belongs. When the specific location falls within the boundary of the plurality of elements, the element having the largest area of the specific location within the boundary of the plurality of elements may be determined as the element to which the specific location belongs.
第二显示单元258根据确定出的元素,向当前用户显示在互联网上搜索到的与该元素相应的所述相关评论。The second display unit 258 displays the related comment corresponding to the element searched on the Internet to the current user according to the determined element.
这些相关评论例如显示在屏幕或播放对象上出现的一个提示框中。该提示框可能同时还提示用户输入想要发表的评论,即弹幕文字。这样,就能达到用户可以一边看着互联网上对某一元素已经发表的评论,一边发表弹幕文字的目的。These related comments are displayed, for example, in a prompt box that appears on the screen or on the playback object. The prompt box may also prompt the user to enter a comment to be published, that is, a barrage text. In this way, users can be able to publish the words of the barrage while watching the comments on the Internet that have been published on an element.
也就是说,发表弹幕文字既可以通过在屏幕或播放对象的弹幕文字发表区进行,也可以通过对播放对象的特定位置的第三操作进行,而且后者可以看到互联网上针对某一元素已经发表的评论,发表弹幕文字更有的放矢。That is to say, the publication of the barrage text can be performed either through the bullet-screen text publishing area of the screen or the playback object, or by the third operation of the specific position of the playback object, and the latter can be seen on the Internet for a certain The elements have been published in the comments, and the published barrage text is more targeted.
图19的实施例的效果是,使用户能够一边看着互联网上针对某一元素已经发表的评论一边发表弹幕文字,更有针对性地发表弹幕文字,提高用户友好度。The effect of the embodiment of Fig. 19 is to enable the user to publish the barrage text while looking at the comments on the Internet that have been published for an element, and to more specifically publish the barrage text to improve user friendliness.
图20是根据本发明另一个实施例的一种产生叠加在播放对象上的弹幕的装置2的框图。与图11相比,图20增加了在电视节目中显示电视节目所在服务器地址或二维码的单元2001(下称“第三显示单元”)、接收用户通过移动设备发送的电视节目所在服务器地址及电 视节目名、或发送的扫描的二维码的单元2002(下称“第三接收单元”)。Figure 20 is a block diagram of an apparatus 2 for generating a barrage superimposed on a playback object in accordance with another embodiment of the present invention. Compared with FIG. 11, FIG. 20 adds a unit 2001 (hereinafter referred to as "third display unit") for displaying a server address or a two-dimensional code of a television program in a television program, and a server address of a television program transmitted by a user through a mobile device. And electricity A unit 2002 (hereinafter referred to as "third receiving unit") that views the program name or the scanned two-dimensional code.
现有技术的弹幕只能针对图片或视频发表。用户访问带有图片或视频的网页,该网页的网站服务器将终端ID(可能还有登录账户名)和该网页地址、该图片或视频名称一起发到弹幕网站的服务器,供弹幕网站的服务器制作带有弹幕的层后发回该网页的网站服务器将该层叠加在该图片或视频上供用户观看。现有技术的弹幕不能针对电视节目,这是因为用户对电视机缺乏操作接口以及不知道电视台服务器的地址等原因。Prior art barrage can only be published for pictures or videos. The user visits a web page with a picture or video, and the web server of the web page sends the terminal ID (and possibly the login account name) along with the web page address, the picture or video name to the server of the barrage website for the barrage website. The server that makes the layer with the barrage and sends it back to the webpage server superimposes the layer on the image or video for the user to watch. The prior art barrage cannot be directed to a television program because the user lacks an operational interface to the television set and does not know the address of the television station server.
本发明可以针对电视节目发表弹幕。The present invention can be used to publish a barrage for a television program.
第三显示单元2001在电视节目中显示电视节目所在服务器地址或二维码,该二维码包括电视节目所在服务器地址和电视节目名。The third display unit 2001 displays the server address or the two-dimensional code of the television program in the television program, and the two-dimensional code includes the server address where the television program is located and the television program name.
服务器地址例如显示在电视节目的顶端,二维码例如显示在电视节目的右下角,但也可以是其它位置。The server address is displayed, for example, at the top of the television program, and the two-dimensional code is displayed, for example, in the lower right corner of the television program, but may be other locations.
第三接收单元2002接收用户通过移动设备发送的电视节目所在服务器地址及电视节目名、或发送的扫描的二维码,将该移动设备的识别号与该服务器地址的该电视节目绑定,从而针对该电视节目的与弹幕有关的操作通过该移动设备进行。The third receiving unit 2002 receives the server address and the TV program name of the television program transmitted by the user through the mobile device, or the scanned two-dimensional code, and binds the identification number of the mobile device to the television program of the server address, thereby The barrage-related operations for the television program are performed by the mobile device.
在一种方式中,用户看到电视节目上显示的服务器地址后,可以在其移动设备上访问该服务器地址并输入其观看的电视节目名。由于该移动设备访问了电视台的服务器,电视台的服务器就会知道该移动设备的ID。电视台的服务器就会将该移动设备的ID与该电视台服务器上的该电视节目进行绑定。绑定的含义是针对该电视节目的与弹幕有关的操作通过该移动设备进行。例如前述的在对其它用户发表的弹幕文字进行点赞、评论、转发时用到的第一、第二操作,在对特定元素发表弹幕文字时用到的第三操作,默认为都是由该移动设备进行的。此时,当用户例如在该移动设备上对特定位置执行第三操作时,电视台服务器就将该对特定位置的第三操作报告给弹幕网站的服务器。而且,由于该移动设备访问了电视台的服务器,电视台的服务器 也会将该移动设备ID(可能还有登录账户名)、其访问的电视台服务器地址、电视节目名发送到弹幕网站的服务器。在当前用户发表了弹幕文字后,弹幕网站服务器会知道是哪个移动设备ID的用户(哪个登录账户名的用户)发表了弹幕,将该用户的移动设备ID(或登录账户名)一起发表。In one approach, after the user sees the server address displayed on the television program, the user can access the server address on their mobile device and enter the television program name they are watching. Since the mobile device accesses the server of the television station, the server of the television station knows the ID of the mobile device. The television station's server will bind the mobile device's ID to the television program on the television station server. The meaning of the binding is that the barrage-related operations for the television program are performed by the mobile device. For example, the first operation and the second operation used for the praise, comment, and forwarding of the barrage texts published by other users, and the third operation used when the barrage text is published for a specific element, the default is Performed by the mobile device. At this time, when the user performs the third operation on the specific location, for example, on the mobile device, the television station server reports the third operation of the specific location to the server of the barrage website. Moreover, since the mobile device accesses the server of the television station, the server of the television station The mobile device ID (and possibly the login account name), the TV station server address it visits, and the TV program name are also sent to the server of the barrage website. After the current user has published the barrage text, the barrage web server will know which mobile device ID user (which user who logged in to the account name) has published a barrage, and the user's mobile device ID (or login account name) together Published.
在另一种方式中,用户看到电视节目上显示的二维码后,可以利用其移动设备扫描该二维码。由于该二维码包括电视节目所在服务器地址和电视节目名,扫描二维码的结果就是用户自动登录了电视台的服务器。这样,电视台的服务器就会知道该移动设备的ID。电视台的服务器就会将该移动设备的ID与该电视台服务器上的正播放的电视节目进行绑定。In another mode, after the user sees the two-dimensional code displayed on the television program, the user can scan the two-dimensional code with his mobile device. Since the two-dimensional code includes the server address and the TV program name where the television program is located, the result of scanning the two-dimensional code is that the user automatically logs in to the server of the television station. In this way, the server of the television station will know the ID of the mobile device. The television station's server will bind the ID of the mobile device to the television program being played on the television station server.
图20的实施例的效果是,通过传递电视节目所在服务器地址或二维码的方式使移动设备与电视台服务器的电视节目绑定,从而实现带有弹幕的电视节目。The effect of the embodiment of Fig. 20 is to enable the mobile device to be bound to the television program of the television station server by transmitting the server address or the two-dimensional code of the television program, thereby realizing the television program with the barrage.
所属技术领域的技术人员知道,本发明可以实现为设备、装置、方法或计算机程序产品。因此,本公开可以具体实现为以下形式,即:可以是完全的硬件,也可以是完全的软件,还可以是硬件和软件结合的形式。Those skilled in the art will recognize that the present invention can be implemented as a device, apparatus, method, or computer program product. Therefore, the present disclosure may be embodied in the following forms, that is, it may be complete hardware, full software, or a combination of hardware and software.
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。 The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the invention. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It is apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, and the present invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in the present invention. Any reference signs in the claims should not be construed as limiting the claim.
虽然前面特别示出并且描述了示例性实施例,但是本领域技术人员将会理解的是,在不背离权利要求书的精神和范围的情况下,在其形式和细节方面可以有所变化。这里所寻求的保护在所附权利要求书中做了阐述。在下列编号条款中规定了各个实施例的这些和其他方面:While the invention has been shown and described with reference to the embodiments of the embodiments of the invention The protection sought herein is set forth in the appended claims. These and other aspects of various embodiments are set forth in the following numbering clauses:
1.一种产生叠加在播放对象上的弹幕的方法(1),包括:A method (1) for generating a barrage superimposed on a playback object, comprising:
接收当前用户以外的其它用户发表的弹幕文字(110);Receiving a barrage text (110) issued by a user other than the current user;
根据当前用户的登录账户信息中的好友信息,判断该其它用户是否是当前用户的好友(120);Determining, according to the friend information in the login account information of the current user, whether the other user is a friend of the current user (120);
在播放对象上播放所述弹幕文字(130),其中如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。Playing the barrage text (130) on the play object, wherein if the other user is not the current user's friend, playing the barrage text on the play object in the shape of the first play track; if the other user is the current user's friend, The barrage text is played on the playback object in a second play track shape different from the shape of the first play track.
2.根据条款1的方法(1),还包括:2. According to the method (1) of Clause 1, further comprising:
判断所述其它用户发表的弹幕文字是否与互联网突发话题或热门事件相关(121),且Determining whether the barrage text published by the other user is related to an Internet sudden topic or a hot event (121), and
在播放对象上播放弹幕文字(130)的步骤包括:如果所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关,以不同于第一播放轨迹形状的第三播放轨迹形状在播放对象上播放弹幕文字。The step of playing the barrage text (130) on the play object includes: if the barrage text published by the other user is related to an Internet burst topic or a popular event, the shape of the third play track different from the shape of the first play track is Play the barrage text on the playback object.
3.根据条款1的方法(1),还包括:3. According to the method (1) of Clause 1, further comprising:
对所述对象进行实时截图(102); Performing a real-time screenshot of the object (102);
分析实时截图截得的图片中的主色(103),且Analyze the primary color (103) in the captured image of the live screenshot, and
在播放对象上播放弹幕文字(130)的步骤包括在播放对象上叠加的弹幕背景区域中播放弹幕文字,其中弹幕背景区域的颜色设置成基于主色得到的第一色,弹幕文字的颜色设置成基于主色得到的第二色。The step of playing the barrage text (130) on the playing object includes playing the barrage text in the background area of the barrage superimposed on the playing object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color, the barrage The color of the text is set to the second color based on the main color.
4.根据条款1的方法(1),还包括:4. According to the method (1) of Clause 1, further comprising:
对所述对象进行实时截图(102);Performing a real-time screenshot of the object (102);
识别实时截图截得的图片中的元素(104);Identifying elements in the picture captured by the real-time screenshot (104);
基于识别出的元素,在互联网上搜索具有所述识别出的元素的图片和相关评论(105);Searching for pictures and related comments having the identified elements on the Internet based on the identified elements (105);
判断所述相关评论与所述识别出的元素的对应性(106);Determining a correspondence of the related comment to the identified element (106);
在播放对象上突出显示在互联网上搜索到最多对应的相关评论的元素(107)。An element (107) that searches for the most relevant related comment on the Internet is highlighted on the play object.
5.根据条款1的方法(1),还包括:5. According to the method (1) of Clause 1, further comprising:
对所述对象进行实时截图(102);Performing a real-time screenshot of the object (102);
识别实时截图截得的图片中的元素(104);Identifying elements in the picture captured by the real-time screenshot (104);
根据识别出的元素,判断所述图片的感情色彩(108);Determining the emotional color of the picture according to the identified element (108);
基于判断出的所述图片的感情色彩,确定弹幕文字的播放速度(109),且Determining the playing speed of the barrage text based on the determined emotional color of the picture (109), and
在播放对象上播放弹幕文字(130)的步骤包括:以确定出的播放速度,播放弹幕文字。The step of playing the barrage text (130) on the playback object includes: determining the playback speed and playing the barrage text.
6.根据条款1的方法(1),还包括:6. According to the method (1) of clause 1, further comprising:
响应于对播放的弹幕文字的第一操作,停止播放弹幕文字,显示至少包含下列功能中的一种的功能区:点赞、评论、转发(140)。In response to the first operation of the played barrage text, the playback of the barrage text is stopped, displaying a functional area containing at least one of the following functions: like, comment, forward (140).
响应于对所述功能区中的功能的第二操作,执行与该功能相应的处理(150)。In response to the second operation of the function in the functional area, processing corresponding to the function is performed (150).
7.根据条款6的方法(1),还包括:7. The method (1) according to clause 6, further comprising:
在执行与该功能相应的处理后,改变第一操作所针对的弹幕文字的显示样式(151)。 After the processing corresponding to the function is performed, the display style of the barrage text for the first operation is changed (151).
8.根据条款1的方法(1),还包括:8. According to the method (1) of clause 1, further comprising:
对所述对象进行实时截图(102);Performing a real-time screenshot of the object (102);
识别实时截图截得的图片中的元素(104);Identifying elements in the picture captured by the real-time screenshot (104);
接收当前用户发表的弹幕文字(160);Receiving the barrage text (160) published by the current user;
识别所述图片中与当前用户发表的弹幕文字相关的元素(170);Identifying an element (170) in the picture related to the barrage text published by the current user;
在播放对象上播放当前用户发表的弹幕文字(180),其中当前用户发表的弹幕文字从所述与当前用户发表的弹幕文字相关的元素的位置处出现,沿特定轨迹进入播放对象上叠加的弹幕背景区域进行播放。Playing the barrage text (180) published by the current user on the playing object, wherein the barrage text published by the current user appears from the position of the element related to the barrage text published by the current user, and enters the playing object along a specific track. The superimposed barrage background area is played.
9.根据条款1的方法(1),还包括:9. According to the method (1) of clause 1, further comprising:
对所述对象进行实时截图(102);Performing a real-time screenshot of the object (102);
识别实时截图截得的图片中的元素(104);Identifying elements in the picture captured by the real-time screenshot (104);
基于识别出的元素,在互联网上搜索具有所述识别出的元素的图片和相关评论(105);Searching for pictures and related comments having the identified elements on the Internet based on the identified elements (105);
判断所述相关评论与所述识别出的元素的对应性(106);Determining a correspondence of the related comment to the identified element (106);
响应于当前用户对播放对象特定位置的第三操作,确定该特定位置所属的元素(156);Determining an element to which the specific location belongs in response to the current user's third operation on the specific location of the playback object (156);
根据确定出的元素,向当前用户显示在互联网上搜索到的与该元素相应的所述相关评论(158)。Based on the determined element, the relevant user is searched for the relevant comment (158) corresponding to the element searched on the Internet.
10.根据条款1的方法(1),其中播放对象包括电视节目,且如果播放对象是电视节目,该方法还包括:10. The method (1) of clause 1, wherein the play object comprises a television program, and if the play object is a television program, the method further comprises:
在电视节目中显示电视节目所在服务器地址或二维码,该二维码包括电视节目所在服务器地址和电视节目名(1001);Displaying, in the television program, a server address or a two-dimensional code of the television program, where the two-dimensional code includes a server address where the television program is located and a television program name (1001);
接收用户通过移动设备发送的电视节目所在服务器地址及电视节目名、或发送的扫描的二维码,将该移动设备的识别号与该服务器地址的该电视节目绑定,从而针对该电视节目的与弹幕有关的操作通过该移动设备进行(1002)。Receiving a server address and a television program name of the television program sent by the user through the mobile device, or sending the scanned two-dimensional code, binding the identification number of the mobile device to the television program of the server address, thereby targeting the television program The operation related to the barrage is performed by the mobile device (1002).
11.一种产生叠加在播放对象上的弹幕的装置(2),包括:11. A device (2) for generating a barrage superimposed on a playback object, comprising:
接收当前用户以外的其它用户发表的弹幕文字的单元(210); Receiving a unit (210) of the barrage text published by a user other than the current user;
根据当前用户的登录账户信息中的好友信息判断该其它用户是否是当前用户的好友的单元(220);Determining, according to the friend information in the login account information of the current user, whether the other user is a friend of the current user (220);
在播放对象上播放所述弹幕文字的单元(230),被配置成:如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。The unit (230) for playing the barr text on the play object is configured to: if the other user is not the current user's friend, play the barrage text on the play object in the shape of the first play track; if the other user is The current user's friend plays the barrage text on the play object in a shape of the second play track different from the shape of the first play track.
12.根据条款11的装置(2),还包括:12. The device (2) according to clause 11, further comprising:
判断所述其它用户发表的弹幕文字是否与互联网突发话题或热门事件相关的单元(221),且Determining whether the barred text published by the other user is related to an Internet sudden topic or a hot event (221), and
在播放对象上播放弹幕文字的单元(230)被配置为:如果所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关,以不同于第一播放轨迹形状的第三播放轨迹形状在播放对象上播放弹幕文字。The unit (230) for playing the barrage text on the play object is configured to: if the barrage text published by the other user is related to an Internet burst topic or a popular event, a third play track different from the shape of the first play track The shape plays the barrage text on the playback object.
13.根据条款11的装置(2),还包括:13. The device (2) according to clause 11, further comprising:
对所述对象进行实时截图的单元(202);a unit for real-time screenshot of the object (202);
分析实时截图截得的图片中的主色的单元(203),且A unit (203) of the dominant color in the picture captured in the real-time screenshot is analyzed, and
在播放对象上播放弹幕文字的单元(230)被配置为:在播放对象上叠加的弹幕背景区域中播放弹幕文字,其中弹幕背景区域的颜色设置成基于主色得到的第一色,弹幕文字的颜色设置成基于主色得到的第二色。The unit (230) for playing the barrage text on the playback object is configured to: play the barrage text in the background area of the barrage superimposed on the playback object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color The color of the barrage text is set to a second color based on the main color.
14.根据条款11的装置(2),还包括:14. The device (2) according to clause 11, further comprising:
对所述对象进行实时截图的单元(202);a unit for real-time screenshot of the object (202);
识别实时截图截得的图片中的元素的单元(204);Identifying elements of elements in the picture captured by the real-time screenshot (204);
基于识别出的元素,在互联网上搜索具有所述识别出的元素的图片和相关评论的单元(205);Searching for a unit having a picture of the identified element and related comments on the Internet based on the identified element (205);
判断所述相关评论与所述识别出的元素的对应性的单元(206);a unit (206) for determining a correspondence of the related comment to the identified element;
在播放对象上突出显示在互联网上搜索到最多对应的相关评论的元素的单元(207)。A unit (207) that searches for elements of the most relevant related comment on the Internet is highlighted on the play object.
15.根据条款11的装置(2),还包括:15. Apparatus (2) according to clause 11, further comprising:
对所述对象进行实时截图的单元(202); a unit for real-time screenshot of the object (202);
识别实时截图截得的图片中的元素的单元(204);Identifying elements of elements in the picture captured by the real-time screenshot (204);
根据识别出的元素,判断所述图片的感情色彩的单元(208);Determining a unit of emotional color of the picture based on the identified element (208);
基于判断出的所述图片的感情色彩,确定弹幕文字的播放速度的单元(209),且Determining a unit (209) of the playing speed of the barrage text based on the determined emotional color of the picture, and
在播放对象上播放弹幕文字的单元(230)被配置为:以确定出的播放速度,播放弹幕文字。The unit (230) for playing the barrage text on the playback object is configured to: determine the playback speed, and play the barrage text.
16.根据条款11的装置(2),还包括:16. The device (2) according to clause 11, further comprising:
响应于对播放的弹幕文字的第一操作,停止播放弹幕文字,显示至少包含下列功能中的一种的功能区的单元(240):点赞、评论、转发。In response to the first operation of the played barrage text, the playback of the barrage text is stopped, displaying a unit (240) of the functional area containing at least one of the following functions: like, comment, forward.
响应于对所述功能区中的功能的第二操作,执行与该功能相应的处理的单元(250)。In response to a second operation on a function in the functional area, a unit (250) that performs processing corresponding to the function is performed.
17.根据条款16的装置(2),还包括:17. The device (2) according to clause 16, further comprising:
在执行与该功能相应的处理后,改变第一操作所针对的弹幕文字的显示样式的单元(251)。After the processing corresponding to the function is performed, the unit (251) of the display style of the barrage text for the first operation is changed.
18.根据条款11的装置(2),还包括:18. The device (2) according to clause 11, further comprising:
对所述对象进行实时截图的单元(202);a unit for real-time screenshot of the object (202);
识别实时截图截得的图片中的元素的单元(204);Identifying elements of elements in the picture captured by the real-time screenshot (204);
接收当前用户发表的弹幕文字的单元(260);Receiving a unit (260) of the barrage text published by the current user;
识别所述图片中与当前用户发表的弹幕文字相关的元素的单元(270);Identifying, in the picture, a unit (270) of an element related to the barrage text published by the current user;
在播放对象上播放当前用户发表的弹幕文字的单元(280),其中当前用户发表的弹幕文字从所述与当前用户发表的弹幕文字相关的元素的位置处出现,沿特定轨迹进入播放对象上叠加的弹幕背景区域进行播放。Playing a unit (280) of the barrage text published by the current user on the playback object, wherein the barrage text published by the current user appears from the position of the element related to the barrage text published by the current user, and enters the playback along a specific track. The background area of the barrage superimposed on the object is played.
19.根据条款11的装置(2),还包括:19. Apparatus (2) according to clause 11, further comprising:
对所述对象进行实时截图的单元(202);a unit for real-time screenshot of the object (202);
识别实时截图截得的图片中的元素的单元(204);Identifying elements of elements in the picture captured by the real-time screenshot (204);
基于识别出的元素,在互联网上搜索具有所述识别出的元素的图 片和相关评论的单元(205);Searching for a map with the identified elements on the Internet based on the identified elements The unit of the piece and related comments (205);
判断所述相关评论与所述识别出的元素的对应性的单元(206);a unit (206) for determining a correspondence of the related comment to the identified element;
响应于当前用户对播放对象特定位置的第三操作,确定该特定位置所属的元素的单元(256);Responding to a third operation of the current user's specific location of the playback object, determining a unit of the element to which the particular location belongs (256);
根据确定出的元素,向当前用户显示在互联网上搜索到的与该元素相应的所述相关评论的单元(258)。Based on the determined element, a unit of the related comment corresponding to the element searched on the Internet is displayed to the current user (258).
20.根据条款11的装置(2),其中播放对象包括电视节目,且如果播放对象是电视节目,该装置还包括:20. The device (2) according to clause 11, wherein the play object comprises a television program, and if the play object is a television program, the device further comprises:
在电视节目中显示电视节目所在服务器地址或二维码的单元(2001),该二维码包括电视节目所在服务器地址和电视节目名;a unit (2001) for displaying a server address or a two-dimensional code of a television program in a television program, the two-dimensional code including a server address and a television program name where the television program is located;
接收用户通过移动设备发送的电视节目所在服务器地址及电视节目名、或发送的扫描的二维码,将该移动设备的识别号与该服务器地址的该电视节目绑定,从而针对该电视节目的与弹幕有关的操作通过该移动设备进行的单元(2002)。Receiving a server address and a television program name of the television program sent by the user through the mobile device, or sending the scanned two-dimensional code, binding the identification number of the mobile device to the television program of the server address, thereby targeting the television program The unit associated with the barrage operation is performed by the mobile device (2002).
21.一种计算机设备,包括根据条款11-20中任一个的产生叠加在播放对象上的弹幕的装置(2)。21. A computer apparatus comprising means (2) for generating a barrage superimposed on a play object according to any one of clauses 11-20.
22.一种计算机可读存储介质,所述计算机可读存储介质包括计算机指令,当所述计算机指令被执行时,如条款1至10中任一项所述的方法被执行。A computer readable storage medium, comprising computer instructions, when the computer instructions are executed, the method of any one of clauses 1 to 10 being performed.
23.一种计算机程序产品,当所述计算机程序产品被执行时,如条款1至10中任一项所述的方法被执行。23. A computer program product, when the computer program product is executed, the method of any one of clauses 1 to 10 being performed.
24.一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器中存储有计算机指令,所述处理器被配置来通过执行所述计算机指令以执行如条款1至10中任一项所述的方法。 24. A computer device comprising a memory and a processor, the memory storing computer instructions, the processor being configured to perform any of the clauses 1 to 10 by executing the computer instructions Said method.

Claims (24)

  1. 一种产生叠加在播放对象上的弹幕的方法(1),包括:A method (1) for generating a barrage superimposed on a playback object, comprising:
    接收当前用户以外的其它用户发表的弹幕文字(110);Receiving a barrage text (110) issued by a user other than the current user;
    根据当前用户的登录账户信息中的好友信息,判断该其它用户是否是当前用户的好友(120);Determining, according to the friend information in the login account information of the current user, whether the other user is a friend of the current user (120);
    在播放对象上播放所述弹幕文字(130),其中如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。Playing the barrage text (130) on the play object, wherein if the other user is not the current user's friend, playing the barrage text on the play object in the shape of the first play track; if the other user is the current user's friend, The barrage text is played on the playback object in a second play track shape different from the shape of the first play track.
  2. 根据权利要求1的方法(1),还包括:The method (1) of claim 1 further comprising:
    判断所述其它用户发表的弹幕文字是否与互联网突发话题或热门事件相关(121),且Determining whether the barrage text published by the other user is related to an Internet sudden topic or a hot event (121), and
    在播放对象上播放弹幕文字(130)的步骤包括:如果所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关,以不同于第一播放轨迹形状的第三播放轨迹形状在播放对象上播放弹幕文字。The step of playing the barrage text (130) on the play object includes: if the barrage text published by the other user is related to an Internet burst topic or a popular event, the shape of the third play track different from the shape of the first play track is Play the barrage text on the playback object.
  3. 根据权利要求1的方法(1),还包括:The method (1) of claim 1 further comprising:
    对所述对象进行实时截图(102);Performing a real-time screenshot of the object (102);
    分析实时截图截得的图片中的主色(103),且Analyze the primary color (103) in the captured image of the live screenshot, and
    在播放对象上播放弹幕文字(130)的步骤包括在播放对象上叠加的弹幕背景区域中播放弹幕文字,其中弹幕背景区域的颜色设置成基于主色得到的第一色,弹幕文字的颜色设置成基于主色得到的第二色。The step of playing the barrage text (130) on the playing object includes playing the barrage text in the background area of the barrage superimposed on the playing object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color, the barrage The color of the text is set to the second color based on the main color.
  4. 根据权利要求1的方法(1),还包括:The method (1) of claim 1 further comprising:
    对所述对象进行实时截图(102);Performing a real-time screenshot of the object (102);
    识别实时截图截得的图片中的元素(104);Identifying elements in the picture captured by the real-time screenshot (104);
    基于识别出的元素,在互联网上搜索具有所述识别出的元素的图片和相关评论(105);Searching for pictures and related comments having the identified elements on the Internet based on the identified elements (105);
    判断所述相关评论与所述识别出的元素的对应性(106); Determining a correspondence of the related comment to the identified element (106);
    在播放对象上突出显示在互联网上搜索到最多对应的相关评论的元素(107)。An element (107) that searches for the most relevant related comment on the Internet is highlighted on the play object.
  5. 根据权利要求1的方法(1),还包括:The method (1) of claim 1 further comprising:
    对所述对象进行实时截图(102);Performing a real-time screenshot of the object (102);
    识别实时截图截得的图片中的元素(104);Identifying elements in the picture captured by the real-time screenshot (104);
    根据识别出的元素,判断所述图片的感情色彩(108);Determining the emotional color of the picture according to the identified element (108);
    基于判断出的所述图片的感情色彩,确定弹幕文字的播放速度(109),且Determining the playing speed of the barrage text based on the determined emotional color of the picture (109), and
    在播放对象上播放弹幕文字(130)的步骤包括:以确定出的播放速度,播放弹幕文字。The step of playing the barrage text (130) on the playback object includes: determining the playback speed and playing the barrage text.
  6. 根据权利要求1的方法(1),还包括:The method (1) of claim 1 further comprising:
    响应于对播放的弹幕文字的第一操作,停止播放弹幕文字,显示至少包含下列功能中的一种的功能区:点赞、评论、转发(140)。In response to the first operation of the played barrage text, the playback of the barrage text is stopped, displaying a functional area containing at least one of the following functions: like, comment, forward (140).
    响应于对所述功能区中的功能的第二操作,执行与该功能相应的处理(150)。In response to the second operation of the function in the functional area, processing corresponding to the function is performed (150).
  7. 根据权利要求6的方法(1),还包括:The method (1) of claim 6 further comprising:
    在执行与该功能相应的处理后,改变第一操作所针对的弹幕文字的显示样式(151)。After the processing corresponding to the function is performed, the display style of the barrage text for the first operation is changed (151).
  8. 根据权利要求1的方法(1),还包括:The method (1) of claim 1 further comprising:
    对所述对象进行实时截图(102);Performing a real-time screenshot of the object (102);
    识别实时截图截得的图片中的元素(104);Identifying elements in the picture captured by the real-time screenshot (104);
    接收当前用户发表的弹幕文字(160);Receiving the barrage text (160) published by the current user;
    识别所述图片中与当前用户发表的弹幕文字相关的元素(170);Identifying an element (170) in the picture related to the barrage text published by the current user;
    在播放对象上播放当前用户发表的弹幕文字(180),其中当前用户发表的弹幕文字从所述与当前用户发表的弹幕文字相关的元素的位置处出现,沿特定轨迹进入播放对象上叠加的弹幕背景区域进行播放。Playing the barrage text (180) published by the current user on the playing object, wherein the barrage text published by the current user appears from the position of the element related to the barrage text published by the current user, and enters the playing object along a specific track. The superimposed barrage background area is played.
  9. 根据权利要求1的方法(1),还包括:The method (1) of claim 1 further comprising:
    对所述对象进行实时截图(102); Performing a real-time screenshot of the object (102);
    识别实时截图截得的图片中的元素(104);Identifying elements in the picture captured by the real-time screenshot (104);
    基于识别出的元素,在互联网上搜索具有所述识别出的元素的图片和相关评论(105);Searching for pictures and related comments having the identified elements on the Internet based on the identified elements (105);
    判断所述相关评论与所述识别出的元素的对应性(106);Determining a correspondence of the related comment to the identified element (106);
    响应于当前用户对播放对象特定位置的第三操作,确定该特定位置所属的元素(156);Determining an element to which the specific location belongs in response to the current user's third operation on the specific location of the playback object (156);
    根据确定出的元素,向当前用户显示在互联网上搜索到的与该元素相应的所述相关评论(158)。Based on the determined element, the relevant user is searched for the relevant comment (158) corresponding to the element searched on the Internet.
  10. 根据权利要求1的方法(1),其中播放对象包括电视节目,且如果播放对象是电视节目,该方法还包括:The method (1) according to claim 1, wherein the object to be played comprises a television program, and if the object to be played is a television program, the method further comprises:
    在电视节目中显示电视节目所在服务器地址或二维码,该二维码包括电视节目所在服务器地址和电视节目名(1001);Displaying, in the television program, a server address or a two-dimensional code of the television program, where the two-dimensional code includes a server address where the television program is located and a television program name (1001);
    接收用户通过移动设备发送的电视节目所在服务器地址及电视节目名、或发送的扫描的二维码,将该移动设备的识别号与该服务器地址的该电视节目绑定,从而针对该电视节目的与弹幕有关的操作通过该移动设备进行(1002)。Receiving a server address and a television program name of the television program sent by the user through the mobile device, or sending the scanned two-dimensional code, binding the identification number of the mobile device to the television program of the server address, thereby targeting the television program The operation related to the barrage is performed by the mobile device (1002).
  11. 一种产生叠加在播放对象上的弹幕的装置(2),包括:A device (2) for generating a barrage superimposed on a playback object, comprising:
    接收当前用户以外的其它用户发表的弹幕文字的单元(210);Receiving a unit (210) of the barrage text published by a user other than the current user;
    根据当前用户的登录账户信息中的好友信息判断该其它用户是否是当前用户的好友的单元(220);Determining, according to the friend information in the login account information of the current user, whether the other user is a friend of the current user (220);
    在播放对象上播放所述弹幕文字的单元(230),被配置成:如果该其它用户不是当前用户的好友,以第一播放轨迹形状在播放对象上播放弹幕文字;如果该其它用户是当前用户的好友,以不同于第一播放轨迹形状的第二播放轨迹形状在播放对象上播放弹幕文字。The unit (230) for playing the barr text on the play object is configured to: if the other user is not the current user's friend, play the barrage text on the play object in the shape of the first play track; if the other user is The current user's friend plays the barrage text on the play object in a shape of the second play track different from the shape of the first play track.
  12. 根据权利要求11的装置(2),还包括:The device (2) according to claim 11, further comprising:
    判断所述其它用户发表的弹幕文字是否与互联网突发话题或热门事件相关的单元(221),且Determining whether the barred text published by the other user is related to an Internet sudden topic or a hot event (221), and
    在播放对象上播放弹幕文字的单元(230)被配置为:如果所述其它用户发表的弹幕文字与互联网突发话题或热门事件相关,以不同于第 一播放轨迹形状的第三播放轨迹形状在播放对象上播放弹幕文字。The unit (230) for playing the barrage text on the playback object is configured to: if the barrage text published by the other user is related to an Internet sudden topic or a popular event, different from the The third play track shape of the play track shape plays the barrage text on the play object.
  13. 根据权利要求11的装置(2),还包括:The device (2) according to claim 11, further comprising:
    对所述对象进行实时截图的单元(202);a unit for real-time screenshot of the object (202);
    分析实时截图截得的图片中的主色的单元(203),且A unit (203) of the dominant color in the picture captured in the real-time screenshot is analyzed, and
    在播放对象上播放弹幕文字的单元(230)被配置为:在播放对象上叠加的弹幕背景区域中播放弹幕文字,其中弹幕背景区域的颜色设置成基于主色得到的第一色,弹幕文字的颜色设置成基于主色得到的第二色。The unit (230) for playing the barrage text on the playback object is configured to: play the barrage text in the background area of the barrage superimposed on the playback object, wherein the color of the background area of the barrage is set to the first color obtained based on the main color The color of the barrage text is set to a second color based on the main color.
  14. 根据权利要求11的装置(2),还包括:The device (2) according to claim 11, further comprising:
    对所述对象进行实时截图的单元(202);a unit for real-time screenshot of the object (202);
    识别实时截图截得的图片中的元素的单元(204);Identifying elements of elements in the picture captured by the real-time screenshot (204);
    基于识别出的元素,在互联网上搜索具有所述识别出的元素的图片和相关评论的单元(205);Searching for a unit having a picture of the identified element and related comments on the Internet based on the identified element (205);
    判断所述相关评论与所述识别出的元素的对应性的单元(206);a unit (206) for determining a correspondence of the related comment to the identified element;
    在播放对象上突出显示在互联网上搜索到最多对应的相关评论的元素的单元(207)。A unit (207) that searches for elements of the most relevant related comment on the Internet is highlighted on the play object.
  15. 根据权利要求11的装置(2),还包括:The device (2) according to claim 11, further comprising:
    对所述对象进行实时截图的单元(202);a unit for real-time screenshot of the object (202);
    识别实时截图截得的图片中的元素的单元(204);Identifying elements of elements in the picture captured by the real-time screenshot (204);
    根据识别出的元素,判断所述图片的感情色彩的单元(208);Determining a unit of emotional color of the picture based on the identified element (208);
    基于判断出的所述图片的感情色彩,确定弹幕文字的播放速度的单元(209),且Determining a unit (209) of the playing speed of the barrage text based on the determined emotional color of the picture, and
    在播放对象上播放弹幕文字的单元(230)被配置为:以确定出的播放速度,播放弹幕文字。The unit (230) for playing the barrage text on the playback object is configured to: determine the playback speed, and play the barrage text.
  16. 根据权利要求11的装置(2),还包括:The device (2) according to claim 11, further comprising:
    响应于对播放的弹幕文字的第一操作,停止播放弹幕文字,显示至少包含下列功能中的一种的功能区的单元(240):点赞、评论、转发。In response to the first operation of the played barrage text, the playback of the barrage text is stopped, displaying a unit (240) of the functional area containing at least one of the following functions: like, comment, forward.
    响应于对所述功能区中的功能的第二操作,执行与该功能相应的 处理的单元(250)。Responding to the second operation of the function in the functional area, performing a function corresponding to the function Processed unit (250).
  17. 根据权利要求16的装置(2),还包括:The device (2) according to claim 16, further comprising:
    在执行与该功能相应的处理后,改变第一操作所针对的弹幕文字的显示样式的单元(251)。After the processing corresponding to the function is performed, the unit (251) of the display style of the barrage text for the first operation is changed.
  18. 根据权利要求11的装置(2),还包括:The device (2) according to claim 11, further comprising:
    对所述对象进行实时截图的单元(202);a unit for real-time screenshot of the object (202);
    识别实时截图截得的图片中的元素的单元(204);Identifying elements of elements in the picture captured by the real-time screenshot (204);
    接收当前用户发表的弹幕文字的单元(260);Receiving a unit (260) of the barrage text published by the current user;
    识别所述图片中与当前用户发表的弹幕文字相关的元素的单元(270);Identifying, in the picture, a unit (270) of an element related to the barrage text published by the current user;
    在播放对象上播放当前用户发表的弹幕文字的单元(280),其中当前用户发表的弹幕文字从所述与当前用户发表的弹幕文字相关的元素的位置处出现,沿特定轨迹进入播放对象上叠加的弹幕背景区域进行播放。Playing a unit (280) of the barrage text published by the current user on the playback object, wherein the barrage text published by the current user appears from the position of the element related to the barrage text published by the current user, and enters the playback along a specific track. The background area of the barrage superimposed on the object is played.
  19. 根据权利要求11的装置(2),还包括:The device (2) according to claim 11, further comprising:
    对所述对象进行实时截图的单元(202);a unit for real-time screenshot of the object (202);
    识别实时截图截得的图片中的元素的单元(204);Identifying elements of elements in the picture captured by the real-time screenshot (204);
    基于识别出的元素,在互联网上搜索具有所述识别出的元素的图片和相关评论的单元(205);Searching for a unit having a picture of the identified element and related comments on the Internet based on the identified element (205);
    判断所述相关评论与所述识别出的元素的对应性的单元(206);a unit (206) for determining a correspondence of the related comment to the identified element;
    响应于当前用户对播放对象特定位置的第三操作,确定该特定位置所属的元素的单元(256);Responding to a third operation of the current user's specific location of the playback object, determining a unit of the element to which the particular location belongs (256);
    根据确定出的元素,向当前用户显示在互联网上搜索到的与该元素相应的所述相关评论的单元(258)。Based on the determined element, a unit of the related comment corresponding to the element searched on the Internet is displayed to the current user (258).
  20. 根据权利要求11的装置(2),其中播放对象包括电视节目,且如果播放对象是电视节目,该装置还包括:The device (2) according to claim 11, wherein the object to be played comprises a television program, and if the object to be played is a television program, the device further comprises:
    在电视节目中显示电视节目所在服务器地址或二维码的单元(2001),该二维码包括电视节目所在服务器地址和电视节目名;a unit (2001) for displaying a server address or a two-dimensional code of a television program in a television program, the two-dimensional code including a server address and a television program name where the television program is located;
    接收用户通过移动设备发送的电视节目所在服务器地址及电视 节目名、或发送的扫描的二维码,将该移动设备的识别号与该服务器地址的该电视节目绑定,从而针对该电视节目的与弹幕有关的操作通过该移动设备进行的单元(2002)。Receiving the server address and TV of the TV program sent by the user through the mobile device a program name, or a scanned two-dimensional code, that binds the identification number of the mobile device to the television program of the server address, thereby performing a unit for the barrage-related operation of the television program through the mobile device ( 2002).
  21. 一种计算机设备,包括根据权利要求11-20中任一个的产生叠加在播放对象上的弹幕的装置(2)。A computer apparatus comprising the apparatus (2) for generating a barrage superimposed on a playback object according to any one of claims 11-20.
  22. 一种计算机可读存储介质,所述计算机可读存储介质包括计算机指令,当所述计算机指令被执行时,如权利要求1至10中任一项所述的方法被执行。A computer readable storage medium comprising computer instructions, the method of any one of claims 1 to 10 being executed when the computer instructions are executed.
  23. 一种计算机程序产品,当所述计算机程序产品被执行时,如权利要求1至10中任一项所述的方法被执行。A computer program product, the method of any one of claims 1 to 10 being executed when the computer program product is executed.
  24. 一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器中存储有计算机指令,所述处理器被配置来通过执行所述计算机指令以执行如权利要求1至10中任一项所述的方法。 A computer device comprising a memory and a processor, wherein the memory stores computer instructions, the processor being configured to perform the computer instructions to perform any of claims 1 to 10 The method described.
PCT/CN2015/091926 2014-12-19 2015-10-14 Method and apparatus for generating live comments overlaid on playing object WO2016095602A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410804346.7A CN104575553B (en) 2014-12-19 2014-12-19 Produce the method and apparatus for being superimposed upon and playing the barrage on object
CN201410804346.7 2014-12-19

Publications (1)

Publication Number Publication Date
WO2016095602A1 true WO2016095602A1 (en) 2016-06-23

Family

ID=53091443

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/091926 WO2016095602A1 (en) 2014-12-19 2015-10-14 Method and apparatus for generating live comments overlaid on playing object

Country Status (2)

Country Link
CN (1) CN104575553B (en)
WO (1) WO2016095602A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454540A (en) * 2016-09-13 2017-02-22 北京小米移动软件有限公司 Interactive information processing method and apparatus based on live broadcasting
CN107728905A (en) * 2017-10-12 2018-02-23 咪咕动漫有限公司 A kind of barrage display methods, device and storage medium
CN110149549A (en) * 2019-02-26 2019-08-20 腾讯科技(深圳)有限公司 The display methods and device of information
CN111405344A (en) * 2020-03-18 2020-07-10 腾讯科技(深圳)有限公司 Bullet screen processing method and device
CN113225606A (en) * 2021-04-30 2021-08-06 上海哔哩哔哩科技有限公司 Video barrage processing method and device
CN114531954A (en) * 2020-09-08 2022-05-24 海信视像科技股份有限公司 Television gateway

Families Citing this family (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104575553B (en) * 2014-12-19 2017-09-15 百度时代网络技术(北京)有限公司 Produce the method and apparatus for being superimposed upon and playing the barrage on object
CN104796487B (en) * 2015-04-30 2019-02-22 广州华多网络科技有限公司 A kind of social interaction method and relevant device
CN106293369B (en) * 2015-05-26 2019-09-03 北京智谷睿拓技术服务有限公司 Exchange method, interactive device and user equipment based on barrage
CN104935997B (en) * 2015-06-01 2020-08-18 上海幻电信息科技有限公司 Method and device for customizing advanced barrage by viewer
CN104882151B (en) * 2015-06-05 2018-08-03 福建凯米网络科技有限公司 The method, apparatus and system of multimedia resource are shown in singing songs
CN104980809B (en) * 2015-06-30 2019-03-12 北京奇艺世纪科技有限公司 A kind of barrage treating method and apparatus
CN105068795A (en) * 2015-07-20 2015-11-18 上海幻电信息科技有限公司 Bullet screen effect-based development method and device
CN105072477A (en) * 2015-07-27 2015-11-18 天脉聚源(北京)科技有限公司 Method and device for generating interactive feedback information of interactive TV system
CN105142031B (en) * 2015-08-17 2019-03-05 北京奇虎科技有限公司 The method and device of text information is shown with barrage in video playing
CN106250006B (en) * 2015-09-25 2019-08-06 北京智谷睿拓技术服务有限公司 Exchange method, interactive device and user equipment based on barrage
CN105187935A (en) * 2015-09-30 2015-12-23 北京奇虎科技有限公司 Method and device for displaying application information
CN105681917A (en) * 2015-11-05 2016-06-15 上海幻电信息科技有限公司 Bullet screen system based on site identification technique
CN105376653A (en) * 2015-11-24 2016-03-02 天脉聚源(北京)科技有限公司 Method and device for displaying interactive information of interactive television system
CN105430526A (en) * 2015-11-27 2016-03-23 深圳市金立通信设备有限公司 Subtitle display method and terminal
CN105554581A (en) * 2015-12-11 2016-05-04 小米科技有限责任公司 Method and device for bullet screen display
CN105451088B (en) * 2015-12-28 2019-04-16 福建新大陆通信科技股份有限公司 A kind of method and system for realizing set-top box barrage information
CN105979337B (en) * 2015-12-28 2019-08-23 武汉斗鱼网络科技有限公司 A kind of barrage playing device and method
CN105635822A (en) * 2016-01-07 2016-06-01 天脉聚源(北京)科技有限公司 Method and device for processing video bullet screen
CN105630296A (en) * 2016-01-07 2016-06-01 天脉聚源(北京)科技有限公司 Video bullet screen display method and device
CN105760101B (en) * 2016-02-02 2019-04-30 Oppo广东移动通信有限公司 The control method and electronic equipment of video playing
CN105959810A (en) * 2016-04-19 2016-09-21 乐视控股(北京)有限公司 Barrage generating method, barrage generating device and server
CN106060593B (en) * 2016-05-18 2019-03-15 武汉斗鱼网络科技有限公司 The method and system of true barrage scenario simulation feedback are realized in P2P live streaming
CN106060632B (en) * 2016-05-31 2020-02-07 武汉斗鱼网络科技有限公司 System and method for controlling bullet screen of program site
CN106101756B (en) * 2016-06-07 2019-04-26 腾讯科技(北京)有限公司 Barrage display methods, barrage adding method, apparatus and system
CN106060662A (en) * 2016-06-22 2016-10-26 乐视控股(北京)有限公司 Method and device for establishing social relation via pop-up comments
CN106131639B (en) * 2016-06-23 2019-04-23 武汉斗鱼网络科技有限公司 It is a kind of can single locking barrage display device, sending method and device
CN105959817B (en) * 2016-06-27 2019-03-05 武汉斗鱼网络科技有限公司 A kind of video barrage sending method and device
CN107707965B (en) * 2016-08-08 2021-02-12 阿里巴巴(中国)有限公司 Bullet screen generation method and device
CN106331877B (en) * 2016-09-22 2019-10-11 广州华多网络科技有限公司 Barrage playback method and device
CN106303634A (en) * 2016-10-10 2017-01-04 武汉斗鱼网络科技有限公司 A kind of TV equipment barrage sends system and method
CN106921868A (en) * 2017-03-07 2017-07-04 深圳创维数字技术有限公司 A kind of barrage dissemination method and device
CN109429087B (en) * 2017-06-26 2021-03-02 上海优土视真文化传媒有限公司 Virtual reality video barrage display method, medium, and system
CN109218798A (en) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 A kind of live streaming barrage color setting method and device
CN107948708B (en) * 2017-11-14 2020-09-11 阿里巴巴(中国)有限公司 Bullet screen display method and device
CN110022499A (en) * 2018-01-10 2019-07-16 武汉斗鱼网络科技有限公司 A kind of live streaming barrage color setting method and device
CN110234030B (en) * 2018-03-05 2022-07-15 阿里巴巴(中国)有限公司 Bullet screen information display method and device
CN108635864B (en) * 2018-03-23 2021-10-26 网易(杭州)网络有限公司 Method and device for interactive comment of game
CN111596834B (en) * 2019-09-06 2020-12-15 深圳新为云动教育科技有限公司 Video playing APP control system
CN111212328B (en) * 2019-12-31 2022-03-25 咪咕互动娱乐有限公司 Bullet screen display method, bullet screen server and computer readable storage medium
CN111343508B (en) * 2020-02-28 2021-05-11 网易(杭州)网络有限公司 Information display control method and device, electronic equipment and storage medium
CN113542843B (en) * 2021-07-19 2022-09-30 北京奇艺世纪科技有限公司 Target bullet screen display method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102905170A (en) * 2012-10-08 2013-01-30 北京导视互动网络技术有限公司 Screen popping method and system for video
CN104010222A (en) * 2014-04-28 2014-08-27 小米科技有限责任公司 Method, device and system for displaying comment information
CN104575553A (en) * 2014-12-19 2015-04-29 百度时代网络技术(北京)有限公司 Method and device for generating barrage overlaid on playing object

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003058151A (en) * 2001-08-09 2003-02-28 Aruze Corp Music file distribution system
US9177346B2 (en) * 2010-07-01 2015-11-03 Facebook, Inc. Facilitating interaction among users of a social network
CN102790923B (en) * 2011-05-19 2015-11-25 华为终端有限公司 Method, server of instant message and user terminal that user comment information is shared
US20150229679A1 (en) * 2012-08-01 2015-08-13 Jamhub Corporation Distributed music collaboration
CN104156390A (en) * 2014-07-07 2014-11-19 乐视网信息技术(北京)股份有限公司 Comment recommendation method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102905170A (en) * 2012-10-08 2013-01-30 北京导视互动网络技术有限公司 Screen popping method and system for video
CN104010222A (en) * 2014-04-28 2014-08-27 小米科技有限责任公司 Method, device and system for displaying comment information
CN104575553A (en) * 2014-12-19 2015-04-29 百度时代网络技术(北京)有限公司 Method and device for generating barrage overlaid on playing object

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454540A (en) * 2016-09-13 2017-02-22 北京小米移动软件有限公司 Interactive information processing method and apparatus based on live broadcasting
CN107728905A (en) * 2017-10-12 2018-02-23 咪咕动漫有限公司 A kind of barrage display methods, device and storage medium
CN110149549A (en) * 2019-02-26 2019-08-20 腾讯科技(深圳)有限公司 The display methods and device of information
CN110149549B (en) * 2019-02-26 2022-09-13 腾讯科技(深圳)有限公司 Information display method and device
CN111405344A (en) * 2020-03-18 2020-07-10 腾讯科技(深圳)有限公司 Bullet screen processing method and device
CN111405344B (en) * 2020-03-18 2022-01-07 腾讯科技(深圳)有限公司 Bullet screen processing method and device
CN114531954A (en) * 2020-09-08 2022-05-24 海信视像科技股份有限公司 Television gateway
CN113225606A (en) * 2021-04-30 2021-08-06 上海哔哩哔哩科技有限公司 Video barrage processing method and device

Also Published As

Publication number Publication date
CN104575553B (en) 2017-09-15
CN104575553A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
WO2016095602A1 (en) Method and apparatus for generating live comments overlaid on playing object
US10999634B2 (en) Media content recommendation method, server, client, and storage medium
US10963461B2 (en) Generating activities based upon social data
JP6730335B2 (en) Streaming media presentation system
US20150281142A1 (en) Hot Topic Pushing Method and Apparatus
CA2779448C (en) Social browsing
US10103952B2 (en) System for tracking diffusion
US10032303B2 (en) Scrolling 3D presentation of images
AU2017292843A1 (en) Combining faces from source images with target images based on search queries
US20190043241A1 (en) Generating animations on a social-networking system
US10242395B1 (en) Providing shopping links to items on a network page
EP4240012A1 (en) Utilizing augmented reality data channel to enable shared augmented reality video calls
US10178420B2 (en) Methods, systems, and media for indicating viewership of a video based on context
US10171601B2 (en) Availability-based video presentation management
Hasada et al. Ar cooking: comparing display methods for the instructions of cookwares on ar goggles
CN114764485B (en) Information display method and device, storage medium and computer equipment
US11302048B2 (en) Computerized system and method for automatically generating original memes for insertion into modified messages
US20230077795A1 (en) Real time feature analysis and ingesting correlated advertisements in a video advertisement
Pattanakimhun et al. Evaluation of mobile phone interaction with large public displays
Thompson et al. Inter-Inner-Personal Archives: Pandemic-Induced Introspection and Television Studies (A Dialogue)
Cavna Why'The Incredibles 2's' Brad Bird is the best superhero-action director alive
Greis Investigating conflicts of interests between stakeholders of public display app stores
WO2019211698A1 (en) Method for displaying a news feed in a social network or communications application
Jeong et al. Understanding the potential of social questions in the web search
Wilson A Review of “Tashlinesque: The Hollywood Comedies of Frank Tashlin” by Ethan de Seife. Wesleyan University Press, 2012

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15869113

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15869113

Country of ref document: EP

Kind code of ref document: A1