CN105303619B - A kind of sequence image generation method and mobile terminal - Google Patents

A kind of sequence image generation method and mobile terminal Download PDF

Info

Publication number
CN105303619B
CN105303619B CN201510708907.8A CN201510708907A CN105303619B CN 105303619 B CN105303619 B CN 105303619B CN 201510708907 A CN201510708907 A CN 201510708907A CN 105303619 B CN105303619 B CN 105303619B
Authority
CN
China
Prior art keywords
default
angle
model
shooting
distance
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.)
Active
Application number
CN201510708907.8A
Other languages
Chinese (zh)
Other versions
CN105303619A (en
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.)
Shenzhen Landsky Network Technology Co Ltd
Original Assignee
Shenzhen Landsky Network 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 Shenzhen Landsky Network Technology Co Ltd filed Critical Shenzhen Landsky Network Technology Co Ltd
Priority to CN201510708907.8A priority Critical patent/CN105303619B/en
Publication of CN105303619A publication Critical patent/CN105303619A/en
Application granted granted Critical
Publication of CN105303619B publication Critical patent/CN105303619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

An embodiment of the present invention provides a kind of sequence image generation method, the method includes:It obtains and presets model;The first distance between fixed virtual camera and the default model;Obtain N number of shooting angle of the virtual camera to the default model, wherein the N is the integer more than 1;The default model is shot based on first distance and N number of shooting angle;Export the N number of model's image obtained after the shooting.The embodiment of the present invention additionally provides a kind of mobile terminal.It can be matched with the angle of real human face image according to the angle of default model using the embodiment of the present invention, obtain model's image with the angle automatching of real human face image, to improve the human face spectacle wearing effect of different angle.

Description

A kind of sequence image generation method and mobile terminal
Technical field
The present embodiments relate to computer visions with virtually dressing the technical field being combined, and in particular to a kind of Sequence image generation method and mobile terminal.
Background technology
With the fast development of development of Mobile Internet technology, mobile terminal (such as mobile phone, tablet computer) has become life An indispensable part in work.With conventional entity shop do shopping compared with, shopping at network have can not by the time, place constraint, And great variety of goods, it is cheap the advantages that, for by wearing spectacles, user singly just sees that glasses picture can not understand the pendant of glasses Effect is worn, thus, it tries eyewear applications program on and comes into being.Glasses try-in technology it is critical that the making of picture library early period, Due to being processing procedure of model's images relations to follow-up different glasses pictures, currently, how to improve the face eye of different angle The problem of mirror wearing effect, has to be solved.
Invention content
An embodiment of the present invention provides a kind of sequence image generation method and mobile terminals, to improve the people of different angle Face glasses fitting result.
First aspect of the embodiment of the present invention provides a kind of virtual glasses try-on method, including:
It obtains and presets model;
The first distance between fixed virtual camera and the default model;
Obtain N number of shooting angle of the virtual camera to the default model, wherein the N is whole more than 1 Number;
The default model is shot based on first distance and N number of shooting angle;
Export the N number of model's image obtained after the shooting.
In conjunction with the embodiment of the present invention in a first aspect, in the first possible embodiment of first aspect, the acquisition The virtual camera to N number of shooting angle of the default model, including:
The angle for configuring the default model is specified angle;
The virtual camera described in the predetermined threshold value angle configurations to the default mould on the basis of the specified angle Special N number of shooting angle.
It is described to be based in conjunction with the embodiment of the present invention in a first aspect, in second of possible embodiment of first aspect First distance and N number of shooting angle shoot the default model, including:
It is first distance to keep the distance between the virtual camera and the default model;
The default model is shot in the position of N number of shooting angle based on first distance.
In conjunction with first aspect of the embodiment of the present invention, first aspect the first possible embodiment or first aspect Two kinds of possible embodiments rise and are characterized in that, described in the output in the third possible embodiment of first aspect After the N number of model's image obtained after shooting, the method further includes:
Obtain the first default glasses of user's selection;
Determine the second distance between two of the default model;
The described first default glasses are zoomed in and out into processing according to the second distance;
The first default glasses after the scaling processing are overlapped with the default model;
The default model after the superposition is shot based on first distance and N number of shooting angle;
Export the N number of model's image worn glasses obtained after the shooting.
In conjunction with first aspect of the embodiment of the present invention, first aspect the first possible embodiment or first aspect Two kinds of possible embodiments obtain in the third possible embodiment of fourth aspect after the output shooting N number of model's image after, including:
Obtain the second default glasses of user's selection;
The described second default glasses are shot based on first distance and N number of shooting angle;
Export the N number of second default glasses image after the shooting.
Second aspect of the embodiment of the present invention discloses a kind of mobile terminal, including:
First acquisition unit, for obtaining default model;
Fixed cell, between fixing virtual camera and default model that the first acquisition unit is got One distance;
First acquisition unit is additionally operable to:
Obtain N number of shooting angle of the virtual camera to the default model, wherein the N is whole more than 1 Number;
First shooting unit, for being obtained based on fixed first distance of the fixed cell and the first acquisition unit To N number of shooting angle the default model is shot;
Second output unit, for exporting the N number of model's image obtained after the first shooting unit shooting.
In conjunction with second aspect of the embodiment of the present invention, in the first possible embodiment of second aspect, described first Acquiring unit includes:
First configuration subelement, the angle for configuring the default model are specified angle;
Second configuration subelement is used on the basis of the specified angle of the first configuration subelement configuration every default threshold It is worth N number of shooting angle to the default model of virtual camera described in angle configurations.
In conjunction with second aspect of the embodiment of the present invention, in second of possible embodiment of second aspect, described first Shooting unit includes:
Holding unit is the fixed cell for keeping the distance between the virtual camera and the default model Fixed first distance;
Subelement is shot, the first distance for being kept based on the holding unit is in the position of N number of shooting angle The default model is shot.
In conjunction with second aspect of the embodiment of the present invention, second aspect the first possible embodiment or second aspect Two kinds of possible embodiments, in the third possible embodiment of second aspect, the mobile terminal further includes:
Second acquisition unit, the first default glasses for obtaining user's selection;
Determination unit, the second distance between two for determining the default model;
Unit for scaling, what the second distance for being determined according to the determination unit got the second acquisition unit First default glasses zoom in and out processing;
Superpositing unit, for by the first default glasses and the default model after the unit for scaling scaling processing into Row superposition;
Second shooting unit, for being superimposed to the superpositing unit based on first distance and N number of shooting angle Default model later shoots;
Second output unit, for exporting the N number of model's image worn glasses obtained after the second shooting unit shooting.
In conjunction with second aspect of the embodiment of the present invention, second aspect the first possible embodiment or second aspect Two kinds of possible embodiments, in the 4th kind of possible embodiment of second aspect, the mobile terminal further includes:
Third acquiring unit, the second default glasses for obtaining user's selection;
Third shooting unit, for being based on first distance and N number of shooting angle to the third acquiring unit The the second default glasses got are shot;
Third output unit, for exporting the N number of second default glasses image after the third shoots unit photographs.
Implement the embodiment of the present invention, has the advantages that:
Can obtain default model through the embodiment of the present invention, first between fixed virtual camera and the default model away from From;Obtain N number of shooting angle of the virtual camera to the default model, wherein the N is the integer more than 1;Based on this One distance and N number of shooting angle shoot the default model;The N number of model's image obtained after output shooting.To, During glasses try-in, can be matched with the angle of real human face image according to the angle of default model, obtain with really Model's image of the angle automatching of facial image, thus, improve the human face spectacle wearing effect of different angle.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of first embodiment flow diagram of sequence image generation method provided in an embodiment of the present invention;
Fig. 2 is a kind of second embodiment flow diagram of sequence image generation method provided in an embodiment of the present invention;
Fig. 3 is a kind of first embodiment structural schematic diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of second embodiment structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
It is described in detail separately below.
Term " first ", " second ", " third " in description and claims of this specification and the attached drawing and " Four " etc. be for distinguishing different objects, rather than for describing particular order.In addition, term " comprising " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process of series of steps or unit, method, be The step of system, product or equipment are not limited to list or unit, but further include the steps that optionally not listing or list Member, or further include optionally for the intrinsic other steps of these processes, method, product or equipment or unit.
Mobile terminal described in the embodiment of the present invention may include smart mobile phone (such as Android phone, iOS mobile phones, Windows Phone mobile phones etc.), tablet computer, palm PC, laptop, mobile internet device (MID, Mobile Internet Devices) or Wearable etc., above-mentioned mobile terminal is only citing, and non exhaustive, including but not limited to upper State mobile terminal.
Referring to Fig. 1, being that a kind of first embodiment flow of sequence image generation method provided in an embodiment of the present invention is shown It is intended to.Sequence image generation method described in the present embodiment, includes the following steps:
S101, it obtains and presets model.
In the specific implementation, mobile terminal can obtain at least one default model, which can be the model of 3D models. Under normal conditions, two default models may be selected, be respectively directed to default model and the needle of male two and face Proportionality design To the default model of women two and face's Proportionality design.Still optionally further, it can be designed according to different shapes of face different pre- If model.
The first distance between S102, fixed virtual camera and the default model.
In the specific implementation, virtual camera can be opened in advance, and fix between the virtual camera and default model One distance, further, the distance between the virtual camera and the preset of the bridge of the nose of default model are the first distance.It should First distance may include but be not limited only to:0.5 meter, 0.75 meter, 1 meter, 2 meters, 3 meters.Preferably, the first distance can be 0.7 meter.Gu The purpose of fixed first distance is, in the case of fixed default model, can keep virtual camera and the default model it Between distance be the first distance in the case of, default model is shot in different angles, the default mould that can be kept The substantially consistent effect of special image size.Optionally, it can keep virtually taking the photograph in the case of fixed virtual camera In the case that the distance between camera and the default model is the first distances, the angle that model is preset by rotation is multiple to obtain Different angles shoots default model in multiple different angle, and the image for the default model that can be kept is big Small substantially consistent effect.
S103, N number of shooting angle of the virtual camera to the default model is obtained, wherein the N is more than 1 Integer.
In the specific implementation, mobile terminal can by the left, to the right, upwardly or downwardly rotation model obtain it is multiple and different Shooting angle, for example, it is assumed that the original angle of default model is (0,0), then after virtual camera being rotated 3 degree to the left side, For virtual camera, the angle of the default model becomes (0,3).Further, the configurable default mould of mobile terminal Special rotation is default, for example, virtual camera rotates to first threshold angle to the left, virtual camera rotates to the right the second threshold Value angle, virtual camera are rotated upwardly to third threshold angle, virtual camera is rotated downwardly to the 4th threshold angle.It is above-mentioned First threshold angle may include but be not limited only to:1 degree, 3.5 degree, 5 degree, 50 degree, 90 degree.Preferably, the first threshold angle is not More than 90 degree.Second threshold angle, third threshold angle and the 4th threshold angle can refer to first threshold angle.Assuming that the first threshold It is 45 degree to be worth angle, and the second predetermined angle is 45 degree, and third predetermined angle is 45 degree, and the 4th predetermined angle is 45 degree, and in void Quasi- video camera can be during turning left, every 3 degree of determining shooting angle.
Optionally, the angle of the configurable default model of mobile terminal is specified angle.Preferably, specified angle can be (0, 0), i.e., default model is the front in ideal.It is virtually imaged every predetermined threshold value angle configurations on the basis of the specified angle N number of shooting angle to presetting model of machine.
S104, the default model is shot based on first distance and N number of shooting angle.
In the specific implementation, it is the first distance that mobile terminal, which can keep the distance between virtual camera and default model,;And Default model is shot in the position of N number of shooting angle based on first distance.
Optionally, due to the symmetry on default model face both sides, a left side can be obtained in the case where determining left side angle Model's image of side shooting angle on the right of shooting during angle, can carry out at mirror image model's image of left side angle Reason, to quickly obtain model's image of the right angle.It similarly, can be in determination due to the symmetry on default model face both sides In the case of the angle of top, model's image of top shooting angle can be obtained, it, can be to following during shooting following angle Model's image of angle carries out mirror image processing, to quickly obtain model's image of following angle.
The N number of model's image obtained after S105, the output shooting.
In the specific implementation, N number of model's image after N number of shooting angle is shot, can be obtained in mobile terminal, it is exportable N number of model's image, according to the angle coordinate of the corresponding shooting angle of N number of model's image respectively to N number of model's image point It is not named.Further, it can be also named according to the N number of model's image of secondary ordered pair.The target of the name essentially consists in, and uses Family corresponding image is found according to angle.
Default model can be obtained through the embodiment of the present invention;First between fixed virtual camera and the default model Distance;Obtain N number of shooting angle of the virtual camera to the default model, wherein the N is the integer more than 1;Base The default model is shot in first distance and N number of shooting angle;Export obtain after the shooting it is N number of Model's image.To during glasses try-in, glasses corresponding with user's shooting angle are quickly found out, improve use It experiences at family.
Referring to Fig. 2, being that a kind of second embodiment flow of sequence image generation method provided in an embodiment of the present invention is shown It is intended to.Sequence image generation method described in the present embodiment, includes the following steps:
S201, it obtains and presets model.
In the specific implementation, mobile terminal can obtain at least one default model, which can be the model of 3D models. Under normal conditions, two default models may be selected, be respectively directed to default model and the needle of male two and face Proportionality design To the default model of women two and face's Proportionality design.Still optionally further, it can be designed according to different shapes of face different pre- If model.
The first distance between S202, fixed virtual camera and the default model.
In the specific implementation, virtual camera can be opened in advance, and fix between the virtual camera and default model One distance, further, the distance between the virtual camera and the preset of the bridge of the nose of default model are the first distance.It should First distance may include but be not limited only to:0.5 meter, 0.75 meter, 1 meter, 2 meters, 3 meters.Preferably, the first distance can be 0.7 meter.Gu The purpose of fixed first distance is, in the case of fixed default model, can keep virtual camera and the default model it Between distance be the first distance in the case of, default model is shot in different angles, the default mould that can be kept The substantially consistent effect of special image size.Optionally, it can keep virtually taking the photograph in the case of fixed virtual camera In the case that the distance between camera and the default model is the first distances, the angle that model is preset by rotation is multiple to obtain Different angles shoots default model in multiple different angle, and the image for the default model that can be kept is big Small substantially consistent effect.
S203, N number of shooting angle of the virtual camera to the default model is obtained, wherein the N is more than 1 Integer.
In the specific implementation, mobile terminal can by the left, to the right, upwardly or downwardly rotation model obtain it is multiple and different Shooting angle, for example, it is assumed that the original angle of default model is (0,0), then after virtual camera being rotated 3 degree to the left side, For virtual camera, the angle of the default model becomes (0,3).Further, the configurable default mould of mobile terminal Special rotation is default, for example, virtual camera rotates to first threshold angle to the left, virtual camera rotates to the right the second threshold Value angle, virtual camera are rotated upwardly to third threshold angle, virtual camera is rotated downwardly to the 4th threshold angle.It is above-mentioned First threshold angle may include but be not limited only to:1 degree, 3.5 degree, 5 degree, 50 degree, 90 degree.Preferably, the first threshold angle is not More than 90 degree.Second threshold angle, third threshold angle and the 4th threshold angle can refer to first threshold angle.Assuming that the first threshold It is 45 degree to be worth angle, and the second predetermined angle is 45 degree, and third predetermined angle is 45 degree, and the 4th predetermined angle is 45 degree, and in void Quasi- video camera can be during turning left, every 3 degree of determining shooting angle.
Optionally, the angle of the configurable default model of mobile terminal is specified angle.Preferably, specified angle can be (0, 0), i.e., default model is the front in ideal.It is virtually imaged every predetermined threshold value angle configurations on the basis of the specified angle N number of shooting angle to presetting model of machine.
S204, the default model is shot based on first distance and N number of shooting angle.
In the specific implementation, it is the first distance that mobile terminal, which can keep the distance between virtual camera and default model,;And Default model is shot in the position of N number of shooting angle based on first distance.
Optionally, due to the symmetry on default model face both sides, a left side can be obtained in the case where determining left side angle Model's image of side shooting angle on the right of shooting during angle, can carry out at mirror image model's image of left side angle Reason, to quickly obtain model's image of the right angle.It similarly, can be in determination due to the symmetry on default model face both sides In the case of the angle of top, model's image of top shooting angle can be obtained, it, can be to following during shooting following angle Model's image of angle carries out mirror image processing, to quickly obtain model's image of following angle.
The N number of model's image obtained after S205, the output shooting.
In the specific implementation, N number of model's image after N number of shooting angle is shot, can be obtained in mobile terminal, it is exportable N number of model's image, according to the angle coordinate of the corresponding shooting angle of N number of model's image respectively to N number of model's image point It is not named.Further, it can be also named according to the N number of model's image of secondary ordered pair.The target of the name essentially consists in, and uses Family corresponding image is found according to angle.
S206, the first default glasses for obtaining user's selection.
In the specific implementation, mobile terminal can obtain the first default glasses of user's selection, which can be crowd Certain a glasses in more glasses,
S207, second distance between two of the default model is determined.
In the specific implementation, mobile terminal can carry out Face datection to default model, obtain in two of two in face Heart point, the distance between two central points are second distance.
S208, the described first default glasses are zoomed in and out by processing according to the second distance.
In the specific implementation, mobile terminal can determine the third between the central points of two eyeglasses of the first default glasses away from From, determine the multiple proportion between third distance and second distance, which is the scaling of the first default glasses, Processing is zoomed in and out according to the first default glasses of scaling pair.
S209, the first default glasses after the scaling processing are overlapped with the default model.
In the specific implementation, mobile terminal can by after scaling processing the first default glasses and default model be overlapped, The action of the superposition, which is equivalent to, gives people's wearing spectacles, in the processing procedure, can carry out plumage to the leg of spectacles of the first default glasses Hair processing, i.e. certain part of leg of spectacles are blocked.
Further, can the first default glasses be carried out with rendering processing, i.e., showed in the eyeglass of the first default glasses Different projected image so that default model allows user to imagine a kind of feeling on the spot in person during wearing spectacles.
S210, the default model after the superposition is clapped based on first distance and N number of shooting angle It takes the photograph.
In the specific implementation, mobile terminal can be based on above-mentioned first distance and above-mentioned N number of shooting angle to worn glasses it Default model afterwards shoots.
The N number of model's image worn glasses obtained after S211, the output shooting.
In the specific implementation, N number of model's image worn glasses can be obtained.It further, can be according to the angle of N number of shooting angle Coordinate pair N number of model's image worn glasses is named.Also further the angle coordinate can be numbered, according to the number N number of model's image worn glasses is named.
As a kind of possible embodiment, after step S205, the embodiment of the present invention may also include:Obtain user's choosing The the second default glasses selected;The described second default glasses are shot based on first distance and N number of shooting angle; Export the N number of second default glasses image after the shooting.The glasses image of N number of different angle can be obtained in the embodiment.
Described mobile terminal can obtain default model through the embodiment of the present invention;Fixed virtual camera and described pre- If the first distance between model;Obtain N number of shooting angle of the virtual camera to the default model, wherein the N For the integer more than 1;The default model is shot based on first distance and N number of shooting angle;Output institute State the N number of model's image obtained after shooting;Obtain the first default glasses of user's selection;Determine two of the default model it Between second distance;The described first default glasses are zoomed in and out into processing according to the second distance;By the scaling processing it The first default glasses afterwards are overlapped with the default model;Based on first distance and N number of shooting angle to institute The default model after being superimposed is stated to shoot;Export the N number of model's image worn glasses obtained after the shooting.Using this hair Bright embodiment can be matched according to the angle of default model with the angle of real human face image, be obtained and real human face image Model's image of angle automatching, and can processing be zoomed in and out to corresponding diagonal glasses on this basis, to improve different angles The human face spectacle wearing effect of degree.
Referring to Fig. 3, wherein, Fig. 3 is that a kind of first embodiment structure of mobile terminal provided in an embodiment of the present invention is shown It is intended to.Mobile terminal in Fig. 3 described in the present embodiment, including:Acquiring unit 301, fixed cell 302, shooting unit 303 It is specific as follows with output unit 304:
First acquisition unit 301, for obtaining default model.
Fixed cell 302, for fix virtual camera and default model that the first acquisition unit 301 is got it Between the first distance.
First acquisition unit 301, is additionally operable to:
Obtain N number of shooting angle of the virtual camera to the default model, wherein the N is whole more than 1 Number.
First shooting unit 303, it is single for being obtained based on 302 fixed first distance of the fixed cell and described first N number of shooting angle that member 301 is got shoots the default model.
Second output unit 304, for exporting the N number of model's image obtained after the first shooting unit 303 is shot.
As a kind of possible embodiment, above-mentioned first acquisition unit 301 may include:
First configuration subelement, the angle for configuring the default model are specified angle.
Second configuration subelement is used on the basis of the specified angle of the first configuration subelement configuration every default threshold It is worth N number of shooting angle to the default model of virtual camera described in angle configurations.
As a kind of possible embodiment, above-mentioned first shooting unit 303 may include:
Holding unit is the fixed cell for keeping the distance between the virtual camera and the default model Fixed first distance.
Subelement is shot, the first distance for being kept based on the holding unit is in the position of N number of shooting angle The default model is shot.
As a kind of possible embodiment, mobile terminal described in the present embodiment may also include:
Second acquisition unit, the first default glasses for obtaining user's selection.
Determination unit, the second distance between two for determining the default model.
Unit for scaling, what the second distance for being determined according to the determination unit got the second acquisition unit First default glasses zoom in and out processing.
Superpositing unit, for by the first default glasses and the default model after the unit for scaling scaling processing into Row superposition.
Second shooting unit, for being superimposed to the superpositing unit based on first distance and N number of shooting angle Default model later shoots.
Second output unit, for exporting the N number of model's image worn glasses obtained after the second shooting unit shooting.
As a kind of possible embodiment, mobile terminal described in the present embodiment may also include:
Third acquiring unit, the second default glasses for obtaining user's selection.
Third shooting unit, for being based on first distance and N number of shooting angle to the third acquiring unit The the second default glasses got are shot.
Third output unit, for exporting the N number of second default glasses image after the third shoots unit photographs.
Described mobile terminal can obtain default model through the embodiment of the present invention;Fixed virtual camera and described pre- If the first distance between model;Obtain N number of shooting angle of the virtual camera to the default model, wherein the N For the integer more than 1;The default model is shot based on first distance and N number of shooting angle;Output institute State the N number of model's image obtained after shooting.It can be according to the angle and real human face image of default model using the embodiment of the present invention Angle matched, obtain model's image with the angle automatching of real human face image, to, improve the face of different angle Glasses fitting result.
Referring to Fig. 4, being a kind of second embodiment structural schematic diagram of mobile terminal provided in an embodiment of the present invention.This reality The mobile terminal described in example is applied, including:At least one input equipment 1000;At least one output equipment 2000;At least one A processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000,3000 and of processor Memory 4000 is connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely camera, physical button, touch screen, person's touch tablet or touch-control Pen.
The concretely display screen of above-mentioned output equipment 2000.
Above-mentioned memory 4000 can be high-speed RAM memory or non-labile memory (non-volatile ), such as magnetic disk storage memory.Above-mentioned memory 4000 is above-mentioned input equipment 1000, defeated for storing batch processing code Go out equipment 2000 and processor 3000 for calling the program code stored in memory 4000, executes following operation:
Above-mentioned processor 3000, is used for:
It obtains and presets model;
The first distance between fixed virtual camera and the default model;
Obtain N number of shooting angle of the virtual camera to the default model, wherein the N is whole more than 1 Number;
The default model is shot based on first distance and N number of shooting angle;
Export the N number of model's image obtained after the shooting.
In some feasible embodiments, above-mentioned processor 3000 obtains the virtual camera to the default model N number of shooting angle, including:
The angle for configuring the default model is specified angle;
The virtual camera described in the predetermined threshold value angle configurations to the default mould on the basis of the specified angle Special N number of shooting angle.
In some feasible embodiments, above-mentioned processor 3000 is based on first distance and N number of shooting angle Degree shoots the default model, including:
It is first distance to keep the distance between the virtual camera and the default model;
The default model is shot in the position of N number of shooting angle based on first distance.
In some feasible embodiments, N number of model that above-mentioned processor 3000 obtains after exporting the shooting schemes As after, also particularly useful for:
Obtain the first default glasses of user's selection;
Determine the second distance between two of the default model;
The described first default glasses are zoomed in and out into processing according to the second distance;
The first default glasses after the scaling processing are overlapped with the default model;
The default model after the superposition is shot based on first distance and N number of shooting angle;
Export the N number of model's image worn glasses obtained after the shooting.
In some feasible embodiments, N number of model that above-mentioned processor 3000 obtains after exporting the shooting schemes As after, also particularly useful for:
Obtain the second default glasses of user's selection;
The described second default glasses are shot based on first distance and N number of shooting angle;
Export the N number of second default glasses image after the shooting.
In the specific implementation, input equipment 1000 described in the embodiment of the present invention, output equipment 2000 and processor 3000 can perform institute in a kind of first embodiment and second embodiment of sequence image generation method provided in an embodiment of the present invention The realization method of description also can perform the shifting described in a kind of first embodiment of mobile terminal provided in an embodiment of the present invention The realization method of dynamic terminal, details are not described herein.
Described mobile terminal can obtain default model through the embodiment of the present invention;Fixed virtual camera and described pre- If the first distance between model;Obtain N number of shooting angle of the virtual camera to the default model, wherein the N For the integer more than 1;The default model is shot based on first distance and N number of shooting angle;Output institute State the N number of model's image obtained after shooting.It can be according to the angle and real human face image of default model using the embodiment of the present invention Angle matched, obtain model's image with the angle automatching of real human face image, to, improve the face of different angle Glasses fitting result.
The embodiment of the present invention also provides a kind of computer storage media, wherein the computer storage media can be stored with journey Sequence, the program include some or all of any one signal processing method described in above method embodiment step when executing Suddenly.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps may can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this hair Necessary to bright.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, said units division, it is only a kind of Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, can also be Each unit physically exists alone, can also be during two or more units are integrated in one unit.Above-mentioned integrated unit Both the form that hardware may be used is realized, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or network equipment etc., can be specifically the processor in computer equipment) is held The all or part of step of each embodiment above method of the row present invention.Wherein, storage medium above-mentioned may include:USB flash disk, shifting Dynamic hard disk, magnetic disc, CD, read-only memory (English:Read-Only Memory, abbreviation:) or random access memory ROM (English:Random Access Memory, abbreviation:The various media that can store program code such as RAM).
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Stating embodiment, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding The technical solution recorded in each embodiment is stated to modify or equivalent replacement of some of the technical features;And these Modification or replacement, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of sequence image generation method, which is characterized in that including:
It obtains and presets model;
The first distance between fixed virtual camera and the default model;
N number of shooting angle of the virtual camera to the default model is obtained, N number of shooting angle is by pre- by rotating If the angle of model obtains, N number of shooting angle is specified angle, wherein the N is the integer more than 1;
The default model is shot based on first distance and N number of shooting angle;
Export the N number of model's image obtained after the shooting.
2. the method as described in claim 1 rises and is characterized in that, described to obtain the virtual camera to the default model's N number of shooting angle, including:
The angle for configuring the default model is specified angle;
The N to the default model of the virtual camera described in the predetermined threshold value angle configurations on the basis of the specified angle A shooting angle.
3. the method as described in claim 1 rises and is characterized in that, described to be based on first distance and N number of shooting angle The default model is shot, including:
It is first distance to keep the distance between the virtual camera and the default model;
The default model is shot in the position of N number of shooting angle based on first distance.
4. method as described in any one of claims 1 to 3 rises and is characterized in that, the N number of mould obtained after the output shooting After special image, the method further includes:
Obtain the first default glasses of user's selection;
Determine the second distance between two of the default model;
The described first default glasses are zoomed in and out into processing according to the second distance;
The first default glasses after the scaling processing are overlapped with the default model;
The default model after the superposition is shot based on first distance and N number of shooting angle;
Export the N number of model's image worn glasses obtained after the shooting.
5. method as described in any one of claims 1 to 3, which is characterized in that the N number of mould obtained after the output shooting After special image, including:
Obtain the second default glasses of user's selection;
The described second default glasses are shot based on first distance and N number of shooting angle;
Export the N number of second default glasses image after the shooting.
6. a kind of mobile terminal, which is characterized in that including:
First acquisition unit, for obtaining default model;
Fixed cell, for first between fixing virtual camera and default model that the first acquisition unit is got away from From;
First acquisition unit is additionally operable to:
N number of shooting angle of the virtual camera to the default model is obtained, N number of shooting angle is by pre- by rotating If the angle of model obtains, N number of shooting angle is specified angle, wherein the N is the integer more than 1;
First shooting unit, for what is got based on fixed first distance of the fixed cell and the first acquisition unit N number of shooting angle shoots the default model;
Second output unit, for exporting the N number of model's image obtained after the first shooting unit shooting.
7. mobile terminal as claimed in claim 6 rises and is characterized in that, the first acquisition unit includes:
First configuration subelement, the angle for configuring the default model are specified angle;
Second configuration subelement is used on the basis of the specified angle of the first configuration subelement configuration every predetermined threshold value angle Degree configures N number of shooting angle to the default model of the virtual camera.
8. mobile terminal as claimed in claim 6 rises and is characterized in that, the first shooting unit includes:
Holding unit is that the fixed cell is fixed for keeping the distance between the virtual camera and the default model The first distance;
Subelement is shot, the first distance for being kept based on the holding unit is in the position of N number of shooting angle to institute Default model is stated to shoot.
9. such as claim 6 to 8 any one of them mobile terminal, rises and be characterized in that, the mobile terminal further includes:
Second acquisition unit, the first default glasses for obtaining user's selection;
Determination unit, the second distance between two for determining the default model;
Unit for scaling, the second distance for being determined according to the determination unit second acquisition unit is got first Default glasses zoom in and out processing;
Superpositing unit, for folding the first default glasses after the unit for scaling scaling processing with the default model Add;
Second shooting unit, after being superimposed to the superpositing unit based on first distance and N number of shooting angle Default model shoot;
Second output unit, for exporting the N number of model's image worn glasses obtained after the second shooting unit shooting.
10. such as claim 6 to 8 any one of them mobile terminal, which is characterized in that the mobile terminal further includes:
Third acquiring unit, the second default glasses for obtaining user's selection;
Third shooting unit, for being obtained to the third acquiring unit based on first distance and N number of shooting angle To the second default glasses shot;
Third output unit, for exporting the N number of second default glasses image after the third shoots unit photographs.
CN201510708907.8A 2015-10-27 2015-10-27 A kind of sequence image generation method and mobile terminal Active CN105303619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510708907.8A CN105303619B (en) 2015-10-27 2015-10-27 A kind of sequence image generation method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510708907.8A CN105303619B (en) 2015-10-27 2015-10-27 A kind of sequence image generation method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105303619A CN105303619A (en) 2016-02-03
CN105303619B true CN105303619B (en) 2018-11-06

Family

ID=55200836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510708907.8A Active CN105303619B (en) 2015-10-27 2015-10-27 A kind of sequence image generation method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105303619B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971608A (en) * 2006-12-04 2007-05-30 谢亦玲 Picture database processing method for computerized 3D glasses fitting and apparatus thereof
CN103246992A (en) * 2013-05-30 2013-08-14 叶旭东 3D (three-dimensional) house display system, on-line house display system and on-line house sales method
CN103413118A (en) * 2013-07-18 2013-11-27 毕胜 On-line glasses try-on method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971608A (en) * 2006-12-04 2007-05-30 谢亦玲 Picture database processing method for computerized 3D glasses fitting and apparatus thereof
CN103246992A (en) * 2013-05-30 2013-08-14 叶旭东 3D (three-dimensional) house display system, on-line house display system and on-line house sales method
CN103413118A (en) * 2013-07-18 2013-11-27 毕胜 On-line glasses try-on method

Also Published As

Publication number Publication date
CN105303619A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN105354792B (en) A kind of virtual glasses try-on method and mobile terminal
JP7109655B2 (en) Virtual fitting system and method for spectacles
US9817248B2 (en) Method of virtually trying on eyeglasses
US9842246B2 (en) Fitting glasses frames to a user
WO2017172211A1 (en) Augmented reality in a field of view including a reflection
WO2018119794A1 (en) Display data processing method and apparatus
CN104036169B (en) Biological authentication method and biological authentication apparatus
CN106802486A (en) A kind of method for focusing and head-mounted display
CN103514350A (en) Electronic device with virtual fit function and virtual fit method
CN105678391A (en) Multiple-reference based system and method for ordering eyeglasses
US20160119615A1 (en) Three dimensional data visualization
CN105657249A (en) Image processing method and user terminal
US20230274340A1 (en) Automating the creation of listings using augmented reality computer technology
JP2022545598A (en) Virtual object adjustment method, device, electronic device, computer storage medium and program
US20170148225A1 (en) Virtual dressing system and virtual dressing method
KR101805056B1 (en) Eyeglasses try-on simulation method using augumented reality
CN106951750A (en) The method and mobile terminal of a kind of mobile terminal switch mode
WO2016210166A1 (en) Simplifying small mesh components with redundant backs
CN107426490A (en) A kind of photographic method and terminal
CN106682959A (en) Virtual reality terminal data processing method and virtual reality terminal
CN102760271A (en) Clothes and target human body automatic matching device and method
CN109242977B (en) Webpage rendering method, device and storage medium
CN106296796B (en) Information processing method, information processing unit and user equipment
CN105303619B (en) A kind of sequence image generation method and mobile terminal
CN110349269A (en) A kind of target wear try-in method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant