Summary of the invention
The present invention is directed to above shortcomings in prior art, a kind of 3 D stereo hair style design system and method for designing based on body propagated sensation sensor is provided.Compared with previous methods, the present invention has the features simple, with low cost, 360 degree three-dimensional imagings that realize.
The present invention is achieved by the following technical solutions.
According to an aspect of the present invention, a kind of 3 D stereo hair style design system based on body propagated sensation sensor is provided, comprise 3-D data collection unit, three-dimensional model construction unit and three-dimensional model display unit, described 3-D data collection unit is connected with three-dimensional model construction unit data, and described three-dimensional model construction unit is connected with three-dimensional model display unit data; Wherein:
Described 3-D data collection unit comprises: rotating mechanism and be arranged at the body sense sensor mechanism in rotating mechanism front, described body sense sensor mechanism is provided with integrated active infrared transmitter, infrared camera and colour imagery shot, for gathering the 360 ° of three-dimensional datas of personage's head that are positioned on rotating mechanism, described body sense sensor mechanism is connected with three-dimensional model construction unit data.
Preferably, described 3-D data collection unit also comprises: light source mechanism, described light source mechanism carries out light filling for the personage's head on rotating mechanism.
Preferably, described body sense sensor mechanism comprises body propagated sensation sensor and the sensor stand for supporter propagated sensation sensor; Described light source mechanism comprises light source and the light source bracket for supporting light sources.
Preferably, described light source adopts iodine-tungsten lamp or LED lamp; Described rotating mechanism adopts artificial turning chair or motor turning chair.
Preferably, described three-dimensional model construction unit comprises that personage's three-dimensional model builds module, hair style three-dimensional model builds module and model laminating module, wherein, described body sense sensor mechanism builds module data with personage's three-dimensional model and is connected, described personage's three-dimensional model builds module and is connected with model laminating module respectively with hair style three-dimensional model structure module, and described model laminating module is connected with three-dimensional model display unit data; Wherein:
-personage three-dimensional model builds module, adopts light coding techniques, and in the target image forming according to 360 ° of three-dimensional datas, the difference of laser speckle pattern, determines the depth of target, thereby set up the three-dimensional stereo model of target;
-hair style three-dimensional model builds module, adopts OpenGL or Directx technology, sets up virtual hair style 3 d model library;
-model laminating module, build according to personage's three-dimensional model personage's head three-dimensional stereo model that module is set up, adjust the size and dimension that hair style three-dimensional model builds hair style three-dimensional model in module, make it to be fitted in the surface of personage's head three-dimensional stereo model, form three-dimensional display model.
Preferably, described three-dimensional model display unit comprises display module, and described display module shows for multi-angle automatic rotation the three-dimensional display model that three-dimensional model construction unit forms.
Preferably, display module is provided with background synthesis module.
According to a second aspect of the invention, provide a kind of method for designing of the above-mentioned 3 D stereo hair style design system based on body propagated sensation sensor, comprised the following steps:
Step S1, gathers 360 ° of three-dimensional datas of personage's head by the body propagated sensation sensor of 3-D data collection unit, and 360 ° of three-dimensional datas is sent to personage's three-dimensional model structure module of three-dimensional model construction unit;
Step S2, personage's three-dimensional model builds module and sets up personage's head three-dimensional stereo model, and is sent to model laminating module;
Step S3, the hair style three-dimensional model stack in the database of personage's head three-dimensional stereo model and hair style three-dimensional model structure module is formed three-dimensional display model by model laminating module, and be sent to three-dimensional model display unit;
Step S4,360 ° of displaying personage hair style design three-dimensional model effects of three-dimensional model display unit.
Preferably, also comprise step S0, before described step S0 is arranged at step S1;
Step S0, at personage's head-mount for retraining and cover the rubber headgear of original hair.
Preferably, step S2 specifically adopts light coding (Light coding) technology to set up the three-dimensional stereo model of target.
Described smooth coding techniques is different from traditional method of structured light, the light source of light coding techniques is not the two dimensional image coding that a secondary period property changes, but one have " the body coding " of three-dimensional depth, this light source is called laser speckle (1aser speckle).Because the pattern of any two position, place laser speckles is all different in space, according to the difference of the target image laser speckle pattern obtaining, can determines the depth of target, thereby set up the three-dimensional stereo model of target.
3 D stereo hair style design system and method for designing based on body propagated sensation sensor provided by the invention, adopt body propagated sensation sensor to gather 360 ° of three-dimensional datas of personage's head, set up three-dimensional stereo model, then superpose with hair style three-dimensional model, personage's hair style design three-dimensional model is illustrated on display.
Compared with prior art, the present invention has following technical characterstic:
1,360 ° gather character datas, set up complete three-dimensional stereo model, can 360 ° comprehensively browse three-dimensional hair style design effect;
2, compared with traditional binocular solid modelling, do not need camera calibration, the complex process of characteristic matching, has reduced computation complexity, has improved processing speed;
3,, compared with traditional binocular solid modelling, install, debug comparatively simple, easy to use;
4, compared with traditional binocular solid modelling, realize cost lower.
Embodiment
Below embodiments of the invention are elaborated: the present embodiment is implemented under take technical solution of the present invention as prerequisite, provided detailed embodiment and concrete operating process.It should be pointed out that to those skilled in the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.
Please refer to Fig. 1 to Fig. 3.
The present embodiment provides a kind of 3 D stereo hair style design system based on body propagated sensation sensor, comprise 3-D data collection unit, three-dimensional model construction unit and three-dimensional model display unit, described 3-D data collection unit is connected with three-dimensional model construction unit data, and described three-dimensional model construction unit is connected with three-dimensional model display unit data; Wherein:
Described 3-D data collection unit comprises: rotating mechanism and be arranged at the body sense sensor mechanism in rotating mechanism front, described body sense sensor mechanism is provided with integrated active infrared transmitter, infrared camera and colour imagery shot, for gathering the 360 ° of three-dimensional datas of personage's head that are positioned on rotating mechanism, described body sense sensor mechanism is connected with three-dimensional model construction unit data.
Further, described 3-D data collection unit also comprises: light source mechanism, described light source mechanism carries out light filling for the personage's head on rotating mechanism.
Further, described body sense sensor mechanism comprises body propagated sensation sensor and the sensor stand for supporter propagated sensation sensor; Described light source mechanism comprises light source and the light source bracket for supporting light sources.
Further, described light source adopts iodine-tungsten lamp or LED lamp; Described rotating mechanism adopts artificial turning chair or motor turning chair.
Further, described three-dimensional model construction unit comprises that personage's three-dimensional model builds module, hair style three-dimensional model builds module and model laminating module, wherein, described body sense sensor mechanism builds module data with personage's three-dimensional model and is connected, described personage's three-dimensional model builds module and is connected with model laminating module respectively with hair style three-dimensional model structure module, and described model laminating module is connected with three-dimensional model display unit data; Wherein:
-personage three-dimensional model builds module, adopts light coding techniques, and in the target image forming according to 360 ° of three-dimensional datas, the difference of laser speckle pattern, determines the depth of target, thereby set up the three-dimensional stereo model of target;
-hair style three-dimensional model builds module, adopts OpenGL or Directx technology, sets up virtual hair style 3 d model library;
-model laminating module, build according to personage's three-dimensional model personage's head three-dimensional stereo model that module is set up, adjust the size and dimension that hair style three-dimensional model builds hair style three-dimensional model in module, make it to be fitted in the surface of personage's head three-dimensional stereo model, form three-dimensional display model.
Further, described three-dimensional model display unit comprises display module, and described display module shows for multi-angle automatic rotation the three-dimensional display model that three-dimensional model construction unit forms.
Further, display module is provided with background synthesis module.
The 3 D stereo hair style design system based on body propagated sensation sensor that the present embodiment provides, its method for designing comprises the following steps:
Step S1, gathers 360 ° of three-dimensional datas of personage's head by the body propagated sensation sensor of 3-D data collection unit, and 360 ° of three-dimensional datas is sent to personage's three-dimensional model structure module of three-dimensional model construction unit;
Step S2, personage's three-dimensional model builds module and sets up personage's head three-dimensional stereo model, and is sent to model laminating module;
Step S3, the hair style three-dimensional model stack in the database of personage's head three-dimensional stereo model and hair style three-dimensional model structure module is formed three-dimensional display model by model laminating module, and be sent to three-dimensional model display unit;
Step S4,360 ° of displaying personage hair style design three-dimensional model effects of three-dimensional model display unit.
Further, also comprise step S0, before described step S0 is arranged at step S1;
Step S0, at personage's head-mount for retraining and cover the rubber headgear of original hair.
Further, step S2 specifically adopts light coding (Light coding) technology to set up the three-dimensional stereo model of target.
Described smooth coding techniques is different from traditional method of structured light, the light source of light coding techniques is not the two dimensional image coding that a secondary period property changes, but one have " the body coding " of three-dimensional depth, this light source is called laser speckle (1aser speckle).Because the pattern of any two position, place laser speckles is all different in space, according to the difference of the target image laser speckle pattern obtaining, can determines the depth of target, thereby set up the three-dimensional stereo model of target.
Be specially:
As shown in Figure 1, step S1, use body propagated sensation sensor gather 360 ° of three-dimensional datas of personage's head.Wherein, body propagated sensation sensor can be the kinect sensor of Microsoft exploitation, can be also the body propagated sensation sensor of HuaShuo Co., Ltd or the exploitation of other companies, it is characterized in that an active infrared transmitter, an infrared camera and a colour imagery shot integrated.For the convenient 360 ° of three-dimensional datas of personage's head that gather, allow target person be sitting on swivel chair and rotate, simultaneously body sense sensor record image data.Swivel chair can be rotated by driven by motor, also can be by manually rotating.In order to facilitate post-processed, personage can wear rubber headgear in the time of image data, and original hair is covered in constraint;
Step S2, set up personage's head three-dimensional stereo model.Adopt light coding (Light coding) technology of PrimeSense company, different from traditional method of structured light, the light source of the method is not the two dimensional image coding that a secondary period property changes, but one have " the body coding " of three-dimensional depth, this light source is called laser speckle (1aser speckle).Because the pattern of any two position, place laser speckles is all different in space, according to the difference of the target image laser speckle pattern obtaining, can determines the depth of target, thereby set up the three-dimensional stereo model of target;
Step S3, by the stack of hair style three-dimensional model and head three-dimensional model.The head three-dimensional model that S2 is obtained and the hair style three-dimensional model stack with computer drawing in advance, the complete hair style effect after being designed;
Step S4,360 ° of displaying personage hair style design three-dimensional model effects.Personage's hair style design three-dimensional model that S3 is obtained is illustrated in display or large-scale LCD TV, coordinates different background images, and people can multi-angle check hair style design effect, also can show modelling effect by 360 ° of automatic rotations.
As shown in Figure 2,3-D data collection unit is connected with three-dimensional model construction unit data, described three-dimensional model construction unit is connected with three-dimensional model display unit data, 3-D data collection unit comprises: rotating mechanism and be arranged at the body sense sensor mechanism in rotating mechanism front, body sense sensor mechanism is characterised in that, integrated an active infrared transmitter, an infrared camera and a colour imagery shot.Described rotating mechanism is used for gathering 360 ° of three-dimensional datas of personage, can rotate with motor, also can manually rotate.
Personage's three-dimensional model builds module and adopts light coding techniques, according to the difference of laser speckle pattern in target image, determines the depth of target, thereby sets up the three-dimensional stereo model of target.
Hair style three-dimensional model builds module and adopts OpenGL/Directx technology, sets up virtual hair style 3 d model library, for user's choice for use.
Model laminating module, according to the personage's head three-dimensional model that gathers before, sets up, is adjusted the size and dimension of hair style three-dimensional model, makes it to be fitted in personage's head model surface.
Three-dimensional model display unit (360 ° of model display unit) is illustrated in personage's hair style design three-dimensional model in display or large-scale LCD TV, coordinate different background images, can multi-angle check hair style design effect, also can show modelling effect by 360 ° of automatic rotations.
As shown in Figure 3, body propagated sensation sensor in described body sense sensor mechanism can adopt the kinect sensor of Microsoft's exploitation, the body propagated sensation sensor that also can adopt HuaShuo Co., Ltd or the exploitation of other companies arranges integrated active infrared transmitter, an infrared camera and a colour imagery shot on body propagated sensation sensor.Described rotating mechanism 1 is for gathering 360 ° of rotations of personage, thereby makes 360 ° of three-dimensional datas of body propagated sensation sensor collection personage, and rotating mechanism can be used motor turning chair, also artificial turning chair; Light source in described light source mechanism 3 adopts iodine-tungsten lamp or LED light source;
In rotation rotating mechanism 1, gather 360 ° of three-dimensional datas of personage's head on rotating mechanism 1 by body propagated sensation sensor 2.In order to facilitate post-processed, personage can wear rubber headgear in the time of image data, and original hair is covered in constraint.Use light coding techniques, according to the difference of laser speckle pattern in target image, determine the depth of target, thereby set up personage's head three-dimensional stereo model;
Adopt OpenGL/Directx technology, set up virtual hair style 3 d model library, for user's choice for use;
On three-dimensional model construction unit (computing machine) 4, process is processed, according to the personage's head three-dimensional model that gathers before, sets up, the size and dimension of adjusting hair style three-dimensional model, makes it to be fitted in personage's head model surface, completes the stack of head model and hair style model;
Personage's hair style design three-dimensional model is illustrated on the display or large-scale LCD TV of three-dimensional model display unit, coordinates different background images, can multi-angle check hair style design effect, also can show modelling effect by 360 ° of automatic rotations.
In the present embodiment:
Step S1, use body propagated sensation sensor gather 360 ° of three-dimensional datas of personage's head.Wherein, body propagated sensation sensor can be the kinect sensor of Microsoft's exploitation, also can be the body propagated sensation sensor of HuaShuo Co., Ltd or the exploitation of other companies, an integrated active infrared transmitter, an infrared camera and a colour imagery shot are set on body propagated sensation sensor; Light coding (Light coding) technology of step S2, employing PrimeSense company is set up personage's head three-dimensional stereo model; Step S3, by the stack of hair style three-dimensional model and head three-dimensional model; Step S4, in display or large-scale LCD TV 360 ° show personage hair style design three-dimensional model effects.
For the convenient 360 ° of three-dimensional datas of personage's head that gather, allow target person be sitting on rotating mechanism and rotate, simultaneously body sense sensor record image data.Rotating mechanism can be rotated by driven by motor, also can be by manually rotating.
In order to facilitate post-processed, personage can wear rubber headgear in the time of image data, and original hair is covered in constraint.
During by hair style three-dimensional model and the stack of head three-dimensional model, program is adjusted the size and dimension of hair style three-dimensional model automatically, makes it to be fitted in personage's head model surface.
Described light source is iodine-tungsten lamp or LED light source.
Described personage's three-dimensional model builds module and adopts light coding techniques.
Described hair style three-dimensional model builds module and adopts OpenGL/Directx technology, sets up virtual hair style 3 d model library, for user's choice for use.
Described model laminating module, according to the personage's head three-dimensional model that gathers before, sets up, is adjusted the size and dimension of hair style three-dimensional model, makes it to be fitted in personage's head model surface.
Described three-dimensional model display unit is illustrated in personage's hair style design three-dimensional model in display or large-scale LCD TV, coordinates different background images, can multi-angle check hair style design effect, also can show modelling effect by 360 ° of automatic rotations.
Described background synthesis module comprises: the multiple background such as operative scenario, family's scene, Outdoor Scene, various synoptic models forms.
Described three-dimensional model display unit adopts 360 ° of model display unit, can allow hair style model swing with the wind, augmented reality sense.
The present embodiment gathers 360 ° of three-dimensional datas of personage's head with body propagated sensation sensor, use light coding techniques to set up personage's head three-dimensional stereo model, by hair style three-dimensional model and the stack of head three-dimensional model, last, in display or LCD TV, show personage's hair style design three-dimensional model effect for 360 °.Wherein, body propagated sensation sensor can be the kinect sensor of Microsoft exploitation, can be also the body propagated sensation sensor of HuaShuo Co., Ltd or the exploitation of other companies, it is characterized in that an active infrared transmitter, an infrared camera and a colour imagery shot integrated.
Because 360 ° of the present embodiment gather personage's header data, set up complete three-dimensional stereo model, can 360 ° comprehensively browse three-dimensional hair style design effect; The complex process that does not need binocular camera characteristic matching, has reduced computation complexity, has improved processing speed; Install, debugging comparatively simple, easy to use, realize cost lower.
Above specific embodiments of the invention are described.It will be appreciated that, the present invention is not limited to above-mentioned specific implementations, and those skilled in the art can make various distortion or modification within the scope of the claims, and this does not affect flesh and blood of the present invention.