Summary of the invention
In order to solve the above-mentioned technical problem, the purpose of the present invention is to provide a kind of adaptive chat bubble display sides
Method, system, device and storage medium.
On the one hand, the embodiment of the present invention includes a kind of adaptive chat bubble display methods, comprising the following steps:
Obtain the picture containing at least one chat bubble;The picture also contains at least one virtual figure image, respectively
Chat bubble chat content for rendering;
Eyeball tracking is executed, and the chat bubble watched attentively is chosen to be target bubble;
Target area is intercepted out in the picture;Some or all of described target bubble is included in the target area
In domain;
Show the target area.
Further, the execution eyeball tracking, and the chat bubble watched attentively is chosen to be this step of target bubble
Suddenly, it specifically includes:
Eyeball tracking is carried out to user, so that it is determined that the sight focus of user;
It, will be with the sight focus weight when the sight focus is overlapped with any chat bubble in the picture
The chat bubble of conjunction is chosen to be target bubble;
It, will be burnt with the sight when the sight focus is overlapped with any virtual figure image in the picture
The virtual figure image that point is overlapped is chosen to be destination virtual figure image, and occurs being directed toward the destination virtual personage detecting
When the chat bubble of image, which is chosen to be the target bubble.
Further, the execution eyeball tracking, and the chat bubble watched attentively is chosen to be this step of target bubble
Suddenly, it specifically includes:
Eyeball tracking is carried out to user, so that it is determined that the sight focus of user;
When detecting there are multiple sight focuses on the picture, multiple sight focus positions are calculated
Geometric center;
It, will be with the geometric center weight when the geometric center is overlapped with any chat bubble in the picture
The chat bubble of conjunction is chosen to be target bubble.
Further, it described the step for intercepting out target area in the picture, specifically includes:
Determine destination virtual figure image pointed by the target bubble;
Generate interception frame;
Adjusted on the picture it is described interception frame size and location, until the target bubble a part or whole part with
And described figural a part or whole part of destination virtual is included in the interception frame;
The part being included in the interception frame in the picture is extracted as the target area.
Further, described the step for intercepting out target area in the picture, specifically further include:
The target area is divided into foreground part and background parts;The foreground part is by the target bubble
Part composed by a part or whole part and the figural a part or whole part of the destination virtual, the background parts are described
Other parts in target area in addition to the foreground part;
Fuzzy processing is carried out to the background parts.
Further, it the step for the display target area, specifically includes:
The target area is amplified to size identical with the picture;
The amplification process of target area described in Dynamically Announce;
It is continuously display to pass through the amplified target area.
Further, the adaptive chat bubble display methods is further comprising the steps of:
After the amplified target area is continuously displayed and reaches preset duration, terminate to the target area
The display in domain;
Restore to show the picture.
On the other hand, the embodiment of the invention also includes a kind of adaptive chat bubble display systems, comprising:
Picture obtains module, for obtaining the picture containing at least one chat bubble;The picture also contains at least one
A virtual figure image, each chat bubble chat content for rendering;
Eyeball tracking module is chosen to be target bubble for executing eyeball tracking, and by the chat bubble watched attentively;
Region interception module, for intercepting out target area in the picture;Some or all of described target bubble
It is included in the target area;
Region display module, for showing the target area.
On the other hand, the embodiment of the invention also includes a kind of adaptive chat bubble display devices, including memory, place
Device, eyeball tracking device and display are managed, for the memory for storing at least one program, the processor is described for loading
For at least one program to execute the method for the embodiment of the present invention, the eyeball tracking device is described aobvious for executing eyeball tracking
Show device for showing the picture and/or the target area.
On the other hand, the embodiment of the invention also includes a kind of storage mediums, wherein it is stored with the executable instruction of processor,
The executable instruction of the processor is used to execute the method for the present invention when executed by the processor.
The beneficial effects of the present invention are: multiple chat bubbles will occur on picture when there is multiple users speech simultaneously.It is logical
It crosses and obtains the target bubble watched attentively of user using eyeball tracking technology, and by the target bubble region from entire picture
On separate, individually show the target bubble region, realize the visual effect to the target bubble " to feature ", keep away
Exempt from target bubble to be overshadowed in chat bubble that is multiple while occurring, information needed for alloing user's timely learning, thus
Improve the interactivity of the interaction tools such as chatroom or virtual auditorium.
Specific embodiment
The present embodiment includes a kind of adaptive chat bubble display methods, referring to Fig. 2, comprising the following steps:
S1. the picture containing at least one chat bubble is obtained;The picture also contains at least one virtual figure image,
Each chat bubble chat content for rendering;
S2. eyeball tracking is executed, and the chat bubble watched attentively is chosen to be target bubble;
S3. target area is intercepted out in the picture;Some or all of described target bubble is included in the mesh
It marks in region;
S4. the target area is shown.
In the present embodiment, the adaptive chat bubble display methods is in the mobile phone of any user or tablet computer etc.
It is realized in terminal.The media such as the terminal through internet are connect with server, on the server run chatroom or
The programs such as virtual auditorium, these Program Generatings contain at least one virtual figure image and containing at least one chat bubbles
Then these picture datas are transferred to terminal by picture, shown by terminal by display screen.
The virtual figure image refers to through computer program figure generated or animation, the virtual figure image
It can be used to represent a user, a terminal used by a user or one are used to simulate the robot journey of live user
Sequence.The virtual figure image can be humanoid cartoon character, is also possible to the cartoon character of toy shape, can also be and pass through
The computer graphical for being used to simulate true man that the modes such as artificial intelligence generate.
In step sl, the terminal through internet receives the picture that the server generates.The picture sheet
It is a frame in matter, when continuously receiving multiple pictures and continuously displaying these pictures, animation one can be showed in terminal
The result of broadcast of sample.
In step s 2, implement eyeball tracking technology, the eyeball of user is tracked, so as to know user
The position for being just look at or staring.When user is just being look at some chat bubble, the chat bubble that this is watched attentively is selected
It is set to target bubble.
When executing step S2, the eyeball action message that existing eyeball tracking device obtains user can be used, these
Eyeball action message is handled by eyeball tracking device, determines the sight of user focuses on where, exports the sight of user
The coordinate of focus.The program and algorithm that the processor of program and algorithm and terminal that eyeball tracking device is run is run can
Can be different, therefore when eyeball tracking device and the processor of terminal handle pixel or location point used seat
Mark system may also be different, therefore the processor of terminal needs the coordinate by sight focus to be converted into the pixel coordinate on picture.Such as
The pixel coordinate that fruit converts on resulting picture is fallen in some chat bubble, then this chat bubble is just chosen to be target
Bubble.
In step s3, the processor of terminal is split the picture, to intercept out target in the picture
Region.The target area is actually a part of the picture, and the target area should meet such property: it can
Some or all of described target bubble to be included, that is to say, that if show the target area on the screen,
User can see some or all of described target bubble.
In step s 4, the target area data transmission that the processor of terminal comes out interception, will be described to display module
Target area is shown.
Chat bubble in the present embodiment can be realized following technical effect: when and meanwhile have multiple users speech when, picture
On multiple chat bubbles will occur.The target bubble watched attentively of user is obtained by using eyeball tracking technology, and by the mesh
Standard gas bubble region is separated from entire picture, is individually shown the target bubble region, is realized to the target
The visual effect of bubble " giving feature " avoids target bubble from being overshadowed in chat bubble that is multiple while occurring, makes user can
With information needed for timely learning, to improve the interactivity of the interaction tools such as chatroom or virtual auditorium.
It is further used as preferred embodiment, the step S2, i.e. execution eyeball tracking, and the chat gas that will be watched attentively
The step for being chosen to be target bubble of bubble, specifically includes:
S201A. eyeball tracking is carried out to user, so that it is determined that the sight focus of user;
It S202A., will be with the sight when the sight focus is overlapped with any chat bubble in the picture
The chat bubble that focus is overlapped is chosen to be target bubble;
S203A. when the sight focus is overlapped with any virtual figure image in the picture, will with it is described
The virtual figure image that sight focus is overlapped is chosen to be destination virtual figure image, and occurs being directed toward the target void detecting
When intending figural chat bubble, which is chosen to be the target bubble.
In the present embodiment, the step S201A-S203A is one of implementation of step S2, i.e., the described step S2
It can be and be made of step S201A-S203A.
In step S201A, the eyeball movement of user is detected by eyeball tracking technology, can determine the mesh of user
Optical focus position.If coordinate system used in eyeball tracking device is identical as coordinate system used in terminal handler, that
Position of the sight focus of user on the picture can be directly determined using the coordinate that eyeball tracking device is exported.
If coordinate system used in eyeball tracking device is different from coordinate system used in terminal handler, an a pair can establish
It should be related to, the coordinate that eyeball tracking device is exported is mapped to position of the sight focus of user on the picture.
Step S202A is to be directed to a kind of executive condition of step S201A and execute.In step S202A, if detected
The sight focus is overlapped with any chat bubble in the picture, i.e., throwing of the described sight focus on the picture
Shadow point is in the range of a certain chat bubble, then this chat bubble for containing sight focus is just chosen to be target gas
Bubble.
For example, passing through eyeball for the speech " hello " of two virtual figure images shown in Fig. 3 and " welcoming you "
Tracer technique confirms that the sight focus of user is overlapped with the chat bubble that content is " hello ", then being just " big by content
Family it is good " chat bubble be confirmed as target bubble.
Step S203A is to be directed to another executive condition of step S201A and execute.In step S203A, if detection
It is overlapped to the sight focus with any virtual figure image in the picture, then just that this is burnt with the sight
The virtual figure image that point is overlapped is chosen to be destination virtual figure image.Then in the picture be located at destination virtual personage shape
As neighbouring part is analyzed, detects whether to exist and be directed toward the figural chat bubble of destination virtual.It is detecting
When there is being directed toward the figural chat bubble of the destination virtual, which is chosen to be the target bubble.
Part near the destination virtual figure image can be determined by presetted pixel range, for example, with described
Centered on destination virtual figure image center pixel, a certain number of pixel is as the range conduct on picture determined by " radius "
" the neighbouring part ".
In step S203A, when detecting that chat bubble occurs in the part near destination virtual figure image, analysis should be chatted
Whether its bubble is directed toward the destination virtual figure image.Specifically, it can be determined by the arrow head part of the chat bubble.
It is chat bubble in the position of maximum curvature by calculating the curvature of the lines since chat bubble is surrounded by lines
Arrow head part position.If the arrow head part position of the chat bubble and destination virtual figure image position
The distance between be no more than preset pixel number, then judge that the chat bubble is directed toward the destination virtual figure image, this chatted
Its bubble is chosen to be the target bubble.
It is further used as preferred embodiment, the step S2, i.e. execution eyeball tracking, and the chat gas that will be watched attentively
The step for being chosen to be target bubble of bubble, specifically includes:
S201B. eyeball tracking is carried out to user, so that it is determined that the sight focus of user;
S202B. when detecting there are multiple sight focuses on the picture, multiple sight focuses places are calculated
The geometric center of position;
It S203B., will be with the geometry when the geometric center is overlapped with any chat bubble in the picture
The chat bubble that center is overlapped is chosen to be target bubble.
In the present embodiment, the step S201B-S203B is another implementation of step S2, i.e., the described step S2 is also
It can be and be made of step S201B-S203B.
In step S201B, the eyeball movement of user is detected by eyeball tracking technology, can determine the mesh of user
Optical focus position.If coordinate system used in eyeball tracking device is identical as coordinate system used in terminal handler, that
Position of the sight focus of user on the picture can be directly determined using the coordinate that eyeball tracking device is exported.
If coordinate system used in eyeball tracking device is different from coordinate system used in terminal handler, an a pair can establish
It should be related to, the coordinate that eyeball tracking device is exported is mapped to position of the sight focus of user on the picture.
In actual use, multiple users be might have while watching the screen of the terminal, their sight focus
It may be different.In the case where there is eyeball tracking device relevant art to support, eyeball tracking device may be examined respectively simultaneously
Measure the respective sight focus of multiple users.
In step S202B, when detecting there are multiple sight focuses on the picture, each sight is determined respectively first
Focus position can be indicated by the pixel coordinate on the picture.Then it is burnt that multiple sight are calculated
The geometric center of point position.The specific steps are that: it is arbitrarily determined on picture first a little as origin, then with origin
The expression formula of each vector is calculated respectively using each sight focus position as terminal for starting point.If by the coordinate of origin
It is set as (0,0), then the expression formula of each vector is identical as the coordinate of its terminal respectively.The sum of each vector is calculated, it is then right
It carries out arithmetic mean of instantaneous value calculating, that is, by the abscissa of the expression formula of the sum of each vector and ordinate respectively divided by vector
Item number, the corresponding vector of resulting expression formula is the geometric center of multiple sight focus positions.
When the geometric center is overlapped with any chat bubble in the picture, step S203B is executed, it will be with
The chat bubble that the geometric center is overlapped is chosen to be target bubble.
For example, referring to Fig. 4, the screen of two users while viewing terminal is shared.By eyeball tracking technology, him is confirmed
Sight focus respectively fall in the chat bubble that content is " welcoming you " and the chat bubble that content is " hello ".Pass through
Geometric center calculates, and determines that the geometric center is located in the chat bubble that content is " hello ", therefore is " everybody by content
Chat bubble well " is confirmed as target bubble.
It executes step S201B-S203B to be adapted to multiple users while watching the use scene of picture, so that described
Target area is maintained at a more stable position in the picture, and the sight focus difference of multiple users is avoided to cause end
End, which is difficult to determine, selectes the sight focus of which user to control the display of the target area, thus improve chatroom or
The interactivity of the interaction tools such as virtual auditorium.
Be further used as preferred embodiment, the step S3, i.e., intercepted out in the picture target area this
Step specifically includes:
S301. destination virtual figure image pointed by the target bubble is determined;
S302. interception frame is generated;
S303. adjusted on the picture it is described interception frame size and location, until the target bubble part or
Whole and described figural a part or whole part of destination virtual is included in the interception frame;
S304. the part being included in the interception frame in the picture is extracted as the target area.
In the present embodiment, the step S301-S304 is one of implementation of step S3, i.e., the described step S3 can
With what is be made of step S301-S304.
In step S301, the void of target pointed by the target bubble can be determined by the arrow head part of target bubble
Anthropomorphic figure image.Since target bubble is surrounded by lines, by calculating the curvature of the lines, the position of maximum curvature just
It is the arrow head part position of target bubble.If the arrow head part position of the target bubble and some virtual portrait shape
As the distance between position be no more than preset pixel number, then the virtual figure image can be determined as to the mesh
Mark virtual figure image.
In step S302, interception frame is generated, and adjusts the size of the interception frame on the picture by step S303
And position, until a part or whole part and the figural a part or whole part of the destination virtual of the target bubble are wrapped
It includes in the interception frame.The interception frame is as shown in the dotted line frame of Fig. 5.The interception frame can be simply by record place
Location of pixels on picture is realized, does not show the interception frame simultaneously when showing the picture.
In step S304, the extracting section surrounded in the interception frame is come out, the target area is obtained.
It is further used as preferred embodiment, the step S4 is the step for showing the target area, specific to wrap
It includes:
S401. the target area is amplified to size identical with the picture;
S402. the amplification process of target area described in Dynamically Announce;
S403. continuously display to pass through the amplified target area.
Fig. 6 is the effect picture that the target area for being included is amplified to size identical as the picture in interception frame in Fig. 5.
In the present embodiment, the picture and the target area are the identical rectangles of Aspect Ratio, if they are Aspect Ratio differences
Rectangle the target area can be amplified to isometric or wait with the picture to keep the target area indeformable
It is wide.
During execution step S401 amplifies the target area, the target area of multiple and different sizes is generated
Domain, by the way that the target area of this multiple and different size is continuously displayed, can with the amplification process of target area described in Dynamically Announce,
Realize good visual effect.
It is continuously display by amplified described after the target area is amplified to size identical with the picture
Target area, display effect on the screen are as shown in Figure 6.
Be further used as preferred embodiment, the step S3, i.e., intercepted out in the picture target area this
Step, specifically further include:
S305. the target area is divided into foreground part and background parts;The foreground part is by the target
Part composed by a part or whole part of bubble and the figural a part or whole part of the destination virtual, the background parts
For the other parts in the target area in addition to the foreground part;
S306. Fuzzy processing is carried out to the background parts.
Fig. 7 is the result that step S305 and S306 are executed to Fig. 6.In step S305, image segmentation algorithm is executed, it will be described
Target area is divided into foreground part and background parts.Wherein, the foreground part is by the part of the target bubble or whole
Part composed by body and the figural a part or whole part of the destination virtual, the background parts are except the foreground portion
Other parts exceptionally.
In step S306, by demosaicing algorithm and frosted glass algorithm etc., the background parts are blurred, so that target
Region can more protrude foreground part, obtain better visual effect.
It is further used as preferred embodiment, the adaptive chat bubble display methods is further comprising the steps of:
S5. after the amplified target area is continuously displayed and reaches preset duration, terminate to the mesh
Mark the display in region;
S6. restore to show the picture.
Reach preset duration when the target area Fig. 6 or shown in Fig. 7 is continuously displayed, such as after 3s, end pair
Then Fig. 6 or screen switching shown in Fig. 7 are returned picture as shown in Figure 1 by the display of the target area, realize to target gas
Bubble highlights.
The present embodiment further includes a kind of adaptive chat bubble display system, referring to Fig. 8, comprising:
Picture obtains module, for obtaining the picture containing at least one chat bubble;The picture also contains at least one
A virtual figure image, each chat bubble chat content for rendering;
Eyeball tracking module is chosen to be target bubble for executing eyeball tracking, and by the chat bubble watched attentively;
Region interception module, for intercepting out target area in the picture;Some or all of described target bubble
It is included in the target area;
Region display module, for showing the target area.
The picture, which obtains module, eyeball tracking module, region interception module and region display module, can be computer
With the hardware module or software module of corresponding function in system.
The present embodiment further includes a kind of adaptive chat bubble display device, including memory, processor, eyeball tracking
Device and display, the memory is for storing at least one program, and the processor is for loading at least one described program
To execute the method for the embodiment of the present invention, the eyeball tracking device is for executing eyeball tracking, and the display is for showing
The picture and/or the target area.The adaptive chat bubble display device can be mobile phone and tablet computer etc.
Terminal.
The present embodiment further includes a kind of storage medium, wherein being stored with the executable instruction of processor, the processor can
The instruction of execution is when executed by the processor for executing the adaptive chat bubble display methods of the present invention.
Adaptive chat bubble display system, device and storage medium in the present embodiment, can execute of the invention
It is corresponding to have this method for adaptive chat bubble display methods, any combination implementation steps of executing method embodiment
Function and beneficial effect.
It should be noted that unless otherwise specified, when a certain feature referred to as " fixation ", " connection " are in another feature,
It can directly fix, be connected to another feature, and can also fix, be connected to another feature indirectly.In addition, this
The descriptions such as the upper and lower, left and right used in open are only the mutual alignment pass relative to each component part of the disclosure in attached drawing
For system.The "an" of used singular, " described " and "the" are also intended to including most forms in the disclosure, are removed
Non- context clearly expresses other meaning.In addition, unless otherwise defined, all technology and science used in the present embodiment
Term is identical as the normally understood meaning of those skilled in the art.This example demonstrates that term used in book is
In order to describe specific embodiment, it is not intended to be limiting of the invention.Term "and/or" used in the present embodiment includes one
Or the arbitrary combination of multiple relevant listed items.
It will be appreciated that though various elements, but this may be described using term first, second, third, etc. in the disclosure
A little elements should not necessarily be limited by these terms.These terms are only used to for same type of element being distinguished from each other out.For example, not departing from
In the case where disclosure range, first element can also be referred to as second element, and similarly, second element can also be referred to as
One element.The use of any and all example or exemplary language provided by the present embodiment (" such as ", " such as ") is only anticipated
The embodiment of the present invention is better described in figure, and unless the context requires otherwise, otherwise will not apply to the scope of the present invention and limit.
It should be appreciated that the embodiment of the present invention can be by computer hardware, the combination of hardware and software or by depositing
The computer instruction in non-transitory computer-readable memory is stored up to be effected or carried out.Standard volume can be used in the method
Journey technology-includes that the non-transitory computer-readable storage media configured with computer program is realized in computer program,
In configured in this way storage medium computer is operated in a manner of specific and is predefined --- according in a particular embodiment
The method and attached drawing of description.Each program can with the programming language of level process or object-oriented come realize with department of computer science
System communication.However, if desired, the program can be realized with compilation or machine language.Under any circumstance, which can be volume
The language translated or explained.In addition, the program can be run on the specific integrated circuit of programming for this purpose.
In addition, the operation of the process of the present embodiment description can be performed in any suitable order, unless the present embodiment is another
It is outer instruction or otherwise significantly with contradicted by context.The process (or modification and/or combination thereof) of the present embodiment description can
Configured with executable instruction one or more computer systems control under execute, and can be used as jointly at one or
The code (for example, executable instruction, one or more computer program or one or more application) that is executed on multiple processors,
It is realized by hardware or combinations thereof.The computer program includes the multiple instruction that can be performed by one or more processors.
Further, the method can be realized in being operably coupled to suitable any kind of computing platform, wrap
Include but be not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated
Computer platform or communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be to deposit
The machine readable code on non-transitory storage medium or equipment is stored up to realize no matter be moveable or be integrated to calculating
Platform, such as hard disk, optical reading and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when
Storage medium or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.This
Outside, machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include combining microprocessor
Or other data processors are when realizing the instruction or program of steps described above, invention described in the present embodiment include these and its
His different types of non-transitory computer-readable storage media.When methods and techniques according to the present invention programming, this
Invention further includes computer itself.
Computer program can be applied to input data to execute function described in the present embodiment, to convert input data
It is stored with generating to the output data of nonvolatile memory.Output information can also be applied to one or more output equipments such as
Display.In the preferred embodiment of the invention, the data of conversion indicate physics and tangible object, including generate on display
Physics and physical objects particular visual describe.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as
It reaches technical effect of the invention with identical means, all within the spirits and principles of the present invention, any modification for being made,
Equivalent replacement, improvement etc., should be included within the scope of the present invention.Its technical solution within the scope of the present invention
And/or embodiment can have a variety of different modifications and variations.