Summary of the invention
Embodiment of the present invention technical matters to be solved is to provide a kind of foot information identifying method, to obtain the foot information of user accurately.
Accordingly, the embodiment of the present invention additionally provides a kind of foot information recognition device, in order to ensure the implementation and application of said method.
In order to solve the problem, the invention discloses a kind of foot information identifying method, comprise: obtain the image data that shooting foot generates, this image data is undertaken taking by the foot to user, substrate and barrier generating, wherein, the described substrate of horizontal positioned is while fit with vertical described barrier, and heel and the described barrier of described foot are fitted, and described foot is identical with described substrate placement direction; Image procossing is carried out to described image data and obtains the perspective reduction figure after image binaryzation; The Pixel Information of described substrate and foot is determined according to described perspective reduction figure; The Pixel Information of described substrate and foot is adopted to calculate pin long message and the wide information of pin of described foot, using pin long message and the wide information of the pin foot information as described user.
In the present invention's embodiment, image procossing is carried out to described image data and obtains the perspective reduction figure after image binaryzation, comprising: binary conversion treatment is carried out to described image data, determines bianry image; Rim detection is carried out to described bianry image, based on the marginal information detected, Iamge Segmentation is carried out to described bianry image, determine segmentation result figure; Perspective reduction is carried out to described segmentation result figure, determines perspective reduction figure.
In the present invention's embodiment, the described Pixel Information determining described substrate and foot according to described perspective reduction figure, comprising: the pixel according to described perspective reduction figure determines the pixel number of described substrate; The pixel coordinate value of at least one unique point of described foot is obtained by scanning.
In the present invention's embodiment, the described pixel coordinate value being obtained at least one unique point of described foot by scanning, being comprised: scan described perspective reduction figure according to the direction from heel to toe, determine the summit of the longest toe of described foot; Using obtaining the summit of the longest toe of described foot as toe unique point, obtain the pixel coordinate value of described toe unique point.
In the present invention's embodiment, the Pixel Information of the described substrate of described employing and foot calculates pin long message and the wide information of pin of described foot, comprising: the pin long message calculating described foot according to the pixel number of described substrate and the pixel coordinate value of described toe unique point; According to described pin long message determination pin quant's sign point, and calculate the wide information of pin of described foot according to described pin quant's sign point.
In the present invention's embodiment, using fit with described barrier in described substrate adjacent side as than opposite side; The pixel coordinate value of the described pixel number according to described substrate and described toe unique point calculates the pin long message of described foot, comprising: the length obtaining the ratio opposite side of described substrate; According to pixel number and the described length than opposite side of described substrate, calculate the unit picture element length of described substrate; Adopt the pixel coordinate value of the unit picture element length of described substrate and described toe unique point, calculate the pin long message of described foot.
In the present invention's embodiment, described according to described pin long message determination pin quant's sign point, and the wide information of pin of described foot is calculated according to described pin quant's sign point, comprising: according to described toe unique point and described pin long message, determine two foot breadth unique points of described foot; According to the unit picture element length of described substrate, the distance between two pin quant's sign points is calculated, determine the wide information of the pin of described foot.
The invention also discloses a kind of foot information recognition device, comprise: picture acquisition module, for obtaining the image data that shooting foot generates, this image data is undertaken taking by the foot to user, substrate and barrier generating, wherein, the described substrate of horizontal positioned is while fit with vertical described barrier, and heel and the described barrier of described foot are fitted, and described foot is identical with described substrate placement direction; Image processing module, obtains the perspective reduction figure after image binaryzation for carrying out image procossing to described image data; Pixel determination module, for determining the Pixel Information of described substrate and foot according to described perspective reduction figure; Foot information computational module, for the pin long message and the wide information of pin that adopt the Pixel Information of described substrate and foot to calculate described foot, using pin long message and the wide information of the pin foot information as described user.
In the present invention's embodiment, described image processing module, comprising: binaryzation submodule, for carrying out binary conversion treatment to described image data, determines bianry image; Segmentation submodule, for carrying out rim detection to described bianry image, carrying out Iamge Segmentation based on the marginal information detected to described bianry image, determining segmentation result figure; Perspective reduction submodule, for carrying out perspective reduction to described segmentation result figure, determines perspective reduction figure.
In the present invention's embodiment, described pixel determination module, comprising: number determination submodule, for determining the pixel number of described substrate according to the pixel of described perspective reduction figure; Unique point scanning submodule, for obtaining the pixel coordinate value of at least one unique point of described foot by scanning.
In the present invention's embodiment, described unique point scanning submodule, for scanning described perspective reduction figure according to the direction from heel to toe, determines the summit of the longest toe of described foot; Using obtaining the summit of the longest toe of described foot as toe unique point, obtain the pixel coordinate value of described toe unique point.
In the present invention's embodiment, described in adopt foot information computational module, comprising: the long calculating sub module of pin, for calculating the pin long message of described foot according to the pixel number of described substrate and the pixel coordinate value of described toe unique point; The wide calculating sub module of pin, for according to described pin long message determination pin quant's sign point, and calculates the wide information of pin of described foot according to described pin quant's sign point.
In the present invention's embodiment, using fit with described barrier in described substrate adjacent side as than opposite side; The long calculating sub module of described pin, for obtaining the length of the ratio opposite side of described substrate; According to pixel number and the described length than opposite side of described substrate, calculate the unit picture element length of described substrate; Adopt the pixel coordinate value of the unit picture element length of described substrate and described toe unique point, calculate the pin long message of described foot.
In the present invention's embodiment, the wide calculating sub module of described pin, for according to described toe unique point and described pin long message, determines two foot breadth unique points of described foot; According to the unit picture element length of described substrate, the distance between two pin quant's sign points is calculated, determine the wide information of the pin of described foot.
Compared with prior art, the embodiment of the present invention comprises following advantage:
Obtain by the foot to user, substrate and barrier carry out taking the image data generated, wherein when the corresponding photo of the image data taking foot, the described substrate of horizontal positioned is while fit with vertical described barrier, heel and the described barrier of described foot are fitted, and described foot is identical with described substrate placement direction, thus the flush with portions that in this image data, the heel of foot barrier relative to substrate is fitted, then image procossing is carried out to image data and obtain the perspective reduction figure after image binaryzation, the Pixel Information of described substrate and foot is determined according to described perspective reduction figure, the Pixel Information of described substrate and foot is adopted to calculate the pin long message of described foot and the wide information of the pin foot information as described user again, thus identified by the image data taken user's foot, obtain the real foot information of user, thus provide true for user, pin is long accurately, pin is wide waits foot information, make user when buying the execution such as shoes and foot information dependent operation, select based on this True Data, reduce because foot data are inaccurate the waste that time and resource cause.
Embodiment two
On the basis of above-described embodiment, the present embodiment discusses foot information identifying method in detail.
Obtain the True Data of user's foot, namely after foot information, the operation relevant to foot can be carried out based on this foot information, as recommended the applicable footwear code of each style of shoe for user.Therefore the related data of user's foot to be gathered, namely by carrying out the shooting of photo to foot, to be determined the foot information of this user by the image data of shooting.
When taking foot, fitted by the substrate of horizontal positioned with vertical barrier, the heel of foot and this barrier are fitted by user, thus crossing with level with the one side of heel, the baseplate-laminating respectively line of barrier is baseline.And described foot is identical with described substrate placement direction, namely substrate is identical with the direction of toe with the direction, opposite side place on the limit that barrier is fitted.The size of foot then can be determined based on the size of this substrate.For different substrates, the laying method of foot and substrate also there are differences.Such as, when adopting A4 paper to be substrate, the size of usual A4 paper is larger than foot, therefore foot can be placed on A4 paper; When and for example adopting I.D. to be substrate, I.D. is less than foot, then both can be placed side by side.
For A4 paper as substrate, the previous step taken user's foot by mobile terminals such as mobile phones is as follows:
1) A4 paper is obtained;
2) A4 paper minor face is close to the barriers such as table leg, stool leg, step or wall limit;
3) pin (foot) that user will take can wear the dark socks of pure color, also can light pin;
4) feet station will taken stands on A4 paper, and heel is also close to selected barrier, and A4 paper is stood between two parties, can be parallel with the long limit of A4 paper by the inner side of pin;
5) mobile phone camera is directly over pin, between 50 centimetres to 60 centimetres;
6) camera is parallel to the ground or have a certain degree, between 30 to 35 degree angles.
Then can take foot by mobile phone, generate the image data comprising foot, substrate and barrier.Then by obtaining the foot information of this user to the process of image data.Such as, in the example of above-mentioned A4 paper, because heel and A4 paper have identical baseline, only user's pin need can be calculated according to the distance at the edge of user's tiptoe and A4 paper long.The technique scheme of the present embodiment, according to the error of great many of experiments measurement result within 2 millimeters.
Then the image data generated based on above-mentioned shooting foot carries out the analysis of foot information.
With reference to Fig. 2, show the flow chart of steps of the another kind of foot information identifying method that the embodiment of the present invention provides, specifically can comprise the steps:
Step 202, obtains the image data that captured foot generates.
Step 204, carries out binary conversion treatment to described image data, determines bianry image.
Step 206, carries out rim detection to described bianry image, carries out Iamge Segmentation, determine segmentation result figure based on the marginal information detected to described bianry image.
Step 208, carries out perspective reduction to described segmentation result figure, determines perspective reduction figure.
When the image data obtained is identified, in order to identify the feature of substrate wherein and foot accurately, first binary conversion treatment determination bianry image is carried out, as first converted image data to gray level image to image data, again binary conversion treatment is carried out to gray level image, obtain bianry image.Then rim detection is carried out to bianry image, detect the marginal information such as foot edge and substrate edges in bianry image, based on this marginal information, Iamge Segmentation is carried out to bianry image again, be partitioned into the image information such as foot and substrate wherein, determine segmentation result figure.Again perspective reduction being carried out to this segmentation result figure, as carried out perspective to the foot in image and reducing base, being had an X-rayed reduction figure accordingly.
As above after the image data of example by A4 paper shooting foot, to the image processing process of this image data as shown in Figure 3, when image data (as Fig. 3 A) is processed, first image data carries out image gray processing process, obtain this image data corresponding grey scale image, then binary conversion treatment is carried out to gray level image, obtain corresponding bianry image.And then rim detection is carried out to bianry image, determine the marginal information of substrate and foot, based on this marginal information, Iamge Segmentation is carried out to bianry image, determine segmentation result figure (as Fig. 3 B), again perspective reduction is carried out to this segmentation result figure, obtain perspective reduction figure (as Fig. 3 C).
Wherein, due to certain angle may be there is when taking the photo of foot, make the shape of substrate different from original-shape, therefore can also carry out the operation of geometry correction to it, thus the view data of follow-up substrate clearly and foot.
Step 210, the pixel according to described perspective reduction figure determines the pixel number of described substrate.
Step 212, obtains the pixel coordinate value of at least one unique point of described foot by scanning.
Completing after image procossing obtains perspective reduction figure, the calculating of the foot information such as pin is long, pin is wide can be carried out.Because in photo, the size of substrate is fixing, and heel and substrate have identical baseline, therefore can determine the pin long message of foot based on the size of substrate, then according to the wide information of pin long message determination pin.
Wherein, the pixel of image data is certain, and the pixel based on image data can determine the pixel of having an X-rayed reduction figure, thus can determine the pixel number on each limit on substrate.Again perspective reduction figure is scanned, determine at least one unique point of foot, and obtain the pixel coordinate value of unique point.
In the present invention's embodiment, the described pixel coordinate value being obtained at least one unique point of described foot by scanning, being comprised: scan described perspective reduction figure according to the direction from heel to toe, determine the summit of the longest toe of described foot; Using obtaining the summit of the longest toe of described foot as toe unique point, obtain the pixel coordinate value of described toe unique point.
The pin long message of foot is the length information between the longest toe from heel to foot, because heel and substrate have identical baseline, and substrate is fixing with the length of baseline vertical edges (adjacent side on the limit of namely fitting with barrier in substrate), pin long message can be determined based on this length.
Therefore, when scanning perspective reduction figure, can scan according to the direction from heel to toe, being determined the summit of the longest toe of foot by scanning, the wherein the longest toe of foot normally big toe or two toes.Using the summit of the longest toe of this foot as toe unique point, obtain the pixel coordinate value of described toe unique point.
What obtain in the present embodiment is the summit of the longest toe of foot, when this longest toe is not big toe, can also scan the summit obtaining this big toe, using the summit of the power failure of this big toe and the longest toe all as unique point, for calculating pin long message.
Step 214, calculates the pin long message of described foot according to the pixel number of described substrate and the pixel coordinate value of described toe unique point.
The length of each pixel can be determined according to the pixel number of substrate and the size of substrate, i.e. unit picture element length, then according to the pixel number of toe unique point determination foot length, and then determine the pin long message of this foot.
In the present invention's embodiment, using fit with described barrier in described substrate adjacent side as than opposite side; The pixel coordinate value of the described pixel number according to described substrate and described toe unique point calculates the pin long message of described foot, comprising: the length obtaining the ratio opposite side of described substrate; According to pixel number and the described length than opposite side of described substrate, calculate the unit picture element length of described substrate; Adopt the pixel coordinate value of the unit picture element length of described substrate and described toe unique point, calculate the pin long message of described foot.
Using the adjacent side on one side of fitting with described barrier in substrate as than opposite side, size due to substrate is fixing known, namely can obtain the length of the ratio opposite side of this substrate, then according to pixel number and the described length than opposite side of substrate, calculate the unit picture element length of described substrate.
Adopt the pixel value of the unit picture element length of described substrate and described toe unique point again, calculate the pin long message of described foot.Such as determine the foot length number of pixels of the point from heel to module diagnostic according to the pixel coordinate value of toe unique point, adopt this foot length number of pixels and unit picture element length just can calculate pin long message.And for example, according to module diagnostic point and the difference determination foot length number of pixels than opposite side, and then pin long message is calculated.
Step 216, according to described pin long message determination pin quant's sign point, and calculates the wide information of pin of described foot according to described pin quant's sign point.
Usual pin is long has certain associating with pin is wide, therefore can be determined the pin quant's sign point of foot by pin long message, more just can calculate the wide information of pin of foot based on the Pixel Information of pin quant's sign point.
In the present invention's embodiment, described according to described pin long message determination pin quant's sign point, and the wide information of pin of described foot is calculated according to described pin quant's sign point, comprising: according to described toe unique point and described pin long message, determine two foot breadth unique points of described foot; According to the unit picture element length of described substrate, the distance between two pin quant's sign points is calculated, determine the wide information of the pin of described foot.
The length standard line of foot can be determined according to toe unique point, namely this toe unique point is length standard line to the vertical line of baseline, with toe unique point for basic point, according to pin, long and wide the associating of pin determines that corresponding ratio can determine two foot breadth unique points of foot.
Such as, with toe unique point for basic point (being namely set to coordinate at zero point), for little toe side, move 39% of pin long message to length standard line along heel direction and determine fisrt feature point, the point crossing with foot of the vertical line based on fisrt feature point determination length standard line is the first pin quant's sign point.For big toe side, move 30% of pin long message determine second feature point to length standard line along heel direction, the point crossing with foot of the vertical line based on second feature point determination length standard line is crus secunda quant's sign point.
Then determine the number of pixels between two pin quant's sign point lines, determine the distance length between two pin quant's sign points according to the unit picture element length of described substrate, determine the wide information of the pin of described foot.
Such as above-mentioned with A4 paper for substrate carries out the image data taken, calculate pin long message and the wide information of pin according to its perspective reduction figure.
The length of having an X-rayed the long limit (i.e. the ratio opposite side of substrate) of A4 paper in reduction figure for A4 paper (as shown in Figure 4) is 297 millimeters, suppose that the long limit of this A4 paper is made up of Y pixel, then the millimeter obtaining the representative of every pixel is: U=297/Y.
Then according to the direction from heel to toe, described perspective reduction figure is scanned, obtains the summit of the longest toe as toe unique point, obtain the pixel coordinate value of this unique point, suppose that the pixel coordinate value of toe unique point is for (X1, L1).To the pixel number of substrate and the pixel coordinate value of described toe unique point, according to described substrate unit picture element length computation described in the pin long message of foot, the as above long L=of pin (Y-L1) * U in example.Be called baseline opposite side by the fit opposite side on limit of substrate and barrier, then the length of the ratio opposite side of substrate deducts the distance of toe to baseline opposite side, and it is long that remaining toe is pin to the distance on Base alignment: See Alignment limit.
Two pin quant's sign points of described foot are determined again according to described toe unique point, now, suppose that toe unique point is co-ordinate zero point, then for little toe side, the first pin quant's sign point that 39% of pin length determines foot is moved, as A point in Fig. 4 B, for big toe side to heel direction, the crus secunda quant's sign point that pin long 30% determines foot is moved, as B point in Fig. 4 B to heel direction.Then calculate the distance between two pin quant's sign points according to the unit picture element length of described substrate, determine the line of A, B 2 in the wide information of the pin of described foot and Fig. 4 B, on this line, the number of pixel is W1, then the wide W=W1*U of pin.
Pin long message and the wide information of pin can be obtained by step.
Step 218, using pin long message and the wide information of the pin foot information as described user.
Then using pin long message and the wide information of the pin foot information as this user, follow-uply can carry out the operation relevant to foot based on this foot information, as being the footwear money that user recommends to be applicable to based on the foot information of user, or be customization shoes etc. based on foot information.
Thus clapped by the mobile terminal such as mobile phone and establish the picture data of foot on substrate, determine best photo angle by test in a large number, and select rational substrate, can, the foot information such as pin wide long according to the pin of foot, substrate measurement user automatically.
And, also can consider in comparison film process that anti-light line disturbs, as the houselights to the light under sunshine, working environment, family, the low light level, to eliminate compared with the interference of situation various under high light line, the identification of the distortion of substrate and reduction, foot, the foreign material interference on the identification of foot unique point, the identification on all kinds of floor, floor is removed, camera position locates scheduling algorithm automatically.Thus realize accuracy errors and be less than 3 millimeters, namely error can not exceed a size of shoes.
In sum, by carrying out the process operations such as binary conversion treatment, rim detection, Iamge Segmentation and perspective reduction to image data, the characteristic information of substrate and foot accurately can be identified from picture, thus provide foundation accurately for the calculating of follow-up foot information, improve the accuracy rate that foot information calculates.
Secondly, be toe unique point by scanning the summit of the longest toe of determination portion, thus the pin long message of described foot is calculated based on the pixel number of substrate and the pixel coordinate value of described toe unique point, relation between wide according to the long and pin of pin again calculates the wide information of pin, obtain corresponding foot information, computation process is easy, quick, and accuracy is higher.
In the present embodiment, gone out the foot information of user by image measurement after, can based on these foot information customization shoes, or based on this foot information for user recommends shoes.To recommend shoes, can be applied in multiple different application scenarios, during as a kind of application scenarios, user is when footwear purchased by network electricity business platform, can upload the image data taking oneself foot, thus platform is automatically for user mates the suitable footwear code of the footwear recommending selected style.And for example, a kind of application scenarios develops corresponding application program based on above-mentioned coupling proposed algorithm, thus use this application call camera to take the photo of foot, and recommended the suitable footwear code of each money footwear by this application program Auto-matching.
Because shoes have multiple brand and style, certain error is there is in the shoes of each style of each producer in shoe tree and production run, and the footwear code standard of country variant is also different, in order to determine the actual footwear code of every money shoes accurately, the present embodiment at least extracts the shoes of each footwear code as testing sample footwear for the shoes of often kind of style, thus automatically measures the data also automatic Macro or mass analysis of these testing sample footwear.
Wherein, when measuring testing sample footwear, corresponding automatic testing equipment can be made, and this automatic testing equipment can also configure corresponding measurement, transport module.This self-operated measuring unit is configured with the survey instruments such as internal calliper, measure successively for each testing sample footwear such as form by line production, and the data of producing just obtaining these testing sample footwear before measuring form pre-detection information, as title, type, color and footwear code etc., thus after completing measurement by survey instruments such as internal calliper, automatically the measured value measured by survey instrument is entered in pre-detection information.Therefore, the measured value of footwear code correspondence can be obtained from pre-detection information.
Then for each footwear code of described testing sample footwear, measured value corresponding with this footwear code for corresponding for each footwear code standard value is compared, determine this measured value whether in this standard value range, if do not exist, then determine the standard value range belonging to this measured value further.In the present embodiment, analyze the actual size of each footwear code of every money testing sample footwear, namely for every money testing sample footwear, respectively the measured value of each footwear code correspondence is analyzed, this measured value is adopted to compare with the corresponding standard value of this footwear code, wherein, in the corresponding footwear of standard shoe code, long size is as shown in table 1:
Table 1
The contrast relationship table of long size and the long size of pin in above-mentioned table 1 Plays footwear code, footwear, wherein, in footwear, long size and the long size of pin are the central values of a scope, such as, in the corresponding footwear of footwear code 35, long size range is [238,242], the long scope of pin is [223,227].
Can by above-mentioned this measured value of table 1 comparison whether in the size range of this footwear code correspondence when detecting, if not in this size range, then determine the size range mating its place further, using the size range of this coupling as the first detected value, in actual size data, record this first detected value.
In the present embodiment, can obtain by least comprising two kinds of modes footwear code information, a kind of is by the measurement of the survey instruments such as internal caliber gauge to testing sample footwear, and another kind is the test of the size to testing sample footwear.
When testing the size of testing sample footwear, the pattern of outsole with camera head can be made in advance, the such as GB of footwear industry makes the pattern of outsole (as similar shoe-pad) of various shoe last or hat block type standard code, and on this pattern of outsole, macro head is installed, thus by this pattern of outsole with camera head, testing sample footwear are tested.This pattern of outsole is put into footwear, and the macro head then by being connected with the treatment facility such as computing machine gos deep in footwear, by making a video recording or the inside laminating degree of this pattern of outsole of functional analysis such as photograph and testing sample footwear, according to laminating degree determination test data.
And, in the present embodiment, can also be tried on the testing sample footwear of footwear code corresponding to its foot by person for trying shoes, then corresponding side test data are fed back, whether this test data can be comfortable by the footwear code of the person of trying on to testing sample footwear, and the mark size etc. providing suggestion as uncomfortable need provides empirical value.Pin as certain person for trying shoes is the pin (pin long 260) of standard 42 yards, and the footwear trying 42 yards on are also suitable, then shoes size meets standard, otherwise continue to try 41 yards or 43 yards on, determine the yardage be applicable to.
For the test data of testing sample footwear, this test data can be adopted equally to compare with the corresponding standard value of this footwear code, as by the multimedia messages such as video or photo of pattern of outsole in footwear, the test datas such as both laminating degree are determined after carrying out image procossing, compare based on this test data, determine whether these testing sample footwear meet the corresponding standard size of this footwear code, thus obtain the second detected value.Then in this actual size data, the second detected value is recorded.
In the present invention's embodiment, described the first detected value according to each footwear code correspondence generates testing result, comprising: determine the size range belonging to described footwear code, according to the standard shoe code that described size range is corresponding according to corresponding first detected value of each footwear code; Using described size range and the standard shoe code actual size data as described footwear code correspondence.
When employing first measured value determination testing result, the standard value range (i.e. long size in footwear) can determining belonging to the corresponding measured value of a certain footwear code according to this first detected value, be this size range belonging to footwear code, then determining the corresponding standard shoe code of long size in this size range and footwear, the i.e. actual footwear code of these testing sample footwear, thus using size range and the standard shoe code actual size data as described footwear code correspondence.
In another embodiment of the present invention, described the first detected value according to each footwear code correspondence generates testing result, comprise: respectively weight calculation is carried out to described first detected value of each footwear code correspondence and described second detected value, generate testing result according to described result of calculation.
For the first detected value and the second detected value, can according to the standard value range determined respectively belonging to measured value, the actual footwear code corresponding with standard value range, and the standard value range belonging to test data, the actual footwear code corresponding with standard value range, thus according to the weight parameter preset, the standard value range determine above-mentioned measurement and test mode and actual footwear code are weighted, thus determine that corresponding footwear code data generates testing result.
Because actual size data comprises the detected value of measured value and test data, therefore both weight parameter can also be set, if measured value respective weights is 0.6, test data respective weights is 0.4, then according to this weight parameter, described first detected value and described second detected value are weighted, determine that the detected value after weighting is as comparison result.This adds, and to survey result also can be measure and meet score value to the corresponding footwear code of this testing sample footwear in test, after the score value of composite measurement and test reaches certain standard, determines testing result.
Determining according to this testing result can comprise the size of its actual measurement by the actual size data of testing sample footwear of each footwear code, the corresponding actual footwear code of this actual measurement size, and the standard size range etc. of this actual footwear code.
After determining the actual size data of testing sample footwear, this actual size data is used for the various scenes relevant to footwear, such as, after each money testing sample footwear of a certain producer being detected, determine shoes footwear code manufactured by this producer whether standard, thus provide foundation for its follow-up manufacture shoes.Can also be the footwear code that user recommends to be applicable in certain a shoes this user based on this actual size data.In the present embodiment, measured the inside of testing sample footwear by various ways such as measurement, tests, thus obtain the actual footwear code of testing sample footwear of various brands, each style accurately, being convenient to follow-up is accurately user's recommendation.
Obtain the foot information of user, determine the footwear code of the foot information meeting described user in these testing sample footwear according to described testing result.
First, obtain the foot information of user respectively, actual size data with every money testing sample footwear each footwear code correspondence, then obtains the preset standard size table of comparisons, the foot data area met in the described standard size table of comparisons according to described foot information inquiry.Using corresponding for described satisfied foot data area standard size as standard size corresponding to the foot of described user.
In the present embodiment, be prefixed the standard size table of comparisons, this standard size table of comparisons comprises the corresponding foot data area of each standard size, thus can determine by this standard size table of comparisons the standard size that user's foot is corresponding.
In the present embodiment, a kind of pre-set criteria size table of comparisons is as shown in table 2:
Size (pin length/millimeter) |
Standard shoe code |
223-227 |
35 |
228-232 |
36 |
233-237 |
37 |
238-242 |
38 |
243-247 |
39 |
248-252 |
40 |
253-257 |
41 |
258-262 |
42 |
263-267 |
43 |
268-272 |
44 |
Table 2
Only adopt in this table 2 pin long message be example to determine footwear code, in fact pin information that is wide, arch of foot can also determine footwear code.
Get the preset standard size table of comparisons, pin long message is obtained from foot information, then the foot data area (i.e. size) that this pin long message is affiliated is in table 2 searched, and then determine the corresponding standard size of this foot data area, using the corresponding standard size of foot data area that meets as standard size corresponding to the foot of described user.As obtain based on user A the pin length that detects of the image data of shooting foot uploaded be 255 millimeters (mm), determine that its footwear code is 41 yards by the pre-set criteria size table of comparisons.
Then, for every money testing sample footwear, adopt described standard size actual size data corresponding with described testing sample footwear each footwear code respectively to mate, determine matching result.Determine the footwear code of the corresponding testing sample footwear of described actual size data according to described matching result, described footwear code is recommended described user as the suitable footwear code of these testing sample footwear.
For every money testing sample footwear, this standard size actual size data corresponding with described testing sample footwear each footwear code is respectively adopted to mate, determine the actual size data that this standard size matches, and then determine the footwear code that this actual size data is corresponding, thus footwear code is recommended described user as the suitable footwear code of these testing sample footwear.
In the present invention's embodiment, the footwear code of the corresponding testing sample footwear of described actual size data is determined according to described matching result, described footwear code is recommended described user as the suitable footwear code of these testing sample footwear, comprising: obtain the actual size data that user described in described matching result is mated these testing sample footwear; Obtain the footwear code of the corresponding testing sample footwear of described actual size data; Described footwear code and described testing sample footwear are showed user as recommendation results, and this recommendation results is the suitable footwear code that user selects these testing sample footwear.
As above example, user A matches pin long message after uploading foot image data be 255mm, and then footwear code when determining that the foot of this user A chooses footwear is standard 41 yards.On a certain electric business's platform, when the footwear of the E1893 of brand X are as testing sample footwear, by the Measurement and analysis to testing sample footwear, these footwear 41 yards of marking are less than normal, 41 yards are only suitable for 40 yards and wear, and 42 yards applicable 41 yards wear, namely determines actual size data.Then based on after this above-mentioned foot information and actual size data coupling, match the foot of the standard 41 yards of this user, be applicable to wearing this 42 yards of writing, then can recommend user using 42 yards as suitable footwear code.
Thus be the suitable footwear code that user recommends each money testing sample footwear based on foot information and actual size data.
It should be noted that, for embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action might not be that the embodiment of the present invention is necessary.
Embodiment three
On the basis of above-described embodiment, the present embodiment also discloses a kind of foot information recognition device.
With reference to Fig. 5, show the structured flowchart of a kind of foot information recognition device that the embodiment of the present invention provides, specifically can comprise as lower module:
Picture acquisition module 502, for obtaining the image data that shooting foot generates, this image data is undertaken taking by the foot to user, substrate and barrier generating, wherein, the described substrate of horizontal positioned is while fit with vertical described barrier, heel and the described barrier of described foot are fitted, and described foot is identical with described substrate placement direction.
Image processing module 504, obtains the perspective reduction figure after image binaryzation for carrying out image procossing to described image data.
Pixel determination module 506, for determining the Pixel Information of described substrate and foot according to described perspective reduction figure.
Foot information computational module 508, for the pin long message and the wide information of pin that adopt the Pixel Information of described substrate and foot to calculate described foot, using pin long message and the wide information of the pin foot information as described user.
To sum up, obtain by the foot to user, substrate and barrier carry out taking the image data generated, wherein when the corresponding photo of the image data taking foot, the described substrate of horizontal positioned is while fit with vertical described barrier, heel and the described barrier of described foot are fitted, and described foot is identical with described substrate placement direction, thus the flush with portions that in this image data, the heel of foot barrier relative to substrate is fitted, then image procossing is carried out to image data and obtain the perspective reduction figure after image binaryzation, the Pixel Information of described substrate and foot is determined according to described perspective reduction figure, the Pixel Information of described substrate and foot is adopted to calculate the pin long message of described foot and the wide information of the pin foot information as described user again, thus identified by the image data taken user's foot, obtain the real foot information of user, thus provide true for user, pin is long accurately, pin is wide waits foot information, make user when buying the execution such as shoes and foot information dependent operation, select based on this True Data, reduce because foot data are inaccurate the waste that time and resource cause.
With reference to Fig. 6, show the structured flowchart of the another kind of foot information recognition device that the embodiment of the present invention provides.
In the present invention's embodiment, described image processing module 504, comprising: binaryzation submodule 50402, for carrying out binary conversion treatment to described image data, determines bianry image; Segmentation submodule 50404, for carrying out rim detection to described bianry image, carrying out Iamge Segmentation based on the marginal information detected to described bianry image, determining segmentation result figure; Perspective reduction submodule 50406, for carrying out perspective reduction to described segmentation result figure, determines perspective reduction figure.
Described pixel determination module 506, comprising: number determination submodule 50602, for determining the pixel number of described substrate according to the pixel of described perspective reduction figure; Unique point scanning submodule 50604, for obtaining the pixel coordinate value of at least one unique point of described foot by scanning.
In the present invention's embodiment, described unique point scanning submodule 50604, for scanning described perspective reduction figure according to the direction from heel to toe, determines the summit of the longest toe of described foot; Using obtaining the summit of the longest toe of described foot as toe unique point, obtain the pixel coordinate value of described toe unique point.
Describedly adopt foot information computational module 508, comprising: the long calculating sub module 50802 of pin, for calculating the pin long message of described foot according to the pixel number of described substrate and the pixel coordinate value of described toe unique point; The wide calculating sub module 50804 of pin, for according to described pin long message determination pin quant's sign point, and calculates the wide information of pin of described foot according to described pin quant's sign point.
In the present invention's embodiment, using fit with described barrier in described substrate adjacent side as than opposite side; The long calculating sub module 50802 of described pin, for obtaining the length of the ratio opposite side of described substrate; According to pixel number and the described length than opposite side of described substrate, calculate the unit picture element length of described substrate; Adopt the pixel coordinate value of the unit picture element length of described substrate and described toe unique point, calculate the pin long message of described foot.
The wide calculating sub module 50804 of described pin, for according to described toe unique point and described pin long message, determines two foot breadth unique points of described foot; According to the unit picture element length of described substrate, the distance between two pin quant's sign points is calculated, determine the wide information of the pin of described foot.
In sum, by carrying out the process operations such as binary conversion treatment, rim detection, Iamge Segmentation and perspective reduction to image data, the characteristic information of substrate and foot accurately can be identified from picture, thus provide foundation accurately for the calculating of follow-up foot information, improve the accuracy rate that foot information calculates.
Secondly, be toe unique point by scanning the summit of the longest toe of determination portion, thus the pin long message of described foot is calculated based on the pixel number of substrate and the pixel coordinate value of described toe unique point, relation between wide according to the long and pin of pin again calculates the wide information of pin, obtain corresponding foot information, computation process is easy, quick, and accuracy is higher.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the embodiment of the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The embodiment of the present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, terminal device (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing terminal equipment produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing terminal equipment, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing terminal equipment, make to perform sequence of operations step to produce computer implemented process on computing machine or other programmable terminal equipment, thus the instruction performed on computing machine or other programmable terminal equipment is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although described the preferred embodiment of the embodiment of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of embodiment of the present invention scope.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal device comprising described key element and also there is other identical element.
Above to a kind of foot information identifying method provided by the present invention, and a kind of foot information recognition device, be described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.