Leg type intelligent identification method and device, electronic equipment and storage medium

The support vector machine classification model recognizes the user's leg shape, which solves the problem that traditional size classification cannot effectively identify the leg shape, and improves the fit and efficiency of clothing design.

CN119580296APending Publication Date: 2025-03-07LABORATORY FOR ARTIFICIAL INTELLIGENCE IN DESIGN LIMITED +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311139982.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-05
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The traditional clothing size classification method cannot effectively identify and classify the user's leg shape, resulting in low clothing fit and design efficiency.

Method used

The Support Vector Machine classification model is adopted to obtain the key feature parameter values ​​of the leg object to be identified, and train and optimize it to quickly and accurately identify the target leg type and circumference size categories.

Benefits of technology

It realizes the rapid and accurate identification of user leg shapes, saves design time, and improves the fit and design efficiency of clothing design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119580296A_ABST
    Figure CN119580296A_ABST
Patent Text Reader

Abstract

The invention provides a leg shape intelligent identification method and device, electronic equipment and a storage medium, and relates to the technical field of human body measurement, clothing fitness and computer application. The method comprises the following steps: acquiring key feature parameter values of a to-be-identified leg object; and inputting the key feature parameter values into a trained support vector machine classification model to obtain a target leg type category to which the to-be-identified leg object belongs and a girth size category under the target leg type category.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of human body measurement, clothing fit and computer application technology, and more particularly to a method, device, electronic device and storage medium for intelligently identifying leg shapes. Background Art

[0002] The fit of clothing affects user satisfaction and wearing perception. Effective identification of user body shape and size helps product designers create a tailored clothing structure and form to meet individual body shape characteristics and wearing fitness requirements. However, due to the diversity of human body shapes, traditional size classification methods can no longer meet consumer needs. The rise of clothing personalization and customization requires accurate judgment and classification of user body shapes.

[0003] In the related art, the user's overall body shape and upper limb shape are usually classified. This classification and recognition method does not take the leg shape into consideration, resulting in a low classification accuracy.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The embodiments of the present disclosure provide a leg shape intelligent recognition method, a leg shape intelligent recognition device, an electronic device and a storage medium. The method can quickly and accurately identify the target leg shape category to which the leg object to be identified belongs and the circumference size category under the target leg shape category, thereby saving design time for determining product size and shape based on leg shape analysis and improving the fit and design efficiency of leg clothing design.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] An embodiment of the present disclosure provides a method for intelligently identifying leg shapes, comprising: obtaining key feature parameter values ​​of a leg object to be identified; inputting the key feature parameter values ​​into a trained support vector machine classification model to obtain a target leg shape category to which the leg object to be identified belongs and a circumference size category under the target leg shape category.

[0008] In an exemplary embodiment, before inputting the key feature parameters into the trained support vector machine classification model, the method also includes: obtaining multiple basic feature parameter values ​​of each leg object among a plurality of leg objects; determining the leg type category label and the circumference size category label to which each leg object belongs; using the multiple basic feature parameter values, the leg type category label and the circumference size category label of each leg object among the plurality of leg objects as training data, and training the support vector machine classification model to be trained according to the training data to obtain the trained support vector machine classification model.

[0009] In an exemplary embodiment, a support vector machine classification model to be trained is trained according to the training data to obtain the trained support vector machine classification model, including: dividing the training data into a training set and a test set according to different preset ratios; for each preset ratio, using the training set under the preset ratio to train the support vector machine classification model to obtain a candidate support vector machine classification model under the preset ratio; using the test set under the preset ratio to test the candidate support vector machine classification model to obtain the recognition accuracy under the preset ratio; and determining the candidate support vector machine classification model with the highest recognition accuracy as the trained support vector machine classification model.

[0010] In an exemplary embodiment, the method also includes: using a grid search algorithm to optimize the penalty factor and kernel parameters in the trained support vector machine classification model to obtain a first target penalty factor and a first target kernel parameter, and the first target penalty factor and the first target kernel parameter are used to identify leg type categories; using a particle swarm optimization algorithm to optimize the penalty factor and kernel parameters in the trained support vector machine classification model to obtain a second target penalty factor and a second target kernel parameter, and the second target penalty factor and the second target kernel parameter are used to identify circumference size categories.

[0011] In an exemplary embodiment, the multiple basic feature parameter values ​​include the circumference and height of the thinnest part of the ankle, the circumference and height of the widest part of the calf, the circumference and height of the lower end of the knee, the circumference and height of the patellar protrusion, and the circumference and height of the thigh root; wherein, determining the leg type category label and circumference size category label to which each leg object belongs includes: determining the femoral slope of each leg object according to the circumference and height of the thigh root and the circumference and height of the patellar protrusion of each leg object; determining the knee slope of each leg object according to the circumference and height of the patellar protrusion and the circumference and height of the lower end of the knee of each leg object; determining the calf lateral convex angle of each leg object according to the circumference and height of the thinnest part of the ankle, the circumference and height of the widest part of the calf, and the circumference and height of the lower end of the knee of each leg object; clustering the multiple leg objects according to the femoral slope, knee slope and calf lateral convex angle of each leg object to obtain the leg type category label to which each leg object belongs.

[0012] In an exemplary embodiment, the leg shape category label and the circumference size category label to which each leg object belongs are determined, including: for each leg shape category label, based on the circumference of the thinnest part of the ankle, the circumference of the widest part of the calf, the circumference below the knee, and the circumference of the thigh root of each leg object belonging to the leg shape category label, multiple circumference size category labels under the leg shape category label are determined, and the circumference size category label to which each leg object belongs under the leg shape category label is determined.

[0013] In an exemplary embodiment, after determining the leg shape category label to which each leg object belongs, the method further includes: grouping multiple leg shape category labels according to a Pearson correlation analysis algorithm to obtain multiple groups of leg shape categories; wherein each group of leg shape categories includes at least two leg shape category labels, and the leg shape category labels included in each group of leg shape categories have correlations; for each group of leg shape categories, according to the correlations between the leg shape category labels in the group of leg shape categories, determining a basic leg shape category label from multiple leg shape category labels in the group of leg shape categories, and determining a conversion relationship between the basic leg shape category label and other leg shape category labels in the group of leg shape categories; wherein the conversion relationship is used to realize parameter or parameter value conversion of the basic leg shape category label to obtain other leg shape category labels in the group of leg shape categories.

[0014] In an exemplary embodiment, before obtaining the key feature parameter values ​​of the leg object to be identified, the method also includes: determining multiple key feature parameters from multiple basic feature parameters to obtain key feature parameter values ​​corresponding to each key feature parameter of the leg object to be identified; wherein, determining multiple key feature parameters from multiple basic feature parameters includes: obtaining basic feature parameter values ​​corresponding to multiple basic feature parameters of each leg object in multiple leg objects; determining multiple basic feature parameter sets according to the multiple basic feature parameters based on a support vector machine recursive feature elimination algorithm and an empirical method; for each basic feature parameter set, inputting the basic feature parameter values ​​corresponding to each leg object into a trained support vector machine classification model according to the basic feature parameters included in the basic feature parameter set to obtain the recognition accuracy corresponding to each basic feature parameter set; and determining the basic feature parameters included in the basic feature parameter set with the highest recognition accuracy as the multiple key feature parameters.

[0015] In an exemplary embodiment, the key characteristic parameter values ​​include the circumference of the thinnest part of the ankle, the circumference of the widest part of the calf, the circumference of the lower end of the knee, the circumference of the patellar protrusion, the circumference of the middle thigh, the circumference of the thigh root, the height of the lower end of the knee and the height of the thigh root.

[0016] In an exemplary embodiment, the method further includes: recommending target clothing for a target object corresponding to the leg object to be identified according to the target leg shape category and circumference size category to which the leg object to be identified belongs.

[0017] An embodiment of the present disclosure provides an intelligent leg shape recognition device, comprising: an acquisition module, used to obtain key feature parameter values ​​of a leg object to be recognized; an acquisition module, used to input the key feature parameter values ​​into a trained support vector machine classification model to obtain a target leg shape category to which the leg object to be recognized belongs and a circumference size category under the target leg shape category.

[0018] An embodiment of the present disclosure provides an electronic device, comprising: at least one processor; and a storage terminal device for storing at least one program, wherein when the at least one program is executed by the at least one processor, the at least one processor implements any one of the above-mentioned leg shape intelligent recognition methods.

[0019] An embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements any of the above-mentioned leg shape intelligent recognition methods when executed by a processor.

[0020] An embodiment of the present disclosure provides a computer program product, including a computer program, which implements any of the above-mentioned leg shape intelligent recognition methods when executed by a processor.

[0021] The leg shape intelligent recognition method provided by the embodiment of the present disclosure obtains the key feature parameter values ​​of the leg object to be identified, and inputs the key feature parameter values ​​into the trained support vector machine classification model. It can quickly and accurately identify the target leg shape category to which the leg object to be identified belongs and the circumference size category under the target leg shape category, thereby saving design time for determining product size and shape based on leg shape analysis, and improving the fit and design efficiency of leg clothing design.

[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0024] Figure 1 The figure is a flow chart of a method for intelligently identifying leg shapes according to an exemplary embodiment.

[0025] Figure 2 It is a schematic diagram of an interface for introducing key characteristic parameter measurement according to an example.

[0026] Figure 3 The figure is a schematic diagram of an interface for inputting key feature parameter values ​​according to an example.

[0027] Figure 4 The present invention is a schematic diagram of an interface showing target leg shape categories and circumference size categories according to an example.

[0028] Figure 5 The present invention is an interface diagram of clothing recommendation according to an example.

[0029] Figure 6 It is a schematic diagram of some basic characteristic parameters according to an example.

[0030] Figure 7 The figure is a flow chart of another leg shape intelligent recognition method according to an exemplary embodiment.

[0031] Figure 8 is a schematic diagram showing a thigh slope, a knee slope, and a calf lateral convex angle according to an example.

[0032] Fig. 9 A distribution diagram of leg type classification of a leg object is shown according to an example.

[0033] Fig.10 is a size classification distribution diagram of a leg object according to an example.

[0034] Fig.11 is a schematic diagram of a reference atlas of 12 types of leg types according to an example.

[0035] Fig.12 is a schematic diagram of 12 types of leg types according to an example.

[0036] Fig.13 It is a schematic diagram of a reference map corresponding to eight circumference size categories under a type of leg shape according to an example.

[0037] Fig.14 The figure is a schematic diagram of a leg corresponding to eight circumference size categories under a type of leg shape according to an example.

[0038] Fig.15 It is a schematic diagram of leg circumference data corresponding to 8 circumference size categories under a type of leg shape according to an example.

[0039] Fig.16 It is a schematic diagram showing predicted values ​​and true values ​​of different leg types using the GS-SVM algorithm according to an example.

[0040] Fig.17 is a schematic diagram showing the accuracy of prediction results of different leg sizes using the PSO-SVM algorithm according to an example.

[0041] Fig.18 It is a schematic diagram of the overall process of a leg shape intelligent recognition method and system according to an example.

[0042] Fig.19 The figure is a block diagram of a device for intelligently identifying leg shapes according to an exemplary embodiment.

[0043] Fig. 20 It is a schematic diagram showing the structure of an electronic device suitable for implementing the exemplary embodiments of the present disclosure according to an exemplary embodiment. DETAILED DESCRIPTION

[0044] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0045] The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.

[0046] The accompanying drawings are only schematic diagrams of the present disclosure, and the same reference numerals in the drawings represent the same or similar parts, so their repeated description will be omitted. Some block diagrams shown in the accompanying drawings do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in at least one hardware module or integrated circuit, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0047] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and steps, nor must they be executed in the order described. For example, some steps can be decomposed, and some steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0048] In addition, in the description of the present disclosure, the terms "a", "an", "the", "said" and "at least one" are used to indicate the presence of at least one element or component; the terms "comprising", "including" and "having" are used to express an open-ended inclusion and mean that additional elements or components may exist in addition to the listed elements or components; the terms "first", "second" and "third" etc. are used only as labels and are not intended to limit the quantity of their objects.

[0049] Below, each step of the leg shape intelligent recognition method in the exemplary embodiment of the present disclosure will be described in more detail with reference to the accompanying drawings and embodiments.

[0050] Figure 1 The figure is a flow chart of a method for intelligently identifying leg shapes according to an exemplary embodiment.

[0051] like Figure 1 As shown, the method provided by the embodiment of the present disclosure may include the following steps.

[0052] In step S102, the key characteristic parameter values ​​of the leg object to be identified are obtained.

[0053] In the disclosed embodiment, the leg object to be identified may be the user's leg, the key feature parameter value may be the parameter value corresponding to the key feature parameter, and the key feature parameter may be determined from a plurality of basic feature parameters.

[0054] In the disclosed embodiment, the user may input key characteristic parameters of his / her legs through an application (APP) of a terminal device, or may obtain the key characteristic parameters of the user's legs by scanning through the application of the terminal device.

[0055] In an exemplary embodiment, the key characteristic parameter values ​​include the circumference of the thinnest part of the ankle (indicated by B), the circumference of the widest part of the calf (indicated by C), the circumference of the lower end of the knee (indicated by D), the circumference of the patellar protrusion (indicated by E), the circumference of the middle thigh (indicated by F), the circumference of the base of the thigh (5 cm below the crotch, indicated by G), the height of the lower end of the knee and the height of the base of the thigh.

[0056] Figure 2 It is a schematic diagram of an interface for introducing key characteristic parameter measurement according to an example.

[0057] refer to Figure 2 Before the user manually inputs or automatically scans the key feature parameters, the user can be prompted with the specific position of the leg corresponding to the key feature parameters, so as to facilitate the user to accurately measure the key feature parameters.

[0058] Figure 3 The figure is a schematic diagram of an interface for inputting key feature parameter values ​​according to an example.

[0059] refer to Figure 3 The user can manually input or use automatic scanning to obtain the D-point height, G-point height, B-point circumference, C-point circumference, D-point circumference, E-point circumference, F-point circumference and G-point circumference of the user's leg.

[0060] In step S104, the key feature parameter values ​​are input into the trained support vector machine classification model to obtain the target leg type category to which the leg object to be identified belongs and the circumference size category under the target leg type category.

[0061] In the disclosed embodiment, the key feature parameter values ​​are input into the trained support vector machine classification model, which can automatically identify the target leg shape category and the circumference size category under the target leg shape category to which the leg object to be identified belongs.

[0062] In the embodiment of the present disclosure, the leg type category is obtained based on the leg morphology classification of multiple leg objects in the database. There may be multiple leg type categories. In the following example, 12 leg type categories (category 1 to category 12) are used as an example, but the present disclosure is not limited to this.

[0063] In the embodiment of the present disclosure, each leg shape category can correspond to multiple circumference size categories, and the circumference size categories are obtained based on the circumference classification of multiple parts of multiple leg objects in a database. In the following examples, it is taken as an example that each leg shape category can correspond to 8 circumference size categories (code I to code VIII), but the present disclosure is not limited to this.

[0064] Figure 4 The present invention is a schematic diagram of an interface showing target leg shape categories and circumference size categories according to an example.

[0065] refer to Figure 4 After the user manually inputs or uses automatic scanning to obtain the D-point height, G-point height, B-point circumference, C-point circumference, D-point circumference, E-point circumference, F-point circumference and G-point circumference of the user's leg, the target leg shape category (for example, Category 1) and the circumference size category under the target leg shape category (for example, size III) of the user's leg can be automatically identified and displayed on the interface.

[0066] In an exemplary embodiment, the method may further include: recommending target clothing for a target object corresponding to the leg object to be identified according to the target leg shape category and circumference size category to which the leg object to be identified belongs.

[0067] In the embodiments of the present disclosure, in addition to recommending target clothing for the target object corresponding to the leg object to be identified based on the target leg shape category and circumference size category to which the leg object to be identified belongs, the function, style, color, size, price, quantity, applicable scenarios (scope) and related product and service information (for example, ordering and delivery method and time, etc.) of the target clothing can also be recommended to connect users, leg shapes, clothing, smart manufacturing, product selection and services, and the present disclosure does not impose any restrictions on this.

[0068] The target garment may be functional pressure / tight-fitting garment or other types of garment, which is not limited in the present disclosure.

[0069] In the disclosed embodiment, the user can enter the starting interface of the APP or network platform and select the product interaction terminal or the smart manufacturing interaction terminal; the starting interface of the APP or network platform prompts the user to enter key feature parameters, or the system scans and automatically extracts key feature parameters, and enters the recognition page after the user confirms. The system dynamically displays the leg shape and size recognition process and enters the recognition result.

[0070] In the disclosed embodiment, the user can enter the user-product interaction terminal; the user-product interaction terminal can recommend relevant functional clothing to the user based on the body size recognition results; the user can also select relevant clothing products based on his or her own body size characteristics, for example, the user can select suitable clothing for himself or herself based on the above-mentioned automatically identified leg shape category and size category.

[0071] In the disclosed embodiment, after identifying the target leg shape category to which the leg object to be identified belongs and the circumference size category under the target leg shape category, suitable clothing, such as functional compression and tight-fitting clothing, can be recommended based on the target leg shape category to which the leg object to be identified belongs and the circumference size category under the target leg shape category, so as to facilitate users to quickly select suitable clothing.

[0072] Figure 5 The present invention is an interface diagram of clothing recommendation according to an example.

[0073] For example, refer to Figure 5 After identifying that the target leg shape category of the leg object to be identified is category 1 and the circumference size category under the target leg shape category is code III, compression socks with moderate elasticity and suitable size pressure of level III can be recommended to the user. In addition, compression socks of appropriate length (for example, medium / long) can also be recommended to the user based on the length of the leg object to be identified.

[0074] In the disclosed embodiment, the user can also enter the user and intelligent manufacturing interaction terminal, that is, the user's body size feature data is further transmitted to the intelligent manufacturing system. The intelligent manufacturing system intelligently weaves suitable functional clothing for the user based on the body size recognition results, relevant manufacturing processes and parameter ratios to quickly respond to user needs.

[0075] In the disclosed embodiment, the system recognition result provides a basis for users to quickly select body-fitting clothing (especially functional pressure / tight-fitting clothing), and also provides guidance on shape and size for product design and large-scale manufacturing.

[0076] In an exemplary embodiment, before obtaining the key feature parameter value of the leg object to be identified, the method may further include: determining multiple key feature parameters from multiple basic feature parameters to obtain key feature parameter values ​​corresponding to each key feature parameter of the leg object to be identified.

[0077] Specifically, which key feature parameters of the leg object to be identified are obtained can be determined according to multiple basic feature parameters of each leg object in the database.

[0078] The specific process of determining multiple key characteristic parameters from multiple basic characteristic parameters is described below.

[0079] In an exemplary embodiment, multiple key feature parameters are determined from multiple basic feature parameters, including: obtaining basic feature parameter values ​​corresponding to multiple basic feature parameters of each leg object in a plurality of leg objects; determining multiple basic feature parameter sets according to the multiple basic feature parameters based on a support vector machine recursive feature elimination algorithm and an empirical method; for each basic feature parameter set, inputting the basic feature parameter values ​​corresponding to each leg object into a trained support vector machine classification model according to the basic feature parameters included in the basic feature parameter set to obtain the recognition accuracy corresponding to each basic feature parameter set; and determining the basic feature parameters included in the basic feature parameter set with the highest recognition accuracy as multiple key feature parameters.

[0080] In the embodiment of the present disclosure, multiple users can be selected, and basic characteristic parameter values ​​corresponding to multiple basic characteristic parameters of the legs of each user can be collected by actual measurement or by using a digital three-dimensional human body scanning system. For example, 480 users and 36 basic characteristic parameters of the legs of each user are selected, where the 36 basic characteristic parameters can be: the depth, height, width, circumference and cross-sectional area of ​​seven parts, namely, the thinnest part of the ankle (B), the ankle arm (B1), the widest part of the calf (C), the lower end of the knee (D), the patellar protrusion (E), the middle of the thigh (F), and the root of the thigh (G), as well as the lateral convex angle of the calf, such as Figure 7 And as shown in Table 1.

[0081] Figure 6 It is a schematic diagram of some basic characteristic parameters according to an example.

[0082] refer to Figure 6 , cG represents the circumference of the thigh root, cF represents the circumference of the middle thigh, cE represents the circumference of the patellar protrusion, cD represents the circumference of the lower end of the knee, cC represents the circumference of the widest part of the calf, cB1 represents the circumference of the ankle arm, cB represents the circumference of the thinnest part of the ankle, hG represents the height of the thigh root, hF represents the height of the middle thigh, hE represents the height of the patellar protrusion, hD represents the height of the lower end of the knee, hC represents the height of the widest part of the calf, hB1 represents the height of the ankle arm, and hB represents the height of the thinnest part of the ankle.

[0083] Table 1

[0084] serial number parameter serial number parameter serial number parameter serial number parameter 1 Depth-B 10 Height-C 19 Width-E 28 Girth-F 2 Depth-B1 11 Height-D 20 Width-F 29 Girth-G 3 Depth-C 12 Height-E 21 Width-G 30 Cross-sectional area-B 4 Depth-D 13 Height-F 22 Lateral convex angle of lower leg 31 Cross-sectional area - B1 5 Depth-E 14 Height-G 23 Girth-B 32 Cross-sectional area - C 6 Depth-F 15 Width-B 24 Girth - B1 33 Cross-sectional area - D 7 Depth-G 16 Width-B1 25 Circumference-C 34 Cross-sectional area-E 8 Height-B 17 Width-C 26 Circumference-D 35 Cross-sectional area - F 9 Height-B1 18 Width-D 27 Circumference-E 36 Cross-sectional area-G

[0085] In the embodiment of the present disclosure, multiple basic feature parameters can be arranged and combined based on a support vector machine recursive feature elimination (SVM-RFE) algorithm and an empirical method to obtain multiple basic feature parameter sets, each basic feature parameter set including some basic feature parameters; each group of basic feature parameter sets is respectively input into the SVM algorithm model to obtain the recognition accuracy corresponding to each group of basic feature parameter sets, and the basic feature parameters in the basic feature parameter set with the highest recognition accuracy and the least number of parameters in the basic feature parameter set are used as key feature parameters.

[0086] Specifically, the 36 basic feature parameter values ​​of each of the above 480 leg objects can be input into the SVM-RFE algorithm, and the 36 basic feature parameters of each of the 480 leg objects can be sorted according to the contribution (i.e., importance) to the leg type classification through the SVM-RFE algorithm; refer to Table 2, which shows the sorting results of the first 15 sets composed of different basic measurement parameters.

[0087] Table 2

[0088]

[0089] Then, these 15 sets can be input into the SVM algorithm model for leg shape recognition, and 15 leg shape recognition rates can be obtained respectively; the set with the highest recognition rate is determined, and the basic measurement parameters contained in this set are used as a set of key feature parameters, which are used to perform systematic leg shape and size recognition.

[0090] In the embodiment of the present disclosure, the SVM-RFE algorithm can be used to reduce the number of multiple basic feature parameters and retain the most critical key feature parameters. While ensuring the recognition accuracy, the amount of data acquisition and data processing can be reduced, thereby improving the recognition efficiency.

[0091] Specifically, according to industry practice experience, the above 36 basic measurement parameters can be arranged and combined to obtain 39 sets (as shown in Table 3), and these 39 sets are respectively input into the SVM algorithm for leg shape recognition to obtain 39 leg shape recognition rates. Then, a set with the highest recognition rate is determined, and the basic measurement parameters contained in the set are used as a set of key feature parameters.

[0092] Table 3

[0093]

[0094]

[0095] In the embodiment of the present disclosure, the number of multiple basic feature parameters can be reduced through empirical methods, and the most critical key feature parameters can be retained. While ensuring the recognition accuracy, the amount of data acquisition and data processing can be reduced, thereby improving the recognition efficiency.

[0096] In the embodiment of the present disclosure, after the basic feature parameter set is determined based on the SVM-RFE algorithm and the empirical method respectively, the recognition rates corresponding to the basic feature parameter set determined based on the SVM-RFE algorithm and the empirical method can be compared, and the basic feature parameters in the basic feature parameter set with a higher recognition rate can be selected as the key feature parameters.

[0097] Specifically, referring to Table 4, when 8 empirically selected feature parameters are used from the 36 basic human body measurement parameters extracted based on the SVM-RFE algorithm and the industry experience method, the recognition rate is the highest (66%). Therefore, these 8 key feature parameters, including 6 circumferences (cB, cC, cD, cE, cE, cF, cG) and 2 heights (hD and hG), can be determined as key feature parameters suitable for leg shape and size recognition. In practical applications, as the database data increases / expands, the key feature parameters and their quantity can be adjusted or optimized accordingly, and the recognition rate can also be further improved, and the present disclosure is not limited to this.

[0098] Table 4

[0099]

[0100] Figure 7 The figure is a flow chart of another leg shape intelligent recognition method according to an exemplary embodiment.

[0101] In the present disclosure, Figure 7 The embodiment shows the training process of the support vector machine classification model; Figure 1 Before step S102 of the leg shape intelligent recognition method shown, Figure 7 The leg shape intelligent recognition method shown may also include the following steps.

[0102] In step S702, a plurality of basic characteristic parameter values ​​of each leg object among a plurality of leg objects are obtained.

[0103] In the embodiment of the present disclosure, multiple users can be selected, and basic characteristic parameter values ​​corresponding to multiple basic characteristic parameters of the legs of each user can be collected by actual measurement or by using a digital three-dimensional human body scanning system. For example, 480 users and 36 basic characteristic parameters of the legs of each user are selected, where the 36 basic characteristic parameters can be: the depth, height, width, circumference and cross-sectional area of ​​seven parts, namely, the thinnest part of the ankle (B), the ankle arm (B1), the widest part of the calf (C), the lower end of the knee (D), the patellar protrusion (E), the middle of the thigh (F), and the root of the thigh (G), as well as the lateral convex angle of the calf, such as Figure 7 As shown in Table 1 above.

[0104] In step S704, the leg shape category label and the circumference size category label to which each leg object belongs are determined.

[0105] In the disclosed embodiment, multiple leg objects can be clustered based on obtaining multiple basic feature parameter values ​​of each leg object to obtain a leg type category label to which each leg object belongs.

[0106] In an exemplary embodiment, multiple basic feature parameter values ​​include the circumference and height of the thinnest part of the ankle, the circumference and height of the widest part of the calf, the circumference and height of the lower end of the knee, the circumference and height of the patellar protrusion, and the circumference and height of the thigh root; wherein, determining the leg type category label and circumference size category label to which each leg object belongs includes: determining the femoral slope of each leg object according to the circumference and height of the thigh root and the circumference and height of the patellar protrusion of each leg object; determining the knee slope of each leg object according to the circumference and height of the patellar protrusion and the circumference and height of the lower end of the knee of each leg object; determining the calf lateral convex angle of each leg object according to the circumference and height of the thinnest part of the ankle, the circumference and height of the widest part of the calf, and the circumference and height of the lower end of the knee of each leg object; clustering multiple leg objects according to the femoral slope, knee slope and calf lateral convex angle of each leg object to obtain the leg type category label to which each leg object belongs.

[0107] Figure 8 is a schematic diagram showing a thigh slope, a knee slope, and a calf lateral convex angle according to an example.

[0108] Specifically, refer to Figure 8 The thigh slope G of each leg object can be determined according to the following formula GE .

[0109]

[0110] Among them, cG represents the circumference of the thigh root, cE represents the circumference of the patellar protrusion, hG represents the height of the thigh root, and hE represents the height of the patellar protrusion.

[0111] Specifically, refer to Figure 8 The knee slope G of each leg object can be determined according to the following formula ED .

[0112]

[0113] Among them, cD represents the circumference of the lower end of the knee, and hD represents the height of the lower end of the knee.

[0114] Specifically, refer to Figure 8 , the calf side convex angle cos∠BCD of each leg object can be determined according to the following formula.

[0115]

[0116] Among them, BC, BD and CD can be determined according to the following formula.

[0117]

[0118] Among them, cC represents the circumference of the widest part of the calf, cB represents the circumference of the thinnest part of the ankle, hC represents the height of the widest part of the calf, and hB represents the height of the thinnest part of the ankle.

[0119] In the disclosed embodiment, after the thigh slope, knee slope and calf lateral convex angle are calculated for each leg object, different clustering algorithms (such as fuzzy C-means, K-means, K-medoids, Mini Batch K-means) can be used to cluster multiple leg objects, and an algorithm with the highest classification efficiency (such as K-means) is determined as the target clustering algorithm, and the target clustering algorithm is used to obtain the leg type category label to which each leg object belongs.

[0120] For example, the K-means clustering method is used to classify the calf lateral convex angle cos∠BCD, knee slope G ED and stock slope G GE , 480 groups of leg objects can be clustered into 12 different leg types (categories 1 to 12 respectively); the proportions of these 12 different leg types in the leg object database are 4.375%, 8.958%, 2.292%, 4.375%, 8.333%, 10%, 9.792%, 16.875%, 6.042%, 4.792%, 12.917% and 11.25% respectively.

[0121] Fig. 9 is a leg type classification distribution diagram of a leg object according to an example, referring to Fig. 9 It can be seen that the sample size under each leg type category is normally distributed, indicating that the classification effect of the embodiment of the present disclosure on leg objects is good.

[0122] In the disclosed embodiment, after classifying multiple leg objects to obtain the leg type category label of each leg object, a multiple-percentile approach can be used for each leg type category label, and each type of leg type can be further coded according to the circumference of the four basic parameters of the leg (B, C, D, G) and the height of the patellar protrusion (E) and the thigh root (G), thereby generating 8 different levels of circumference size categories for each type of leg type from small to large.

[0123] In an exemplary embodiment, the leg shape category label and the circumference size category label to which each leg object belongs are determined, including: for each leg shape category label, based on the circumference of the thinnest part of the ankle, the circumference of the widest part of the calf, the circumference below the knee, and the circumference of the thigh of each leg object belonging to the leg shape category label, multiple circumference size category labels under the leg shape category label are determined, and the circumference size category label to which each leg object belongs under the leg shape category label is determined.

[0124] For example, according to the multi-percentile method and the basic characteristic parameters of each leg object under each leg type category, the leg objects under each leg type category can be further divided into the following 8 circumference size intervals (each circumference size interval can be regarded as a circumference size category): 0%~17%, 17%~25%, 25%~33%, 33%~50%, 50%~67%, 67%~75%, 75%~83%, 83%~100%.

[0125] In the disclosed embodiment, the circumference size category label to which each leg object belongs under the leg shape category label is determined. After identifying the user's leg shape, the leg objects can be further divided into target circumference size categories to facilitate the production of fitted lower limb clothing products.

[0126] Fig.10 is a size classification distribution diagram of a leg object according to an example, referring to Fig.10 It can be seen that the sample size under each size type is normally distributed, which shows that the data collected by the embodiment of the present disclosure is reasonable and representative, and the size classification effect for the leg objects is good.

[0127] In the disclosed embodiment, for each leg shape category label, multiple leg length size category labels under the leg shape category label can also be determined based on the height of the patellar protrusion and the height of the thigh root of each leg object belonging to the leg shape category label, and the leg length size category label to which each leg object belongs under the leg shape category label can be determined.

[0128] For example, based on the multi-percentile method and the basic characteristic parameters of each leg object in each leg type category, each leg object in each leg type category can be further divided into the following three leg length size intervals (each leg length size interval can be regarded as a leg length size category): 0% to 33% too short, 33% to 75% too medium, and 75% to 100% too long).

[0129] In the disclosed embodiment, the leg length size category label to which each leg object belongs under the leg shape category label is determined. After identifying the user's leg shape and circumference size, the leg object can be further divided into "short type", "standard type" or "long type" to facilitate the production of fitted lower limb clothing products.

[0130] In the embodiment of the present disclosure, after multiple leg objects are divided into different leg categories (for example, 12 categories) and further divided into different circumference size categories (for example, 8 categories), the leg category to which each leg object belongs can be used as a leg category label, and the circumference size category to which each leg object belongs can be used as a circumference size category label to construct a human leg database, thereby providing a reference basis (benchmark) for subsequent intelligent recognition of the legs, and providing a data source for the leg intelligent recognition (for example, SVM) model for training and testing recognition algorithms.

[0131] Fig.11 is a schematic diagram of a reference atlas of 12 types of leg types according to an example, Fig.12 is a schematic diagram of 12 types of leg types according to an example.

[0132] In the disclosed embodiment, Fig.11 and Fig.12 The leg type benchmark map shown is determined based on the leg sample data of the cluster center of each type of leg type. The benchmark map is used to show the differences in basic morphology of the 12 determined leg types; refer to Fig.11 , the horizontal and vertical coordinates represent the circumference and height of the 12 types of leg shapes respectively. The negative part of the horizontal coordinate represents 1 / 2 of the overall leg circumference, and the positive part of the horizontal coordinate represents the other 1 / 2 of the overall leg circumference. The positive and negative coordinates are mirror-symmetrical, which facilitates the overall expression of the leg circumference. Different broken lines represent the circumference changes corresponding to the changes in height of different leg shapes. Fig.12 The 12 types of leg types in the diagram are based on Fig.12 The circumference and height data of the cluster centers of each leg type are plotted, from Fig.12 The morphological differences between different leg types can be vividly seen in the figure.

[0133] Fig.13 is a schematic diagram of a reference map corresponding to eight circumference size categories under a type of leg type according to an example, Fig.14The figure is a schematic diagram of a leg corresponding to eight circumference size categories under a type of leg shape according to an example.

[0134] Take the leg type 1 among the above 12 leg types as an example. Fig.14 and Fig.15 The figure shows the 8 leg size contours and leg size examples (size 1 to size 8) included in leg type 1, which are progressive from small to large and can be used as a reference body shape atlas for the body shape intelligent recognition system.

[0135] refer to Fig.13 In the figure, the broken lines 1301, 1302, 1303, 1304, 1305, 1306, 1307, and 1308 respectively represent the reference maps of eight circumference size categories (size 1 to size 8) from thin to thick corresponding to leg type 1; the broken line 1309 represents the leg data of the cluster center corresponding to leg type 1. According to the data of the broken line 1309, the leg shape of leg type 1 can be intuitively outlined, for example Fig.14 Examples of eight leg size contours; broken line 1310 represents the middle size of the eight circumference sizes of leg type 1, so as to intuitively distinguish the degree to which the measured sample is larger or smaller in size for a specific leg type.

[0136] In actual use, as the amount of data in the human leg database increases, is expanded / updated and adjusted, the number of leg type classifications, classification algorithms and specific size ranges can be dynamically updated or optimized accordingly.

[0137] Fig.15 It is a schematic diagram of leg circumference data corresponding to 8 circumference size categories under a type of leg shape according to an example.

[0138] Still taking leg type 1 as an example, Fig.15 The circumference range of the thinnest part of the ankle (cB), the widest part of the calf (cC), the lower end of the knee (cD) and the circumference of the thigh root (cG) corresponding to each size type in size 1 to size 8 corresponding to leg type 1 is shown.

[0139] In an exemplary embodiment, after determining the leg type category label to which each leg object belongs, the method may further include: grouping multiple leg type category labels according to a Pearson correlation analysis algorithm to obtain multiple groups of leg type categories; wherein each group of leg type categories includes at least two leg type category labels, and the leg type category labels included in each group of leg type categories are correlated; for each group of leg type categories, according to the correlation between the leg type category labels in the group of leg type categories, a basic leg type category label is determined from the multiple leg type category labels in the group of leg type categories, and a conversion relationship between the basic leg type category label and other leg type category labels in the group of leg type categories is determined; wherein the conversion relationship is used to realize parameter or parameter value conversion of the basic leg type category label to obtain other leg type category labels in the group of leg type categories.

[0140] In the disclosed embodiment, after the leg types are classified into 12 categories, the 12 categories of leg types can also be grouped.

[0141] Specifically, at the intelligent manufacturing interactive end, the system can further group the predetermined 12 types of leg types according to the correlation coefficients based on the Pearson correlation analysis algorithm. The leg types in each group have the highest correlation. In other words, as long as a small number of parameters or parameter values ​​are updated or modified locally on the leg types in the group, a certain leg type in the group can be quickly converted to other leg types, thereby saving trial fitting time and improving output efficiency.

[0142] Specifically, Table 5 is used as an example to illustrate that the predetermined 12 types of leg types are divided into 3 groups with high correlation according to the Pearson correlation analysis algorithm, namely:

[0143] Group A: includes leg type 4, leg type 2 and leg type 3, among which leg type 4 is the basic leg type (because leg type 4 has a high correlation coefficient with the other two leg types in the group, and the same applies below).

[0144] Group B: includes leg type 10, leg type 1, leg type 5 and leg type 9, among which leg type 10 is the basic leg type.

[0145] Group C: includes leg type 12, leg type 6, leg type 7, leg type 8 and leg type 11, among which leg type 12 is the basic leg type.

[0146] The leg type determined as the basic leg type in the above groups has a high correlation with each leg type within the group.

[0147] The girth of body shape parameters B, C, D, and G is used as the key adjustment size, and the basic leg shape of each group can be quickly adjusted to other leg shapes in the group. As shown in Table 3, for example, + represents an increase of 1 cm in girth, ++ represents an increase of 2 cm in girth, +++ represents an increase of 3-4 cm in girth, - represents a decrease of 2 cm in girth, and - represents a decrease of 3-4 cm in girth.

[0148] Table 5 Intelligent end leg type rapid conversion

[0149]

[0150]

[0151] In step S706, multiple basic feature parameter values, leg shape category labels and circumference size category labels of each leg object in the multiple leg objects are used as training data, and the support vector machine classification model to be trained is trained according to the training data to obtain a trained support vector machine classification model.

[0152] In the embodiment of the present disclosure, the leg type category label of each leg object determined as above can be used as a training label to train the support vector machine classification model to be trained. The trained support vector machine classification model thus obtained can automatically identify the leg type category of the leg type to be identified.

[0153] In the disclosed embodiment, the circumference size category label of each leg object determined as above can be used as a training label to train the support vector machine classification model to be trained. The trained support vector machine classification model thus obtained can automatically identify the circumference size category of the leg type to be identified.

[0154] Specifically, the above 480 leg objects and 36 basic feature parameters of each user can be used as training data. According to the leg type category label of each leg object determined above, the training data can be divided into a training set and a test set, and normalized to [0,1]. The training set is used to train the SVM classification model, the penalty factor c in the preset parameters of the SVM can be set to 145, and the kernel parameter g can be set to 0.1. The test set is used to test the SVM classification model to identify leg type and size.

[0155] In an exemplary embodiment, a support vector machine classification model to be trained is trained according to training data to obtain a trained support vector machine classification model, including: dividing the training data into a training set and a test set according to different preset ratios; for each preset ratio, using the training set under the preset ratio to train the support vector machine classification model to obtain a candidate support vector machine classification model under the preset ratio; using the test set under the preset ratio to test the candidate support vector machine classification model to obtain the recognition accuracy under the preset ratio; and determining the candidate support vector machine classification model with the highest recognition accuracy as the trained support vector machine classification model.

[0156] In the embodiments of the present disclosure, the preset ratio may include, but is not limited to, 1:1, 2:1, 3:1 and 7:3, and each preset ratio is used to divide the training data into a training set and a test set. Table 4 shows the recognition accuracy (the ratio of the number of correctly recognized samples to the total number of samples) corresponding to each preset ratio. Referring to Table 6, when the ratio of the training set to the test set is 2:1, the recognition efficiency is higher.

[0157] Table 6

[0158] Preset ratio Number of basic measurement parameters SVM parameters Leg shape recognition rate 1:1 36 c = 145, g = 0.1 59.91%(145 / 242) 2:1 36 c = 145, g = 0.1 67.33%(101 / 150) 3:1 36 c = 145, g = 0.1 64.81%(70 / 108) 7:3 36 c = 145, g = 0.1 65.91%(87 / 132)

[0159] In an exemplary embodiment, the method may also include: using a grid search algorithm to optimize the penalty factor and kernel parameters in the trained support vector machine classification model to obtain a first target penalty factor and a first target kernel parameter, and the first target penalty factor and the first target kernel parameter are used to identify the leg type category; using a particle swarm optimization algorithm to optimize the penalty factor and kernel parameters in the trained support vector machine classification model to obtain a second target penalty factor and a second target kernel parameter, and the second target penalty factor and the second target kernel parameter are used to identify the circumference size category.

[0160] In the disclosed embodiment, after obtaining the trained support vector machine classification model, the grid search algorithm (GS), genetic algorithm (GA) and particle swarm optimization (PSO) algorithm can be further used to optimize the penalty factor c and kernel parameter g in the SVM algorithm used to identify leg shape and size, thereby improving the recognition accuracy.

[0161] Specifically, the GS algorithm and GA algorithm can be used to optimize the penalty factor c and kernel parameter g in the SVM algorithm respectively; the data set containing 8 key feature parameters and the corresponding leg type labels are input into the GS algorithm and GA algorithm respectively to determine the optimal parameters c and g respectively; then, the c and g values ​​are respectively brought into the SVM algorithm for leg type recognition, and the leg type recognition rates are obtained respectively; by comparing the results of the GS algorithm and the GA algorithm, the algorithm with a higher recognition rate is adopted as the algorithm model for leg type recognition.

[0162] For example, the penalty factor c and kernel parameter g determined by the optimized GS-SVM (Grid Search-Support Vector Machine) algorithm are c=1024 and g=0.082469, respectively, and the corresponding leg recognition rate can reach 68.67%; the penalty factor c and kernel parameter g determined by the optimized GA-SVM algorithm are c=2000 and g=0.0097752, respectively, and the same recognition rate of 68.67% is obtained. Both algorithm environments use the determined 8 key feature number parameters, and the optimized training set and test set ratio is 2:1.

[0163] Since the recognition rate results of the GS algorithm and the GA algorithm are the same, and considering that the smaller the c value, the better the generalization performance of the model, the c value and g value obtained by the GS algorithm with a smaller c value are selected as the target c value and target g value in the SVM algorithm for leg shape recognition.

[0164] Similarly, after studying and comparing a variety of artificial intelligence algorithms, when the PSO algorithm is used to optimize the SVM algorithm, the highest size recognition rate can be obtained (for example, the penalty factor c and kernel parameter g determined by the PSO-SVM (Particle Swarm Optimization-Support Vector Machine) algorithm are c=27.1147 and g=7.879, respectively, and the recognition rate of leg size can reach 81.82% to 100%); therefore, the PSO algorithm is used for the SVM model for size type recognition.

[0165] Specifically, the leg data including 8 key feature parameters and the corresponding size category labels are input into the PSO algorithm program to obtain the optimized parameters c and g, and then the optimized c and g parameter values ​​are brought into the SVM algorithm for size type recognition.

[0166] Fig.16 is a schematic diagram showing the predicted values ​​and true values ​​of different leg types using the GS-SVM algorithm according to an example, Fig.17 is a schematic diagram showing the accuracy of prediction results of different leg sizes using the PSO-SVM algorithm according to an example.

[0167] refer to Fig.16 and Fig.17 It can be seen that the intelligent leg shape recognition method provided by the embodiment of the present disclosure has high leg shape recognition accuracy and size recognition accuracy, is suitable for leg shape and size recognition, and can more conveniently carry out clothing fit design and selection.

[0168] It should be noted that with the increase and expansion of the human leg database and the optimization of the classification algorithm, the recognition rate can continue to improve and is not limited to this range.

[0169] In the disclosed embodiments, the obtained leg shape recognition results and leg size recognition results can provide a digital body shape reference for subsequent industrial manufacturing, and can help produce clothing suitable for a specific user's body, especially functional pressure clothing or accessories, such as compression stockings, tights, etc. This method can not only quickly determine and identify the user's leg shape, but also help to achieve low-cost personalized customization or balanced customized large-scale production, so as to effectively respond to the user's demand for body-fitting clothing.

[0170] The leg shape intelligent recognition method provided by the embodiment of the present disclosure obtains the key feature parameter values ​​of the leg object to be identified, and inputs the key feature parameter values ​​into the trained support vector machine classification model. It can quickly and accurately identify the target leg shape category to which the leg object to be identified belongs and the circumference size category under the target leg shape category, thereby saving design time for determining product size and shape based on leg shape analysis, and improving the fit and design efficiency of leg clothing design.

[0171] In addition, the leg shape intelligent recognition method provided by the embodiment of the present disclosure can quickly digitize and manufacture low-cost clothing according to given body size and can provide efficient personalized services.

[0172] It should be noted that the intelligent body shape recognition method, device, electronic device and storage medium provided in the embodiments of the present disclosure are not limited to the recognition of lower limb leg shape and size, but can also be applied to the recognition of body shape and size of other parts of the body, for example, upper limbs, upper torso, whole body or part of the body, etc., without limitation.

[0173] The leg shape intelligent recognition method and system provided by the disclosed embodiment combines artificial intelligence algorithms, industrial experience and algorithm optimization to construct an intelligent human body morphology (leg shape and size) recognition system, recognition method and application scenario. Using this method, after example testing of 480 lower limbs (17,280 data) from 240 people aged 40-65, the leg shape and size recognition rates can reach 68.67% and 100% respectively; after further verification of 160 lower limbs from 80 people aged 18 to 25 (5760 data), the leg shape and size recognition rates can reach 76.25% and 80.63% respectively. With the increase and expansion of the data in the human body shape database and the optimization of the classification algorithm, the recognition rate can be continuously improved, not limited to this range.

[0174] Fig.18 It is a schematic diagram of the overall process of a leg shape intelligent recognition method and system according to an example.

[0175] In the embodiments of the present disclosure, reference Fig.18 , key features can be selected from 36 basic parameters of human body measurement by SVM-RFE and empirical method, and the selected parameters can be input into the SVM classifier to identify leg shape and size through the SVM classifier to determine whether the number of features is the least and the recognition rate is the highest. If so, the selected key feature parameters are determined; if not, the key feature parameters are selected again. In actual application, the user inputs the key feature parameters, and the key feature parameters input by the user are input into the artificial intelligence recognition system to identify the user's body shape and size, and obtain the user's body shape and size recognition results, and recommend or weave suitable clothing for the user according to the product interactive terminal or smart manufacturing interactive terminal selected by the user. Among them, the artificial intelligence recognition system is divided into a basic model and an optimization model. When the artificial intelligence recognition system is optimized, the key feature parameter data can be input into the SVM, and the GS algorithm / GA algorithm is used to optimize the SVM model to improve the leg shape recognition rate, and the PSO algorithm is used to optimize the SVM model to improve the leg size recognition rate. After each parameter adjustment, it is determined whether the recognition rate is the highest. If the recognition rate is not the highest, continue to adjust the parameters; when the recognition rate reaches the highest, the optimization is completed, and the optimized recognition system is obtained.

[0176] Fig.18 The specific process of each step can be found in the text description of the above embodiment, and the present disclosure will not go into details here.

[0177] In the disclosed embodiment, the system recognition result obtained provides a digital body shape reference for subsequent industrial manufacturing, which is connected with the manufacturing program and database to produce clothing suitable for a specific user's body, especially functional pressure clothing or accessories, such as pressure socks, tights, etc., providing a new method for human body shape recognition and application. This method not only quickly determines and recognizes the user's body shape, but also helps to achieve low-cost personalized customization or balance customized mass production and cost, so as to effectively respond to the user's demand for body-fitting clothing.

[0178] It should also be understood that the above is only to help those skilled in the art better understand the embodiments of the present disclosure, and is not intended to limit the scope of the embodiments of the present disclosure. Based on the above examples given, those skilled in the art can obviously make various equivalent modifications or changes. For example, some steps in the above method may not be necessary, or some new steps may be added. Or a combination of any two or any multiple embodiments of the above. Such modifications, changes or combined solutions also fall within the scope of the embodiments of the present disclosure.

[0179] It should also be understood that the above description of the embodiments of the present disclosure focuses on emphasizing the differences between the various embodiments, and the same or similar points that are not mentioned can be referenced to each other. For the sake of brevity, they will not be repeated here.

[0180] It should also be understood that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present disclosure.

[0181] It should also be understood that in the various embodiments of the present disclosure, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0182] The above text describes in detail the examples of the intelligent leg shape recognition method and virtual fitting method provided by the present disclosure. It is understandable that in order to realize the above functions, the computer device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0183] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0184] Fig.19 The figure is a block diagram of a device for intelligently identifying leg shapes according to an exemplary embodiment.

[0185] like Fig.19 As shown, the leg shape intelligent recognition device 1900 may include an acquisition module 1902 and an obtaining module 1904 .

[0186] Among them, the acquisition module 1902 is used to obtain the key feature parameter values ​​of the leg object to be identified; the acquisition module 1904 is used to input the key feature parameter values ​​into the trained support vector machine classification model to obtain the target leg type category to which the leg object to be identified belongs and the circumference size category under the target leg type category.

[0187] In an exemplary embodiment, the acquisition module 1902 is also used to: obtain multiple basic feature parameter values ​​of each leg object among multiple leg objects; determine the leg shape category label and the circumference size category label to which each leg object belongs; use the multiple basic feature parameter values, the leg shape category label and the circumference size category label of each leg object among the multiple leg objects as training data, and train the support vector machine classification model to be trained according to the training data to obtain the trained support vector machine classification model.

[0188] In an exemplary embodiment, the acquisition module 1904 is used to: divide the training data into a training set and a test set according to different preset ratios; for each preset ratio, use the training set under the preset ratio to train the support vector machine classification model to be trained to obtain a candidate support vector machine classification model under the preset ratio; use the test set under the preset ratio to test the candidate support vector machine classification model to obtain the recognition accuracy under the preset ratio; and determine the candidate support vector machine classification model with the highest recognition accuracy as the trained support vector machine classification model.

[0189] In an exemplary embodiment, the acquisition module 1904 is also used to: use a grid search algorithm to optimize the penalty factor and kernel parameters in the trained support vector machine classification model to obtain a first target penalty factor and a first target kernel parameter, and the first target penalty factor and the first target kernel parameter are used to identify the leg type category; use a particle swarm optimization algorithm to optimize the penalty factor and kernel parameters in the trained support vector machine classification model to obtain a second target penalty factor and a second target kernel parameter, and the second target penalty factor and the second target kernel parameter are used to identify the circumference size category.

[0190] In an exemplary embodiment, the multiple basic feature parameter values ​​include the circumference and height of the thinnest part of the ankle, the circumference and height of the widest part of the calf, the circumference and height of the lower end of the knee, the circumference and height of the patellar protrusion, and the circumference and height of the thigh root; wherein the acquisition module 1904 is also used to: determine the femoral slope of each leg object according to the circumference and height of the thigh root and the circumference and height of the patellar protrusion of each leg object; determine the knee slope of each leg object according to the circumference and height of the patellar protrusion and the circumference and height of the lower end of the knee of each leg object; determine the calf lateral convex angle of each leg object according to the circumference and height of the thinnest part of the ankle, the circumference and height of the widest part of the calf, and the circumference and height of the lower end of the knee of each leg object; cluster the multiple leg objects according to the femoral slope, knee slope and calf lateral convex angle of each leg object to obtain the leg type category label to which each leg object belongs.

[0191] In an exemplary embodiment, the acquisition module 1904 is also used to: for each leg type category label, determine multiple circumference size category labels under the leg type category label based on the circumference of the thinnest part of the ankle, the circumference of the widest part of the calf, the circumference below the knee, and the circumference of the thigh root of each leg object belonging to the leg type category label, and determine the circumference size category label to which each leg object belongs under the leg type category label.

[0192] In an exemplary embodiment, the acquisition module 1904 is also used to: group multiple leg shape category labels according to the Pearson correlation analysis algorithm to obtain multiple groups of leg shape categories; wherein each group of leg shape categories includes at least two leg shape category labels, and the leg shape category labels included in each group of leg shape categories are correlated; for each group of leg shape categories, according to the correlation between the leg shape category labels in the group of leg shape categories, determine a basic leg shape category label from the multiple leg shape category labels in the group of leg shape categories, and determine a conversion relationship between the basic leg shape category label and other leg shape category labels in the group of leg shape categories; wherein the conversion relationship is used to realize parameter or parameter value conversion of the basic leg shape category label to obtain other leg shape category labels in the group of leg shape categories.

[0193] In an exemplary embodiment, the acquisition module 1904 is also used to: determine multiple key feature parameters from multiple basic feature parameters to obtain key feature parameter values ​​corresponding to each key feature parameter of the leg object to be identified; wherein, determining multiple key feature parameters from multiple basic feature parameters includes: obtaining basic feature parameter values ​​corresponding to multiple basic feature parameters of each leg object in multiple leg objects; based on the support vector machine recursive feature elimination algorithm and the empirical method, determining multiple basic feature parameter sets according to the multiple basic feature parameters; for each basic feature parameter set, according to the basic feature parameters included in the basic feature parameter set, inputting the basic feature parameter values ​​corresponding to each leg object into the trained support vector machine classification model to obtain the recognition accuracy corresponding to each basic feature parameter set; and determining the basic feature parameters included in the basic feature parameter set with the highest recognition accuracy as the multiple key feature parameters.

[0194] In an exemplary embodiment, the key characteristic parameter values ​​include the circumference of the thinnest part of the ankle, the circumference of the widest part of the calf, the circumference of the lower end of the knee, the circumference of the patellar protrusion, the circumference of the middle thigh, the circumference of the thigh root, the height of the lower end of the knee and the height of the thigh root.

[0195] In an exemplary embodiment, the device further includes: a recommendation module for recommending target clothing for a target object corresponding to the leg object to be identified based on the target leg shape category and circumference size category to which the leg object to be identified belongs.

[0196] It should be noted that the block diagrams shown in the above figures are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor terminal devices and / or microcontroller terminal devices.

[0197] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0198] Fig. 20 is a schematic diagram showing a structure of an electronic device suitable for implementing an exemplary embodiment of the present disclosure according to an exemplary embodiment. It should be noted that: Fig. 20 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0199] like Fig. 20 As shown, electronic device 2000 includes a central processing unit (CPU) 2001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 2002 or a program loaded from a storage part 2008 into a random access memory (RAM) 2003. In RAM 2003, various programs and data required for the operation of system 2000 are also stored. CPU 2001, ROM 2002 and RAM 2003 are connected to each other via a bus 2004. An input / output (I / O) interface 2005 is also connected to bus 2004.

[0200] The following components are connected to the I / O interface 2005: an input section 2006 including a keyboard, a mouse, etc. (or a hand-touch digitizing screen, a desktop computer, or other display means or devices); an output section 2007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 2008 including a hard disk, etc.; and a communication section 2009 including a network interface card such as a LAN card, a modem, etc. The communication section 2009 performs communication processing via a network such as the Internet. A drive 2010 is also connected to the I / O interface 2005 as needed. A removable medium 2011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 2010 as needed, so that a computer program read therefrom is installed into the storage section 2008 as needed.

[0201] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software (such as an application APP on a smart phone) program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 2009, and / or installed from the removable medium 2011. When the computer program is executed by the central processing unit (CPU) 2001, the above-mentioned functions defined in the system of the present disclosure are executed.

[0202] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0203] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0204] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor includes a sending unit, an acquisition unit, a determination unit, and a first processing unit. Among them, the names of these units do not constitute a limitation on the units themselves in certain cases, for example, the sending unit may also be described as "a unit that sends a picture acquisition request to the connected server."

[0205] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment. For example, the electronic device may implement the method described in the above embodiment. Figure 1 The steps shown.

[0206] According to one aspect of the present disclosure, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above-mentioned embodiments.

[0207] It should be understood that any number of elements in the drawings of the present disclosure is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.

[0208] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0209] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A leg shape intelligent recognition method, characterized in that: include: Obtain key feature parameter values ​​of the leg object to be identified; The key feature parameter values ​​are input into the trained support vector machine classification model to obtain the target leg type category to which the leg object to be identified belongs and the circumference size category under the target leg type category.

2. The method according to claim 1, characterized in that Before inputting the key feature parameters into the trained support vector machine classification model, the method further includes: Obtaining multiple basic feature parameter values ​​of each leg object in the multiple leg objects; Determine the leg type category label and circumference size category label of each leg object; The multiple basic characteristic parameter values, the corresponding leg shape category labels and the circumference size category labels of each leg object in the multiple leg objects are used as training data, and the support vector machine classification model to be trained is trained according to the training data to obtain the trained support vector machine classification model.

3. The method according to claim 2, characterized in that The support vector machine classification model to be trained is trained according to the training data to obtain the trained support vector machine classification model, including: Dividing the training data into a training set and a test set according to different preset ratios; For each preset ratio, the support vector machine classification model to be trained is trained using the training set under the preset ratio to obtain a candidate support vector machine classification model under the preset ratio; the candidate support vector machine classification model is tested using the test set under the preset ratio to obtain the recognition accuracy under the preset ratio; The candidate support vector machine classification model with the highest recognition accuracy is determined as the trained support vector machine classification model.

4. The method according to claim 2, characterized in that: Also includes: Using a grid search algorithm to optimize the penalty factor and kernel parameter in the trained support vector machine classification model to obtain a first target penalty factor and a first target kernel parameter, wherein the first target penalty factor and the first target kernel parameter are used to identify the leg type category; The penalty factor and kernel parameter in the trained support vector machine classification model are optimized using a particle swarm optimization algorithm to obtain a second target penalty factor and a second target kernel parameter, and the second target penalty factor and the second target kernel parameter are used to identify the circumference size category.

5. The method according to claim 2, characterized in that: The multiple basic characteristic parameter values ​​are 36 basic characteristic parameter values, and the 36 basic characteristic parameter values ​​include the circumference and height of the thinnest part of the ankle, the circumference and height of the widest part of the calf, the circumference and height of the lower end of the knee, the circumference and height of the patellar protrusion, and the circumference and height of the thigh root; The leg type category label and the circumference size category label of each leg object are determined, including: Determine the femoral slope of each leg object according to the circumference and height of the thigh root and the circumference and height of the patellar prominence of each leg object; Determine the knee slope of each leg object according to the circumference and height of the patellar protrusion and the circumference and height of the lower end of the knee of each leg object; Determine the lateral convex angle of the calf of each leg object according to the circumference and height of the thinnest part of the ankle, the circumference and height of the widest part of the calf, and the circumference and height of the lower end of the knee of each leg object; According to the thigh slope, knee slope and calf lateral convex angle of each leg object, clustering processing is performed on the multiple leg objects to obtain a leg type category label to which each leg object belongs.

6. The method according to claim 5, characterized in that Determine the leg type category label and circumference size category label of each leg object, including: For each leg type category label, multiple circumference size category labels under the leg type category label are determined based on the circumference of the thinnest part of the ankle, the circumference of the widest part of the calf, the circumference below the knee, and the circumference of the thigh root of each leg object belonging to the leg type category label, and the circumference size category label to which each leg object belongs under the leg type category label is determined.

7. The method according to claim 2, characterized in that After determining the leg type category label to which each leg object belongs, the method further includes: Grouping multiple leg type category labels according to the Pearson correlation analysis algorithm to obtain multiple groups of leg type categories; wherein each group of leg type categories includes at least two leg type category labels, and the leg type category labels included in each group of leg type categories are correlated with each other; For each group of leg shape categories, based on the correlation between the leg shape category labels in the group of leg shape categories, a basic leg shape category label is determined from multiple leg shape category labels in the group of leg shape categories, and a conversion relationship between the basic leg shape category label and other leg shape category labels in the group of leg shape categories is determined; wherein the conversion relationship is used to realize parameter or parameter value conversion of the basic leg shape category label to obtain other leg shape category labels in the group of leg shape categories.

8. The method according to claim 1, characterized in that Before obtaining the key characteristic parameter value of the leg object to be identified, the method further includes: Determine a plurality of key feature parameters from the plurality of basic feature parameters to obtain key feature parameter values ​​corresponding to the respective key feature parameters of the leg object to be identified; Among them, multiple key characteristic parameters are determined from multiple basic characteristic parameters, including: Obtaining basic feature parameter values ​​corresponding to multiple basic feature parameters of each leg object in the multiple leg objects; Determine a plurality of basic feature parameter sets according to the plurality of basic feature parameters based on a support vector machine recursive feature elimination algorithm and an empirical method; For each basic feature parameter set, according to the basic feature parameters included in the basic feature parameter set, the basic feature parameter values ​​corresponding to each leg object are input into the trained support vector machine classification model to obtain the recognition accuracy corresponding to each basic feature parameter set; The basic feature parameters included in the basic feature parameter set with the highest recognition accuracy are determined as the multiple key feature parameters.

9. The method according to claim 1, characterized in that: The key characteristic parameter values ​​include the circumference of the thinnest part of the ankle, the circumference of the widest part of the calf, the circumference of the lower end of the knee, the circumference of the patellar protrusion, the circumference of the middle thigh, the circumference of the thigh root, the height of the lower end of the knee and the height of the thigh root.

10. The method according to claim 1, characterized in that Also includes: According to the target leg shape category and circumference size category to which the leg object to be identified belongs, target clothing is recommended for the target object corresponding to the leg object to be identified.

11. A leg shape intelligent recognition device, characterized in that: include: An acquisition module, used for acquiring key characteristic parameter values ​​of the leg object to be identified; An acquisition module is used to input the key feature parameter value into the trained support vector machine classification model to obtain the target leg type category to which the leg object to be identified belongs and the circumference size category under the target leg type category.

12. An electronic device, characterized in that: include: at least one processor; A storage device for storing at least one program, which, when executed by the at least one processor, enables the at least one processor to implement the method according to any one of claims 1 to 10.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.