CN109600558A - Method and apparatus for generating information - Google Patents

Method and apparatus for generating information Download PDF

Info

Publication number
CN109600558A
CN109600558A CN201810758789.5A CN201810758789A CN109600558A CN 109600558 A CN109600558 A CN 109600558A CN 201810758789 A CN201810758789 A CN 201810758789A CN 109600558 A CN109600558 A CN 109600558A
Authority
CN
China
Prior art keywords
image
fusion
still image
fused
sequence
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
CN201810758789.5A
Other languages
Chinese (zh)
Other versions
CN109600558B (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201810758789.5A priority Critical patent/CN109600558B/en
Publication of CN109600558A publication Critical patent/CN109600558A/en
Application granted granted Critical
Publication of CN109600558B publication Critical patent/CN109600558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the present application discloses the method and apparatus for generating information.One specific embodiment of this method includes: acquisition still image sequence corresponding with target dynamic picture;Determine the fusion image and fuse information for being directed to still image sequence, wherein fusion is used to be merged with the still image in still image sequence with image, and fuse information is used to indicate the mixing operation of the still image in fusion image and still image sequence;For the still image in still image sequence, based on identified fuse information, the still image and identified fusion are merged with image, obtains fused image;Based on fused image obtained, new dynamic picture is generated.The embodiment enriches the display format of dynamic picture, improves the diversity of information generation.

Description

Method and apparatus for generating information
Technical field
The invention relates to field of computer technology, more particularly, to generate the method and apparatus of information.
Background technique
Dynamic picture (dynamic image) refers to that one group of specific still image generates certain with specified frequency error factor The picture of kind dynamic effect.Currently, dynamic picture is widely applied in people's lives.Such as using The electronic equipment of android system comprising some mainstreams picture load library (such as Fresco, Gilde) can compare The load of dynamic picture is supported well.
Summary of the invention
The embodiment of the present application proposes the method and apparatus for generating information.
In a first aspect, the embodiment of the present application provides a kind of method for generating information, this method comprises: acquisition and mesh Mark the corresponding still image sequence of dynamic picture;Determine the fusion image and fuse information for being directed to still image sequence, wherein Fusion is used to be merged with the still image in still image sequence with image, fuse information be used to indicate fusion image with The mixing operation of still image in still image sequence;For the still image in still image sequence, based on determined by Fuse information merges the still image and identified fusion with image, obtains fused image;Based on obtained Fused image generates new dynamic picture.
In some embodiments, the still image and identified fusion are merged with image, is schemed after being merged Picture, comprising: the still image and identified fusion are merged with image, obtained variform with the still image Fused image.
In some embodiments, it is based on fused image obtained, generates new dynamic picture, comprising: for being obtained The fused image in fused image obtained carries out antialiasing processing, image after being handled to the fused image;It is based on Image after processing obtained generates new dynamic picture.
In some embodiments, it merges corresponding to the shape of still image and still image and has between the shape with image There is corresponding relationship;And determine the fusion image and fuse information for being directed to still image sequence, comprising: determine still image sequence The shape of still image in column;Based on identified shape, default fusion figure is chosen from default fusion image collection As fusion image corresponding to still image sequence.
In some embodiments, the fusion image and fuse information for being directed to still image sequence are determined, comprising: output is pre- If fuse information set, for selection by the user;The default fuse information that acquisition user selects is as corresponding to still image sequence Fuse information.
In some embodiments, based on identified fuse information, to the still image and identified fusion image It is merged, obtains fused image, comprising: creation fusion figure layer, and the still image and fusion are added with image To fusion figure layer;Based on identified fuse information, to fusion in figure layer still image and fusion melted with image It closes, obtains the fused image being located in fusion figure layer.
In some embodiments, after obtaining the fused image being located in fusion figure layer, this method further include: will It is obtained, be added to pre-set display figure layer with the fused image in figure layer positioned at fusion;And based on being obtained The fused image obtained, generates new dynamic picture, comprising: based on the fused image being located in display figure layer, generates new Dynamic picture.
Second aspect, the embodiment of the present application provide one kind for generating massaging device, which includes: acquiring unit, It is configured to obtain still image sequence corresponding with target dynamic picture;Determination unit is configured to determine for static map As the fusion image and fuse information of sequence, wherein fusion with image be used for the still image in still image sequence into Row fusion, fuse information are used to indicate the mixing operation of the still image in fusion image and still image sequence;Fusion is single Member is configured to for the still image in still image sequence, based on identified fuse information, to the still image and institute Determining fusion is merged with image, obtains fused image;Generation unit is configured to scheme after being based on fusion obtained Picture generates new dynamic picture.
In some embodiments, integrated unit is further configured to: to the still image and identified fusion figure As being merged, the variform fused image with the still image is obtained.
In some embodiments, generation unit includes: processing module, is configured in fused image obtained Fused image, to the fused image carry out antialiasing processing, image after being handled;Generation module is configured to base The image after processing obtained generates new dynamic picture.
In some embodiments, it merges corresponding to the shape of still image and still image and has between the shape with image There is corresponding relationship;And determination unit comprises determining that module, is configured to determine the shape of the still image in still image sequence Shape;Module is chosen, is configured to based on identified shape, from the default fusion default fusion image of selection in image collection As fusion image corresponding to still image sequence.
In some embodiments, determination unit includes: output module, is configured to export default fuse information set, with It is selected for user;Module is obtained, is configured to obtain default fuse information that user selects as corresponding to still image sequence Fuse information.
In some embodiments, integrated unit includes: creation module, is configured to create fusion figure layer, and should Still image and fusion are added to fusion figure layer with image;Fusion Module is configured to based on identified fuse information, right Fusion in figure layer still image and fusion merged with image, obtain the fused image being located in fusion figure layer.
In some embodiments, the device further include: adding unit, be configured to by it is obtained, be located at fusion with figure Fused image on layer is added to pre-set display figure layer;And generation unit is further configured to: being based on position Fused image in display figure layer generates new dynamic picture.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress Set, be stored thereon with one or more programs, when one or more programs are executed by one or more processors so that one or The method that multiple processors realize any embodiment in the above-mentioned method for generating information.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method of any embodiment in the above-mentioned method for generating information is realized when program is executed by processor.
Method and apparatus provided by the embodiments of the present application for generating information, it is corresponding with target dynamic picture by obtaining Still image sequence, then determine be directed to still image sequence fusion image and fuse information, wherein fusion use image For being merged with the still image in still image sequence, fuse information is used to indicate fusion image and still image sequence The mixing operation of still image in column is believed sequentially for the still image in still image sequence based on identified fusion Breath, the still image and identified fusion are merged with image, obtain fused image, are finally melted based on obtained Image after conjunction generates new dynamic picture, thus by being carried out to fusion with image and still image corresponding to dynamic picture Fusion, can be adjusted the shape of dynamic picture, enrich the display format of dynamic picture, improve the more of information generation Sample.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for generating information of the application;
Fig. 3 is the schematic diagram according to a kind of fuse information of the method for generating information of the embodiment of the present application;
Fig. 4 is the schematic diagram according to an application scenarios of the method for generating information of the embodiment of the present application;
Fig. 5 is the flow chart according to another embodiment of the method for generating information of the application;
Fig. 6 is the structural schematic diagram according to one embodiment of the device for generating information of the application;
Fig. 7 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for generating information of the application or the implementation of the device for generating information The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications, such as U.S. figure software, image can be installed on terminal device 101,102,103 Handle class application, web browser applications, searching class application, instant messaging tools, social platform software etc..
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard When part, it can be the various electronic equipments with display screen, including but not limited to smart phone, tablet computer, e-book reading (Moving Picture Experts Group Audio Layer III, dynamic image expert compress mark for device, MP3 player Quasi- audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression Standard audio level 4) player, pocket computer on knee and desktop computer etc..When terminal device 101,102,103 is When software, it may be mounted in above-mentioned cited electronic equipment.Its may be implemented into multiple softwares or software module (such as with To provide the multiple softwares or software module of Distributed Services), single software or software module also may be implemented into.It does not do herein It is specific to limit.
Server 105 can be to provide the server of various services, such as to showing on terminal device 101,102,103 The image processing server that target dynamic picture is handled.Image processing server can be to the target dynamic picture received The data such as corresponding still image sequence carry out the processing such as analyzing, and processing result (such as new dynamic picture) is fed back to Terminal device.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software It, can also be with to be implemented as multiple softwares or software module (such as providing multiple softwares of Distributed Services or software module) It is implemented as single software or software module.It is not specifically limited herein.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.Particularly, the static state corresponding to target dynamic picture Image sequence or used data do not need in the case where long-range obtain during generating new dynamic picture, it is above-mentioned System architecture can not include network, and only include terminal device or server.
With continued reference to Fig. 2, the process of one embodiment of the method for generating information according to the application is shown 200.The method for being used to generate information, comprising the following steps:
Step 201, still image sequence corresponding with target dynamic picture is obtained.
In the present embodiment, can lead to for generating the executing subject (such as server shown in FIG. 1) of the method for information It crosses wired connection mode or radio connection obtains still image sequence corresponding with target dynamic picture.Wherein, target Dynamic picture can be the dynamic picture to be adjusted to its shape.Dynamic picture is substantially arranged by one sequentially in time The still image sequence of column forms, when the still image in still image sequence is imitated with that can generate dynamic when specified frequency error factor Fruit.
It should be noted that herein, above-mentioned executing subject can obtain target dynamic picture first, it is then dynamic to target State picture is parsed (such as load library by picture and parsed), obtains still image sequence corresponding to target dynamic picture Column;Alternatively, above-mentioned executing subject from local or can also communicate electronic equipment (such as the terminal shown in FIG. 1 of connection Equipment) directly acquire still image sequence corresponding to target dynamic picture.
Step 202, the fusion image and fuse information for being directed to still image sequence are determined.
In the present embodiment, based on still image sequence obtained in step 201, above-mentioned executing subject can be determined and is directed to The fusion image and fuse information of still image sequence.
Wherein, fusion can be used for being merged with the still image in still image sequence with image, to change static state The shape of image.Fusion image can be the pre-set image of technical staff, or the customized image of user.
Fuse information can include but is not limited at least one of following: text, number, symbol, picture, voice, gesture.Melt Close the mixing operation for the still image that information can serve to indicate that in fusion image and still image sequence.
Specifically, on the one hand, fuse information corresponding to still image sequence can, use pre-set for technical staff In the information of instruction mixing operation.For example, fuse information shown in Fig. 3, herein, fuse information are picture, black and white in picture Staggered grid is the background of picture, and 16 pictures in Fig. 3 melt circular image and square-shaped image execution for characterizing 16 fusion results after closing operation, as an example, upper left first picture is for characterizing to circular image and pros Shape image is merged, final to remove circular image and square-shaped image;Laterally second picture is for characterizing to circular image It is merged with square-shaped image, to retain square-shaped image;Lateral third picture is for characterizing to circular image and pros Shape image is merged, to retain circular image.On the other hand, fuse information corresponding to still image sequence may be use Information (such as phonetic order) that family inputs, being used to indicate mixing operation.
Mixing operation, which can be, merges fusion with image and still image, to change the behaviour of the corner of still image Make.For example, still image is rectangle, corner is right angle.Fusion can be fillet image with image.Fuse information can be text Word " retain fillet ", indicated by mixing operation may include being merged to the still image and fillet image of rectangle, with Right angle included by still image is adjusted to the fillet in fillet image.
It is understood that the corner to still image is adjusted, it is equivalent to and the shape of still image is adjusted. In addition, usual mixing operation can retain figure possessed by fusion image in order to which the shape to target dynamic picture is adjusted As feature, i.e., herein, fusion image usually has corresponding relationship with mixing operation, i.e. fusion image and fuse information has There is corresponding relationship.
Particularly, since still image may have multiple corners, if being intended to be adjusted multiple corners of still image, Above-mentioned executing subject can carry out fusion with image the operation such as rotating, to realize the adjustment to the different corners of still image.
In the present embodiment, above-mentioned executing subject can determine fusion corresponding to still image sequence by various methods Use image.For example, the pre-rendered fusion of technical staff can be determined as still image sequence with image by above-mentioned executing subject Corresponding fusion image;Alternatively, above-mentioned executing subject can export still image sequence for showing, in response to receiving The fusion of user's input is requested with Image Rendering, and the image for receiving user's input is used as fusion corresponding to still image sequence Image.
In some optional implementations of the present embodiment, technical staff can preset the shape of still image with The corresponding relationship of the fusion shape of image corresponding to still image is (corresponding for example, when the shape of still image is rectangle The shape of fusion image include fillet;When the shape of still image is round, the corresponding fusion shape packet of image Include right angle);And above-mentioned executing subject can determine the fusion image for being directed to still image sequence by following steps: first First, above-mentioned executing subject can determine the shape of the still image in still image sequence.Then, above-mentioned executing subject can be with base In identified shape, default fusion is chosen from default fusion image collection with image (with identified still image Image is used in the corresponding default fusion of shape) as fusion image corresponding to still image sequence.
It should be noted that default fusion image collection can be the pre-set image collection of technical staff.Wherein, For each default fusion image, the default fuse information corresponding to it can also be arranged in technical staff.For example, for including The default fusion image of fillet, corresponding to default fusion information can be " retain fillet ";For including right angle Default fusion image, corresponding to default fusion information can be " retaining right angle ".In turn, in this implementation, When above-mentioned executing subject selects default fusion from default blending image set uses image as fusion image, Ke Yizhi It connects and uses default fuse information corresponding to image to believe as fusion corresponding to still image sequence selected default fusion Breath.
In the present embodiment, above-mentioned executing subject can also be determined by other methods and be melted corresponding to still image sequence Close information.Optionally, above-mentioned executing subject can export default fuse information set, for selection by the user, and then obtain user The default fuse information selected is as fuse information corresponding to still image sequence.
Step 203, for the still image in still image sequence, based on identified fuse information, to the static map Picture and identified fusion are merged with image, obtain fused image.
In the present embodiment, for the still image in still image sequence, schemed based on the fusion determined in step 202 Picture and fuse information, above-mentioned executing subject can merge the still image and identified fusion with image, be melted Image after conjunction.
It should be noted that herein, technical staff can predefine still image with merge the corresponding circle of sensation with image Domain (such as image corner areas), in turn, for identified fusion image, above-mentioned executing subject can be by fusion image It is moved to above-mentioned integration region, and according to operation indicated by fuse information, still image and fusion are merged with image. Alternatively, above-mentioned executing subject can export still image and fusion image first, so that fusion is moved to by user with image Integration region on still image;Then, obtain user's input, it is mobile after fusion image and still image, and according to The fusion after still image and movement is merged in operation indicated by fuse information with image.
In some optional implementations of the present embodiment, for the still image in still image sequence, it is based on institute Determining fuse information, above-mentioned executing subject can merge the still image and identified fusion with image, obtain With the variform fused image of the still image.
In practice, for still image sequence, above-mentioned executing subject successively can choose still image from the sequence, hold Row step 203 can also randomly select still image from the sequence, execute step 203, i.e. the selection mode of still image exists Herein with no restrictions.
It is above-mentioned to hold for the still image in still image sequence in some optional implementations of the present embodiment Row main body can obtain fused image corresponding to the still image by following steps:
Firstly, above-mentioned executing subject can create fusion figure layer, wherein fusion can be for for holding with figure layer on it The figure layer of row mixing operation.Herein, after mixing operation is finished, above-mentioned executing subject can delete fusion figure layer.
Then, the still image and fusion can be added to fusion figure layer with image by above-mentioned executing subject.It needs It is bright, it is above-mentioned by the still image and fusion with image be added to fusion figure layer addition manner can there are many.Specifically , as an example, the still image and fusion can be added to fusion figure with image by movement by above-mentioned executing subject The still image and fusion can also be added to fusion figure layer with image by duplication by layer.
Finally, based on identified fuse information, above-mentioned executing subject can in fusion figure layer still image and Fusion is merged with image, obtains the fused image being located in fusion figure layer.
Herein, it should be noted that the processing for the fused image in subsequent fusion figure layer, above-mentioned execution Main body can be directly based upon the fused image in fusion figure layer, generate the new dynamic picture being located in fusion figure layer, Fusion can also be handled (such as movement) with the fused image in figure layer first, obtain treated fusion after scheme Picture then generates new dynamic picture based on treated fused image again.
Step 204, it is based on fused image obtained, generates new dynamic picture.
In the present embodiment, it is based on step 203 fused image obtained, new move can be generated in above-mentioned executing subject State picture.Herein, the shape of new dynamic picture is different from the shape of target dynamic picture, with this, can enrich Dynamic Graph The display format of piece.
Specifically, above-mentioned executing subject can be first, in accordance with the static map in step 201 still image sequence obtained Picture puts in order, and is ranked up to fused image corresponding to each still image, obtains fused image sequence;Then Fused image sequence can be arranged according to the switching frequency of still image corresponding to target dynamic picture in above-mentioned executing subject In fused image switching frequency, and then generate new dynamic picture.
In some optional implementations of the present embodiment, for the optional implementation in step 203, position is being obtained After the fused image in fusion figure layer, above-mentioned executing subject can by it is obtained, in fusion figure layer Fused image is added to pre-set display figure layer;And above-mentioned executing subject can be based in display figure layer Fused image, generate new dynamic picture.Wherein, display figure layer can be figure layer for displaying images, when aobvious When showing with new dynamic picture is generated in figure layer, i.e., new dynamic picture is shown simultaneously.
With continued reference to the signal that Fig. 4, Fig. 4 are according to the application scenarios of the method for generating information of the present embodiment Figure.In the application scenarios of Fig. 4, server 401 can obtain still image sequence corresponding with target dynamic picture 402 first 403.Then server 401 can determine for still image sequence 403 fusion image 404 and fuse information (such as " protect Stay fillet ") 405, wherein fusion is used to be merged with the still image in still image sequence 403 with image 404, merges Information 405 is used to indicate the mixing operation of the still image in fusion image 404 and still image sequence 403.Then, for Still image 4031,4032,4033 in still image sequence 403, server 401 can be based on fuse information 405, right respectively Still image 4031,4032,4033 and fusion are merged with image 404, obtain fused image 4061,4062,4063.Most Afterwards, server 401 can be based on fused image 4061,4062,4063 obtained, generate new dynamic picture 407.
The method provided by the above embodiment of the application, which passes through, obtains still image sequence corresponding with target dynamic picture, Then determine the fusion image and fuse information for being directed to still image sequence, wherein fusion is used for image and still image Still image in sequence is merged, and fuse information is used to indicate the still image in fusion image and still image sequence Mixing operation, sequentially for the still image in still image sequence, based on identified fuse information, to the still image It is merged with identified fusion with image, obtains fused image, be finally based on fused image obtained, generated new Dynamic picture can be to dynamic thus by being merged to fusion with image with still image corresponding to dynamic picture The shape of picture is adjusted, and enriches the display format of dynamic picture, improves the diversity of information generation.
With further reference to Fig. 5, it illustrates the processes 500 of another embodiment of the method for generating information.The use In the process 500 for the method for generating information, comprising the following steps:
Step 501, still image sequence corresponding with target dynamic picture is obtained.
In the present embodiment, can lead to for generating the executing subject (such as server shown in FIG. 1) of the method for information It crosses wired connection mode or radio connection obtains still image sequence corresponding with target dynamic picture.Wherein, target Dynamic picture can be the dynamic picture to be adjusted to its shape.Dynamic picture is substantially arranged by one sequentially in time The still image sequence of column forms, when the still image in still image sequence is imitated with that can generate dynamic when specified frequency error factor Fruit.
Step 502, the fusion image and fuse information for being directed to still image sequence are determined.
In the present embodiment, based on still image sequence obtained in step 501, above-mentioned executing subject can be determined and is directed to The fusion image and fuse information of still image sequence.Wherein, fusion image can be used for in still image sequence Still image is merged, to change the shape of still image.Fusion image can be the pre-set image of technical staff, It may be the customized image of user.Fuse information can include but is not limited at least one of following: text, number, symbol, Picture, voice, gesture.Fuse information can serve to indicate that merging for fusion image and the still image in still image sequence Operation.
Step 503, for the still image in still image sequence, based on identified fuse information, to the static map Picture and identified fusion are merged with image, obtain fused image.
In the present embodiment, based on the fusion image and fuse information determined in step 502, for still image sequence In still image, above-mentioned executing subject can be based on identified fuse information, to the still image and identified fusion It is merged with image, obtains fused image.
Above-mentioned steps 501, step 502, step 503 respectively with step 201, step 202, the step in previous embodiment 203 is consistent, and the description above with respect to step 201, step 202 and step 203 is also applied for step 501, step 502 and step 503, details are not described herein again.
Step 504, for the fused image in fused image obtained, antialiasing is carried out to the fused image Processing, image after being handled.
In the present embodiment, the fused image in fused image obtained for step 503, above-mentioned executing subject Antialiasing processing, image after being handled can be carried out to the fused image.It should be noted that antialiasing processing is current The prior art of research sum extensively, details are not described herein again.
Step 505, based on image after processing obtained, new dynamic picture is generated.
In the present embodiment, based on image after step 504 processing obtained, new move is can be generated in above-mentioned executing subject State picture.Herein, the shape of new dynamic picture is different from the shape of target dynamic picture, with this, can enrich Dynamic Graph The display format of piece.
Specifically, above-mentioned executing subject can be first, in accordance with the static map in step 501 still image sequence obtained Picture puts in order, and is ranked up to image after processing corresponding to each still image, image sequence after being handled;Then Image sequence after above-mentioned executing subject can be handled according to the switching frequency setting of still image corresponding to target dynamic picture In processing after image switching frequency, and then generate new dynamic picture.
From figure 5 it can be seen that the method for generating information compared with the corresponding embodiment of Fig. 2, in the present embodiment Process 500 highlight antialiasing processing carried out to fused image, image after handle, and then based on processing obtained Image generates the step of new dynamic picture afterwards.The scheme of the present embodiment description can be handled by antialiasing as a result, and reduction is melted The adverse effect (such as generating burr) to image border is closed, to generate more aesthetically pleasing, the better dynamic picture of dynamic effect.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, this application provides one kind for generating letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in fig. 6, the present embodiment includes: acquiring unit 601, determination unit for generating the device 600 of information 602, integrated unit 603 and generation unit 604.Wherein, acquiring unit 601 is configured to obtain corresponding with target dynamic picture Still image sequence;Determination unit 602 is configured to determine fusion image and fuse information for still image sequence, In, fusion is used to be merged with the still image in still image sequence with image, and fuse information is used to indicate fusion figure As the mixing operation with the still image in still image sequence;Integrated unit 603 is configured in still image sequence Still image the still image and identified fusion are merged with image based on identified fuse information, obtain Fused image;Generation unit 604 is configured to generate new dynamic picture based on fused image obtained.
In the present embodiment, for generate information device 600 acquiring unit 601 can by wired connection mode or Person's radio connection obtains still image sequence corresponding with target dynamic picture.Wherein, target dynamic picture can for The dynamic picture that its shape is adjusted.The still image sequence that dynamic picture is substantially arranged by one sequentially in time Composition, when the still image in still image sequence is can generate dynamic effect when specified frequency error factor.
It should be noted that herein, acquiring unit 601 can obtain target dynamic picture first, it is then dynamic to target State picture is parsed (such as load library by picture and parsed), obtains still image sequence corresponding to target dynamic picture Column;Alternatively, acquiring unit 601 from local or can also communicate the electronic equipment of connection (such as terminal shown in FIG. 1 is set It is standby) directly acquire still image sequence corresponding to target dynamic picture.
In the present embodiment, the still image sequence obtained based on acquiring unit 601, determination unit 602 can determine needle To the fusion image and fuse information of still image sequence.Wherein, fusion image can be used for in still image sequence Still image merged, to change the shape of still image.Fusion image can be the pre-set figure of technical staff Picture, or the customized image of user.Fuse information can include but is not limited at least one of following: text, number, symbol Number, picture, voice, gesture.Fuse information can serve to indicate that the still image in fusion image and still image sequence Mixing operation.Fuse information corresponding to still image sequence can be for technical staff is pre-set, is used to indicate fusion behaviour The information of work, or information that user inputs, being used to indicate mixing operation.
In the present embodiment, the fusion image and fuse information determined based on determination unit 602, for still image sequence Still image in column, integrated unit 603 can be based on identified fuse informations, to the still image and identified fusion It is merged with image, obtains fused image.
In the present embodiment, the fused image obtained based on integrated unit 603, generation unit 604 can be generated new Dynamic picture.Herein, the shape of new dynamic picture is different from the shape of target dynamic picture, with this, can enrich dynamic The display format of picture.
In some optional implementations of the present embodiment, integrated unit 603 can be further configured to: quiet to this State image and identified fusion are merged with image, obtain the variform fused image with the still image.
In some optional implementations of the present embodiment, generation unit 604 may include: processing module (in figure not Show), it is configured to carry out at antialiasing the fused image fused image in fused image obtained Reason, image after being handled;Generation module (not shown) is configured to generate new based on image after processing obtained Dynamic picture.
In some optional implementations of the present embodiment, the shape of still image can with corresponding to still image There is corresponding relationship between the shape of fusion image;And determination unit 602 may include: that determining module (is not shown in figure Out), it is configured to determine the shape of the still image in still image sequence;Module (not shown) is chosen, is configured to Based on identified shape, the default fusion of selection in image collection is used to use image right as still image sequence institute from default fusion The fusion image answered.
In some optional implementations of the present embodiment, determination unit 603 can also include: output module (in figure It is not shown), it is configured to export default fuse information set, for selection by the user;Module (not shown) is obtained, is configured The default fuse information selected at acquisition user is as fuse information corresponding to still image sequence.
In some optional implementations of the present embodiment, integrated unit 603 may include: creation module (in figure not Show), it is configured to create fusion figure layer, and the still image and fusion are added to fusion figure layer with image;Melt Block (not shown) is molded, is configured to the still image in fusion figure layer and melt based on identified fuse information It shares image to be merged, obtains the fused image being located in fusion figure layer.
In some optional implementations of the present embodiment, device 600 can also include: that adding unit (is not shown in figure Out), be configured to by it is obtained, positioned at fusion be added to pre-set display figure with the fused image in figure layer Layer;And generation unit 604 can be further configured to: based on the fused image being located in display figure layer, be generated new Dynamic picture.
It is understood that all units in the device 600 are opposite with each step in the method with reference to Fig. 2 description It answers.Device 600 and wherein is equally applicable to above with respect to the operation of method description, the beneficial effect of feature and generation as a result, The unit for including, details are not described herein.
The device provided by the above embodiment 600 of the application is obtained corresponding with target dynamic picture by acquiring unit 601 Still image sequence, then determination unit 602 determine be directed to still image sequence fusion image and fuse information, In, fusion is used to be merged with the still image in still image sequence with image, and fuse information is used to indicate fusion figure As the mixing operation with the still image in still image sequence, sequentially for the still image in still image sequence, fusion Unit 603 is merged based on identified fuse information, to the still image and identified fusion with image, is merged Image afterwards ultimately produces unit 604 and is based on fused image obtained, new dynamic picture generated, thus by fusion It is merged with image with still image corresponding to dynamic picture, the shape of dynamic picture can be adjusted, be enriched The display format of dynamic picture improves the diversity of information generation.
Below with reference to Fig. 7, it is (such as shown in FIG. 1 that it illustrates the electronic equipments for being suitable for being used to realize the embodiment of the present application Terminal device or server) computer system 700 structural schematic diagram.Electronic equipment shown in Fig. 7 is only an example, Should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 601, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 605 is also connected to always Line 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media 711 are mounted.When the computer program is executed by central processing unit (CPU) 701, limited in execution the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination. The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection, Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include acquiring unit, determination unit, integrated unit and generation unit.Wherein, the title of these units not structure under certain conditions The restriction of the pairs of unit itself, for example, acquiring unit is also described as " obtaining static state corresponding with target dynamic picture The unit of image sequence ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are held by the electronic equipment When row, so that the electronic equipment: obtaining still image sequence corresponding with target dynamic picture;It determines and is directed to still image sequence Fusion image and fuse information, wherein fusion is used to be merged with the still image in still image sequence with image, Fuse information is used to indicate the mixing operation of the still image in fusion image and still image sequence;For still image sequence Still image in column merges the still image and identified fusion with image based on identified fuse information, Obtain fused image;Based on fused image obtained, new dynamic picture is generated.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (16)

1. a kind of method for generating information, comprising:
Obtain still image sequence corresponding with target dynamic picture;
Determine be directed to the still image sequence fusion image and fuse information, wherein the fusion with image be used for Still image in the still image sequence is merged, the fuse information be used to indicate the fusion image with it is described The mixing operation of still image in still image sequence;
It is true to the still image and institute based on identified fuse information for the still image in the still image sequence Fixed fusion is merged with image, obtains fused image;
Based on fused image obtained, new dynamic picture is generated.
2. according to the method described in claim 1, wherein, the described pair of still image and identified fusion are melted with image It closes, obtains fused image, comprising:
The still image and identified fusion are merged with image, acquisition is merged with the variform of the still image Image afterwards.
3. it is described to be based on fused image obtained according to the method described in claim 1, wherein, generate new Dynamic Graph Piece, comprising:
For the fused image in fused image obtained, antialiasing processing carried out to the fused image, at acquisition Image after reason;
Based on image after processing obtained, new dynamic picture is generated.
4. according to the method described in claim 1, wherein, being merged corresponding to the shape and still image of still image and using image Shape between have corresponding relationship;And
The determination is directed to the fusion image and fuse information of the still image sequence, comprising:
Determine the shape of the still image in the still image sequence;
Based on identified shape, the default fusion of selection in image collection is used to use image as the still image from default fusion Fusion image corresponding to sequence.
5. according to the method described in claim 1, wherein, the determination for the still image sequence fusion image and Fuse information, comprising:
Default fuse information set is exported, for selection by the user;
The default fuse information that acquisition user selects is as fuse information corresponding to the still image sequence.
6. method described in one of -5 according to claim 1, wherein it is described based on identified fuse information, to the static map Picture and identified fusion are merged with image, obtain fused image, comprising:
Fusion figure layer is created, and the still image and the fusion are added to the fusion figure layer with image;
Based on identified fuse information, to fusion in figure layer still image and fusion merged with image, obtain position Fused image in the fusion figure layer.
7. according to the method described in claim 6, wherein, being located at the fused image in the fusion figure layer in the acquisition Later, the method also includes:
By it is obtained, positioned at the fusion be added to pre-set display figure layer with the fused image in figure layer;With And
It is described to be based on fused image obtained, generate new dynamic picture, comprising:
Based on the fused image being located in the display figure layer, new dynamic picture is generated.
8. one kind is for generating massaging device, comprising:
Acquiring unit is configured to obtain still image sequence corresponding with target dynamic picture;
Determination unit is configured to determine fusion image and fuse information for the still image sequence, wherein described Fusion is used to be merged with the still image in the still image sequence with image, and the fuse information is used to indicate described The mixing operation of still image in fusion image and the still image sequence;
Integrated unit is configured to for the still image in the still image sequence, right based on identified fuse information The still image and identified fusion are merged with image, obtain fused image;
Generation unit is configured to generate new dynamic picture based on fused image obtained.
9. device according to claim 8, wherein the integrated unit is further configured to:
The still image and identified fusion are merged with image, acquisition is merged with the variform of the still image Image afterwards.
10. device according to claim 8, wherein the generation unit includes:
Processing module is configured to carry out the fused image fused image in fused image obtained Antialiasing processing, image after being handled;
Generation module is configured to generate new dynamic picture based on image after processing obtained.
11. device according to claim 8, wherein merged corresponding to the shape of still image and still image with figure There is corresponding relationship between the shape of picture;And
The determination unit includes:
Determining module is configured to determine the shape of the still image in the still image sequence;
Module is chosen, is configured to based on identified shape, default fusion figure is chosen from default fusion image collection As fusion image corresponding to the still image sequence.
12. device according to claim 8, wherein the determination unit includes:
Output module is configured to export default fuse information set, for selection by the user;
Module is obtained, is configured to obtain the default fuse information that user selects and melts as corresponding to the still image sequence Close information.
13. the device according to one of claim 8-12, wherein the integrated unit includes:
Creation module is configured to create fusion figure layer, and the still image and the fusion is added to institute with image State fusion figure layer;
Fusion Module is configured to based on identified fuse information, to the still image and fusion figure in fusion figure layer As being merged, the fused image being located in the fusion figure layer is obtained.
14. device according to claim 13, wherein described device further include:
Adding unit, be configured to by it is obtained, be added to positioned at the fusion with the fused image in figure layer and set in advance The display figure layer set;And
The generation unit is further configured to:
Based on the fused image being located in the display figure layer, new dynamic picture is generated.
15. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-7.
16. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Method as described in any in claim 1-7.
CN201810758789.5A 2018-07-11 2018-07-11 Method and apparatus for generating information Active CN109600558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810758789.5A CN109600558B (en) 2018-07-11 2018-07-11 Method and apparatus for generating information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810758789.5A CN109600558B (en) 2018-07-11 2018-07-11 Method and apparatus for generating information

Publications (2)

Publication Number Publication Date
CN109600558A true CN109600558A (en) 2019-04-09
CN109600558B CN109600558B (en) 2021-08-13

Family

ID=65956573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810758789.5A Active CN109600558B (en) 2018-07-11 2018-07-11 Method and apparatus for generating information

Country Status (1)

Country Link
CN (1) CN109600558B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110084306A (en) * 2019-04-30 2019-08-02 北京字节跳动网络技术有限公司 Method and apparatus for generating dynamic image

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002052565A1 (en) * 2000-12-22 2002-07-04 Muvee Technologies Pte Ltd System and method for media production
CN1705976A (en) * 2003-10-23 2005-12-07 微软公司 Markup language and object model for vector graphics
JP2008015619A (en) * 2006-07-03 2008-01-24 Fuji Xerox Co Ltd Image processor, image processing method, and image processing program
US20110029860A1 (en) * 2009-07-30 2011-02-03 Ptucha Raymond W Artistic digital template for image display
CN102982571A (en) * 2011-10-20 2013-03-20 微软公司 Combining and dividing drawing object
CN105516610A (en) * 2016-02-19 2016-04-20 深圳新博科技有限公司 Method and device for shooting local dynamic image
CN107038735A (en) * 2017-03-31 2017-08-11 武汉斗鱼网络科技有限公司 It is a kind of to realize the method and system that entity opens animation
WO2017203477A1 (en) * 2016-05-26 2017-11-30 Typito Technologies Pvt Ltd Media content editing platform

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002052565A1 (en) * 2000-12-22 2002-07-04 Muvee Technologies Pte Ltd System and method for media production
CN1705976A (en) * 2003-10-23 2005-12-07 微软公司 Markup language and object model for vector graphics
JP2008015619A (en) * 2006-07-03 2008-01-24 Fuji Xerox Co Ltd Image processor, image processing method, and image processing program
US20110029860A1 (en) * 2009-07-30 2011-02-03 Ptucha Raymond W Artistic digital template for image display
CN102982571A (en) * 2011-10-20 2013-03-20 微软公司 Combining and dividing drawing object
CN105516610A (en) * 2016-02-19 2016-04-20 深圳新博科技有限公司 Method and device for shooting local dynamic image
WO2017203477A1 (en) * 2016-05-26 2017-11-30 Typito Technologies Pvt Ltd Media content editing platform
CN107038735A (en) * 2017-03-31 2017-08-11 武汉斗鱼网络科技有限公司 It is a kind of to realize the method and system that entity opens animation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网友: "Android自定义view利用Xfermode实现动态文字加载动画", 《HTTP://WWW.PHPERZ.COM/ARTICLE/17/1012/346053.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110084306A (en) * 2019-04-30 2019-08-02 北京字节跳动网络技术有限公司 Method and apparatus for generating dynamic image
CN110084306B (en) * 2019-04-30 2022-03-29 北京字节跳动网络技术有限公司 Method and apparatus for generating dynamic image

Also Published As

Publication number Publication date
CN109600558B (en) 2021-08-13

Similar Documents

Publication Publication Date Title
US20220239612A1 (en) Information interaction method, apparatus, device, storage medium and program product
US20210333984A1 (en) Method and apparatus for generating customized visualization component
CN109460233A (en) Primary interface display update method, device, terminal device and the medium of the page
CN110109670B (en) Method and device for processing view list data, electronic equipment and storage medium
CN109347720A (en) It determines group member, send the method and apparatus that the request of group is added
CN109684578A (en) Method and apparatus for showing information
CN109889875A (en) Communication means, device, terminal device and computer-readable medium
CN109215121A (en) Method and apparatus for generating information
CN109544444A (en) Image processing method, device, electronic equipment and computer storage medium
CN103778128B (en) The method for drafting and device of a kind of list information
CN109785408B (en) Mapping method and device and electronic equipment
CN109446442A (en) Method and apparatus for handling information
CN109508450A (en) The operating method of table, device, storage medium and electronic equipment in online document
CN110308836B (en) Data processing method, device, terminal and storage medium
CN109408748A (en) Method and apparatus for handling information
CN110519155A (en) Information processing method and system
CN110286971A (en) Processing method and system, medium and calculating equipment
CN109600558A (en) Method and apparatus for generating information
CN114997117A (en) Document editing method, device, terminal and non-transitory storage medium
CN107426595A (en) Interface navigation data handling system
CN110058857A (en) Generation method and device are applied in boarding
CN110209861A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN108021317B (en) Method and device for screen editing
CN109981446A (en) Information generating method, electronic equipment and computer-readable medium
CN109614603A (en) Method and apparatus for generating information

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
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder