A kind of three-dimensional foot type measuring device and implementation method based on automatic seeking board pattern
Technical field
The present invention relates to 3-D scanning technology and measurement field.Three-dimension foot more particularly to based on automatic seeking board pattern
Type measurement apparatus.
Background technology
At present, China, which alreadys exceed the U.S., turns into the maximum E-commerce market in the whole world, and wherein footwear take class portion position
Occupy first, online shopping market.While with the rapid growth of footwear online marketplace, footwear net purchase platform, vertical electric business are in fortune
The bottleneck of restriction industry development is encountered during battalion:Net purchase user causes effective purchase experiences to be short of because that can not try on,
So as to cause the phenomenon for easily occurring to have high goods return and replacement rate after conclusion of the business hesitates and struck a bargain during consumer's net purchase.Shoes and foot type
Matching degree determine level of comfort when wearing shoes.The characteristics of being only fully understood by pin, could be according to foot type rule
Consumer produces, picks out shoes comfortable and easy to wear.Nowadays, big data technology, the fast development of 3-D scanning technology, so that
Method is provided to solve above-mentioned footwear problem.
3-D scanning technology, is to integrate light, mechanical, electrical and computer technology new and high technology, is mainly used in object
Spatial shape and structure and color are scanned, to obtain the space coordinate of body surface.Its significance is can be by
Steric information in kind is converted to the data signal that computer capacity is directly handled, and is provided for material object digitlization quite convenient and swift
Means.3-D scanning technology can realize non-cpntact measurement, and have the advantages that speed is fast, precision is high.And its measurement result
Can directly with various software interface, this makes it be popular in today that the technology application such as CAD, CAM, CIMS becomes increasingly popular.
In the manufacturing industry of developed country, spatial digitizer is as a kind of quick measurement in space equipment, because its measuring speed is fast, precision
Height, noncontact is more and more applied the advantages of easy to use.With spatial digitizer to palm, sample, model are carried out
Scanning, can obtain its three-dimensional size data, these data can directly with CAD/CAM software interfaces, can be right in CAD system
Data are adjusted, repaired, being then sent through manufacture on machining center or rapid forming equipment, can greatly shorten product manufacturing week
Phase.
Big data technology, too big difference is had no with traditional data handling process, and the main distinction is:Because big data will be located
A large amount of, the non-structured data of reason, so can be carried out parallel using modes such as Map Reduce in each processing links
Processing.Big data can improve the processing speed of data by this parallel processing technique of Map Reduce.Map Reduce
Design original intention be to realize big data parallel processing by a large amount of low-cost servers, it is not high to data coherence request, its protrude
Advantage is the structuring that magnanimity is particularly suitable for use in autgmentability and availability, semi-structured and unstructured data mixing
Processing.Traditional inquiry, decomposition and data analysis are carried out distributed treatment by Map Reduce, and processing task is assigned into difference
Processing node, therefore with stronger parallel processing capability.Map Reduce are a set of software frames, including Map (mapping)
With two stages of Reduce (abbreviation), mass data segmentation, Task-decomposing and result can be carried out and collected, so as to complete magnanimity number
According to parallel processing.
Specifically, 3-D scanning technology can intactly gather consumer three-dimensional's foot type data, according to this three-dimension foot
Type data can search out or customize the comfortable shoes of a pair of for consumer.Generally using sharp in existing three-dimensional foot type scanning technique
Light and structure fringe principle obtain the three-dimensional coordinate on foot surface.The commercial foot type scanning device developed based on these principles
Imaging arrangement is complicated, and it is critically controlled and moved multigroup grating and high-precision industrial CCD camera using mechanical driving device
Combination, along with one powerful graph and image processing unit of needs so that equipment cost is high, and this is footwear industry relevant enterprise institute
It can not undertake.Also exactly because its high cost, so can only once measure a pin, greatly reduces the efficiency of scanning
And satisfaction of users.Chinese patent 200310108856.2, three-dimensional foot type measuring and modeling based on specifiable lattice pattern
Method, on the pin being through with the socks for being printed on grid, then shot simultaneously by multiple digital cameras or video camera, really
The angle point (corner) for protecting each grid was photographed by least two digital cameras or video camera, was then based on stereoscopic vision and light
The principle of picture is studied, the three-dimensional position of all grid angle points is recovered;On this basis, the three of these angle points recovered are utilized
Tie up position, the three-dimensional grid being covered on people's pin fitted again, finally according to three-dimensional grid to the locus of standard pin about
Beam, by deformable modeling method, sets up the model of specific three-dimensional foot type, and calculate the parameter of foot type.Based on each grid
Angle point be fitted again and obtain three-dimensional grid, computational complexity is higher.
Chinese patent 201010298713.2, three-dimensional foot scanner, three-dimensional foot scanner can form human foot
Image or three-dimensional data record, the making for shoe tree.The three-dimensional foot scanner includes:Foot scan device, for clapping
Take the photograph image on the inside of foot, image and foot bottom diagram picture on the outside of foot;And foot image file analysis system, for the foot
Image and foot bottom diagram picture are analyzed to obtain three-dimensional foot data on the outside of inner side image, foot.The present invention first with
Multiple cameras shoot the image of foot inner side, outside and bottom, then image is corrected and spliced, and extract complete foot
Portion inner side, outside and bottom profile, combined standard three-dimensional foot data generation foot threedimensional model, its camera is fixation, and
The more camera of consuming is needed to complete the shooting of the image of foot inner side, outside and bottom.
In addition, also a kind of foot shape measurement instrument based on principle of taking pictures, is spliced using single camera or multi-cam, passed through
The bottom surface and side profile for shooting pin are measured.This mode is limited by the coverage of camera, in order to shoot whole pin
The distance of type, camera and subject is very big, so that scanning casing needs to take much room.
The content of the invention
The technical problem to be solved in the present invention, which is to provide, tracking to take pictures and the three-dimensional foot type measuring of image procossing dress automatically
Put.
Above-mentioned technical problem is solved, the invention provides a kind of three-dimensional foot type measuring method based on automatic seeking board pattern,
Comprise the following steps:
The first camera captured in real-time foot bottom surface is controlled to obtain bottom profile line,
The bottom surface closed contour of both feet is obtained according to the bottom profile line,
Predeterminated position control second camera shoot foot's side photo obtain both feet broadside lines,
Set up according to above-mentioned bottom surface closed contour and broadside lines and obtain three-dimensional foot type.
Further, the control method to first camera is specially:
First camera is adjusted to default initial position,
First camera is proceeded by according to selected direction from above-mentioned initial position and taken pictures in real time,
In those photos, choose with central point p (u, v) as midpoint, the rectangular area that the length of side is w is effective treatment region
Domain, the effective coverage of each photograph frame to being obtained after taking pictures carries out image procossing and extracts foot's bottom profile line, upper
Current location is stated to take pictures and detect bottom profile line and obtain effective coordinate;
The direction extended along the bottom profile line, effective coordinate described in distance in above-mentioned effective processing region is farthest
Camera is moved to its center and overlapped with the position coordinates by profile point as next position coordinates,
By initial position start recording to all effective coordinates be bottom surface closed contour,
Effective coordinate is:When first camera central point with the contour line detected a little overlapping or
Person's distance is less than a given threshold, then coordinate of the position where first camera in the coordinate system XOY of track.
Further, if not detecting foot's bottom profile, first camera continues to move in the selected direction
It is dynamic, the corresponding position where detecting first photo for having bottom profile.
Further, predeterminated position control second camera shoot foot's side photo obtain both feet side profile
The method of line is specifically included:
The second camera is adjusted to default initial position, second camera shoots first from above-mentioned initial position
Open photo;
Second camera is moved to second position according to selected direction and taken pictures, two photos of shooting are carried out
Image procossing is carried out after splicing, and extracts the profile of side;
Overlapping region of the above-mentioned second camera in the photo captured by initial position and second position, to pass through
The method of feature detection carries out image mosaic, and above-mentioned second camera covers in the photo captured by initial position and second position
The most big foot that the scope of the physical space of lid is more than required measurement is long.
Further, first camera is configured as shooting the camera used in foot bottom surface, described second
Camera is configured to shoot the camera used in foot side,
Also include:To the two-way guide rails for moving first camera and/or the second camera according to track
With the stepper motor to control first camera and/or the second camera to be moved on the two-way guide rails.
Based on above-mentioned, present invention also offers a kind of three-dimensional foot type measuring device based on automatic seeking board pattern, including:One
Bearing unit, bottom profile system, broadside lines system and processing unit,
The bearing unit is to carry both feet, and as plane where sole contour line,
The bottom profile system, to control the first camera captured in real-time foot bottom surface to obtain bottom profile line, with
And, the bottom surface closed contour of both feet is obtained according to the bottom profile line,
The broadside lines system, to predeterminated position control second camera shoot foot's side photo is obtained
The broadside lines of both feet,
The processing unit is used to, to said process shoot photo carry out image flame detection, image denoising, rim detection and
The image graph of edge extracting obtains three-dimension foot as processing mode, and according to above-mentioned bottom surface closed contour and broadside lines foundation
Type.
Further, the bottom profile system includes:Automatic tracking photographing unit, image identification unit,
The automatic tracking photographing unit is used to, and is sought by the way that the camera described in the step motor control on guide rail is motor-driven
Simultaneously take pictures location;
Described image recognition unit is used to, and camera is shot to obtained image and carries out pretreatment and image outline extraction,
And measure satisfactory photo.
Further, the bearing unit includes:Bearing plate and base, are formed in one between the base and bearing plate
Cavity body, is provided with multiple supporting parts the bearing plate to be connected two-by-two with the base in cavity.
Present invention also offers a kind of three-dimensional foot type measuring device based on automatic seeking board pattern, enter according to described method
Row operation, in addition to:
It is provided with one carrying platform, the carrying platform:To load-bearing and the double-legged transparent bearing plate of measurement, to carry
For the longitudinal rail and cross slide way of sliding rail,
The camera shot used in foot side is provided with the longitudinal rail and cross slide way and foot is shot
Camera used in bottom surface,
And, the stepper motor to control camera follow shot foot side or bottom surface,
The transparent bearing plate is located at first level face, and the photo of the foot bottom surface captured by the camera is located at the 3rd
Plane, the motion track of the camera is located at the second horizontal plane, and the camera used in shooting foot side is located at the 4th
Horizontal plane.
By the control method of above-mentioned three-dimensional foot type measuring method, comprise the following steps:
The addressing of two-way guide rails is carried out by the stepper motor driven camera,
Bottom surface closed contour is acquired according to addressing,
And broadside lines is acquired according to the splicing of multiple spot consecutive image.
Beneficial effects of the present invention:
The three-dimensional foot type measuring method based on automatic seeking board pattern provided in the present invention, by controlling the first camera real
When shoot foot bottom surface and obtain bottom profile line, the bottom surface closed contour of both feet is obtained according to the bottom profile line, pre-
If position control second camera shoot foot's side photo obtain both feet broadside lines, according to above-mentioned bottom surface close take turns
Profile and broadside lines, which are set up, obtains three-dimensional foot type.It can not be limited, be only taken up smaller by camera coverage scope
Space.Meanwhile, using the three-dimensional foot type of both feet can be measured simultaneously, improve scanning survey efficiency and user experience.
Brief description of the drawings
Fig. 1 is the three-dimensional foot type measuring method flow diagram based on automatic seeking board pattern in one embodiment of the invention;
Fig. 2 is the control method flow chart to the first camera in Fig. 1;
Fig. 3 is the three-dimensional foot type measuring apparatus structure schematic diagram based on automatic seeking board pattern in one embodiment of the invention;
Fig. 4 is the horizontal coordinate schematic diagram of device in Fig. 3;
Fig. 5 is effective processing region of the photo captured by the bottom surface camera chosen in figure 3;
Fig. 6 is the three-dimensional foot type measuring schematic device based on automatic seeking board pattern in one preferred embodiment of invention.
Embodiment
The principle of the disclosure is described referring now to some example embodiments.It is appreciated that these embodiments are merely for saying
It is bright and help it will be understood by those skilled in the art that with the purpose of the embodiment disclosure and describe, rather than advise model of this disclosure
Any limitation enclosed.Content of this disclosure described here can be implemented in the various modes outside mode described below.
As described herein, term " comprising " and its various variants are construed as open-ended term, it means that " bag
Include but be not limited to ".Term "based" is construed as " being based at least partially on ".Term " one embodiment " it is understood that
For " at least one embodiment ".Term " another embodiment " is construed as " at least one other embodiment ".
Fig. 1 is the three-dimensional foot type measuring method flow diagram based on automatic seeking board pattern in one embodiment of the invention, step
S100 controls the first camera captured in real-time foot bottom surface to obtain bottom profile line, and step S101 is obtained according to the bottom profile line
To both feet bottom surface closed contour, step S102 predeterminated position control second camera shoot foot's side photo is obtained
The broadside lines of both feet, step S103 sets up according to above-mentioned bottom surface closed contour and broadside lines and obtains three-dimensional foot type.
In the step s 100, it can shoot foot bottom surface by controlling the first camera to be moved at diverse location and obtain bottom surface wheel
Profile.The closed contour of left and right pin both feet is tried to achieve in step S101, can left and right pin try to achieve respectively.Survey in step s 102
The broadside lines to left and right pin is measured, the data on vertical direction are obtained.Basis is in step S101 in step S103 and walks
Bottom surface closed contour and broadside lines that rapid S102 measurements are obtained.
As preferred in the present embodiment, Fig. 2 is the control method flow chart to the first camera in Fig. 1, to described
The control method of one camera is specially:
Step S200 adjusts first camera to default initial position,
The cameras of step S201 first are proceeded by from above-mentioned initial position and taken pictures in real time,
Step S202 is handled each photograph frame obtained after taking pictures and extracted those of foot's bottom profile line
Photo, if not detecting foot's bottom profile, first camera continues to move in the selected direction, until detecting
First has corresponding position where the photo of bottom profile.
Step S203 is chosen with central point p (u, v) as midpoint, the rectangular area that the length of side is w is effective in those photos
Processing region, is judged as in the photo of bottom profile currently, chooses with central point p (u, v) as midpoint, and the length of side is w square
Shape region is effective processing region.The farthest profile point of distance center point is recorded in this region sits for next position
Mark, and it is sent to control camera simultaneously in level, the stepper motor of vertical direction movement.By driving stepper motor, lead to
Cross horizontal and vertical guide rail and bottom surface camera is moved to this position.
Step S204 regard the farthest profile point of central point described in distance in above-mentioned effective processing region as next position
Coordinate, and current location is obtained according to position coordinates determination, if in the contour line and those photos in current photo
The minimum range of heart point is more than a given threshold, then causes to direction the first camera of movement of the profile point of minimum range described
The central point of first camera is overlapped with the profile point;
If the minimum range at the center of the contour line and current photo is less than a given threshold, continues to take pictures and extract
Go out photo.
Step S205 takes pictures in above-mentioned current location and detects bottom profile line and obtain effective coordinate, is taken turns along the bottom surface
The direction of profile extension, finds out the contour line that closure is formed after effective coordinate;The direction extended along contour line is constantly repeated, directly
To the contour line of the effective coordinate formation closure found.
Effective coordinate is described in step S206:One on the central point and the contour line that detects of first camera
Point is overlapped, then coordinate of the position where first camera in the coordinate system XOY of track.
In above-mentioned steps step S200- steps S206, first camera is configured as shooting foot bottom surface
Camera used, the second camera is configured to shoot the camera used in foot side,
Also include:To the two-way guide rails for moving first camera and/or the second camera according to track
With the stepper motor to control first camera and/or the second camera to be moved on the two-way guide rails.
Specifically, first camera can be adjusted to default initial position, the first camera is from above-mentioned initial
Position proceeds by according to selected direction and taken pictures in real time, in those photos, chooses with central point p (u, v) as midpoint, the length of side
It is effective processing region for w rectangular area, the effective coverage of each photograph frame to being obtained after taking pictures carries out image procossing simultaneously
Foot's bottom profile line is extracted, is taken pictures in above-mentioned current location and is detected bottom profile line and obtain effective coordinate;Described in
The direction of bottom profile line extension, using effective farthest profile point of coordinate described in distance in above-mentioned effective processing region as next
Individual position coordinates, and camera is moved to its center overlapped with the position coordinates, by initial position start recording to it is all
Effective coordinate is bottom surface closed contour, and effective coordinate is:When the central point and the wheel that detects of first camera
Any on profile is overlapped or apart from less than a given threshold, then the position where first camera is in track coordinate system
Coordinate in XOY.
Fig. 3 is the three-dimensional foot type measuring apparatus structure schematic diagram based on automatic seeking board pattern in one embodiment of the invention,
A kind of three-dimensional foot type measuring device based on automatic seeking board pattern, including:One bearing unit 100, bottom profile system 200, side
Facial contour linear system system 300 and processing unit 400,
The bearing unit 100 is to carry both feet, and as plane where sole contour line,
The bottom profile system 200, to control the first camera captured in real-time foot bottom surface to obtain bottom profile line,
And, the bottom surface closed contour of both feet is obtained according to the bottom profile line,
The broadside lines system 300, to shoot to obtain foot's side photo in predeterminated position control second camera
The broadside lines of both feet is obtained,
In the broadside lines system 300, predeterminated position control second camera shoot foot's side photo is obtained
Method to the broadside lines of both feet is specifically included:
The second camera is adjusted to default initial position, second camera shoots first from above-mentioned initial position
Open photo;
Second camera is moved to second position according to selected direction and taken pictures, two photos of shooting are carried out
Image procossing is carried out after splicing, and extracts the profile of side;
Overlapping region of the above-mentioned second camera in the photo captured by initial position and second position, to pass through
The method of feature detection carries out image mosaic, and above-mentioned second camera covers in the photo captured by initial position and second position
The most big foot that the scope of the physical space of lid is more than required measurement is long.
The processing unit 400 is used to, and is set up according to above-mentioned bottom surface closed contour and broadside lines and obtains three-dimension foot
Type.
As preferred in the present embodiment, Fig. 5 is effective place of the photo captured by the bottom surface camera chosen in figure 3
Region is managed, as shown in figure 5, being judged as currently in the photo of bottom profile, is chosen with central point p (u, v) as midpoint, the length of side
It is effective processing region for w rectangular area.The farthest profile point of distance center point is recorded to be next in this region
Position coordinates, and stepper motor is sent to simultaneously.By driving stepper motor, bottom surface camera is moved by horizontal and vertical guide rail
Move this position.
As preferred in the present embodiment, the bottom profile system 200 includes:Automatic tracking photographing unit, image are known
Other unit, the automatic tracking photographing unit is used to, and the camera on control stepper motor is taken pictures and motor-driven addressing;Described image
Recognition unit is used to, and camera shoots to obtained image carries out pretreatment and image outline is extracted, and measures and conform to
The photo asked.
In certain embodiments, automatic tracking photographing unit when light is poor also to compensate illumination.
The bearing unit 100 includes:Bearing plate and base, form cavity in one between the base and bearing plate
Body, is provided with multiple supporting parts the bearing plate to be connected two-by-two with the base in cavity.
In certain embodiments, the bearing plate is safety glass.
In certain embodiments, the bearing plate is clear glass.
Fig. 4 is the horizontal coordinate schematic diagram of device in Fig. 3, wherein, B01 is load-bearing safety glass, and upper surface is sole wheel
Plane where exterior feature, coordinate system UOV;B02 is the plane where the track that bottom surface camera is moved, and is set to trajectory coordinates system XOY;
B03 is the plane of delineation as the photo captured by the first camera of bottom surface camera, is set to image coordinate system uov;B04 is
The first camera of bottom surface camera is used as in the present apparatus.
Fig. 6 is the three-dimensional foot type measuring schematic device based on automatic seeking board pattern in one preferred embodiment of invention, and one holds
It is provided with carrying platform 8, the carrying platform 8:To load-bearing and the double-legged transparent bearing plate 5 of measurement, to provide slip rail
The longitudinal rail 3 and cross slide way 4 in road,
The camera 6 shot used in foot side is provided with the longitudinal rail 3 and cross slide way 4 and pin is shot
Camera 7 used in portion bottom surface,
And, to control camera transverse shifting to shoot the stepper motor (1,2) of foot side or bottom surface,
The transparent bearing plate 5 is located at first level face, and the photo of the foot bottom surface captured by the camera is located at the
Three planes, the motion track of the camera is located at the second horizontal plane, and the camera used in shooting foot side is located at the
Four horizontal planes.
Concrete operation method is:
Initialize the position of the camera of bottom surface.Pin will be shot by the motor 1 and motor A02 shown in Fig. 3
The camera 7 used in camera 6 and shooting foot bottom surface used in portion side delivers to the initial position of definition.
In certain embodiments, the initial position of the definition is:Some point specified in coordinate plane, is used as this coordinate
0 point (origin), can be any point.Chosen in the present embodiment according to the content (such as, the profile of pin) specifically scanned
So that the starting point of camera track route most short (or addressing route spent time is optimal).This initial position and initial fortune
Dynamic direction is determined, then judges that the specific method of first profile point has also been assured that and (shot because of in initial position
Image and the image request of first profile photographed since this direction of this position have obvious different features).
Bottom surface camera is taken pictures in real time since initial position, and image processing module is handled and carried to each photograph frame
Take out the profile of foot plate surface.If it is determined that not detecting profile, bottom surface camera will be moved to selected direction, until detection
Untill position where going out first and having the photo of bottom profile.The condition for judging profile is the central point of camera with detecting
Contour line on a little overlap (i.e. contour line passes through image center).Position where meeting the camera of this situation is in-orbit
Coordinate in mark coordinate system XOY is recorded as effective coordinate value.
As shown in figure 5, being judged as currently in the photo of bottom profile, choose with central point p (u, v) as midpoint, side
A length of w rectangular area is effective processing region.The farthest profile point of distance center point is recorded to be next in this region
Individual position coordinates, and stepper motor is sent to simultaneously.By driving stepper motor, by horizontal and vertical guide rail by bottom surface camera
It is moved to this position.Stepper motor can be 28 stepper motors.
Taken pictures in current location and detect bottom profile, if the minimum range at the center of contour line and current photo is more than
One threshold value, then overlap to the central point of direction dollying head to the camera of the profile point of minimum range with the profile point;
If the minimum range at the center of contour line and current photo is less than this threshold value, the step of repeatedly profile line position is found,
The coordinate of the position is recorded as effective coordinate value.
The direction extended along contour line constantly repeats the above steps, the profile closed until the effective coordinate formation found
Line.
Repeat the above steps, find the contour line of all effective coordinate formation closures of an other pin.
Side camera is moved to the position of initialization.According to certain step-length pin is shot in each default position
Side photo.And pass through image procossing, splicing and extraction side profile.
In the present embodiment, step-length is defined as the distance that camera is moved every time, and this distance is by the image that shoots every time
Effective size (a certain size the region taken in the whole image shot as previously described, be usually using camera center in
One piece of image-region of the heart.The image procossing being related in all methods all just for this region, is called effective coverage) determine.
Because the contour images of side are formed by the secondary photomosaics of 2-3, then this step-length is typically less than the width of image so that adjacent
There is overlapping region between two images, be easy to splicing.Preferably, the region after 2-3 width image mosaic is long more than the pin of maximum.
Standard human foot model based on preservation, the bottom profile obtained by above-mentioned steps and side profile, can set up
New three-dimensional foot type, and the measured value of each key position of foot is obtained by the algorithm of definition automatically.
Although the disclosure is described with specific structural features and/or method action, but it is understood that will in appended right
The disclosure limited in book is asked to be not necessarily limited to above-mentioned specific features or action.But, above-mentioned specific features and action are only public
Open to implement the exemplary forms of claim.