CN107392974A - Picture generation method and device and terminal equipment - Google Patents

Picture generation method and device and terminal equipment Download PDF

Info

Publication number
CN107392974A
CN107392974A CN201710568762.5A CN201710568762A CN107392974A CN 107392974 A CN107392974 A CN 107392974A CN 201710568762 A CN201710568762 A CN 201710568762A CN 107392974 A CN107392974 A CN 107392974A
Authority
CN
China
Prior art keywords
picture
theme background
design template
theme
target video
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.)
Pending
Application number
CN201710568762.5A
Other languages
Chinese (zh)
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710568762.5A priority Critical patent/CN107392974A/en
Publication of CN107392974A publication Critical patent/CN107392974A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a picture generation method and device and terminal equipment. The method comprises the following steps: obtaining at least one theme background picture from a target video; acquiring a preset theme design template, and extracting each layer in the theme design template; and correspondingly superposing each image layer to at least one theme background image according to the theme design template to generate a target propaganda picture. According to the embodiment of the invention, the picture does not need to be searched manually and actively to serve as the theme background picture, and various publicity pictures can be generated through the preset theme design template, so that the labor cost is greatly saved, the occurrence of errors in the manufacturing process is reduced, and the manufacturing efficiency is improved.

Description

Picture Generation Method, device and terminal device
Technical field
The present invention relates to picture Processing Technique field, more particularly to a kind of Picture Generation Method, device and terminal device.
Background technology
With the fast development of mobile terminal manufacturing field and internet, mobile terminal has become in people's life not Can or scarce communication and converter tools.And with continuous attention of the people to mobile terminal (such as mobile phone) interface personalized, make Obtain interface of mobile terminal constantly to beautify, develop out the continuous renewal of mobile terminal personalized theme therewith.It is however, mobile at present The publicity pictures of terminal subject are typically to be formed by manual manufacture, still, in manual manufacture publicity pictures, it is easy to are occurred wrong By mistake, in some instances it may even be possible to can cause to have done many idle works, and then increase cost of labor, reduce the producing efficiency of publicity pictures.
The content of the invention
The purpose of the present invention is intended at least solve one of above-mentioned technical problem to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of Picture Generation Method.This method is without manually active Picture is looked for work as theme Background, and various advertising maps can be generated by default conception design template Piece, human cost is greatlyd save, reduce appearance wrong in manufacturing process, improve producing efficiency.
Second object of the present invention is to propose a kind of photograph creation device.
Third object of the present invention is to propose a kind of terminal device.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
The 5th purpose of the present invention is to propose a kind of computer program product.
To reach above-mentioned purpose, Picture Generation Method that first aspect present invention embodiment proposes, including:From target video A middle acquisition at least theme Background;Default conception design template is obtained, and is extracted each in the conception design template Individual figure layer;According to the conception design template, each figure layer is accordingly superimposed to an at least theme Background On, to generate target promotional picture.
Picture Generation Method according to embodiments of the present invention, an at least theme background can be obtained from target video Figure, and default conception design template is obtained, and each figure layer in conception design template is extracted, finally, according to conception design Template, each figure layer is accordingly superimposed at least on a theme Background, to generate target promotional picture.Entirely scheming In the manufacturing process of piece, picture is looked for work as theme Background without artificial active, and pass through default conception design Template can generate various publicity pictures, greatly save human cost, reduce appearance wrong in manufacturing process, Improve producing efficiency.
According to one embodiment of present invention, it is described to obtain an at least theme Background from target video, including:Press According to the time mode obtained from the target video described in an at least theme Background;Or in the way of key frame An at least theme Background described in being obtained from the target video.
According to one embodiment of present invention, when generating the target promotional picture, methods described also includes:Acquisition is retouched The property stated word;According to the attribute of default font and the font, the descriptive matter in which there is added to the target promotional figure In piece.
According to one embodiment of present invention, each figure layer is accordingly being superimposed to an at least theme back of the body After on scape figure, methods described also includes:Image procossing is carried out at least theme Background after overlap-add procedure, its In, described image processing includes image rotation processing, and/or, image down processing, and/or, image Fuzzy Processing.
According to one embodiment of present invention, it is described to obtain an at least theme Background from target video, including:It is logical Cross multimedia video handling implement FFmpeg and an at least theme Background is obtained from target video.
To reach above-mentioned purpose, photograph creation device that second aspect of the present invention embodiment proposes, including:First obtains mould Block, for obtaining an at least theme Background from target video;Second acquisition module, for obtaining default conception design Template;Extraction module, for extracting each figure layer in the conception design template;Generation module, for according to the theme Design template, each figure layer is accordingly superimposed to it is described at least on a theme Background, to generate target promotional figure Piece.
Photograph creation device according to embodiments of the present invention, it can be obtained at least from target video by the first acquisition module One theme Background, the second acquisition module obtain default conception design template, and extraction module is extracted in conception design template Each figure layer, each figure layer is accordingly superimposed to an at least theme Background by generation module according to conception design template On, to generate target promotional picture.I.e. in the manufacturing process of whole picture, picture is looked for work as master without artificial active Background is inscribed, and various publicity pictures can be generated by default conception design template, greatlys save manpower Cost, reduce appearance wrong in manufacturing process, improve producing efficiency.
According to one embodiment of present invention, first acquisition module is specifically used for:From described in the way of the time An at least theme Background described in being obtained in target video;Or obtained in the way of key frame from the target video Take an at least theme Background.
According to one embodiment of present invention, described device also includes:3rd acquisition module, in the generation module When generating the target promotional picture, descriptive matter in which there is obtained;Add module, for according to default font and the font Attribute, the descriptive matter in which there is added in the target promotional picture.
According to one embodiment of present invention, described device also includes:Image processing module, for by each figure Layer be accordingly superimposed to it is described at least on a theme Background after, at least theme background after overlap-add procedure Figure carries out image procossing, wherein, described image processing includes image rotation processing, and/or, image down processing, and/or, figure As Fuzzy Processing.
According to one embodiment of present invention, first acquisition module is specifically used for:Work is handled by multimedia video Tool FFmpeg obtains an at least theme Background from target video.
To reach above-mentioned purpose, the terminal device that third aspect present invention embodiment proposes, memory, processor and storage On a memory and the computer program that can run on a processor, it is characterised in that during the computing device described program, Realize the Picture Generation Method described in first aspect present invention embodiment.
To reach above-mentioned purpose, non-transitorycomputer readable storage medium that fourth aspect present invention embodiment proposes, Computer program is stored thereon with, the program realizes the picture life described in first aspect present invention embodiment when being executed by processor Into method.
To reach above-mentioned purpose, the computer program product that fifth aspect present invention embodiment proposes, when the computer When instruction in program product is by computing device, a kind of Picture Generation Method is performed, methods described includes:From target video Obtain an at least theme Background;Default conception design template is obtained, and is extracted each in the conception design template Figure layer;According to the conception design template, each figure layer is accordingly superimposed to it is described at least on a theme Background, To generate target promotional picture.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow chart of Picture Generation Method according to an embodiment of the invention;
Fig. 2 (a) and (b) are the effect diagrams of target promotional picture according to embodiments of the present invention;
Fig. 3 is the structural representation of photograph creation device according to an embodiment of the invention;
Fig. 4 is the structural representation according to the photograph creation device of a specific embodiment of the invention;
Fig. 5 is the structural representation according to the photograph creation device of another specific embodiment of the invention;
Fig. 6 is the structural representation of terminal device according to an embodiment of the invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the Picture Generation Method, device and terminal device of the embodiment of the present invention are described.
Fig. 1 is the flow chart of Picture Generation Method according to an embodiment of the invention.It should be noted that the present invention is real The Picture Generation Method for applying example can be applied to the photograph creation device of the embodiment of the present invention, and the photograph creation device can be configured In terminal device, the terminal device can be that (such as mobile phone, tablet personal computer, personal digital assistant have various behaviour to mobile terminal Make the hardware device of system).
It should also be noted that, the picture in the embodiment of the present invention can be publicity pictures, the publicity pictures can be regarded as The publicity pictures of theme in mobile terminal,
As shown in figure 1, the Picture Generation Method can include:
S110, an at least theme Background is obtained from target video.
For example, it is assumed that the Picture Generation Method of the embodiment of the present invention can be applied to the picture generation of the embodiment of the present invention Device, the device can be presented on the terminal device in the form of program, and user uses for convenience, and the program is also User provides video and transfers interface, and user can transfer interface by the video to obtain target video.User is detected for example, working as Start described program, and the video for clicking on described program offer can transfer interface by the video and transfer when transferring interface Multiple videos, user can be according to being actually needed the selection target video from the plurality of video.It is determined that user chooses the mesh After marking video, an at least theme Background can be obtained from the target video.Wherein, the theme Background can be regarded as by Used picture during for generating target promotional picture, the theme Background can be as the pictures of terminal device theme background.
In an embodiment of the present invention, the mode that at least one theme Background is obtained from target video has many kinds: As a kind of example, an at least theme Background can be obtained from target video in the way of the time;Or according to key The mode of frame obtains an at least theme Background from target video.For example, it is assumed that the video total duration of target video is 60 Second, the video pictures corresponding to the 20th second, the 25th second, the 45th second can be intercepted respectively from target video in the way of the time, And using the video pictures corresponding to described 20th second, the 25th second, the 45th second as theme Background.And for example, it is assumed that target video In share 3 key frames, video corresponding to all key frames can be obtained from target video and is drawn in the way of key frame Face, and using the video pictures corresponding to all key frames as theme Background.
Alternatively, in one embodiment of the invention, FFmpeg instruments can be handled by multimedia video to regard from target An at least theme Background is obtained in frequency.For example, it is assumed that there is FFmpeg instruments, it is determined that user chooses in terminal device After the target video, the FFmpeg instruments can be called, and first passes through the FFmpeg instruments and carries out the target video in advance Processing, such as, the target video is cut into preset ratio size (such as 16:9) video, afterwards, can be by described FFmpeg instruments, in the way of the time or in the way of key frame, at least one is obtained from the target video by pretreatment Individual frame of video, and using at least one frame of video as an at least theme Background.
S120, default conception design template is obtained, and extract each figure layer in conception design template.
Wherein, in an embodiment of the present invention, the conception design template can be pre-set.That is, The conception design template can be set previously according to actual demand.Wherein, multiple figure layers can be included in the conception design template, There is at least one kind of design in each figure layer, for example, can include with time kind of design in conception design template Figure layer, the figure layer with nine grids the unlocking pattern kind of design, figure layer with weather kind of design etc..
It is appreciated that the number of the conception design template can be one or multiple, particular number can basis Actual demand limits, for example, 5 conception design templates can be preset, language used in each conception design template Say that type is different.And for example, 5 conception design templates can be preset, in each conception design template in multiple figure layers Kind of design it is different with respect to the position in conception design template.For example, it is assumed that the first conception design template and Include the figure layer with time kind of design in two conception design templates, the time kind of design is with respect to the first conception design mould Position in plate is middle top position, and the time kind of design descends orientation in being with respect to the position in second theme design template Put.
Specifically, after an at least theme Background is obtained from target video, theme set in advance can be obtained Design template, and extract each figure layer in the conception design template.
S130, according to conception design template, each figure layer is accordingly superimposed at least on a theme Background, with life Into target promotional picture.
Specifically, after an at least theme Background is obtained from target video, accordingly folded by each figure layer Before adding at least on a theme Background, can also first to this, at least a theme Background pre-processes, for example, can lead to Cross FFmpeg instruments and the resolution ratio of at least one theme Background is changed into default resolution ratio respectively, such as 720 × 1280.
, can be according to conception design mould after being to preset resolution ratio to the conversion of resolution of at least one theme Background Plate, pass through the class libraries PIL carried in Python (a kind of explanation type computer programming language of object-oriented) storehouse The theme Background that (class libraries on picture in Python storehouses) translates into default resolution ratio is opened and read, and profit With picture overlay tool Image.composite () by said extracted to each map overlay into the theme Background, obtain To target promotional picture.
In order to improve the availability and feasibility of the present invention, enable to target promotional picture that there is more preferable effect, Further, in one embodiment of the invention, when generating target promotional picture, descriptive matter in which there, and root can also be obtained According to the attribute of default font and font, descriptive matter in which there is added in target promotional picture.
Specifically, the descriptive matter in which there can be obtained in the following manner:Terminal device can provide the user word Input interface, so, the word of user input, and the word that the user is inputted can be obtained by the word input interface As the descriptive matter in which there., can be according to font set in advance and the font after the descriptive matter in which there is got Attribute (size, the color of such as font), the descriptive matter in which there is added in the target promotional picture.
In order to further improve the availability and feasibility of the present invention, alternatively, in one embodiment of the invention, After each figure layer is accordingly superimposed at least on a theme Background, the Picture Generation Method may also include:To warp At least theme Background crossed after overlap-add procedure carries out image procossing, wherein, image procossing includes image rotation processing, And/or image down processing, and/or, image Fuzzy Processing.That is, each figure layer is accordingly being superimposed at least one After on theme Background, image rotation processing can be carried out at least theme Background after overlap-add procedure, and/ Or, image down processing, and/or, image Fuzzy Processing etc..For example, can be by Im.rotate (60) methods by picture rotation 60 Degree, or, by Im.transpose (Image.ROTATE_90) methods by 90 degree of picture rotation, or, it can pass through ImageFilter methods carry out Gaussian Blur processing etc. to picture.
In order that the present invention can clearly be understood by obtaining those skilled in the art, will be exemplified below.
For example, target video can be first obtained, and the target video is cut into by preset ratio by FFmpeg instruments Size (such as 16:9) after video, material of the theme Background as publicity pictures, example are obtained from the target video Such as, as shown in Fig. 2 (a) and Fig. 2 (b), the background picture (i.e. imperial shape picture) inside that background picture and mobile phone behind hand It is the theme Background got from target video.Afterwards, default conception design template is obtained, and extracts the theme and sets Each figure layer of template is counted, then, according to the conception design template, each figure layer is accordingly added to the theme Background On, to generate target promotional picture.For example, as shown in Fig. 2 (a) and Fig. 2 (b), to pass through two different conception design templates And the two target promotional pictures generated, exemplified by shown in such as Fig. 2 (a), if publicity pictures of the generation as shown in Fig. 2 (a), need Want in conception design template corresponding to slave phase by the above figure layer with Cell Phone Design type and with time kind of design Figure layer extract, then by the two map overlays to theme Background, to obtain the publicity pictures shown in Fig. 2 (a) Effect;Exemplified by shown in such as Fig. 2 (b), if the publicity pictures shown in generation Fig. 2 (b), need conception design corresponding to slave phase The figure layer with Cell Phone Design type above and the figure layer with nine grids the unlocking pattern kind of design are extracted in template Out, then by the two map overlays to theme Background, while other pictures can be also superimposed on theme Background, and Other described pictures are cut to generate circular or oval picture, and the theme shown in Fig. 2 (b) inside middle mobile phone is carried on the back Scape figure carries out Gaussian Blur processing, to finally give the effect of the publicity pictures shown in Fig. 2 (b).
Picture Generation Method according to embodiments of the present invention, an at least theme background can be obtained from target video Figure, and default conception design template is obtained, and each figure layer in conception design template is extracted, finally, according to conception design Template, each figure layer is accordingly superimposed at least on a theme Background, to generate target promotional picture.Entirely scheming In the manufacturing process of piece, picture is looked for work as theme Background without artificial active, and pass through default conception design Template can generate various publicity pictures, greatly save human cost, reduce appearance wrong in manufacturing process, Improve producing efficiency.
Corresponding with the Picture Generation Method that above-mentioned several embodiments provide, a kind of embodiment of the invention also provides one kind Photograph creation device, because the picture that photograph creation device provided in an embodiment of the present invention provides with above-mentioned several embodiments generates Method is corresponding, thus foregoing Picture Generation Method embodiment be also applied for the present embodiment offer picture generate dress Put, be not described in detail in the present embodiment.Fig. 3 is the structural representation of photograph creation device according to an embodiment of the invention Figure.As shown in figure 3, the photograph creation device can include:First acquisition module 310, the second acquisition module 320, extraction module 330 and generation module 340.
Specifically, the first acquisition module 310 is used to obtain an at least theme Background from target video.It is specific and Speech, in one embodiment of the invention, the first acquisition module 310 can obtain at least in the way of the time from target video One theme Background;Or an at least theme Background is obtained from target video in the way of key frame.
As a kind of example, first acquisition module 310 can be regarded by multimedia video handling implement FFmpeg from target An at least theme Background is obtained in frequency.
Second acquisition module 320 is used to obtain default conception design template.
Extraction module 330 is used to extract each figure layer in conception design template.
Generation module 340 is used for according to conception design template, and each figure layer is accordingly superimposed into an at least theme back of the body On scape figure, to generate target promotional picture.
In order to improve the availability and feasibility of the present invention, enable to target promotional picture that there is more preferable effect, Alternatively, in one embodiment of the invention, as shown in figure 4, the photograph creation device may also include:3rd acquisition module 350 and add module 360.Wherein, the 3rd acquisition module 350 is used to, when generation module 340 generates target promotional picture, obtain Descriptive matter in which there.Add module 360 is used for the attribute according to default font and font, and descriptive matter in which there is declared added to target In blit piece.
In order to further improve the availability and feasibility of the present invention, alternatively, in one embodiment of the invention, As shown in figure 5, the photograph creation device may also include:Image processing module 370.Wherein, image processing module 370 is used to incite somebody to action After each figure layer is accordingly superimposed at least on a theme Background, at least theme back of the body after overlap-add procedure Scape figure carries out image procossing, wherein, image procossing includes image rotation processing, and/or, image down processing, and/or, image Fuzzy Processing.
Photograph creation device according to embodiments of the present invention, it can be obtained at least from target video by the first acquisition module One theme Background, the second acquisition module obtain default conception design template, and extraction module is extracted in conception design template Each figure layer, each figure layer is accordingly superimposed to an at least theme Background by generation module according to conception design template On, to generate target promotional picture.I.e. in the manufacturing process of whole picture, picture is looked for work as master without artificial active Background is inscribed, and various publicity pictures can be generated by default conception design template, greatlys save manpower Cost, reduce appearance wrong in manufacturing process, improve producing efficiency.
In order to realize above-described embodiment, the invention also provides a kind of terminal device.
Fig. 6 is the structural representation of terminal device according to an embodiment of the invention.As shown in fig. 6, the terminal device 60 can include:Memory 61, processor 62 and it is stored in the computer journey that can be run on memory 61 and on the processor 62 Sequence 63, when processor 62 performs the program 63, realize the Picture Generation Method described in any of the above-described individual embodiment of the present invention.
In order to realize above-described embodiment, the invention also provides a kind of non-transitorycomputer readable storage medium, thereon Computer program is stored with, the picture generation described in any of the above-described individual embodiment of the present invention is realized when the program is executed by processor Method.
In order to realize above-described embodiment, the invention also provides a kind of computer program product, work as computer program product In instruction by computing device when, perform a kind of Picture Generation Method, this method includes:
S110 ', an at least theme Background is obtained from target video.
S120 ', default conception design template is obtained, and extract each figure layer in conception design template.
S130 ', according to conception design template, each figure layer is accordingly superimposed at least on a theme Background, with Generate target promotional picture.
In the description of the invention, it is to be understood that term " first ", " second " are only used for describing purpose, and can not It is interpreted as indicating or implies relative importance or imply the quantity of the technical characteristic indicated by indicating.Thus, define " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In the description of the invention, " multiple " It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of Picture Generation Method, it is characterised in that comprise the following steps:
An at least theme Background is obtained from target video;
Default conception design template is obtained, and extracts each figure layer in the conception design template;
According to the conception design template, each figure layer is accordingly superimposed to it is described at least on a theme Background, To generate target promotional picture.
2. Picture Generation Method as claimed in claim 1, it is characterised in that described that an at least master is obtained from target video Background is inscribed, including:
In the way of the time from the target video obtain described in an at least theme Background;
Or in the way of key frame from the target video obtain described in an at least theme Background.
3. Picture Generation Method as claimed in claim 1, it is characterised in that described when generating the target promotional picture Method also includes:
Obtain descriptive matter in which there;
According to the attribute of default font and the font, the descriptive matter in which there is added in the target promotional picture.
4. Picture Generation Method as claimed in claim 1, it is characterised in that each figure layer is accordingly being superimposed to institute After stating at least on a theme Background, methods described also includes:
Image procossing is carried out at least theme Background after overlap-add procedure, wherein, described image processing includes figure As rotation processing, and/or, image down processing, and/or, image Fuzzy Processing.
5. Picture Generation Method as claimed in claim 1, it is characterised in that described that an at least master is obtained from target video Background is inscribed, including:
An at least theme Background is obtained from target video by multimedia video handling implement FFmpeg.
A kind of 6. photograph creation device, it is characterised in that including:
First acquisition module, for obtaining an at least theme Background from target video;
Second acquisition module, for obtaining default conception design template;
Extraction module, for extracting each figure layer in the conception design template;
Generation module, for according to the conception design template, each figure layer being accordingly superimposed to described at least one On theme Background, to generate target promotional picture.
7. photograph creation device as claimed in claim 6, it is characterised in that first acquisition module is specifically used for:
In the way of the time from the target video obtain described in an at least theme Background;
Or in the way of key frame from the target video obtain described in an at least theme Background.
8. a kind of terminal device, it is characterised in that including memory, processor and storage on a memory and can be on a processor The computer program of operation, it is characterised in that during the computing device described program, realize as any in claim 1 to 5 Described Picture Generation Method.
9. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the program quilt The Picture Generation Method as described in any in claim 1 to 5 is realized during computing device.
10. a kind of computer program product, when the instruction in the computer program product is by computing device, perform one kind Picture Generation Method, methods described include:
An at least theme Background is obtained from target video;
Default conception design template is obtained, and extracts each figure layer in the conception design template;
According to the conception design template, each figure layer is accordingly superimposed to it is described at least on a theme Background, To generate target promotional picture.
CN201710568762.5A 2017-07-13 2017-07-13 Picture generation method and device and terminal equipment Pending CN107392974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710568762.5A CN107392974A (en) 2017-07-13 2017-07-13 Picture generation method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710568762.5A CN107392974A (en) 2017-07-13 2017-07-13 Picture generation method and device and terminal equipment

Publications (1)

Publication Number Publication Date
CN107392974A true CN107392974A (en) 2017-11-24

Family

ID=60339589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710568762.5A Pending CN107392974A (en) 2017-07-13 2017-07-13 Picture generation method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN107392974A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967341A (en) * 2017-12-08 2018-04-27 广东欧珀移动通信有限公司 A kind of image display method, terminal device and storage medium
CN108924645A (en) * 2018-06-25 2018-11-30 北京金山安全软件有限公司 Theme generation method and device and electronic equipment
CN109215007A (en) * 2018-09-21 2019-01-15 维沃移动通信有限公司 A kind of image generating method and terminal device
CN109376735A (en) * 2018-08-31 2019-02-22 百度在线网络技术(北京)有限公司 Identity information extracting method, device, electronic equipment and storage medium
CN109408478A (en) * 2018-11-06 2019-03-01 北京达佳互联信息技术有限公司 Picture Generation Method, device, terminal and storage medium
CN109584149A (en) * 2018-11-28 2019-04-05 东软集团股份有限公司 Image processing method, device, equipment and computer readable storage medium
CN109808406A (en) * 2019-04-09 2019-05-28 广州真迹文化有限公司 The online method for mounting of painting and calligraphy pieces, system and storage medium
CN110543345A (en) * 2019-08-26 2019-12-06 Oppo广东移动通信有限公司 Wallpaper generation method and device, storage medium and electronic equipment
CN111768470A (en) * 2019-06-20 2020-10-13 北京京东尚科信息技术有限公司 Picture generation method and device, computer equipment and computer readable storage medium
CN112004164A (en) * 2020-07-02 2020-11-27 中山大学 Automatic generation method of video poster
CN113986407A (en) * 2020-07-27 2022-01-28 华为技术有限公司 Cover generation method and device and computer storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050568A (en) * 2013-03-11 2014-09-17 阿里巴巴集团控股有限公司 Method and system for commodity picture displaying
CN104899826A (en) * 2015-06-23 2015-09-09 天津华永无线科技有限公司 Method of manufacturing mobile phone theme based on PSD analytic technique
CN105608715A (en) * 2015-12-17 2016-05-25 广州华多网络科技有限公司 Online group shot method and system
CN105678581A (en) * 2016-01-01 2016-06-15 广州筷子信息科技有限公司 Method and system for automatic typesetting of advertisement
CN105677325A (en) * 2015-12-29 2016-06-15 努比亚技术有限公司 Mobile terminal and image processing method
CN106210586A (en) * 2016-08-16 2016-12-07 青岛海信移动通信技术股份有限公司 Method for processing video frequency and device
US20170032554A1 (en) * 2015-07-29 2017-02-02 Adobe Systems Incorporated Modifying a graphic design to match the style of an input design
CN106777077A (en) * 2016-12-13 2017-05-31 网易(杭州)网络有限公司 The generation method and device of webpage

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050568A (en) * 2013-03-11 2014-09-17 阿里巴巴集团控股有限公司 Method and system for commodity picture displaying
CN104899826A (en) * 2015-06-23 2015-09-09 天津华永无线科技有限公司 Method of manufacturing mobile phone theme based on PSD analytic technique
US20170032554A1 (en) * 2015-07-29 2017-02-02 Adobe Systems Incorporated Modifying a graphic design to match the style of an input design
CN105608715A (en) * 2015-12-17 2016-05-25 广州华多网络科技有限公司 Online group shot method and system
CN105677325A (en) * 2015-12-29 2016-06-15 努比亚技术有限公司 Mobile terminal and image processing method
CN105678581A (en) * 2016-01-01 2016-06-15 广州筷子信息科技有限公司 Method and system for automatic typesetting of advertisement
CN106210586A (en) * 2016-08-16 2016-12-07 青岛海信移动通信技术股份有限公司 Method for processing video frequency and device
CN106777077A (en) * 2016-12-13 2017-05-31 网易(杭州)网络有限公司 The generation method and device of webpage

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张建国: "《现代教育技术 理论与实践》", 31 August 2011 *
胖子19900912: "ffmpeg视音频截取与静态图生成", 《百度文库 地址:HTTPS://WENKU.BAIDU.COM/VIEW/FF10BA1B561252D381EB6E6F.HTML?FROM=SEARCH》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967341A (en) * 2017-12-08 2018-04-27 广东欧珀移动通信有限公司 A kind of image display method, terminal device and storage medium
CN108924645A (en) * 2018-06-25 2018-11-30 北京金山安全软件有限公司 Theme generation method and device and electronic equipment
CN109376735A (en) * 2018-08-31 2019-02-22 百度在线网络技术(北京)有限公司 Identity information extracting method, device, electronic equipment and storage medium
CN109215007A (en) * 2018-09-21 2019-01-15 维沃移动通信有限公司 A kind of image generating method and terminal device
CN109408478A (en) * 2018-11-06 2019-03-01 北京达佳互联信息技术有限公司 Picture Generation Method, device, terminal and storage medium
CN109584149B (en) * 2018-11-28 2023-03-07 东软集团股份有限公司 Image processing method, device, equipment and computer readable storage medium
CN109584149A (en) * 2018-11-28 2019-04-05 东软集团股份有限公司 Image processing method, device, equipment and computer readable storage medium
CN109808406A (en) * 2019-04-09 2019-05-28 广州真迹文化有限公司 The online method for mounting of painting and calligraphy pieces, system and storage medium
CN111768470A (en) * 2019-06-20 2020-10-13 北京京东尚科信息技术有限公司 Picture generation method and device, computer equipment and computer readable storage medium
CN110543345A (en) * 2019-08-26 2019-12-06 Oppo广东移动通信有限公司 Wallpaper generation method and device, storage medium and electronic equipment
CN112004164A (en) * 2020-07-02 2020-11-27 中山大学 Automatic generation method of video poster
CN112004164B (en) * 2020-07-02 2023-02-21 中山大学 Automatic video poster generation method
CN113986407A (en) * 2020-07-27 2022-01-28 华为技术有限公司 Cover generation method and device and computer storage medium

Similar Documents

Publication Publication Date Title
CN107392974A (en) Picture generation method and device and terminal equipment
CN110266971B (en) Short video making method and system
Manovich Avant-garde as Software
Sýkora et al. Adding depth to cartoons using sparse depth (in) equalities
CN108961349A (en) A kind of generation method, device, equipment and the storage medium of stylization image
CN111986127B (en) Image processing method and device, computer equipment and storage medium
CN106408631A (en) Three-dimensional macro display method and system
CN114066718A (en) Image style migration method and device, storage medium and terminal
Lopez et al. Modeling complex unfoliaged trees from a sparse set of images
CN107179920A (en) Network engine starts method and device
CN109710258A (en) WeChat applet interface generation method and device
CN109816743A (en) Generate the method and terminal device of identification pattern
Xiao et al. Vismantic: Meaning-making with Images.
EP1932119A2 (en) System and method for image customization
CN111694563B (en) Visual design system and method for user interface mode
CN106327539A (en) Image reconstruction method and device based on example
CN106155508A (en) A kind of information processing method and client
CN114004772A (en) Image processing method, image synthesis model determining method, system and equipment
Vonikakis et al. Morphset: Augmenting categorical emotion datasets with dimensional affect labels using face morphing
CN116954605A (en) Page generation method and device and electronic equipment
CN116129126A (en) Construction method of segmentation prediction model, picture semantic segmentation labeling method and device
CN103970745A (en) Method and system for generating cartoon works by network writings in real time
CN114419177A (en) Personalized expression package generation method and system, electronic equipment and readable medium
CN117413291A (en) Time-of-day gift and design generated using a digital product collaboration platform
CN114037644A (en) Artistic digital image synthesis system and method based on generation countermeasure network

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124