Leg shape intelligent identification method and apparatus, electronic device, and storage medium

Through the support vector machine classification model, the target leg type and circumference size category of the user's legs was identified, which solved the problem of failing to effectively consider the leg shape in the prior art, and achieved high accuracy identification and improvement of design efficiency.

WO2025050993A1PCT designated stage expired Publication Date: 2025-03-13LABORATORY FOR ARTIFICIAL INTELLIGENCE IN DESIGN LIMITED +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/113888
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-05
Filing Date
2024-08-22
Publication Date
2025-03-13

AI Technical Summary

Technical Problem

The prior art fails to effectively consider leg shape when identifying user body shape and size, resulting in a low accuracy of classification.

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 to identify the target leg type and circumference size category.

Benefits of technology

It realizes the rapid and accurate identification of the target leg type and circumference size of the user's legs, saving design time and improving the fit and efficiency of clothing design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024113888_13032025_PF_FP_ABST
    Figure CN2024113888_13032025_PF_FP_ABST
Patent Text Reader

Abstract

A leg shape intelligent recognition method and apparatus, an electronic device, and a storage medium, relating to the technical fields of human body measurement, garment fitness, and computer application. The method comprises: acquiring a key feature parameter value of a leg object to be identified (S102); and inputting the key feature parameter value into a trained support vector machine classification model to obtain a target leg shape category to which said leg object belongs and a circumference size category under the target leg shape category (S104).
Need to check novelty before this filing date? Find Prior Art

Description

Leg shape intelligent recognition method, device, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to Chinese patent application number 202311139982.8 filed on September 5, 2023, entitled “Leg shape intelligent recognition method, device, electronic device and storage medium”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the fields of anthropometry, clothing fit, and computer application technology, and more particularly to a method, device, electronic device, and storage medium for intelligent leg shape recognition. Background Art

[0004] Garment fit impacts user satisfaction and wearing experience. Effectively identifying user body shapes and sizes helps product designers create tailored garment structures and forms to meet individual body characteristics and fit requirements. However, due to the diversity of body shapes, traditional sizing methods no longer meet consumer needs. The rise of personalized and customized clothing demands accurate identification and classification of user body shapes.

[0005] In related technologies, classification is usually performed based on the user's overall body shape and upper limb shape. This classification and recognition method does not take the leg shape into consideration, resulting in low classification accuracy.

[0006] 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 prior art known to ordinary technicians in the field.

[0007] Summary of the Invention

[0008] 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 and the circumference size category under the target leg shape category of the leg object to be identified, 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.

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

[0010] An embodiment of the present disclosure provides an intelligent leg shape recognition method, 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.

[0011] 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 shape category label and circumference size category label to which each leg object belongs; using the multiple basic feature parameter values, the leg shape 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.

[0012] 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.

[0013] 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 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.

[0014] 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.

[0015] In an exemplary embodiment, the leg shape category label and 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 of the lower end of the knee, and the circumference of the thigh root of each leg object belonging to the leg shape category label, determining multiple circumference size category labels under the leg shape category label, and determining the circumference size category label to which each leg object belongs under the leg shape category label.

[0016] 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 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 have correlation; 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 the 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.

[0017] 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 based on the multiple basic feature parameters based on the support vector machine recursive feature elimination algorithm and empirical method; 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.

[0018] In an exemplary embodiment, the key feature 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.

[0019] In an exemplary embodiment, the method further includes: 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.

[0020] An embodiment of the present disclosure provides an intelligent leg shape recognition device, including: an acquisition module for acquiring key feature parameter values ​​of a leg object to be identified; an acquisition module for inputting the key feature parameter values ​​into a trained support vector machine classification model to obtain 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.

[0021] 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.

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

[0023] 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.

[0024] The intelligent leg shape 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 and the circumference size category under the target leg shape category to which the leg object to be identified belongs, 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.

[0025] 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 disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are incorporated into 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 drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0027] Fig. 1 is a flow chart showing a method for intelligently identifying leg shapes according to an exemplary embodiment.

[0028] FIG2 is a schematic diagram of an interface for introducing key characteristic parameter measurement according to an example.

[0029] FIG3 is a schematic diagram of an interface for inputting key feature parameter values ​​according to an example.

[0030] FIG4 is a schematic diagram of an interface showing target leg shape categories and circumference size categories according to an example.

[0031] FIG5 is a diagram showing an interface for clothing recommendation according to an example.

[0032] FIG6 is a schematic diagram showing some basic characteristic parameters according to an example.

[0033] FIG7 is a flow chart showing another method for intelligently identifying leg shapes according to an exemplary embodiment.

[0034] FIG8 is a diagram illustrating a thigh slope, a knee slope, and a calf lateral convex angle according to an example.

[0035] FIG9 shows a distribution diagram of leg type classification of a leg object according to an example.

[0036] FIG. 10 is a diagram showing a size classification distribution diagram of a leg object according to an example.

[0037] FIG11 is a schematic diagram of a reference atlas of 12 types of leg shapes according to an example.

[0038] FIG12 is a schematic diagram showing 12 types of leg shapes according to an example.

[0039] FIG13 is a schematic diagram of a reference map corresponding to eight circumference size categories under a type of leg shape according to an example.

[0040] FIG14 is a schematic diagram of a leg corresponding to eight circumference size categories under a type of leg shape according to an example.

[0041] FIG15 is a schematic diagram of leg circumference data corresponding to eight circumference size categories under a type of leg shape according to an example.

[0042] FIG16 is a schematic diagram showing predicted values ​​and true values ​​of different leg shapes using the GS-SVM algorithm according to an example.

[0043] FIG17 is a diagram illustrating the accuracy of prediction results of different leg sizes using the PSO-SVM algorithm according to an example.

[0044] FIG18 is a schematic diagram of the overall process of a leg shape intelligent recognition method and system according to an example.

[0045] FIG19 is a block diagram of a device for intelligently identifying leg shapes according to an exemplary embodiment.

[0046] FIG20 is a schematic structural diagram showing an electronic device suitable for implementing the exemplary embodiments of the present disclosure according to an exemplary embodiment. DETAILED DESCRIPTION

[0047] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied 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 thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art. Like reference numerals in the drawings represent like or similar parts, and thus repetitive description thereof will be omitted.

[0048] The features, structures or characteristics described in the present disclosure may be combined in any suitable manner in one or more embodiments. 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 obscuring various aspects of the present disclosure.

[0049] The accompanying drawings are merely schematic illustrations of the present disclosure. Identical reference numerals in the drawings denote identical or similar components, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in at least one hardware module or integrated circuit, or in different networks and / or processor devices and / or microcontroller devices.

[0050] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all content and steps, nor must they be executed in the order described. For example, some steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.

[0051] 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 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.

[0052] 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.

[0053] Fig. 1 is a flow chart showing a method for intelligently identifying leg shapes according to an exemplary embodiment.

[0054] As shown in FIG1 , the method provided by the embodiment of the present disclosure may include the following steps.

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

[0056] In the embodiment of the present disclosure, 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 multiple basic feature parameters.

[0057] In the disclosed embodiment, the user may input key characteristic parameters of his or 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.

[0058] 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 groin (5 cm below the crotch, indicated by G), the height of the lower end of the knee and the height of the groin.

[0059] FIG2 is a schematic diagram of an interface for introducing key characteristic parameter measurement according to an example.

[0060] 2 , before the user manually inputs or automatically scans the key characteristic parameters, the user may be prompted with the specific leg position corresponding to the key characteristic parameters, so as to facilitate the user to accurately measure the key characteristic parameters.

[0061] FIG3 is a schematic diagram of an interface for inputting key feature parameter values ​​according to an example.

[0062] 3 , the user may 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.

[0063] In step S104, the key feature parameter values ​​are input into the trained support vector machine classification model to obtain 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.

[0064] 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.

[0065] 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 can 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.

[0066] 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 the database. In the following examples, 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.

[0067] FIG4 is a schematic diagram of an interface showing target leg shape categories and circumference size categories according to an example.

[0068] Referring 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) to which the user's leg belongs and the circumference size category under the target leg shape category (for example, size III) can be automatically identified and displayed on the interface.

[0069] In an exemplary embodiment, the method may further include: 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.

[0070] In an embodiment 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. The present disclosure does not impose any restrictions on this.

[0071] The target garment may be functional compression / tight-fitting garment or other types of garment, and this disclosure does not impose any restrictions on this.

[0072] In the embodiment of the present disclosure, 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.

[0073] In the embodiment of the present disclosure, 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 leg shape category and size category automatically identified above.

[0074] In an embodiment of the present disclosure, 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.

[0075] FIG5 is a diagram showing an interface for clothing recommendation according to an example.

[0076] For example, referring 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 pressure level 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.

[0077] In the embodiment of the present disclosure, the user can also enter the user and intelligent manufacturing interaction terminal, that is, further transmit the user's body size feature data 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.

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

[0079] In an exemplary embodiment, before obtaining the key feature parameter values ​​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.

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

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

[0082] 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 based on 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 based on 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.

[0083] In the embodiment of the present disclosure, multiple users can be selected, and actual measurements or a digital three-dimensional human body scanning system can be used to collect basic characteristic parameter values ​​corresponding to multiple basic characteristic parameters of each user's legs. Taking 480 users and 36 basic characteristic parameters of each user's legs as an example, these 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 thigh root (G), as well as the lateral convex angle of the calf, as shown in Figure 7 and Table 1.

[0084] FIG6 is a schematic diagram showing some basic characteristic parameters according to an example.

[0085] Referring 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, and 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.

[0086] Table 1

[0087] In the embodiment of the present disclosure, multiple basic feature parameters can be arranged and combined based on the support vector machine recursive feature elimination (SVM-RFE) algorithm and the 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 input into the SVM algorithm model respectively 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.

[0088] Specifically, the 36 basic feature parameter values ​​of each of the 480 leg objects mentioned above 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 their 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.

[0089] Table 2

[0090] 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. This set of key feature parameters is used to perform systematic leg shape and size recognition.

[0091] 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.

[0092] Specifically, based on industry experience, the 36 basic measurement parameters can be permuted and combined to obtain 39 sets (as shown in Table 3). These 39 sets are then fed into the SVM algorithm for leg shape recognition, yielding 39 leg shape recognition rates. The set with the highest recognition rate is then determined, and the basic measurement parameters contained in this set are used as a set of key feature parameters.

[0093] Table 3

[0094] 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.

[0095] In the embodiment of the present disclosure, after determining the basic feature parameter set 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.

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

[0097] Table 4

[0098] FIG7 is a flow chart showing another method for intelligently identifying leg shapes according to an exemplary embodiment.

[0099] In the embodiment of the present disclosure, the embodiment of FIG7 shows the training process of the support vector machine classification model; before step S102 of the leg shape intelligent recognition method shown in FIG1 , the leg shape intelligent recognition method shown in FIG7 may further include the following steps.

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

[0101] In the embodiment of the present disclosure, multiple users can be selected, and actual measurements or a digital three-dimensional human body scanning system can be used to collect basic characteristic parameter values ​​corresponding to multiple basic characteristic parameters of each user's legs. Taking 480 users and 36 basic characteristic parameters of each user's legs as an example, these 36 basic characteristic parameters can be: the depth, height, width, circumference and cross-sectional area of ​​seven parts: 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, as shown in Figure 7 and the above Table 1.

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

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

[0104] 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 based on 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 based on 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 based on 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 based on 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.

[0105] FIG8 is a diagram illustrating a thigh slope, a knee slope, and a calf lateral convex angle according to an example.

[0106] Specifically, referring to FIG8 , the thigh slope G of each leg object can be determined according to the following formula: GE .

[0107] Wherein, 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.

[0108] Specifically, referring to FIG8 , the knee slope G of each leg object can be determined according to the following formula: ED .

[0109] 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.

[0110] Specifically, referring to FIG8 , the calf side convex angle cos∠BCD of each leg object may be determined according to the following formula.

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

[0112] 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.

[0113] In the embodiment of the present disclosure, after calculating the thigh slope, knee slope and calf lateral convex angle for each leg object, different clustering algorithms (such as fuzzy C-means algorithm, K-means algorithm, K-medoids algorithm, Mini Batch K-means algorithm) can be used to cluster multiple leg objects, and an algorithm with the highest classification efficiency (such as K-means algorithm) 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.

[0114] For example, using the K-means mean clustering method, based on the calf lateral convex angle cos∠BCD, knee slope GED and femoral slope GGE, 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.

[0115] FIG9 is a distribution diagram of leg type classification of a leg object according to an example. Referring to FIG9 , it can be seen that the sample size under each leg type category is normally distributed, indicating that the embodiment of the present disclosure has a good classification effect on leg objects.

[0116] In the disclosed embodiment, after classifying multiple leg objects to obtain the leg type category label to which each leg object belongs, 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.

[0117] In an exemplary embodiment, the leg shape category label and 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 of the lower end of the knee, and the circumference of the thigh root of each leg object belonging to the leg shape category label, determining multiple circumference size category labels under the leg shape category label, and determining the circumference size category label to which each leg object belongs under the leg shape category label.

[0118] For example, based on 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%.

[0119] 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.

[0120] Figure 10 is a size classification distribution diagram of leg objects according to an example. Referring to Figure 10, it can be seen that the sample size under each size type is normally distributed, indicating that the data collected by the embodiment of the present disclosure is reasonable and representative, and the size classification effect of the leg objects is good.

[0121] 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.

[0122] 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).

[0123] 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.

[0124] In an 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.

[0125] FIG11 is a schematic diagram of a reference atlas of 12 types of leg shapes according to an example, and FIG12 is a schematic diagram of 12 types of leg shapes according to an example.

[0126] In the embodiment of the present disclosure, the benchmark maps of leg shapes shown in Figures 11 and 12 are determined based on the leg sample data of the cluster centers of each type of leg shape, and the benchmark maps are used to show the differences in basic morphology of the 12 determined leg shapes; referring to Figure 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 circumference of the leg, and the positive part of the horizontal coordinate represents the other 1 / 2 of the overall circumference of the leg. The positive and negative coordinates are mirror-symmetrical, which facilitates the complete expression of the overall circumference of the leg. Different broken lines represent the circumference changes corresponding to the height changes of different leg shapes; the schematic diagram of the 12 types of leg shapes in Figure 12 is drawn based on the circumference and height data of the cluster centers of each leg shape determined in Figure 12. The morphological differences between different leg shapes can be vividly seen from Figure 12.

[0127] FIG13 is a schematic diagram of a reference spectrum corresponding to eight circumference size categories under a type of leg shape according to an example, and FIG14 is a schematic diagram of a leg corresponding to eight circumference size categories under a type of leg shape according to an example.

[0128] Taking leg type 1 among the above 12 leg types as an example, Figures 14 and 15 show 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 map for the body shape intelligent recognition system.

[0129] Referring to Figure 13, the broken lines 1301, 1302, 1303, 1304, 1305, 1306, 1307, and 1308 in the figure respectively represent the reference maps of the 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, such as the eight leg size contour examples in Figure 14; the 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 under a specific leg type.

[0130] 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.

[0131] FIG15 is a schematic diagram of leg circumference data corresponding to eight circumference size categories under a type of leg shape according to an example.

[0132] Still taking leg type 1 as an example, FIG15 shows the circumference range of the thinnest part of the ankle (cB), the circumference of the widest part of the calf (cC), the circumference below the knee (cD), and the circumference of the thigh root (cG) corresponding to each size type in sizes 1 to 8 corresponding to leg type 1.

[0133] In an exemplary embodiment, after determining the leg shape category label to which each leg object belongs, the method may further include: grouping 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 have correlation; for each group of leg shape categories, according to the correlation between the leg shape category labels in the group of leg shape categories, a basic leg shape category label is determined from the 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.

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

[0135] Specifically, at the intelligent manufacturing interactive end, the system can further group the predetermined 12 types of leg types according to the correlation coefficient 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.

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

[0137] 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).

[0138] 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.

[0139] 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.

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

[0141] Using the girth of body shape parameters B, C, D, and G as key adjustment dimensions, the basic leg shape of each group can be quickly adjusted to other leg shapes within the group. For example, + represents a 1cm increase in girth, ++ represents a 2cm increase in girth, +++ represents a 3-4cm increase in girth, - represents a 2cm decrease in girth, and - represents a 3-4cm decrease in girth.

[0142] Table 5 Intelligent end leg type rapid conversion

[0143] 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.

[0144] In the embodiment of the present disclosure, the leg type category label of each leg object determined 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.

[0145] In the embodiment of the present disclosure, the circumference size category label of each leg object determined 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.

[0146] Specifically, the above 480 leg objects and the 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 shape and size.

[0147] In an exemplary embodiment, a support vector machine classification model to be trained is trained based on the 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.

[0148] In the embodiment 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 corresponding to each preset ratio (the ratio of the number of correctly identified samples to the total number of samples). Referring to Table 6, when the ratio of the training set to the test set is 2:1, the recognition efficiency is higher.

[0149] Table 6

[0150] In an exemplary embodiment, the method may further 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 the 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.

[0151] In the embodiment of the present disclosure, 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.

[0152] 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 shape 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 shape recognition, and the leg shape 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 shape recognition.

[0153] For example, using the optimized GS-SVM (Grid Search-Support Vector Machine) algorithm, the penalty factor c and kernel parameter g were determined to be c=1024 and g=0.082469, respectively, resulting in a leg shape recognition rate of 68.67%. Using the optimized GA-SVM algorithm, the penalty factor c and kernel parameter g were determined to be c=2000 and g=0.0097752, respectively, achieving the same recognition rate of 68.67%. Both algorithms used the determined eight key feature parameters and an optimized training set to test set ratio of 2:1.

[0154] 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 obtained in the SVM algorithm for leg shape recognition.

[0155] Similarly, after studying and comparing various artificial intelligence algorithms, when the PSO algorithm is used to optimize the SVM algorithm, the highest size recognition rate can be obtained (for example, when 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, the recognition rate of leg size can reach 81.82% to 100%); therefore, the PSO algorithm is used in the SVM model for size type recognition.

[0156] 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. The optimized c and g parameter values ​​are then brought into the SVM algorithm for size type recognition.

[0157] FIG16 is a schematic diagram showing predicted values ​​and true values ​​of different leg shapes predicted using the GS-SVM algorithm according to an example, and FIG17 is a schematic diagram showing the accuracy of the prediction results of different leg sizes predicted using the PSO-SVM algorithm according to an example.

[0158] With reference to FIG16 and FIG17 , 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 perform clothing fit design and selection.

[0159] 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.

[0160] In the disclosed embodiment, the leg shape recognition results and leg size recognition results obtained can provide a digital body shape reference for subsequent industrial manufacturing, and can help produce clothing suitable for specific users' bodies, especially functional pressure clothing or accessories, such as pressure 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 users' needs for body-fitting clothing.

[0161] The intelligent leg shape 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 and the circumference size category under the target leg shape category to which the leg object to be identified belongs, 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.

[0162] 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 the given body size and can provide efficient personalized services.

[0163] It should be noted that the body shape intelligent recognition method, device, electronic device and storage medium provided by 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, such as upper limbs, upper torso, whole body or part of the body, etc., without limitation.

[0164] The leg shape intelligent recognition method and system provided by the embodiments of the present disclosure combine artificial intelligence algorithms, industry 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, and is not limited to this range.

[0165] FIG18 is a schematic diagram of the overall process of a leg shape intelligent recognition method and system according to an example.

[0166] In the disclosed embodiment, referring to FIG18 , key features can be selected from 36 basic anthropometric parameters using SVM-RFE and empirical methods. The selected parameters are then input into an SVM classifier, which then identifies leg shape and size. A determination is made as to whether the number of features is minimal and the recognition rate is highest. If so, the selected key feature parameters are finalized; if not, the key feature parameter selection is repeated. In actual application, a user inputs key feature parameters, which are then input into an artificial intelligence recognition system to identify the user's body shape and size, obtaining a body shape and size recognition result. The artificial intelligence recognition system is then divided into a basic model and an optimization model. During optimization, the key feature parameter data can be input into an SVM. The SVM model is optimized using the GS algorithm / GA algorithm 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, a determination is made as to whether the recognition rate is the highest. If the recognition rate is not the highest, further parameter adjustments are made. When the recognition rate reaches the highest, optimization is complete, resulting in an optimized recognition system.

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

[0168] In the disclosed embodiments, the system's recognition results provide a digital body shape reference for subsequent industrial manufacturing. This, combined with manufacturing processes and databases, can produce garments tailored to specific users, particularly functional compression garments and accessories such as compression stockings and tights. This provides a new approach to body shape recognition and application. This method not only rapidly identifies user body shapes but also facilitates low-cost personalized customization or balances mass production with cost, effectively responding to user needs for tailored clothing.

[0169] It should also be understood that the above is merely intended 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, those skilled in the art can obviously make various equivalent modifications or variations. For example, certain steps in the above method may be unnecessary, or certain new steps may be added. Or any combination of any two or more of the above embodiments. Such modifications, variations, or combinations also fall within the scope of the embodiments of the present disclosure.

[0170] 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. 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.

[0171] It should also be understood that the size of the sequence numbers of the above 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.

[0172] 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 based on their internal logical relationships.

[0173] The above describes in detail the examples of the leg shape intelligent recognition method and virtual fitting method provided by the present disclosure. It is understandable that, in order to implement 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 be beyond the scope of the present disclosure.

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

[0175] FIG19 is a block diagram of a device for intelligently identifying leg shapes according to an exemplary embodiment.

[0176] As shown in FIG. 19 , the leg shape intelligent recognition device 1900 may include an acquisition module 1902 and an obtaining module 1904 .

[0177] 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 shape category to which the leg object to be identified belongs and the circumference size category under the target leg shape category.

[0178] 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 circumference size category label to which each leg object belongs; use the multiple basic feature parameter values, leg shape category label and 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 based on the training data to obtain the trained support vector machine classification model.

[0179] 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.

[0180] 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.

[0181] 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 based on 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 based on 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 based on 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.

[0182] 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 of the lower end of 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.

[0183] 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 have correlation; 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 the basic leg shape category label from the multiple leg shape category labels in the group of leg shape categories, and determine the 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.

[0184] 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; determining the basic feature parameters included in the basic feature parameter set with the highest recognition accuracy as the multiple key feature parameters.

[0185] In an exemplary embodiment, the key feature 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.

[0186] In an exemplary embodiment, the apparatus 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.

[0187] 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, in one or more hardware modules or integrated circuits, or in different networks and / or processor terminal devices and / or microcontroller terminal devices.

[0188] Regarding the apparatus 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.

[0189] Figure 20 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. It should be noted that the electronic device shown in Figure 20 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

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

[0191] The following components are connected to the I / O interface 2005: an input section 2006 including a keyboard, mouse, etc. (or a hand-touch digitizer screen, desktop computer, or other display means or device); an output section 2007 including devices such as a cathode ray tube (CRT), liquid crystal display (LCD), and speakers; a storage section 2008 including a hard disk; and a communication section 2009 including a network interface card such as a LAN card or modem. 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. Removable media 2011, such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed in the drive 2010 as needed, so that computer programs read from the removable media can be installed in the storage section 2008 as needed.

[0192] 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 smartphone) 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 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 performed.

[0193] It should be noted that the computer-readable medium described in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having 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 thereof. 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 conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.

[0194] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation 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 flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that 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 flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0195] 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, they may be described as follows: a processor includes a sending unit, an acquisition unit, a determination unit, and a first processing unit. The names of these units do not, in some cases, constitute a limitation on the units themselves. For example, the sending unit may also be described as a "unit that sends a picture acquisition request to the connected server."

[0196] 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 embodiments; or may exist independently and not be incorporated into the electronic device. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiments. For example, the electronic device may implement the steps shown in Figure 1.

[0197] According to one aspect of the present disclosure, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the above-described embodiments.

[0198] It should be understood that any number of elements in the drawings of the present disclosure is for illustration only and not for limitation, and any naming is for distinction only and does not have any limiting meaning.

[0199] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This 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 not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0200] 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 can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims. Industrial Applicability

[0201] The present disclosure is applicable to the field of artificial intelligence technology, and is used to solve the problem in related technologies that the classification and recognition methods do not take leg morphology into consideration, resulting in low classification accuracy, so as to achieve the effect of quickly and accurately identifying the target leg shape category and the circumference size category of the leg object to be identified.

Claims

1. A leg shape intelligent recognition method, comprising: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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 circumference and height of each leg object based on the circumference and height of the patellar protrusion and the circumference and height of the lower end of the knee. knee slope for each leg subject; 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, comprising: 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 comprising: 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, wherein the computer program implements the method according to any one of claims 1 to 10 when executed by a processor.

Citation Information

Patent Citations

  • Posture detection method, device and equipment

    CN112070031A

  • Image-based attitude judgment method and electronic equipment

    CN116503892A

  • Server apparatus and method for recommending cloth thereby

    KR1020170006604A

  • Measuring limb range of motion

    US20190038181A1

  • Identifying body part or body area anatomical landmarks from digital imagery for the fitting of compression garments for a person in need thereof

    US20220351835A1