CN109064387A - Image special effect generation method, device and electronic equipment - Google Patents

Image special effect generation method, device and electronic equipment Download PDF

Info

Publication number
CN109064387A
CN109064387A CN201810838412.0A CN201810838412A CN109064387A CN 109064387 A CN109064387 A CN 109064387A CN 201810838412 A CN201810838412 A CN 201810838412A CN 109064387 A CN109064387 A CN 109064387A
Authority
CN
China
Prior art keywords
image
special effect
image special
parameter
special efficacy
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
CN201810838412.0A
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 Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201810838412.0A priority Critical patent/CN109064387A/en
Publication of CN109064387A publication Critical patent/CN109064387A/en
Pending legal-status Critical Current

Links

Classifications

    • G06T3/18
    • G06T3/04

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present disclosure discloses a kind of image special effect generation method, device, electronic equipment and computer readable storage mediums.Wherein, which includes: to receive image special effect type select command, selects image special effect type;Receive resource packet corresponding with described image special efficacy type;The parameter configuration item of the resource packet is parsed, and is shown on the desplay apparatus;Parameter configuration order is received, carries out parameter configuration in the parameter configuration item;According to the parameter, described image special efficacy is generated.In the disclosure, by parsing the resource packet of image special effect, the configurable parameter configuration item of resource packet is shown, flexible configuration can be carried out to image special effect by parameter configuration item, therefore compared to prior art, the editor's difficulty and edit session of image special effect are greatly reduced.

Description

Image special effect generation method, device and electronic equipment
Technical field
This disclosure relates to which a kind of image technique field, fills more particularly to a kind of image special effect generation method, device, hardware It sets and computer readable storage medium.
Background technique
With the development of computer technology, the application range of intelligent terminal has obtained extensive extension, such as can pass through Intelligent terminal listens to music, plays game, chats on line and take pictures.For the shooting technology of intelligent terminal, pixel of taking pictures Have reached ten million pixel or more, the effect of taking pictures of clarity with higher and the mm professional camera special that matches in excellence or beauty.
At present when being taken pictures or being shot the video using intelligent terminal, when factory not only can be used it is built-in take pictures it is soft Part realize traditional function take pictures and video effect, can also by from network-side download application program (Application, letter Referred to as: APP) realize take pictures effect or the video effect with additional function.
Current image special effect production APP some image special effects that have all been prefabricated, can not flexibly edit, in addition image special effect Also it can be only positioned at fixed position.
Summary of the invention
According to one aspect of the disclosure, the disclosure provides a kind of image special effect generation method, comprising: receives image special effect Type select command selects image special effect type;Receive resource packet corresponding with described image special efficacy type;Parse the money The parameter configuration item of source packet, and be shown on the desplay apparatus;Parameter configuration order is received, is joined in the parameter configuration item Number configuration;According to the parameter, described image special efficacy is generated.
Optionally, described image special efficacy type, comprising: two-dimentional special efficacy, three-dimensional special efficacy, face makeups special efficacy, face deformation One of special efficacy, split screen special efficacy and panorama special efficacy are a variety of.
It optionally, include default parameters in the parameter configuration item, in the reception parameter configuration order, in the parameter In configuration item before progress parameter configuration, further includes: standard picture is shown on said display means, according to the parameter configuration The default parameters of item generates default image special efficacy on the standard picture.
Optionally, described according to the parameter, after generating image special effect, further includes: obtain and adopted in imaging sensor The first image collected generates described image special efficacy according to the parameter in the first image.
Optionally, described according to the parameter, before generating image special effect, further includes: selected on the standard picture One or more reference points are selected, the reference point is used to determine the position of described image special efficacy.
Optionally, described according to the parameter, generate image special effect, comprising: according to the parameter and it is one or Multiple reference points generate described image special efficacy.
Optionally, described according to the parameter, after generating image special effect, further includes: obtain and adopted in imaging sensor The first image collected, according to the parameter and one or more of reference points, in the first image described in generation Image special effect.
According to another aspect of the disclosure, the disclosure provides a kind of image special effect generating means, comprising: image special effect class Type selecting module selects image special effect type for receiving image special effect type select command;Resource packet receiving module, is used for Receive resource packet corresponding with described image special efficacy type;Parameter configuration item parsing module, for parsing the resource packet Parameter configuration item, and be shown on the desplay apparatus;Parameter configuration module is matched for receiving parameter configuration order in the parameter It sets and carries out parameter configuration in item;Image special effect generation module, for generating described image special efficacy according to the parameter.
Optionally, described image special efficacy type, comprising: two-dimentional special efficacy, three-dimensional special efficacy, face makeups special efficacy, face deformation One of special efficacy, split screen special efficacy and panorama special efficacy are a variety of.
It optionally, include default parameters in the parameter configuration item parsed in the parameter configuration item parsing module, it is described Image special effect generating means, further includes: standard picture display module, for showing standard picture, root on said display means Default image special efficacy is generated on the standard picture according to the default parameters of the parameter configuration item.
Optionally, described image special efficacy generating means, further includes: the first image special effect generation module, for obtaining image Collected first image in sensor generates described image special efficacy according to the parameter in the first image.
Optionally, described image special efficacy generating means, further includes: point selection module is referred to, in the standard picture The one or more reference points of upper selection, the reference point are used to determine the position of described image special efficacy.
Optionally, described image special efficacy generation module is used for according to the parameter and one or more of reference points, Generate described image special efficacy.
Optionally, the first image special efficacy generation module, for obtaining collected first image in imaging sensor, According to the parameter and one or more of reference points, described image special efficacy is generated in the first image.
According to the another aspect of the disclosure, the disclosure provides a kind of electronic equipment, comprising: at least one processor;With And the memory being connect at least one described processor communication;Wherein, the memory be stored with can by it is described at least one The instruction that processor executes, described instruction is executed by least one described processor, so that at least one described processor can Step described in any of the above-described method is realized when execution.
According to the another aspect of the disclosure, the disclosure provides a kind of non-transient computer readable storage medium, feature It is, which stores computer instruction, and the computer instruction is for executing computer The step of stating described in either method.
The embodiment of the present disclosure provides a kind of image special effect generation method, device, electronic equipment and computer-readable storage medium Matter.Wherein, which includes: to receive image special effect type select command, selects image special effect type;It receives Resource packet corresponding with described image special efficacy type;The parameter configuration item of the resource packet is parsed, and is shown in display device On;Parameter configuration order is received, carries out parameter configuration in the parameter configuration item;According to the parameter, described image is generated Special efficacy.In the disclosure, by the resource packet of parsing image special effect, the configurable parameter configuration item of resource packet is shown, Flexible configuration can be carried out to image special effect by parameter configuration item, therefore compared to prior art, greatly reduces image spy The editor's difficulty and edit session of effect.
Above description is only the general introduction of disclosed technique scheme, in order to better understand the technological means of the disclosure, and It can be implemented in accordance with the contents of the specification, and to allow the above and other objects, features and advantages of the disclosure can be brighter Show understandable, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Detailed description of the invention
Fig. 1 is the flow diagram according to the image special effect generation method of an embodiment of the present disclosure;
Fig. 2 is the flow diagram according to the image special effect generation method of the disclosure another embodiment;
Fig. 3 is the flow diagram according to the image special effect generation method of the disclosure another embodiment;
Fig. 4 is to calculate embodiment schematic diagram according to the parameter of an embodiment of the present disclosure;
Fig. 5 is the structural schematic diagram according to the image special effect generating means of an embodiment of the present disclosure;
Fig. 6 is the structural schematic diagram according to the image special effect generating means of the disclosure another embodiment;
Fig. 7 is the structural schematic diagram according to the image special effect generating means of the disclosure another embodiment;
Fig. 8 is the structural schematic diagram according to the electronic equipment of an embodiment of the present disclosure;
Fig. 9 is the structural schematic diagram according to the computer readable storage medium of an embodiment of the present disclosure;
Figure 10 is the structural schematic diagram that terminal is generated according to the image special effect of an embodiment of the present disclosure.
Specific embodiment
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways. For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields The skilled person will understand that the aspect can be practiced without these specific details.
In order to solve the technical issues of how improving user experience effect, it is raw that the embodiment of the present disclosure provides a kind of image special effect At method.As shown in Figure 1, the image special effect generation method mainly includes the following steps S1 to step S5.Wherein:
Step S1: receiving image special effect type select command, selects image special effect type.
In this embodiment, terminal device receives image special effect type select command, to select the image for needing to generate special Imitate type.In the disclosure, described image special efficacy typically may include: two-dimentional special efficacy, three-dimensional special efficacy, face makeups special efficacy, Face deformation special efficacy, split screen special efficacy and panorama special efficacy.The select command can be it is multiple, to select multiple images special efficacy class Type may finally generate the synthetic image special efficacy including a variety of image special effects in this case.For it is specific some The image special effect of type can further select subtype, such as face makeups special efficacy type, can continue to select U.S. pupil special Effect, eyebrow special efficacy etc..The special efficacy type select command is received by man-machine interface, and typical man-machine interface includes selection Frame, drop-down menu, button etc..The concrete type of above-mentioned special efficacy is only to illustrate, and the disclosure does not limit the type of special efficacy, any Special efficacy may be introduced into the disclosure.
Step S2: resource packet corresponding with described image special efficacy type is received.
It include resource required for generating described image special efficacy, in this embodiment, the resource packet in the resource packet Corresponding with image special effect type, resource packet required for every kind of image special effect is different, and the method in the disclosure can pass through image Special efficacy type reception different resource packet.The resource packet corresponding with described image special efficacy type of reception herein can be reception and use The resource packet that the resource packet or user that family imports create, for each type of image special effect, required resource packet is pre- If required resource packet includes at least two-dimentional textures, sequence frame etc. alright, such as two-dimentional special efficacy;For three-dimensional special efficacy For include at least threedimensional model, material, light etc.;For face deformation special efficacy, standard faces image is included at least.It is right In other special efficacy types, no longer illustrate one by one.
Step S3: the parameter configuration item of the resource packet is parsed, and is shown on the desplay apparatus.
In this embodiment, for each resource packet, the configurable parameter configuration item of the resource in resolving resource packet, The parameter configuration item is shown in the display device of terminal device.
For two-dimentional special efficacy, the configuration item may include: the position of two-dimentional textures, size, reference point, sequence frame it is suitable Sequence, the face that trigger condition, duration and the two-dimentional special efficacy of two-dimentional special efficacy are tracked.
For three-dimensional special efficacy, the configuration item may include: position, size, material of threedimensional model etc., the class of light Type, position, color, intensity etc., frame sequence, the people that trigger condition, duration and the three-dimensional special efficacy of three-dimensional special efficacy are tracked Face.
For face makeups special efficacy, the configuration item may include: the position of makeups textures, size, reference point, makeups spy The face that trigger condition, duration and the makeups special efficacy of effect are tracked.
For face deformation special efficacy, the configuration item may include: the range of deformation, position, reference point, face deformation The face that trigger condition, duration and face deformation special efficacy are tracked.
For split screen special efficacy, the configuration item may include: the type of split screen, quantity, the special efficacy class in each sub-screen The configuration item etc. of type and the corresponding special efficacy type.
For panorama special efficacy, the configuration item may include: the textures of panorama background, the type etc. of background segment.
Step S4: parameter configuration order is received, carries out parameter configuration in the parameter configuration item.
In this step, terminal receives the configuration order of user's input, carries out parameter to the parameter configuration item in step S3 Configuration, specifically, the parameter can pass through input frame, drop-down menu, choice box, button, sliding control etc. human-computer interaction Mode receives, and is not specifically limited herein.In a word in this step, terminal is received by man-machine interactive interface to institute in step S3 The parameter of the parameter configuration item input of display.
In one embodiment, the parameter configuration item is the parameter configuration item of two-dimentional special efficacy, and the two dimension special efficacy can be with It is covered on face, to show specific effect.For face, the special efficacy can be static special efficacy, such as a figure, or Person's dynamic special efficacy, such as multiframe animation.It when configuring special efficacy, for example include a picture in resource packet, the picture is an eye Mirror, then it includes the ginseng of glasses on the configuration interface that the glasses, which are shown in default location, and show configuration interface on glasses periphery Number configuration item, the parameter configuration item includes position, rotation center, size etc., and user can configure above-mentioned parameter, To generate the special efficacy of a glasses;Further, user can carry out position adjustment by pulling the size box of two-dimentional special efficacy, can To adjust the size of two-dimentional special efficacy by the angle for pulling two-dimentional special efficacy size box, rotation center can be set to display device and take up an official post Meaning is a bit.The configuration item further includes sequence frame configuration item, and the frame sequence of the adjustable sequence frame of user, selection is to each frame point It is not configured.The configuration item further includes trigger condition configuration item, and special efficacy, which only meets some requirements, can just trigger display, The trigger condition can be movement, expression, sound or parameter of terminal of user etc..It is dynamic that the movement can be face Make, for example, blink, mouth is opened greatly, is shaken the head, nodding, eyebrow is provoked, such as special efficacy be glasses two-dimentional special efficacy, then touching can be set Clockwork spring part be rapid eye movements twice, when detecting that user quickly blinks twice, the two dimension of glasses is shown on the eyes of user Special efficacy;The expression can be glad, dejected, angry etc., for example special efficacy is the two-dimentional special efficacy of tears, then triggering can be set Condition is dejected expression, when the expression for detecting user is dejected, shows that the two dimension of tears is special below the eyes of user Effect;When trigger condition is sound, the voice or ambient sound of user can detecte, when detecting predetermined sound, triggering pair The special efficacy answered;When trigger condition is terminal parameter, can with the parameter of each component in monitor terminal, such as terminal posture, Shake etc., by posture or the corresponding special efficacy of triggering is shaken, will not enumerate herein, it is to be appreciated that the triggering item Part can be any trigger condition suitable for disclosed technique scheme, and trigger condition can be one or more, not do herein Limitation.The triggering can be triggering and start or trigger to disappear, and when triggering starts to there is trigger condition, corresponding special efficacy goes out Existing, when triggering disappears trigger condition occur, corresponding special efficacy disappears;The trigger condition can also include the delay after triggering Time is exactly after trigger condition occurs, and how long special efficacy occurs or disappears for delay.
For other kinds of image special effect, there is similar configuration process, repeated no more in the disclosure.In a word in step Parameter configuration is carried out to configurable parameter configuration item shown in step S3 in S4.
Above-mentioned configuration mode and parameter are only for example, and are not constituted and are limited to the disclosure, actually any required configuration Or the parameter that can be configured can use in the technical solution of the disclosure.
Step S5: according to the parameter, described image special efficacy is generated.
In one embodiment, parameter received in step S4 is transferred in various image special effect generating algorithms, institute It states image special effect generating algorithm and corresponding image special effect is generated according to the parameter.
In the embodiment of the present disclosure, after selecting image special effect type, according to the different corresponding different resource packets of type, solution The configurable parameter configuration item of analysis, the parameter of image special effect is configured by parameter configuration item, and final figure is generated according to parameter As special efficacy.In prior art, image special effect is needed through third party's tool making, and flexibility is insufficient when use, cannot be right in real time Effect is configured, not flexible when needing to modify.And in the embodiment of the present disclosure, by parsing the resource packet of image special effect, will provide The configurable parameter configuration item of source packet is shown, and can carry out flexible configuration to image special effect by parameter configuration item, because This greatly reduces the editor's difficulty and edit session of image special effect, to improve user experience compared to prior art Effect.
As shown in Fig. 2, including default in the parameter configuration item parsed in the step S3 in another embodiment Parameter, before step S 4, further includes:
Step S31, shows standard picture on said display means, according to the default parameters of the parameter configuration item in institute State generation default image special efficacy on standard picture.
In this embodiment, the standard picture can be standard faces image, parse parameter configuration item in step S3 When, the special efficacy of default is shown on the standard picture with the default parameters in parameter configuration item.The embodiment facilitates user pre- Image special effect is look at, to determine whether the parameter configuration in step S4 is suitable.
After step s 5, further includes:
Step S51 obtains collected first image in imaging sensor, according to the parameter, in the first image Upper generation described image special efficacy.
In the step, obtaining collected first image, first image from camera can be facial image, the people Face image can be the face identified from true people, be also possible to using camera shoot include face picture or The face that video is identified, with no restrictions, first image is different from standard picture to the disclosure in a word.According to the parameter, Described image special efficacy is directly generated in the first image.
As shown in figure 3, in another embodiment, after step S31, further includes:
Step S311 selects one or more reference points on the standard picture, and the reference point is for described in determination The position of image special effect.
The step S5 is further S5 ', according to the parameter and one or more of reference points, generates the figure As special efficacy.
After step s 5, further comprise:
Step S52 obtains collected first image in imaging sensor, according to the parameter and one or more A reference point generates described image special efficacy in the first image.
In this embodiment, the standard picture can be standard faces image, and the first image is facial image, institute Stating reference point is the characteristic point on the standard faces image.The characteristic point of image refers in image there is distinct characteristic and can Effectively reflect image substantive characteristics and can be identified for that the point of target object in image.If target object is face, just need Face key point is obtained, if as soon as target image is a house, then needing to obtain the key point in house.By taking face as an example Illustrate that the acquisition methods of key point, facial contour mainly include 5 eyebrow, eyes, nose, mouth and cheek parts, goes back sometimes It will include pupil and nostril, in general realize and facial contour is more completely described, need the number of key point at 60 Left and right, if only describing basic structure, does not need that each position details is described in detail, or does not need description cheek, then may be used Accordingly to reduce key point number, if necessary to describe pupil, nostril or the five features for needing more details, then can increase The number of key point.The extraction of face key point is carried out on the image, is equivalent to and is found each facial contour key point in face figure Corresponding position coordinate as in, i.e., crucial point location, this process are needed to be carried out based on the corresponding feature of key point, obtained After the characteristics of image that key point can clearly be identified, scan for comparing in the picture according to this feature, on the image accurately Position the position of key point.Since characteristic point only occupies very small area (usually only several to tens pictures in the picture The size of element), occupied region is generally also very limited and local, use at present to the corresponding feature of characteristic point on the image Feature extraction mode there are two types of: (1) the one-dimensional range image feature extraction vertical along profile;(2) characteristic point Square Neighborhood Two dimensional range image characteristics extraction.There are many kinds of implementation methods for above two mode, such as ASM and AAM class method, statistics energy letter Several classes of methods, regression analysis, deep learning method, classifier methods, batch extracting method etc..Above-mentioned various realization sides Key point number used in method, accuracy and speed are different, suitable for different application scenarios.
The reference point selected can be one or more.In the concrete realization, user can pass through mouse or keyboard Equal input equipments send select command, for example click characteristic point shown in display device using mouse or use keyboard The number of input feature vector point selects corresponding characteristic point, and selected characteristic point is as a reference point, the reference point is used for Record relative position and size of the described image special efficacy on face.
Since the special efficacy of the special efficacy on standard faces image to the collected facial image of imaging sensor needs one Mapping relations, different according to the mode of mapping, the mode of special efficacy can be divided into fixed special efficacy and tracking special efficacy, in one embodiment Middle to use fixed special efficacy, this special efficacy is fairly simple, it is only necessary to the absolute position of entire special efficacy range in the image sensor be arranged It sets, the pixel that implementation can be the Image Acquisition window by display device and imaging sensor corresponds, Judge the position of special efficacy in a display device, the corresponding position of imaging sensor acquisition window acquired image is carried out later The advantages of corresponding special effect processing, this special effect processing mode is simple to operation, all phases of parameter used in the implementation For the position of acquisition window;In another embodiment, when generating special efficacy image, the feature of standard faces image is first obtained Point determines position of the special efficacy in standard faces image by the characteristic point;It is collected from by imaging sensor Image in corresponding with the standard faces image facial image of identification;It will be mapped to identified position in standard faces image In facial image;Special effect processing is done to facial image, generates special efficacy image.Reference point is exactly the feature that image special effect needs to track Point, in which, by selecting reference point to determine relative position of the special efficacy in facial image, no matter how facial image is moved Variation, the special efficacy are always located on the relative position, achieve the purpose that track special efficacy.In a typical application, the mark Quasi- facial image passes through triangulation, has 106 characteristic points, determines that sphere of action exists using the relative position of special efficacy and characteristic point Same triangulation is done to the collected facial image of camera, later when in camera in relative position in facial image Face when mobile or rotation occurs, the special efficacy can be permanently affixed on the relative position on face, special to reach tracking The effect of effect.
In one embodiment, the selection of the reference point can be one in parameter configuration item, can be used as ginseng One of number generates image special effect.
As described in Figure 4, it selects characteristic point A point and characteristic point B point is reference point, described image special efficacy is an ellipse, ellipse Round central point is C point, and the length of long axis is a, and the length of short axle is b, and D point is the vertical point that vertical line is done from C point to line segment AB. Wherein the coordinate of A point is (XA, YA), and the coordinate of B point is (XB, YB), and the coordinate of C point is (XC, YC), the coordinate of D point be (XD, YD), then available 4 linear difference coefficientsWherein AB, AD, CD respectively indicates the length of line segment, In standard faces image In, A point, B point, C point and D point coordinate and a and b be known value, therefore above-mentioned 4 linear difference coefficients can be used Carry out records center point C relative to the relative position of reference point A and B and ellipse long and short shaft relative to the relatively large of reference point A and B It is small.For the image special effect of other shapes, can record in a similar way.
When needing for image special effect to be generated on above-mentioned facial image, for example use 19 and No. 20 characteristic points as reference Point searches corresponding 19 and No. 20 characteristic points then using identical characteristic point in the first facial image in facial image A ' and B ' obtains the two and puts the coordinate in facial image, uses λ1Calculate the line of special efficacy central point C ' to A ' and B ' Hang down point D ', later according to λ2The position for calculating C ', uses λ3And λ4The size for calculating special efficacy, to the special efficacy on facial image It zooms in and out.This completes utilize reference point and parameter, the step special efficacy being generated on facial image.
It is understood that user, which can choose, needs to carry out image spy when identifying multiple facial images in image The facial image generated is imitated, multiple facial images is also can choose and does same or different processing.For example, in life When at special efficacy, standard faces can be numbered, such as ID1 and ID2, respectively to ID1 and ID2 standard faces image configurations image Special efficacy, the special efficacy can be the same or different, suitable according to what is identified when identifying multiple facial images from camera The multiple facial image of ordered pair adds image special effect, for example first identifies No. 1 face, then the mark of ID1 is added on No. 1 face Image special effect on quasi- facial image identifies No. 2 faces later, then on the standard faces image for adding ID2 on No. 2 faces Image special effect;If only having made the standard faces image special effect of ID1, can be added in No. 1 and No. 2 facial images Image special effect on the standard faces image of ID1 only can also add image special effect on No. 1 face.
In the embodiment of the present disclosure, after selecting image special effect type, according to the different corresponding different resource packets of type, solution The configurable parameter configuration item of analysis, shows standard picture, and select on standard picture position for recording image special effect and The reference point of size is configured the parameter of image special effect by parameter configuration item, and generates image special effect according to parameter and reference point, Described image special efficacy can be generated in the real-time acquired image of imaging sensor according to the parameter and reference point later.? Have in technology, image special effect is needed through third party's tool making, and flexibility is insufficient when use, cannot be matched in real time to effect It sets, it is not flexible when needing to modify, and the special efficacy can only directly be produced on existing image or be directly generating in image window On the fixation position of mouth.And in the embodiment of the present disclosure, by parsing the resource packet of image special effect, by the configurable ginseng of resource packet Number configuration item is shown, and can carry out flexible configuration to image special effect by parameter configuration item, and by reference to a determination The position of image special effect uses identical reference point on realtime graphic, image special effect can be made to be always positioned on realtime graphic Fixed position relative on, therefore compared to prior art, greatly reduce the editor's difficulty and edit session of image special effect, And image special effect can be always positioned at the fixation position of realtime graphic, to improve user experience effect.
Hereinbefore, although describing each step in above method embodiment, this field skill according to above-mentioned sequence Art personnel it should be clear that the step in the embodiment of the present disclosure not necessarily executes in the order described above, can also with inverted order, it is parallel, Other sequences such as intersection execute, moreover, those skilled in the art can also add other steps on the basis of above-mentioned steps Suddenly, the mode of these obvious variants or equivalent replacement should also be included within the protection scope of the disclosure, and details are not described herein.
It is below embodiment of the present disclosure, embodiment of the present disclosure can be used for executing embodiments of the present disclosure realization The step of, for ease of description, part relevant to the embodiment of the present disclosure is illustrated only, it is disclosed by specific technical details, it asks Referring to embodiments of the present disclosure.
The embodiment of the present disclosure provides a kind of image special effect generating means.The device can execute above-mentioned image special effect generation side Method step as described in the examples.As shown in figure 5, the device mainly includes: image special effect type selection module 51, resource packet connect Receive module 52, parameter configuration item parsing module 53, parameter configuration module 54 and image special effect generation module 55.Wherein: image is special Type selection module 51 is imitated, for receiving image special effect type select command, selects image special effect type;Resource packet receiving module 52, for receiving resource packet corresponding with described image special efficacy type;Parameter configuration item parsing module 53, it is described for parsing The parameter configuration item of resource packet, and be shown on the desplay apparatus;Parameter configuration module 54, for receiving parameter configuration order, Parameter configuration is carried out in the parameter configuration item;Image special effect generation module 55, for generating described image according to the parameter Special efficacy.
Above-mentioned image special effect generating means are corresponding with the image special effect generation method in above-mentioned embodiment illustrated in fig. 1 consistent, Detail can refer to the above-mentioned description to image special effect generation method, and details are not described herein.
It in another embodiment, include silent in the parameter configuration item parsed in the parameter configuration item parsing module 53 Parameter is recognized, as shown in fig. 6, described image special efficacy generating means further include standard picture display module 531, in the display Standard picture is shown on device, generates default image spy on the standard picture according to the default parameters of the parameter configuration item Effect;First image special effect generation module 551, for obtaining collected first image in imaging sensor, according to the parameter, Described image special efficacy is generated in the first image.
Above-mentioned image special effect generating means are corresponding with the image special effect generation method in above-mentioned embodiment illustrated in fig. 2 consistent, Detail can refer to the above-mentioned description to image special effect generation method, and details are not described herein.
In another embodiment, as shown in fig. 7, further including reference point in image special effect generating means shown in Fig. 6 Selecting module 532, for selecting one or more reference points on the standard picture, the reference point is for determining the figure As the position of special efficacy;Described image special efficacy generation module 55 is used for according to the parameter and one or more of reference points, Generate described image special efficacy;The first image special efficacy generation module 551, for obtaining collected first in imaging sensor Image generates described image special efficacy according to the parameter and one or more of reference points in the first image.
Above-mentioned image special effect generating means are corresponding with the image special effect generation method in above-mentioned embodiment illustrated in fig. 3 consistent, Detail can refer to the above-mentioned description to image special effect generation method, and details are not described herein.
In the embodiment of the present disclosure, after selecting image special effect type, according to the different corresponding different resource packets of type, solution The configurable parameter configuration item of analysis, shows standard picture, and select on standard picture position for recording image special effect and The reference point of size is configured the parameter of image special effect by parameter configuration item, and generates image special effect according to parameter and reference point, Described image special efficacy can be generated in the real-time acquired image of imaging sensor according to the parameter and reference point later.? Have in technology, image special effect is needed through third party's tool making, and flexibility is insufficient when use, cannot be matched in real time to effect It sets, it is not flexible when needing to modify, and the special efficacy can only directly be produced on existing image or be directly generating in image window On the fixation position of mouth.And in the embodiment of the present disclosure, by parsing the resource packet of image special effect, by the configurable ginseng of resource packet Number configuration item is shown, and can carry out flexible configuration to image special effect by parameter configuration item, and by reference to a determination The position of image special effect uses identical reference point on realtime graphic, image special effect can be made to be always positioned on realtime graphic Fixed position relative on, therefore compared to prior art, greatly reduce the editor's difficulty and edit session of image special effect, And image special effect can be always positioned at the fixation position of realtime graphic, to improve user experience effect.
Fig. 8 is diagram electronic device block diagram according to an embodiment of the present disclosure.As shown in figure 8, according to the embodiment of the present disclosure Electronic equipment 80 include memory 81 and processor 82.
The memory 81 is for storing non-transitory computer-readable instruction.Specifically, memory 81 may include one Or multiple computer program products, the computer program product may include various forms of computer readable storage mediums, example Such as volatile memory and/or nonvolatile memory.The volatile memory for example may include random access memory (RAM) and/or cache memory (cache) etc..The nonvolatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..
The processor 82 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution energy The processing unit of the other forms of power, and can control other components in electronic equipment 80 to execute desired function.? In one embodiment of the disclosure, which makes for running the computer-readable instruction stored in the memory 81 Obtain all or part of step that the electronic equipment 80 executes the special efficacy generation method based on face of each embodiment of the disclosure above-mentioned Suddenly.
Those skilled in the art will be understood that solve the technical issues of how obtaining good user experience effect, this It also may include structure well known to communication bus, interface etc. in embodiment, these well known structures should also be included in this public affairs Within the protection scope opened.
Being described in detail in relation to the present embodiment can be with reference to the respective description in foregoing embodiments, and details are not described herein.
Fig. 9 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.As shown in figure 9, root According to the computer readable storage medium 90 of the embodiment of the present disclosure, it is stored thereon with non-transitory computer-readable instruction 91.When this When non-transitory computer-readable instruction 91 is run by processor, the spy based on face of each embodiment of the disclosure above-mentioned is executed Imitate all or part of the steps of generation method.
Above-mentioned computer readable storage medium 90 includes but is not limited to: and optical storage media (such as: CD-ROM and DVD), magnetic Optical storage media (such as: MO), magnetic storage medium (such as: tape or mobile hard disk), with built-in rewritable nonvolatile The media (such as: storage card) of memory and media (such as: ROM box) with built-in ROM.
Being described in detail in relation to the present embodiment can be with reference to the respective description in foregoing embodiments, and details are not described herein.
Figure 10 is the hardware structural diagram for illustrating the terminal device according to the embodiment of the present disclosure.As shown in Figure 10, the figure It include above-mentioned image special effect generating means embodiment as special efficacy generates terminal 100.
The terminal device can be implemented in a variety of manners, and the terminal device in the disclosure can include but is not limited to such as Mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), navigation device, vehicle-mounted terminal equipment, vehicle-mounted display terminal, vehicle electronics rearview mirror etc. Mobile terminal device and such as number TV, desktop computer etc. fixed terminal equipment.
As the embodiment of equivalent replacement, which can also include other assemblies.As shown in Figure 10, the image special effect Generating terminal 100 may include power supply unit 101, wireless communication unit 102, A/V (audio/video) input unit 103, user Input unit 104, sensing unit 105, interface unit 106, controller 107, output unit 108 and storage unit 109 etc..Figure 10 show the terminal with various assemblies, it should be understood that being not required for implementing all components shown, can also replace Implement more or fewer components in generation ground.
Wherein, wireless communication unit 102 allows the radio communication between terminal 100 and wireless communication system or network. A/V input unit 103 is for receiving audio or video signal.The order that user input unit 104 can be inputted according to user is raw At key input data with the various operations of controlling terminal equipment.Current state, the terminal 100 of the detection terminal 100 of sensing unit 105 Position, user it is mobile for the acceleration or deceleration of the orientation of the presence or absence of touch input of terminal 100, terminal 100, terminal 100 With direction etc., and generate order or the signal of operation for controlling terminal 100.Interface unit 106 is used as at least one External device (ED) connect with terminal 100 can by interface.Output unit 108 is configured to vision, audio and/or tactile side Formula provides output signal.Storage unit 109 can store the software program etc. of the processing and control operation that are executed by controller 107 Deng, or can temporarily store oneself data through exporting or will export.Storage unit 109 may include at least one type Storage medium.Moreover, terminal 100 can be with the network storage for the store function for executing storage unit 109 by network connection Device cooperation.The overall operation of the usual controlling terminal equipment of controller 107.In addition, controller 107 may include for reproduce or The multi-media module of multimedia playback data.Controller 107 can be with execution pattern identifying processing, by what is executed on the touchscreen Handwriting input or picture draw input and are identified as character or image.Power supply unit 101 receives outer under control of the controller 107 Portion's electric power or internal power and electric power appropriate needed for each element of operation and component are provided.
The various embodiments for the image special effect generation method that the disclosure proposes can be to use such as computer software, hard The computer-readable medium of part or any combination thereof is implemented.Hardware is implemented, the image special effect generation side that the disclosure proposes The various embodiments of method can be believed by using application-specific IC (ASIC), digital signal processor (DSP), number It is number processing unit (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, micro- Controller, microprocessor is designed to execute at least one of electronic unit of function described herein to implement, some In the case of, the various embodiments for the image special effect generation method that the disclosure proposes can be implemented in controller 107.For soft Part implement, the disclosure propose image special effect generation method various embodiments can with allow to execute at least one function or The individual software module of operation is implemented.Software code can be by the software application journey write with any programming language appropriate Sequence (or program) is implemented, and software code can store in storage unit 109 and executed by controller 107.
Being described in detail in relation to the present embodiment can be with reference to the respective description in foregoing embodiments, and details are not described herein.
The basic principle of the disclosure is described in conjunction with specific embodiments above, however, it is desirable to, it is noted that in the disclosure The advantages of referring to, advantage, effect etc. are only exemplary rather than limitation, must not believe that these advantages, advantage, effect etc. are the disclosure Each embodiment is prerequisite.In addition, detail disclosed above is merely to exemplary effect and the work being easy to understand With, rather than limit, it is that must be realized using above-mentioned concrete details that above-mentioned details, which is not intended to limit the disclosure,.
Device involved in the disclosure, device, equipment, system block diagram only as illustrative example and be not intended to It is required that or hint must be attached in such a way that box illustrates, arrange, configure.As those skilled in the art will appreciate that , it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as "include", "comprise", " tool " etc. word be open vocabulary, refer to " including but not limited to ", and can be used interchangeably with it.Vocabulary used herein above "or" and "and" refer to vocabulary "and/or", and can be used interchangeably with it, unless it is not such that context, which is explicitly indicated,.Here made Vocabulary " such as " refers to phrase " such as, but not limited to ", and can be used interchangeably with it.
In addition, as used herein, the "or" instruction separation used in the enumerating of the item started with "at least one" It enumerates, so that enumerating for such as " at least one of A, B or C " means A or B or C or AB or AC or BC or ABC (i.e. A and B And C).In addition, wording " exemplary " does not mean that the example of description is preferred or more preferable than other examples.
It may also be noted that in the system and method for the disclosure, each component or each step are can to decompose and/or again Combination nova.These decompose and/or reconfigure the equivalent scheme that should be regarded as the disclosure.
The technology instructed defined by the appended claims can not departed from and carried out to the various of technology described herein Change, replace and changes.In addition, the scope of the claims of the disclosure is not limited to process described above, machine, manufacture, thing Composition, means, method and the specific aspect of movement of part.Can use carried out to corresponding aspect described herein it is essentially identical Function or realize essentially identical result there is currently or later to be developed processing, machine, manufacture, event group At, means, method or movement.Thus, appended claims include such processing, machine, manufacture, event within its scope Composition, means, method or movement.
The above description of disclosed aspect is provided so that any person skilled in the art can make or use this It is open.Various modifications in terms of these are readily apparent to those skilled in the art, and are defined herein General Principle can be applied to other aspect without departing from the scope of the present disclosure.Therefore, the disclosure is not intended to be limited to Aspect shown in this, but according to principle disclosed herein and the consistent widest range of novel feature.
In order to which purpose of illustration and description has been presented for above description.In addition, this description is not intended to the reality of the disclosure It applies example and is restricted to form disclosed herein.Although already discussed above multiple exemplary aspects and embodiment, this field skill Its certain modifications, modification, change, addition and sub-portfolio will be recognized in art personnel.

Claims (10)

1. a kind of image special effect generation method characterized by comprising
Image special effect type select command is received, image special effect type is selected;
Receive resource packet corresponding with described image special efficacy type;
The parameter configuration item of the resource packet is parsed, and is shown on the desplay apparatus;
Parameter configuration order is received, carries out parameter configuration in the parameter configuration item;
According to the parameter, described image special efficacy is generated.
2. image special effect generation method according to claim 1, which is characterized in that described image special efficacy type, comprising:
One of two-dimentional special efficacy, three-dimensional special efficacy, face makeups special efficacy, face deformation special efficacy, split screen special efficacy and panorama special efficacy or It is a variety of.
3. image special effect generation method according to claim 2, which is characterized in that include default in the parameter configuration item Parameter, in the reception parameter configuration order, in the parameter configuration item before progress parameter configuration, further includes:
Standard picture is shown on said display means, according to the default parameters of the parameter configuration item on the standard picture Generate default image special efficacy.
4. image special effect generation method according to claim 3, which is characterized in that described according to the parameter, generate After image special effect, further includes:
Collected first image generates the figure according to the parameter in the first image in acquisition imaging sensor As special efficacy.
5. image special effect generation method according to claim 3, which is characterized in that described according to the parameter, generate Before image special effect, further includes:
One or more reference points are selected on the standard picture, the reference point is used to determine the position of described image special efficacy It sets.
6. image special effect generation method according to claim 5, which is characterized in that it is described according to the parameter, generate figure As special efficacy, comprising:
According to the parameter and one or more of reference points, described image special efficacy is generated.
7. image special effect generation method according to claim 6, which is characterized in that described according to the parameter, generate After image special effect, further includes:
Collected first image in imaging sensor is obtained, according to the parameter and one or more of reference points, Described image special efficacy is generated in the first image.
8. a kind of image special effect generating means characterized by comprising
Image special effect type selection module selects image special effect type for receiving image special effect type select command;
Resource packet receiving module, for receiving resource packet corresponding with described image special efficacy type;
Parameter configuration item parsing module for parsing the parameter configuration item of the resource packet, and is shown on the desplay apparatus;
Parameter configuration module carries out parameter configuration in the parameter configuration item for receiving parameter configuration order;
Image special effect generation module, for generating described image special efficacy according to the parameter.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out image special effect generation method as claimed in claim 1 to 7.
10. a kind of non-transient computer readable storage medium, which is characterized in that non-transient computer readable storage medium storage Computer instruction, the computer instruction are used to that computer perform claim to be made to require any image special effect generation method of 1-7.
CN201810838412.0A 2018-07-27 2018-07-27 Image special effect generation method, device and electronic equipment Pending CN109064387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810838412.0A CN109064387A (en) 2018-07-27 2018-07-27 Image special effect generation method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810838412.0A CN109064387A (en) 2018-07-27 2018-07-27 Image special effect generation method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN109064387A true CN109064387A (en) 2018-12-21

Family

ID=64835505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810838412.0A Pending CN109064387A (en) 2018-07-27 2018-07-27 Image special effect generation method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109064387A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110070496A (en) * 2019-02-28 2019-07-30 北京字节跳动网络技术有限公司 Generation method, device and the hardware device of image special effect
CN110503724A (en) * 2019-08-19 2019-11-26 北京猫眼视觉科技有限公司 A kind of AR expression resource construction management system and method based on human face characteristic point
CN110996183A (en) * 2019-07-12 2020-04-10 北京达佳互联信息技术有限公司 Video abstract generation method, device, terminal and storage medium
CN111753784A (en) * 2020-06-30 2020-10-09 广州酷狗计算机科技有限公司 Video special effect processing method and device, terminal and storage medium
CN112991146A (en) * 2019-12-17 2021-06-18 上海挚上文化传媒有限公司 Automatic special effect generation system and method
CN113643411A (en) * 2020-04-27 2021-11-12 北京达佳互联信息技术有限公司 Image special effect adding method and device, electronic equipment and storage medium
CN113744127A (en) * 2021-08-27 2021-12-03 北京百度网讯科技有限公司 Method and device for realizing beautiful pupil, electronic equipment and readable storage medium
WO2022007627A1 (en) * 2020-07-10 2022-01-13 北京字节跳动网络技术有限公司 Method and apparatus for implementing image special effect, and electronic device and storage medium
CN114187169A (en) * 2021-12-10 2022-03-15 北京字节跳动网络技术有限公司 Method, device and equipment for generating video special effect package and storage medium
WO2023273930A1 (en) * 2021-06-29 2023-01-05 北京字跳网络技术有限公司 Method and apparatus for processing rotation animation special effect, and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI225368B (en) * 2003-08-22 2004-12-11 Inventec Besta Co Ltd Method for generating and playing image passing-field animation special-efficacy
CN101072289A (en) * 2007-06-11 2007-11-14 北京中星微电子有限公司 Automatic generating method and device for image special effect
CN101071504A (en) * 2007-03-30 2007-11-14 腾讯科技(深圳)有限公司 Picture special-effect processing method and system
CN106887000A (en) * 2017-01-23 2017-06-23 上海联影医疗科技有限公司 The gridding processing method and its system of medical image
CN108280883A (en) * 2018-02-07 2018-07-13 北京市商汤科技开发有限公司 It deforms the generation of special efficacy program file packet and deforms special efficacy generation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI225368B (en) * 2003-08-22 2004-12-11 Inventec Besta Co Ltd Method for generating and playing image passing-field animation special-efficacy
CN101071504A (en) * 2007-03-30 2007-11-14 腾讯科技(深圳)有限公司 Picture special-effect processing method and system
CN101072289A (en) * 2007-06-11 2007-11-14 北京中星微电子有限公司 Automatic generating method and device for image special effect
CN106887000A (en) * 2017-01-23 2017-06-23 上海联影医疗科技有限公司 The gridding processing method and its system of medical image
CN108280883A (en) * 2018-02-07 2018-07-13 北京市商汤科技开发有限公司 It deforms the generation of special efficacy program file packet and deforms special efficacy generation method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110070496A (en) * 2019-02-28 2019-07-30 北京字节跳动网络技术有限公司 Generation method, device and the hardware device of image special effect
CN110996183A (en) * 2019-07-12 2020-04-10 北京达佳互联信息技术有限公司 Video abstract generation method, device, terminal and storage medium
CN110996183B (en) * 2019-07-12 2022-01-21 北京达佳互联信息技术有限公司 Video abstract generation method, device, terminal and storage medium
CN110503724A (en) * 2019-08-19 2019-11-26 北京猫眼视觉科技有限公司 A kind of AR expression resource construction management system and method based on human face characteristic point
CN112991146A (en) * 2019-12-17 2021-06-18 上海挚上文化传媒有限公司 Automatic special effect generation system and method
CN113643411A (en) * 2020-04-27 2021-11-12 北京达佳互联信息技术有限公司 Image special effect adding method and device, electronic equipment and storage medium
CN111753784A (en) * 2020-06-30 2020-10-09 广州酷狗计算机科技有限公司 Video special effect processing method and device, terminal and storage medium
WO2022007627A1 (en) * 2020-07-10 2022-01-13 北京字节跳动网络技术有限公司 Method and apparatus for implementing image special effect, and electronic device and storage medium
WO2023273930A1 (en) * 2021-06-29 2023-01-05 北京字跳网络技术有限公司 Method and apparatus for processing rotation animation special effect, and readable storage medium
CN113744127A (en) * 2021-08-27 2021-12-03 北京百度网讯科技有限公司 Method and device for realizing beautiful pupil, electronic equipment and readable storage medium
CN114187169A (en) * 2021-12-10 2022-03-15 北京字节跳动网络技术有限公司 Method, device and equipment for generating video special effect package and storage medium

Similar Documents

Publication Publication Date Title
CN108958610A (en) Special efficacy generation method, device and electronic equipment based on face
CN109064387A (en) Image special effect generation method, device and electronic equipment
WO2020233464A1 (en) Model training method and apparatus, storage medium, and device
CN109729426B (en) Method and device for generating video cover image
CN110163054A (en) A kind of face three-dimensional image generating method and device
JP7168694B2 (en) 3D special effect generation method, device and electronic device with human face
KR101306221B1 (en) Method and apparatus for providing moving picture using 3d user avatar
CN109064388A (en) Facial image effect generation method, device and electronic equipment
CN105518708A (en) Method and equipment for verifying living human face, and computer program product
CN109034063A (en) Plurality of human faces tracking, device and the electronic equipment of face special efficacy
CN108536293B (en) Man-machine interaction system, man-machine interaction method, computer-readable storage medium and interaction device
WO2020151491A1 (en) Image deformation control method and device and hardware device
CN109003224A (en) Strain image generation method and device based on face
CN109324688A (en) Exchange method and system based on visual human's behavioral standard
WO2023279713A1 (en) Special effect display method and apparatus, computer device, storage medium, computer program, and computer program product
CN109343695A (en) Exchange method and system based on visual human's behavioral standard
CN108920368A (en) The method, apparatus and electronic equipment of data test
CN114359517A (en) Avatar generation method, avatar generation system, and computing device
CN108921798A (en) The method, apparatus and electronic equipment of image procossing
CN108681398A (en) Visual interactive method and system based on visual human
CN112149599B (en) Expression tracking method and device, storage medium and electronic equipment
CN108961314A (en) Moving image generation method, device, electronic equipment and computer readable storage medium
CN105809612A (en) Method of transforming image into expression and intelligent terminal
CN111134686A (en) Human body disease determination method and device, storage medium and terminal
CN108989681A (en) Panorama image generation method and device

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