A kind of garment dimension measurement method and device
Technical field
The present invention relates to garment measuring technical field, more particularly to a kind of garment dimension measurement method and device.
Background technology
In many occasions of clothing industry, it is often necessary to be measured to the size of clothes.
The measurement of traditional garment dimension is measured using manual type, and step is:Tile clothes first, then artificial to use
Gage measures the size at each position of clothes, measurement data is finally recorded, since in garment manufacturing industry, the manufacture of clothes is often
It is very big, need the clothes quantity measured also very big, therefore, there are problems for manual measurement mode:Survey crew's fatigue strength height,
Measuring speed is slow, measurement cost is high and measurement standard is inconsistent.
In recent years, the measurement of the dimension data based on three-dimensional (3 D) manikin may be used in the dimensional measurement of clothes, however, the survey
Amount mode needs clothes being through in mechanical structure or human body, or needs to be surveyed by shooting the plurality of pictures of multiple angles
Amount, for the measurement demand of a large amount of clothes of garment manufacturing industry, this is not one and effectively improves measurement efficiency and measure accurate
The method of degree.
Therefore, the garment dimension measurement of the prior art there are measurement efficiencies relatively low, measuring accuracy is not high and automation
The relatively low problem of degree.
Invention content
In view of this, an embodiment of the present invention provides a kind of garment dimension measurement method and devices, to improve garment dimension
Measurement efficiency, measuring accuracy and improve Automatic survey degree.The technical solution is as follows:
In a first aspect, a kind of garment dimension measurement method is provided, the method includes:
Shooting is carried out to clothes to be measured by calibrated camera and obtains garment image;
Clothes profile is extracted from the garment image;
It obtains and meets the inflection point of preset condition on the clothes profile, and generate inflection point collection;And
Determine the most matched clothes template of the clothes profile;
According to the default measurement point in the inflection point collection and the clothes template, the measurement of the clothes to be measured is obtained
Point;
According to the nominal data of the measurement point and the camera, the size of the clothes to be measured is calculated.
With reference to first aspect, in the first possible implementation, it is described by calibrated camera to clothes to be measured
It puts into before row shooting acquisition garment image step, the method further includes:
The camera is demarcated, and obtains the nominal data of the camera;
Wherein, the nominal data includes the actual range for shooting the unit pixel of picture and representing.
With reference to first aspect, in second of possible realization method, meet on the acquisition clothes profile default
The inflection point of condition, and generate inflection point collection and include:
In all profile points of the clothes profile, be more than by curvature preset curvature threshold value profile point be determined as it is described
The inflection point of clothes profile;
It arranges to the inflection point of the clothes profile according to predetermined order, generates the inflection point collection.
With reference to first aspect, in the third possible realization method, the most matched clothes of the determination clothes profile
Decking includes:
The clothes profile is subjected to template matches in preset clothes template library, and according to matching result, determine with
The matching degree of the clothes profile is more than multiple clothes templates of preset matching degree threshold value;
The multiple clothes template is verified, and according to verification result, institute is determined from the multiple clothes template
State the most matched clothes template of clothes profile.
With reference to first aspect to the third any one possible realization method of first aspect, in the 4th kind of possible reality
In existing mode, the measurement point includes the contour feature point of the clothes to be measured, described according to the inflection point collection and the clothes
Default measurement point on decking, the measurement point for obtaining the clothes to be measured include:
The clothes template is deformed into and is matched with the clothes profile size;
It is concentrated in the inflection point, the default measurement point position of each of search and the deformed clothes template is immediate
Inflection point;
The inflection point searched is determined as to the contour feature point of the clothes to be measured.
The 4th kind of possible realization method with reference to first aspect, in the 5th kind of possible realization method, the measurement
Point further include the clothes to be measured inter characteristic points and/or the clothes to be measured other contour feature points, it is described to obtain
The measurement point of the clothes to be measured is taken to further include:
According to the default measurement point on the contour feature point and the clothes template, the interior of the clothes to be measured is obtained
Other contour feature points of portion's characteristic point and/or the clothes to be measured;
Wherein, other described clothes contour feature points are not concentrated in the inflection point.
With reference to first aspect or the first possible realization method of first aspect, in the 6th kind of possible realization method
In, the size of the nominal data according to the measurement point and the camera, the calculating clothes to be measured includes:
The number of pixels between the measurement point is determined on the garment image;
According to the actual range that unit pixel represents in the number of pixels and the nominal data, calculate described to be measured
The size of clothes.
With reference to first aspect, described according to the measurement point and the camera in the 7th kind of possible realization method
Nominal data, after the size procedure for calculating the clothes to be measured, the method further includes:
The measurement point and the mark size of the clothes to be measured are shown on the garment image.
Second aspect, provides a kind of garment dimension measuring device, and described device includes:
First acquisition module carries out shooting acquisition garment image for passing through calibrated camera to clothes to be measured;
Extraction module, for extracting clothes profile from the garment image;
Generation module meets the inflection point of preset condition on the clothes profile for obtaining, and generates inflection point collection;
Determining module, for determining the most matched clothes template of the clothes profile;
Second acquisition module, for according to the default measurement point in the inflection point collection and the clothes template, described in acquisition
The measurement point of clothes to be measured;
Computing module calculates the clothes to be measured for the nominal data according to the measurement point and the camera
Size.
In conjunction with second aspect, in the first possible implementation, described device further includes:
Acquisition module is demarcated, for demarcating the camera, and obtains the nominal data of the camera;
Wherein, the nominal data includes the actual range for shooting the unit pixel of picture and representing.
In conjunction with second aspect, in second of possible realization method, the generation module is specifically used for:
In all profile points of the clothes profile, be more than by curvature preset curvature threshold value profile point be determined as it is described
The inflection point of clothes profile;
It arranges to the inflection point of the clothes profile according to predetermined order, generates the inflection point collection.
In conjunction with second aspect, in the third possible realization method, the determining module is specifically used for:
The clothes profile is subjected to template matches in preset clothes template library, and according to matching result, determine with
The matching degree of the clothes profile is more than multiple clothes templates of preset matching degree threshold value;
The multiple clothes template is verified, and according to verification result, institute is determined from the multiple clothes template
State the most matched clothes template of clothes profile.
In conjunction with the third any one possible realization method of second aspect to second aspect, the measurement point includes institute
The contour feature point for stating clothes to be measured, in the 4th kind of possible realization method, second acquisition module is specifically used for:
The clothes template is deformed into and is matched with the clothes profile size;
It is concentrated in the inflection point, the default measurement point position of each of search and the deformed clothes template is immediate
Inflection point;
The inflection point searched is determined as to the contour feature point of the clothes to be measured.
In conjunction with the 4th kind of possible realization method of second aspect, in the 5th kind of possible realization method, the measurement
Point further includes the inter characteristic points of the clothes to be measured and/or other contour feature points of the clothes to be measured, and described the
Two acquisition modules are specifically additionally operable to:
According to the default measurement point on the contour feature point and the clothes template, the interior of the clothes to be measured is obtained
Other contour feature points of portion's characteristic point and/or the clothes to be measured;
Wherein, other described clothes contour feature points are not concentrated in the inflection point.
In conjunction with the possible realization method of the first of second aspect or second aspect, in the 6th kind of possible realization method
In, the computing module is specifically used for:
The number of pixels between the measurement point is determined on the garment image;
According to the actual range that unit pixel represents in the number of pixels and the nominal data, calculate described to be measured
The size of clothes.
In conjunction with second aspect, in the 7th kind of possible realization method, described device further includes:
Display module, the measurement point for showing the clothes to be measured on the garment image and the mark ruler
It is very little.
An embodiment of the present invention provides a kind of garment dimension measurement method and devices, including are treated by calibrated camera
It measures clothes and carries out shooting acquisition garment image;Clothes profile is extracted from garment image;It obtains to meet on clothes profile and preset
The inflection point of condition, and generate inflection point collection;And determine the clothes template that clothes profile matches;According to inflection point collection and clothes template
On default measurement point, obtain the measurement point of clothes to be measured;According to the nominal data of measurement point and camera, clothes to be measured are calculated
The size of dress;Due to passing through the inflection point collection and the corresponding clothes template of clothes to be measured on the clothes profile according to clothes to be measured
On default measurement point, obtain the measurement point of clothes to be measured, and the mark based on measurement point and the camera for shooting clothes to be measured
Fixed number compares in the prior art according to the size for calculating clothes to be measured by manual measurement garment dimension mode or based on three-dimensional
For the dimension data measurement method of manikin, can it is more accurate, quickly obtain the size of clothes to be measured, and be not necessarily to
Excessive manual operation improves the degree of automation of garment dimension measurement.
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 only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the schematic diagram of angle point on clothes profile and profile in the prior art;
Fig. 2 is a kind of garment dimension measuring method flow chart provided in an embodiment of the present invention;
Fig. 3 is a kind of garment dimension measuring method flow chart provided in an embodiment of the present invention;
Fig. 4 a are the interface schematic diagrams of the garment image of clothes to be measured in the embodiment of the present invention;
Fig. 4 b are the interface schematic diagrams of the image segmentation result of garment image in the embodiment of the present invention;
Fig. 4 c are the interface schematic diagrams of the rejecting background result of garment image in the embodiment of the present invention;
Fig. 4 d are the interface schematic diagrams of the clothes profile in garment image in the embodiment of the present invention;
Fig. 5 is the clothes profile being deformed to clothes template using circumscribed circle in the embodiment of the present invention with clothes to be measured
The interface schematic diagram matched;
Fig. 6 is the interface schematic diagram of the measurement point of clothes to be measured in the embodiment of the present invention;
Fig. 7 is a kind of garment dimension measuring device structural schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention
Figure, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this
Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
The every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a kind of garment dimension measurement method, this method can it is more accurate, quickly waited for
The size of clothes is measured, and is not necessarily to excessive manual operation, improves the degree of automation that garment dimension measures.Wherein, this hair
Executive agent in bright embodiment can be provided in the terminal device on garment measuring platform, and the terminal device is with setting in clothes
Camera on test desk is connected, which can be the equipment such as computer.
Wherein, " the clothes profile angle point " referred in the embodiment of the present invention refers to after clothes tile, and outer profile is one
Closed curve, angle point are some turning points on the curve, are the particular points that two sections of more smooth profiles are connected, specific to join
As shown in Figure 1, Fig. 1 is the schematic diagram of angle point on clothes profile and profile in the prior art.
Embodiment one
An embodiment of the present invention provides a kind of garment dimension measurement methods, and with reference to shown in Fig. 2, this method includes:
201, shooting is carried out to clothes to be measured by calibrated camera and obtains garment image.
202, clothes profile is extracted from garment image.
203, it obtains on clothes profile and meets the inflection point of preset condition, and generate inflection point collection.
Specifically, the process may include:
In all profile points of clothes profile, the profile point for by curvature being more than preset curvature threshold value is determined as clothes profile
Inflection point;
It arranges to the inflection point of clothes profile according to predetermined order, generates inflection point collection.
204, the most matched clothes template of clothes profile is determined.
Specifically, the process may include:
Clothes profile is identified, determines the corresponding clothes fashion of clothes profile;
Clothes profile is subjected to template matches in preset clothes template library, and according to matching result, determining and clothes
The matching degree of profile is more than multiple clothes templates of preset matching degree threshold value;
Multiple clothes templates are verified, and according to verification result, clothes profile is determined most from multiple clothes templates
Matched clothes template.
It should be noted that the embodiment of the present invention is not especially limited the execution sequence of step 203 and step 204,
In practical application, it is performed simultaneously step 203 and step 204, is preferred embodiment, the measurement to further increase garment dimension is imitated
Rate.
205, according to the default measurement point on inflection point collection and clothes template, the measurement point of clothes to be measured is obtained.
Wherein, measurement point includes the contour feature point of clothes to be measured, which may include:
Clothes template is deformed into and is matched with clothes profile size;
It is concentrated in inflection point, the default immediate inflection point in measurement point position of each of search and deformed clothes template;
The inflection point searched is determined as to the contour feature point of clothes to be measured.
Wherein, measurement point further includes the inter characteristic points of clothes to be measured and/or other contour features of clothes to be measured
Point, the process may include:
According to the default measurement point on contour feature point and clothes template, obtain clothes to be measured inter characteristic points and/
Or other contour feature points of clothes to be measured;
Wherein, other clothes contour feature points are not concentrated in inflection point.
206, according to the nominal data of measurement point and camera, the size of clothes to be measured is calculated.
Specifically, the process may include:
The number of pixels between measurement point is determined on garment image;
According to the actual range that unit pixel represents in number of pixels and nominal data, the size of clothes to be measured is calculated.
Further, before step 201, method further includes:
Calibration for cameras, and obtain the nominal data of camera;
Wherein, nominal data includes the actual range for shooting the unit pixel of picture and representing.
Further, after step 206, method further includes:
The measurement point and dimensioning of clothes to be measured are shown on garment image.
An embodiment of the present invention provides a kind of garment dimension measurement methods, including by calibrated camera to clothes to be measured
It puts into row shooting and obtains garment image;Clothes profile is extracted from garment image;It obtains and meets preset condition on clothes profile
Inflection point, and generate inflection point collection;And determine the clothes template that clothes profile matches;According to pre- on inflection point collection and clothes template
If measurement point, the measurement point of clothes to be measured is obtained;According to the nominal data of measurement point and camera, the ruler of clothes to be measured is calculated
It is very little;Due to by pre- on the inflection point collection and the corresponding clothes template of clothes to be measured on the clothes profile according to clothes to be measured
If measurement point, the measurement point of clothes to be measured, and the nominal data based on measurement point and the camera for shooting clothes to be measured are obtained
The size for calculating clothes to be measured compares in the prior art by manual measurement garment dimension mode or based on 3 D human body mould
For the dimension data measurement method of type, can it is more accurate, quickly obtain the size of clothes to be measured, and without excessive
Manual operation improves the degree of automation of garment dimension measurement.
Embodiment two
An embodiment of the present invention provides a kind of garment dimension measurement methods, and with reference to shown in Fig. 3, this method includes:
301, calibration for cameras, and obtain the nominal data of camera.
Wherein, nominal data includes the actual range for shooting the unit pixel of picture and representing.
Specifically, using Zhang Zhengyou standardizations or other scaling methods in the prior art, with black and white chessboard correcting camera,
Wherein, it is more to correct the amount of images used, correction result is more accurate.In the embodiment of the present invention, five film,faults of shooting calibration one
A camera shoots calibration picture with random order in the range upper and lower, left and right that camera lens can photograph respectively, is put into later just
Picture is demarcated in middle shooting, last shooting picture needs is identical as the direction that clothes are placed as possible, is shot so as to utilize
Photo ajust inclined clothing.
After obtaining the distortion parameter of camera using Zhang Zhengyou camera calibration methods, by after further calculating and being corrected
Image.The angle point that black and white chessboard is tracked in image after calibration, obtains each tessellated length of side, is obtained with prior measurement
The tessellated true length of side corresponds to, the actual range of unit pixel representative in the camera shooting picture after correct, and by phase
Machine shoots nominal data of the actual range of unit pixel representative in picture as camera, nominal data is preserved, so as to subsequent reads
Take and be used for the dimension scale conversion of garment measuring.
In the embodiment of the present invention, calibration for cameras is step more important in entire measurement process, directly affects measurement knot
The accuracy of fruit;By calibration for cameras, camera parameter is obtained, the error that camera distortion is brought can be removed;In addition, obtaining photo
In the actual range length that represents of each pixel, convert for the dimension scale of garment measuring.
302, shooting is carried out to clothes to be measured by calibrated camera and obtains garment image.
Specifically, calling SDK Interface Controllers to the clicking operation of preset icon in garment dimension measure interface according to user
Calibrated camera shoots the clothes to be measured being laid on test desk;
The picture taken is pre-processed, the garment image of clothes to be measured is obtained;
Wherein, the picture taken is pre-processed, the process for obtaining the garment image of clothes to be measured may include:
Hsv color space is projected image onto, and using the channels V of HSV, by the dash area in background also same background
It splits together, preferably color to be utilized to distinguish foreground and background.
Using Mean shift algorithm image segmentations, image is divided into polylith region according to color, is filled using unrestrained water
(Flood Fill) algorithm rejects background, and the every piece of region unicom that will be partitioned into is rejected by the way that background area mask is set as 0
Fall former shooting image background, reject background can to avoid have in background sundries influence whether in next step to clothes profile into
Capable extraction.
In the embodiment of the present invention, shooting is carried out to clothes to be measured by calibrated camera and obtains garment image, so as to
Clothes profile is subsequently more accurately extracted from garment image, to obtain more accurately garment dimension.
303, clothes profile is extracted from garment image.
Wherein, after clothes profile refers to clothes tiling, take pictures to obtain the outer profile of clothes to be measured in picture, the clothes
Dress profile is a closed curve.
Specifically, the process may include:
According to default Outside contour extraction algorithm, image border is obtained, recycles the area of surrounded by edges to sort, surround the area
Maximum edge is the outer profile of image.
The effect that the method that embodiment provides in order to further illustrate the present invention is reached, below in conjunction with Fig. 4 a~4d couple
The method that the embodiment of the present invention is provided is further illustrated, it is assumed that is carried out to clothes to be measured by calibrated camera
Shooting the garment image that gets is shown in Fig. 4 a, and Fig. 4 a are the interfaces of the garment image of clothes to be measured in the embodiment of the present invention
Schematic diagram;Image segmentation is executed to Fig. 4 a, obtained interface is referred to shown in Fig. 4 b, and Fig. 4 b are clothes in the embodiment of the present invention
The interface schematic diagram of the image segmentation result of picture;Fig. 4 b are executed and reject background, obtained interface is referred to shown in Fig. 4 c,
Fig. 4 c are the interface schematic diagrams of the rejecting background result of garment image in the embodiment of the present invention;Clothes wheel is extracted to Fig. 4 c
Exterior feature, obtained interface are referred to shown in Fig. 4 d, and Fig. 4 d are the interfaces of the clothes profile in garment image in the embodiment of the present invention
Schematic diagram.
304, in all profile points of clothes profile, the profile point for by curvature being more than preset curvature threshold value is determined as clothes
The inflection point of profile.
Wherein, inflection point is the profile point that curvature is more than preset curvature threshold value on clothes outer profile, and inflection point is in addition to clothes profile
On angle point outside, further include the point that local curvature is larger in some smoothed profiles;The preset curvature threshold value can be according to practical need
It asks and is configured.
Specifically, to the clothes profile extracted, traversal calculates each profile point adjacent thereto two on clothes profile
The angle that a profile point is constituted;
According to the numerical value of angle, determine that curvature is more than the profile point of preset curvature threshold value.
In the embodiment of the present invention, by calculating the angle of each profile point two profile point adjacent thereto, clothes can be filtered out
Most smooth profile points on profile are filled, and the calculating time of garment measuring point identification can be reduced.
305, it arranges to the inflection point of clothes profile according to predetermined order, generates inflection point collection.
Specifically, since the profile being calculated has certain sequence, the inflection point detected equally has one
Fixed sequence, wherein this can sequentially arrange according to sequence counter-clockwise.
The present invention is not limited specific generating process.
In the embodiment of the present invention, by arranging to the inflection point of clothes profile according to predetermined order, generation inflection point collection, with
Continue the calculating time reduced to garment dimension after an action of the bowels.
It is worth noting that, step 304 to step 305 is to realize the inflection point for obtaining and meeting preset condition on clothes profile,
And the process of inflection point collection is generated, other than the mode of above-mentioned steps, the process can also be realized by other means, the present invention
Embodiment is not limited specific mode.
306, clothes profile is subjected to template matches in preset clothes template library, and according to matching result, determine with
The matching degree of clothes profile is more than multiple clothes templates of preset matching degree threshold value.
Wherein, clothes template corresponds to clothes fashion, and clothes fashion can be overcoat, shirt, T-shirt, fitted pants and skirt etc.;In advance
If matching degree threshold value can be configured according to actual demand;
Prestore multiple clothes templates in clothes template library, and each clothes template, which records, presets measurement in the clothes template
The position of point and the correspondence between measuring size.
The present invention is not limited specific matching process.
307, multiple clothes templates are verified, and according to verification result, clothes wheel is determined from multiple clothes templates
Wide most matched clothes template.
Specifically, the convex closure defect by calculating clothes contour shape, verification is more more than preset matching degree threshold value successively
A clothes template excludes convex closure defect number mismatch or the unmatched template of convex closure defective locations, obtains final
With as a result, determining the most matched clothes template of clothes profile.
It is to be measured obtaining since size is different between the measurement point number and measurement point of different clothes fashions
It before the measurement point of clothes, needs to identify clothes fashion, and clothes template is corresponding with clothes fashion, therefore by by clothes wheel
Exterior feature carries out template matches in preset clothes template library, and is verified respectively to the multiple clothes templates being matched to, and determines
Go out with the most matched clothes template of clothes profile, the measurement accuracy of subsequent garments size can be improved.
It is worth noting that, step 306 to step 307 is to realize the mistake for determining the most matched clothes template of clothes profile
Journey can also realize the process, the embodiment of the present invention is to specific side by other means other than the mode of above-mentioned steps
Formula is not limited.
It should be noted that the embodiment of the present invention obtains the inflection point for meeting preset condition on clothes profile to realizing, and it is raw
It is not especially limited at the process of inflection point collection with the execution sequence for the process for determining the most matched clothes template of clothes profile is realized,
In practical applications, it is performed simultaneously the step of realizing two processes, is preferred embodiment, to improve the measurement effect to garment dimension
Rate.
308, clothes template is deformed into and is matched with clothes profile size.
Specifically, the process may include:
Determine with after the most matched clothes templates of clothes profile of clothes to be measured, using circumscribed circle by clothes template
It is deformed to and outline to be measured;Or
Clothes template is carried out being deformed into clothes profile size according to default deformation algorithm and is matched, the default deformation algorithm
Can be Laplce's deformation algorithm or Poisson deformation algorithm.
The present invention is not limited specific deformation process, is deformed into clothes template and clothes wheel as long as can realize
Wide size matches.
Illustratively, clothes template is deformed to using circumscribed circle and is shown with the interface of the clothes outline of clothes to be measured
Intention can refer to shown in Fig. 5, and in Figure 5, clothes template is indicated with dotted line, the clothes profiles of clothes to be measured with solid line into
Row indicates.
309, it is concentrated in inflection point, search presets that measurement point position is immediate to turn with each of deformed clothes template
Point, and the inflection point searched is determined as to the contour feature point of clothes to be measured.
Match with the clothes profile size of clothes to be measured specifically, being deformed into clothes template, utilizes clothes template
The position of upper default measurement point, is concentrated from the inflection point of clothes to be measured, most similar in an a small range search topological structure
One inflection point, the contour feature point as clothes to be measured.
The present invention is not limited specific contour feature point determination process.
In the embodiment of the present invention, by being concentrated in inflection point, the default measurement point of each of search and deformed clothes template
The immediate inflection point in position, and the inflection point searched is determined as to the contour feature point of clothes to be measured, due to passing through clothes mould
The default measurement point stored in plate determines the contour feature point of clothes to be measured, realizes the contour feature point to clothes to be measured
It more accurately identifies, so that subsequently more accurately measuring the size of clothes to be measured.
310, according to the default measurement point on contour feature point and clothes template, the inter characteristic points of clothes to be measured are obtained
And/or other contour feature points of clothes to be measured.
Wherein, other clothes contour feature points are not concentrated in inflection point.
Specifically, according to the default measurement point on contour feature point and clothes template, the inside for obtaining clothes to be measured is special
Point is levied, which may include:
The contoured characteristic point of clothes to be measured is determined from all contour feature points;
Obtain the position relationship between the default measurement point and corresponding inter characteristic points of clothes template;
According to position relationship and contoured characteristic point, the corresponding inter characteristic points of contoured characteristic point are obtained.
Since the inter characteristic points that the measurement of certain sizes of clothes to be measured may need some special are assisted, than
When such as being measured to collar, the position of FRONT NECK DROP central point is needed, for such internal feature not on outer profile
The position of inter characteristic points can be mapped, by two by point after acquiring mass data with a contour characteristic points
Relative position between person is averaged, and is stored in clothes template.When the size to clothes to be measured measures, utilize
After the corresponding clothes template of clothes to be measured determines the contour feature point of clothes to be measured, it can utilize and be deposited in clothes template
The average relative location of storage determines the position of inter characteristic points.
Wherein, according to the default measurement point on contour feature point and clothes template, other profiles of clothes to be measured are obtained
Characteristic point, the process may include:
According to default measurement point, determine there are two contour feature points of opposite and adjacent position relationship, and according to default
Rule determines other contour feature points from the clothes profile for being included between two contour feature points.
In the embodiment of the present invention, by according to the default measurement point on contour feature point and clothes template, obtaining to be measured
Other contour feature points of clothes get the more smooth measurement point that do not concentrated in inflection point, such as the waist of T-shirt to realize
Point etc. can be according to the waist point of T-shirt in clothes template to the opposite position of 2 points of armpit and the bottom for for example T-shirt waist point
Set determination.
The effect that the method that embodiment provides in order to further illustrate the present invention is reached, below in conjunction with Fig. 6 to this hair
The method that bright embodiment is provided is further illustrated, it is assumed that clothes to be measured are jacket, are executed to the clothes to be measured
After the method for the embodiment of the present invention, the measurement point got is referred to shown in Fig. 6, and in figure 6, the profile of clothes to be measured is special
Sign point is A~N points, and the inter characteristic points of clothes to be measured are A'~G' points, other contour feature points of clothes to be measured are A "
~F " points.
It should be noted that step 310 is optional step, garment dimension measurement can be further increased by executing step 310
Accuracy.
311, by inter characteristic points of the contour feature point of clothes to be measured, and/or clothes to be measured, and/or to be measured
Other contour feature points of clothes are determined as the measurement point of clothes to be measured.
Specifically, the present invention is not limited specific determination process.
It is worth noting that, step 308 to step 311 is the default measurement realized according on inflection point collection and clothes template
Point obtains the process of the measurement point of clothes to be measured, other than the mode of above-mentioned steps, can also realize by other means
The process, the embodiment of the present invention are not limited specific mode.
312, the number of pixels between measurement point is determined on garment image.
Specifically, determining the number of pixels between the measurement point with size relationship on garment image.
The present invention is not limited specific determination process.
313, according to the actual range that unit pixel represents in number of pixels and nominal data, the ruler of clothes to be measured is calculated
It is very little.
Specifically, the present invention is not limited specific calculating process.
It is worth noting that, step 312 to step 313 is the nominal data realized according to measurement point and camera, calculating waits for
The process, this hair can also be realized by other means other than the mode of above-mentioned steps by measuring the process of the size of clothes
Bright embodiment is not limited specific mode.
314, the measurement point and dimensioning of clothes to be measured are shown on garment image.
Specifically, according to default display mode and notation methods, the measurement point of clothes to be measured is shown on garment image
And dimensioning, wherein default display mode can be identified display to measurement point with round or rectangular or diamond shape, preset
Notation methods can be identified in a tabular form to size, can also be the dimensioning directly on garment image.
The present invention is to specifically showing and annotation process is not limited.
In the embodiment of the present invention, by showing the measurement point and dimensioning of clothes to be measured on garment image, it is convenient for
User can intuitively read measurement point and measure size, and improve the Automatic survey degree of garment dimension.
An embodiment of the present invention provides a kind of garment dimension measurement methods, and this method is due to by according to clothes to be measured
The default measurement point on inflection point collection and the corresponding clothes template of clothes to be measured on clothes profile, obtains the survey of clothes to be measured
Point is measured, and the nominal data based on measurement point and the camera for shooting clothes to be measured calculates the size of clothes to be measured, compares
In the prior art by manual measurement garment dimension mode or the dimension data measurement method based on three-dimensional (3 D) manikin for, energy
Enough more accurately, the size of clothes to be measured is quickly obtained, and is not necessarily to excessive manual operation, improves garment dimension measurement
The degree of automation.
Embodiment three
An embodiment of the present invention provides a kind of garment dimension measuring devices, and with reference to shown in Fig. 7, which includes:
First acquisition module 71 carries out shooting acquisition garment image for passing through calibrated camera to clothes to be measured;
Extraction module 72, for extracting clothes profile from garment image;
Generation module 73 for obtaining the inflection point for meeting preset condition on clothes profile, and generates inflection point collection;
Determining module 74, for determining the most matched clothes template of clothes profile;
Second acquisition module 75, for according to the default measurement point on inflection point collection and clothes template, obtaining clothes to be measured
Measurement point;
Computing module 76 calculates the size of clothes to be measured for the nominal data according to measurement point and camera.
Preferably, device 7 further includes:
Acquisition module 77 is demarcated, is used for calibration for cameras, and obtain the nominal data of camera;
Wherein, nominal data includes the actual range for shooting the unit pixel of picture and representing.
Preferably, generation module 73 is specifically used for:
Determine the curvature of each profile point on clothes profile;
It is more than that the profile point of preset curvature threshold value is determined as the inflection point of clothes profile by curvature;
It arranges to the inflection point of clothes profile according to predetermined order, generates inflection point collection.
Preferably, determining module 74 is specifically used for:
Clothes profile is identified, determines the corresponding clothes fashion of clothes profile;
Clothes fashion is subjected to template matches in preset clothes template library, and according to matching result, determining and clothes
The matching degree of profile is more than multiple clothes templates of preset matching degree threshold value;
Multiple clothes templates are verified, and according to verification result, clothes profile is determined most from multiple clothes templates
Matched clothes template.
Preferably, measurement point includes the contour feature point of clothes to be measured, and the second acquisition module 75 is specifically used for:
Clothes template is deformed into and is matched with clothes profile size;
It is concentrated in inflection point, the default immediate inflection point in measurement point position of each of search and deformed clothes template;
The inflection point searched is determined as to the contour feature point of clothes to be measured.
Preferably, measurement point further includes the inter characteristic points of clothes to be measured and/or other profiles spy of clothes to be measured
Point is levied, the second acquisition module 75 is specifically additionally operable to:
According to the default measurement point on contour feature point and clothes template, obtain clothes to be measured inter characteristic points and/
Or other contour feature points of clothes to be measured;
Wherein, other clothes contour feature points are not concentrated in inflection point.
Preferably, computing module 76 is specifically used for:
The number of pixels between measurement point is determined on garment image;
According to the actual range that unit pixel represents in number of pixels and nominal data, the size of clothes to be measured is calculated.
Preferably, device 7 further includes:
Display module 78, measurement point and dimensioning for showing clothes to be measured on garment image.
An embodiment of the present invention provides a kind of garment dimension measuring devices, and the device is due to by according to clothes to be measured
The default measurement point on inflection point collection and the corresponding clothes template of clothes to be measured on clothes profile, obtains the survey of clothes to be measured
Point is measured, and the nominal data based on measurement point and the camera for shooting clothes to be measured calculates the size of clothes to be measured, compares
In the prior art by manual measurement garment dimension mode or the dimension data measurement method based on three-dimensional (3 D) manikin for, energy
Enough more accurately, the size of clothes to be measured is quickly obtained, and is not necessarily to excessive manual operation, improves garment dimension measurement
The degree of automation.
It should be noted that:The garment dimension measuring device that above-described embodiment provides is executing garment dimension measurement method
When, only the example of the division of the above functional modules, in practical application, above-mentioned function can be divided as needed
With by different function module completions, i.e., the internal structure of device is divided into different function modules, to complete above description
All or part of function.In addition, the garment dimension measuring device and garment dimension measurement method that above-described embodiment provides are real
It applies example and belongs to same design, specific implementation process refers to embodiment of the method, and which is not described herein again.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware
It completes, associated hardware can also be instructed to complete by program, the program can be stored in a kind of computer can
It reads in storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.