CN106708850A - Image template-based image generation method and apparatus - Google Patents
Image template-based image generation method and apparatus Download PDFInfo
- Publication number
- CN106708850A CN106708850A CN201510777584.8A CN201510777584A CN106708850A CN 106708850 A CN106708850 A CN 106708850A CN 201510777584 A CN201510777584 A CN 201510777584A CN 106708850 A CN106708850 A CN 106708850A
- Authority
- CN
- China
- Prior art keywords
- edited
- image
- image template
- region
- operating parameter
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Abstract
The invention discloses an image template-based image generation method and apparatus. An embodiment of the method comprises the steps of receiving operation of a user; presenting a to-be-edited image template based on a situation that the operation meets a first predetermined condition; determining an attribute value of a to-be-edited region of the to-be-edited image template corresponding to the operation; and generating an image based on the attribute value. According to the method and the apparatus, the user can perform rich image expression on the premise of occupying relatively few storage spaces.
Description
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, especially relates to
And image generating method and device based on image template.
Background technology
In IM (Instance Message, instant messaging), expression is used as the one of information reception and registration
Kind of mode, is increasingly being applied in IM, and has become indispensable in IM instruments
A part.
In existing IM products, usually using picture or animation as expression, expression can be with
When application is issued, the built-in or later stage is issued in application, is that user uses.
However, in the prior art, user is only capable of by downloading IM providers or third party's service
The expression bag that business provides uses the expression for wherein including.If wanting to use more abundant table
Feelings, it is necessary to realized by downloading new expression bag.With the increase of expression bag, certainly will be by one
Determining degree ground increases the burden of terminal storage amount.
The content of the invention
The purpose of the application is to propose a kind of improved image generating method based on image template
And device solves the technical problem that background section above is mentioned.
In a first aspect, this application provides a kind of image generating method based on image template, should
Method includes:Receive the operation of user;First predetermined condition is met based on operation, is presented and is waited to compile
Collect image template;It is determined that the attribute in the region to be edited of image template to be edited corresponding with operation
Value;And based on attribute value generation image.
In certain embodiments, operation includes the first operation to image template to be edited, first
Predetermined condition include it is following at least one:The click duration of the first operation is more than or equal to the
One scheduled time;The click force of the first operation is more than or equal to the first predetermined value;And the
Number of clicks in the unit interval of one operation is more than or equal to the first pre-determined number.
In certain embodiments, it is determined that the area to be edited of image template to be edited corresponding with operation
The property value in domain includes:It is determined that the first of image template to be edited corresponding with the first operation waits to compile
Collect region;Determine the first operating parameter of the first operation;And based on the first operating parameter, really
The first property value in fixed first region to be edited.
In certain embodiments, the first operating parameter includes:First operation click duration and/
Or first operation click force.
In certain embodiments, operation also includes the of the terminal to image template to be edited is presented
Two operations, it is determined that the property value in the region to be edited of image template to be edited corresponding with operation is also
Including:Operated to being presented the second of the terminal of image template to be edited in response to user, it is determined that eventually
The attitude at end;Attitude based on terminal determines the second operating parameter of the second operation;And be based on
Second operating parameter, determines second property value in the second region to be edited.
In certain embodiments, the second operation includes rotation process;Second operating parameter includes rotation
Gyration and/or angular velocity of rotation.
In certain embodiments, included based on attribute value generation image:Based on the first area to be edited
The first property value in domain and/or the second attribute value generation image in the second region to be edited.
In certain embodiments, method also includes:In response to user to the 3rd of image operation with
The matching of scheduled operation, image is sent to server.
Second aspect, this application provides a kind of video generation device based on image template, should
Device includes:Receiver module, is configured to receive the operation of user;Module is presented, configuration is used
In the first predetermined condition is met based on operation, image template to be edited is presented;Determining module, matches somebody with somebody
Put for determining the property value with the region to be edited for operating corresponding image template to be edited;With
And generation module, it is configured to based on attribute value generation image.
In certain embodiments, operation includes the first operation to image template to be edited, first
Predetermined condition include it is following at least one:The click duration of the first operation is more than or equal to the
One scheduled time;The click force of the first operation is more than or equal to the first predetermined value;And the
Number of clicks in the unit interval of one operation is more than or equal to the first pre-determined number.
In certain embodiments, determining module is further configured to:It is determined that right with the first operation
First region to be edited of the image template to be edited answered;Determine the first operation ginseng of the first operation
Number;And based on the first operating parameter, determine the first property value in the first region to be edited.
In certain embodiments, the first operating parameter includes:First operation click duration and/
Or first operation click force.
In certain embodiments, operation also includes the of the terminal to image template to be edited is presented
Two operations, determining module is further configured to:In response to user to image mould to be edited is presented
Second operation of the terminal of plate, determines the attitude of terminal;Attitude based on terminal determines the second behaviour
The second operating parameter made;And based on the second operating parameter, determine the second region to be edited
Second property value.
In certain embodiments, the second operation includes rotation process;The operating parameter of the second operation
Including the anglec of rotation and/or angular velocity of rotation.
In certain embodiments, generation module is further configured to:Based on the first area to be edited
The first property value in domain and/or the second attribute value generation image in the second region to be edited.
In certain embodiments, device also includes:Sending module, is configured in response to user
To the 3rd operation of image and matching for scheduled operation, image is sent to server.
Image generating method and device based on image template that the application is provided, based on user couple
The selection operation of image template to be edited meets predetermined condition, and the image template to be edited is presented.
Additionally, the edit operation based on user to image template to be edited, determines image template to be edited
Region to be edited corresponding with edit operation property value, and based on attribute value generation image.
So, user can realize abundant figure on the premise of less memory space is taken
As expression, the memory space of electronic equipment is saved.
Brief description of the drawings
Retouched with reference to the detailed of being made to non-limiting example of being made of the following drawings by reading
State, other features, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is one embodiment of the image generating method based on image template according to the application
Flow chart;
During Fig. 3 is the image generating method based on image template of Fig. 2, it is determined that corresponding with operation
Image template to be edited region to be edited property value indicative flowchart;
During Fig. 4 is the image generating method based on image template according to the application, terminal attitude
Determination mode schematic diagram;
Fig. 5 is an applied field of the image generating method based on image template according to the application
The schematic diagram of scape;
Fig. 6 is one embodiment of the video generation device based on image template according to the application
Structure chart;
Fig. 7 is adapted for for realizing the terminal device of the embodiment of the present application or the computer of server
The structural representation of system.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is appreciated that
, specific embodiment described herein is used only for explaining related invention, rather than to the hair
Bright restriction.It also should be noted that, for the ease of description, be illustrate only in accompanying drawing with
About the related part of invention.
It should be noted that in the case where not conflicting, embodiment and embodiment in the application
In feature can be mutually combined.Describe this in detail below with reference to the accompanying drawings and in conjunction with the embodiments
Application.
Fig. 1 shows the image generating method or base based on image template that can apply the application
In the exemplary system architecture 100 of the embodiment of the video generation device of image template.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103,
Network 104 and server 105.Network 104 is used in the and of terminal device 101,102,103
The medium of communication link is provided between server 105.Network 104 can include various connection classes
Type, such as wired, wireless communication link or fiber optic cables etc..
User can be with using terminal equipment 101,102,103 by network 104 and server 105
Interaction, to receive or send message etc..Can be provided with terminal device 101,102,103
Various telecommunication customer end applications, such as immediate communication tool, social platform software, shopping class are answered
With, searching class application, mailbox client etc..
Terminal device 101,102,103 can be with display screen (for example, touch display screen)
Various electronic equipments, including but not limited to smart mobile phone, panel computer, E-book reader,
(Moving Picture Experts Group Audio Layer III, dynamic image is special for MP3 player
Family's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio
Layer IV, dynamic image expert's compression standard audio aspect 4) player, portable meter on knee
Calculation machine and desktop computer etc..
Server 105 can be to provide the server of various services, such as receiving terminal apparatus
101st, 102,103 send information (including but not limited to word, picture, video etc.) and
The IMU that the graph text information is forwarded to the destination that terminal device 101,102,103 is specified
Inquiry server.Additionally, the instant communication server can also receive what other terminals were sent to
Information, and these information are forwarded to terminal device 101,102,103.
It should be noted that the generation of the image based on image template that the embodiment of the present application is provided
Method is general to be performed by terminal device 101,102,103, correspondingly, based on image template
Video generation device is generally positioned in terminal device 101,102,103.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only to illustrate
Property.According to needs are realized, can have any number of terminal device, network and server.
With continued reference to Fig. 2, it illustrates the generation of the image based on image template according to the application
The flow 200 of one embodiment of method.The described image generating method based on image template,
Comprise the following steps:
Step 210, receives the operation of user.
In the present embodiment, the electronics thereon of the image generating method operation based on image template
Equipment (such as the terminal device 101,102,103 shown in Fig. 1) can be by thereon it is defeated
Enter/output module receives the operation of user.Herein, input/input module can for example include
But mouse, keyboard, touch-screen, writing input board, sound acquisition module etc. are not limited to, and
Other currently known or exploitation in the future input/output modules.
Step 220, judges whether the operation of user input meets the first predetermined condition.
Step 230, if operation meets the first predetermined condition, is presented image template to be edited.
In some optional implementations, the intention of the operation of user input is probably that selection is treated
Editor image template, and to select image template to be edited edited accordingly.Or,
The intention of the operation of user input is probably to be selected from the multiple images template of electronic equipment storage
One or more, and directly send to server these image templates.
Therefore, in these optional implementations, can be by judging the operation of user input
Whether meet the first predetermined condition to determine the intention of user's operation, and then perform with user's
The corresponding action of the intention.
In application scenes, the operation of user input for example can be phonetic order.At this
In a little application scenarios, the operation of the image generating method based on image template of the present embodiment is thereon
Electronic equipment can receive the phonetic order of user input, and the phonetic order is parsed,
For example, the word corresponding with the phonetic order can be resolved to.If the word bag that parsing is obtained
The mark of the image template containing the storage region for being stored in the electronic equipment is (for example, image template
Numbering and/or image template title) and keyword set in advance (for example, " editor "
Deng), then it is believed that the phonetic order meets the first predetermined condition, now, can present and the language
Sound instructs corresponding image template to be edited, for example, the image template to be edited can be presented
A certain region on to the display screen of the electronic equipment.If on the contrary, the word that parsing is obtained is not
Comprising keyword set in advance, then any image template is not presented for electronic equipment.Now, electricity
Sub- equipment can based on the phonetic order meet other predetermined conditions come pair with the phonetic order pair
The image template answered performs other operations, for example, can be by the image template directly to server
Send.
Step 240, it is determined that the category in the region to be edited of image template to be edited corresponding with operation
Property value.
In some optional implementations, different operations can correspond to image template to be edited
In each different region to be edited;Or, different operations can also correspond to image to be edited
Identical region to be edited in template;Or, different operations can have a part of identical
Region to be edited and a part of mutually different region to be edited.
In these optional implementations, it is clear that identical operation can be to image to be edited
Template produces identical edit effect, and different operations can be produced to image template to be edited
Similar and different edit effect.In other words, to image template to be edited perform operation A and
After performing the operation B different from A, it is possible to image template identical area to be edited to be edited
Edlin is entered in domain, and obtains identical property value, it is also possible to different to image template to be edited
Region to be edited enter edlin, and obtain different property values.
In some optional implementations, property value can for example include image template to be edited
Region to be edited some or certain it is several can quantitative expression feature, for example, property value can be with
It is brightness, the color in the region to be edited of image, or, can also be being somebody's turn to do in image
The physical dimension of a certain object in region to be edited.
For example, in application scenes, image template to be edited can for example include face.
Operation based on user, it may be determined that the region to be edited in the facial image, for example, eyes,
Nose and/or mouth etc..In these application scenarios, when region to be edited is that " eyes " are corresponding
During region, the property value in the region to be edited for example can be the physical dimension of eyes, or also
It can be the position of eyeball relative to whole face etc..
Step 250, based on attribute value generation image.
Due in step 240, the region to be edited of image template to be edited being determined based on operation,
And the property value in this or these region to be edited, in this step, can be according to this
A little property values carry out " modification " to the image template to be edited, corresponding with the operation so as to obtain
Image.
In some optional implementations, the operation of user can for example include to figure to be edited
As the first operation of template.In other words, user directly can be carried out to image template to be edited
Operation, to realize its expected purpose.For example, user can present treating for multiple candidates
Edit on the touch-screen of image template, by the touch of the image template to be edited to a certain candidate,
To realize the selection to the image template to be edited of the candidate, if the touch operation meet it is a certain
Individual or certain several default condition (i.e. the first predetermined condition), then the image mould to be edited of the candidate
Plate can be presented on the touchscreen as image template to be edited.
In these optional implementations, the first predetermined condition for example can include it is following at least
One:The click duration of the first operation was more than or equal to for first scheduled time;First operation
Click force be more than or equal to the first predetermined value;And first operation unit interval in
Number of clicks is more than or equal to the first pre-determined number.
In application scenes, the fortune of the image generating method based on image template of the present embodiment
The sensing module for gathering user's operation can be provided with row electronic equipment thereon, this
The operation that sensing modules can be with identifying user to the electronic equipment a bit, and can gather and these operations
Corresponding quantizating index.These quantizating index for example can include the click time, click force and
At least one in the number of clicks of unit interval.When these quantizating index of the first operation meet
During default value, image template to be edited just can be on an electronic device presented so that Yong Huke
To carry out editing and processing to the image template to be edited by further operation.
In some optional implementations, the generation of the image based on image template of the present embodiment
In method, the region to be edited of the determination image template to be edited corresponding with operation of step 240
Property value can be realized by flow 300 as shown in Figure 3.
Specifically, in the step 310, it is determined that image mould to be edited corresponding with the first operation
First region to be edited of plate.
In application scenes, the first operation for example can be the point to image template to be edited
Hit operation.In these application scenarios, the corresponding image mould to be edited of clicking operation can be preset
The region to be edited of plate.When corresponding sensing module detects clicking operation, just can determine
These regions to be edited corresponding with clicking operation.
In step 320, the first operating parameter of the first operation is determined.Herein, the first behaviour
Making parameter can for example include the click force for clicking on duration and/or the first operation of the first operation.
In a step 330, based on the first operating parameter, the first of the first region to be edited is determined
Property value.
In some optional implementations, operating parameter can be a numerical value, and property value
Can also be a numerical value, therefore, it can pre-set the numerical value and property value of operating parameter
Corresponding relation between numerical value.So the behaviour that the user for being detected by sensing module is operated
Make the numerical value of parameter, just can obtain corresponding property value.
In some optional implementations, the operation of user can also be including to be edited to presenting
Second operation of the terminal of image template.In the application scenes of these optional implementations
In, user only can be operated to terminal without specifically being carried out to image template to be edited
Operation, just can correspondingly edit the image template to be edited.
In these optional implementations, the generation of the image based on image template of the present embodiment
In method, the region to be edited of the determination image template to be edited corresponding with operation of step 240
Property value can further include following flow:
Step 340, operates in response to user to being presented the second of the terminal of image template to be edited,
Determine the attitude of terminal.For example, terminal can determine terminal using attitude transducer thereon
Attitude.Herein, " attitude " for example can be that can characterize the phase between the terminal and ground level
To angular relationship.
As shown in figure 4, in the case where user operates, terminal 410 is any in x-axis, y-axis and z-axis
At least one axle rotation angle be used equally to characterize terminal attitude.
Return with continued reference to Fig. 3, in step 350, the attitude based on terminal determines the second behaviour
The second operating parameter made.
In some optional implementations, the second operation can for example include rotation process.
In these optional implementations, the second operating parameter can for example include the anglec of rotation and/or rotation
Tarnsition velocity.Herein, the anglec of rotation can for example refer to, be presented in image template to be edited
During terminal is edited for user, the differential seat angle between the reference attitude and end attitude of terminal.
Differential seat angle for example can specifically include in coordinate system as shown in Figure 4 that terminal rotates around x-axis
Differential seat angle, the differential seat angle rotated around y-axis and/or the differential seat angle rotated around z-axis.
In step 360, based on the second operating parameter, the second of the second region to be edited is determined
Property value.
In some optional implementations, the second region to be edited corresponding with the second operation can
Operate corresponding first region to be edited identical, entirely different or part with and with first
It is identical.
Although it should be noted that in Fig. 3, step 310~step 330 is in step 340~step
Before 360, however, the sequencing relation between the step is only schematical.In tool
In the application scenarios of body, correspondingly can only be performed according to the concrete operations of user step 310~
Step 330, or step 340~step 360 is only performed, or first carry out step 340~step
360 perform step 310~step 330 again, or perform step 310~step 330 and step simultaneously
Rapid 340~step 360.
In some optional implementations, the generation of the image based on image template of the present embodiment
In method, step 250 can further include based on attribute value generation image:Based on
The first property value in one region to be edited and/or second attribute value generation in the second region to be edited
Image.
In these optional implementations, user can be by image template to be edited
One operation and/or the second operation to the terminal of image template to be edited is presented accordingly are treated to change
The property value of editing area, and then generate image expected from user based on these property values.
In some optional implementations, the generation of the image based on image template of the present embodiment
Method can also include:Step 260, in response to user to the 3rd operation of image and predetermined behaviour
The matching of work, image is sent to server.
In the application scenes of these optional implementations, for example, user can be to aobvious
Show that the image in the touch display screen of terminal enters line slip, sent to clothes the image with reaching
The purpose of business device.Detection module in terminal can detect the slide glide direction and/
Or the distance slided judge the slide whether with predetermined glide direction and/or slip
Distance matching, and then judge whether user expects to send the image to server.
With continued reference to Fig. 5, Fig. 5 is the generation of the image based on image template according to the present embodiment
One schematic diagram of the application scenarios of method.
On the touch-screen of the terminal as shown in reference 510, multiple facial expression images are shown.
User have selected the facial expression image 511 for representing and smiling by way of finger is clicked on.If user
The time of click exceeded the dynamics that Preset Time and/or user click on exceeded default dynamics and/
Or user clicks on the number of times of the facial expression image 511 within the unit interval and exceeded pre-determined number, then
The facial expression image 511 can be presented on the touch-screen of terminal as image template to be edited, for example,
On the touch-screen of the terminal being presented on as shown in reference 520.
Then, user can continue to operate to the image template to be edited 521, to edit its certain
One or certain several region to be edited.For example, can be by the size of click force and/or click
The length of duration is realized to the size of mouth in image template to be edited 521 and/or eyebrow
The modification of degree of crook.
Then, after user completes editor, can will edit the image 531 for obtaining and pass through terminal 530
Send to server.The image 531 can be forwarded to the object that user specifies by server again.
Although illustrated only by taking clicking operation as an example in Fig. 5 the embodiment of the present application based on image
The implementation process of the image generating method of template, but the process is only illustrative.This area skill
Art personnel by rotation to terminal etc. it is contemplated that for example can also be operated come to figure to be edited
As template realizes similar edit effect.
The method that above-described embodiment of the application is provided passes through reality of the user to image template to be edited
When edit and generate image, can be effectively saved the storage resource of terminal, at the same time it can also
Realize abundant image expression.
With further reference to Fig. 6, as the realization to method shown in Fig. 2, this application provides one
Kind based on image template video generation device one embodiment 600, the device embodiment with
Embodiment of the method shown in Fig. 2 is corresponding, and the device specifically can apply to various electronic equipments
In.
As shown in fig. 6, the video generation device based on image template may include receiver module 610,
Module 620, determining module 630 and generation module 640 is presented.
Wherein, receiver module 610 is configurable to receive the operation of user.
Module 620 is presented to be configurable to meet the first predetermined condition based on operation, presents and waits to compile
Collect image template.
Determining module 630 is configurable to determine to be treated with operation corresponding image template to be edited
The property value of editing area.
Generation module 640 is configurable to based on attribute value generation image.
In some optional implementations, operation can for example include to image template to be edited
First operation, the first predetermined condition can include it is following at least one:The click of the first operation
Duration was more than or equal to for first scheduled time;The click force of the first operation is more than or equal to
First predetermined value;And first operation unit interval in number of clicks more than or equal to the
One pre-determined number.
In some optional implementations, determining module 630 can further be configured to:Really
First region to be edited of fixed image template to be edited corresponding with the first operation;Determine the first behaviour
The first operating parameter made;And based on the first operating parameter, determine the first region to be edited
First property value.
In some optional implementations, the first operating parameter can for example include:First behaviour
The click force for clicking on duration and/or the first operation of work.
In some optional implementations, operation can also be included to image mould to be edited is presented
Second operation of the terminal of plate.In these optional implementations, determining module 630 may be used also
To be further configured to:In response to user to being presented the second of the terminal of image template to be edited
Operation, determines the attitude of terminal;Attitude based on terminal determines the second operation ginseng of the second operation
Number;And based on the second operating parameter, determine second property value in the second region to be edited.
In some optional implementations, the second operation can include rotation process;Second behaviour
Making parameter can include the anglec of rotation and/or angular velocity of rotation.
In some optional implementations, generation module 640 can further be configured to:
Second attribute of first property value and/or the second region to be edited based on the first region to be edited
Value generation image.
In some optional implementations, the generation of the image based on image template of the present embodiment
Device can also include sending module (not shown), be configured in response to user to image
The 3rd operation matched with scheduled operation, image sent to server.
It will be understood by those skilled in the art that the above-mentioned video generation device based on image template
600 also include some other known features, such as processor, memory etc., in order to unnecessary
Obscure embodiment of the disclosure, these known structures are not shown in FIG. 6.
Below with reference to Fig. 7, it illustrates the terminal device being suitable to for realizing the embodiment of the present application
Or the structural representation of the computer system 700 of server.
As shown in fig. 7, computer system 700 includes CPU (CPU) 701, its
Can be according to program of the storage in read-only storage (ROM) 702 or from storage part 708
The program that is loaded into random access storage device (RAM) 703 and perform various appropriate actions
And treatment.In RAM 703, the system that is also stored with 700 operates required various program sums
According to.CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input
/ output (I/O) interface 705 is also connected to bus 704.
I/O interfaces 705 are connected to lower component:Including the importation 706 of keyboard, mouse etc.;
Including cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.
Output par, c 707;Storage part 708 including hard disk etc.;And including such as LAN card,
The communications portion 709 of the NIC of modem etc..Communications portion 709 is via such as
The network of internet performs communication process.Driver 710 is also according to needing to be connected to I/O interfaces
705.Detachable media 711, such as disk, CD, magneto-optic disk, semiconductor memory etc.,
Be arranged on driver 710 as needed, in order to the computer program that reads from it according to
Needs are mounted into storage part 708.
Especially, in accordance with an embodiment of the present disclosure, the process above with reference to flow chart description can be with
It is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer journey
Sequence product, it includes being tangibly embodied in the computer program on machine readable media, the meter
Calculation machine program bag is containing the program code for the method shown in execution flow chart.In such implementation
In example, the computer program can be downloaded and installed by communications portion 709 from network,
And/or be mounted from detachable media 711.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application,
The architectural framework in the cards of method and computer program product, function and operation.This point
On, each square frame in flow chart or block diagram can represent module, program segment or a code
A part, a part for the module, program segment or code is used for comprising one or more
Realize the executable instruction of the logic function of regulation.It should also be noted that at some as replacement
In realization, the function of being marked in square frame can also be sent out with different from the order marked in accompanying drawing
It is raw.For example, two square frames for succeedingly representing can essentially be performed substantially in parallel, they
Sometimes can also perform in the opposite order, this is depending on involved function.It is also noted that
It is, the square frame in each square frame and block diagram and/or flow chart in block diagram and/or flow chart
Combination, can be realized with the function of regulation or the special hardware based system of operation is performed,
Or can be realized with the combination of computer instruction with specialized hardware.
Be described in involved unit in the embodiment of the present application can by way of software reality
It is existing, it is also possible to be realized by way of hardware.Described unit can also be arranged on treatment
In device, for example, can be described as:A kind of processor include receiver module, present module, really
Cover half block and generation module.Wherein, the title of these modules is not constituted under certain conditions
To module restriction in itself, for example, receiver module is also described as " receiving user's
The module of operation ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media,
The nonvolatile computer storage media can be described in above-described embodiment included in device
Nonvolatile computer storage media;Can also be individualism, it is non-in terminal without allocating into
Volatile computer storage medium.Above-mentioned nonvolatile computer storage media be stored with one or
Person's multiple program, when one or more of programs are performed by an equipment so that described
Equipment:Receive the operation of user;First predetermined condition is met based on operation, figure to be edited is presented
As template;It is determined that the property value in the region to be edited of image template to be edited corresponding with operation;
And based on attribute value generation image.
Above description is only the preferred embodiment of the application and saying to institute's application technology principle
It is bright.It will be appreciated by those skilled in the art that invention scope involved in the application, does not limit
In the technical scheme of the particular combination of above-mentioned technical characteristic, while should cover not departing from yet
In the case of the inventive concept, it is combined by above-mentioned technical characteristic or its equivalent feature
And other technical schemes for being formed.Such as features described above and (but not limited to) disclosed herein
The technical scheme that technical characteristic with similar functions is replaced mutually and formed.
Claims (16)
1. a kind of image generating method based on image template, it is characterised in that including:
Receive the operation of user;
First predetermined condition is met based on the operation, image template to be edited is presented;
It is determined that the attribute in the region to be edited of the image template to be edited corresponding with the operation
Value;And
Based on the attribute value generation image.
2. method according to claim 1, it is characterised in that the operation is included to institute
State image template to be edited first operation, first predetermined condition include it is following at least one:
The click duration of first operation was more than or equal to for first scheduled time;
The click force of first operation is more than or equal to the first predetermined value;And
Number of clicks in the unit interval of first operation is more than or equal to first predetermined time
Number.
3. method according to claim 2, it is characterised in that the determination and the behaviour
The property value for making the region to be edited of the corresponding image template to be edited includes:
It is determined that the first area to be edited of the image template to be edited corresponding with the described first operation
Domain;
Determine the first operating parameter of first operation;And
Based on first operating parameter, the first property value in the described first region to be edited is determined.
4. method according to claim 3, it is characterised in that first operating parameter
Including:
The click force for clicking on duration and/or first operation of first operation.
5. the method according to claim 2-4 any one, it is characterised in that the behaviour
Make also to include the second operation of the terminal to the image template to be edited is presented, the determination with
The property value in the region to be edited of the corresponding image template to be edited of the operation also includes:
Operated to being presented the second of the terminal of the image template to be edited in response to the user,
Determine the attitude of the terminal;
Attitude based on the terminal determines the second operating parameter of second operation;And
Based on second operating parameter, second property value in the described second region to be edited is determined.
6. method according to claim 5, it is characterised in that:
Second operation includes rotation process;
Second operating parameter includes the anglec of rotation and/or angular velocity of rotation.
7. method according to claim 5, it is characterised in that described based on the attribute
Value generation image includes:
The first property value and/or described second based on the described first region to be edited are waited to compile
Collect the second attribute value generation described image in region.
8. the method according to claim 1-4 any one, it is characterised in that the side
Method also includes:
In response to the user to the 3rd operation of described image and matching for scheduled operation, by institute
Image is stated to send to server.
9. a kind of video generation device based on image template, it is characterised in that including:
Receiver module, is configured to receive the operation of user;
Module is presented, is configured to meet the first predetermined condition based on the operation, present and wait to compile
Collect image template;
Determining module, is configured to determine the image template to be edited corresponding with the operation
Region to be edited property value;And
Generation module, is configured to based on the attribute value generation image.
10. device according to claim 9, it is characterised in that it is right that the operation includes
First operation of the image template to be edited, first predetermined condition includes following at least one
:
The click duration of first operation was more than or equal to for first scheduled time;
The click force of first operation is more than or equal to the first predetermined value;And
Number of clicks in the unit interval of first operation is more than or equal to first predetermined time
Number.
11. devices according to claim 10, it is characterised in that the determining module is entered
One step is configured to:
It is determined that the first area to be edited of the image template to be edited corresponding with the described first operation
Domain;
Determine the first operating parameter of first operation;And
Based on first operating parameter, the first property value in the described first region to be edited is determined.
12. devices according to claim 11, it is characterised in that the first operation ginseng
Number includes:
The click force for clicking on duration and/or first operation of first operation.
13. device according to claim 10-12 any one, it is characterised in that institute
Stating operation also includes the second operation of the terminal to the image template to be edited is presented, described true
Cover half block is further configured to:
Operated to being presented the second of the terminal of the image template to be edited in response to the user,
Determine the attitude of the terminal;
Attitude based on the terminal determines the second operating parameter of second operation;And
Based on second operating parameter, second property value in the described second region to be edited is determined.
14. devices according to claim 13, it is characterised in that:
Second operation includes rotation process;
Second operating parameter includes the anglec of rotation and/or angular velocity of rotation.
15. devices according to claim 13, it is characterised in that the generation module enters
One step is configured to:
The first property value and/or described second based on the described first region to be edited are waited to compile
Collect the second attribute value generation described image in region.
16. device according to claim 9-12 any one, it is characterised in that described
Device also includes:
Sending module, be configured in response to the user to the 3rd of described image operation with it is pre-
The matching of fixed operation, described image is sent to server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510777584.8A CN106708850A (en) | 2015-11-13 | 2015-11-13 | Image template-based image generation method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510777584.8A CN106708850A (en) | 2015-11-13 | 2015-11-13 | Image template-based image generation method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106708850A true CN106708850A (en) | 2017-05-24 |
Family
ID=58930318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510777584.8A Pending CN106708850A (en) | 2015-11-13 | 2015-11-13 | Image template-based image generation method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106708850A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112527115A (en) * | 2020-12-15 | 2021-03-19 | 北京百度网讯科技有限公司 | User image generation method, related device and computer program product |
WO2021082760A1 (en) * | 2019-10-31 | 2021-05-06 | 北京字节跳动网络技术有限公司 | Virtual image generation method, device, terminal and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060001932A1 (en) * | 2004-06-30 | 2006-01-05 | Canon Kabushiki Kaisha | Image editing system and method therefor |
CN101046722A (en) * | 2006-03-31 | 2007-10-03 | 腾讯科技(深圳)有限公司 | Method for editing picture in customer end contents transmission window and customer end |
CN102222062A (en) * | 2010-04-19 | 2011-10-19 | 腾讯数码(天津)有限公司 | User space page personalized setting method and device for instant messaging system |
CN102368196A (en) * | 2011-10-02 | 2012-03-07 | 上海量明科技发展有限公司 | Method, terminal and system for editing dynamical picture in content sending window of client side |
CN102811184A (en) * | 2012-08-28 | 2012-12-05 | 腾讯科技(深圳)有限公司 | Sharing method, terminal, server and system for custom emoticons |
CN103457825A (en) * | 2012-05-31 | 2013-12-18 | 华为技术有限公司 | Method, device and system for achieving instant message communication |
CN105045509A (en) * | 2015-08-03 | 2015-11-11 | 努比亚技术有限公司 | Picture editing apparatus and method |
-
2015
- 2015-11-13 CN CN201510777584.8A patent/CN106708850A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060001932A1 (en) * | 2004-06-30 | 2006-01-05 | Canon Kabushiki Kaisha | Image editing system and method therefor |
CN101046722A (en) * | 2006-03-31 | 2007-10-03 | 腾讯科技(深圳)有限公司 | Method for editing picture in customer end contents transmission window and customer end |
CN102222062A (en) * | 2010-04-19 | 2011-10-19 | 腾讯数码(天津)有限公司 | User space page personalized setting method and device for instant messaging system |
CN102368196A (en) * | 2011-10-02 | 2012-03-07 | 上海量明科技发展有限公司 | Method, terminal and system for editing dynamical picture in content sending window of client side |
CN103457825A (en) * | 2012-05-31 | 2013-12-18 | 华为技术有限公司 | Method, device and system for achieving instant message communication |
CN102811184A (en) * | 2012-08-28 | 2012-12-05 | 腾讯科技(深圳)有限公司 | Sharing method, terminal, server and system for custom emoticons |
CN105045509A (en) * | 2015-08-03 | 2015-11-11 | 努比亚技术有限公司 | Picture editing apparatus and method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021082760A1 (en) * | 2019-10-31 | 2021-05-06 | 北京字节跳动网络技术有限公司 | Virtual image generation method, device, terminal and storage medium |
CN112527115A (en) * | 2020-12-15 | 2021-03-19 | 北京百度网讯科技有限公司 | User image generation method, related device and computer program product |
CN112527115B (en) * | 2020-12-15 | 2023-08-04 | 北京百度网讯科技有限公司 | User image generation method, related device and computer program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104995865B (en) | Service based on sound and/or face recognition provides | |
CN105447204B (en) | Network address recognition methods and device | |
CN103744659B (en) | A kind of method and apparatus of card type management application entrance | |
US20210333984A1 (en) | Method and apparatus for generating customized visualization component | |
US11373441B2 (en) | Apparatus and method for coordinating the matching and initial communications between individuals in a dating application | |
US20160182422A1 (en) | Gallery of Messages from Individuals with a Shared Interest | |
JP2018036621A (en) | Information input method and device | |
EP2843529A1 (en) | Method for providing information based on contents and electronic device thereof | |
CN105049421A (en) | Authentication method based on use behavior characteristic of user, server, terminal, and system | |
CN110827378A (en) | Virtual image generation method, device, terminal and storage medium | |
CN107870976A (en) | Resume identification device, method and computer-readable recording medium | |
CN107731229A (en) | Method and apparatus for identifying voice | |
CN106896937A (en) | Method and apparatus for being input into information | |
US8370350B2 (en) | User accessibility to resources enabled through adaptive technology | |
CN106020504A (en) | Information output method and device | |
CN106921682A (en) | File uploading method and device | |
CN107315955A (en) | File security recognition methods and device | |
CN106569860A (en) | Application management method and terminal | |
CN106447295A (en) | Sign-off file template generation method and apparatus thereof | |
CN103778128B (en) | The method for drafting and device of a kind of list information | |
CN109862100A (en) | Method and apparatus for pushed information | |
CN114726947B (en) | Message display method, device, user terminal and readable storage medium | |
CN106326486B (en) | The method and apparatus of pushed information based on artificial intelligence | |
CN107093164A (en) | Method and apparatus for generating image | |
CN111523021A (en) | Information processing system and execution method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |
|
RJ01 | Rejection of invention patent application after publication |