CN108830787A - The method, apparatus and electronic equipment of anamorphose - Google Patents
The method, apparatus and electronic equipment of anamorphose Download PDFInfo
- Publication number
- CN108830787A CN108830787A CN201810633790.5A CN201810633790A CN108830787A CN 108830787 A CN108830787 A CN 108830787A CN 201810633790 A CN201810633790 A CN 201810633790A CN 108830787 A CN108830787 A CN 108830787A
- Authority
- CN
- China
- Prior art keywords
- image
- deformation
- parameter
- mapping table
- key point
- 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
- 238000000034 method Methods 0.000 title claims abstract description 76
- 238000013507 mapping Methods 0.000 claims abstract description 83
- 238000012545 processing Methods 0.000 claims abstract description 42
- 230000008569 process Effects 0.000 claims abstract description 28
- 239000000284 extract Substances 0.000 claims abstract description 5
- 238000012805 post-processing Methods 0.000 claims description 13
- 238000004891 communication Methods 0.000 claims description 7
- 238000000605 extraction Methods 0.000 claims description 6
- 230000001052 transient effect Effects 0.000 claims description 5
- 230000003321 amplification Effects 0.000 abstract description 4
- 238000004364 calculation method Methods 0.000 abstract description 4
- 238000003199 nucleic acid amplification method Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 11
- 230000008859 change Effects 0.000 description 9
- 230000001815 facial effect Effects 0.000 description 9
- 238000004422 calculation algorithm Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000008901 benefit Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 241000208340 Araliaceae Species 0.000 description 3
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 3
- 235000003140 Panax quinquefolius Nutrition 0.000 description 3
- 235000008434 ginseng Nutrition 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 238000002203 pretreatment Methods 0.000 description 2
- 238000012800 visualization Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000003796 beauty Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 238000004925 denaturation Methods 0.000 description 1
- 230000036425 denaturation Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000029052 metamorphosis Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- G06T3/06—
Abstract
The embodiment of the present disclosure discloses the method, apparatus and electronic equipment of a kind of anamorphose, is related to field of image processing.Wherein, image distortion method, including:Extract the key point in image;Mapping table is established based on the key point and deformation configuration parameter;Deformation process is carried out to described image based on the mapping table.By establishing mapping table, image amplification, diminution or dragging etc. are handled according to mapping table, corresponding deformed image is obtained to be based on mapping table to original image, because deformed pixel is all to be obtained on the basis of preimage vegetarian refreshments by mapping table, therefore its positional relationship accuracy is higher, there is no the problems for causing the relative position error big because of interpolation calculation, to reach the problem of reducing distortion inaccuracy.
Description
Technical field
This disclosure relates to field of image processing more particularly to a kind of method and apparatus of anamorphose.
Background technique
With the development of computer technology, the application range of electronic equipment has obtained extensive raising, such as can pass through
Electronic equipment listens to music, plays game, chats on line and take pictures.For the shooting technology of electronic equipment, 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.
Anamorphose (Image Warping) refers to that by anamorphose be specific shape, and in recent years, digital picture deforms
Through obtaining many achievements, largely it is derived from and is widely applied.Have some applied to " art " field, such as computer animation.
Image Warping is the basis of two dimensional image deformation, and such as the smooth transition between two key frames, other application such as face is dynamic
Draw the Free Transform etc. with image.
Summary of the invention
In the prior art in anamorphose, the method for use mostly uses greatly interpolation algorithm, such as IDW algorithm and RBF
Algorithm.But interpolation calculation is used, can be bigger in the presence of individual point distortion, so as to cause the big problem of distortion inaccuracy.
In view of this, the embodiment of the present disclosure provides the method, apparatus and electronic equipment of a kind of anamorphose, at least partly
Solution problems of the prior art.
In a first aspect, the embodiment of the present disclosure provides a kind of method of anamorphose, including:
Extract the key point in image;
Mapping table is established based on the key point and deformation configuration parameter;
Deformation process is carried out to described image based on the mapping table.
It is described to be built based on the key point and deformation configuration parameter as a kind of specific implementation of the embodiment of the present disclosure
Vertical mapping table, including:
The parameter for obtaining the key point before deforming, obtains the first parameter;
The parameter for obtaining the key point after deforming, obtains the second parameter;
It is calculated based on second parameter and first parameter, obtains mapping relations;
Obtain the deformation configuration parameter;
Mapping table is established based on the mapping relations and the deformation configuration parameter.
As a kind of specific implementation of the embodiment of the present disclosure, the deformation obtained in deformation configuration parameter configures ginseng
Number, including:
Deformed region, deformation position, deformation type or deformation extent.
As a kind of specific implementation of the embodiment of the present disclosure, the deformation configuration parameter, according to the opposite of key point
Position configuration.
As a kind of specific implementation of the embodiment of the present disclosure, it is described based on the mapping table to described image into
Before row deformation process, further include:
Described image is pre-processed.
As a kind of specific implementation of the embodiment of the present disclosure, it is described based on the mapping table to described image into
After row deformation process, further include:
Deformation post-processing is carried out to deformed image.
As a kind of specific implementation of the embodiment of the present disclosure, pre-process, including:
Addition filter processing is executed to described image;And/or
Denoising is executed to described image;And/or
Addition paster processing is executed to described image;And/or
U.S. face processing is executed to described image.
As a kind of specific implementation of the embodiment of the present disclosure, the deformation post-processing, including:
Superposition processing is executed to described image;And/or
Addition paster processing is executed to described image;And/or
Mirror image processing is executed to described image.
As a kind of specific implementation of the embodiment of the present disclosure, described image is being carried out based on the deformation map table
After deformation process, further include:
Preview or video recording are carried out to the image after deformation process.
Second aspect, the embodiment of the present disclosure additionally provide a kind of device of anamorphose, including:
Extraction module, for extracting the key point in image;
Mapping block, for establishing mapping table based on the key point and deformation configuration parameter;
Deformation module, for carrying out deformation process to described image based on the mapping table
As a kind of specific implementation of the embodiment of the present disclosure, the mapping block, including:
First gain of parameter module obtains the first parameter for obtaining the parameter for deforming the preceding key point;
Second gain of parameter module, for obtain deformation after the key point parameter, obtain the second parameter;
Computing module:For being calculated based on the second parameter and the first parameter, mapping relations are obtained;
Parameter acquisition module:Configuration parameter is deformed for obtaining;
Mapping table establishes module:For establishing mapping relations based on the mapping relations and the deformation configuration parameter
Table.
As a kind of specific implementation of the embodiment of the present disclosure, the deformation obtained in deformation configuration parameter configures ginseng
Number, including:
The deformation configuration parameter includes one of deformed region, deformation position, deformation type and deformation extent or more
Kind.
As a kind of specific implementation of the embodiment of the present disclosure, the deformation configuration parameter, according to the opposite of key point
Position configuration.
As a kind of specific implementation of the embodiment of the present disclosure, further include:
Preprocessing module, for being pre-processed to the described image before the deformation module deformation process.
As a kind of specific implementation of the embodiment of the present disclosure, further include:
Post-processing module, for carrying out deformation post-processing to the deformed image of the deformation module.
As a kind of specific implementation of the embodiment of the present disclosure, the pretreatment, including:
Addition filter processing is executed to described image;And/or
Denoising is executed to described image;And/or
Addition paster processing is executed to described image;And/or
U.S. face processing is executed to described image.
As a kind of specific implementation of the embodiment of the present disclosure, the deformation post-processing, including:
Superposition processing is executed to described image;And/or
Addition paster processing is executed to described image;And/or
Mirror image processing is executed to described image.
As a kind of specific implementation of the embodiment of the present disclosure, further include:
Show logging modle:Preview or video recording are carried out to the image after deformation process.
The third aspect, the embodiment of the present disclosure additionally provide a kind of electronic equipment, which 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
A processor executes, so that the method that at least one described processor is able to carry out any anamorphose of first aspect.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of non-transient computer readable storage medium, the non-transient meter
Calculation machine readable storage medium storing program for executing stores computer instruction, and the computer instruction is for making computer perform claim that first aspect be required to appoint
The method of anamorphose described in one.
Method, apparatus, electronic equipment and the non-transient computer readable storage for the anamorphose that the embodiment of the present disclosure provides
Medium, the wherein method of the anamorphose:By establishing mapping table, according to mapping table to image amplification, reduce or
Dragging etc. is handled, so that being based on mapping table to original image obtains corresponding deformed image, because of deformed picture
Vegetarian refreshments is all to be obtained on the basis of preimage vegetarian refreshments by mapping table, therefore its positional relationship accuracy is higher, does not deposit
In the problem for causing the relative position error big because of interpolation calculation, to reach the problem of reducing distortion inaccuracy.
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
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present disclosure
Figure is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present disclosure, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of flow chart of the method for anamorphose that the embodiment of the present disclosure provides;
Fig. 2 is the stream that mapping table is established based on the key point and deformation configuration parameter that the embodiment of the present disclosure provides
Cheng Tu;
Fig. 3 is a kind of schematic diagram for mapping relations that the embodiment of the present disclosure provides;
Fig. 4 is a kind of anamorphose treatment process block diagram that the embodiment of the present disclosure provides;
Fig. 5 is a kind of functional block diagram of the device for anamorphose that the embodiment of the present disclosure provides;
Fig. 6 is the functional block diagram for a kind of electronic equipment that the embodiment of the present disclosure provides;
Fig. 7 is a kind of schematic diagram for computer readable storage medium that the embodiment of the present disclosure provides;
Fig. 8 is a kind of functional block diagram for terminal that the embodiment of the present disclosure provides.
Specific embodiment
The embodiment of the present disclosure is described in detail with reference to the accompanying drawing.
It will be appreciated that illustrating embodiment of the present disclosure below by way of specific specific example, those skilled in the art can
Understand other advantages and effect of the disclosure easily by content disclosed by this specification.Obviously, described embodiment is only
It is only disclosure a part of the embodiment, instead of all the embodiments.The disclosure can also pass through in addition different specific implementations
Mode is embodied or practiced, and the various details in this specification can also be based on different viewpoints and application, without departing from this
Disclosed spirit is lower to carry out various modifications or alterations.It should be noted that in the absence of conflict, following embodiment and embodiment
In feature can be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creativeness
Every other embodiment obtained under the premise of labour 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 make it easy to understand, illustratively being explained triangulation first.The basic principle of triangulation is:It must
In the presence of and there is only a kind of algorithm, triangulation is carried out to the scattered point set on a plane domain, so that all triangles are most
The sum of small interior angle maximum.Meet the triangulation methodology of this condition, referred to as Delaunay Triangulation.Due to this method
It is widely used with a series of unique properties, thus in fields such as computer graphical processing, 3D modelings.
Anamorphose be image is amplified, reduce or is pulled and each operative combination caused by image shape change
Change.
Anamorphose is a common method in image procossing, it refers to a sub-picture according to certain rules and methods
Become another sub-picture.Such as image is amplified, reduce or is pulled and each operative combination.
Image can exist in the form of a bitmap in computer, for bitmap, an image can be regarded as by
The set of many pixels, anamorphose namely convert the position of these pixels.
Referring to Fig. 1, the embodiment of the present disclosure provides a kind of method of anamorphose.The method of the anamorphose, including it is as follows
Step:
S101:Extract the key point in image.
The extraction of image key points is detected by characteristic point of the algorithm to image, and will have according to testing result
Representational feature point extraction, which comes out, is used as key point.Many algorithms, such as SURF can be used by extracting the key point in image
Algorithm is not defined the extraction algorithm of image key points herein.
S102:Mapping table is established based on the key point and deformation configuration parameter.
Deformation configuration parameter is configured according to the requirement to anamorphose.By providing visual parameter input
Interface can be configured deformation configuration parameter, then be obtained according to the deformation configuration parameter and key point parameter that are provided with
Before to crucial point deformation and deformed mapping relations.
As an example, visual input interface can be input frame, can be and inputs accordingly in input frame
Numerical value completes setting, is also possible to that pre-set parameter is selected to complete setting, or by the way that adjustable button is arranged,
It completes to be arranged by actuating button.
Before obtaining crucial point deformation and after deformed mapping relations, the pixel except key point can be according to it
With the positional relationship of key point, calculate deformation before and deformed mapping relations, thus before obtaining each pixel point deformation and
Deformed mapping relations deform preceding and deformed mapping table to establish.
S103:Deformation process is carried out to described image based on the mapping table.
In anamorphose, by the position in image before being deformed of image slices vegetarian refreshments after mapping table inquiry deformation,
Then the pixel value at pixel position before deforming in image is written to after deformation at image pixel point position, that is, is realized
The deformation of image.
As an application scenarios of the disclosure, face can be deformed.At this point, carrying out face characteristic on the image
Point extracts, and is equivalent to find corresponding position coordinate of each human face characteristic point in facial image, i.e. positioning feature point.This mistake
Journey needs to carry out based on the corresponding feature of characteristic point.Only obtain the characteristics of image for capableing of clear identification characteristics point, and foundation
This feature carries out appropriate search comparison in the picture, and precise positioning feature point position can be just achieved on the image.
According to another embodiment of the disclosure, step S102 is based on the key point and deformation configuration parameter establishes mapping relations
Table can also include the following steps:
S201:The parameter for obtaining the key point before deforming, obtains the first parameter.
Specifically, the coordinate of key point before anamorphose can be obtained in image coordinate by constructing image coordinate, this
When the first parameter can be the coordinate of key point before anamorphose.
S202:The parameter for obtaining the key point after deforming, obtains the second parameter.
Using the method similar with step S201, the coordinate of key point after obtaining deformation is obtained, and using the coordinate as change
Relevant second parameter of key point after property.
S203:It is calculated based on second parameter and first parameter, obtains mapping relations.
The mapping relations between the first parameter and the second parameter can be calculated using various ways.Fig. 3 gives a kind of meter
Calculate the illustrative methods of mapping relations.As shown in figure 3, input picture is the image before deforming, image, that is, deformed figure is exported
Picture, (x0, y0) indicate that the characteristic point coordinate (for example, first parameter) before mapping, (x, y) indicate that the characteristic point after mapping is sat
It marks (for example, second parameter), MAP (x, y) is mapping table.
The calculating of mapping relations can be carried out using different mapping methods.Divide from the direction of mapping, can use
Two kinds of basic mapping methods:Direct mapping and reverse Mapping.Direct mapping is the image before deformation, before deformation
Corresponding mapping point in image after each point searching deformation in image, and inverse mapping is exactly the opposite.In Direct mapping,
Multiple points in image before deformation may be mapped to the same point after deformation in image, cause to compute repeatedly;Moreover, such as
If fruit is not surjection from the mapping of image after the image to deformation before deformation, it is possible to make certain points after deformation in image
Less than correspondence, cavity is formed.Reverse Mapping does not have these problems, and the disclosure preferably takes reverse Mapping.
S204:Obtain the deformation configuration parameter.
Configuration parameter is used to characterize the variation effect (for example, amplification or the ratio stretched etc.) between former and later two images,
Configuration parameter can be it is pre-set, at this point it is possible to directly read the configuration parameter pre-set.
Alternatively situation, deformation configuration parameter can be the personalization carried out in visualization input interface and set
It sets, reads personal settings parameter, the deformation configuration parameter can be obtained.
S205:Mapping table is established based on the mapping relations and the deformation configuration parameter.
The mapping relations that are obtained based on step 203 and deformation configuration parameter to before being deformed image and deformation after
The each pixel of image mapping table.Specifically, mapping table can be a deformation matrix, which can
To be used to characterize the mapping relations before deformed after image and denaturation between image.
According to another embodiment of the disclosure, which may include:Deformed region, deformation position, deformation class
Type or deformation extent.
These parameters can be inputted or be adjusted by visual mode.For example, can be on visualization interface
Parameter attribute window is set, includes the input dialogue frame of parameter in property window, can choose or input in input dialogue frame
Corresponding parameter, to complete the setting to deformed region, deformation position, deformation type or deformation extent parameter.Wherein deform
Type includes amplification, reduction operation, and deformation extent is the comparative quantity before characterizing anamorphose with change in shape size after deformation, such as
Nose is amplified, 1 times can be amplified, 10 times can also be amplified.
One in addition to deformed region, deformation position, deformation type or deformation extent parameter only deformation configuration parameter is shown
Example property citing, in addition to this it is possible to according to deformation need that other parameters are arranged.
In order to make deformed image seem eurythmy, deformation configuration parameter can be dynamically adjusted.According to the disclosure
Another embodiment, deformation configuration parameter can be according to the key point of target object on image (for example, nose on facial image)
Relative position configuration.
Specifically, the parameters such as region, position of deformation are set according to the relative position of key point, such as key point
Relative position is remote, then biggish range can be set in deformed region, and the relative position such as key point is close, then can be by deformed area
Lesser range is arranged in domain.
For example, for the nose on facial image, if nose is smaller, then the relative position of its key point is also relatively close,
And when as larger such as nose, the relative position of key point is then farther out.When setting deforms configuration parameter, if the parameter of deformed region
It is fixed, then lesser nose is all chosen, and biggish nose, a part is only selected, can seem change in this way
The image of shape not enough coordinates or proportion of deformation distortion.In order to all choose biggish nose, then need according to key point
The parameter of relative position adjustment deformed region.
According to another embodiment of the disclosure, before carrying out deformation process to described image based on the mapping relations, including:It is right
Described image is pre-processed.
The pretreatment may include:The processing of addition filter is executed to described image, executes denoising to described image, right
Described image executes the processing of addition paster, executes one of U.S. face processing or a variety of to described image.In addition to this, the pre- place
Reason can also be other kinds of image procossing mode.
It in addition to this, can also include such as after step is based on the mapping relations to described image progress deformation process
Lower step:Deformation post-processing is carried out to deformed image.
The deformation post-processes:Superposition processing is executed to described image, described image is executed at addition paster
Reason executes one of mirror image processing or a variety of to described image.Certainly, deformation post-processing can also be other kinds of figure
As processing mode.
According to another embodiment of the disclosure, based on the deformation map table to described image carry out deformation process step it
Afterwards, further include:Preview or video recording are carried out to the image after deformation process.
After carrying out deformation process to image, default is preview state, can be carried out in this way to the effect after anamorphose
Live preview.And if selection video recording, proceed to video state by selecting corresponding position, key or virtual key,
It records a video to the image of deformation.
The image distortion method of the disclosure is when carrying out deformation process to video, firstly the need of grabbing before extracting key point
The key frame in video is taken, deformation process then is carried out to key frame.
Alternatively mode, in order to improve the efficiency of anamorphose, when carrying out anamorphose processing, such as Fig. 4 institute
Show, key point and progress synchronous when deformation pre-treatment is extracted, by taking Facial metamorphosis as an example, in camera (camera)
Face is divided into two-way and handles face, all the way to extract face key point, then in face key point and deformation configuration ginseng
Deformation map table is established on the basis of number, another way executes the pretreatments such as filter, denoising, paster or U.S. face to face, then in advance
Treated, and facial image is deformed by inquiring deformation map table, so that deformed facial image is obtained, then to change
The processing such as the facial image after shape is overlapped, paster or mirror image carry out deformed facial image real by default
When preview, or by selection recording function, record a video to deformed facial image.
The disclosure additionally provides a kind of device of anamorphose, including:
Extraction module 501, for extracting the key point in image;
Mapping block 502, for establishing mapping table based on the key point and deformation configuration parameter;
Deformation module 503, for carrying out deformation process to described image based on the mapping table
According to another embodiment of the disclosure, mapping block 502, including:
First gain of parameter module 5021 obtains the first parameter for obtaining the parameter for deforming the preceding key point;
Second gain of parameter module 5022, for obtain deformation after the key point parameter, obtain the second parameter;
Computing module 5023:For being calculated based on the second parameter and the first parameter, mapping relations are obtained;
Parameter acquisition module 5024:Configuration parameter is deformed for obtaining;
Mapping table establishes module 5025:For establishing mapping based on the mapping relations and the deformation configuration parameter
Relation table.
According to another embodiment of the disclosure, the deformation configuration parameter include deformed region, deformation position, deformation type and
One of deformation extent is a variety of.
According to another embodiment of the disclosure, the deformation configuration parameter is configured according to the relative position of key point.
According to another embodiment of the disclosure, further include:Preprocessing module 505, for the deformation module deformation process
Preceding described image is pre-processed.
Pretreatment, including:Denoising is executed to described image;And/or addition paster processing is executed to described image;
And/or U.S. face processing is executed to described image.Explanation herein is not defined pretreatment, in addition to above-mentioned several processing sides
It can also include the mode of other pairs of image procossings except formula.
According to another embodiment of the disclosure, further include:Post-processing module 506, for deformed to the deformation module
Image carries out deformation post-processing.
Deformation post-processing, including:Superposition processing is executed to described image;And/or described image is executed at addition paster
Reason;And/or mirror image processing is executed to described image.Explanation herein is not defined deformation post-processing, in addition to above-mentioned several
It can also include the mode of other pairs of image procossings except kind processing mode.
According to another embodiment of the disclosure, further include:Show logging modle 504:Image after deformation process is carried out pre-
It lookes at or records a video.
The overall schematic of the device of anamorphose is as shown in Figure 5.
Fig. 6 is the hardware block diagram for illustrating electronic equipment according to an embodiment of the present disclosure.As shown in fig. 6, according to the disclosure
The electronic equipment 60 of embodiment includes memory 61 and processor 62.
The memory 61 is for storing non-transitory computer-readable instruction.Specifically, memory 61 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 62 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 60 to execute desired function.?
In one embodiment of the disclosure, which makes for running the computer-readable instruction stored in the memory 61
Obtain all or part of the steps that the electronic equipment 60 executes the anamorphose of each embodiment of the disclosure above-mentioned.
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. 7 is the schematic diagram for illustrating computer readable storage medium according to an embodiment of the present disclosure.As shown in Fig. 7, root
According to the computer readable storage medium 70 of the embodiment of the present disclosure, it is stored thereon with non-transitory computer-readable instruction 71.When this
When non-transitory computer-readable instruction 71 is run by processor, the complete of the anamorphose of each embodiment of the disclosure above-mentioned is executed
Portion or part steps.
Above-mentioned computer readable storage medium 70 includes but is not limited to:Optical storage media (such as:CD-ROM and DVD),
Magnetic-optical storage medium (such as:MO), magnetic storage medium (such as:Tape or mobile hard disk), with built-in rewritable non-volatile
Property memory media (such as:Storage card) and with built-in ROM media (such as:ROM box).
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. 8 is the hardware structural diagram for illustrating the terminal device according to the embodiment of the present disclosure.As shown in figure 8, the terminal
80 include above-mentioned anamorphose Installation practice.
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 8, the terminal 80
It may include power supply unit 81, wireless communication unit 82, A/V (audio/video) input unit 83, user input unit 84, sense
Survey unit 85, interface unit 86, controller 87, output unit 88 and storage unit 89 etc..Fig. 8 is shown with various groups
The terminal of part can also alternatively be implemented more or less it should be understood that being not required for implementing all components shown
Component.
Wherein, wireless communication unit 82 allows the radio communication between terminal 80 and wireless communication system or network.A/V
Input unit 83 is for receiving audio or video signal.It is defeated that the order that user input unit 84 can be inputted according to user generates key
Enter data with the various operations of controlling terminal equipment.Sensing unit 85 detects the current state of terminal 80, the position of terminal 80, use
Family is mobile for the acceleration or deceleration of the orientation of the presence or absence of touch input of terminal 80, terminal 80, terminal 80 and direction etc., and
And generate order or the signal for the operation for being used for controlling terminal 80.Interface unit 86 is used as at least one external device (ED) and terminal
80 connection can by interface.Output unit 88 is configured to provide output signal with vision, audio and/or tactile manner.
Storage unit 89 can store the software program etc. of the processing and control operation that are executed by controller 87, or can be temporarily
Store oneself data through exporting or will export.Storage unit 89 may include the storage medium of at least one type.Moreover, eventually
End 80 can cooperate with the network storage device for the store function for executing storage unit 89 by network connection.Controller 87 is usual
The overall operation of controlling terminal equipment.In addition, controller 87 may include for reproducing or the multimedia of multimedia playback data
Module.Controller 87 can be drawn the handwriting input executed on the touchscreen or picture defeated with execution pattern identifying processing
Enter to be identified as character or image.Power supply unit 81 receives external power or internal power and is provided under the control of controller 87
Operate electric power appropriate needed for each element and component.
Such as computer software, hardware can be used for the various embodiments for the anamorphose that the disclosure proposes or its is any
Combined computer-readable medium is implemented.Hardware is implemented, the various embodiment party for the image distortion method that the disclosure proposes
Formula can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device
(DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, Wei Chu
Reason device is designed to execute at least one of electronic unit of function described herein to implement, in some cases, this public affairs
The various embodiments for opening the image distortion method of proposition can be implemented in controller 87.For software implementation, the disclosure is mentioned
The various embodiments of image distortion method out can be with the individual software mould that allows to execute at least one functions or operations
Block is implemented.Software code can be implemented by the software application (or program) write with any programming language appropriate,
Software code can store in storage unit 89 and be executed by controller 87.
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,.
In the disclosure, relational terms such as first and second and the like be used merely to by an entity or operation with
Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities
The relationship or sequence on border, device, device involved in the disclosure, equipment, system block diagram be only used as illustrative example
And it is not intended to require or imply to be attached in such a way that box illustrates, arrange, configure.Such as those skilled in the art
What member will be recognized, it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as " comprising ",
The word of "comprising", " having " etc. is open vocabulary, is referred to " including but not limited to ", and can be used interchangeably with it.Here institute
The vocabulary "or" and "and" used refers to vocabulary "and/or", and can be used interchangeably with it, unless context be explicitly indicated be not as
This.Vocabulary " such as " used herein above 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 (12)
1. a kind of image distortion method, which is characterized in that including:
Extract the key point in image;
Mapping table is established based on the key point and deformation configuration parameter;
Deformation process is carried out to described image based on the mapping table.
2. image distortion method according to claim 1, which is characterized in that described based on the key point and deformation configuration
Parameter establishes mapping table, including:
The parameter for obtaining the key point before deforming, obtains the first parameter;
The parameter for obtaining the key point after deforming, obtains the second parameter;
It is calculated based on second parameter and first parameter, obtains mapping relations;
Obtain the deformation configuration parameter;
Mapping table is established based on the mapping relations and the deformation configuration parameter.
3. image distortion method according to claim 1, which is characterized in that the deformation configuration parameter includes deformed area
One of domain, deformation position, deformation type and deformation extent are a variety of.
4. image distortion method according to claim 3, it is characterised in that:
The deformation configuration parameter is configured according to the relative position of key point.
5. image distortion method according to claim 1, which is characterized in that described to be based on the mapping table to described
Before image carries out deformation process, further include:
Described image is pre-processed.
6. image distortion method according to claim 5, which is characterized in that described to be based on the mapping table to described
After image carries out deformation process, further include:
Deformation post-processing is carried out to deformed image.
7. image distortion method according to claim 6, which is characterized in that the pretreatment, including:
Addition filter processing is executed to described image;And/or
Denoising is executed to described image;And/or
Addition paster processing is executed to described image;And/or
U.S. face processing is executed to described image.
8. image distortion method according to claim 7, which is characterized in that the deformation post-processing, including:
Superposition processing is executed to described image;And/or
Addition paster processing is executed to described image;And/or
Mirror image processing is executed to described image.
9. image distortion method according to claim 1, which is characterized in that described to be based on the deformation map table to described
After image carries out deformation process, further include:
Preview or video recording are carried out to the image after deformation process.
10. a kind of anamorphose device, which is characterized in that including:
Extraction module, for extracting the key point in image;
Mapping block, for establishing mapping table based on the key point and deformation configuration parameter;
Deformation module, for carrying out deformation process to described image based on the mapping table.
11. 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 any image distortion method of claim 1-9.
12. 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 distortion method of 1-9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810633790.5A CN108830787A (en) | 2018-06-20 | 2018-06-20 | The method, apparatus and electronic equipment of anamorphose |
PCT/CN2018/123650 WO2019242271A1 (en) | 2018-06-20 | 2018-12-25 | Image warping method and apparatus, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810633790.5A CN108830787A (en) | 2018-06-20 | 2018-06-20 | The method, apparatus and electronic equipment of anamorphose |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108830787A true CN108830787A (en) | 2018-11-16 |
Family
ID=64142864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810633790.5A Pending CN108830787A (en) | 2018-06-20 | 2018-06-20 | The method, apparatus and electronic equipment of anamorphose |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108830787A (en) |
WO (1) | WO2019242271A1 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109741277A (en) * | 2018-12-29 | 2019-05-10 | 广州华多网络科技有限公司 | Image processing method, device, storage medium and server |
CN110069195A (en) * | 2019-01-31 | 2019-07-30 | 北京字节跳动网络技术有限公司 | Image pulls deformation method and device |
CN110070479A (en) * | 2019-01-31 | 2019-07-30 | 北京字节跳动网络技术有限公司 | Anamorphose pulls independent positioning method and device |
WO2019242271A1 (en) * | 2018-06-20 | 2019-12-26 | 北京微播视界科技有限公司 | Image warping method and apparatus, and electronic device |
CN110738598A (en) * | 2019-08-28 | 2020-01-31 | 咪咕文化科技有限公司 | Image adaptation method, electronic device and storage medium |
CN110837332A (en) * | 2019-11-13 | 2020-02-25 | 北京字节跳动网络技术有限公司 | Face image deformation method and device, electronic equipment and computer readable medium |
CN111292245A (en) * | 2018-12-07 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Image processing method and device |
CN111862105A (en) * | 2019-04-29 | 2020-10-30 | 北京字节跳动网络技术有限公司 | Image area processing method and device and electronic equipment |
WO2021000414A1 (en) * | 2019-07-03 | 2021-01-07 | 平安科技(深圳)有限公司 | Image generation method and apparatus, computer device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011152842A1 (en) * | 2010-06-01 | 2011-12-08 | Hewlett-Packard Development Company, L.P. | Face morphing based on learning |
CN102393951A (en) * | 2011-06-30 | 2012-03-28 | Tcl集团股份有限公司 | Deformation method of human face model |
CN105184735A (en) * | 2014-06-19 | 2015-12-23 | 腾讯科技(深圳)有限公司 | Portrait deformation method and device |
CN105205779A (en) * | 2015-09-15 | 2015-12-30 | 厦门美图之家科技有限公司 | Eye image processing method and system based on image morphing and shooting terminal |
CN105956997A (en) * | 2016-04-27 | 2016-09-21 | 腾讯科技(深圳)有限公司 | Image deformation treatment method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751689B (en) * | 2009-09-28 | 2012-02-22 | 中国科学院自动化研究所 | Three-dimensional facial reconstruction method |
KR20130068193A (en) * | 2011-12-14 | 2013-06-26 | 한국전자통신연구원 | Multi images supplying system and multi images shooting device thereof |
CN107341777B (en) * | 2017-06-26 | 2020-12-04 | 北京小米移动软件有限公司 | Picture processing method and device |
CN108010134A (en) * | 2017-11-29 | 2018-05-08 | 湘潭大学 | A kind of real-time three-dimensional virtual fit method based on mobile terminal |
CN108830787A (en) * | 2018-06-20 | 2018-11-16 | 北京微播视界科技有限公司 | The method, apparatus and electronic equipment of anamorphose |
-
2018
- 2018-06-20 CN CN201810633790.5A patent/CN108830787A/en active Pending
- 2018-12-25 WO PCT/CN2018/123650 patent/WO2019242271A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011152842A1 (en) * | 2010-06-01 | 2011-12-08 | Hewlett-Packard Development Company, L.P. | Face morphing based on learning |
CN102393951A (en) * | 2011-06-30 | 2012-03-28 | Tcl集团股份有限公司 | Deformation method of human face model |
CN105184735A (en) * | 2014-06-19 | 2015-12-23 | 腾讯科技(深圳)有限公司 | Portrait deformation method and device |
CN105205779A (en) * | 2015-09-15 | 2015-12-30 | 厦门美图之家科技有限公司 | Eye image processing method and system based on image morphing and shooting terminal |
CN105956997A (en) * | 2016-04-27 | 2016-09-21 | 腾讯科技(深圳)有限公司 | Image deformation treatment method and device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019242271A1 (en) * | 2018-06-20 | 2019-12-26 | 北京微播视界科技有限公司 | Image warping method and apparatus, and electronic device |
CN111292245A (en) * | 2018-12-07 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Image processing method and device |
CN109741277A (en) * | 2018-12-29 | 2019-05-10 | 广州华多网络科技有限公司 | Image processing method, device, storage medium and server |
CN110069195A (en) * | 2019-01-31 | 2019-07-30 | 北京字节跳动网络技术有限公司 | Image pulls deformation method and device |
CN110070479A (en) * | 2019-01-31 | 2019-07-30 | 北京字节跳动网络技术有限公司 | Anamorphose pulls independent positioning method and device |
CN110069195B (en) * | 2019-01-31 | 2020-06-30 | 北京字节跳动网络技术有限公司 | Image dragging deformation method and device |
CN111862105A (en) * | 2019-04-29 | 2020-10-30 | 北京字节跳动网络技术有限公司 | Image area processing method and device and electronic equipment |
WO2021000414A1 (en) * | 2019-07-03 | 2021-01-07 | 平安科技(深圳)有限公司 | Image generation method and apparatus, computer device and storage medium |
CN110738598A (en) * | 2019-08-28 | 2020-01-31 | 咪咕文化科技有限公司 | Image adaptation method, electronic device and storage medium |
CN110837332A (en) * | 2019-11-13 | 2020-02-25 | 北京字节跳动网络技术有限公司 | Face image deformation method and device, electronic equipment and computer readable medium |
Also Published As
Publication number | Publication date |
---|---|
WO2019242271A1 (en) | 2019-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108830787A (en) | The method, apparatus and electronic equipment of anamorphose | |
WO2020001013A1 (en) | Image processing method and device, computer readable storage medium, and terminal | |
Guo et al. | Image retargeting using mesh parametrization | |
US20210035346A1 (en) | Multi-Plane Model Animation Interaction Method, Apparatus And Device For Augmented Reality, And Storage Medium | |
CN109118579A (en) | The method, apparatus of dynamic generation human face three-dimensional model, electronic equipment | |
CN108986016B (en) | Image beautifying method and device and electronic equipment | |
CN108830892A (en) | Face image processing process, device, electronic equipment and computer readable storage medium | |
CN109034063A (en) | Plurality of human faces tracking, device and the electronic equipment of face special efficacy | |
CN109003224A (en) | Strain image generation method and device based on face | |
CN110119733B (en) | Page identification method and device, terminal equipment and computer readable storage medium | |
CN107209631A (en) | User terminal and its method for displaying image for display image | |
CN105096353B (en) | Image processing method and device | |
US20140232748A1 (en) | Device, method and computer readable recording medium for operating the same | |
EP4113430A1 (en) | Beauty treatment method and device | |
CN111710035A (en) | Face reconstruction method and device, computer equipment and storage medium | |
CN108920368A (en) | The method, apparatus and electronic equipment of data test | |
CN110072046A (en) | Image composition method and device | |
CN106096043A (en) | A kind of photographic method and mobile terminal | |
CN108921798A (en) | The method, apparatus and electronic equipment of image procossing | |
CN109191505A (en) | Static state generates the method, apparatus of human face three-dimensional model, electronic equipment | |
CN113223125B (en) | Face driving method, device, equipment and medium for virtual image | |
CN110533527A (en) | A kind of credit risk dynamic assessment method, system, medium and equipment | |
CN108898551A (en) | The method and apparatus that image merges | |
CN112115954B (en) | Feature extraction method and device, machine readable medium and equipment | |
CN108961314A (en) | Moving image generation method, device, electronic equipment and computer readable storage medium |
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 |