A kind of 3D scan method
Technical field
The present invention relates to 3D to scan field, in particular to a kind of 3D scan method.
Background technique
With the development of scanning and printing technology, thought the technology that is difficult to realize now before 3D scanning, 3D printing etc.
Through being greatly expanded, the following various 3D scanners, 3D printer also start to flood market, and 3D scanner it
The instrument price of class is expensive, and structure is complicated, and operation is also complicated, for ordinary user or is not necessarily to nonexpondable user, purchase
It is born with using 3D scanner to become.The pixel of present personal picture pick-up device is higher and higher, and the photo taken can reach
To the standard generally scanned, so can be substantially reduced if ready-made personal picture pick-up device can be used to realize that 3D is scanned
Cost.
Summary of the invention
The present invention provides a kind of 3D scanning system and method, it is intended to which it is expensive to solve existing 3D scanning device, using multiple
Miscellaneous problem.
The present invention provides a kind of 3D scanning system, and the system comprises mobile phone camera, turntable, uniform speed electric motor, power supply, lines
Property laser, power supply connection uniform speed electric motor and linear laser, the uniform speed electric motor connect turntable and simultaneously drive its rotation, institute
State mobile phone camera, linear laser be located at turntable edge and with turntable interval, the optical axis of the mobile phone camera and linear
The linear laser of laser transmitting is at a horizontal sextant angle.
As a further improvement of the present invention, the turntable is equipped with the scanning area of putting on article, and the scanning area is in
In the angular field of view of mobile phone camera.
As a further improvement of the present invention, the rectilinear direction extended line of the linear laser transmitting linear beam is worn
Over-scan area, and the linear laser transmitting linear beam and turntable Plane of rotation angle be more than or equal to 85 ° and
Less than or equal to 95 °.
As a further improvement of the present invention, edge is equipped with the identification mark identified for mobile phone camera on the outside of the turntable
Note.
As a further improvement of the present invention, the uniform speed electric motor connect with turntable bottom edge biting connecions.
The present invention also provides 3D scan methods, comprising the following steps:
A. mobile phone camera is opened, it is automatic to calibrate mobile phone camera parameter, and mobile phone camera ginseng is fixed during scanning
Number;
B. the turntable identification label is searched, when label to be identified goes to designated position, starts continuous record image, and
Every frame image recording time is stabbed;
C. it after preset time, starts again at and searches the identification label, until identification label goes to designated position;
D. step B is repeated, when recognizing identification label to n-th, and identifying that label goes to designated position, is stopped recording
Image;
E. recorded image and timestamp information are utilized, threedimensional model is rebuild.
As a further improvement of the present invention, the step A is specifically used for automatic calibration mobile phone camera parameter: mobile phone is taken the photograph
As head operation automatic mode and print of taking pictures, laser lines are identified in print, are contrasted with pre-set criteria sample, to laser
Lines counted pixel-by-pixel it is quick-fried or cross dark pixel number, adjustment camera parameter take pictures and repeat the above steps again so that it is excessively quick-fried or
It is minimum to cross dark pixel number;Fixed mobile phone camera parameter includes focal length, white balance and exposure value, and is all provided with and is set to during scanning
Fixed value.
As a further improvement of the present invention, the step E further include:
E1. it calculates every frame angle information: when identification label goes to designated position twice, turning around for turntable rotation, during which
It is recorded as N frame, then it is N/360 ° that every frame, which corresponds to the information of object angle, and/or is turned around spent time according to rotation, then when by frame
Between stamp calculate the information that every frame corresponds to object angle;
E2. the laser lines pixel is identified frame by frame;
E3. the depth information of the pixel is obtained to the laser rays location of pixels and preset calibrations data comparison point by point;
E4. according to the depth information of all pixels, three-dimensional point cloud model is established;
E5. texture is calculated frame by frame and is inlayed.
As a further improvement of the present invention, this method is further comprising the steps of:
F. scanned object changes a posture and places, and runs the 3-D scanning method and step, obtains the second model;
G. the second model attitude and angle are manually adjusted, so that two models essentially coincide;
H. Auto-matching and the first, second mode shape stereo profile of fine tuning;
I. the first model is merged with the execution of the second model.
As a further improvement of the present invention, the step H the following steps are included:
H1. on the basis of the first model baseplane, the second model attitude of automatic fine tuning, until the first, second model bottom is flat
Face is completely coincident;
H2. the second model of horizontal translation, and its bottom profile is overlapped with the first model maximum;
H3. the first, second picture corresponding to the first, second model equal angular is read.
The beneficial effects of the present invention are: doing accessory using a cheap mobile phone, pass through the rotation of turntable, linear laser
The cooperation of device, identification label, realizes high accuracy three-dimensional scanning modeling.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of 3D scanning system of the present invention;
Fig. 2 is a kind of flow chart of 3D scan method of the present invention;
Fig. 3 is the flow chart of step E in a kind of 3D scan method of the present invention;
Fig. 4 is the flow chart of step H in a kind of 3D scan method of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.
As shown in Figure 1, a kind of 3D scanning system of the invention includes mobile phone camera 1, turntable 2, uniform speed electric motor 3, power supply
4, linear laser 5, power supply connect uniform speed electric motor 3 and linear laser 5, and uniform speed electric motor 3 connects turntable 2 and drives its rotation,
Mobile phone camera 1, linear laser 5 are located at the edge of turntable 2 and are spaced with turntable 2, and the optical axis of mobile phone camera 1 swashs with linear
The linear laser that light device 5 emits is at a horizontal sextant angle.
The rectilinear direction for the linear laser that linear laser 5 emits is vertical or approximate with the angle of 2 Plane of rotation of turntable
Vertically.Power supply 4 is electrically connected with uniform speed electric motor 3, linear laser 5;When startup power supply 4 switchs, uniform speed electric motor 3 starts to be driven, and makes
The slow uniform rotation of turntable 2 is obtained, linear laser 5 starts to emit laser;When closing the switch of power supply 4, uniform speed electric motor 3 stops, line
Property laser 5 stop transmitting laser;Power supply 4 can be two batteries composition.
Wherein, turntable 2 is equipped with the scanning area of putting on article, and scanning area is in the angular field of view of mobile phone camera 1.
The rectilinear direction extended line that linear laser 5 emits linear beam passes through scanning area, and the linear laser 5
The angle of the Plane of rotation of transmitting linear beam and turntable 2 is more than or equal to 85 ° and to be less than or equal to 95 °.Preferably, the folder
Angle is 90 °.
2 outside edge of turntable is equipped with the identification label 6 identified for mobile phone camera 1.Such as identify label 6 for red just
Rectangular, 2 rotating part of turntable and pedestal print half respectively, when square is overlapped, then reach designated position;Placement is swept
When retouching object, it need to prevent to be blocked.
After startup power supply, uniform speed electric motor 3 be driven so that turntable support scanned object uniformly rotate at a slow speed, while linear swashing
Light device 5 emits a branch of linear laser, is irradiated in body surface, there is an identification label 6 in 2 outside of turntable, for mobile phone camera 1
Identification.When scanning, scanned object is in 1 angular field of view of mobile phone camera, 1 optical axis of mobile phone camera and linear laser 5
Emitted linear laser, at a horizontal sextant angle;Mobile phone operation needs invisible scanning program to carry out 3-D scanning.
Uniform speed electric motor 3 connect with 2 bottom edge biting connecions of turntable.
As shown in Fig. 2, a kind of 3D scan method based on above equipment of the invention, comprising the following steps:
A. mobile phone camera 1 is opened, it is automatic to calibrate mobile phone camera parameter, and mobile phone camera is fixed during scanning
Parameter;
B. the turntable identification label 6 is searched, when label turn 6 to be identified arrives designated position, starts continuous record image,
And every frame image recording time is stabbed;
C. it after preset time, starts again at and searches the identification label 6, until identification label 6 goes to designated position;
D. step B is repeated, when recognizing identification label 6 to n-th, and identifying that label 6 goes to designated position, stops note
Record image;
E. recorded image and timestamp information are utilized, threedimensional model is rebuild.
Wherein, step A is also particularly useful for automatic calibration 1 parameter of mobile phone camera: mobile phone camera 1 runs automatic mode simultaneously
It takes pictures a print, laser lines is identified in print, is contrasted with pre-set criteria sample, quick-fried was counted pixel-by-pixel to laser lines
Or dark pixel number, adjustment camera parameter take pictures and repeat the above steps again excessively, so that excessively quick-fried or dark pixel number excessively is minimum;It is fixed
1 parameter of mobile phone camera includes focal length, white balance and exposure value, and is all provided with during scanning and is set to fixed value.
Wherein, as shown in figure 3, step E further include:
E1. it calculates every frame angle information: when identification label 6 goes to designated position twice, turning around for the rotation of turntable 2, the phase
Between be recorded as N frame, then it is N/360 ° that every frame, which corresponds to the information of object angle, and/or is turned around spent time according to rotation, then by frame
Timestamp calculates the information that every frame corresponds to object angle;
E2. the laser lines pixel is identified frame by frame;
E3. the depth information of the pixel is obtained to the laser rays location of pixels and preset calibrations data comparison point by point;
E4. according to the depth information of all pixels, three-dimensional point cloud model is established;
E5. texture is calculated frame by frame and is inlayed.
This method is further comprising the steps of after step E:
F. scanned object changes a posture and places, and runs the 3-D scanning method and step, obtains the second model;
G. the second model attitude and angle are manually adjusted, so that two models essentially coincide;
H. Auto-matching and the first, second mode shape stereo profile of fine tuning;
I. the first model is merged with the execution of the second model.
Wherein, as shown in figure 4, step H the following steps are included:
H1. on the basis of the first model baseplane, the second model attitude of automatic fine tuning, until the first, second model bottom is flat
Face is completely coincident;
H2. the second model of horizontal translation, and its bottom profile is overlapped with the first model maximum;
H3. the first, second picture corresponding to the first, second model equal angular is read.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that
Specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, exist
Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to of the invention
Protection scope.