Clothes management method, control device, wardrobe and computer-readable storage medium
Image processing technology is used to extract clothing features and generate matching evaluations, solving the problem of users having difficulty matching clothes correctly, achieving effective use of clothes and improving image.
Patent Information
- Application Number
- CN202010026862.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-10
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2040-01-10
AI Technical Summary
When users choose clothes, it is difficult to match them correctly due to too many clothes and insufficient aesthetic knowledge, resulting in poor matching effects and affecting their image.
By obtaining the image of the target object, extract the clothing feature information, analyze and output the matching evaluation information, provide matching suggestions, use the clothing database and image processing technology to identify the clothing features, and generate matching suggestions.
Users can know the effect of clothing matching, use clothing correctly, and improve image and matching quality.
Smart Images

Figure CN111242016B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of clothing management, and in particular to a clothing management method, a control device, a wardrobe and a computer-readable storage medium. Background Art
[0002] As people's living standards improve, the number of clothes purchased per capita is increasing. At present, when users choose clothes to wear, they have too many clothes and insufficient aesthetic knowledge. In many cases, they don't know how to match clothes correctly. They can only match them randomly according to their own feelings, and go out without knowing the effect after matching. This is not only not conducive to the correct use of users' clothes, but also easy to affect the user's image due to improper matching.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a clothing management method, which aims to enable users to know whether the matching effect of their clothing is good or bad, so as to ensure the correct use of users' clothes and improve the user's image.
[0005] To achieve the above object, the present invention provides a clothing management method, which comprises the following steps:
[0006] Acquire a first image of a target object;
[0007] extracting first image information including different clothes worn by the target object from the first image;
[0008] Determining first feature information of each piece of clothing worn by the target object according to the first image information;
[0009] Determining first evaluation information of the target object's clothing matching according to the first feature information;
[0010] The first evaluation information is output.
[0011] Optionally, the step of determining first feature information of each piece of clothing worn by the target object according to the first image information includes:
[0012] analyzing the first image information based on a clothing database, the clothing database including second image information of a plurality of clothing items and corresponding second feature information;
[0013] determining the second image information matching the first image information in the clothing database as the target image information;
[0014] The second feature information corresponding to the target image information is used as the first feature information of each piece of clothing worn by the target object.
[0015] Optionally, after the step of determining the first feature information of each piece of clothing worn by the target object according to the first image information, the method further includes:
[0016] Selecting at least one piece of clothing worn by the target object as a first piece of clothing;
[0017] Acquire a plurality of clothing combinations based on the first characteristic information corresponding to the first clothing; the clothing combinations include the first clothing and a second clothing matched with the first clothing;
[0018] Determining second evaluation information corresponding to each clothing combination;
[0019] Output matching suggestion information according to the second evaluation information and its corresponding clothing combination.
[0020] Optionally, the step of determining the second evaluation information corresponding to each clothing combination includes:
[0021] Obtaining benchmark evaluation information of each clothing combination, and obtaining channel characteristic information of each clothing combination; wherein the channel characteristic information includes acquisition source, visit volume and / or timeliness information;
[0022] Generating weights of the clothing combinations according to the channel characteristic information;
[0023] According to the reference evaluation information and its corresponding weight, second evaluation information corresponding to each clothing combination is determined.
[0024] Optionally, the step of extracting first image information including different clothes worn by the target object from the first image includes:
[0025] Analyzing a first image region where a plurality of characteristic parts of the target object in the first image are located;
[0026] Image information corresponding to each of the first image regions is extracted as image information corresponding to the clothing worn by each of the characteristic parts, so as to obtain the first image information.
[0027] Optionally, the step of analyzing the first image region where the plurality of characteristic parts of the target object in the first image are located includes:
[0028] Executing a first human-based object detection algorithm on the first image;
[0029] Determine a first human image region where the target object is located according to a detection result of the first target detection algorithm;
[0030] The first human body image region is divided according to a proportional relationship to obtain the first image regions.
[0031] Optionally, the first human body image region is a rectangular region, and before the step of dividing the first human body image region according to a proportional relationship to obtain the first image regions, the method further includes:
[0032] Obtaining a ratio of the length to the width of the first human body image region;
[0033] When the ratio is within the threshold range, performing the step of dividing the first human body image region according to the proportional relationship to obtain each first image region;
[0034] When the ratio is outside the threshold range, a first prompt message is issued to prompt the target object to adjust its posture.
[0035] Optionally, the step of extracting first image information including different clothes worn by the target object from the first image includes:
[0036] Identifying bone feature points of a human body in the first image;
[0037] Determine a second human body image region where the target object is located according to the skeleton feature points;
[0038] The second human body image region is divided based on the bone feature points to obtain
[0039] A second image region where a plurality of characteristic parts of the target object are located;
[0040] Image information corresponding to each of the second image regions is extracted as image information corresponding to the clothing worn by each of the characteristic parts, so as to obtain the first image information.
[0041] Optionally, before the step of determining the second human image region where the target object is located according to the skeleton feature points, the method further includes:
[0042] Determine whether the skeleton feature points include skeleton key points;
[0043] If yes, then executing the step of determining the second human body image region where the target object is located according to the skeleton feature points;
[0044] If not, a second prompt message is issued to prompt the target object to adjust the posture or position.
[0045] Optionally, when the skeleton feature points include skeleton key points, before the step of determining the second human image region where the target object is located according to the skeleton feature points, the method further includes:
[0046] Obtaining image position information corresponding to each of the bone feature points;
[0047] According to the image position information, determining whether the relative position of each of the skeleton feature points meets the posture requirement;
[0048] If satisfied, executing the step of determining the second human body image region where the target object is located according to the skeleton feature points;
[0049] If not satisfied, a third prompt message is issued to prompt the target object to adjust the posture.
[0050] Optionally, the step of extracting first image information including different clothes worn by the target object from the first image includes:
[0051] analyzing a third image region in the first image where various clothes worn by the target object are located;
[0052] Image information corresponding to each of the third image regions is extracted as the first image information.
[0053] Optionally, the step of analyzing the third image region where various clothes worn by the target object in the first image are located includes:
[0054] executing a second clothing-based object detection algorithm on the first image;
[0055] The third image regions are determined according to the detection result of the second target detection algorithm.
[0056] Optionally, the step of analyzing the third image region where various clothes worn by the target object in the first image are located includes:
[0057] Analyze the image contours of various clothes worn by the target object in the first image:
[0058] The image area formed by each of the image contours is used as the third image area.
[0059] Optionally, the step of analyzing image contours of various clothes worn by the target object in the first image includes:
[0060] Performing pixel-level segmentation on the first image to obtain contours of each image; or,
[0061] Identifying contour feature points corresponding to various clothes worn by the target object in the first image;
[0062] The contours of each image are determined according to the contour feature points.
[0063] Optionally, after the step of determining the first feature information of each piece of clothing worn by the target object according to the first image information, the method further includes:
[0064] querying a clothing storage database according to the first characteristic information to determine whether the corresponding clothing has a storage location in the wardrobe; the clothing storage database includes characteristic information of a plurality of clothing and its storage location in the wardrobe;
[0065] If not, the clothing without a storage location is determined as the third clothing;
[0066] outputting storage prompt information corresponding to the third clothing;
[0067] Acquire storage location information returned based on the storage prompt information;
[0068] The storage location information and the first characteristic information are associated and stored in the clothing storage database.
[0069] Optionally, after the step of associating and storing the storage location information and the first feature information in the clothing storage database, the method further includes:
[0070] When receiving a location query instruction including first characteristic information, querying the clothing storage database based on the first characteristic information;
[0071] In the clothing storage database, determining the storage location information associated with the first characteristic information as the first target location information;
[0072] outputting the first target location information; and / or,
[0073] After the step of querying the clothing storage database according to the first feature information to determine whether the corresponding clothing has a storage location in the wardrobe, the method further includes:
[0074] When all clothes worn by the target object have storage locations in the wardrobe, or when some clothes worn by the target object have storage locations in the wardrobe, the clothes that have storage locations are determined as fourth clothes;
[0075] In the clothing storage database, determining the existence location information associated with the first characteristic information of the fourth clothing as the second target location information;
[0076] The second target position information is output.
[0077] In addition, in order to achieve the above-mentioned purpose, the present application also proposes a control device, which includes: a memory, a processor, and a clothing management program stored in the memory and executable on the processor, and when the clothing management program is executed by the processor, the steps of the clothing management method as described in any one of the above items are implemented.
[0078] In addition, in order to achieve the above-mentioned purpose, the present application also proposes a wardrobe, which comprises:
[0079] Cameras and / or mirrors; and
[0080] A control device as described above.
[0081] In addition, in order to achieve the above-mentioned purpose, the present application also proposes a computer-readable storage medium, on which a clothing management program is stored. When the clothing management program is executed by a processor, the steps of the clothing management method as described in any one of the above items are implemented.
[0082] The present invention proposes a clothing management method, which obtains a first image of a target object, analyzes the first image and extracts first image information corresponding to different clothing worn by the target object, determines first feature information of each clothing worn by the target object according to the first image information, determines first evaluation information of the target object's clothing matching according to the first feature information, and outputs the first evaluation information, so that when a user tries on clothing, the user can know the matching effect of the clothing currently tried on based on the output first evaluation information, thereby enabling the user to know the matching effect of his or her clothing, allowing the user to correctly match clothes, ensuring the correct use of the user's clothes while improving the user's image. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] Figure 1 It is a structural schematic diagram of an embodiment of a wardrobe of the present invention;
[0084] Figure 2 It is a schematic diagram of the structure of the hardware involved in the operation of an embodiment of a control device of the present invention;
[0085] Figure 3 This is a schematic diagram of the flow chart of the first embodiment of the clothing management method of the present invention;
[0086] Figure 4 This is a flow chart of a second embodiment of the clothing management method of the present invention;
[0087] Figure 5 This is a schematic diagram of a flow chart of a third embodiment of a clothing management method of the present invention;
[0088] Figure 6This is a schematic diagram of a flow chart of a fourth embodiment of a clothing management method of the present invention;
[0089] Figure 7 This is a schematic diagram of a fifth embodiment of the clothing management method of the present invention;
[0090] Figure 8 Schematic diagram of the sixth embodiment of the clothing management method of the present invention.
[0091] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0092] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0093] The main solution of the embodiment of the present invention is: acquiring a first image of a target object; extracting first image information including different clothes worn by the target object from the first image; determining first feature information of each piece of clothing worn by the target object based on the first image information; determining first evaluation information of the target object's clothing matching based on the first feature information; and outputting the first evaluation information.
[0094] In the prior art, when users choose clothes to wear, they have too many clothes and insufficient aesthetic knowledge. In many cases, they do not know how to properly match clothes, and can only match them randomly according to their own feelings, and go out without knowing the effect after matching. This is not only not conducive to the correct use of users' clothes, but also easily affects the user's image due to improper matching.
[0095] The present invention provides the above-mentioned solution, aiming to enable users to know whether the matching effect of their clothes is good or bad, so as to ensure the correct use of the user's clothes and improve the user's image.
[0096] The invention provides a wardrobe for storing clothes.
[0097] In this embodiment, refer to Figure 1 , the wardrobe specifically includes a camera 1, a mirror 2 and a control device 3. In other embodiments, the wardrobe may include a camera 1 and a control device 3 but not a mirror 2; the wardrobe may also include a mirror 2 and a control device 3, and the lens 2 may not belong to the wardrobe but may be an image acquisition device on other devices. In addition, the wardrobe may also include a display device 4, which may be used to output prompt information.
[0098] In this embodiment, the camera 1 is specifically arranged above the mirror 2. The camera 1 is specifically used to capture a first image of the target object. The mirror 2 can be used by the target object to assist the target object in tidying up his / her appearance. Wherein, whether the camera 1 is a part of the wardrobe or an image acquisition module on other devices (such as a mobile phone, a computer, a monitoring device, etc.), the camera 1 is communicatively connected with the control device 3.
[0099] Specifically, the control device 3 can be independently provided on the main body of the wardrobe for storing clothes, or can be installed inside the main body of the wardrobe for storing clothes. Figure 2 The control device includes: a processor 3001, such as a CPU, a memory 3002, etc. The memory 3002 can be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 3002 can also be a storage device independent of the aforementioned processor 3001.
[0100] The processor 3001 is connected to the memory 3002. In addition, the processor 3001 is also connected to the camera 1 for communication, so as to obtain the image data collected by the camera 1. The processor 3001 can also be connected to the display device 4 to control the display device 4 to output prompt information.
[0101] Those skilled in the art will understand that Figure 2 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0102] like Figure 2 As shown, the memory 3002 as a readable storage medium may include a clothing management program. Figure 2 In the device shown, the processor 3001 can be used to call the clothing management program stored in the memory 3002 and execute the relevant steps of the clothing management method in the following embodiments.
[0103] The invention also provides a clothing management method.
[0104] Reference Figure 3 , a first embodiment of a clothing management method of the present invention is proposed, the clothing management method comprising:
[0105] Step S10, acquiring a first image of the target object;
[0106] In this embodiment, the target object is specifically a person, and in other embodiments, the target object may also be an animal, which can be set according to actual needs. The target object may be specifically a pre-set specific object, or any object that appears within the shooting range of the camera may be used as the target object. The number of target objects may be one or more than one.
[0107] The first image is specifically image data collected by the camera containing an image of a target object. Specifically, human body recognition can be continuously performed on the image data collected by the camera, and when a human body or human body information corresponding to a specific user is recognized in the image data, the image data is used as the first image.
[0108] Step S20, extracting first image information including different clothes worn by the target object from the first image;
[0109] The different clothes worn by the target object specifically refer to the clothes or articles worn by the target object at different parts of the body, specifically refer to all the clothes worn by the target object, and may also refer to at least two specified clothes among the clothes worn by the target object. Clothes may include tops, bottoms, hats, shoes, watches, gloves, etc.
[0110] Each piece of clothing can form a corresponding first image information. Specifically, human body recognition can be performed on the first image, and the first image information corresponding to different clothing worn by the target object in the first image can be further extracted based on the result of human body recognition; clothing recognition can also be directly performed on the first image, and the first image information corresponding to different clothing worn by the target object in the first image can be further extracted based on the result of clothing recognition, and so on. In this embodiment, a large amount of sample data is mainly collected to generate a deep neural network, and the first image is input into the deep neural network for analysis. Human body recognition or clothing recognition, etc. are performed on the first image through the deep neural network, and the first image information is obtained based on the recognition result.
[0111] The first image information may specifically be an image including clothes, or may be a feature vector extracted from the image including clothes, etc.
[0112] Step S30, determining first feature information of each piece of clothing worn by the target object according to the first image information;
[0113] The first image information corresponding to each piece of clothing is analyzed, and each piece of first image information can be analyzed to obtain the first characteristic information of the corresponding clothing. The first characteristic information specifically refers to the attribute information of the clothing worn by the target object corresponding to the first image information. The first characteristic information can specifically include the color (such as red, yellow, etc.), material (such as wool, cotton, etc.), brand, type (such as long top, short top, dress, shorts, trousers, etc.) of the clothing.
[0114] Specifically, a preset algorithm may be used to directly extract image features from the first image information, and the first feature information may be determined based on the extracted image features. In addition, the first image information may be analyzed based on a local or cloud clothing database, and the clothing attributes matched by the first image information in the clothing database may be used as the first feature information corresponding to the first image information.
[0115] Step S40, determining first evaluation information of the target object's clothing matching according to the first feature information;
[0116] The first evaluation information may be specifically an evaluation score, an evaluation grade, etc. In this embodiment, the first evaluation information is specifically an evaluation score. Specifically, some basic matching rules may be set in advance based on the first characteristic information of different clothes, and the matching rules include different combinations of first characteristic information and their corresponding scores. Based on the matching rules, the evaluation score corresponding to the first characteristic information currently obtained may be obtained. The evaluation score may be used as the first evaluation information representing the current matching effect of different clothes worn by the target object.
[0117] Step S50: output the first evaluation information.
[0118] Specifically, the first evaluation information may be outputted by display or voice.
[0119] A clothing management method proposed in an embodiment of the present invention obtains a first image of a target object, analyzes the first image and extracts first image information corresponding to different clothing worn by the target object, determines first feature information of each clothing worn by the target object according to the first image information, determines first evaluation information of the target object's clothing matching according to the first feature information, and outputs the first evaluation information, so that when a user tries on clothing, the user can know the matching effect of the clothing he is currently trying on based on the output first evaluation information, thereby enabling the user to know the matching effect of his clothing, allowing the user to correctly match clothes, ensuring the correct use of the user's clothes while improving the user's image.
[0120] Specifically, in the first embodiment, step S30 includes:
[0121] Step S31, analyzing the first image information based on a clothing database, where the clothing database includes second image information of multiple types of clothing and corresponding second feature information;
[0122] The clothing database may be a local database or a cloud database. In order to make the first characteristic information determined later more accurate, the clothing database adopts a cloud database. The clothing database includes second image information corresponding to various types of clothing (different brands, styles, materials, colors, etc.). In addition, in the clothing database, different second image information corresponds to different second characteristic information. The first characteristic information specifically refers to the attribute information of the clothing corresponding to the second image information. The second characteristic information may specifically include the color (such as red, yellow, etc.), material (such as wool, cotton, etc.), brand, type (such as long tops, short tops, dresses, shorts, trousers, etc.) of the clothing.
[0123] The second image information may specifically be an image including clothes, or may be a feature vector extracted from the image including clothes, etc.
[0124] Step S32, determining the second image information matching the first image information in the clothing database as the target image information;
[0125] If the similarity between the first image information and the second image information is greater than or equal to a preset threshold, the first image information can be determined to match, and thus the second image information whose similarity with the first image information is greater than or equal to the preset threshold can be used as the target image information.
[0126] In addition, the first image information is specifically a feature vector after feature extraction of the corresponding clothing image, and the second image information is specifically a feature vector after feature extraction of the corresponding clothing image. The feature vector can be obtained by extracting features from the image using the SIFT algorithm (Scale-invariant feature transform) or a convolutional neural network (for example, a vector is formed after the VGGNET-16 convolution layer is passed through the SSD network). Based on this, the distance between the two feature vectors corresponding to the first image information and the second image information can be calculated (for example, Euclidean distance, cosine distance, etc.), and the second image information with the shortest distance to the first image information is used as the target image information. In addition, a distance threshold can be set in advance. After calculating the distance between the two feature vectors, the second image information corresponding to the distance greater than or equal to the distance threshold is used as the target image information.
[0127] Step S33: using the second characteristic information corresponding to the target image information as the first characteristic information of each piece of clothing worn by the target object.
[0128] In this embodiment, the first image is analyzed based on the clothing database, and based on the analysis result, the first feature information of each piece of clothing worn by the target object can be accurately analyzed to improve the accuracy of the matching evaluation of the target object.
[0129] Further, based on the first embodiment, a second embodiment of the clothing management method of the present application is proposed. In the second embodiment, referring to Figure 4 , after step S30, further comprising:
[0130] Step S60, selecting at least one piece of clothing worn by the target object as a first piece of clothing;
[0131] Among the clothes worn by the target object, one or more clothes can be selected as the first clothes. Specifically, clothes worn by the target object with a matching score higher than or equal to a preset score can be selected as the first clothes. For example, when the target object wears a top, a skirt, a hat and shoes, one of the top, skirt, hat and shoes can be selected as the first clothes. Alternatively, when the matching score of the hat and shoes is higher than or equal to the preset score, the hat and shoes are selected as the first clothes.
[0132] Step S70, acquiring a plurality of clothing combinations based on the first characteristic information corresponding to the first clothing; the clothing combinations include the first clothing and a second clothing that matches the first clothing;
[0133] Specifically, according to the preset matching rules, the second characteristic information matched with the first characteristic information can be determined, and the first clothing corresponding to the first characteristic information and the second clothing corresponding to the second characteristic information form the acquired clothing combination. In addition, multiple preset clothing combinations of preset configurations can also be obtained, each preset clothing combination includes at least two preset clothes and their corresponding preset characteristic information, and the preset characteristic information matching the first characteristic information in the preset clothing combination is determined, and the preset clothing combination corresponding to the preset characteristic information is used as the acquired clothing combination. Among them, the acquired clothing combination can have one or more than one according to the actual matching situation.
[0134] Step S80, determining the second evaluation information corresponding to each clothing combination;
[0135] There are many ways to determine the second evaluation information, which can be determined according to the method of obtaining the clothing combination. Different methods of obtaining the second evaluation information use different methods. Specifically, when the clothing combination is obtained based on the self-recommendation of the brand, the score rated by the brand for the clothing combination can be obtained, and the score can be used as the second evaluation information corresponding to the clothing combination; if the clothing combination is given by the system based on preset matching rules, the obtained clothing combination can be pushed to experts (such as fashion experts, designers and models, etc.), and the evaluation score returned by the experts can be obtained, and the score can be used as the second evaluation information corresponding to the clothing combination.
[0136] Step S90: output matching suggestion information according to the second evaluation information and its corresponding clothing combination.
[0137] Specifically, all the acquired clothing combinations and their corresponding second evaluation information can be used as matching suggestion information to let the user know the advantages and disadvantages of different clothing matching effects. In addition, one or more clothing combinations with the highest evaluation can be determined based on the second evaluation information, and the one or more clothing combinations with the highest evaluation can be directly used as matching suggestion information, or the one or more clothing combinations with the highest evaluation can be combined with their corresponding second evaluation information as matching suggestion information. Specifically, the matching suggestion information can be output in the form of image display, voice prompt, etc.
[0138] Furthermore, the second clothing item may be clothing that the user already owns, or clothing that the user has never owned. Specifically, the clothing storage database may be queried based on the characteristic information corresponding to the second clothing item to determine whether the second clothing item already has a storage location in the wardrobe. If so, the second clothing item is considered to be clothing that the user already owns, and otherwise, the second clothing item is considered to be clothing that the user has never owned. When the second clothing item is clothing that the user has never owned, the purchase channel information (such as a shopping link, etc.) corresponding to the second clothing item is output while the matching suggestion information is output, so that the user can purchase the second clothing item.
[0139] In this embodiment, by outputting the matching suggestion information in the above manner, the user can obtain the matching situation of the clothes currently worn by the user and other clothes from the matching suggestion information, so that the user can know how to make the matching effect of the clothes currently worn better. Among them, when the matching suggestion information outputs the clothing combination with a high evaluation, the user can intuitively know how to match his clothes.
[0140] Specifically, in the second embodiment, step S80 includes:
[0141] Step S81, obtaining benchmark evaluation information of each clothing combination, and obtaining channel characteristic information of each clothing combination; wherein the channel characteristic information includes acquisition source, visit volume and / or timeliness information;
[0142] Specifically, the clothing combination can be scored based on preset matching rules to obtain benchmark evaluation information of the clothing combination; or, the score of the brand providing the clothing combination can be directly obtained as the benchmark evaluation information of the clothing combination; or, the evaluation score of the clothing combination returned by the expert can be obtained as the benchmark evaluation information of the clothing combination, etc.
[0143] Step S82, generating a weight for each clothing combination according to the channel characteristic information;
[0144] Different channel characteristic information may correspond to different weights. Specifically, the weight corresponding to the acquisition source being a certified website is greater than the weight corresponding to the acquisition source being a non-certified website; the greater the number of visits corresponding to a clothing combination, the greater the corresponding weight value; the shorter the time when the clothing combination is generated from the current time, the greater the corresponding weight value. Specifically, the weight corresponding to the acquisition source, number of visits and / or timeliness information of each clothing combination may be respectively calculated based on the weights obtained.
[0145] Step S83: determining second evaluation information corresponding to each clothing combination according to the benchmark evaluation information and its corresponding weight.
[0146] Specifically, the benchmark evaluation information may be a benchmark evaluation score. The product of the benchmark evaluation score of the clothing combination and its corresponding weight may be used as the second evaluation information corresponding to the clothing combination.
[0147] In this embodiment, by obtaining the second evaluation information in the above manner, the accuracy of the obtained second evaluation information of the clothing combination can be improved, thereby providing the user with more accurate and effective matching suggestion information.
[0148] Further, based on any of the above embodiments, a third embodiment of the clothing management method of the present application is proposed. In the third embodiment, referring to Figure 5 , the step S20 comprises:
[0149] Step S21, analyzing a first image region where a plurality of characteristic parts of the target object in the first image are located;
[0150] The first image is analyzed by a deep neural network to obtain a first image region where several characteristic parts of the target object are located. The characteristic parts here specifically refer to the parts of the target object that can be used to wear clothes, which may include the head, upper torso, thigh, calf, foot, forearm, back arm, etc. The characteristic parts can be divided according to actual needs. In other embodiments, the characteristic parts may also include the head, upper body, lower body and feet.
[0151] The human body image region where the target object is located in the first image may be identified first, and the first image region corresponding to each characteristic part may be identified in the human body image region. Specifically, step S21 may include:
[0152] Step S211, executing a first human-based target detection algorithm on the first image;
[0153] For example, a first target detection algorithm such as YOLO, SSD, or Faster RCNN may be executed on the first image to detect a human body image in the first image.
[0154] Step S212, determining a first human image region where the target object is located according to the detection result of the first target detection algorithm;
[0155] The first target detection algorithm detects a bounding rectangular frame in the first image to represent the first human image region where the target object is located.
[0156] Step S213, dividing the first human body image region according to a proportional relationship to obtain each of the first image regions.
[0157] The first human image area is divided according to a preset proportional relationship between different characteristic parts in the human image area. For example, the first human image area is divided into four first image areas according to a preset proportional relationship between the head, upper body, lower body and feet.
[0158] Step S22: extracting image information corresponding to each of the first image regions as image information corresponding to the clothing worn by each of the characteristic parts, so as to obtain the first image information.
[0159] Specifically, the image in each first image region can be directly used as the corresponding image information; or the feature vector obtained after feature extraction of the image in each first image region can be used as the corresponding image information. Among them, since the characteristic part is the part of the clothing worn by the target object, the image information in the first image region corresponding to the characteristic part must include the first image information corresponding to the clothing worn at the part, so the image information corresponding to the first image region can be used to represent the first image information of the corresponding clothing.
[0160] In this embodiment, by identifying the first image corresponding to the characteristic part of the target object in the first image, the image information corresponding to the first image of the characteristic part is used to represent the first image information of the clothing worn by the part, thereby achieving effective and accurate recognition of the first image information corresponding to different clothing worn by the target object in the first image, thereby ensuring accurate evaluation of the target object's clothing matching.
[0161] Wherein, the first human image area is a rectangular area, that is, the circumscribed rectangular frame obtained in the detection result of the first target detection algorithm. Before step S213, it also includes: obtaining the ratio of the length to the width of the first human image area; when the ratio is within the threshold range, executing the step of dividing the first human image area according to the proportional relationship to obtain each first image area; when the ratio is outside the threshold range, issuing a first prompt message to prompt the target object to adjust its posture. Specifically, if the ratio is within the threshold range, it indicates that the target object is in a standing posture, and only then is the first human image area divided; if the ratio is not within the threshold range, it indicates that the target object is not in a standing posture, and in this case, the first human image area is not divided, and the first prompt message is issued. After the target object adjusts its posture, it returns to step S10 to obtain and identify the image of the target object again. Furthermore, when the ratio is within the threshold range, before executing step S213, it is also included to determine whether there is only one first human image area with a ratio within the preset range. If so, step S213 is executed; if not, a prompt message is issued to prompt the user to adjust the number and then return to step S10 to re-acquire and identify the image of the target object. By limiting the length-to-length ratio and / or the number of the first human image area, the accuracy of the first image corresponding to each characteristic part of the target object extracted in the first image can be further improved, thereby improving the accuracy of the evaluation of the clothing matching of the target object.
[0162] Further, based on any of the above embodiments, a fourth embodiment of the clothing management method of the present application is proposed. In the fourth embodiment, referring to Figure 6 , the step S20 comprises:
[0163] Step S201, identifying skeleton feature points of a human body in the first image;
[0164] The bone feature points are specifically image points that characterize the positions of different bones of the human body. Specifically, a human bone point detection algorithm can be used to detect the bone feature points of the human body in the first image. The human bone point detection algorithm can specifically include an openpose algorithm, an alphapose algorithm, and the like.
[0165] Step S202, determining a second human body image region where the target object is located according to the skeleton feature points;
[0166] Specifically, the maximum circumscribed rectangular frame of all skeletal feature points is analyzed, and the obtained maximum circumscribed rectangular frame is directly used as the second human image area where the target object is located in the first image, or the preset distance can be expanded based on the center of the maximum circumscribed rectangular frame, and the image area corresponding to the expanded rectangular frame in the first image is used as the second human image area where the target object is located.
[0167] Step S203, dividing the second human body image region based on the skeleton feature points to obtain a second image region where a plurality of feature parts of the target object are located;
[0168] Specifically, the corresponding key positions of different parts of the human body in the second human body image area can be determined based on the skeleton feature points, and the second human body image area can be divided based on the key positions to obtain the second image areas where different characteristic parts of the target object are located. For example, the positions of the human shoulders, pelvis, ankle joints, etc. in the second human body image area are determined based on the skeleton feature points, and the second human body image area is divided into four second image areas where the head, upper body, lower body and feet are located based on these key positions.
[0169] Step S204: extracting image information corresponding to each of the second image regions as image information corresponding to the clothing worn by each of the characteristic parts, so as to obtain the first image information.
[0170] Specifically, the image in each second image area can be directly used as the corresponding image information; or the feature vector obtained after feature extraction of the image in each second image area can be used as the corresponding image information. Among them, since the characteristic part is the part of the clothing worn by the target object, the image information in the second image area corresponding to the characteristic part must contain the first image information corresponding to the clothing worn at the part, so the image information corresponding to the second image area can be used to represent the first image information of the corresponding clothing.
[0171] In this embodiment, the human body image area where the target object is located is identified by skeletal feature points and divided to obtain a second image area where the characteristic part of the target object is located, and the image information corresponding to the second image area is extracted to represent the first image information of the clothing worn by the part, thereby achieving effective and accurate identification of the first image information corresponding to the different clothing worn by the target object in the first image, thereby ensuring accurate evaluation of the target object's clothing matching.
[0172] Furthermore, in the fourth embodiment, before step S202, it also includes: determining whether the skeleton feature points include skeleton key points; if so, executing step S202; if not, issuing a second prompt message to prompt the target object to adjust the posture or position. The number of skeleton feature points is greater than or equal to the number of skeleton key points. Among them, the skeleton feature points are image points that characterize the positions of different bones of the human body; the skeleton key points are image points that characterize the positions of the edges of the entire skeleton of the human body. Specifically, the connection point between the neck and the torso can be used as the first skeleton key point, the top of the head can be used as the second skeleton key point, and the sole of either the left or right foot can be used as the third skeleton key point. In addition, the shoulders can also be used as skeleton key points, and so on. If the skeletal feature points include all of the above-mentioned skeletal key points, it indicates that the first image contains a full-body image of the target object. At this time, the second human body image area can be determined based on the skeletal feature points, and further based on the second human body image area, the evaluation information of the clothing matching worn by the target object can be obtained; if the skeletal feature points do not include one of the above-mentioned skeletal key points, it indicates that the first image does not contain a full-body image of the target object. At this time, the first image is not further processed, but a second prompt message is issued to prompt the user to adjust the posture or position, and then return to execute step S10 to re-acquire the first image of the target object and further identify it.
[0173] Further, when the skeleton feature points include skeleton key points, before executing step S202, the method further includes: obtaining image position information corresponding to each skeleton feature point, judging whether the relative position of each skeleton feature point meets the posture requirement according to the image position information, if it meets the requirement, executing step S202, if it does not meet the requirement, issuing a third prompt information to prompt the target object to adjust the posture. For example, the image position information of the hand skeleton feature points, the shoulder skeleton feature points, the skeleton feature points of the shoulder-neck connection, the skeleton key points of the skull, etc. is obtained, judging whether the position of the hand skeleton feature point is higher than the position of the shoulder skeleton feature point based on the image position information, judging whether the difference between the skeleton feature point of the shoulder-neck connection and the angle formed by the two shoulder skeleton feature points and 180 degrees is greater than or equal to a preset threshold value based on the image position information, judging whether the two shoulder skeleton feature points are located on the same horizontal line based on the image position information, judging whether the position of the skeleton feature point of the skull is lower than the skeleton feature point of the shoulder-neck connection based on the image position information, etc., and taking the relative position between the skeleton feature points when the human body is in a standard standing posture as the posture requirement. Based on this, when it is determined based on the image position information that the position of the hand bone feature point is lower than the position of the shoulder bone feature point, and the difference between the angle formed by the bone feature point of the shoulder and neck connection and the two shoulder bone feature points and 180 degrees is less than the preset threshold, and it is determined that the two shoulder bone feature points are located on the same horizontal line, and it is determined that the position of the bone feature point of the skull is higher than the bone feature point of the shoulder and neck connection, then it is determined that the relative position of each of the bone feature points meets the posture requirements; if any of the above conditions is not met, then it is determined that the relative position of each of the bone feature points does not meet the posture requirements.
[0174] In the above method, by judging whether the skeleton feature points include skeleton key points and / or judging whether the relative positions of the skeleton feature points satisfy the posture conditions, the second human body image area is further determined and analyzed based on the skeleton feature points only when the skeleton key points are included and the posture conditions are satisfied. Otherwise, the image is re-acquired for recognition after the target object is adjusted. This can further improve the accuracy of the first image information of the target object wearing clothes, thereby further improving the accuracy of the evaluation of the target object's clothing matching.
[0175] Further, based on any of the above embodiments, a fifth embodiment of the clothing management method of the present application is proposed. In the fifth embodiment, referring to Figure 7 , the step S20 further includes:
[0176] Step S20a, analyzing a third image region in the first image where various clothes worn by the target object are located;
[0177] Directly perform clothing recognition on the first image, and determine the third image area where the various clothes worn by the target object are located based on the recognition result. Specifically, a second target detection algorithm based on clothing can be executed on the first image to recognize the clothes in the first image, and each of the third image areas is determined based on the detection result of the second target detection algorithm. The second target detection algorithm can be specifically an SSD algorithm. Specifically, the circumscribed rectangular frame detected by the second target detection algorithm in the first image represents the third image area where the clothes worn by the target object are located.
[0178] In addition, by analyzing the image contours of various clothes worn by the target object in the first image, the image area formed by each of the image contours is used as the third image area. Specifically, the first image can be segmented at the pixel level based on a deep neural network to obtain each of the image contours; in addition, the contour feature points corresponding to the various clothes worn by the target object in the first image can be identified based on the deep neural network, and each of the image contours can be determined based on the contour feature points. Step S20b, extracting the image information corresponding to each of the third image areas as the first image information. Specifically, the image in each third image area can be directly used as its corresponding image information; or the feature vector obtained after feature extraction of the image in each third image area can be used as its corresponding image information.
[0179] In this embodiment, by analyzing the third image region where the clothes worn by the target object in the first image are located, the corresponding first image information is extracted based on the third image region, thereby achieving an accurate evaluation of the target object's current clothing combination based on the first image information.
[0180] Based on the third to fifth embodiments described above, when executing step S20, one of the third to fifth embodiments may be selected to extract first image information of different clothes worn by the target object in the first image.
[0181] In addition, based on the third to fifth embodiments described above, when executing step S20, the image information of different clothes worn by the target object in the first image can also be extracted according to the schemes in at least two embodiments of the third to fifth embodiments, so as to obtain at least two groups of image information extraction results. In the at least two groups of extraction results, the image information corresponding to the same clothing can be fitted, and the fitting result can be used as the first image information corresponding to the clothing. For example, the third image information corresponding to the second image area where the characteristic parts of the target object are located is extracted by the skeleton point recognition method of the fourth embodiment, and the fourth image information corresponding to the third image area where the various clothes worn by the target object are located is extracted by the clothing recognition method of the fifth embodiment. Based on the association relationship between the characteristic parts and the clothes worn by the target object, the third image information and the fourth image information representing the same clothing can be determined, and the image information in the third image information whose matching degree with the fourth image information is greater than or equal to the preset threshold is used as the first image information. The above method uses multiple methods to extract the image information corresponding to different clothes worn by the target object in the first image, and then fits the extraction results of multiple methods to obtain the first image information corresponding to each clothing, which is applied to the analysis of the target object's clothing matching, thereby effectively improving the accuracy of the obtained first image information and further improving the accuracy of the clothing matching evaluation and analysis.
[0182] Based on any of the above embodiments, a sixth embodiment of the clothing management method of the present application is proposed. In the sixth embodiment, refer to Figure 8 , after step S30, further comprising:
[0183] Step S01, query the clothing storage database according to the first characteristic information to determine whether the corresponding clothes have storage locations in the wardrobe; the clothing storage database includes characteristic information of multiple clothes and their storage locations in the wardrobe; if not, execute step S02.
[0184] The clothing storage database is a pre-configured information base about the location information and feature information of the clothing stored in the wardrobe.
[0185] Step S02, determining the clothes without a storage location as the third clothes;
[0186] Among all the clothes corresponding to the first characteristic information, the clothes that do not have a storage location in the closet are determined to be the third clothes.
[0187] Step S03, outputting storage prompt information corresponding to the third clothing;
[0188] After receiving the storage prompt information, the user can decide whether to store the third clothing. If the user decides to store the third clothing, the user can input information about its storage location.
[0189] Step S04, obtaining storage location information returned based on the storage prompt information;
[0190] When the information returned based on the storage prompt information includes the location of the third clothing, the corresponding information is extracted as the storage location information.
[0191] Step S05: storing the stored clothing in the clothing storage database according to the association between the storage location information and the first feature information.
[0192] In this embodiment, when the clothes worn by the target object do not have a corresponding storage location in the wardrobe, the user is prompted to store them, and the storage location information set by the user is obtained and associated with the first characteristic information of the clothes, and the clothes storage database is updated, so as to facilitate the user to manage their new and old clothes. The user can know the storage location of his clothes by checking the clothes storage database.
[0193] Furthermore, when all clothes worn by the target object have storage locations in the wardrobe, or when some clothes worn by the target object have storage locations in the wardrobe, the clothes that have storage locations are determined as fourth clothes; in the clothes storage database, the existing location information associated with the first characteristic information of the fourth clothes is determined as the second target location information; and the second target location information is output. By outputting the second target location information of the clothes corresponding to the first characteristic information, the user is informed of the placement of the clothes in the wardrobe, which facilitates the user to store clothes.
[0194] Based on this, step S05 also includes: when receiving a location query instruction including the first characteristic information, querying the clothing storage database based on the first characteristic information; in the clothing storage database, determining the storage location information associated with the first characteristic information as the first target location information; and outputting the first target location information. For example, the user can directly input the first characteristic information to query the location of the clothing to form a location query instruction. When receiving the location query instruction, query the storage location information associated with the first characteristic information in the clothing storage database, and output it as the first target location information, so that when the user forgets where the clothing is stored in the closet, the user can search for the location of the clothing he needs through the first characteristic information.
[0195] In addition, an embodiment of the present invention further proposes a readable storage medium, on which a clothing management program is stored. When the clothing management program is executed by a processor, the relevant steps of any embodiment of the above clothing management method are implemented.
[0196] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0197] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0198] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, wardrobe, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0199] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A clothing management method, characterized in that: The clothing management method comprises the following steps: Acquire a first image of a target object; extracting first image information including different clothes worn by the target object from the first image; Determining first feature information of each piece of clothing worn by the target object according to the first image information; Determining first evaluation information of the target object's clothing matching according to the first feature information; outputting the first evaluation information; The step of determining first feature information of each piece of clothing worn by the target object according to the first image information comprises: analyzing the first image information based on a clothing database, the clothing database including second image information of a plurality of clothing items and corresponding second feature information; determining the second image information matching the first image information in the clothing database as the target image information; The second feature information corresponding to the target image information is used as the first feature information of each piece of clothing worn by the target object.
2. The clothing management method according to claim 1, characterized in that: After the step of determining the first feature information of each piece of clothing worn by the target object according to the first image information, the method further includes: Selecting at least one piece of clothing worn by the target object as a first piece of clothing; Acquire a plurality of clothing combinations based on the first characteristic information corresponding to the first clothing; the clothing combinations include the first clothing and a second clothing matched with the first clothing; Determining second evaluation information corresponding to each clothing combination; Output matching suggestion information according to the second evaluation information and its corresponding clothing combination.
3. The clothing management method according to claim 2, characterized in that: The step of determining the second evaluation information corresponding to each clothing combination comprises: Obtaining benchmark evaluation information of each clothing combination, and obtaining channel characteristic information of each clothing combination; wherein the channel characteristic information includes acquisition source, visit volume and / or timeliness information; Generating weights of the clothing combinations according to the channel characteristic information; According to the reference evaluation information and its corresponding weight, second evaluation information corresponding to each clothing combination is determined.
4. The clothing management method according to any one of claims 1 to 3, characterized in that: The step of extracting first image information including different clothes worn by the target object from the first image comprises: Analyzing a first image region where a plurality of characteristic parts of the target object in the first image are located; Image information corresponding to each of the first image regions is extracted as image information corresponding to the clothing worn by each of the characteristic parts, so as to obtain the first image information.
5. The clothing management method according to claim 4, characterized in that: The step of analyzing the first image region where the plurality of characteristic parts of the target object in the first image are located comprises: Executing a first human-based object detection algorithm on the first image; Determine a first human image region where the target object is located according to a detection result of the first target detection algorithm; The first human body image region is divided according to a proportional relationship to obtain the first image regions.
6. The clothing management method according to any one of claims 1 to 3, characterized in that: The step of extracting first image information including different clothes worn by the target object from the first image comprises: Identifying bone feature points of a human body in the first image; Determine a second human body image region where the target object is located according to the skeleton feature points; Dividing the second human body image region based on the bone feature points to obtain a second image region where a plurality of feature parts of the target object are located; Image information corresponding to each of the second image regions is extracted as image information corresponding to the clothing worn by each of the characteristic parts, so as to obtain the first image information.
7. The clothing management method according to any one of claims 1 to 3, characterized in that: The step of extracting first image information including different clothes worn by the target object from the first image comprises: analyzing a third image region in the first image where various clothes worn by the target object are located; Image information corresponding to each of the third image regions is extracted as the first image information.
8. The clothing management method according to claim 7, characterized in that: The step of analyzing the third image region where various clothes worn by the target object in the first image are located comprises: Analyze the image contours of various clothes worn by the target object in the first image: The image area formed by each of the image contours is used as the third image area.
9. The clothing management method according to any one of claims 1 to 3, characterized in that: After the step of determining the first feature information of each piece of clothing worn by the target object according to the first image information, the method further includes: querying a clothing storage database according to the first characteristic information to determine whether the corresponding clothing has a storage location in the wardrobe; the clothing storage database includes characteristic information of a plurality of clothing and the storage locations of the plurality of clothing in the wardrobe; If not, the clothing without a storage location is determined as the third clothing; Outputting storage prompt information corresponding to the third clothing; Acquire storage location information returned based on the storage prompt information; The storage location information and the first characteristic information are associated and stored in the clothing storage database.
10. The clothing management method according to claim 9, characterized in that: After the step of associating and storing the storage location information and the first feature information in the clothing storage database, the method further includes: When receiving a location query instruction including first characteristic information, querying the clothing storage database based on the first characteristic information; In the clothing storage database, determining the storage location information associated with the first characteristic information as the first target location information; outputting the first target location information; and / or, After the step of querying the clothing storage database according to the first feature information to determine whether the corresponding clothing has a storage location in the wardrobe, the method further includes: When all clothes worn by the target object have storage locations in the wardrobe, or when some clothes worn by the target object have storage locations in the wardrobe, the clothes that have storage locations are determined as fourth clothes; In the clothing storage database, determining the existence location information associated with the first characteristic information of the fourth clothing as the second target location information; The second target position information is output.
11. A control device, characterized in that: The control device includes: a memory, a processor, and a clothing management program stored in the memory and executable on the processor, wherein the clothing management program implements the steps of the clothing management method according to any one of claims 1 to 10 when executed by the processor.
12. A wardrobe, characterized in that: The wardrobe comprises: Cameras and / or mirrors; and The control device as claimed in claim 11, wherein the camera is connected to the control device.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a clothing management program, and when the clothing management program is executed by a processor, the steps of the clothing management method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Image processing method and device
CN107038455A
Evaluation apparatus and evaluation system
JP2019191696A
