CN108765524A - Animation producing method based on distant view photograph and device - Google Patents

Animation producing method based on distant view photograph and device Download PDF

Info

Publication number
CN108765524A
CN108765524A CN201810575759.0A CN201810575759A CN108765524A CN 108765524 A CN108765524 A CN 108765524A CN 201810575759 A CN201810575759 A CN 201810575759A CN 108765524 A CN108765524 A CN 108765524A
Authority
CN
China
Prior art keywords
visual angle
picture frame
view
main
field
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
CN201810575759.0A
Other languages
Chinese (zh)
Other versions
CN108765524B (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.)
Micro Science And Technology (beijing) Co Ltd
Original Assignee
Micro Science And Technology (beijing) 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 Micro Science And Technology (beijing) Co Ltd filed Critical Micro Science And Technology (beijing) Co Ltd
Priority to CN201810575759.0A priority Critical patent/CN108765524B/en
Publication of CN108765524A publication Critical patent/CN108765524A/en
Application granted granted Critical
Publication of CN108765524B publication Critical patent/CN108765524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras

Abstract

A kind of animation producing method and device based on distant view photograph are disclosed in the embodiment of the present application, this method determines the field of view at the main visual angle in target distant view photograph, main visual angle includes visual angle recommended to the user, and field of view is the region that is determined by visual angle central point and visual angle size;Determine that the field of view at the secondary visual angle in target distant view photograph, secondary visual angle are at least one visual angle in addition to main visual angle;The content of the field of view at main visual angle is determined as primary picture frame, the content of the field of view at secondary visual angle is determined as secondary picture frame;The starting including picture frame for obtaining primary picture frame and secondary picture frame shows the attribute information of time and continuously display duration, to generate the animation based on target distant view photograph.The program, to the recommendation target in prominent distant view photograph, improves the ornamental experience of user by the way that main visual angle and secondary visual angle is arranged to each visual angle in target distant view photograph.

Description

Animation producing method based on distant view photograph and device
Technical field
This application involves multimedia technology field more particularly to a kind of animation producing methods and dress based on distant view photograph It sets.
Background technology
The existing animation produced based on distant view photograph or video it is automatic play or triggering playing process in, animation or Each picture frame in video can be played out at the uniform velocity, to facilitate user to see the content at all visual angles in distant view photograph.
However, since the existing animation produced based on distant view photograph or video play or trigger playing process automatic In each picture frame at the uniform velocity play out, cause each visual angle do not have primary and secondary point, the recommendation of animation or video can not be protruded Visual angle, it is animation or video production person visual angle content recommended to the user to recommend visual angle, and the ornamental experience of user is made to reduce.
Invention content
The embodiment of the present application provides a kind of animation producing method and device based on distant view photograph.By to distant view photograph Each visual angle main visual angle and secondary visual angle are set, to the recommendation target in prominent distant view photograph, improve the sight of user Reward experience.
In a first aspect, providing a kind of animation producing method based on distant view photograph, this method may include:
Determine that the field of view at main visual angle in target distant view photograph, main visual angle include visual angle recommended to the user, depending on Angular zone is the region that is determined by visual angle central point and visual angle size;
Determine that the field of view at secondary visual angle in target distant view photograph, secondary visual angle are at least one in addition to main visual angle Visual angle;
The content of the field of view at main visual angle is determined as primary picture frame, by the content of the field of view at secondary visual angle It is determined as secondary picture frame;
The attribute information of primary picture frame and secondary picture frame is obtained, attribute information includes that the starting of picture frame shows the time With continuously display duration;
Based on primary picture frame, secondary picture frame, primary picture frame attribute information and secondary picture frame attribute information, Generate the animation based on the target distant view photograph.
As it can be seen that continuously display duration of the animation due to primary picture frame in playing process is larger, current use is rested on The time at family visual angle is longer, and the continuously display duration of secondary picture frame is smaller, and the time for resting on active user visual angle is shorter, i.e., The animation shows the main visual angle in distant view photograph with non-at the uniform velocity view transformation to user, highlights the recommendation mesh in distant view photograph Mark improves user experience.
In an optional realization, the field of view at the main visual angle in target distant view photograph is determined, including:
The instruction information for determining main visual angle is received, instruction information includes the field of view that client is recommended, and indicates information It is to be sent by client;
Based on instruction information, field of view is determined as to the field of view at main visual angle.
In an optional realization, the field of view at the main visual angle in target distant view photograph is determined, including:
Goal-selling object region is obtained, in advance using goal-selling object detection algorithm based on target distant view photograph If target object region is field of view recommended to the user;
Using goal-selling object region as the field of view at main visual angle.
In an optional realization, the field of view at the secondary visual angle in target distant view photograph is determined, including:
Determine the view transformation mode between the main visual angle of adjacent two, the view transformation mode include at the uniform velocity transformation or It is non-at the uniform velocity to convert;It is main at adjacent two according to the visual angle central point and view transformation mode at adjacent two main visual angles On the visual angle central point line at visual angle, the visual angle central point at secondary visual angle is set;
According to the visual angle size and view transformation mode at adjacent two main visual angles, the visual angle that secondary visual angle is arranged is big It is small.
One it is optional realize, according to the visual angle central point and view transformation mode at adjacent two main visual angles, On the visual angle central point line at adjacent two main visual angles, the visual angle central point at secondary visual angle is set, including:
When view transformation mode is at the uniform velocity to convert, the visual angle central point line at adjacent two main visual angles is uniformly divided Every section of endpoint, is set as the visual angle central point at the secondary visual angle by section.
One it is optional realize, according to the visual angle central point at adjacent two main visual angles and the view transformation side The visual angle size at secondary visual angle is arranged according to the visual angle size at adjacent two main visual angles in formula, including:
When view transformation mode is at the uniform velocity to convert, according to the visual angle size at adjacent two main visual angles and secondary regard The distance of visual angle central point of the visual angle central point at angle away from two neighboring main visual angle, using linear interpolation mode, setting is secondary The visual angle size at visual angle.
In an optional realization, the attribute information of primary picture frame and secondary picture frame is obtained, including:
The priority of primary picture frame and secondary picture frame is obtained, the priority of primary picture frame is higher than secondary picture frame Priority;
When the priority of at least two picture frames is identical, when identical continuously display to the setting of at least two picture frames It is long;
When the priority of at least two picture frames differs, sequence priority-based, the figure high to priority As the first continuously display duration, the picture frame low to priority the second continuously display duration of setting, wherein first continues is arranged in frame Show that duration is more than the second continuously display duration.
In an optional realization, starting shows that the time is according to primary picture frame and the corresponding visual angle of secondary picture frame What the position relationship of central point determined.
In an optional realization, this method further includes:
Receive at least one triggering play instruction;Based at least one triggering play instruction, the time is shown according to starting Time sequencing shows that the primary picture frame in preset time period in animation and secondary picture frame, preset time period are described successively Trigger the playing duration of play instruction;
At the end of broadcasting, stop on the primary picture frame of within a preset period of time the last one.
Second aspect, provides a kind of animation producing device based on distant view photograph, which may include:
Determination unit, the field of view for determining main visual angle in target distant view photograph, main visual angle includes to user The visual angle of recommendation, field of view are the region that is determined by visual angle central point and visual angle size;
Determine that the field of view at secondary visual angle in target distant view photograph, secondary visual angle are at least one in addition to main visual angle Visual angle;
The content of the field of view at main visual angle is determined as primary picture frame, by the content of the field of view at secondary visual angle It is determined as secondary picture frame;
Acquiring unit, the attribute information for obtaining primary picture frame and the secondary picture frame, attribute information include figure As the starting of frame shows time and continuously display duration;
Generation unit, for based on primary picture frame, secondary picture frame, the attribute information of primary picture frame and secondary image The attribute information of frame generates the animation based on target distant view photograph.
In an optional realization, which further includes receiving unit;
Receiving unit, for receiving the instruction information for determining main visual angle, instruction information includes the visual angle that client is recommended Region, instruction information is sent by client;
Determination unit is specifically used for, based on instruction information, field of view being determined as to the field of view at main visual angle.
In an optional realization, determination unit is specifically used for being based on target distant view photograph, using goal-selling object Detection algorithm, obtains goal-selling object region, and goal-selling object region is field of view recommended to the user;
Using goal-selling object region as the field of view at main visual angle.
In an optional realization, which further includes setting unit;
Determination unit, for determining the view transformation mode between the main visual angle of adjacent two, the view transformation mode Including at the uniform velocity converting or non-at the uniform velocity converting;
Setting unit, for the visual angle central point and view transformation mode according to adjacent two main visual angles, adjacent Two main visual angles visual angle central point line on, the visual angle central point at secondary visual angle is set;
According to the visual angle size and view transformation mode at adjacent two main visual angles, the visual angle that secondary visual angle is arranged is big It is small.
In an optional realization, the setting unit is additionally operable to when view transformation mode is at the uniform velocity to convert, by phase Every section of endpoint, is set as the visual angle center at secondary visual angle by the visual angle central point line homogenous segmentations at two adjacent main visual angles Point.
In an optional realization, setting unit is additionally operable to when view transformation mode is at the uniform velocity to convert, according to adjacent Two main visual angles visual angle size and secondary visual angle visual angle central point away from the visual angle central point at two neighboring main visual angle Distance the visual angle size at secondary visual angle is arranged using linear interpolation mode.
In an optional realization, acquiring unit is additionally operable to obtain the priority of primary picture frame and secondary picture frame Priority, the priority of primary picture frame is higher than the priority of secondary picture frame;
When the priority of at least two picture frames is identical, when identical continuously display to the setting of at least two picture frames It is long;
When the priority of at least two picture frames differs, sequence priority-based, the figure high to priority As frame the first continuously display duration of setting, the second continuously display duration is arranged in the picture frame low to priority, and first is continuously display Duration is more than the second continuously display duration.
In an optional realization, starting shows that the time is according to primary picture frame and the corresponding visual angle of secondary picture frame What the position relationship of central point determined.
In an optional realization, which further includes broadcast unit;
After receiving unit receives at least one triggering play instruction, broadcast unit is broadcast for being based at least one triggering Instruction is put, the time sequencing of time is shown according to starting, show primary picture frame in preset time period in animation and secondary successively It is to trigger the playing duration of play instruction to want picture frame, preset time period;
At the end of broadcasting, stop on the last one primary picture frame within a preset period of time.
The third aspect provides a kind of electronic equipment, which includes processor, communication interface, memory and lead to Believe bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any side in above-mentioned first aspect Method step.
Fourth aspect provides a kind of computer readable storage medium, and meter is stored in the computer readable storage medium Calculation machine program, the computer program realize any method and step in above-mentioned first aspect when being executed by processor.
The field of view at main visual angle of the above-mentioned technical proposal in determining target distant view photograph, main visual angle include to The visual angle that family is recommended, field of view are the region that is determined by visual angle central point and visual angle size;It determines in target distant view photograph Secondary visual angle field of view, secondary visual angle is at least one visual angle in addition to main visual angle;By the visual angle area at main visual angle Content in domain is determined as primary picture frame, and the content in the field of view at secondary visual angle is determined as secondary picture frame;It obtains The attribute information of primary picture frame and the secondary picture frame, attribute information include that the starting of picture frame shows the time and persistently shows Show duration;Based on primary picture frame, secondary picture frame, primary picture frame attribute information and secondary picture frame attribute information, Generate the animation based on target distant view photograph.The program by each visual angle in target distant view photograph be arranged main visual angle and time Visual angle is wanted, to the recommendation target in prominent distant view photograph, improves the ornamental experience of user.
Description of the drawings
Fig. 1 is a kind of flow diagram of the animation producing method based on distant view photograph provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram for animation producing method based on distant view photograph that Fig. 1 is provided;
Fig. 3 is the target distant view photograph of a personage provided in an embodiment of the present invention;
Fig. 4 is the flow diagram for another animation producing method based on distant view photograph that Fig. 1 is provided;
Fig. 5 is the target distant view photograph at one provided in an embodiment of the present invention outdoor sight spot;
Fig. 6 is the flow diagram for another animation producing method based on distant view photograph that Fig. 1 is provided;
Fig. 7 is a distant view photograph for including a potted flower and an animal provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of the animation producing device based on distant view photograph provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, is not whole embodiment.Based on this Apply for embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
Animation producing method application provided in an embodiment of the present invention based on distant view photograph is between clients and servers. Server provides animation or video to be played for client so that client is that user plays the animation or video.Wherein, objective Family end has video display apparatus, and such as player can be user's playing animation or video.The video display apparatus can be peace The application of dress on the client, can also be a page on browser.Client can be wireless terminal device, such as Portable equipment with wireless connecting function or other processing equipments for being connected to radio modem can also be to move Dynamic terminal device, such as mobile phone (or being " honeycomb " phone) and the computer with mobile terminal device, for example, it may be Portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they exchange language with wireless access network And/or data.Line termination unit can be cable TV, hard wired computer etc..Server can be with the clothes at customer in response end Business request, and with the function of providing broadcasting video for client.Server can be PC (Personal Computer, PC) server.General stream media protocol, such as real-time Transmission association are supported in communication between client and server It discusses (Real-Time Protocol, RTP), real-time streaming protocol (Real-Time Streaming Protocol, RTSP), super literary This transportation protocol (Hyper Text Transfer Protocol, HTTP), dynamic self-adapting stream media protocol (Dynamic Adaptive Streaming over HTTP, DASH), HTTP live streaming medias agreement (HTTP Live Streaming, HLS) etc..Below for generating animation, it is described in detail.
The present embodiments relate to animation producing scenes.The technical solution of the embodiment of the present invention is given birth to target distant view photograph At animation, specially:The visual angle of target distant view photograph is divided into main visual angle and secondary visual angle, and is determining target panorama photograph The field of view at the main visual angle in piece, main visual angle include visual angle recommended to the user, and field of view is by visual angle central point The region determined with visual angle size;Determine that the field of view at the secondary visual angle in target distant view photograph, secondary visual angle are except master Want at least one visual angle outside visual angle;Content in the field of view at main visual angle is determined as primary picture frame, is regarded secondary Content in the field of view at angle is determined as secondary picture frame;Obtain the attribute letter of primary picture frame and the secondary picture frame Breath, attribute information include that the starting of picture frame shows time and continuously display duration;Based on primary picture frame, secondary picture frame, The attribute information of the attribute information of primary picture frame and secondary picture frame generates the animation based on target distant view photograph, i.e., this is dynamic The main visual angle into user's displaying distant view photograph with non-at the uniform velocity view transformation is drawn, the recommendation target in distant view photograph is highlighted, Improve user experience.
The preferred embodiment of the application is illustrated below in conjunction with Figure of description, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this Shen Please in embodiment and embodiment in feature can be combined with each other.
Fig. 1 is a kind of flow diagram of the animation producing method based on distant view photograph provided in an embodiment of the present invention.Such as Shown in Fig. 1, this method may include:
Step 110, determine main visual angle in target distant view photograph field of view and secondary visual angle field of view.
Before executing the step, client objectives distant view photograph, and the level of each picture frame of default animation are received The visual angle size in direction and the visual angle size of vertical direction, the horizontal view angle that each picture frame of animation is such as arranged are 80 degree, are hung down It is 60 degree to look at angle straight.
Main visual angle includes visual angle recommended to the user, and secondary visual angle is at least one visual angle in addition to main visual angle, such as Secondary visual angle can be other visual angles in addition to main visual angle or secondary visual angle can be visual angle between adjacent main visual angle.
For determining that the mode at main visual angle and secondary visual angle in target distant view photograph may include following two modes:
Mode one, for target distant view photograph, server can receive client (or animator passes through client) The visual angle for sending out the region that sets the goal really is the instruction information at main visual angle, which includes the visual angle area that client is recommended Domain, field of view are the region determined by visual angle central point and visual angle size, and target area is to recommend in target distant view photograph Field of view.
For example, user can manually select main visual angle by user interface, and phase is sent by user end to server It should indicate information.
Wherein, the field of view at main visual angle can use the visual angle size of the visual angle central point and main visual angle at main visual angle It indicates, can also be indicated with the visual angle size at the visual angle vertex (i.e. left upper apex) at main visual angle and main visual angle.It can be with Understand, visual angle size can be determined with horizontal view angle size and vertical angle of view size, can also be with visual angle central point The two-dimensional coordinate of coordinate origin determines, as long as and capableing of the other manner of field of view at the main visual angle of accurate description and also may be used With the embodiment of the present invention does not limit herein.
Based on the instruction information, determine that corresponding field of view in target distant view photograph is the field of view at main visual angle, It is used in combination correlation method to determine the field of view at secondary visual angle.
Mode two obtains goal-selling pair based on target distant view photograph using the detection algorithm for goal-selling object As region, goal-selling object region is field of view recommended to the user;By goal-selling object region Field of view as the main visual angle.
It can be pre-set according to the content in target distant view photograph for the detection algorithm of goal-selling object.Example Such as, when target distant view photograph is personage's group photo piece, and it is desirable that personage is determined as main object, and main object will be included When region is determined as the field of view at main visual angle, goal-selling object detection algorithm can be Face datection algorithm, pass through inspection The face in photo is surveyed, to determine the field of view at main visual angle.
It should be noted that the expression side of the representation method of the field of view at secondary visual angle and the field of view at main visual angle Method is identical, and details are not described herein for the embodiment of the present invention.
Wherein, the field of view at main visual angle can be at least one, and the field of view at the secondary visual angle determined also may be used To be at least one.
When the field of view at the main visual angle determined is at least two, detect adjacent at least two main visual angles The Minimum Area that the corresponding goal-selling object in two main visual angles is constituted;
If the horizontal view angle size of the Minimum Area is less than the default horizontal view angle size of animation frame and multiplying for preset ratio Product, and the vertical angle of view size of the Minimum Area is less than the product of the vertical angle of view size and the preset ratio of default animation frame, A main visual angle then is merged into at two adjacent main visual angles.Wherein, which can be the value between 0~1, The visual angle central point at the main visual angle after the merging is the midpoint of the visual angle central point line at former two main visual angles.
If the horizontal view angle size of the Minimum Area is not less than the horizontal view angle size and preset ratio for presetting animation frame Product or the vertical angle of view size of the Minimum Area are not less than the default vertical angle of view size of animation frame and multiplying for the preset ratio Product, then be identified as an individual main visual angle by two adjacent main visual angles.
It should be noted that the operation for merging main visual angle in the embodiment of the present invention is to ensure the energy in animation play Enough goal-selling objects of display completely, when specific implementation, can select other conditions for merging main visual angles according to specific requirement, The embodiment of the present invention does not limit herein.
The content of the field of view at main visual angle is determined as primary picture frame, and regarding secondary visual angle by step 120 The content of angular zone is determined as secondary picture frame.
Step 130, the attribute information for obtaining primary picture frame and secondary picture frame, attribute information includes the starting of picture frame Show time and continuously display duration.
Starting shows that the time is the time that picture frame occurs in animation play;Field of view in picture frame is by visual angle The region that central point and visual angle size are determined.
Wherein, the continuously display duration of primary picture frame is more than the continuously display duration of secondary picture frame.When continuously display Picture frame rests on the time length at active user visual angle when long expression animation play.
For primary picture frame, continuously display duration can be default main visual angle delay;For secondary picture frame, continue Display duration can be default secondary visual angle delay.Default main visual angle delay indicates that primary picture frame rests on when animation play The time length at active user visual angle;Default secondary visual angle delay indicates that secondary picture frame rests on active user when animation play The time length at visual angle.For example, the default main visual angle delay of default primary picture frame is 0.5s, the pre- of secondary picture frame is preset If secondary visual angle delay is 0.1s.Wherein, the importance at the main visual angle recommended in distant view photograph is bigger, the primary picture of setting The delay of frame is longer.
Optionally, the continuously display duration of picture frame can be configured by the priority of picture frame.Setting up procedure It is as follows:
Obtain the priority of the priority and secondary picture frame of primary picture frame, wherein the priority acquisition side of picture frame Formula can be calculated by the importance to picture frame and be obtained, and can also directly acquire preset priority, the embodiment of the present invention exists This is not limited.The priority of primary picture frame is higher than the priority of secondary picture frame.
Specially:When the number for determining the main visual angle in distant view photograph is at least two, i.e., primary picture frame is a When number is at least two, the priority of the priority and secondary picture frame of at least two primary picture frames is obtained, is such as obtained at least The priority list of two primary picture frames.According to the size of main object in primary picture frame, corresponding priority is set, The main object area detected is bigger, and the priority of corresponding primary picture frame is higher.
When the priority of at least two picture frames is identical, when identical continuously display to the setting of at least two picture frames It is long;
When the priority of at least two picture frames differs, sequence priority-based, the figure high to priority As frame the first continuously display duration of setting, the second continuously display duration is arranged in the picture frame low to priority, and first is continuously display Duration is more than the second continuously display duration.
It is understood that lower priority can also be arranged to secondary picture frame in server, i.e., in priority list In in the priority ratio of the secondary picture frame priority list any one primary picture frame priority it is all low.
Optionally it is determined that the view transformation mode between two adjacent main visual angles, which includes even Speed transformation non-at the uniform velocity converts;
According to the visual angle central point and view transformation mode at adjacent two main visual angles, at two adjacent main visual angles Visual angle central point line on, the visual angle central point at secondary visual angle is set;According to the visual angle size at adjacent two main visual angles With view transformation mode, the visual angle size at secondary visual angle is set.The main visual angle of adjacent two is the position phase in distant view photograph Two adjacent main visual angles.It wherein, will be in the visual angle at adjacent two main visual angles when view transformation mode is at the uniform velocity to convert Heart point line homogenous segmentations, set every section of endpoint to the visual angle central point at secondary visual angle, to be inserted into the visual angle at secondary visual angle Region.When view transformation mode is at the uniform velocity to convert, according to the visual angle size at adjacent two main visual angles and secondary visual angle Secondary visual angle is arranged using linear interpolation mode in the distance of visual angle central point of the visual angle central point away from two neighboring main visual angle Visual angle size.
Step 140, based on primary picture frame, secondary picture frame, the attribute information of primary picture frame and secondary picture frame Attribute information generates the animation based on target distant view photograph.
The secondary image of primary picture frame and the default secondary visual angle delay of setting based on the default main visual angle delay of setting Frame, and the continuously display duration of each picture frame generate according to the time sequencing of picture frame starting display time and are based on target The animation of distant view photograph.
It should be noted that be also based in the animation based on distant view photograph making require addition sound, word, Other contents such as table.
Further, for the main visual angle into the prominent displaying distant view photograph of user, when two main objects can not be When being shown in same form, it can also show that the time of time is suitable according to starting by receiving at least one triggering play instruction Sequence shows that the primary picture frame in preset time period in animation and secondary picture frame, preset time period are that triggering broadcasting refers to successively The playing duration of order;At the end of broadcasting, stop on the primary picture frame of within a preset period of time the last one.
For example, by taking the triggering play instruction of stroke visual angle window as an example, the current visual angle that originates is to show main visual angle 1, when When user's stroke visual angle window triggering to the left shows the animated content of 1s, the visual angle content increased continuously from main visual angle 1 is shown, Terminate visual angle and rest on main visual angle 2, originates visual angle and terminate the corresponding picture in the visual angle of secondary picture frame between visual angle and stop Time is shorter, is only used as transition picture.Thus the animated content of animation play 1s is triggered.
It is illustrated in a manner of specific embodiment below.
In one example, server generates moving based on distant view photograph by automatically determining the field of view at main visual angle The process of picture can be with as shown in Fig. 2, this method may include:
Step 210 receives the target distant view photograph that client is sent, and pre-sets the level of each picture frame of animation Visual angle is 80 degree, and vertical angle of view is 60 degree.Wherein, target distant view photograph is as shown in figure 3, target distant view photograph is a 4 people conjunction The panorama sketch of shadow, preset vertical visual angle are 0.
Step 220 is based on target distant view photograph, using Face datection algorithm, obtains each face region, and by its It is determined as the field of view at main visual angle, and at least one region in addition to main visual angle is determined as to the visual angle at secondary visual angle Region.
It is free of using the field of view for containing face as main visual angle using face as target subject object in the step There is at least one visual angle of face as secondary visual angle.I.e. in figure 3, using Face datection algorithm, main visual angle a, master are determined Visual angle b, main visual angle c and main visual angle d and corresponding location information, i.e. dotted line frame region in Fig. 3 are wanted, and will be removed main At least one visual angle outside visual angle is determined as secondary visual angle.
Wherein, the corresponding visual angle in distant view photograph of visual angle central point in the horizontal direction of human face region is respectively 60 Degree, 160 degree, 180 degree and 300 degree.
Step 230 judges that the corresponding goal-selling object in the main visual angle of adjacent in 4 main visual angles two is constituted Minimum Area horizontal view angle size whether be less than default animation frame horizontal view angle size half.
Wherein, preset ratio is half.
If so, thening follow the steps 240;
If it is not, thening follow the steps 250.
In Fig. 3, the horizontal view angle size for the Minimum Area that main visual angle a and main visual angle b is constituted is 120 degree;Mainly regard The horizontal view angle size for the Minimum Area that angle b and main visual angle c is constituted is 38 degree;Main visual angle c and main visual angle d is constituted most The horizontal view angle size of zonule is 140 degree;Main visual angle a and main visual angle d is non-conterminous.
A main visual angle is merged into adjacent two main visual angles by step 240.
Since the half of the horizontal view angle size of animation frame is 40 degree, main visual angle b, main visual angle c are constituted most The horizontal view angle size of zonule is 38 degree and is less than 40 degree, therefore main visual angle b and main visual angle c are merged into one and mainly regarded Angle, referred to as main visual angle 2.Take the center of main visual angle b and main visual angle c as the visual angle center at main visual angle after merging.It is main It wants visual angle a and main visual angle d non-conterminous, individually as a main visual angle, is referred to as main visual angle 1 and main visual angle 3.The horizontal view angle center at three main visual angles after determination is respectively 60 degree, 170 degree and 300 degree, each main in the present embodiment The vertical angle of view center at visual angle is 0 degree.
The content of the field of view at main visual angle is determined as primary picture frame by step 250, by the visual angle area at secondary visual angle The content in domain is determined as secondary picture frame, and priority is arranged to primary picture frame and secondary picture frame.
The priority of primary picture frame is more than the priority of secondary picture frame, setting primary picture frame 1, primary picture frame 2 It is identical with the priority of primary picture frame 3, i.e., primary picture frame 1, primary picture frame 2 and primary picture frame 3 are arranged default Main visual angle delay is identical, is delayed to the default secondary visual angle of secondary picture frame setting.Wherein, main visual angle delay is preset to be more than in advance If secondary visual angle delay.
Step 260, the attribute information for obtaining primary picture frame and secondary picture frame, attribute information includes the starting of picture frame Show time and continuously display duration.
Step 270, based on primary picture frame, secondary picture frame, the attribute information of primary picture frame and secondary picture frame Attribute information generates the animation based on target distant view photograph.
It should be noted that a step that the specific implementation process of above-mentioned steps is referred to Fig. 1 realizes that the present invention is implemented This will not be repeated here for example.
In another example, server determines that main visual angle generates by the instruction information of client and is based on distant view photograph The process of animation can be with as shown in figure 4, this method may include:
Step 410 receives the target distant view photograph that client is sent, and pre-sets the level of each frame image of animation Visual angle is 106 degree, and vertical angle of view is 60 degree.
Wherein, target distant view photograph is as shown in figure 5, target distant view photograph is the panorama sketch at an outdoor sight spot.
Step 420 receives the instruction information that client is sent out, and instruction information, which is used to indicate, is determined as target area mainly The field of view at visual angle.
The instruction information includes the field of view that client is recommended.It will indicate that the target area of information instruction is made in the step For the field of view at main visual angle, field of view of at least one nontarget area as secondary visual angle.In Figure 5, including master Visual angle 1 and main visual angle 2 are wanted, and the horizontal view angle center of the visual angle central point at main visual angle 1 is 80 degree, vertical angle of view center For -20 degree.The horizontal view angle center of the visual angle central point at main visual angle 2 is 230 degree, and vertical angle of view center is 50 degree.
The content of the field of view at main visual angle is determined as primary picture frame by step 430, by the visual angle area at secondary visual angle The content in domain is determined as secondary picture frame, and priority is arranged to primary picture frame and secondary picture frame.
The priority of primary picture frame is more than the priority of secondary picture frame, and the priority of setting primary picture frame 1 is higher than The priority of primary picture frame 2.The priority of secondary picture frame is minimum.
Step 440, the attribute information for obtaining primary picture frame and secondary picture frame, attribute information includes the starting of picture frame Show time and continuously display duration.
Step 450, based on primary picture frame, secondary picture frame, the attribute information of primary picture frame and secondary picture frame Attribute information generates the animation based on target distant view photograph.
It should be noted that a step that the specific implementation process of above-mentioned steps is referred to Fig. 1 realizes that the present invention is implemented This will not be repeated here for example.
In further example, after generating based on the animation of distant view photograph, it is based at least one triggering play instruction, successively Show the primary picture frame in animation, process can be with as shown in fig. 6, this method may include:
Step 610 receives the target distant view photograph that client is sent, and pre-sets the level of each frame image of animation Visual angle is 60 degree, and vertical angle of view is 45 degree.
Wherein, target distant view photograph is as shown in fig. 7, target distant view photograph includes the panorama sketch of a potted flower and an animal, Wherein the vertical angle of view of flower and animal is 0 degree.
Step 620 is based on target distant view photograph, using cascade sort detection algorithm, obtains flower and animal region, and It is determined as the field of view at main visual angle, and at least one zone viewing angle in addition to the field of view at main visual angle is determined For the field of view at secondary visual angle.
It will be spent in the step and animal is as target subject object, and the field of view with animal will be spent to be determined as mainly regarding The field of view at angle, field of view of at least one field of view without containing flower and animal as secondary visual angle.In the figure 7, The field of view at main visual angle includes main visual angle 1, main visual angle 2 and corresponding location information, by addition to main visual angle extremely The content of a few field of view is determined as the field of view at secondary visual angle.
Wherein, it is 30 degree to spend horizontal view angle of the visual angle central point at corresponding main visual angle 1 in distant view photograph.Animal pair Horizontal view angle of the visual angle central point at the main visual angle 2 answered in distant view photograph is 200 degree.
Step 630 detects that the level for the Minimum Area that the corresponding goal-selling object in 2 main visual angles is constituted regards Angle size is more than the half of the horizontal view angle size of default animation frame.
The content of the field of view at main visual angle is determined as primary picture frame by step 640, by the visual angle area at secondary visual angle The content in domain is determined as secondary picture frame, and priority is arranged to primary picture frame and secondary picture frame.
The priority of primary picture frame is more than the priority of secondary picture frame, setting primary picture frame 1 and primary picture frame 2 Priority it is identical, i.e., the default main visual angle that main visual angle 1,2 corresponding primary picture frame of main visual angle are arranged is delayed phase Together, it is delayed to the default secondary visual angle of secondary picture frame setting.Wherein, main visual angle delay is preset more than secondary visual angle is preset to prolong When.
Step 650, the attribute information for obtaining primary picture frame and secondary picture frame, attribute information includes the starting of picture frame Show time and continuously display duration.
Step 660, based on primary picture frame, secondary picture frame, the attribute information of primary picture frame and secondary picture frame Attribute information generates the animation based on target distant view photograph.
Step 670, the triggering play instruction for receiving stroke visual angle window.
Step 680 is based on the triggering play instruction, and the time sequencing of time is shown according to starting, when display is default successively Between primary picture frame in section and secondary picture frame, until the last one primary picture frame in display preset time period.
Preset time period is to trigger the playing duration of play instruction.
By the field of view at the main visual angle in determining target distant view photograph, main visual angle includes the above method of the present invention Visual angle recommended to the user, field of view are the region that is determined by visual angle central point and visual angle size;Determine that target panorama shines The field of view at the secondary visual angle in piece, secondary visual angle are at least one visual angle in addition to main visual angle;By regarding for main visual angle Content in angular zone is determined as primary picture frame, and the content in the field of view at secondary visual angle is determined as secondary picture frame; The attribute information of primary picture frame and the secondary picture frame is obtained, attribute information includes that the starting of picture frame shows the time and holds Continuous display duration;Attribute letter based on primary picture frame, secondary picture frame, the attribute information of primary picture frame and secondary picture frame Breath generates the animation based on target distant view photograph.The program to each visual angle in target distant view photograph by being arranged main visual angle With secondary visual angle the ornamental experience of user is improved to the recommendation target in prominent distant view photograph.
Corresponding with the above method, the embodiment of the present invention also provides a kind of animation producing device based on distant view photograph, such as Shown in Fig. 8, which includes:Determination unit 810, acquiring unit 820 and generation unit 830.
Determination unit 810, the field of view for determining main visual angle in target distant view photograph, main visual angle include to The visual angle that family is recommended, field of view are the region that is determined by visual angle central point and visual angle size;
Determine that the field of view at secondary visual angle in target distant view photograph, secondary visual angle are at least one in addition to main visual angle Visual angle;
The content of the field of view at main visual angle is determined as primary picture frame, by the content of the field of view at secondary visual angle It is determined as secondary picture frame;
Acquiring unit 820, the attribute information for obtaining primary picture frame and the secondary picture frame, attribute information include The starting of picture frame shows time and continuously display duration.
Generation unit 830, for based on primary picture frame, secondary picture frame, the attribute information of primary picture frame and secondary The attribute information of picture frame generates the animation based on target distant view photograph.
Optionally, which further includes receiving unit 840;
Receiving unit 840, for receiving the instruction information for determining main visual angle, instruction information includes regarding for client recommendation Angular zone, instruction information is sent by client;
Determination unit 810 is specifically used for, based on instruction information, field of view being determined as to the field of view at main visual angle.
Optionally it is determined that unit 810, it is specifically used for being based on target distant view photograph, using goal-selling object detection algorithm, Goal-selling object region is obtained, goal-selling object region is field of view recommended to the user;
Using goal-selling object region as the field of view at main visual angle.
Optionally, which further includes setting unit 850;
Determination unit 840, for determining the view transformation mode between the main visual angle of adjacent two, the view transformation side Formula includes at the uniform velocity transformation or non-at the uniform velocity converts;
Setting unit 850 is specifically used for visual angle central point and view transformation mode according to adjacent two main visual angles, On the visual angle central point line at adjacent two main visual angles, the visual angle central point at secondary visual angle is set;
According to the visual angle size and view transformation mode at adjacent two main visual angles, the visual angle that secondary visual angle is arranged is big It is small.
Optionally, setting unit 850 are additionally operable to when view transformation mode is at the uniform velocity to convert, main by adjacent two Every section of endpoint, is set as the visual angle central point at secondary visual angle by the visual angle central point line homogenous segmentations at visual angle.
Optionally, setting unit 850 are additionally operable to when view transformation mode is at the uniform velocity to convert, according to two adjacent masters The visual angle central point of the visual angle size and secondary visual angle of wanting visual angle away from the distance of the visual angle central point at two neighboring main visual angle, Using linear interpolation mode, the visual angle size at secondary visual angle is set.
Optionally, acquiring unit 820 are additionally operable to obtain the priority of the priority and secondary picture frame of primary picture frame, The priority of primary picture frame is higher than the priority of secondary picture frame;
When the priority of at least two picture frames is identical, when identical continuously display to the setting of at least two picture frames It is long;
When the priority of at least two picture frames differs, sequence priority-based, the figure high to priority As frame the first continuously display duration of setting, the second continuously display duration is arranged in the picture frame low to priority, and first is continuously display Duration is more than the second continuously display duration.
Optionally, starting shows that the time is the position according to primary picture frame and the corresponding visual angle central point of secondary picture frame What relationship determined.
Optionally, which further includes broadcast unit 860;
After receiving unit 840 receives at least one triggering play instruction, broadcast unit 860, for based at least one Play instruction is triggered, the time sequencing of time is shown according to starting, shows the primary picture in animation in preset time period successively Frame and secondary picture frame, preset time period is to trigger the playing duration of play instruction, until last in display preset time period One primary picture frame.
The above embodiment of the present invention provide based on the animation producing device of distant view photograph in determining target distant view photograph Main visual angle field of view, main visual angle includes visual angle recommended to the user, and field of view is by visual angle central point and to regard The region that angle size is determined;Determine the field of view at the secondary visual angle in target distant view photograph, secondary visual angle is except mainly regarding At least one visual angle outside angle;Content in the field of view at main visual angle is determined as primary picture frame, by secondary visual angle Content in field of view is determined as secondary picture frame;Obtain the attribute information of primary picture frame and secondary picture frame, attribute letter Breath includes that the starting of picture frame shows time and continuously display duration;Based on primary picture frame, secondary picture frame, primary picture frame Attribute information and secondary picture frame attribute information, generate the animation based on target distant view photograph.It realizes and target panorama is shone Main visual angle and secondary visual angle is arranged in each visual angle in piece, to the recommendation target in prominent distant view photograph, improves the sight of user Reward experience.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 9, including processor 910, communication interface 920, Memory 930 and communication bus 940, wherein processor 910, communication interface 920, memory 930 are complete by communication bus 940 At mutual communication.
Memory 930, for storing computer program;
Processor 910 when for executing the program stored on memory 930, realizes following steps:
Determine that the field of view at main visual angle in target distant view photograph, main visual angle include visual angle recommended to the user, depending on Angular zone is the region that is determined by visual angle central point and visual angle size;
Determine that the field of view at secondary visual angle in target distant view photograph, secondary visual angle are at least one in addition to main visual angle Visual angle;
The content of the field of view at main visual angle is determined as primary picture frame, by the content of the field of view at secondary visual angle It is determined as secondary picture frame;
The attribute information of primary picture frame and secondary picture frame is obtained, attribute information includes that the starting of picture frame shows the time With continuously display duration;
Based on primary picture frame, secondary picture frame, primary picture frame attribute information and secondary picture frame attribute information, Generate the animation based on the target distant view photograph.
Optionally it is determined that the field of view at the main visual angle in target distant view photograph, including:
The instruction information for determining main visual angle is received, instruction information includes the field of view that client is recommended, and indicates information It is to be sent by client;
Based on instruction information, field of view is determined as to the field of view at main visual angle.
Optionally it is determined that the field of view at the main visual angle in target distant view photograph, including:
Goal-selling object region is obtained, in advance using goal-selling object detection algorithm based on target distant view photograph If target object region is field of view recommended to the user;
Using goal-selling object region as the field of view at main visual angle.
Optionally it is determined that the field of view at the secondary visual angle in target distant view photograph, including:
Determine the view transformation mode between the main visual angle of adjacent two, the view transformation mode include at the uniform velocity transformation or It is non-at the uniform velocity to convert;
According to the visual angle central point and view transformation mode at adjacent two main visual angles, at two adjacent main visual angles Visual angle central point line on, the visual angle central point at secondary visual angle is set;
According to the visual angle size and view transformation mode at adjacent two main visual angles, the visual angle that secondary visual angle is arranged is big It is small.
Optionally, according to the visual angle central point and view transformation mode at adjacent two main visual angles, adjacent two masters It wants on the visual angle central point line at visual angle, the visual angle central point at secondary visual angle is set, including:
When view transformation mode is at the uniform velocity to convert, the visual angle central point line at adjacent two main visual angles is uniformly divided Every section of endpoint, is set as the visual angle central point at the secondary visual angle by section.
Optionally, according to the visual angle central point and view transformation mode at adjacent two main visual angles, according to adjacent two The visual angle size at secondary visual angle is arranged in the visual angle size at a main visual angle, including:
When view transformation mode is at the uniform velocity to convert, according to the visual angle size at adjacent two main visual angles and secondary regard The distance of visual angle central point of the visual angle central point at angle away from two neighboring main visual angle, using linear interpolation mode, setting is secondary The visual angle size at visual angle.
Optionally, the attribute information of primary picture frame and secondary picture frame is obtained, including:
The priority of the priority and secondary picture frame of primary picture frame is obtained, the priority of primary picture frame is higher than secondary The priority of picture frame;
When the priority of at least two picture frames is identical, when identical continuously display to the setting of at least two picture frames It is long;
When the priority of at least two picture frames differs, sequence priority-based, the figure high to priority As the first continuously display duration, the picture frame low to priority the second continuously display duration of setting, wherein first continues is arranged in frame Show that duration is more than the second continuously display duration.
Optionally, starting shows that the time is the position according to primary picture frame and the corresponding visual angle central point of secondary picture frame What relationship determined.
Optionally, this method further includes:Receive at least one triggering play instruction;Referred to based at least one triggering broadcasting It enables, the time sequencing of time is shown according to starting, shows the primary picture frame in preset time period in animation and secondary figure successively As frame, preset time period is to trigger the playing duration of play instruction, until the last one in display preset time period is main Picture frame.
Communication bus mentioned above can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), can also include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
Due to the visual angle at main visual angle of the processor in determining target distant view photograph of electronic equipment in above-described embodiment Region, main visual angle include visual angle recommended to the user, and field of view is the area that is determined by visual angle central point and visual angle size Domain;Determine the field of view at the secondary visual angle in target distant view photograph, secondary visual angle is that at least one in addition to main visual angle regards Angle;Content in the field of view at main visual angle is determined as primary picture frame, by the content in the field of view at secondary visual angle It is determined as secondary picture frame;The attribute information of primary picture frame and secondary picture frame is obtained, attribute information includes rising for picture frame Begin to show time and continuously display duration;Based on primary picture frame, secondary picture frame, the attribute information of primary picture frame and secondary The attribute information of picture frame generates the animation based on target distant view photograph.It realizes and each visual angle in target distant view photograph is arranged The ornamental experience of user is improved in main visual angle and secondary visual angle to the recommendation target in prominent distant view photograph.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer so that computer executes any institute in above-described embodiment The animation producing method stated.
In another embodiment provided by the invention, a kind of computer program product including instruction is additionally provided, when it When running on computers so that computer executes any animation producing method in above-described embodiment.
It should be understood by those skilled in the art that, the embodiment in the embodiment of the present application can be provided as method, system or meter Calculation machine program product.Therefore, complete hardware embodiment, complete software embodiment can be used in the embodiment of the present application or combine soft The form of the embodiment of part and hardware aspect.Moreover, it wherein includes meter to be can be used in the embodiment of the present application in one or more The computer-usable storage medium of calculation machine usable program code (includes but not limited to magnetic disk storage, CD-ROM, optical memory Deng) on the form of computer program product implemented.
It is with reference to according to the method for embodiment, equipment (system) and calculating in the embodiment of the present application in the embodiment of the present application The flowchart and/or the block diagram of machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/or The combination of the flow and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can carry For the processing of these computer program instructions to all-purpose computer, special purpose computer, Embedded Processor or other programmable datas The processor of equipment is to generate a machine so that is executed by computer or the processor of other programmable data processing devices Instruction generation refer to for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device of fixed function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment in the embodiment of the present application has been described, once a person skilled in the art knows Basic creative concept, then additional changes and modifications may be made to these embodiments.So appended claims are intended to explain It is to include preferred embodiment and fall into all change and modification of range in the embodiment of the present application.
Obviously, those skilled in the art embodiment in the embodiment of the present application can be carried out various modification and variations without It is detached from the spirit and scope of embodiment in the embodiment of the present application.If in this way, in the embodiment of the present application embodiment these modification Within the scope of belonging in the embodiment of the present application claim and its equivalent technologies with modification, then it is also intended in the embodiment of the present application It includes these modifications and variations.

Claims (19)

1. a kind of animation producing method based on distant view photograph, which is characterized in that the method includes:
Determine that the field of view at main visual angle in target distant view photograph, the main visual angle include visual angle recommended to the user, institute Field of view is stated as the region that is determined by visual angle central point and visual angle size;
Determine that the field of view at secondary visual angle in the target distant view photograph, the secondary visual angle are in addition to the main visual angle At least one visual angle;
The content of the field of view at the main visual angle is determined as primary picture frame, by the field of view at the secondary visual angle Content is determined as secondary picture frame;
The attribute information of the primary picture frame and the secondary picture frame is obtained, the attribute information includes the starting of picture frame Show time and continuously display duration;
Based on the primary picture frame, the secondary picture frame, the attribute information of the primary picture frame and the secondary image The attribute information of frame generates the animation based on the target distant view photograph.
2. the method as described in claim 1, which is characterized in that the visual angle at the main visual angle in the determining target distant view photograph Region, including:
The instruction information for determining main visual angle is received, the instruction information includes the field of view that client is recommended, the instruction Information is sent by the client;
Based on the instruction information, the field of view is determined as to the field of view at main visual angle.
3. the method as described in claim 1, which is characterized in that the visual angle at the main visual angle in the determining target distant view photograph Region, including:
Goal-selling object region, institute are obtained using goal-selling object detection algorithm based on the target distant view photograph It is field of view recommended to the user to state goal-selling object region;
Using goal-selling object region as the field of view at the main visual angle.
4. the method as described in claim 1, which is characterized in that the visual angle at the secondary visual angle in the determining target distant view photograph Region, including:
Determine that the view transformation mode between the main visual angle of adjacent two, the view transformation mode include at the uniform velocity transformation or non- At the uniform velocity convert;
It is main at described adjacent two according to the visual angle central point at adjacent two main visual angles and the view transformation mode On the visual angle central point line at visual angle, the visual angle central point at the secondary visual angle is set;
According to the visual angle size at two adjacent main visual angles and the view transformation mode, the secondary visual angle is set Visual angle size.
5. method as claimed in claim 4, which is characterized in that according to the visual angle central point at adjacent two main visual angles and institute View transformation mode is stated, on the visual angle central point line at two adjacent main visual angles, the secondary visual angle is set Visual angle central point, including:
When the view transformation mode is at the uniform velocity to convert, the visual angle central point line at adjacent two main visual angles is uniformly divided Every section of endpoint, is set as the visual angle central point at the secondary visual angle by section.
6. method as claimed in claim 4, which is characterized in that according to the visual angle central point at adjacent two main visual angles and institute View transformation mode is stated, according to the visual angle size at two adjacent main visual angles, the visual angle that the secondary visual angle is arranged is big It is small, including:
When the view transformation mode is at the uniform velocity to convert, according to the visual angle size at two adjacent main visual angles and institute The visual angle central point at secondary visual angle is stated away from the distance of the visual angle central point at two neighboring main visual angle, using linear interpolation mode, The visual angle size at the secondary visual angle is set.
7. the method as described in claim 1, which is characterized in that obtain the category of the primary picture frame and the secondary picture frame Property information, including:
Obtain the priority of the priority and the secondary picture frame of the primary picture frame, the priority of the primary picture frame Higher than the priority of the secondary picture frame;
When the priority of at least two picture frames is identical, when identical continuously display at least two picture frame setting It is long;
When the priority of at least two picture frames differs, sequence priority-based, the picture frame high to priority First continuously display duration is set, and the second continuously display duration is arranged in the picture frame low to priority, and described first is continuously display Duration is more than the described second continuously display duration.
8. the method as described in claim 1, which is characterized in that the starting show the time be according to the primary picture frame and What the position relationship of the corresponding visual angle central point of the secondary picture frame determined.
9. the method as described in claim 1, which is characterized in that the method further includes:
Receive at least one triggering play instruction;
Based at least one triggering play instruction, the time sequencing of time is shown according to the starting, display is default successively The primary picture frame in the animation and the secondary picture frame in period, the preset time period are that the triggering is broadcast The playing duration of instruction is put, until showing the last one primary picture frame in the preset time period.
10. a kind of animation producing device based on distant view photograph, which is characterized in that described device includes:
Determination unit, the field of view for determining main visual angle in target distant view photograph, the main visual angle includes to user The visual angle of recommendation, the field of view are the region that is determined by visual angle central point and visual angle size;
Determine that the field of view at secondary visual angle in the target distant view photograph, the secondary visual angle are in addition to the main visual angle At least one visual angle;
The content of the field of view at the main visual angle is determined as primary picture frame, by the field of view at the secondary visual angle Content is determined as secondary picture frame;
Acquiring unit, the attribute information for obtaining the primary picture frame and the secondary picture frame, the attribute information packet The starting for including picture frame shows time and continuously display duration;;
Generation unit, for based on the primary picture frame, the secondary picture frame, the primary picture frame attribute information and The attribute information of the secondary picture frame generates the animation based on the target distant view photograph.
11. device as claimed in claim 10, which is characterized in that described device further includes receiving unit;
The receiving unit, for receiving the instruction information for determining main visual angle, the instruction information includes what client was recommended Field of view, the instruction information are sent by the client;
The determination unit is specifically used for being based on the instruction information, the field of view is determined as to the visual angle at main visual angle Region.
12. device as claimed in claim 10, which is characterized in that the determination unit is specifically used for complete based on the target Scape photo obtains goal-selling object region, the goal-selling object place using goal-selling object detection algorithm Region is field of view recommended to the user;
Using goal-selling object region as the field of view at the main visual angle.
13. device as claimed in claim 10, which is characterized in that described device further includes setting unit;
The determination unit, for determining the view transformation mode between the main visual angle of adjacent two, the view transformation mode Including at the uniform velocity converting or non-at the uniform velocity converting;
The setting unit, for according to adjacent two main visual angles visual angle central point and the view transformation mode, On the visual angle central point line at two adjacent main visual angles, the visual angle central point at the secondary visual angle is set;
According to the visual angle size at two adjacent main visual angles and the view transformation mode, the secondary visual angle is set Visual angle size.
14. device as claimed in claim 13, which is characterized in that the setting unit is additionally operable in the view transformation side Formula is, by the visual angle central point line homogenous segmentations at adjacent two main visual angles, every section of endpoint to be set when at the uniform velocity converting For the visual angle central point at the secondary visual angle.
15. device as claimed in claim 13, which is characterized in that the setting unit is additionally operable in the view transformation side Formula is when at the uniform velocity converting, according to the visual angle size at two adjacent main visual angles and the visual angle center at the secondary visual angle Regarding for the secondary visual angle is arranged using linear interpolation mode in the distance of visual angle central point of the point away from two neighboring main visual angle Angle size.
16. device as claimed in claim 10, which is characterized in that
The acquiring unit is additionally operable to obtain the priority of the priority and the secondary picture frame of the primary picture frame, institute The priority for stating primary picture frame is higher than the priority of the secondary picture frame;
When the priority of at least two picture frames is identical, when identical continuously display at least two picture frame setting It is long;
When the priority of at least two picture frames differs, sequence priority-based, the picture frame high to priority First continuously display duration is set, and the second continuously display duration is arranged in the picture frame low to priority, and described first is continuously display Duration is more than the described second continuously display duration.
17. device as claimed in claim 10, which is characterized in that the starting shows that the time is according to the primary picture frame What the position relationship of visual angle central point corresponding with the secondary picture frame determined.
18. device as claimed in claim 10, which is characterized in that described device further includes broadcast unit;
After the receiving unit receives at least one triggering play instruction, the broadcast unit, for based on described at least one A triggering play instruction shows the time sequencing of time according to the starting, shows successively in preset time period in the animation The primary picture frame and the secondary picture frame, the preset time period be it is described triggering play instruction playing duration, Until showing the last one primary picture frame in the preset time period.
19. a kind of electronic equipment, which is characterized in that the electronic equipment includes that processor, communication interface, memory and communication are total Line, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and steps of claim 1-6.
CN201810575759.0A 2018-06-06 2018-06-06 Animation generation method and device based on panoramic photo Active CN108765524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810575759.0A CN108765524B (en) 2018-06-06 2018-06-06 Animation generation method and device based on panoramic photo

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810575759.0A CN108765524B (en) 2018-06-06 2018-06-06 Animation generation method and device based on panoramic photo

Publications (2)

Publication Number Publication Date
CN108765524A true CN108765524A (en) 2018-11-06
CN108765524B CN108765524B (en) 2022-04-05

Family

ID=64000254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810575759.0A Active CN108765524B (en) 2018-06-06 2018-06-06 Animation generation method and device based on panoramic photo

Country Status (1)

Country Link
CN (1) CN108765524B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1237374A1 (en) * 1997-05-05 2002-09-04 The Trustees of Columbia University in the City of New York A method for extracting video objects from a video clip
CN105741252A (en) * 2015-11-17 2016-07-06 西安电子科技大学 Sparse representation and dictionary learning-based video image layered reconstruction method
CN106331732A (en) * 2016-09-26 2017-01-11 北京疯景科技有限公司 Method for generating panoramic content, method for displaying panoramic content and corresponding devices
CN107888987A (en) * 2016-09-29 2018-04-06 华为技术有限公司 A kind of panoramic video player method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1237374A1 (en) * 1997-05-05 2002-09-04 The Trustees of Columbia University in the City of New York A method for extracting video objects from a video clip
CN105741252A (en) * 2015-11-17 2016-07-06 西安电子科技大学 Sparse representation and dictionary learning-based video image layered reconstruction method
CN106331732A (en) * 2016-09-26 2017-01-11 北京疯景科技有限公司 Method for generating panoramic content, method for displaying panoramic content and corresponding devices
CN107888987A (en) * 2016-09-29 2018-04-06 华为技术有限公司 A kind of panoramic video player method and device

Also Published As

Publication number Publication date
CN108765524B (en) 2022-04-05

Similar Documents

Publication Publication Date Title
JP7277064B2 (en) Matching Content to Spatial 3D Environments
US11803937B2 (en) Method, apparatus and computer program product for playback of a video at a new time point
CN103096134B (en) A kind of data processing method and equipment based on net cast and game
JP2022177059A (en) Matching content to spatial 3d environment
CN104980773B (en) streaming media processing method and device, terminal and server
WO2022166927A1 (en) Cursor display method and apparatus based on remote desktop, medium, and electronic device
WO2016100318A2 (en) Gallery of messages with a shared interest
JP7231638B2 (en) Image-based information acquisition method and apparatus
CN107333087A (en) A kind of information sharing method and device based on video session
JP6409107B1 (en) Information processing apparatus, information processing method, and program
JP6026680B1 (en) Method and system for performing image identification
US20200090324A1 (en) Method and Apparatus for Determining Experience Quality of VR Multimedia
CN104244101A (en) Method and device for commenting multimedia content
CN108174227B (en) Virtual article display method and device and storage medium
CN113012082A (en) Image display method, apparatus, device and medium
CN108810567B (en) Audio and video visual angle matching method, client and server
CN108765524A (en) Animation producing method based on distant view photograph and device
JP2009100193A (en) Selection support device and selection support system
US9270763B2 (en) Method and apparatus for sharing electronic content
JP6336309B2 (en) Terminal device, video distribution device, program
CN108271033B (en) Video live broadcast method and device
US20210357020A1 (en) Video streaming system, video streaming method and apparatus
CN105760386B (en) Electronic pictures music score of Chinese operas scrolling method, apparatus and system
WO2023103875A1 (en) Viewpoint switching method, apparatus and system for free viewpoint video
JP5711136B2 (en) Information processing apparatus and information processing method

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