A kind of augmented reality method and its system based on barrage
Technical field
The present invention relates to augmented reality field, in particular to a kind of augmented reality method and its system based on barrage.
Background technique
Barrage (barrage), Chinese vogue word, original meaning, which refers to, provides intensive bombardment with a large amount of or a small amount of cannon;The present invention
The phenomenon that barrage is referred to the comment largely shown with subtitle pop-up form while sailed on the screen.Barrage can give spectators
The illusion of a kind of " real-time interactive ", although the sending time different from of different barrages, it only can be specific in video
One time point occurs, therefore in the barrage mutually sent in the same time substantially also theme having the same, just when participating in comment
Have the illusion commented on simultaneously with other spectators.And traditional player Commentary Systems are independently of except player, therefore
The content of comment is centered around mostly on entire video, and topic is not strong, does not also have the feeling of " real-time interactive ".
But barrage also has the disadvantage for blocking video content, some out of season barrages can also reduce spectators for video
Attention.Originally the video as comment transmission target is put the cart before the horse instead at supporting role.Such as barrage covers broadcasting picture
The majority or barrage information movement speed in face are too fast, these barrage phenomenons can all influence the viewing experience of viewer.
Summary of the invention
Goal of the invention: it is directed to above situation, in order to overcome the disadvantage in background technique, the embodiment of the invention provides one
Augmented reality method and its system of the kind based on barrage, the problem of can be effectively solved involved in above-mentioned background technique.
Technical solution: a kind of augmented reality system based on barrage, including for showing the terminal and AR of barrage information
Glasses, the terminal include barrage information sending module, for detecting that video frame corresponding with any one barrage information broadcasts
When putting, the corresponding barrage information of the video frame is sent to the AR glasses that wireless data communication is established with terminal;The AR glasses
Include: reality imagery acquisition module, is carried for receiving the first camera intake enabled after barrage information towards terminal
The reality imagery of terminal picture;Virtual information projection module, for being incident upon terminal using barrage information as virtual information
Fang Jinhang is shown.
As a kind of preferred embodiment of the invention, the AR glasses further include information back module, for returning display letter
It ceases to the terminal;The terminal further includes barrage information hiding module, for corresponding with video frame according to display information control
Barrage information be hidden.
As a kind of preferred embodiment of the invention, the AR glasses further include: eye image acquisition module, for enabling court
The image of user's eye is carried to the intake of the second camera of user;Blink detection module, for being blinked to user's eye
Eye detection, and judge whether frequency of wink reaches predeterminated frequency when detecting blink.
As a kind of preferred embodiment of the invention, the terminal further includes barrage information segmentation module, for believing barrage
Breath is split according to the play time node of video frame, and the barrage information after segmentation carries the play time of corresponding video frame
Node;
The AR glasses further include: barrage information searching module is looked into for obtaining the play time node of terminal video frame
Look for barrage information corresponding with play time node;Submodule is projected, is used for barrage information according to corresponding play time section
Point, which is incident upon above terminal, synchronizes display.
As a kind of preferred embodiment of the invention, the terminal further include: barrage data obtaining module, for obtaining video
The barrage information that frame is shown when playing;Barrage signal judgement module, for judging it is pre- whether the movement speed of barrage information exceeds
If Su Du is He ∕ or judge whether barrage information exceeds preset area in the footprint area of screen.
A kind of augmented reality method based on barrage, uses augmented reality system as claimed in claim 6, the method packet
Include following steps:
Step1, for showing that the terminal of barrage information is detecting presentation of video frames corresponding with any one barrage information
When, the corresponding barrage information of the video frame is sent to the AR glasses that wireless data communication is established with terminal;
Step2, the AR glasses receive the first camera intake enabled after barrage information towards terminal and carry end
The reality imagery for holding picture, barrage information is incident upon above terminal as virtual information and is shown.
As a kind of preferred embodiment of the invention, carried out in the top that barrage information is incident upon terminal as virtual information
After display, further includes:
The AR glasses passback displays information to the terminal;
The terminal controls barrage information corresponding with video frame according to display information and is hidden.
As a kind of preferred embodiment of the invention, it is incident upon above terminal and is shown as virtual information in barrage information
Before showing, further includes:
The AR glasses enable the image that user's eye is carried towards the second camera intake of user;
Blink detection is carried out to user's eye, and judges whether frequency of wink reaches predeterminated frequency when detecting blink;
If reaching, step is continued to execute, otherwise will terminate process.
As a kind of preferred embodiment of the invention, nothing is established with terminal being sent to the corresponding barrage information of the video frame
Before the AR glasses of line data communication, further includes:
Barrage information is split by the terminal according to the play time node of video frame, and the barrage information after segmentation is taken
Play time node with corresponding video frame;
Barrage information is incident upon above terminal as virtual information and is shown, comprising:
The AR glasses obtain the play time node of terminal video frame, search barrage letter corresponding with play time node
Breath;
Barrage information is incident upon above terminal according to corresponding play time node and synchronizes display
As a kind of preferred embodiment of the invention, nothing is established with terminal being sent to the corresponding barrage information of the video frame
Before the AR glasses of line data communication, further includes:
The terminal obtains the barrage information shown when presentation of video frames;
Judge whether the movement speed of barrage information exceeds pre-set velocity He ∕ or judging that barrage information occupies face in screen
Whether product exceeds preset area;
If exceeding, step is continued to execute, otherwise will terminate process.
The present invention realizes following the utility model has the advantages that passing through the barrage data obtaining module of the terminal, when acquisition video playing
The barrage information of display, the barrage information that then will acquire are sent to barrage signal judgement module, judge the movement of barrage information
The footprint area of speed and barrage information in screen.If judge it beyond preset value, barrage information is sent to AR eyes, it will
Barrage information is shown in above terminal, and the information of display is hidden on terminal video picture.It is therefore seen that the present invention avoids
Barrage information mobile excessive velocities or the larger situation of footprint area on video pictures, to reduce barrage information pair
The viewing of viewer influences.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and consistent with the instructions for explaining the principles of this disclosure.Fig. 1 is a kind of augmented reality based on barrage provided by the invention
System structure diagram;
Fig. 2 is a kind of augmented reality method flow schematic diagram based on barrage provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.
Fig. 1 is please referred to, Fig. 1 is a kind of augmented reality system structure diagram based on barrage provided by the invention.
Specifically, the present embodiment provides a kind of augmented reality system based on barrage, including for showing barrage information
Terminal 1 and AR glasses 2, the terminal 1 includes barrage information sending module 3, for detecting and any one barrage information
When corresponding presentation of video frames, the corresponding barrage information of the video frame is sent to the AR that wireless data communication is established with terminal 1
Glasses 2;The AR glasses 2 include: reality imagery acquisition module 4, for receiving enable after barrage information towards terminal the
One camera 16 absorbs the reality imagery for carrying terminal picture;Virtual information projection module 5, for using barrage information as void
Quasi- information projection is shown in the top of terminal 1.
As a kind of preferred embodiment of the invention, the AR glasses 2 further include information back module 6, for returning display
Information gives the terminal 1;The terminal 1 further includes barrage information hiding module 7, for according to the control of display information and video frame
Corresponding barrage information is hidden.
As a kind of preferred embodiment of the invention, the AR glasses further include: eye image acquisition module 8, for enabling
The image for carrying user's eye is absorbed towards the second camera 9 of user;Blink detection module 10, for user's eye into
Row blink detection, and judge whether frequency of wink reaches predeterminated frequency when detecting blink.
As a kind of preferred embodiment of the invention, the terminal further includes barrage information segmentation module 11, is used for barrage
Information is split according to the play time node of video frame, when the barrage information after segmentation carries the broadcasting of corresponding video frame
Intermediate node;
The AR glasses further include: barrage information searching module 12, for obtaining the play time node of terminal video frame,
Search barrage information corresponding with play time node;Submodule 13 is projected, when for by barrage information according to corresponding broadcasting
Intermediate node, which is incident upon above terminal, synchronizes display.
As a kind of preferred embodiment of the invention, the terminal further include: barrage data obtaining module 14, for obtaining view
The barrage information that frequency frame is shown when playing;Barrage signal judgement module 15, for judging whether the movement speed of barrage information surpasses
Pre-set velocity is He ∕ or judge whether barrage information exceeds preset area in the footprint area of screen out.
Specifically, the 1 barrage signal judgement module 15 of terminal described first carries out the barrage information in terminal video picture
Monitoring in real time, i.e. monitoring in real time judge that the footprint area of the movement speed or barrage information of barrage information in screen is
It is no to exceed preset value.When the movement speed of barrage information or the footprint area in screen exceed preset value, will exceed pre-
If the barrage information in a period of time of value carries out virtual reality using AR glasses 2.Wherein for the movement speed of barrage information
And its area judgement occupied in screen, it can be carried out according to the video frame quantity in a period of time, including barrage information
Judgement.For example, be set as in 1 second in this implementation include barrage information number of video frames amount be 20, can recognize more than 20
For in screen barrage information movement speed or footprint area exceed preset value.
Further, after barrage signal judgement module 15 has carried out judgement, barrage data obtaining module 14 exceeds to all
Barrage information in the time of preset value is obtained.The mode of acquisition is to pass through detection beyond in the time range of preset value
Video frame is detected, and is detected when including the presentation of video frames of barrage information, by the video frame and corresponding barrage information
It records.For example, barrage signal judgement module judges play time for the barrage information movement speed in 1 point 30 seconds to 2 points
Or footprint area exceeds preset value, then any one barrage information in the time that barrage data obtaining module 14 will test
When corresponding presentation of video frames, the video frame, presentation of video frames node and corresponding barrage information are recorded.
In addition, the barrage information segmentation module 11 that the terminal 1 includes, barrage information the broadcasting according to video frame that will acquire
It puts timing node to be split, the barrage information after segmentation carries corresponding presentation of video frames timing node.
Such as in the present embodiment, the video frame information with timing node after the segmentation of the information that will acquire is specific as follows
Shown in table:
Video frame presentation of video frames node barrage information
11 points of 32 seconds this films are very good-looking!
21 points of 40 seconds leading ladies are very beautiful!
31 points 44 seconds I be exactly aim at male No.1 come!
41 points 51 seconds it is plain, it is weak!
Further, after barrage information segmentation module 11 segments barrage information and its corresponding video frame, will divide
The information formed after cutting sends AR glasses 2 to by barrage information sending module.After AR glasses 2 receive above- mentioned information, super
Out in the time range of preset value, the real shadow that terminal video picture is had towards the first camera 16 intake of terminal is enabled
Picture.The first camera 16 intake terminal picture is by the way of scanning video recording in the present embodiment.
Further, while the first camera 16 absorbs terminal video picture, the barrage information that AR glasses 2 include is looked into
Module 12 is looked for, according to the play time node of the terminal picture reality imagery of intake, finds out corresponding video frame and corresponding bullet
Curtain information, and its barrage information is sent to virtual information projection module 5.In actual implementation process, barrage information searching
Module 12 can be according to play time node real in the picture of intake, as the foundation for judging terminal plays node.
Such as in this implementation in, real play time in the reality imagery in the terminal picture of the first camera 16 intake
Node be 1 point 32 seconds, then barrage information searching module will search 1 point of 32 seconds corresponding video frame and corresponding bullet in the video frame
Curtain information, i.e., " this film is very good-looking!"
Further, virtual information projection module 5 carries out the barrage information received according to the broadcast nodes of video frame
It is incident upon above the terminal picture of intake and is shown in real time.
For example, in the present embodiment, when presentation of video frames was by 1 point and 32 seconds, on the terminal picture of the first camera 16 intake
" this film is very good-looking by Fang Huiyou!" printed words appearance.
Further, this is virtually shown beyond the corresponding barrage information of video frame in the time in AR glasses 2
While, by information back module 6, the corresponding video frame of barrage information of virtual reality is sent to terminal 1 as signal.
The terminal 1 receive in the signal be video frame information after, using barrage information hiding module, to the video frame pair
The barrage information answered is hidden.
Such as video frame 1 divides the corresponding barrage information of video frame of timing node when playing to be that " this film is true 32 seconds
It is good-looking!", after this barrage information is virtually shown by AR glasses 2, the information back module 6 of AR glasses, by 1 point of 32 seconds view
Frequency frame is sent to terminal 1 as feedback information, and terminal 1 utilizes barrage information hiding module 7 when video playing was to 1 point and 32 seconds
It is that the corresponding barrage information of video frame is hidden to this, to will not be shown on the video pictures of terminal.
Embodiment two
Fig. 1 is please referred to, Fig. 1 is a kind of augmented reality system structure diagram based on barrage provided by the invention.
It is and big described in embodiment one specifically, a kind of augmented reality system based on barrage provided by embodiment two
Body is similar, the difference is that AR glasses 2 further include in embodiment two: eye image acquisition module 8, for enabling towards use
The second camera intake at family carries the image of user's eye;Blink detection module 9, for carrying out blink inspection to user's eye
It surveys, and judges whether frequency of wink reaches predeterminated frequency when detecting blink.And whether exceed preset value according to frequency of wink,
Barrage is virtually shown.Even reach, carry out virtual display, otherwise without virtually showing.
Specifically, imaging acquisition module 8 when reading barrage using the AR glasses 2 according to user by eye and locking
The eye image of user using blink detection module 9, carries out real-time blink detection to user's eye, and sentence after locking
Whether disconnected frequency of wink reaches predeterminated frequency.It is last whether to exceed preset value according to frequency of wink, barrage is virtually shown.
Even reach, carry out virtual display, otherwise without virtually showing.
Embodiment three
Referring to FIG. 2, Fig. 2 is a kind of augmented reality method flow schematic diagram based on barrage provided by the invention.Specifically
, the augmented reality method based on barrage that the present embodiment provides a kind of uses augmented reality system as claimed in claim 6, institute
State method the following steps are included:
Step1, for showing that the terminal of barrage information is detecting presentation of video frames corresponding with any one barrage information
When, the corresponding barrage information of the video frame is sent to the AR glasses that wireless data communication is established with terminal;
Step2, the AR glasses receive the first camera intake enabled after barrage information towards terminal and carry end
The reality imagery for holding picture, barrage information is incident upon above terminal as virtual information and is shown.
As a kind of preferred embodiment of the invention, carried out in the top that barrage information is incident upon terminal as virtual information
After display, further includes:
The AR glasses passback displays information to the terminal;
The terminal controls barrage information corresponding with video frame according to display information and is hidden.
As a kind of preferred embodiment of the invention, it is incident upon above terminal and is shown as virtual information in barrage information
Before showing, further includes:
The AR glasses enable the image that user's eye is carried towards the second camera intake of user;
Blink detection is carried out to user's eye, and judges whether frequency of wink reaches predeterminated frequency when detecting blink;
If reaching, step is continued to execute, otherwise will terminate process.
As a kind of preferred embodiment of the invention, nothing is established with terminal being sent to the corresponding barrage information of the video frame
Before the AR glasses of line data communication, further includes:
Barrage information is split by the terminal according to the play time node of video frame, and the barrage information after segmentation is taken
Play time node with corresponding video frame;
Barrage information is incident upon above terminal as virtual information and is shown, comprising:
The AR glasses obtain the play time node of terminal video frame, search barrage letter corresponding with play time node
Breath;
Barrage information is incident upon above terminal according to corresponding play time node and synchronizes display
As a kind of preferred embodiment of the invention, nothing is established with terminal being sent to the corresponding barrage information of the video frame
Before the AR glasses of line data communication, further includes:
The terminal obtains the barrage information shown when presentation of video frames;
Judge whether the movement speed of barrage information exceeds pre-set velocity He ∕ or judging that barrage information occupies face in screen
Whether product exceeds preset area;
If exceeding, step is continued to execute, otherwise will terminate process.
It should be understood that the process that embodiment three implements can be corresponding with the description of embodiment one, embodiment two, herein not
It is described in detail again.
The above embodiments merely illustrate the technical concept and features of the present invention, and the purpose is to allow the skill for being familiar with the technical field
Art personnel can understand the content of the present invention and implement it accordingly, and can not be limited the scope of the invention with this.All bases
Equivalent changes or modifications made by spirit of the invention, should be covered by the protection scope of the present invention.