CN108495184A - A kind of method and apparatus for adding barrage for video - Google Patents

A kind of method and apparatus for adding barrage for video Download PDF

Info

Publication number
CN108495184A
CN108495184A CN201810118808.8A CN201810118808A CN108495184A CN 108495184 A CN108495184 A CN 108495184A CN 201810118808 A CN201810118808 A CN 201810118808A CN 108495184 A CN108495184 A CN 108495184A
Authority
CN
China
Prior art keywords
designated
content
barrage
text information
information
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201810118808.8A
Other languages
Chinese (zh)
Other versions
CN108495184B (en
Inventor
罗玄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810118808.8A priority Critical patent/CN108495184B/en
Publication of CN108495184A publication Critical patent/CN108495184A/en
Application granted granted Critical
Publication of CN108495184B publication Critical patent/CN108495184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • 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/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/278Subtitling

Abstract

The invention discloses a kind of method, apparatus, electronic equipment and computer readable storage mediums adding barrage for video.This method includes:It identifies the content of designated, obtains recognition result;Corresponding text information is obtained according to recognition result;It is added to the corresponding position of designated using the text information of acquisition as barrage content.By the technical program, it can be that video adds barrage automatically, not need user and add manually, increase video interactive, avoid influencing the quality that user watches video, enhance the usage experience of user.

Description

A kind of method and apparatus for adding barrage for video
Technical field
The present invention relates to field of computer technology, and in particular to a kind of to be set for the method, apparatus of video addition barrage, electronics Standby and computer readable storage medium.
Background technology
Popularizing for each Video Applications, increases the joy of life of user.In particular, the exploitation of barrage function, regards in broadcasting While frequency, user can deliver the view of oneself, and be shared with other users, it has also become a kind of common interaction side of video Formula.But the barrage in current video is to need user by sending on barrage module add value video, that is, needs user Addition barrage manually influences the quality that user watches video, is easy to miss excellent picture, reduces the usage experience of user.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly The problem of stating is method, apparatus, electronic equipment and the computer readable storage medium of video addition barrage.
According to an aspect of the invention, there is provided a kind of method for adding barrage for video, wherein this method includes:
It identifies the content of designated, obtains recognition result;
Corresponding text information is obtained according to recognition result;
It is added to the corresponding position of designated using the text information of acquisition as barrage content.
Optionally, the content of the identification designated, obtaining recognition result includes:
The classification belonging to the content of designated is identified according to preset classification information, is obtained described in the content of designated Classification information.
Optionally, one or more during the preset classification information includes as follows:
Comedy class, terrified class, tragedy class, dancing class, singing class, children's class, war class.
Optionally, described to include according to the corresponding text information of recognition result acquisition:
According to preset classification information, the text information to match is determined respectively for each classification, and preserve;
Classification information belonging to content according to designated obtains the text information to match preserved.
Optionally, the content of the identification designated, obtaining recognition result includes:
The period for meeting preset condition in designated with the presence or absence of scene changes is judged by detection, is then to obtain to preset Text information corresponding with scene changes.
Optionally, the corresponding position for being added to designated using the text information of acquisition as barrage content is wrapped It includes:
The text information of acquisition is added to the scene changes in designated as barrage content and meets preset condition At period.
Optionally, judge that the period for meeting preset condition in designated with the presence or absence of scene changes includes by detection:
By detecting the pace of change of the designated color in designated picture, judge to whether there is picture in designated Pace of change meets the period of preset condition;
And/or
By detecting the tempo variation speed of the correspondence audio of designated, judge in designated with the presence or absence of section of dubbing in background music Play the period that pace of change meets preset condition.
Optionally, this method further comprises:
Obtain comment information of the user to the designated;
It is added to the corresponding position of designated using comment information as barrage content.
Optionally, the corresponding position for being added to designated using comment information as barrage content includes:
The generated time point of comment information, is added to specified using the comment information as barrage when being played according to designated At the corresponding time point of video;
Alternatively,
Position where comment information is added to the content of designated to match with comment information as barrage content Set place.
According to another aspect of the present invention, a kind of device adding barrage for video is provided, wherein the device includes:
Recognition unit is suitable for identifying the content of designated, obtains recognition result;
Acquiring unit is suitable for obtaining corresponding text information according to recognition result;
Adding device, suitable for being added to the corresponding position of designated using the text information of acquisition as barrage content.
Optionally,
The recognition unit is suitable for the classification belonging to the content according to preset classification information identification designated, obtains Classification information described in the content of designated.
Optionally, one or more during the preset classification information includes as follows:
Comedy class, terrified class, tragedy class, dancing class, singing class, children's class, war class.
Optionally,
The acquiring unit, is suitable for according to preset classification information, and the text information to match is determined respectively for each classification, And it preserves;Classification information belonging to content according to designated obtains the text information to match preserved.
Optionally,
The recognition unit, suitable for judging to meet preset condition with the presence or absence of scene changes in designated by detection Period is to obtain preset text information corresponding with scene changes.
Optionally,
The adding device becomes suitable for the text information of acquisition is added to the scene in designated as barrage content Change met at the period of preset condition.
Optionally,
The recognition unit is suitable for the pace of change by detecting the designated color in designated picture, judges specified Meet the period of preset condition in video with the presence or absence of picture pace of change;And/or the correspondence audio by detecting designated Tempo variation speed, judge to meet period of preset condition with the presence or absence of tempo variation speed of dubbing in background music in designated.
Optionally, which further comprises:
Comment information acquiring unit is suitable for obtaining comment information of the user to the designated;
The adding device, suitable for being added to the corresponding position of designated using comment information as barrage content.
Optionally,
The adding device, the generated time point of comment information when suitable for being played according to designated, by the comment information It is added at the corresponding time point of designated as barrage;Alternatively, being added to using comment information as barrage content specified At position where the content of video to match with comment information.
According to another aspect of the invention, a kind of electronic equipment is provided, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Device is managed to execute according to method above-mentioned.
In accordance with a further aspect of the present invention, a kind of computer readable storage medium is provided, wherein described computer-readable The one or more programs of storage medium storage, one or more of programs when being executed by a processor, realize method above-mentioned.
According to the technique and scheme of the present invention, it identifies the content of designated, obtains recognition result;It is obtained according to recognition result Corresponding text information;It is added to the corresponding position of designated using the text information of acquisition as barrage content.Pass through this Technical solution can be that video adds barrage automatically, not need user and add manually, increase video interactive, avoid influencing to use The quality of video is watched at family, enhances the usage experience of user.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of the method according to an embodiment of the invention that barrage is added for video;
Fig. 2 shows the flow diagrams of the method in accordance with another embodiment of the present invention that barrage is added for video;
Fig. 3 shows the structural schematic diagram of the device according to an embodiment of the invention that barrage is added for video;
Fig. 4 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention;
Fig. 5 shows the structural schematic diagram of computer readable storage medium according to an embodiment of the invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Fig. 1 shows the flow diagram of the method according to an embodiment of the invention that barrage is added for video.Such as Fig. 1 Shown, this method includes:
Step S110 identifies the content of designated, obtains recognition result.
In the present embodiment, in order to enable the barrage of addition more matches the designated, it is necessary first to which identification is specified to be regarded The content of frequency, such as the classification of the video, scenic picture change, to carry out barrage word content according to the content recognized It obtains.
Step S120 obtains corresponding text information according to recognition result.
Step S130 is added to the corresponding position of designated using the text information of acquisition as barrage content.
Here corresponding position can according to demand in the present embodiment, bullet be added automatically according to the content of designated Curtain, does not need user and adds manually, increases video interactive, avoids influencing the quality that user watches video, enhances making for user With experience.
A variety of identification methods of the content of designated are described in detail below, and then bullet is added for designated Curtain.
In one embodiment of the invention, the content of the identification designated in step S110, obtains recognition result packet It includes:The classification belonging to the content of designated is identified according to preset classification information, obtains the classification letter of the content of designated Breath.
In the present embodiment, the classification of designated content is identified, specifically identifies the content institute of designated It is any in the preset classification belonged to.
Specifically, one or more during above-mentioned preset classification information includes as follows:Comedy class, terrified class, tragedy Class, dancing class, singing class, children's class, war class.
It should be noted that above-mentioned preset classification information is preferred embodiment.But preset classification information is not It should be limited to the above-mentioned classification for enumerating and.
Further, include according to the corresponding text information of recognition result acquisition in step S120:According to preset point Category information determines the text information to match for each classification, and preserves respectively;Classification letter belonging to content according to designated Breath obtains the text information to match preserved.
That is, after recognizing the classification information belonging to the content of designated, in order to add and classification information The barrage matched is it is necessary to obtaining the matched text information of classification information described in the content with the designated.In the present embodiment, It is that corresponding text information is determined according to preset classification information first, to work as point recognized described in the content of designated It can be carried out the acquisition for the text information accordingly classified after category information.For example, to terrified class, the word letter to match is determined Breath is " good terror ";To comedy class, determine that the text information to match is " making laughs well " etc..
In one example, it is comedy class to recognize the classification information described in the content of designated, then being referred to according to this Determine the classification information described in the content of video to obtain the text information to match preserved to be " making laughs well ".It can will so obtain The text information " making laughs well " got is added to the corresponding position of the designated as barrage.
It preferably, here can be only to the pass of designated to the identification of the affiliated classification information of the content of designated Key frame is identified, to improve recognition speed.
In one embodiment of the invention, the content of the identification designated in step S110, obtains recognition result packet It includes:Judge to meet period of preset condition with the presence or absence of scene changes in designated by detection, be obtain it is preset and The corresponding text information of scene changes.
In the present embodiment, the scene changes of designated content are identified, so as to according to scene changes addition The barrage matched.Under normal conditions, when the plot of designated changes greatly, user has the demand of addition barrage, so, here Primarily to scene changes larger period in identification designated, to obtain corresponding text information.
Further, it is added to the corresponding of designated using the text information of acquisition as barrage content in step S130 Include at position:The text information of acquisition is added to the scene changes in designated as barrage content and meets preset condition Period at.
Because in the present embodiment, acquisition is text information corresponding with scene changes, so being needed when addition The period for corresponding to the scene changes in designated can be only achieved scene and change, the effect that corresponding barrage occurs, and Non- is arbitrarily to add the text information of acquisition, further increases the usage experience of user.
Specifically, the above-mentioned period for judging to meet preset condition in designated with the presence or absence of scene changes by detection Including:By detecting the pace of change of the designated color in designated picture, judge to become with the presence or absence of picture in designated Change the period that speed meets preset condition;And/or the tempo variation speed by detecting the correspondence audio of designated, judge Meet the period of preset condition in designated with the presence or absence of tempo variation speed of dubbing in background music.
The variation of designated Scene can be embodied directly on the rhythm of color or corresponding background audio, for example, In the designated of terrified class, when terrified scene occurs, be often furnished with the rhythm of allegro audio or audio from It releives to violent;In the video of dancing class, stage background color can be converted with the transformation of dance movement, when dance movement becomes When changing larger, larger variation can also occur accordingly in the background color of stage, i.e. background color in designated can occur Larger variation.So in the present embodiment, when detecting in designated with the presence or absence of scene changes, can be regarded by specified The variation of the rhythm of designated color or corresponding audio in frequency picture is detected.Specifically, the variation of color and/rhythm Variation is the volume embodied by designated color pace of change and/or the pace of change of rhythm, and therefore, detection is also corresponding The pace of change of color and/or the pace of change of rhythm.By detecting the pace of change of designated color and by detecting rhythm Pace of change, two ways can be used alone, and can also be combined with each other.
In one embodiment of the invention, method shown in FIG. 1 further comprises:User is obtained to the designated Comment information;It is added to the corresponding position of designated using comment information as barrage content.
In practical applications, user can express the idea of oneself by way of comment, be not the side by barrage Formula, therefore, in order to ensure the better user interaction of designated, in the present embodiment, when user carries out designated When comment, it can also be added to comment information as barrage in designated.For example, user is when watching a designated, Comment " this video bears watching " is delivered in the comment area of designated, then after the user makes comments, so that it may with Comment " video bears watching " is added to as barrage in designated, so that other users can be directly obtained the use The idea at family.
Further, the corresponding position for being added to designated using comment information as barrage content in step S130 Including:The comment information is added to specified regard by the generated time point of comment information when being played according to designated At the corresponding time point of frequency;Alternatively, comment information is added to designated as barrage content with comment information phase At position where the content matched.
User may in real time comment on designated when watching designated, for the user as barrage Comment is corresponding with the scene of designated, according to the generated time of comment information or content, corresponding addition.For example, When user watches the 2nd minute of designated, the personage in video scene has said that sentence well-known saying, user think the well-known saying It is very classical, it can make comments information " the words is too classical " in comment area, then in order to enable the comment information of the user Corresponding with the scene of designated, the time point generated according to the comment information " the words is too classical " is designated 2nd minute, then just the comment information " the words is too classical " is added to as barrage at the 2nd minute of designated.
Alternatively, the user comment information obtained can be as the material of barrage, when the content in designated is believed with comment When manner of breathing matches, it can be added to comment information as barrage at the corresponding location of content of designated, herein not It is limited to the generated time of the comment information, as long as content matches.For example, along an example is used, user is at the 2nd point Clock has delivered comment information " the words is too classical ", but when the content to designated is identified, recognizes Also occurs similar classical well-known saying in 10 minutes contents, then the comment information that can deliver user at the 2nd minute " the words is too classical " adds as barrage at the 10th minute of designated.
Fig. 2 shows the flow diagrams of the method in accordance with another embodiment of the present invention that barrage is added for video.Such as Shown in Fig. 2, the method for adding barrage for video is specially:Preset content identification, the knowledge of scene changes and visual classification first Other algorithm carries out preset algorithm identification, i.e. content recognition, scene changes identification and visual classification for a video to video, Recognition result is obtained, after obtaining recognition result, text information is on the one hand generated according to the recognition result of key frame and content, such as " high energy early warning, excellent, 666 " etc., as barrage, i.e. barrage generates, is added in designated the text information of generation; On the other hand, after user comments on, user comment is matched with video (here matching be time point matching or it is interior Hold matching), using user comment as barrage (i.e. barrage generates), it is added to corresponding position in designated.
Fig. 3 shows the structural schematic diagram of the device according to an embodiment of the invention that barrage is added for video.Such as Fig. 3 Shown, the device 300 that barrage should be added for video includes:
Recognition unit 310 is suitable for identifying the content of designated, obtains recognition result.
In the present embodiment, in order to enable the barrage of addition more matches the designated, it is necessary first to which identification is specified to be regarded The content of frequency, such as the classification of the video, scenic picture change, to carry out barrage word content according to the content recognized It obtains.
Acquiring unit 320 is suitable for obtaining corresponding text information according to recognition result.
Adding device 330, suitable for being added to the corresponding position of designated using the text information of acquisition as barrage content Place.
Here corresponding position can according to demand in the present embodiment, bullet be added automatically according to the content of designated Curtain, does not need user and adds manually, increases video interactive, avoids influencing the quality that user watches video, enhances making for user With experience.
A variety of identification methods of the content of designated are described in detail below, and then bullet is added for designated Curtain.
In one embodiment of the invention, recognition unit 310 are suitable for identifying designated according to preset classification information Content belonging to classification, obtain the classification information of the content of designated.
In the present embodiment, the classification of designated content is identified, specifically identifies the content institute of designated It is any in the preset classification belonged to.
Specifically, one or more during above-mentioned preset classification information includes as follows:Comedy class, terrified class, tragedy Class, dancing class, singing class, children's class, war class.
It should be noted that above-mentioned preset classification information is preferred embodiment.But preset classification information is not It should be limited to the above-mentioned classification for enumerating and.
Further, acquiring unit 320 are suitable for according to preset classification information, and determination matches respectively for each classification Text information, and preserve;Classification information belonging to content according to designated obtains the text information to match preserved.
That is, after recognizing the classification information belonging to the content of designated, in order to add and classification information The barrage matched is it is necessary to obtaining the matched text information of classification information described in the content with the designated.In the present embodiment, It is that corresponding text information is determined according to preset classification information first, to work as point recognized described in the content of designated It can be carried out the acquisition for the text information accordingly classified after category information.For example, to terrified class, the word letter to match is determined Breath is " good terror ";To comedy class, determine that the text information to match is " making laughs well " etc..
In one example, it is comedy class to recognize the classification information described in the content of designated, then being referred to according to this Determine the classification information described in the content of video to obtain the text information to match preserved to be " making laughs well ".It can will so obtain The text information " making laughs well " got is added to the corresponding position of the designated as barrage.
In one embodiment of the invention, recognition unit 310 judge to whether there is in designated suitable for passing through detection Scene changes meet the period of preset condition, are, obtain preset text information corresponding with scene changes.
In the present embodiment, the scene changes of designated content are identified, so as to according to scene changes addition The barrage matched.Under normal conditions, when the plot of designated changes greatly, user has the demand of addition barrage, so, here Primarily to scene changes larger period in identification designated, to obtain corresponding text information.
Further, adding device 330, suitable for being added to the text information of acquisition as barrage content in designated Scene changes meet at the period of preset condition.
Because in the present embodiment, acquisition is text information corresponding with scene changes, so being needed when addition The period for corresponding to the scene changes in designated can be only achieved scene and change, the effect that corresponding barrage occurs, and Non- is arbitrarily to add the text information of acquisition, further increases the usage experience of user.
Specifically, recognition unit 310 are suitable for, by detecting the pace of change of the designated color in designated picture, sentencing Meet the period of preset condition in disconnected designated with the presence or absence of picture pace of change;And/or pair by detecting designated The tempo variation speed for answering audio, judge in designated with the presence or absence of dub in background music tempo variation speed meet preset condition when Section.
The variation of designated Scene can be embodied directly on the rhythm of color or corresponding background audio, for example, In the designated of terrified class, when terrified scene occurs, be often furnished with the rhythm of allegro audio or audio from It releives to violent;In the video of dancing class, stage background color can be converted with the transformation of dance movement, when dance movement becomes When changing larger, larger variation can also occur accordingly in the background color of stage, i.e. background color in designated can occur Larger variation.So in the present embodiment, when detecting in designated with the presence or absence of scene changes, can be regarded by specified The variation of the rhythm of designated color or corresponding audio in frequency picture is detected.Specifically, the variation of color and/rhythm Variation is the volume embodied by designated color pace of change and/or the pace of change of rhythm, and therefore, detection is also corresponding The pace of change of color and/or the pace of change of rhythm.By detecting the pace of change of designated color and by detecting rhythm Pace of change, two ways can be used alone, and can also be combined with each other.
In one embodiment of the invention, device shown in Fig. 3 further comprises:
Comment information acquiring unit is suitable for obtaining comment information of the user to the designated.
Then adding device 330, suitable for being added to the corresponding position of designated using comment information as barrage content.
In practical applications, user can express the idea of oneself by way of comment, be not the side by barrage Formula, therefore, in order to ensure the better user interaction of designated, in the present embodiment, when user carries out designated When comment, it can also be added to comment information as barrage in designated.For example, user is when watching a designated, Comment " this video bears watching " is delivered in the comment area of designated, then after the user makes comments, so that it may with Comment " video bears watching " is added to as barrage in designated, so that other users can be directly obtained the use The idea at family.
Further, adding device 330, the generated time point of comment information when suitable for being played according to designated, by this Comment information is added to as barrage at the corresponding time point of designated;Alternatively, adding comment information as barrage content It is added at the position where the content of designated to match with comment information.
User may in real time comment on designated when watching designated, for the user as barrage Comment is corresponding with the scene of designated, according to the generated time of comment information or content, corresponding addition.For example, When user watches the 2nd minute of designated, the personage in video scene has said that sentence well-known saying, user think the well-known saying It is very classical, it can make comments information " the words is too classical " in comment area, then in order to enable the comment information of the user Corresponding with the scene of designated, the time point generated according to the comment information " the words is too classical " is designated 2nd minute, then just the comment information " the words is too classical " is added to as barrage at the 2nd minute of designated.
Alternatively, the user comment information obtained can be as the material of barrage, when the content in designated is believed with comment When manner of breathing matches, it can be added to comment information as barrage at the corresponding location of content of designated, herein not It is limited to the generated time of the comment information, as long as content matches.For example, along an example is used, user is at the 2nd point Clock has delivered comment information " the words is too classical ", but when the content to designated is identified, recognizes Also occurs similar classical well-known saying in 10 minutes contents, then the comment information that can deliver user at the 2nd minute " the words is too classical " adds as barrage at the 10th minute of designated.
The present invention also provides a kind of electronic equipment, wherein the electronic equipment includes:
Processor;And it is arranged to the memory of storage computer executable instructions, executable instruction is when executed Make processor execute according to figure 1 and its each embodiment be video addition barrage method
Fig. 4 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention.As shown in figure 4, the electronics Equipment 400 includes:
Processor 410;And it is arranged to the memory 420 of storage computer executable instructions (program code), it is depositing In reservoir 420, there are the memory space 430 of storage program code, the program code for executing steps of a method in accordance with the invention 430 are stored in memory space 430, and it is according to figure 1 and its each which when executed execute processor 410 It is the method for video addition barrage in embodiment.
Fig. 5 shows the structural schematic diagram of computer readable storage medium according to an embodiment of the invention.Such as Fig. 5 institutes Show, the computer readable storage medium 500, stores one or more programs (program code) 510, one or more program (journeys Sequence code) 510 when being executed by a processor, for executing steps of a method in accordance with the invention, i.e., shown in FIG. 1 and its each reality Apply in example be video addition barrage method.
It should be noted that each embodiment of electronic equipment shown in Fig. 4 and computer readable storage medium shown in fig. 5 It is corresponding identical as each embodiment of method shown in FIG. 1, it has been described in detail above, details are not described herein.
In conclusion according to the technique and scheme of the present invention, identifying the content of designated, recognition result is obtained;According to knowledge Other result obtains corresponding text information;It is added to the corresponding position of designated using the text information of acquisition as barrage content Place.By the technical program, it can be that video adds barrage automatically, not need user and add manually, increase video interactive, keep away Exempt to influence the quality that user watches video, enhances the usage experience of user.
It should be noted that:
Algorithm and display be not inherently related to any certain computer, virtual bench or miscellaneous equipment provided herein. Various fexible units can also be used together with teaching based on this.As described above, it constructs required by this kind of device Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) come realize it is according to the ... of the embodiment of the present invention for video add barrage device, The some or all functions of some or all components in electronic equipment and computer readable storage medium.The present invention may be used also To be embodied as some or all equipment or program of device for executing method as described herein (for example, calculating Machine program and computer program product).It is such to realize that the program of the present invention may be stored on the computer-readable medium, or It can be with the form of one or more signal.Such signal can be downloaded from internet website and be obtained, or carried It provides on body signal, or provides in any other forms.
For example, Fig. 4 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention.The electronic equipment 400 conventionally comprise processor 410 and are arranged to the memory 420 of storage computer executable instructions (program code).It deposits Reservoir 420 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk or ROM etc Electronic memory.Memory 420 has storage for executing any method and step in shown in FIG. 1 and each embodiment The memory space 430 of program code 440.For example, the memory space 430 for program code may include being respectively used to realization Each program code 440 of various steps in the method in face.These program codes can be from one or more computer journey It reads or is written in sequence product in this one or more computer program product.These computer program products include all Such as hard disk, the program code carrier of compact-disc (CD), storage card or floppy disk etc.Such computer program product is usually Such as the computer readable storage medium 500 described in Fig. 5.The computer readable storage medium 500 can have the electronics with Fig. 4 Memory paragraph, the memory space etc. of 420 similar arrangement of memory in equipment.Program code can be pressed for example in a suitable form Contracting.In general, storage unit is stored with the program code 510 for executing steps of a method in accordance with the invention, you can with by such as The program code that 410 etc processor is read causes the electronic equipment to be held when these program codes are run by electronic equipment Each step in row method described above.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of methods for adding barrage for video, wherein this method includes:
It identifies the content of designated, obtains recognition result;
Corresponding text information is obtained according to recognition result;
It is added to the corresponding position of designated using the text information of acquisition as barrage content.
A2, the method as described in A1, wherein the content of the identification designated, obtaining recognition result includes:
The classification belonging to the content of designated is identified according to preset classification information, is obtained described in the content of designated Classification information.
A3, the method as described in A2, wherein the preset classification information include it is following in it is one or more:
Comedy class, terrified class, tragedy class, dancing class, singing class, children's class, war class.
A4, the method as described in A2, wherein described to include according to the corresponding text information of recognition result acquisition:
According to preset classification information, the text information to match is determined respectively for each classification, and preserve;
Classification information belonging to content according to designated obtains the text information to match preserved.
A5, the method as described in A1, wherein the content of the identification designated, obtaining recognition result includes:
The period for meeting preset condition in designated with the presence or absence of scene changes is judged by detection, is then to obtain to preset Text information corresponding with scene changes.
A6, the method as described in A5, wherein described to be added to designated using the text information of acquisition as barrage content Corresponding position include:
The text information of acquisition is added to the scene changes in designated as barrage content and meets preset condition At period.
A7, the method as described in A5, wherein judge in designated to meet with the presence or absence of scene changes by detection default The period of condition includes:
By detecting the pace of change of the designated color in designated picture, judge to whether there is picture in designated Pace of change meets the period of preset condition;
And/or
By detecting the tempo variation speed of the correspondence audio of designated, judge in designated with the presence or absence of section of dubbing in background music Play the period that pace of change meets preset condition.
A8, the method as described in any one of A1-A7, wherein this method further comprises:
Obtain comment information of the user to the designated;
It is added to the corresponding position of designated using comment information as barrage content.
A9, the method as described in A8, wherein described to be added to the corresponding of designated using comment information as barrage content Include at position:
The generated time point of comment information, is added to specified using the comment information as barrage when being played according to designated At the corresponding time point of video;
Alternatively,
Position where comment information is added to the content of designated to match with comment information as barrage content Set place.
The invention also discloses B10, a kind of devices adding barrage for video, wherein the device includes:
Recognition unit is suitable for identifying the content of designated, obtains recognition result;
Acquiring unit is suitable for obtaining corresponding text information according to recognition result;
Adding device, suitable for being added to the corresponding position of designated using the text information of acquisition as barrage content.
B11, the device as described in B10, wherein
The recognition unit is suitable for the classification belonging to the content according to preset classification information identification designated, obtains Classification information described in the content of designated.
B12, the device as described in B11, wherein the preset classification information include it is following in it is one or more:
Comedy class, terrified class, tragedy class, dancing class, singing class, children's class, war class.
B13, the device as described in B11, wherein
The acquiring unit, is suitable for according to preset classification information, and the text information to match is determined respectively for each classification, And it preserves;Classification information belonging to content according to designated obtains the text information to match preserved.
B14, the device as described in B10, wherein
The recognition unit, suitable for judging to meet preset condition with the presence or absence of scene changes in designated by detection Period is to obtain preset text information corresponding with scene changes.
B15, the device as described in B14, wherein
The adding device becomes suitable for the text information of acquisition is added to the scene in designated as barrage content Change met at the period of preset condition.
B16, the device as described in B14, wherein
The recognition unit is suitable for the pace of change by detecting the designated color in designated picture, judges specified Meet the period of preset condition in video with the presence or absence of picture pace of change;And/or the correspondence audio by detecting designated Tempo variation speed, judge to meet period of preset condition with the presence or absence of tempo variation speed of dubbing in background music in designated.
B17, the device as described in any one of B10-B16, wherein the device further comprises:
Comment information acquiring unit is suitable for obtaining comment information of the user to the designated;
The adding device, suitable for being added to the corresponding position of designated using comment information as barrage content.
B18, the device as described in B17, wherein
The adding device, the generated time point of comment information when suitable for being played according to designated, by the comment information It is added at the corresponding time point of designated as barrage;Alternatively, being added to using comment information as barrage content specified At position where the content of video to match with comment information.
The invention also discloses C19, a kind of electronic equipment, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage method of the device execution according to any one of A1~A9.
The invention also discloses D20, a kind of computer readable storage mediums, wherein the computer readable storage medium The one or more programs of storage, one or more of programs when being executed by a processor, are realized described in any one of A1~A9 Method.

Claims (10)

1. a kind of method for adding barrage for video, wherein this method includes:
It identifies the content of designated, obtains recognition result;
Corresponding text information is obtained according to recognition result;
It is added to the corresponding position of designated using the text information of acquisition as barrage content.
2. the method for claim 1, wherein content of the identification designated, obtaining recognition result includes:
The classification belonging to the content of designated is identified according to preset classification information, obtains point described in the content of designated Category information.
3. method as claimed in claim 2, wherein the preset classification information include it is following in it is one or more:
Comedy class, terrified class, tragedy class, dancing class, singing class, children's class, war class.
4. method as claimed in claim 2, wherein described to include according to the corresponding text information of recognition result acquisition:
According to preset classification information, the text information to match is determined respectively for each classification, and preserve;
Classification information belonging to content according to designated obtains the text information to match preserved.
5. the method for claim 1, wherein content of the identification designated, obtaining recognition result includes:
Judge to meet period of preset condition with the presence or absence of scene changes in designated by detection, be obtain it is preset and The corresponding text information of scene changes.
6. method as claimed in claim 5, wherein described to be added to specified regard using the text information of acquisition as barrage content The corresponding position of frequency includes:
It is added to the period that the scene changes in designated meet preset condition using the text information of acquisition as barrage content Place.
7. method as claimed in claim 5, wherein judge in designated to meet with the presence or absence of scene changes by detection pre- If the period of condition includes:
By detecting the pace of change of the designated color in designated picture, judge to change with the presence or absence of picture in designated Speed meets the period of preset condition;
And/or
By detecting the tempo variation speed of the correspondence audio of designated, judge in designated with the presence or absence of rhythm change of dubbing in background music Change the period that speed meets preset condition.
8. a kind of device adding barrage for video, wherein the device includes:
Recognition unit is suitable for identifying the content of designated, obtains recognition result;
Acquiring unit is suitable for obtaining corresponding text information according to recognition result;
Adding device, suitable for being added to the corresponding position of designated using the text information of acquisition as barrage content.
9. a kind of electronic equipment, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute method according to any one of claims 1 to 7.
10. a kind of computer readable storage medium, wherein the computer-readable recording medium storage one or more program, One or more of programs when being executed by a processor, realize method according to any one of claims 1 to 7.
CN201810118808.8A 2018-02-06 2018-02-06 Method and device for adding barrage to video Active CN108495184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810118808.8A CN108495184B (en) 2018-02-06 2018-02-06 Method and device for adding barrage to video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810118808.8A CN108495184B (en) 2018-02-06 2018-02-06 Method and device for adding barrage to video

Publications (2)

Publication Number Publication Date
CN108495184A true CN108495184A (en) 2018-09-04
CN108495184B CN108495184B (en) 2021-08-20

Family

ID=63344604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810118808.8A Active CN108495184B (en) 2018-02-06 2018-02-06 Method and device for adding barrage to video

Country Status (1)

Country Link
CN (1) CN108495184B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351596A (en) * 2019-07-17 2019-10-18 刘进 A kind of internet stream media big data barrage processing system and processing method
CN110708588A (en) * 2019-10-17 2020-01-17 腾讯科技(深圳)有限公司 Barrage display method and device, terminal and storage medium
CN110740387A (en) * 2019-10-30 2020-01-31 深圳Tcl数字技术有限公司 bullet screen editing method, intelligent terminal and storage medium
CN114297354A (en) * 2021-12-02 2022-04-08 南京硅基智能科技有限公司 Bullet screen generation method and device, storage medium and electronic device
CN115484503A (en) * 2021-05-31 2022-12-16 上海幻电信息科技有限公司 Bullet screen generation method and device, electronic equipment and storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508923A (en) * 2011-11-22 2012-06-20 北京大学 Automatic video annotation method based on automatic classification and keyword marking
CN104469487A (en) * 2014-12-31 2015-03-25 合一网络技术(北京)有限公司 Detection method and device for scene switching points
CN104486682A (en) * 2014-12-30 2015-04-01 康佳集团股份有限公司 Method for checking television program comments
CN104618806A (en) * 2014-03-17 2015-05-13 腾讯科技(北京)有限公司 Method, device and system for acquiring comment information of video
CN104954889A (en) * 2014-03-28 2015-09-30 宇龙计算机通信科技(深圳)有限公司 Generating method and generating system of titles
CN104980625A (en) * 2015-06-19 2015-10-14 新奥特(北京)视频技术有限公司 Method and apparatus of video transition detection
CN105592331A (en) * 2015-12-16 2016-05-18 广州华多网络科技有限公司 Method for processing barrage messages, related equipment, and system
CN105791291A (en) * 2016-03-02 2016-07-20 腾讯科技(深圳)有限公司 Display control method for network application and real-time display update method and device
CN105893387A (en) * 2015-01-04 2016-08-24 伊姆西公司 Intelligent multimedia processing method and system
CN105959816A (en) * 2016-06-27 2016-09-21 乐视控股(北京)有限公司 Pop-up subtitle display method and apparatus
CN106454532A (en) * 2016-10-21 2017-02-22 合网络技术(北京)有限公司 Video player and interactive display method thereof
CN106792100A (en) * 2016-12-30 2017-05-31 北京奇艺世纪科技有限公司 A kind of video barrage display methods and device
CN106803985A (en) * 2017-02-28 2017-06-06 网易传媒科技(北京)有限公司 Method, device and computer-readable recording medium for display information when live
CN106937172A (en) * 2017-03-23 2017-07-07 百度在线网络技术(北京)有限公司 Interactive approach and device during video playback based on artificial intelligence
CN107040824A (en) * 2017-04-18 2017-08-11 深圳市金立通信设备有限公司 A kind of method and terminal for sending barrage
CN107436869A (en) * 2016-05-25 2017-12-05 北京奇虎科技有限公司 A kind of impression comment generation method and device
US20170359619A1 (en) * 2015-07-31 2017-12-14 Tencent Technology (Shenzhen) Company Limited Barrage video live broadcast method and apparatus, video source device, and network access device

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508923A (en) * 2011-11-22 2012-06-20 北京大学 Automatic video annotation method based on automatic classification and keyword marking
CN104618806A (en) * 2014-03-17 2015-05-13 腾讯科技(北京)有限公司 Method, device and system for acquiring comment information of video
CN104954889A (en) * 2014-03-28 2015-09-30 宇龙计算机通信科技(深圳)有限公司 Generating method and generating system of titles
CN104486682A (en) * 2014-12-30 2015-04-01 康佳集团股份有限公司 Method for checking television program comments
CN104469487A (en) * 2014-12-31 2015-03-25 合一网络技术(北京)有限公司 Detection method and device for scene switching points
CN105893387A (en) * 2015-01-04 2016-08-24 伊姆西公司 Intelligent multimedia processing method and system
CN104980625A (en) * 2015-06-19 2015-10-14 新奥特(北京)视频技术有限公司 Method and apparatus of video transition detection
US20170359619A1 (en) * 2015-07-31 2017-12-14 Tencent Technology (Shenzhen) Company Limited Barrage video live broadcast method and apparatus, video source device, and network access device
CN105592331A (en) * 2015-12-16 2016-05-18 广州华多网络科技有限公司 Method for processing barrage messages, related equipment, and system
CN105791291A (en) * 2016-03-02 2016-07-20 腾讯科技(深圳)有限公司 Display control method for network application and real-time display update method and device
CN107436869A (en) * 2016-05-25 2017-12-05 北京奇虎科技有限公司 A kind of impression comment generation method and device
CN105959816A (en) * 2016-06-27 2016-09-21 乐视控股(北京)有限公司 Pop-up subtitle display method and apparatus
CN106454532A (en) * 2016-10-21 2017-02-22 合网络技术(北京)有限公司 Video player and interactive display method thereof
CN106792100A (en) * 2016-12-30 2017-05-31 北京奇艺世纪科技有限公司 A kind of video barrage display methods and device
CN106803985A (en) * 2017-02-28 2017-06-06 网易传媒科技(北京)有限公司 Method, device and computer-readable recording medium for display information when live
CN106937172A (en) * 2017-03-23 2017-07-07 百度在线网络技术(北京)有限公司 Interactive approach and device during video playback based on artificial intelligence
CN107040824A (en) * 2017-04-18 2017-08-11 深圳市金立通信设备有限公司 A kind of method and terminal for sending barrage

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351596A (en) * 2019-07-17 2019-10-18 刘进 A kind of internet stream media big data barrage processing system and processing method
CN110351596B (en) * 2019-07-17 2021-07-27 上海播呗网络科技有限公司 Internet streaming media big data bullet screen processing system and processing method
CN110708588A (en) * 2019-10-17 2020-01-17 腾讯科技(深圳)有限公司 Barrage display method and device, terminal and storage medium
CN110708588B (en) * 2019-10-17 2021-10-26 腾讯科技(深圳)有限公司 Barrage display method and device, terminal and storage medium
CN110740387A (en) * 2019-10-30 2020-01-31 深圳Tcl数字技术有限公司 bullet screen editing method, intelligent terminal and storage medium
CN110740387B (en) * 2019-10-30 2021-11-23 深圳Tcl数字技术有限公司 Barrage editing method, intelligent terminal and storage medium
CN115484503A (en) * 2021-05-31 2022-12-16 上海幻电信息科技有限公司 Bullet screen generation method and device, electronic equipment and storage medium
CN115484503B (en) * 2021-05-31 2024-03-08 上海幻电信息科技有限公司 Bullet screen generation method and device, electronic equipment and storage medium
CN114297354A (en) * 2021-12-02 2022-04-08 南京硅基智能科技有限公司 Bullet screen generation method and device, storage medium and electronic device
CN114297354B (en) * 2021-12-02 2023-12-12 南京硅基智能科技有限公司 Bullet screen generation method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN108495184B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN108495184A (en) A kind of method and apparatus for adding barrage for video
CN106067992B (en) A kind of information recommendation method and device based on user behavior
EP3319081A1 (en) On-board voice command identification method and apparatus, and storage medium
CN108848416A (en) The evaluation method and device of audio-video frequency content
CN106648675A (en) Method and device for displaying application program using information and electronic equipment
Rouse et al. Beat keeping in a sea lion as coupled oscillation: implications for comparative understanding of human rhythm
CN109145123A (en) Construction method, intelligent interactive method, system and the electronic equipment of knowledge mapping model
CN108549662A (en) The supplement digestion procedure and device of semantic analysis result in more wheel sessions
CN105617657B (en) Game intelligence recommended method and device
CN108024083A (en) Handle method, apparatus, electronic equipment and the computer-readable recording medium of video
CN108429920A (en) A kind of method and apparatus of processing title party video
CN108377418A (en) A kind of video labeling treating method and apparatus
CN108460104A (en) A kind of method and apparatus for realizing content customization
CN105376148A (en) Chat message arrangement method and device
Rahman Beginning Microsoft Kinect for Windows SDK 2.0: Motion and Depth Sensing for Natural User Interfaces
CN105975844B (en) A kind of login method and device
CN105574110A (en) Intelligent game recommending method and device
CN108124101A (en) Video capture method, device, electronic equipment and computer readable storage medium
CN107526809A (en) Method and apparatus based on artificial intelligence push music
CN110188205A (en) A kind of update method and device of intelligent customer service system knowledge base
CN108829688A (en) Implementation method and device across languages interaction
CN106874335A (en) Behavioral data processing method, device and server
CN106653077A (en) Method and device for recording voice notes as well as readable storage medium
CN106815140A (en) A kind of interface test method and device
CN109634609A (en) Display methods, system, equipment and the storage medium of dynamic pop-up

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant