Summary of the invention
The object of the embodiment of the present invention is to provide a kind of fitting method based on mobile terminal, is intended to solve the problem that existing virtual fitting system cannot meet the actual fitting demand of client.
The embodiment of the present invention is achieved in that a kind of fitting method based on mobile terminal, and described method comprises:
Mobile terminal comprises first image of fitting person by camera, local storage file or Network Capture, sets up two-dimensional person's body Model according to described first image;
Acquisition for mobile terminal comprises the second image to be tried on a dress, and according to profile to be tried on a dress, obtains and only comprise the 3rd image to be tried on a dress from described second image;
Mobile terminal carries out the size adjustment of same characteristic features position to described 3rd image according to described two-dimensional person's body Model, generate the 4th image mated with described two-dimensional person's body Model size;
Described 4th imaging importing on described two-dimensional person's body Model, is generated clothes effect figure by mobile terminal.
Another object of the embodiment of the present invention is to provide a kind of fitting method based on mobile terminal, and described method comprises:
Mobile terminal comprises first image of fitting person by camera, local storage file or Network Capture, sets up two-dimensional person's body Model according to described first image;
Acquisition for mobile terminal comprises the second image to be tried on a dress, and according to profile to be tried on a dress, obtains and only comprise the 3rd image to be tried on a dress from described second image;
Mobile terminal carries out the size adjustment of same characteristic features position to described 3rd image according to described two-dimensional person's body Model, generate the 4th image mated with described two-dimensional person's body Model size;
Mobile terminal sets up 3D manikin according to described two-dimensional person's body Model;
Described 4th imaging importing on described 3D manikin, is generated clothes effect figure by mobile terminal.
Another object of the embodiment of the present invention is to provide a kind of fitting device based on mobile terminal, and described device comprises:
Areal model sets up unit, is comprised first image of fitting person for mobile terminal by camera, local storage file or Network Capture, sets up two-dimensional person's body Model according to described first image;
Clothes image acquiring unit, comprises the second image to be tried on a dress for acquisition for mobile terminal, and according to profile to be tried on a dress, obtains and only comprise the 3rd image to be tried on a dress from described second image;
Size matching unit, carries out the size adjustment of same characteristic features position, generates the 4th image mated with described two-dimensional person's body Model size to described 3rd image according to described two-dimensional person's body Model for mobile terminal;
Design sketch generation unit, for mobile terminal by described 4th imaging importing on described two-dimensional person's body Model, generate clothes effect figure.
Another object of the embodiment of the present invention is to provide a kind of fitting device based on mobile terminal, and it is characterized in that, described device comprises:
Areal model sets up unit, is comprised first image of fitting person for mobile terminal by camera, local storage file or Network Capture, sets up two-dimensional person's body Model according to described first image;
Clothes image acquiring unit, comprises the second image to be tried on a dress for acquisition for mobile terminal, and according to profile to be tried on a dress, obtains and only comprise the 3rd image to be tried on a dress from described second image;
Size matching unit, carries out the size adjustment of same characteristic features position, generates the 4th image mated with described two-dimensional person's body Model size to described 3rd image according to described two-dimensional person's body Model for mobile terminal;
Unit set up by 3D model, sets up 3D manikin for mobile terminal according to described two-dimensional person's body Model;
Design sketch generation unit, for mobile terminal by described 4th imaging importing at described 3D manikin, generate clothes effect figure.
Another object of the embodiment of the present invention is to provide a kind of mobile terminal, and described terminal comprises fitting device as above.
Another object of the embodiment of the present invention is to provide a kind of mobile terminal, and described terminal comprises fitting device as above.
The embodiment of the present invention is by setting up two-dimensional person's body Model of fitting person, and the image of the clothes tried on is needed by shooting, extract the topography about clothes and carry out mating and superposing with two-dimensional person's body Model, thus generate final clothes effect figure, achieve the true fitting environmental simulation for fitting person, greatly increase the efficiency of fitting, improve virtual fitting effect.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Present invention utilizes mobile terminal and usually carry the hardware superiority of camera and the portability of mobile terminal, provide a kind of fitting method based on mobile terminal, two-dimensional person's body Model of fitting person is set up by the image obtaining fitting person, and by obtaining the image needing the clothes tried on, extract about topography to be tried on a dress and carry out mating and superposing with two-dimensional person's body Model, thus generate final clothes effect figure, achieve the true fitting environmental simulation for fitting person, greatly increase the efficiency of fitting, improve virtual fitting effect.
It should be noted that, the embodiment of the present invention based on mobile terminal comprise mobile terminal with camera, further, the mobile terminal with touch operation screen can also be comprised, and mobile terminal can based on open systems such as Android.
Fig. 1 shows the realization flow of the fitting method based on mobile terminal that first embodiment of the invention provides, and details are as follows:
In step S101, obtain the first image comprising fitting person, set up two-dimensional person's body Model according to described first image.
As one embodiment of the present of invention, first image of fitting person can be comprised by the camera shooting on mobile terminal.
As other implementations of the embodiment of the present invention, first image also can obtain from the local storage file of mobile terminal, or obtained from network by mobile terminal, such as, the photo being stored in mobile terminal that fitting person takes before adopting oneself, or the downloaded stored photo of oneself is in a network as the first image.
In the present embodiment, after getting the first image comprising fitting person, there is the bodily form features such as obvious head, four limbs, therefore due to human body, by image analysis methods such as feature identification, template matches, can set up according to the first image the two-dimensional person's body Model belonging to fitting person.
As one embodiment of the present of invention, the two-dimensional person's body Model set up can be kept at mobile terminal, for fitting person upper once fit time directly call, to improve the efficiency of fitting.
In step s 102, obtain and comprise the second image to be tried on a dress, and according to profile to be tried on a dress, obtain from described second image and only comprise the 3rd image to be tried on a dress.
In the present embodiment, the second image to be tried on a dress is comprised by the camera shooting on mobile terminal.
As another embodiment of the present invention, the second image also can be downloaded from network by mobile terminal by fitting person and obtain, or is read from the local storage file of mobile terminal by fitting person and obtain.In concrete application, the second image is downloaded situation about obtaining from network and is applicable to user by situations such as mobile terminal accessing shopping websites, and namely user can directly utilize the clothes browsed on shopping website to fit, and determines whether buying with this.
There is due to clothes the shape facilities such as obvious sleeve, neckline, therefore can be extracted the profile of this clothes in the second image by image analysis methods such as feature identification, template matches, and utilize this profile, from the second image, obtain out the 3rd image only comprising clothes.
In step s 103, according to described two-dimensional person's body Model, described 3rd image is carried out to the size adjustment of same characteristic features position, generate the 4th image mated with described two-dimensional person's body Model size.
Due to clothes be through the person upper after be one to one with the position of human body, the neck of the corresponding human body of neckline of such as clothes, the arm of the corresponding human body of sleeve of clothes, therefore can possess same characteristic features position one to one between the 3rd image and the two-dimensional person's body Model set up.Simultaneously, because everyone has, different height is fat or thin waits stature ratio, be through on the different person with dress, all can present different effects because of the difference of stature ratio, therefore, needing the stature feature according to embodying in two-dimensional person's body Model, the 3rd image being carried out to the local directed complete set of size in same characteristic features position, generate the 4th image, mate to make the size of the 4th image and two-dimensional person's body Model.
As one embodiment of the present of invention, after step s 103, can also by detecting the multi-point touch operation of user, the size of the 4th image according to described multi-point touch operation local directed complete set.
Due to the direct size adjustment according to two-dimensional person's body Model, the 3rd image being carried out to same characteristic features position, there is Adjustment precision not high, the situation of detail section Incomplete matching, therefore allow user after having watched clothes effect figure, manually local directed complete set is carried out to the 4th image be superimposed upon on two-dimensional person's body Model.
In concrete realization, can by detecting double click operation or the multiple spot drag operation of user, partial enlargement is carried out to the picture within the scope of user designated area, by detecting the Scalable operation of user to its assigned address, the size that this part carries out local is adjusted again, specific implementation according to the various methods of operating of multi-point touch, can not repeat them here.
In step S104, by described 4th imaging importing on described two-dimensional person's body Model, generate clothes effect figure.
Thus, namely achieve the true environment simulation to the fitting of fitting person's falseness, do not need fitting person in person to try on a dress, just can observe the effect that fitting person puts on clothes, greatly increase fitting efficiency.
As another embodiment of the present invention, after obtaining final clothes effect figure, can, by this clothes effect figure three dimensional stress, clothes effect be strengthened further.
Fig. 2 shows the realization flow of the fitting method based on mobile terminal that second embodiment of the invention provides, in the present embodiment, its step S201 to step S203 is identical to step S103 with the step S101 of first embodiment of the invention respectively, it is after having got the 4th image and two-dimensional person's body Model, by by the 4th imaging importing on the 3D manikin generated by two-dimensional person's body Model, thus generate the design sketch that tries on a dress, details are as follows for its specific implementation flow process:
In step S204, set up 3D manikin according to described two-dimensional person's body Model.
In the present embodiment, utilize the image processing softwares such as 3DMAX or MAYA, the two-dimensional person's body Model obtained in step S201 is converted to 3D manikin.
In step S205, according to the feature locations of human body, for described 3D manikin divides the different bands of position, and a material layers is set up to each band of position.
Due to such as jacket, trousers, etc. different clothes to lay respectively at the diverse location of human body according to its characteristic, and this position is fixed relative to generic clothes, such as, jacket must be the upper part of the body being positioned at human body, and trousers must be the lower parts of the body being positioned at human body, therefore, according to the feature locations of human body, for 3D manikin divides the different bands of position, and a material layers is set up to each band of position, play up upper different material to enable the characteristics of human body position of clothes corresponding to it of trying on.
In the present embodiment, material as above is the real physical attribute of object in virtual middle simulation.Such as color, reflective, transparent etc.
In step S206, by described 4th imaging importing on described 3D manikin.
In step S207, obtain the material characteristic of described 4th image, and described material characteristic is played up in the material layers of the band of position corresponding to the 4th image described in described 3D manikin, generate clothes effect figure.
In the present embodiment, by obtaining the material characteristic of the 4th image, system is automatically by the material layers of the band of position in its material color applying to this 3D manikin corresponding to the 4th image, wherein, the material characteristic of the 4th image can by user according to actual conditions self-defining, also automatically can be distributed by system, in this no limit.
Fig. 3 shows the structure of the fitting device based on mobile terminal that third embodiment of the invention provides, and for convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 3, this fitting device runs in the mobile terminal such as mobile phone, panel computer, for running on the unit of hardware cell, software unit or software and hardware combining in said apparatus, can that includes:
Areal model sets up unit 31, obtains the first image comprising fitting person, sets up two-dimensional person's body Model according to described first image;
Clothes image acquiring unit 32, obtains and comprises the second image to be tried on a dress, and according to profile to be tried on a dress, obtain and only comprise the 3rd image to be tried on a dress from described second image;
Size matching unit 33, carries out the size adjustment of same characteristic features position, generates the 4th image, mate to make described 4th image with described two-dimensional person's body Model size to described 3rd image according to described two-dimensional person's body Model;
Design sketch generation unit 34, by described 4th imaging importing on described two-dimensional person's body Model, generates clothes effect figure.
Also comprise:
Adjustment unit 35, detects the multi-point touch operation of user, the size of the 4th image according to described multi-point touch operation local directed complete set.
Fig. 4 shows the structure of the fitting device based on mobile terminal that fourth embodiment of the invention provides, and for convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 4, this fitting device runs in the mobile terminal such as mobile phone, panel computer, for running on the unit of hardware cell, software unit or software and hardware combining in said apparatus, can that includes:
Areal model sets up unit 41, obtains the first image comprising fitting person, sets up two-dimensional person's body Model according to described first image;
Clothes image acquiring unit 42, obtains and comprises the second image to be tried on a dress, and according to profile to be tried on a dress, obtain and only comprise the 3rd image to be tried on a dress from described second image;
Size matching unit 43, carries out the size adjustment of same characteristic features position, generates the 4th image, mate to make described 4th image with described two-dimensional person's body Model size to described 3rd image according to described two-dimensional person's body Model;
Unit 44 set up by 3D model, sets up 3D manikin according to described two-dimensional person's body Model;
Design sketch generation unit 45, by described 4th imaging importing on described 3D manikin, generates clothes effect figure.
Wherein, design sketch generation unit 45 specifically comprises:
Band of position division unit 451, according to the feature locations of human body, for described 3D manikin divides the different bands of position, and sets up a material layers for each band of position;
Superpositing unit 452, by described 4th imaging importing on described 3D manikin;
Rendering unit 453, for obtaining the material characteristic of described 4th image, and plays up in the material layers of the band of position corresponding to the 4th image described in described 3D manikin by described material characteristic, generate clothes effect figure.
The embodiment of the present invention is by setting up two-dimensional person's body Model of fitting person, and by obtaining the image needing the clothes tried on, extract the topography about clothes and carry out mating and superposing with two-dimensional person's body Model, thus generate final clothes effect figure, achieve the true fitting environmental simulation for fitting person, greatly increase the efficiency of fitting, improve virtual fitting effect.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.