A kind of augmented reality method and its system based on barrage
Technical field
The present invention relates to augmented reality field, more particularly to a kind of augmented reality method and its system based on barrage.
Background technology
Barrage(barrage), Chinese vogue word, original meaning refer to a large amount of or a small amount of cannon provide intensive bombardment;The present invention
The barrage refers to the comment for largely being shown in captions ejection form while the phenomenon sailed on screen.Barrage can give spectators
The illusion of a kind of " real-time interactive ", although the transmission time of different barrages is otherwise varied, but it can be specific in video
One time point occurs, therefore the barrage sent in the same time in phase substantially also has identical theme, when comment is participated in just
Have the illusion commented on simultaneously with other spectators.And traditional player Commentary Systems are independently of outside player, therefore
The content of comment is centered around on whole video mostly, and topic is not strong, the sensation for also not having " real-time interactive ".
But barrage also has the disadvantage for blocking video content, some out of season barrages can also reduce spectators for video
Notice.Originally the video of target is sent on the contrary into supporting role as comment, put the cart before the horse.Such as barrage covers broadcasting picture
The majority or barrage information translational speed in face are too fast, and these barrage phenomenons can all have influence on the viewing experience of beholder.
The content of the invention
Goal of the invention:For above-mentioned situation, in order to overcome the shortcoming in background technology, one is the embodiment of the invention provides
Augmented reality method and its system based on barrage are planted, can effectively solve the problems, such as to be related in above-mentioned background technology.
Technical scheme:A kind of augmented reality system based on barrage, including for showing the terminal and AR of barrage information
Glasses, the terminal includes barrage information sending module, for broadcasting detecting frame of video corresponding with any one barrage information
When putting, the corresponding barrage information of the frame of video is sent to the AR glasses that RFDC is set up with terminal;The AR glasses
Including:Reality imagery acquisition module, carries for receiving to enable after barrage information towards the first camera intake of terminal
The reality imagery of terminal picture;Virtual information projection module, for barrage information to be incident upon into terminal as virtual information
Fang Jinhang shows.
Used as a kind of preferred embodiment of the invention, the AR glasses also include information back module, for returning display letter
Cease to the terminal;The terminal also includes barrage information hiding module, corresponding with frame of video for being controlled according to display information
Barrage information be hidden.
Used as a kind of preferred embodiment of the invention, the AR glasses also include:Eye image acquisition module, for enabling court
The image of user's eye is carried to the second camera intake of user;Blink detection module, for being blinked to user's eye
Eye detection, and judge whether frequency of wink reaches predeterminated frequency when blink is detected.
Used as a kind of preferred embodiment of the invention, the terminal also includes that barrage information splits module, for barrage to be believed
Breath is split according to the reproduction time node of frame of video, and the barrage information after segmentation carries the reproduction time of correspondence frame of video
Node;
The AR glasses also include:Barrage information searching module, the reproduction time node for obtaining terminal video frame, search with
The corresponding barrage information of reproduction time node;Projection submodule, for barrage information to be thrown according to corresponding reproduction time node
Penetrate above terminal and synchronize display.
Used as a kind of preferred embodiment of the invention, the terminal also includes:Barrage data obtaining module, for obtaining video
The barrage information that frame shows when playing;Barrage signal judgement module, for judging the translational speed of barrage information whether beyond pre-
If whether Su Du are He ∕ or judge footprint area of the barrage information in screen beyond preset area.
A kind of augmented reality method based on barrage, the augmented reality system described in usage right requirement 6, methods described bag
Include following steps:
Step1, for showing the terminal of barrage information when presentation of video frames corresponding with any one barrage information is detected, will
The corresponding barrage information of the frame of video is sent to the AR glasses that RFDC is set up with terminal;
Step2, the AR glasses receive the first camera intake enabled after barrage information towards terminal and carry terminal to be drawn
The reality imagery in face, barrage information is incident upon above terminal as virtual information and is shown.
As a kind of preferred embodiment of the invention, carried out barrage information is incident upon above terminal as virtual information
After display, also include:
The AR glasses passback displays information to the terminal;
The terminal controls barrage information corresponding with frame of video to be hidden according to display information.
As a kind of preferred embodiment of the invention, it is incident upon above terminal as virtual information in barrage information and is shown
Before showing, also include:
The AR glasses are enabled towards the second camera intake of user and carry the image of user's eye;
Blink detection is carried out to user's eye, and judges whether frequency of wink reaches predeterminated frequency when blink is detected;
If reaching, step is continued executing with, will otherwise terminate flow.
As a kind of preferred embodiment of the invention, nothing is set up with terminal the corresponding barrage information of the frame of video is sent to
Before the AR glasses of line data communication, also include:
The terminal is split barrage information according to the reproduction time node of frame of video, and the barrage information after segmentation is carried
The reproduction time node of correspondence frame of video;
Barrage information is incident upon above terminal as virtual information and is shown, including:
The AR glasses obtain the reproduction time node of terminal video frame, search barrage information corresponding with reproduction time node;
Barrage information is incident upon above terminal according to corresponding reproduction time node and synchronizes display
As a kind of preferred embodiment of the invention, set up without line number with terminal the corresponding barrage information of the frame of video is sent to
Before AR glasses according to communication, also include:
The terminal obtains the barrage information shown during presentation of video frames;
Judge barrage information translational speed whether beyond pre-set velocity He ∕ or judging that barrage information is in the footprint area of screen
It is no beyond preset area;
If exceeding, step is continued executing with, will otherwise terminate flow.
The present invention realizes following beneficial effect:By the barrage data obtaining module of the terminal, when obtaining video playback
The barrage information of display, is then sent to barrage signal judgement module by the barrage information of acquisition, judges the movement of barrage information
The footprint area of speed and barrage information in screen.If judge that it exceeds preset value, barrage information is sent to AR eyes, will
Barrage presentation of information is above terminal, and the information that will be shown is hidden on terminal video picture.It is therefore seen that the present invention is avoided
Barrage information translational speed on video pictures is too fast or the larger situation of footprint area, so as to reducing barrage information pair
The viewing influence of beholder.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure
Example, and it is used to explain the principle of the disclosure together in specification.A kind of augmented reality based on barrage that Fig. 1 is provided for the present invention
System structure diagram;
A kind of augmented reality method flow schematic diagram based on barrage that Fig. 2 is provided for the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.
Refer to Fig. 1, a kind of augmented reality system structure diagram based on barrage that Fig. 1 is provided for the present 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 include barrage information sending module 3, for detecting and any one barrage information
During corresponding presentation of video frames, the corresponding barrage information of the frame of video is sent to the AR that RFDC is set up with terminal 1
Glasses 2;The AR glasses 2 include:Reality imagery acquisition module 4, for receive enable after barrage information towards terminal
One camera 16 absorbs the reality imagery for carrying terminal picture;Virtual information projection module 5, for using barrage information as void
Intend information projection to be shown in the top of terminal 1.
Used as a kind of preferred embodiment of the invention, the AR glasses 2 also include information back module 6, are shown for returning
Information gives the terminal 1;The terminal 1 also includes barrage information hiding module 7, for according to display information control and frame of video
Corresponding barrage information is hidden.
Used as a kind of preferred embodiment of the invention, the AR glasses also 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 entering to user's eye
Row blink detection, and judge whether frequency of wink reaches predeterminated frequency when blink is detected.
Used as a kind of preferred embodiment of the invention, the terminal also includes that barrage information splits module 11, for by barrage
Information is split according to the reproduction time node of frame of video, when the barrage information after segmentation carries the broadcasting of correspondence frame of video
Intermediate node;
The AR glasses also include:Barrage information searching module 12, the reproduction time node for obtaining terminal video frame is searched
Barrage information corresponding with reproduction time node;Projection submodule 13, for by barrage information according to corresponding reproduction time section
Point is incident upon above terminal and synchronizes display.
Used as a kind of preferred embodiment of the invention, the terminal also includes:Barrage data obtaining module 14, regards for obtaining
The barrage information that frequency frame shows when playing;Whether barrage signal judgement module 15, the translational speed for judging barrage information surpasses
Go out pre-set velocity He ∕ or judging footprint area of the barrage information in screen whether beyond preset area.
Specifically, the barrage signal judgement module 15 of terminal 1 described first is carried out to the barrage information in terminal video picture
Monitoring in real time, i.e. monitoring in real time judge that the footprint area of the translational speed or barrage information of barrage information in screen is
It is no beyond preset value.When footprint area when the translational speed of barrage information or in screen exceeds preset value, will be beyond pre-
If the barrage information in a period of time of value carries out virtual reality using AR glasses 2.Wherein for the translational speed of barrage information
And its area occupied in screen judges, can be according in a period of time, the frame of video quantity for including barrage information is carried out
Judge.For example, the number of video frames amount for being set as in 1 second including barrage information in this implementation is 20, can recognize more than 20
For the barrage information translational speed or footprint area in screen exceed preset value.
Further, after barrage signal judgement module 15 has carried out judgement, barrage data obtaining module 14 pairs is all to be exceeded
Barrage information in the time of preset value is obtained.The mode of acquisition is to be exceeded in the time range of preset value by detection
Frame of video is detected, when detecting the presentation of video frames for including barrage information, by the frame of video and corresponding barrage information
Record.For example, barrage signal judgement module judges that reproduction time is the barrage information translational 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 be detected
During corresponding presentation of video frames, the frame of video, presentation of video frames node and corresponding barrage information record are got off.
In addition, the barrage information segmentation module 11 that the terminal 1 includes, by barrage information the broadcasting according to frame of video of acquisition
Put timing node to be split, the barrage information after segmentation carries corresponding presentation of video frames timing node.
For example in the present embodiment, the video frame information with timing node after the information segmentation that will be obtained is specific as follows
Shown in table:
Frame of video 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 aim at man No. one come!
41 points 51 seconds it is plain, it is weak!
Further, after barrage information segmentation module 11 segments barrage information and its corresponding frame of video, after segmentation
The information of formation sends AR glasses 2 to by barrage information sending module.After AR glasses 2 receive above- mentioned information, beyond pre-
If in the time range of value, enabling reality imagery of the intake with terminal video picture of the first camera 16 towards terminal.This
The intake terminal picture of the first camera 16 is by the way of video recording is scanned in embodiment.
Further, while the first camera 16 absorbs terminal video picture, the barrage information that AR glasses 2 are included is looked into
Module 12 is looked for, the reproduction time node of the terminal picture reality imagery according to intake finds out corresponding frame of video 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 the reproduction time node of reality in the picture of intake, as the foundation for judging terminal plays node.
For example in this implementation in, the reproduction time of reality in the reality imagery in the terminal picture of the intake of the first camera 16
Node be 1 point 32 seconds, then barrage information searching module will in the video frame search 1 point of 32 seconds corresponding frame of video and corresponding bullet
Curtain information, i.e., " this film is very good-looking!”
Further, the barrage information that virtual information projection module 5 will be received is carried out in real time according to the broadcast nodes of frame of video
Be incident upon intake terminal picture top shown.
For example, in the present embodiment, when presentation of video frames was by 1 point and 32 seconds, on the terminal picture of the intake of the first camera 16
" this film is very good-looking for Fang Huiyou!" printed words appearance.
Further, virtually shown for the corresponding barrage information of frame of video within the time in AR glasses 2
While, by information back module 6, the corresponding frame of video of barrage information of virtual reality is sent to terminal 1 as signal.
The terminal 1 in receiving the signal be video frame information after, using barrage information hiding module, to the frame of video pair
The barrage information answered is hidden.
For example when frame of video 1 point is played for 32 seconds the corresponding barrage information of frame of video of the timing node is for " this film is true
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 regards
Frequency frame is sent to terminal 1 as feedback information, terminal 1 when video playback was to 1 point and 32 seconds, using barrage information hiding module 7
It is that the corresponding barrage information of frame of video is hidden to this, so as to will not be shown on the video pictures of terminal.
Embodiment two
Refer to Fig. 1, a kind of augmented reality system structure diagram based on barrage that Fig. 1 is provided for the present invention.
Specifically, a kind of augmented reality system based on barrage that embodiment two is provided, big with described in embodiment one
Body is similar to, and during difference is embodiment two, AR glasses 2 are further included: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
Survey, and judge whether frequency of wink reaches predeterminated frequency when blink is detected.And whether exceed preset value according to frequency of wink,
Barrage is virtually shown.Even reach, carry out virtual display, do not shown virtually otherwise.
Specifically, when reading barrage using the AR glasses 2 according to user, imaging acquisition module 8 by eye and locking
The eye image of user, after locking, using blink detection module 9, carries out real-time blink detection, and sentence to user's eye
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, do not shown virtually otherwise.
Embodiment three
Refer to Fig. 2, a kind of augmented reality method flow schematic diagram based on barrage that Fig. 2 is provided for the present invention.Specifically, this
Embodiment provides a kind of augmented reality method based on barrage, the augmented reality system described in usage right requirement 6, methods described
Comprise the following steps:
Step1, for showing the terminal of barrage information when presentation of video frames corresponding with any one barrage information is detected, will
The corresponding barrage information of the frame of video is sent to the AR glasses that RFDC is set up with terminal;
Step2, the AR glasses receive the first camera intake enabled after barrage information towards terminal and carry terminal to be drawn
The reality imagery in face, barrage information is incident upon above terminal as virtual information and is shown.
As a kind of preferred embodiment of the invention, carried out barrage information is incident upon above terminal as virtual information
After display, also include:
The AR glasses passback displays information to the terminal;
The terminal controls barrage information corresponding with frame of video to be hidden according to display information.
As a kind of preferred embodiment of the invention, it is incident upon above terminal as virtual information in barrage information and is shown
Before showing, also include:
The AR glasses are enabled towards the second camera intake of user and carry the image of user's eye;
Blink detection is carried out to user's eye, and judges whether frequency of wink reaches predeterminated frequency when blink is detected;
If reaching, step is continued executing with, will otherwise terminate flow.
As a kind of preferred embodiment of the invention, nothing is set up with terminal the corresponding barrage information of the frame of video is sent to
Before the AR glasses of line data communication, also include:
The terminal is split barrage information according to the reproduction time node of frame of video, and the barrage information after segmentation is carried
The reproduction time node of correspondence frame of video;
Barrage information is incident upon above terminal as virtual information and is shown, including:
The AR glasses obtain the reproduction time node of terminal video frame, search barrage information corresponding with reproduction time node;
Barrage information is incident upon above terminal according to corresponding reproduction time node and synchronizes display
As a kind of preferred embodiment of the invention, set up without line number with terminal the corresponding barrage information of the frame of video is sent to
Before AR glasses according to communication, also include:
The terminal obtains the barrage information shown during presentation of video frames;
Judge barrage information translational speed whether beyond pre-set velocity He ∕ or judging that barrage information is in the footprint area of screen
It is no beyond preset area;
If exceeding, step is continued executing with, will otherwise terminate flow.
It should be understood that the process that embodiment three is implemented can be corresponding with the description of embodiment one, embodiment two, herein not
Describe in detail again.
The above embodiments merely illustrate the technical concept and features of the present invention, and the skill of the technical field is familiar with the purpose is to allow
Art personnel will appreciate that present disclosure and implement according to this, can not be limited the scope of the invention with this.All bases
Equivalents or modification done by spirit of the invention, should all be included within the scope of the present invention.