WO2019134560A1 - Method for constructing matching model, clothing recommendation method and device, medium, and terminal - Google Patents

Method for constructing matching model, clothing recommendation method and device, medium, and terminal Download PDF

Info

Publication number
WO2019134560A1
WO2019134560A1 PCT/CN2018/123510 CN2018123510W WO2019134560A1 WO 2019134560 A1 WO2019134560 A1 WO 2019134560A1 CN 2018123510 W CN2018123510 W CN 2018123510W WO 2019134560 A1 WO2019134560 A1 WO 2019134560A1
Authority
WO
WIPO (PCT)
Prior art keywords
model
user
clothing
image
matching
Prior art date
Application number
PCT/CN2018/123510
Other languages
French (fr)
Chinese (zh)
Inventor
陈岩
刘耀勇
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019134560A1 publication Critical patent/WO2019134560A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Item recommendations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Definitions

  • the embodiments of the present application relate to mobile terminal technologies, for example, to a collocation model construction method, a clothing recommendation method, an apparatus, a medium, and a terminal.
  • the user's clothing matching knowledge is generally obtained by reading a fashion magazine; some apparel providers try to display the clothing matching scheme provided by the designer of the clothing brand through a display screen set in the shopping mall, thereby providing the user with the clothing matching solution.
  • the brand's clothing recommendations but this way of providing advice with the support is limited in intelligence, and can not achieve the user's expected results.
  • the embodiment of the present application provides a collocation model construction method, a clothing recommendation method, a device, a medium, and a terminal, which can provide an optimized clothing recommendation solution, and improve the intelligence and accuracy of the clothing recommendation function.
  • the embodiment of the present application provides a collocation model construction method, including:
  • the preset depth neural network is trained by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
  • the embodiment of the present application further provides a clothing recommendation method, including:
  • the collocation model is a deep learning model trained according to a preset image sample, and the The image sample is obtained by marking the body type data, the set and the accessories of the set model;
  • the embodiment of the present application further provides a collocation model construction device, and the device includes:
  • An image acquisition module configured to acquire a set number of model images including depth information, wherein the models in the set number of model images are wearing preset sets and accessories;
  • a sample determination module configured to construct a three-dimensional model of each model according to the model image, and mark the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample;
  • the model training module is configured to train the preset depth neural network according to the image sample by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
  • the embodiment of the present application further provides a clothing recommendation device, the device comprising:
  • the information acquisition module is configured to acquire at least one frame of the user image and the user's clothing style information
  • a human body model determining module configured to determine a corresponding human body model according to the user image
  • a matching determination module configured to input the human body model and the clothing style information into a pre-configured matching model, and obtain a clothing matching suggestion outputted by the matching model, wherein the matching model is trained according to a preset image sample. a deep learning model, and the image sample is obtained by marking the body type data, the set and the accessories of the set model;
  • the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the foregoing collocation model construction method is implemented, or the computer program is The above-described clothing recommendation method is implemented when the processor executes.
  • an embodiment of the present application further provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor implements the foregoing matching when executing the computer program.
  • the model construction method, or the processor recommendation method is implemented when the processor executes the computer program.
  • FIG. 1 is a flowchart of a method for constructing a collocation model according to an embodiment of the present application
  • FIG. 2 is a flowchart of a clothing recommendation method according to an embodiment of the present application.
  • FIG. 3 is a flow chart of another clothing recommendation method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a collocation model construction apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a clothing recommendation device according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a smart phone according to an embodiment of the present application.
  • some example embodiments are described as a process or method depicted as a flowchart. Although the flowchart depicts multiple steps as a sequential process, many of the steps can be implemented in parallel, concurrently, or concurrently. Additionally, the order of one or more steps can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
  • FIG. 1 is a flowchart of a method for constructing a collocation model according to an embodiment of the present application.
  • the method may be performed by a collocation model construction device, where the device may be implemented by software and/or hardware. As shown in Figure 1, the method includes:
  • Step 110 Acquire a set number of model images including depth information.
  • the model in the set number of model images is wearing a preset suit and accessories
  • the set number of model images is a plurality of model images different from at least one of a body shape, a gender, and an age of the model.
  • the embodiment of the present application does not quantify the set number, as long as the acquired model image including the deep information is sufficient to construct a three-dimensional model about the model.
  • the model image is a model with different body types, different genders and different ages.
  • the professional costume designer designs the costumes for these models, and adopts a three-dimensional (3-dimension, 3D) depth camera (which can be a mobile terminal).
  • the suit is a good costume matched by professional costume designers.
  • the 3D depth camera can achieve the effect of 3D imaging using a structured light scheme.
  • the structured light scheme that is, the structured light projects a specific optical information onto the surface of the object, and is collected by the camera.
  • the information such as the position and depth of the object is calculated according to the change of the optical signal caused by the object, thereby restoring the entire three-dimensional space.
  • a model image including the depth information there are many ways to obtain a model image including the depth information, which is not specifically limited in the embodiment of the present application.
  • One way may be to shoot a model wearing a matching costume (including taking a photo or video) according to a preset direction by controlling the 3D depth camera to obtain a set number of model images including depth information.
  • the preset direction may be the front, rear, left, and right directions of the model.
  • the shooting direction of the 3D depth camera is not limited to the four directions listed above, and may be taken around the model one week. For example, controlling the 3D depth camera captures at least one frame model image from the front, rear, left, and right directions of the model.
  • control 3D depth camera is surrounded by a model that is set to match the costume for video shooting, and a model video is obtained.
  • the model video may be subjected to frame processing using a set framing strategy to obtain a set number of model images including depth information.
  • the framing strategy may be: extracting one frame of image every set time interval to obtain a set number of model images including depth information.
  • the set time interval may be system default. In an embodiment, the shorter the time interval, the more model images are extracted, and the more accurate the three-dimensional model constructed by the model image.
  • Step 120 Construct a three-dimensional model of each model according to the model image, and mark the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample.
  • the model image includes pixel information and depth of field information
  • a three-dimensional model of the model may be constructed based on the model image using a setting algorithm.
  • the algorithm used in the construction of the three-dimensional model is not limited in the embodiment of the present application.
  • the three-dimensional model is a three-dimensional model of a human body wearing a model with a professional designer and a good costume set and accessories.
  • the stereo model of the human body has a specific proportional relationship with the real human body.
  • the body shape data includes, but is not limited to, neck circumference, chest circumference, waist circumference, shoulder width, arm, hip circumference, and leg data.
  • the circumference of the neck setting area in the three-dimensional image may be pre-defined to mark the neck circumference data.
  • the arm in the three-dimensional image is pre-defined to mark the arm data (including arm length data, arm circumference data, and arm circumference data, etc.).
  • the waist, shoulders, and legs are marked.
  • the suits and accessories worn by the model can also be marked.
  • the clothes are marked along the outline of the clothes worn by the model. It can also be marked along the outline of the accessories worn by the model.
  • the clothing style corresponding to the set and accessories is manually entered, and it is recorded as the first dress style.
  • the marked three-dimensional model is represented in the form of an image matrix, and the image matrix and the first clothing style are stored as the first image sample.
  • the style of clothing includes sports style, elegant style, mix and match style, rural style and rock style.
  • the attribute parameters of the suit and the accessory may be deformed or adjusted, for example, the length, color or style of the jacket may be adjusted, or the accessory may be twisted.
  • an adjustment instruction of the set and the accessory is obtained, and the attribute parameters of the set and the accessory corresponding to the three-dimensional model are modified according to the adjustment instruction.
  • the attribute adjustment suggestion given by the professional designer can be obtained, and the adjustment instruction is generated according to the attribute adjustment suggestion.
  • the adjustment target corresponding to the adjustment instruction is a suit and an accessory, and the body shape data of the human body model has not changed
  • the three-dimensional model whose attribute parameter is adjusted may be marked according to the marking rule corresponding to the first image sample.
  • the adjusted suits and accessories are marked, including but not limited to, along the outline of the garment or accessory to determine the image data corresponding to the suit and accessories. Get the style of the adjusted suit and accessories as a second style.
  • the second image sample is obtained according to the image matrix corresponding to the marked three-dimensional model (including marking the body type data and marking the set and accessories) and the second clothing style.
  • the step of deforming or adjusting the attribute parameters of the set and accessories is not necessary, and performing the adjustment step may enrich the number of samples used for the model training.
  • Step 130 Train the preset depth neural network according to the image sample by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
  • the image sample is sample data that marks the three-dimensional model of the model and marks the clothing style corresponding to the suit and accessories worn by the model, including but not limited to the first image sample.
  • the set machine learning algorithms include a forward propagation algorithm and a backward propagation algorithm.
  • the deep neural network may be a convolutional neural network, that is, the number of hidden layers and the number of nodes in each of the input layer, the hidden layer, and the output layer may be preset, and the first parameter of the convolutional neural network is initialized.
  • the first parameter includes the offset value of each layer and the weight of the edge, and the convolutional neural network is initially obtained.
  • the preset depth neural network is used to perform the two stages of forward propagation and backward propagation by using the image sample; when the error calculated by the backward propagation training reaches the expected error, the training ends and the matching is obtained. model.
  • the first image sample (including a positive sample and a negative sample) can be used to train the convolutional neural network in two stages of forward propagation and backward propagation; the error calculated in the backward propagation training reaches the expected error.
  • the training ends and the matching model is obtained.
  • the image sample may further include a second image sample, that is, the first image sample and the second image sample may be used to perform training on the convolutional neural network in two stages of forward propagation and backward propagation; The training ends when the error calculated by the backward propagation training reaches the desired error value.
  • network parameters such as the number of layers of the deep neural network, the number of neurons, the convolution kernel, and/or the weight are not limited in the embodiment of the present application.
  • the embodiment of the present application does not limit the execution body of the collocation model construction operation, and may be a server or a mobile terminal.
  • the technical solution of the embodiment obtains a set number of model images including depth information; constructs a three-dimensional model of each model according to the model image, and marks the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain the first Image samples; according to the image samples, the preset deep neural network is trained by using a set machine learning algorithm to obtain a matching model, which can make the matching model have the function of recommending the clothing matching scheme based on the body data and the clothing style.
  • the above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
  • FIG. 2 is a flowchart of a clothing recommendation method according to an embodiment of the present application.
  • the method can be performed by a clothing recommendation device, wherein the device can be implemented by software and/or hardware, and can generally be integrated into a mobile terminal, such as a mobile terminal having a 3D depth camera.
  • the method includes:
  • Step 210 Acquire at least one frame of the user image and the user's clothing style information.
  • the user image may be an image including depth of field information captured by a 3D depth camera, and may also be a historical image in a picture library.
  • Clothing style information is the type of clothing style, including but not limited to sports style, elegance, mix and match, scenic style and rock style.
  • the operation of acquiring the image of the user by the mobile terminal may be performed by a system of the mobile terminal or by any application software having a shooting function in the mobile terminal, and the operation of acquiring the image of the user may be performed by the system under the operation instruction of the user. Or application software to execute.
  • the clothing recommendation function when the clothing recommendation function is activated, the clothing style inquiry information is output, including a display selection dialog box, prompting the user to input the clothing style.
  • the way the user enters the clothing style can be manually entered or selected by the clothing style options listed in the selection dialog box.
  • the clothing style information input by the user is obtained, and the user is prompted to input at least one frame of the user image.
  • a camera activation event may be triggered to detect a user-entered clothing style information to prompt the user to capture at least one frame of the user image through the camera.
  • the 3D depth camera is controlled to take a user image according to a shooting instruction input by the user.
  • the prompt information may be displayed to ask the user to select to perform the following operations: selecting at least one frame of the user history image from the picture library, or controlling the camera to capture at least one frame of the user image.
  • the operation instruction input by the user it is determined which operation is performed (including controlling the 3D depth camera to capture the user image, or acquiring the user image from the picture library).
  • Step 220 Determine a corresponding human body model according to the user image.
  • the human body model is a three-dimensional model constructed by acquiring model body information in advance through a 3D depth camera.
  • a three-dimensional model constructed by acquiring model body information in advance through a 3D depth camera.
  • the embodiments of the present application are not specifically limited.
  • the user is photographed by the 3D depth camera from the preset direction to obtain a first depth image.
  • the user is photographed by the preset direction to capture at least one frame of the user image in at least four directions of the user's front, back, left, and right directions, that is, at least four frames of the first depth image are obtained.
  • a user's human body model can be constructed using a specific three-dimensional model building algorithm based on the first depth image.
  • the three-dimensional model construction algorithm may be a correlation detection algorithm and a three-dimensional texture mapping algorithm.
  • the 3D depth camera is controlled to surround the user for at least one week, and video recording is performed to obtain a user video.
  • the user video may be framed by a specific framing strategy to obtain a user image of a plurality of frames taken at a set angle on a 360 degree circumference, which may be recorded as a second depth image.
  • the user's human body model can be constructed using a specific three-dimensional model construction algorithm according to the second depth image.
  • the iris information of the user may also be extracted, and the iris information is stored in the human body model set in association with the human body model.
  • the human body model building operation is a setting step of the clothing recommendation scheme, which is executed when the clothing recommendation function is initialized, and stores the constructed human body model on the mobile terminal.
  • the apparel recommendation function also provides a human body model update function by which the user can add, modify, or delete the stored human body model.
  • the user image when detecting that the clothing recommendation function is enabled, the user image is acquired, the preset feature point in the user image is extracted, and the facial feature information of the user image is determined according to the preset feature point.
  • the preset feature point may be a system default, and may identify a feature point of the user identity, for example, a pixel corresponding to the iris or a corresponding pixel such as an eye, a nose, and a mouth. That is to say, the pixel corresponding to the iris in the user image can be extracted, and the iris information of the user image is determined according to the pixel.
  • pixels corresponding to eyes, noses, and mouths in the user image may also be separately extracted, thereby determining eye contours, nose contours, and mouth contours in the user image to generate users according to eye contours, nose contours, and mouth contours. portrait.
  • the user may store more than one user's mannequin within the same mobile terminal.
  • the human body model set corresponding to the user image can be determined by querying the human body model set by the facial feature information.
  • the human body model corresponding to the user image may be selected from the pre-built set of human body models according to the iris information.
  • a user portrait can be constructed based on the contour of the eye, the contour of the nose, and the contour of the mouth, and the human body model corresponding to the user image can be filtered according to the user image.
  • the embodiment of the present application may further generate a human body model according to at least one frame of the user image without constructing a human body model of the user in advance.
  • Step 230 Input the human body model and the clothing style information into a pre-configured matching model, and obtain a clothing matching suggestion output by the matching model.
  • the collocation model is a deep learning model trained according to preset image samples, wherein the model data of the set model is marked to obtain image samples.
  • the model can be a model of different body types, different genders and different ages as described in the embodiments of the present application, and the model is wearing a suit and accessories matched by professional costume designers.
  • the collocation model can be a convolutional neural network model.
  • network parameters such as the number of layers of the collocation model, the number of neurons, the convolution kernel, and/or the weight are not limited.
  • the apparel matching suggestions include clothing type suggestions, shoe matching suggestions, and suggestions for matching accessories.
  • the matrix data corresponding to the human body model corresponding to the user image and the clothing style selected by the user are input into the matching model, and the body shape data corresponding to the human body model is extracted by the matching model, and the clothing style is determined, and the body shape data is determined. And clothing style matching clothing matching suggestions and the probability value corresponding to each clothing matching suggestion, output clothing matching suggestions and probability values.
  • the collocation model is trained by the image sample, and the image sample includes the image matrix corresponding to the marked model three-dimensional model and the clothing style corresponding to the set and the accessory, according to the collocation model, based on the human body model and The clothing style chosen by the user can provide clothing matching suggestions that match the user's body shape data and clothing style.
  • the matching model in the embodiment of the present application may be used to provide clothing matching suggestions.
  • the user image and the clothing style are acquired, and the corresponding human body model is determined according to the user image.
  • the matrix data corresponding to the human body model and the clothing style are input and matched with the model, and the clothing matching suggestions output by the matching model are obtained.
  • the clothing matching suggestions may be arranged in descending order according to the probability value, and the preset number of clothing matching suggestions and corresponding probability values are outputted.
  • Step 240 Display the clothing matching suggestion.
  • the display manner of the clothing matching suggestion may be a text description manner, and the text description corresponding to the clothing matching suggestion may be directly displayed in the form of a dialog box, and the display manner of the clothing recommendation suggestion is not limited to the above enumerated manner.
  • the clothing suits and accessories corresponding to the clothing matching suggestions in the form of two-dimensional or three-dimensional images.
  • the technical solution of the embodiment obtains at least one frame of the user image and the clothing style information input by the user; determines a corresponding human body model according to the user image; and inputs the human body model and the clothing style information into a pre-configured matching model to obtain the matching
  • the clothing output suggestion of the model output; display the clothing matching suggestion, according to the matching model, the body shape data corresponding to the user's human body model and the clothing matching suggestion corresponding to the clothing style selected by the user may be determined.
  • the above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
  • FIG. 3 is a flowchart of another clothing recommendation method provided by an embodiment of the present application. As shown in FIG. 3, the method includes:
  • Step 310 When detecting that the apparel recommendation function is activated, acquiring at least one frame of the user image and the user's clothing style information.
  • the clothing recommendation function switch may be added in the camera application, and when the opening instruction of the user input is detected, the clothing recommendation function switch is turned on. When it is detected that the clothing recommendation function switch is turned on, the user is prompted to take at least one frame of the user image.
  • the target frame may be displayed in the preview interface to provide the user with the face falling into the target frame during shooting to ensure that the user's face is captured.
  • a query dialog box is displayed to prompt the user to enter the clothing style inquiry information. The inquiry dialog is detected to obtain the clothing style information input by the user.
  • the mobile terminal may further provide an application capable of implementing a clothing recommendation function, and when detecting that the application is started, displaying a query dialog box to prompt the user to input clothing style information.
  • the clothing style information is stored in the preset storage space.
  • the mobile terminal controls the camera to capture at least one frame of the user image.
  • Step 320 Extract a preset feature point in the user image, and determine facial feature information of the user image according to the preset feature point.
  • Step 330 Filter, according to the facial feature information, a human body model corresponding to the user image from a pre-built set of human body models.
  • Step 340 Input the human body model and the clothing style information into a pre-configured matching model, and obtain a clothing matching suggestion output by the matching model.
  • Step 350 Find an apparel model matching the style and size in the apparel matching suggestion from a preset apparel database, and display the apparel model.
  • the preset apparel database may be a database storing image data of clothing and accessories, and the image data is stored in association with the description data in the database.
  • the description data is a character that describes the characteristics of the clothing and accessories, including but not limited to the size, color or style of the clothes or accessories.
  • the picture data in the preset clothing database may be picture data of clothing and accessories obtained from the network platform picture library through the web crawler.
  • the clothing database may also be a photo of a user's own clothing and accessories, a database of clothing and accessories in the user's own wardrobe, and the like.
  • a 3D depth camera can be used to take photographs of clothes and accessories from a preset direction, and a costume model can be constructed based on the photographs of the photographed clothes and accessories, and the costume model is stored in the clothing database.
  • the corresponding clothing model is searched from the preset clothing database.
  • the clothing matching suggestion is matched with the description data, and the clothing model matching the style and the size in the clothing matching suggestion is determined, and the clothing model is displayed.
  • the probability corresponding to the clothing matching suggestion may be displayed. The value determines the display order of the clothing model, that is, the clothing model corresponding to the clothing matching suggestion with higher probability value is preferentially displayed.
  • a user model wearing the recommended apparel is rendered according to the apparel model and the human body model, and the user model is displayed to present the effect of the user wearing the matched clothes and accessories.
  • the preset clothing database is not limited to a database pre-configured in the mobile terminal, and may also be a database of the online shopping platform.
  • the online shopping platform can provide three-dimensional clothing model data
  • the mobile terminal acquires three-dimensional model data by calling an application programming interface (API) provided by the network platform.
  • API application programming interface
  • the link address corresponding to the clothing model may be displayed while the clothing model is displayed, that is, if the clothing model is a set of sportswear, the display order of the link address corresponding to the sportswear may be determined according to the sales volume. .
  • Step 360 Acquire an adjustment operation input by the user for the user model.
  • the apparel recommendation recommendation output by the recommendation model is in line with the professional designer's aesthetic suggestion, but does not necessarily achieve the user's expectation of the costume effect.
  • the embodiment of the present application can also provide a clothing fine-tuning function. That is, the user model of the costume corresponding to the apparel recommendation is displayed on the mobile terminal, and the adjustment operation input by the user for the user model is detected.
  • the adjustment operation may include an update indication for the length, color or accessory of the garment. For example, the user clicks on the pixel corresponding to the trousers and adds a worn effect to the trousers. Another example is that the user clicks on the headwear, modifies the number of headwear, and the like.
  • the user operation for the user model is acquired.
  • the property interface of the apparel or accessory is displayed for the user to modify the attribute data.
  • Step 370 Modify the apparel parameter of the user model according to the adjustment operation, and display the modified new user model.
  • the clothing parameters include attribute data such as color, length, and style.
  • the apparel parameters of the apparel or accessories are updated according to the attribute data corresponding to the adjustment operation, and the modified new user model is displayed to display the adjusted clothing and accessories effects.
  • the user may also be reminded to mark the clothing style corresponding to the modified clothing and accessories, as an adjustment record of the clothing matching suggestions outputted by the matching model, and save the adjustment record of the user's clothing matching suggestions output by the matching model.
  • the adjustment record exceeds the set threshold, the clothing style and the matrix data corresponding to the user model wearing the modified costume are input into the matching model to update the matching model.
  • the network platform may be queried according to the new user model, and the product link address corresponding to the clothing or accessories in the new user model is determined, so as to shorten the time spent by the user on the online shopping, and the online shopping of the user is improved.
  • the product link address corresponding to the clothing or accessories in the new user model is determined, so as to shorten the time spent by the user on the online shopping, and the online shopping of the user is improved.
  • the clothing model is determined through the clothing matching suggestion, and the user model wearing the recommended clothing is rendered according to the clothing model and the human body model, and the user model is displayed to present the user corresponding to the clothing matching suggestion correspondingly.
  • the effect of the recommended apparel; the adjustment operation for the user model that detects the user input can also be provided to meet the user's personalized clothing matching needs.
  • FIG. 4 is a schematic structural diagram of a collocation model construction apparatus according to an embodiment of the present application.
  • the apparatus may be implemented by software and/or hardware and configured to perform the collocation model construction method provided by the embodiment of the present application.
  • the device comprises:
  • the image obtaining module 410 is configured to acquire a set number of model images including depth information, wherein the models in the set number of model images are wearing preset sets and accessories;
  • the sample determination module 420 is configured to construct a three-dimensional model of each model according to the model image, and mark the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample;
  • the model training module 430 is configured to train the preset depth neural network according to the image sample by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
  • the technical solution of the embodiment provides a collocation model construction device, and has the function of recommending a clothing collocation scheme based on the body type data and the clothing style.
  • the above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
  • the set number of model images is a plurality of model images different from at least one of a body shape, a gender, and an age of the model.
  • the image acquisition module 410 is configured to:
  • the 3D depth camera is controlled to shoot a model wearing the matching costume according to a preset direction, and a set number of model images including depth information is obtained.
  • the image acquisition module 410 is configured to:
  • the model video is subjected to frame processing by using a set framing strategy to obtain a set number of model images including depth information.
  • the sample determination module 420 is configured to:
  • the first image sample is obtained according to the image matrix corresponding to the marked three-dimensional model and the first clothing style.
  • the apparatus further comprises:
  • An additional sample determining module is configured to obtain an adjustment instruction of the package and the accessory after marking the body shape data, the suit, and the accessory corresponding to the three-dimensional model to obtain the first image sample, and modify the corresponding three-dimensional model according to the adjustment instruction
  • a second image sample is obtained in the style of clothing.
  • model training module 430 is configured to:
  • FIG. 5 is a schematic structural diagram of a clothing recommendation device according to an embodiment of the present application.
  • the apparatus may be implemented by software and/or hardware and may be integrated into a mobile terminal having a 3D depth camera configured to perform a clothing recommendation operation.
  • the device includes:
  • the information acquiring module 510 is configured to acquire at least one frame of the user image and the user's clothing style information
  • the human body model determining module 520 is configured to determine a corresponding human body model according to the user image
  • the collocation suggestion module 530 is configured to input the human body model and the clothing style information into a pre-configured collocation model, and obtain a clothing collocation suggestion outputted by the collocation model, wherein the collocation model is based on a preset image sample. a deep learning model of the training, and the image sample is obtained by marking the body type data, the set and the accessories of the set model;
  • the suggestion display module 540 is arranged to display the clothing matching suggestion.
  • the technical solution of the embodiment provides a clothing recommendation device, and the body shape data corresponding to the human body model of the user and the clothing matching proposal corresponding to the clothing style selected by the user may be determined according to the collocation model.
  • the above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
  • the information acquisition module 510 is configured to:
  • the clothing style inquiry information is output;
  • the 3D depth camera is controlled to capture a user image according to the operation instruction input by the user, or the user image is acquired from the picture library.
  • the mannequin determination module 520 is configured to:
  • the human body model corresponding to the user image is filtered from the pre-built set of human body models according to the facial feature information.
  • the collocation suggestion module 540 is configured to:
  • the collocation suggestion module 540 is configured to:
  • a user model wearing the recommended clothing is rendered according to the clothing model and the human body model, and the user model is displayed.
  • the apparatus further comprises:
  • the clothing parameter adjustment module is configured to: after displaying the user model, acquire an adjustment operation input by the user for the user model; modify the clothing parameter of the user model according to the adjustment operation, and display the modified new user model.
  • the clothing matching suggestion includes at least one of the following: a clothing type matching suggestion, a shoe matching suggestion, and a jewelry matching suggestion.
  • the embodiment of the present application further provides a storage medium including computer executable instructions for executing a collocation model construction method when executed by a computer processor, the method comprising:
  • the preset depth neural network is trained by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
  • the embodiment of the present application further provides another storage medium including computer executable instructions for executing a clothing recommendation method when executed by a computer processor, the method comprising:
  • the collocation model is a deep learning model trained according to a preset image sample, and the The image sample is obtained by marking the body type data, the set and the accessories of the set model;
  • Storage medium any one or more types of memory devices or storage devices.
  • the term "storage medium” is intended to include: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as a dynamic random access memory; (Dynamic Random Access Memory, DRAM), (Double Data Rate Random Access Memory, DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random Access Memory (Extended Data Output Random Access Memory) , EDO RAM), Rambus Random Access Memory (Rambus RAM), etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory components Wait.
  • a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device
  • a computer system memory or a random access memory such as a dynamic random access memory
  • DRAM Dynamic Random Access Memory
  • the storage medium may also include other types of memory or a combination thereof. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet. The second computer system can provide program instructions to the first computer for execution.
  • the term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network).
  • a storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
  • the computer executable instructions are not limited to the operation of the collocation model construction as described above, and may also perform the collocation model provided by any embodiment of the present application. Related operations in the build method.
  • the storage medium containing the computer executable instructions provided by the embodiment of the present application is not limited to the operation of the clothing recommendation as described above, and may also perform the clothing recommendation method provided by any embodiment of the present application. Related operations in .
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • the terminal includes a memory 610 and a processor 620.
  • the memory 610 is configured to store a computer program, a model image, a three-dimensional model of the model, an image sample, and a matching model.
  • the processor 620 reads and executes the computer program stored in the memory 610.
  • the processor 620 implements the collocation model construction method described in any of the embodiments of the present disclosure when executing the computer program.
  • the embodiment of the present application provides another terminal, where the terminal has an operating system, and the clothing recommendation device provided by the embodiment of the present application may be integrated into the terminal.
  • the terminal can be a smart phone or a tablet (PAD).
  • FIG. 7 is a schematic structural diagram of another terminal according to an embodiment of the present application.
  • the terminal includes a camera 710, a memory 720, and a processor 730.
  • the camera 710 is a 3D depth camera, and a user image including depth of field information can be captured using a structured light scheme.
  • the memory 720 is configured to store a computer program, a user image, clothing style information, a human body model, a collocation model, and the like.
  • the processor 730 reads and executes a computer program stored in the memory 720.
  • the processor 730 implements the apparel recommendation method of any of the embodiments of the present disclosure when the computer program is executed.
  • the camera, memory and processor listed in the above examples are all components of the terminal, and the terminal may also include other components.
  • FIG. 8 is a schematic structural diagram of a smart phone according to an embodiment of the present application.
  • the smart phone may include: a memory 801, a central processing unit (CPU) 802 (also referred to as a processor, hereinafter referred to as a CPU), a peripheral interface 803, and a radio frequency (RF) circuit.
  • CPU central processing unit
  • RF radio frequency
  • the illustrated smartphone 800 is merely one example of a mobile terminal, and the smartphone 800 can have more or fewer components than those shown in the figures, two or more components can be combined, or can have different Component configuration.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the memory 801 can be accessed by the CPU 802, the peripheral interface 803, etc., and the memory 801 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices. A computer program, a matching model, and the like are stored in the memory 811.
  • Peripheral interface 803, which can connect the input and output peripherals of the device to CPU 802 and memory 801.
  • the I/O subsystem 809 can connect input and output peripherals on the device, such as display 812 and other input/control devices 810, to peripheral interface 803.
  • the I/O subsystem 809 can include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810.
  • one or more input controllers 8092 receive electrical signals from other input/control devices 810 or transmit electrical signals to other input/control devices 810, and other input/control devices 810 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a Universal Serial Bus (USB) interface, and a pointing device such as a mouse.
  • USB Universal Serial Bus
  • a display 812 which is an input interface and an output interface between the user terminal and the user, displays the visual output to the user, and the visual output can include graphics, text, icons, video, and the like.
  • the camera 813 acquires an optical image of the user using a structured light scheme, and converts the optical image into an electrical signal, and is stored in the memory 801 through the peripheral interface 803.
  • Display controller 8091 in I/O subsystem 809 receives an electrical signal from display 812 or an electrical signal to display 812.
  • Display 812 detects contact on the display, display controller 8091 converts the detected contact into interaction with a user interface object displayed on display 812, i.e., enables human-computer interaction, and the user interface object displayed on display 812 can be operational
  • display 512 is a screen.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the screen.
  • the RF circuit 805 is configured to establish communication between the mobile phone and the wireless network (ie, the network side) to implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like.
  • RF circuit 805 receives and transmits an RF signal, also referred to as an electromagnetic signal, and RF circuit 805 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network And other devices to communicate.
  • RF circuitry 805 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
  • CDDEC codec CODER-DECoder
  • the audio circuit 806 is arranged to receive audio data from the peripheral interface 803, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 811.
  • the speaker 811 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.
  • the power management chip 808 is configured to provide power and power management for the hardware connected to the CPU 802, the I/O subsystem 809, and the peripheral interface 803.
  • the terminal constructs a three-dimensional model of each model by using a model image including depth information, and marks the body shape data, the suit, and the accessories corresponding to the three-dimensional model to obtain a first image sample;
  • the fixed machine learning algorithm trains the preset deep neural network to obtain the matching model, which can make the matching model have the function of recommending the clothing matching scheme based on the body data and the clothing style.
  • the embodiment of the present application further provides another terminal, and according to the collocation model, the body shape data corresponding to the human body model of the user and the clothing collocation proposal corresponding to the clothing style selected by the user may be determined.
  • the above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
  • the collocation model construction device, the clothing recommendation device, the storage medium and the terminal provided in the above embodiments can execute the collocation model construction method and the clothing recommendation method provided by the embodiments of the present application, and have the corresponding functional modules and effects for executing the method.
  • the collocation model construction method and the clothing recommendation method provided by any embodiment of the present application.

Abstract

The present document discloses a method for constructing a matching model, comprising: acquiring a specified quantity of model images comprising field depth information; constructing a three-dimensional model for each model according to the model image, and marking body type data, outfits, and accessories corresponding to the three-dimensional models to obtain a first image sample; using a set machine learning algorithm to train, according to an image sample, a preset deep neural network to obtain a matching model, wherein the image sample comprises the first image sample. The document further discloses a clothing recommendation method, a matching model construction device, a clothing recommendation device, a storage medium, and a terminal.

Description

搭配模型构建方法、服饰推荐方法、装置、介质及终端Collocation model construction method, clothing recommendation method, device, medium and terminal
本申请要求在2018年1月08日提交中国专利局、申请号为201810015394.6的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 20181001539, filed on Jan. 08.
技术领域Technical field
本申请实施例涉及移动终端技术,例如涉及一种搭配模型构建方法、服饰推荐方法、装置、介质及终端。The embodiments of the present application relate to mobile terminal technologies, for example, to a collocation model construction method, a clothing recommendation method, an apparatus, a medium, and a terminal.
背景技术Background technique
随着经济的飞速发展,服饰产品的品种、样式变得极为丰富而复杂,同时,人们对服装及配饰的要求也日益提高。面对品种、样式繁杂的服饰,人们通常希望得到专业而科学的搭配建议。With the rapid development of the economy, the variety and style of apparel products have become extremely rich and complex, and at the same time, people's requirements for clothing and accessories are also increasing. Faced with a variety of styles and styles, people often want professional and scientific advice.
相关技术中,用户的穿衣搭配知识一般通过阅读时尚杂志获取;也有一些服饰提供商尝试通过设置于商场内的显示屏展示该服饰品牌的设计师提供的穿衣搭配方案,从而,为用户提供该品牌的服饰的搭配建议,但是这种提供搭配建议的方式的智能程度受限,并不能达到用户预期的效果。In the related art, the user's clothing matching knowledge is generally obtained by reading a fashion magazine; some apparel providers try to display the clothing matching scheme provided by the designer of the clothing brand through a display screen set in the shopping mall, thereby providing the user with the clothing matching solution. The brand's clothing recommendations, but this way of providing advice with the support is limited in intelligence, and can not achieve the user's expected results.
发明内容Summary of the invention
本申请实施例提供一种搭配模型构建方法、服饰推荐方法、装置、介质及终端,可以提供一种优化的服饰推荐方案,提升服饰推荐功能的智能性及精确度。The embodiment of the present application provides a collocation model construction method, a clothing recommendation method, a device, a medium, and a terminal, which can provide an optimized clothing recommendation solution, and improve the intelligence and accuracy of the clothing recommendation function.
在一实施例中,本申请实施例提供了一种搭配模型构建方法,包括:In an embodiment, the embodiment of the present application provides a collocation model construction method, including:
获取设定数量的包括景深信息的模特图像,其中,所述设定数量的模特图像中的模特身着预设的套装和配饰;Acquiring a set number of model images including depth of field information, wherein the models in the set number of model images are wearing preset sets and accessories;
根据所述模特图像构建每个模特的三维模型,并对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本;Constructing a three-dimensional model of each model according to the model image, and marking the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample;
根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,其中,所述图像样本包括所述第一图像样本。According to the image sample, the preset depth neural network is trained by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
在一实施例中,本申请实施例还提供了一种服饰推荐方法,包括:In an embodiment, the embodiment of the present application further provides a clothing recommendation method, including:
获取至少一帧用户图像及用户的衣着风格信息;Obtaining at least one frame of the user image and the user's clothing style information;
根据所述用户图像确定对应的人体模型;Determining a corresponding human body model according to the user image;
将所述人体模型及所述衣着风格信息输入预先配置的搭配模型,获取所述搭配模型输出的服饰搭配建议,其中,所述搭配模型为根据预设的图像样本训练的深度学习模型,且该图像样本根据对设定模特的体型数据、套装及配饰进行标记得到;Entering the human body model and the clothing style information into a pre-configured collocation model, and obtaining a clothing matching suggestion output by the collocation model, wherein the collocation model is a deep learning model trained according to a preset image sample, and the The image sample is obtained by marking the body type data, the set and the accessories of the set model;
展示所述服饰搭配建议。Show the clothing matching suggestions.
在一实施例中,本申请实施例还提供了一种搭配模型构建装置,该装置包括:In an embodiment, the embodiment of the present application further provides a collocation model construction device, and the device includes:
图像获取模块,设置为获取设定数量的包括景深信息的模特图像,其中,所述设定数量的模特图像中的模特身着预设的套装和配饰;An image acquisition module, configured to acquire a set number of model images including depth information, wherein the models in the set number of model images are wearing preset sets and accessories;
样本确定模块,设置为根据所述模特图像构建每个模特的三维模型,并对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本;a sample determination module, configured to construct a three-dimensional model of each model according to the model image, and mark the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample;
模型训练模块,设置为根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,其中,所述图像样本包括所述第一图像样本。The model training module is configured to train the preset depth neural network according to the image sample by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
在一实施例中,本申请实施例还提供了一种服饰推荐装置,该装置包括:In an embodiment, the embodiment of the present application further provides a clothing recommendation device, the device comprising:
信息获取模块,设置为获取至少一帧用户图像及用户的衣着风格信息;The information acquisition module is configured to acquire at least one frame of the user image and the user's clothing style information;
人体模型确定模块,设置为根据所述用户图像确定对应的人体模型;a human body model determining module, configured to determine a corresponding human body model according to the user image;
搭配建议确定模块,设置为将所述人体模型及所述衣着风格信息输入预先配置的搭配模型,获取所述搭配模型输出的服饰搭配建议,其中,所述搭配模型为根据预设的图像样本训练的深度学习模型,且该图像样本根据对设定模特的体型数据、套装及配饰进行标记得到;a matching determination module, configured to input the human body model and the clothing style information into a pre-configured matching model, and obtain a clothing matching suggestion outputted by the matching model, wherein the matching model is trained according to a preset image sample. a deep learning model, and the image sample is obtained by marking the body type data, the set and the accessories of the set model;
搭配建议展示模块,设置为展示所述服饰搭配建议。With the suggestion display module, set to display the clothing matching suggestions.
在一实施例中,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述的搭配模型构建方法,或者,该计算机程序被处理器执行时实现上述的服饰推荐方法。In an embodiment, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the foregoing collocation model construction method is implemented, or the computer program is The above-described clothing recommendation method is implemented when the processor executes.
在一实施例中,本申请实施例还提供了一种终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,该处理器执行所述计算机程序时实现上述的搭配模型构建方法,或者,该处理器执行所述计算机程序时实现上述的服饰推荐方法。In an embodiment, an embodiment of the present application further provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor implements the foregoing matching when executing the computer program. The model construction method, or the processor recommendation method is implemented when the processor executes the computer program.
附图说明DRAWINGS
图1是本申请实施例提供的一种搭配模型构建方法的流程图;1 is a flowchart of a method for constructing a collocation model according to an embodiment of the present application;
图2是本申请实施例提供的一种服饰推荐方法的流程图;2 is a flowchart of a clothing recommendation method according to an embodiment of the present application;
图3是本申请实施例提供的另一种服饰推荐方法的流程图;3 is a flow chart of another clothing recommendation method provided by an embodiment of the present application;
图4是本申请实施例提供的一种搭配模型构建装置的结构示意图;4 is a schematic structural diagram of a collocation model construction apparatus according to an embodiment of the present application;
图5是本申请实施例提供的一种服饰推荐装置的结构示意图;FIG. 5 is a schematic structural diagram of a clothing recommendation device according to an embodiment of the present application; FIG.
图6是本申请实施例提供的一种终端的结构示意图;FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure;
图7是本申请实施例提供的另一种终端的结构示意图;FIG. 7 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure;
图8是本申请实施例提供的一种智能手机的结构示意图。FIG. 8 is a schematic structural diagram of a smart phone according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请进行说明。此处所描述的实施例仅仅用于解释本申请,而非对本申请的限定。为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be described below in conjunction with the accompanying drawings and embodiments. The embodiments described herein are merely illustrative of the present application and are not intended to be limiting. For the convenience of description, only some but not all of the structures related to the present application are shown in the drawings.
在一实施例中,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将多个步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,一个或多个步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In an embodiment, some example embodiments are described as a process or method depicted as a flowchart. Although the flowchart depicts multiple steps as a sequential process, many of the steps can be implemented in parallel, concurrently, or concurrently. Additionally, the order of one or more steps can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
实施例一Embodiment 1
图1为本申请实施例提供的一种搭配模型构建方法的流程图,该方法可以由搭配模型构建装置来执行,其中,该装置可由软件和/或硬件实现。如图1所示,该方法包括:FIG. 1 is a flowchart of a method for constructing a collocation model according to an embodiment of the present application. The method may be performed by a collocation model construction device, where the device may be implemented by software and/or hardware. As shown in Figure 1, the method includes:
步骤110、获取设定数量的包括景深信息的模特图像。Step 110: Acquire a set number of model images including depth information.
在一实施例中,所述设定数量的模特图像中的模特身着预设的套装和配饰;In an embodiment, the model in the set number of model images is wearing a preset suit and accessories;
在一实施例中,所述设定数量的模特图像为模特的体型、性别和年龄中的至少一项不同的多个模特图像。在一实施例中,本申请实施例对设定数量不作量化,只要获取的包括深信息的模特图像足以构建关于模特的三维模型即可。其中,模特图像是选择不同体型、不同性别及不同年龄的模特,由专业服饰设计人员为这些模特设计服饰搭配,采用具有三维(3-dimension,3D)深度摄像头的拍摄装置(可以是移动终端)对身着预设的套装和配饰的模特进行拍摄,得到包括深度信息的图像。其中,套装是由专业服饰设计人员搭配好的服装。配饰包括头饰、耳饰、项链、手链、帽子、围巾及包等。在一实施例中,该3D深度摄像头可以采用结构光方案达到3D成像的效果。结构光方案,即结构光投射特定的光信息到物体表面后,由摄像头采集。根据物体造成的光信号的变化来计算物体的位置和深度等信息,进而复原整个三维空间。In an embodiment, the set number of model images is a plurality of model images different from at least one of a body shape, a gender, and an age of the model. In an embodiment, the embodiment of the present application does not quantify the set number, as long as the acquired model image including the deep information is sufficient to construct a three-dimensional model about the model. Among them, the model image is a model with different body types, different genders and different ages. The professional costume designer designs the costumes for these models, and adopts a three-dimensional (3-dimension, 3D) depth camera (which can be a mobile terminal). Shoot a model wearing a preset suit and accessories to get an image with depth information. Among them, the suit is a good costume matched by professional costume designers. Accessories include headwear, earrings, necklaces, bracelets, hats, scarves and bags. In an embodiment, the 3D depth camera can achieve the effect of 3D imaging using a structured light scheme. The structured light scheme, that is, the structured light projects a specific optical information onto the surface of the object, and is collected by the camera. The information such as the position and depth of the object is calculated according to the change of the optical signal caused by the object, thereby restoring the entire three-dimensional space.
在一实施例中,获取包括深度信息的模特图像的方式有很多种,本申请实施例不作具体限定。一种方式可以是通过控制3D深度摄像头按照预设方向对身着设定搭配服饰的模特进行拍摄(包括拍摄照片或视频),得到设定数量的包括景深信息的模特图像。其中,预设方向可以是模特的前后左右四个方向。在一实施例中,3D深度摄像头的拍摄方向并不限于上述列举的四个方向,也可以是环绕模特一周进行拍摄。例如,控制3D深度摄像头由模特的前后左右四个方向 分别拍摄至少一帧模特图像。又如,控制3D深度摄像头环绕身着设定搭配服饰的模特进行视频拍摄,得到模特视频。可以采用设定的分帧策略对该模特视频进行分帧处理,得到设定数量的包括景深信息的模特图像。其中,分帧策略可以是每隔设定时间间隔提取一帧图像得到设定数量的包括景深信息的模特图像。该设定时间间隔可以是系统默认的,在一实施例中,该时间间隔越短,提取的模特图像越多,由模特图像构建的三维模型越精确。In an embodiment, there are many ways to obtain a model image including the depth information, which is not specifically limited in the embodiment of the present application. One way may be to shoot a model wearing a matching costume (including taking a photo or video) according to a preset direction by controlling the 3D depth camera to obtain a set number of model images including depth information. The preset direction may be the front, rear, left, and right directions of the model. In an embodiment, the shooting direction of the 3D depth camera is not limited to the four directions listed above, and may be taken around the model one week. For example, controlling the 3D depth camera captures at least one frame model image from the front, rear, left, and right directions of the model. In another example, the control 3D depth camera is surrounded by a model that is set to match the costume for video shooting, and a model video is obtained. The model video may be subjected to frame processing using a set framing strategy to obtain a set number of model images including depth information. The framing strategy may be: extracting one frame of image every set time interval to obtain a set number of model images including depth information. The set time interval may be system default. In an embodiment, the shorter the time interval, the more model images are extracted, and the more accurate the three-dimensional model constructed by the model image.
步骤120、根据所述模特图像构建每个模特的三维模型,并对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本。Step 120: Construct a three-dimensional model of each model according to the model image, and mark the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample.
在一实施例中,模特图像包含像素信息及景深信息,可以采用设定算法基于该模特图像构建模特的三维模型。本申请实施例对构建三维模型使用的算法并不作限定。其中,三维模型是身着由专业设计师搭配好的服饰套装及配饰的模特的人体立体模型,该人体立体模型与真实人体具有特定比例关系。In one embodiment, the model image includes pixel information and depth of field information, and a three-dimensional model of the model may be constructed based on the model image using a setting algorithm. The algorithm used in the construction of the three-dimensional model is not limited in the embodiment of the present application. Among them, the three-dimensional model is a three-dimensional model of a human body wearing a model with a professional designer and a good costume set and accessories. The stereo model of the human body has a specific proportional relationship with the real human body.
在一实施例中,体型数据包括但不限于颈围、胸围、腰围、肩宽、手臂、臀围及腿部数据。可以预先规定对三维图像中颈部设定区域的周长进行标记,实现标记颈围数据。类似的,预先规定对三维图像中手臂进行标记,实现标记手臂数据(包括臂长数据、大臂围数据及小臂围数据等)。以此类推,对腰部、肩部及腿部等部位进行标记。In one embodiment, the body shape data includes, but is not limited to, neck circumference, chest circumference, waist circumference, shoulder width, arm, hip circumference, and leg data. The circumference of the neck setting area in the three-dimensional image may be pre-defined to mark the neck circumference data. Similarly, the arm in the three-dimensional image is pre-defined to mark the arm data (including arm length data, arm circumference data, and arm circumference data, etc.). By analogy, the waist, shoulders, and legs are marked.
在一实施例中,还可以对模特身着的套装及配饰进行标记。例如,沿模特身着的衣服的轮廓对衣服进行标记。还可以沿模特佩戴的配饰的轮廓对其进行标记。此外,人工输入该套装及配饰对应的衣着风格,记为第一衣着风格。以图像矩阵的形式表示标记后的三维模型,存储该图像矩阵及第一衣着风格,作为第一图像样本。其中,衣着风格包括运动风格、优雅风格、混搭风格、田园风格及摇滚风格等。在一实施例中,为了丰富图像样本的数量,可以对套装及配饰的属性参数进行变形或调整,例如,可以调整外套长度、颜色或款式,或者对配饰进行扭曲设计等。示例性的,获取套装及配饰的调整指示,并根据该调整指示修改该三维模型对应的套装及配饰的属性参数。其中,可以获取专业设计师给出的属性调整建议,根据该属性调整建议生成调整指示。由于调整指示对应的调整对象是套装及配饰,人体模型的体型数据未变化,则可以沿用上述第一图像样本对应的标记规则,对属性参数调整后的三维模型进行标记。同时,对调整后的套装及配饰进行标记,包括但不限于沿衣服或配饰的轮廓对其进行标记,确定套装及配饰对应的图像数据。获取调整后的套装及配饰的衣着风格,作为第二衣着风格。根据标记后的三维模型(包括对体型数据进行标记及对套装、配饰进行标记)对应的图像矩阵及第二衣着风格得到第二图像样本。 在一实施例中,对套装及配饰的属性参数进行变形或调整的步骤并不是必须的,执行调整步骤可以丰富用于搭配模型训练的样本数量。In one embodiment, the suits and accessories worn by the model can also be marked. For example, the clothes are marked along the outline of the clothes worn by the model. It can also be marked along the outline of the accessories worn by the model. In addition, the clothing style corresponding to the set and accessories is manually entered, and it is recorded as the first dress style. The marked three-dimensional model is represented in the form of an image matrix, and the image matrix and the first clothing style are stored as the first image sample. Among them, the style of clothing includes sports style, elegant style, mix and match style, rural style and rock style. In an embodiment, in order to enrich the number of image samples, the attribute parameters of the suit and the accessory may be deformed or adjusted, for example, the length, color or style of the jacket may be adjusted, or the accessory may be twisted. Exemplarily, an adjustment instruction of the set and the accessory is obtained, and the attribute parameters of the set and the accessory corresponding to the three-dimensional model are modified according to the adjustment instruction. Among them, the attribute adjustment suggestion given by the professional designer can be obtained, and the adjustment instruction is generated according to the attribute adjustment suggestion. Since the adjustment target corresponding to the adjustment instruction is a suit and an accessory, and the body shape data of the human body model has not changed, the three-dimensional model whose attribute parameter is adjusted may be marked according to the marking rule corresponding to the first image sample. At the same time, the adjusted suits and accessories are marked, including but not limited to, along the outline of the garment or accessory to determine the image data corresponding to the suit and accessories. Get the style of the adjusted suit and accessories as a second style. The second image sample is obtained according to the image matrix corresponding to the marked three-dimensional model (including marking the body type data and marking the set and accessories) and the second clothing style. In an embodiment, the step of deforming or adjusting the attribute parameters of the set and accessories is not necessary, and performing the adjustment step may enrich the number of samples used for the model training.
步骤130、根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,其中,所述图像样本包括所述第一图像样本。Step 130: Train the preset depth neural network according to the image sample by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
在一实施例中,图像样本是对模特的三维模型进行标记,并对模特身着的套装和配饰对应的衣着风格进行标记得到的样本数据,包括但不限于第一图像样本。In one embodiment, the image sample is sample data that marks the three-dimensional model of the model and marks the clothing style corresponding to the suit and accessories worn by the model, including but not limited to the first image sample.
在一实施例中,设定的机器学习算法包括前向传播算法和后向传播算法。In an embodiment, the set machine learning algorithms include a forward propagation algorithm and a backward propagation algorithm.
在一实施例中,深度神经网络可以是卷积神经网络,即可以预先设置隐藏层的数目以及输入层、隐藏层和输出层中每层的节点数,以及初始化卷积神经网络的第一参数,其中,第一参数包括每层的偏置值及边的权重,初步得到卷积神经网络。在本申请实施例中,利用图像样本对预设的深度神经网络进行前向传播和后向传播两个阶段的训练;在后向传播训练计算得到的误差达到期望误差时,训练结束,得到搭配模型。示例性的,可以利用第一图像样本(包括正样本和负样本)对该卷积神经网络进行前向传播和后向传播两个阶段的训练;在后向传播训练计算得到的误差达到期望误差值的情况下,训练结束,得到搭配模型。在一实施例中,图像样本还可以包括第二图像样本,也就是说,可以利用第一图像样本及第二图像样本对卷积神经网络进行前向传播和后向传播两个阶段的训练;在后向传播训练计算得到的误差达到期望误差值时,训练结束。In an embodiment, the deep neural network may be a convolutional neural network, that is, the number of hidden layers and the number of nodes in each of the input layer, the hidden layer, and the output layer may be preset, and the first parameter of the convolutional neural network is initialized. Wherein, the first parameter includes the offset value of each layer and the weight of the edge, and the convolutional neural network is initially obtained. In the embodiment of the present application, the preset depth neural network is used to perform the two stages of forward propagation and backward propagation by using the image sample; when the error calculated by the backward propagation training reaches the expected error, the training ends and the matching is obtained. model. Exemplarily, the first image sample (including a positive sample and a negative sample) can be used to train the convolutional neural network in two stages of forward propagation and backward propagation; the error calculated in the backward propagation training reaches the expected error. In the case of the value, the training ends and the matching model is obtained. In an embodiment, the image sample may further include a second image sample, that is, the first image sample and the second image sample may be used to perform training on the convolutional neural network in two stages of forward propagation and backward propagation; The training ends when the error calculated by the backward propagation training reaches the desired error value.
在一实施例中,本申请实施例中对深度神经网络的层数、神经元的数量、卷积核和/或权重等网络参数不作限定。本申请实施例对搭配模型的构建操作的执行主体也不进行限制,可以是服务器也可以是移动终端。In an embodiment, network parameters such as the number of layers of the deep neural network, the number of neurons, the convolution kernel, and/or the weight are not limited in the embodiment of the present application. The embodiment of the present application does not limit the execution body of the collocation model construction operation, and may be a server or a mobile terminal.
本实施例的技术方案,通过获取设定数量的包括景深信息的模特图像;根据该模特图像构建每个模特的三维模型,并对该三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本;根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,可以使该搭配模型具备基于体型数据及服饰风格推荐服饰搭配方案的功能。采用上述技术方案可以解决相关技术提供的服饰搭配方案智能程度受限的问题,可以提供达到用户预期效果的服饰推荐建议,提升了服饰推荐功能的智能性及精确度。The technical solution of the embodiment obtains a set number of model images including depth information; constructs a three-dimensional model of each model according to the model image, and marks the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain the first Image samples; according to the image samples, the preset deep neural network is trained by using a set machine learning algorithm to obtain a matching model, which can make the matching model have the function of recommending the clothing matching scheme based on the body data and the clothing style. The above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
实施例二Embodiment 2
图2是本申请实施例提供的一种服饰推荐方法的流程图。该方法可以由服饰推荐装置执行,其中,该装置可由软件和/或硬件实现,一般可集成在移动终端中,如具有3D深度摄像头的移动终端。如图2所示,该方法包括:FIG. 2 is a flowchart of a clothing recommendation method according to an embodiment of the present application. The method can be performed by a clothing recommendation device, wherein the device can be implemented by software and/or hardware, and can generally be integrated into a mobile terminal, such as a mobile terminal having a 3D depth camera. As shown in Figure 2, the method includes:
步骤210、获取至少一帧用户图像及用户的衣着风格信息。Step 210: Acquire at least one frame of the user image and the user's clothing style information.
在一实施例中,用户图像可以是通过3D深度摄像头拍摄的包括景深信息的图像,还可以是图片库中的历史图像。衣着风格信息为衣着风格的类型信息,包括但不限于运动风格、优雅风格、混搭风格、田园风格及摇滚风格。In an embodiment, the user image may be an image including depth of field information captured by a 3D depth camera, and may also be a historical image in a picture library. Clothing style information is the type of clothing style, including but not limited to sports style, elegance, mix and match, pastoral style and rock style.
在一实施例中,移动终端对用户图像的获取操作可以由移动终端的系统执行,或者由移动终端中含有拍摄功能的任意应用软件执行,获取用户图像的操作可以在用户的操作指示下由系统或应用软件执行。例如,当服饰推荐功能启动时,输出衣着风格询问信息,包括显示选择对话框,提示用户输入衣着风格。其中,用户输入衣着风格的方式可以是手动输入或者由选择对话框中列举的衣着风格选项中选择。获取用户输入的衣着风格信息,并提示用户输入至少一帧用户图像。例如,可以在检测到用户输入的衣着风格信息的情况下,触发摄像头启动事件,以提示用户通过摄像头拍摄至少一帧用户图像。根据用户输入的拍摄指示,控制3D深度摄像头拍摄用户图像。又如,可以在检测到用户输入的衣着风格信息的情况下,显示提示信息,以询问用户选择执行如下操作:由图片库中选择至少一帧用户历史图像,或者控制摄像头拍摄至少一帧用户图像,根据用户输入的操作指示确定执行何种操作(包括控制3D深度摄像头拍摄用户图像,或者,由图片库中获取用户图像)。In an embodiment, the operation of acquiring the image of the user by the mobile terminal may be performed by a system of the mobile terminal or by any application software having a shooting function in the mobile terminal, and the operation of acquiring the image of the user may be performed by the system under the operation instruction of the user. Or application software to execute. For example, when the clothing recommendation function is activated, the clothing style inquiry information is output, including a display selection dialog box, prompting the user to input the clothing style. Among them, the way the user enters the clothing style can be manually entered or selected by the clothing style options listed in the selection dialog box. The clothing style information input by the user is obtained, and the user is prompted to input at least one frame of the user image. For example, a camera activation event may be triggered to detect a user-entered clothing style information to prompt the user to capture at least one frame of the user image through the camera. The 3D depth camera is controlled to take a user image according to a shooting instruction input by the user. For another example, in the case that the clothing style information input by the user is detected, the prompt information may be displayed to ask the user to select to perform the following operations: selecting at least one frame of the user history image from the picture library, or controlling the camera to capture at least one frame of the user image. According to the operation instruction input by the user, it is determined which operation is performed (including controlling the 3D depth camera to capture the user image, or acquiring the user image from the picture library).
步骤220、根据所述用户图像确定对应的人体模型。Step 220: Determine a corresponding human body model according to the user image.
在一实施例中,人体模型是预先通过3D深度摄像头采集模特人体信息构建的三维模型。构建三维模型的方式有很多种,本申请实施例并不作具体限定。例如,当初始化服饰推荐功能时,通过3D深度摄像头由预设方向对用户进行拍摄,得到第一深度图像。其中,由预设方向对用户进行拍摄至少是沿用户的前后左右四个方向分别拍摄至少一帧用户图像,即得到至少四帧第一深度图像。可以根据该第一深度图像采用特定三维模型构建算法构建用户的人体模型。本申请实施例对三维模型构建算法的选择并不作具体限定,例如,三维模型构建算法可以是轮廓检测的相关算法以及三维纹理贴图算法等。又如,当初始化服饰推荐功能时,控制3D深度摄像头环绕用户至少一周,并进行视频录制,得到用户视频。可以采用特定分帧策略对该用户视频进行分帧处理,得到多帧沿360度圆周上设定角度拍摄的用户图像,可以记为第二深度图像。相似的,可以根据该第二深度图像采用特定三维模型构建算法构建用户的人体模型。In one embodiment, the human body model is a three-dimensional model constructed by acquiring model body information in advance through a 3D depth camera. There are many ways to construct a three-dimensional model, and the embodiments of the present application are not specifically limited. For example, when the clothing recommendation function is initialized, the user is photographed by the 3D depth camera from the preset direction to obtain a first depth image. The user is photographed by the preset direction to capture at least one frame of the user image in at least four directions of the user's front, back, left, and right directions, that is, at least four frames of the first depth image are obtained. A user's human body model can be constructed using a specific three-dimensional model building algorithm based on the first depth image. The selection of the three-dimensional model construction algorithm is not specifically limited in the embodiment of the present application. For example, the three-dimensional model construction algorithm may be a correlation detection algorithm and a three-dimensional texture mapping algorithm. For another example, when the clothing recommendation function is initialized, the 3D depth camera is controlled to surround the user for at least one week, and video recording is performed to obtain a user video. The user video may be framed by a specific framing strategy to obtain a user image of a plurality of frames taken at a set angle on a 360 degree circumference, which may be recorded as a second depth image. Similarly, the user's human body model can be constructed using a specific three-dimensional model construction algorithm according to the second depth image.
在一实施例中,还可以提取用户的虹膜信息,将该虹膜信息与人体模型关联存储于人体模型集合中。In an embodiment, the iris information of the user may also be extracted, and the iris information is stored in the human body model set in association with the human body model.
在一实施例中,上述人体模型构建操作为服饰推荐方案的设置步骤,当初 始化服饰推荐功能时执行,并存储构建好的人体模型于移动终端。在一实施例中,服饰推荐功能还提供人体模型更新功能,用户可以通过该人体模型更新功能增加、修改或删除已存储的人体模型。In one embodiment, the human body model building operation is a setting step of the clothing recommendation scheme, which is executed when the clothing recommendation function is initialized, and stores the constructed human body model on the mobile terminal. In an embodiment, the apparel recommendation function also provides a human body model update function by which the user can add, modify, or delete the stored human body model.
在本申请实施例中,当检测到服饰推荐功能开启时,获取用户图像,提取该用户图像中预设特征点,并根据该预设特征点确定用户图像的脸部特征信息。其中,预设特征点可以是系统默认的,可以标识用户身份的特征点,例如,虹膜对应的像素点或眼睛、鼻子及嘴巴等对应的像素点。也就是说,可以提取用户图像中虹膜对应的像素点,根据该像素点确定用户图像的虹膜信息。在一实施例中,还可以分别提取用户图像中眼睛、鼻子和嘴巴对应的像素点,从而,确定用户图像中眼睛轮廓、鼻子轮廓及嘴巴轮廓,以根据眼睛轮廓、鼻子轮廓及嘴巴轮廓生成用户画像。In the embodiment of the present application, when detecting that the clothing recommendation function is enabled, the user image is acquired, the preset feature point in the user image is extracted, and the facial feature information of the user image is determined according to the preset feature point. The preset feature point may be a system default, and may identify a feature point of the user identity, for example, a pixel corresponding to the iris or a corresponding pixel such as an eye, a nose, and a mouth. That is to say, the pixel corresponding to the iris in the user image can be extracted, and the iris information of the user image is determined according to the pixel. In an embodiment, pixels corresponding to eyes, noses, and mouths in the user image may also be separately extracted, thereby determining eye contours, nose contours, and mouth contours in the user image to generate users according to eye contours, nose contours, and mouth contours. portrait.
在一实施例中,用户可能在同一移动终端内存储不止一个用户的人体模型。通过脸部特征信息查询人体模型集合,可以确定与该用户图像对应的人体模型。例如,可以根据虹膜信息由预先构建的人体模型集合中筛选出用户图像对应的人体模型。又如,可以根据眼睛轮廓、鼻子轮廓及嘴巴轮廓构建用户画像,根据该用户画像筛选出用户图像对应的人体模型。In an embodiment, the user may store more than one user's mannequin within the same mobile terminal. The human body model set corresponding to the user image can be determined by querying the human body model set by the facial feature information. For example, the human body model corresponding to the user image may be selected from the pre-built set of human body models according to the iris information. For another example, a user portrait can be constructed based on the contour of the eye, the contour of the nose, and the contour of the mouth, and the human body model corresponding to the user image can be filtered according to the user image.
在一实施例中,本申请实施例还可以无需预先构建用户的人体模型,而是根据至少一帧用户图像生成人体模型。In an embodiment, the embodiment of the present application may further generate a human body model according to at least one frame of the user image without constructing a human body model of the user in advance.
步骤230、将所述人体模型及所述衣着风格信息输入预先配置的搭配模型,获取所述搭配模型输出的服饰搭配建议。Step 230: Input the human body model and the clothing style information into a pre-configured matching model, and obtain a clothing matching suggestion output by the matching model.
在一实施例中,搭配模型为根据预设的图像样本训练的深度学习模型,其中,对设定模特的体型数据、套装及配饰进行标记得到图像样本。设定模特可以是本申请实施例记载的不同体型、不同性别及不同年龄的模特,且模特身着由专业服饰设计人员搭配的套装及配饰。该搭配模型可以是卷积神经网络模型。本申请实施例中对该搭配模型的层数、神经元的数量、卷积核和/或权重等网络参数不作限定。In one embodiment, the collocation model is a deep learning model trained according to preset image samples, wherein the model data of the set model is marked to obtain image samples. The model can be a model of different body types, different genders and different ages as described in the embodiments of the present application, and the model is wearing a suit and accessories matched by professional costume designers. The collocation model can be a convolutional neural network model. In the embodiment of the present application, network parameters such as the number of layers of the collocation model, the number of neurons, the convolution kernel, and/or the weight are not limited.
在一实施例中,服饰搭配建议包括服装种类建议、鞋子搭配建议及搭配的饰品的建议等。In one embodiment, the apparel matching suggestions include clothing type suggestions, shoe matching suggestions, and suggestions for matching accessories.
在本申请实施例中,将用户图像对应的人体模型对应的矩阵数据及用户选择的衣着风格输入搭配模型,通过搭配模型提取该人体模型对应的体型数据,结合该衣着风格,确定与用户体型数据及衣着风格匹配的服饰搭配建议及与每个服饰搭配建议对应的概率值,输出服饰搭配建议及概率值。在一实施例中,由于搭配模型由图像样本训练得到,而图像样本包括已标记的模特三维模型对 应的图像矩阵及该套装及配饰对应的衣着风格,所以,根据该搭配模型,基于人体模型及用户选择的衣着风格,可以提供与用户的体型数据及衣着风格相匹配的服饰搭配建议。示例性的,用户拍摄一帧自拍照,并输入衣着风格为运动风格,则可以采用本申请实施例中的搭配模型提供服饰搭配建议。在一实施例中,获取用户图像及衣着风格,根据该用户图像确定对应的人体模型。将人体模型对应的矩阵数据及衣着风格输入搭配模型,获取该搭配模型输出的服饰搭配建议。In the embodiment of the present application, the matrix data corresponding to the human body model corresponding to the user image and the clothing style selected by the user are input into the matching model, and the body shape data corresponding to the human body model is extracted by the matching model, and the clothing style is determined, and the body shape data is determined. And clothing style matching clothing matching suggestions and the probability value corresponding to each clothing matching suggestion, output clothing matching suggestions and probability values. In an embodiment, since the collocation model is trained by the image sample, and the image sample includes the image matrix corresponding to the marked model three-dimensional model and the clothing style corresponding to the set and the accessory, according to the collocation model, based on the human body model and The clothing style chosen by the user can provide clothing matching suggestions that match the user's body shape data and clothing style. For example, if the user takes a self-photograph of a frame and enters a clothing style as a sports style, the matching model in the embodiment of the present application may be used to provide clothing matching suggestions. In an embodiment, the user image and the clothing style are acquired, and the corresponding human body model is determined according to the user image. The matrix data corresponding to the human body model and the clothing style are input and matched with the model, and the clothing matching suggestions output by the matching model are obtained.
在一实施例中,可以根据该概率值对服饰搭配建议进行降序排列,输出排序在前的设定数量的服饰搭配建议及对应的概率值。In an embodiment, the clothing matching suggestions may be arranged in descending order according to the probability value, and the preset number of clothing matching suggestions and corresponding probability values are outputted.
步骤240、展示所述服饰搭配建议。Step 240: Display the clothing matching suggestion.
示例性的,该服饰搭配建议的展示方式可以是文字描述的方式,可以直接以对话框的形式展示服饰搭配建议对应的文字描述,服饰推荐建议的展示方式并不限于上述列举的方式。例如,还可以以二维或三维图像的形式展示服饰搭配建议对应的服装套装及饰品。又如,还可以展示预设模特身着该服饰搭配建议对应的服装及佩戴该服饰搭配建议对应的饰品的效果图。Illustratively, the display manner of the clothing matching suggestion may be a text description manner, and the text description corresponding to the clothing matching suggestion may be directly displayed in the form of a dialog box, and the display manner of the clothing recommendation suggestion is not limited to the above enumerated manner. For example, it is also possible to display the clothing suits and accessories corresponding to the clothing matching suggestions in the form of two-dimensional or three-dimensional images. For example, it is also possible to display an effect picture of the preset model wearing the clothing corresponding to the clothing and the accessory corresponding to the recommendation.
本实施例的技术方案,通过获取至少一帧用户图像及用户输入的衣着风格信息;根据该用户图像确定对应的人体模型;将该人体模型及衣着风格信息输入预先配置的搭配模型,获取该搭配模型输出的服饰搭配建议;展示该服饰搭配建议,可以根据该搭配模型确定与用户的人体模型对应的体型数据及用户选择的衣着风格对应的服饰搭配建议。采用上述技术方案可以解决相关技术提供的服饰搭配方案智能程度受限的问题,可以提供达到用户预期效果的服饰推荐建议,提升了服饰推荐功能的智能性及精确度。The technical solution of the embodiment obtains at least one frame of the user image and the clothing style information input by the user; determines a corresponding human body model according to the user image; and inputs the human body model and the clothing style information into a pre-configured matching model to obtain the matching The clothing output suggestion of the model output; display the clothing matching suggestion, according to the matching model, the body shape data corresponding to the user's human body model and the clothing matching suggestion corresponding to the clothing style selected by the user may be determined. The above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
实施例三Embodiment 3
图3是本申请实施例提供的另一种服饰推荐方法的流程图。如图3所示,该方法包括:FIG. 3 is a flowchart of another clothing recommendation method provided by an embodiment of the present application. As shown in FIG. 3, the method includes:
步骤310、当检测到服饰推荐功能启动时,获取至少一帧用户图像及用户的衣着风格信息。Step 310: When detecting that the apparel recommendation function is activated, acquiring at least one frame of the user image and the user's clothing style information.
示例性的,可以在相机应用中添加服饰推荐功能开关,当检测到用户输入的开启指示时,开启该服饰推荐功能开关。在检测到服饰推荐功能开关已开启的情况下,提示用户拍摄至少一帧用户图像。在一实施例中,可以在预览界面中显示目标框,以提供用户在拍摄时使人脸落入该目标框内,以确保拍摄到用户脸部。在拍摄到用户图像后,显示询问对话框以提示用户输入衣着风格询问信息。检测该询问对话框以获取用户输入的衣着风格信息。For example, the clothing recommendation function switch may be added in the camera application, and when the opening instruction of the user input is detected, the clothing recommendation function switch is turned on. When it is detected that the clothing recommendation function switch is turned on, the user is prompted to take at least one frame of the user image. In an embodiment, the target frame may be displayed in the preview interface to provide the user with the face falling into the target frame during shooting to ensure that the user's face is captured. After the user image is captured, a query dialog box is displayed to prompt the user to enter the clothing style inquiry information. The inquiry dialog is detected to obtain the clothing style information input by the user.
在一实施例中,移动终端还可以提供能够实现服饰推荐功能的应用程序,当检测到该应用程序启动时,显示询问对话框以提示用户输入衣着风格信息。当检测到用户输入的衣着风格信息时,将该衣着风格信息存储于预设存储空间。移动终端控制摄像头拍摄至少一帧用户图像。In an embodiment, the mobile terminal may further provide an application capable of implementing a clothing recommendation function, and when detecting that the application is started, displaying a query dialog box to prompt the user to input clothing style information. When the clothing style information input by the user is detected, the clothing style information is stored in the preset storage space. The mobile terminal controls the camera to capture at least one frame of the user image.
步骤320、提取所述用户图像中的预设特征点,并根据所述预设特征点确定所述用户图像的脸部特征信息。Step 320: Extract a preset feature point in the user image, and determine facial feature information of the user image according to the preset feature point.
步骤330、根据所述脸部特征信息由预先构建的人体模型集合中筛选所述用户图像对应的人体模型。Step 330: Filter, according to the facial feature information, a human body model corresponding to the user image from a pre-built set of human body models.
步骤340、将所述人体模型及所述衣着风格信息输入预先配置的搭配模型,获取所述搭配模型输出的服饰搭配建议。Step 340: Input the human body model and the clothing style information into a pre-configured matching model, and obtain a clothing matching suggestion output by the matching model.
步骤350、由预设的服饰数据库中查找与所述服饰搭配建议中的风格和尺码匹配的服饰模型,并显示所述服饰模型。Step 350: Find an apparel model matching the style and size in the apparel matching suggestion from a preset apparel database, and display the apparel model.
在一实施例中,预设的服饰数据库可以是存储有服装及配饰的图片数据的数据库,且在数据库中图片数据与描述数据关联存储。其中,描述数据是对服装及配饰的特性进行说明的字符,包括但不限于衣服或饰品的尺寸、颜色或款式等属性。该预设的服饰数据库内的图片数据可以是通过网络爬虫从网络平台图片库中获取的服装及配饰的图片数据。在一实施例中,该服饰数据库还可以是用户对自己拥有的服装及配饰进行拍照,由用户自己衣橱内的服装及配饰构成的数据库等等。例如,可以采用3D深度摄像头由预设方向拍摄衣服及配饰的照片,根据拍摄得到的衣服及配饰的照片构建服饰模型,将服饰模型存储于服饰数据库。In an embodiment, the preset apparel database may be a database storing image data of clothing and accessories, and the image data is stored in association with the description data in the database. The description data is a character that describes the characteristics of the clothing and accessories, including but not limited to the size, color or style of the clothes or accessories. The picture data in the preset clothing database may be picture data of clothing and accessories obtained from the network platform picture library through the web crawler. In an embodiment, the clothing database may also be a photo of a user's own clothing and accessories, a database of clothing and accessories in the user's own wardrobe, and the like. For example, a 3D depth camera can be used to take photographs of clothes and accessories from a preset direction, and a costume model can be constructed based on the photographs of the photographed clothes and accessories, and the costume model is stored in the clothing database.
根据服饰搭配建议由预设的服饰数据库中查找对应的服饰模型。在一实施例中,将服饰搭配建议与描述数据进行匹配,确定与该服饰搭配建议中风格与尺码匹配的服饰模型,显示该服饰模型,在一实施例中,可以按照服饰搭配建议对应的概率值确定服饰模型的显示顺序,即优先显示概率值较高的服饰搭配建议对应的服饰模型。在一实施例中,根据所述服饰模型及人体模型渲染得到穿着有被推荐服饰的用户模型,并显示所述用户模型,呈现用户自己身着搭配好的衣服及配饰的效果。According to the clothing matching suggestion, the corresponding clothing model is searched from the preset clothing database. In an embodiment, the clothing matching suggestion is matched with the description data, and the clothing model matching the style and the size in the clothing matching suggestion is determined, and the clothing model is displayed. In an embodiment, the probability corresponding to the clothing matching suggestion may be displayed. The value determines the display order of the clothing model, that is, the clothing model corresponding to the clothing matching suggestion with higher probability value is preferentially displayed. In one embodiment, a user model wearing the recommended apparel is rendered according to the apparel model and the human body model, and the user model is displayed to present the effect of the user wearing the matched clothes and accessories.
在一实施例中,预设的服饰数据库并不限于预先配置于移动终端内的数据库,还可以是网购平台的数据库。例如,网购平台可以提供三维服饰模型数据,移动终端通过调用网络平台提供的应用程序编程接口(Application Programming Interface,API)获取三维模型数据。在一实施例中,还可以在显示所述服饰模型的同时,显示服饰模型对应的链接地址,即如果服饰模型是一套运动装,则 可以根据销量确定该运动装对应的链接地址的显示顺序。In an embodiment, the preset clothing database is not limited to a database pre-configured in the mobile terminal, and may also be a database of the online shopping platform. For example, the online shopping platform can provide three-dimensional clothing model data, and the mobile terminal acquires three-dimensional model data by calling an application programming interface (API) provided by the network platform. In an embodiment, the link address corresponding to the clothing model may be displayed while the clothing model is displayed, that is, if the clothing model is a set of sportswear, the display order of the link address corresponding to the sportswear may be determined according to the sales volume. .
步骤360、获取用户输入的针对所述用户模型的调整操作。Step 360: Acquire an adjustment operation input by the user for the user model.
在一实施例中,由推荐模型输出的服饰推荐建议是符合专业设计人员审美的建议,但并不一定能达到了用户对服饰效果的预期。鉴于上述考虑,本申请实施例还可以提供服饰微调功能。即在移动终端展示身着服饰推荐建议对应的服饰的用户模型,并检测用户输入的针对该用户模型的调整操作。其中,调整操作可以包括针对服装长度、颜色或配饰的更新指示。例如,用户点击裤子对应的像素点,并在裤子上添加做旧效果。又如,用户点击头饰,修改头饰的数量等。In an embodiment, the apparel recommendation recommendation output by the recommendation model is in line with the professional designer's aesthetic suggestion, but does not necessarily achieve the user's expectation of the costume effect. In view of the above considerations, the embodiment of the present application can also provide a clothing fine-tuning function. That is, the user model of the costume corresponding to the apparel recommendation is displayed on the mobile terminal, and the adjustment operation input by the user for the user model is detected. Wherein, the adjustment operation may include an update indication for the length, color or accessory of the garment. For example, the user clicks on the pixel corresponding to the trousers and adds a worn effect to the trousers. Another example is that the user clicks on the headwear, modifies the number of headwear, and the like.
在本申请实施例中,在显示身着服饰推荐建议对应的服饰模型的用户模型时,获取针对用户模型的用户操作。当检测到用户操作时,判断该用户操作的操作对象是否是针对服装或饰品。若是,则展示服饰或配饰的属性界面,以供用户修改属性数据。获取修改后的新的属性数据,根据新的属性数据生成调整操作。In the embodiment of the present application, when displaying the user model of the clothing model corresponding to the clothing recommendation suggestion, the user operation for the user model is acquired. When a user operation is detected, it is determined whether the operation object operated by the user is for clothing or accessories. If so, the property interface of the apparel or accessory is displayed for the user to modify the attribute data. Obtain the modified new attribute data and generate an adjustment operation based on the new attribute data.
步骤370、根据所述调整操作修改所述用户模型的服饰参数,显示修改后的新的用户模型。Step 370: Modify the apparel parameter of the user model according to the adjustment operation, and display the modified new user model.
其中,服饰参数包括颜色、长度、款式等属性数据。Among them, the clothing parameters include attribute data such as color, length, and style.
根据调整操作对应的属性数据更新服饰或配饰的服饰参数,显示修改后的新的用户模型,以展示用户调整后的服装及配饰效果。The apparel parameters of the apparel or accessories are updated according to the attribute data corresponding to the adjustment operation, and the modified new user model is displayed to display the adjusted clothing and accessories effects.
在一实施例中,还可以提醒用户标记修改后的服装及配饰对应的衣着风格,作为一条对搭配模型输出的服饰搭配建议的调整记录,并保存用户对搭配模型输出的服饰搭配建议的调整记录。在调整记录超过设定阈值的情况下,将该衣着风格以及身着修改后的服饰的用户模型对应的矩阵数据输入搭配模型,以更新搭配模型。这样设计可以使搭配模型参考用户偏好进行服饰推荐,能够更好的满足用户的个性化需求。In an embodiment, the user may also be reminded to mark the clothing style corresponding to the modified clothing and accessories, as an adjustment record of the clothing matching suggestions outputted by the matching model, and save the adjustment record of the user's clothing matching suggestions output by the matching model. . When the adjustment record exceeds the set threshold, the clothing style and the matrix data corresponding to the user model wearing the modified costume are input into the matching model to update the matching model. This design allows the matching model to refer to the user's preferences for apparel recommendation, which can better meet the individual needs of users.
在一实施例中,还可以根据新的用户模型查询网络平台,确定与该新的用户模型中服装或配饰对应的商品链接地址,以缩短用户在网上购物所耗费的时间,提升了用户的网购体验。In an embodiment, the network platform may be queried according to the new user model, and the product link address corresponding to the clothing or accessories in the new user model is determined, so as to shorten the time spent by the user on the online shopping, and the online shopping of the user is improved. Experience.
本实施例的技术方案,通过服饰搭配建议确定服饰模型,并根据服饰模型及人体模型渲染得到穿着有被推荐服饰的用户模型,显示该用户模型,以呈现用户自己试穿服饰搭配建议对应的被推荐服饰的效果;还可以提供检测用户输入的针对用户模型的调整操作,以满足用户个性化的服饰搭配需求。In the technical solution of the embodiment, the clothing model is determined through the clothing matching suggestion, and the user model wearing the recommended clothing is rendered according to the clothing model and the human body model, and the user model is displayed to present the user corresponding to the clothing matching suggestion correspondingly. The effect of the recommended apparel; the adjustment operation for the user model that detects the user input can also be provided to meet the user's personalized clothing matching needs.
实施例四Embodiment 4
图4是本申请实施例提供的一种搭配模型构建装置的结构示意图。该装置可以通过软件和/或硬件实现,设置为执行本申请实施例提供的搭配模型构建方法。如图4所示,该装置包括:FIG. 4 is a schematic structural diagram of a collocation model construction apparatus according to an embodiment of the present application. The apparatus may be implemented by software and/or hardware and configured to perform the collocation model construction method provided by the embodiment of the present application. As shown in Figure 4, the device comprises:
图像获取模块410,设置为获取设定数量的包括景深信息的模特图像,其中,所述设定数量的模特图像中的模特身着预设的套装和配饰;The image obtaining module 410 is configured to acquire a set number of model images including depth information, wherein the models in the set number of model images are wearing preset sets and accessories;
样本确定模块420,设置为根据所述模特图像构建每个模特的三维模型,并对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本;The sample determination module 420 is configured to construct a three-dimensional model of each model according to the model image, and mark the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample;
模型训练模块430,设置为根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,其中,所述图像样本包括所述第一图像样本。The model training module 430 is configured to train the preset depth neural network according to the image sample by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
本实施例的技术方案提供一种搭配模型构建装置,具备基于体型数据及服饰风格推荐服饰搭配方案的功能。采用上述技术方案可以解决相关技术提供的服饰搭配方案智能程度受限的问题,可以提供达到用户预期效果的服饰推荐建议,提升了服饰推荐功能的智能性及精确度。The technical solution of the embodiment provides a collocation model construction device, and has the function of recommending a clothing collocation scheme based on the body type data and the clothing style. The above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
在一实施例中,所述设定数量的模特图像为模特的体型、性别和年龄中的至少一项不同的多个模特图像。In an embodiment, the set number of model images is a plurality of model images different from at least one of a body shape, a gender, and an age of the model.
在一实施例中,图像获取模块410是设置为:In an embodiment, the image acquisition module 410 is configured to:
控制3D深度摄像头按照预设方向对身着设定搭配服饰的模特进行拍摄,得到设定数量的包括景深信息的模特图像。The 3D depth camera is controlled to shoot a model wearing the matching costume according to a preset direction, and a set number of model images including depth information is obtained.
在一实施例中,图像获取模块410是设置为:In an embodiment, the image acquisition module 410 is configured to:
控制3D深度摄像头环绕所述身着设定搭配服饰的模特进行视频拍摄,得到模特视频;Controlling the 3D depth camera to perform video shooting around the model wearing the matching costume, and obtaining a model video;
采用设定的分帧策略对所述模特视频进行分帧处理,得到设定数量的包括景深信息的模特图像。The model video is subjected to frame processing by using a set framing strategy to obtain a set number of model images including depth information.
在一实施例中,样本确定模块420是设置为:In an embodiment, the sample determination module 420 is configured to:
对所述三维模型的颈围、胸围、腰围、肩宽、手臂、臀围及腿部进行标记;Marking the neck circumference, chest circumference, waist circumference, shoulder width, arms, hips and legs of the three-dimensional model;
对所述套装和配饰进行标记,并标记所述套装及配饰对应的第一衣着风格;Marking the set and accessories and marking the first dress style corresponding to the set and accessories;
根据标记后的三维模型对应的图像矩阵及所述第一衣着风格得到第一图像样本。The first image sample is obtained according to the image matrix corresponding to the marked three-dimensional model and the first clothing style.
在一实施例中,该装置还包括:In an embodiment, the apparatus further comprises:
附加样本确定模块,设置为在对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本之后,获取套装及配饰的调整指示,并根据所述调整指示修改所述三维模型对应的套装及配饰的属性参数;对修改后的套装及 配饰进行标记,并标记所述修改后的套装及配饰对应的第二衣着风格;根据修改属性参数后的三维模型对应的图像矩阵及第二衣着风格得到第二图像样本。An additional sample determining module is configured to obtain an adjustment instruction of the package and the accessory after marking the body shape data, the suit, and the accessory corresponding to the three-dimensional model to obtain the first image sample, and modify the corresponding three-dimensional model according to the adjustment instruction The set parameters of the suit and accessories; mark the modified set and accessories, and mark the second dress style corresponding to the modified set and accessories; the image matrix corresponding to the 3D model after modifying the attribute parameters and the second A second image sample is obtained in the style of clothing.
在一实施例中,模型训练模块430是设置为:In an embodiment, the model training module 430 is configured to:
利用图像样本对预设的深度神经网络进行前向传播和后向传播两个阶段的训练;Using the image samples to train the preset deep neural network in two stages of forward propagation and backward propagation;
在所述后向传播训练计算得到的误差达到期望误差值时,训练结束,并得到搭配模型。When the error calculated by the backward propagation training reaches the expected error value, the training ends and a matching model is obtained.
实施例五Embodiment 5
图5是本申请实施例提供的一种服饰推荐装置的结构示意图。该装置可以通过软件和/或硬件实现,可被集成于具有3D深度摄像头的移动终端内,设置为执行服饰推荐操作。如图5所示,该装置包括:FIG. 5 is a schematic structural diagram of a clothing recommendation device according to an embodiment of the present application. The apparatus may be implemented by software and/or hardware and may be integrated into a mobile terminal having a 3D depth camera configured to perform a clothing recommendation operation. As shown in Figure 5, the device includes:
信息获取模块510,设置为获取至少一帧用户图像及用户的衣着风格信息;The information acquiring module 510 is configured to acquire at least one frame of the user image and the user's clothing style information;
人体模型确定模块520,设置为根据所述用户图像确定对应的人体模型;The human body model determining module 520 is configured to determine a corresponding human body model according to the user image;
搭配建议确定模块530,设置为将所述人体模型及所述衣着风格信息输入预先配置的搭配模型,获取所述搭配模型输出的服饰搭配建议,其中,所述搭配模型为根据预设的图像样本训练的深度学习模型,且该图像样本根据对设定模特的体型数据、套装及配饰进行标记得到;The collocation suggestion module 530 is configured to input the human body model and the clothing style information into a pre-configured collocation model, and obtain a clothing collocation suggestion outputted by the collocation model, wherein the collocation model is based on a preset image sample. a deep learning model of the training, and the image sample is obtained by marking the body type data, the set and the accessories of the set model;
搭配建议展示模块540,设置为展示所述服饰搭配建议。The suggestion display module 540 is arranged to display the clothing matching suggestion.
本实施例的技术方案提供一种服饰推荐装置,可以根据该搭配模型确定与用户的人体模型对应的体型数据及用户选择的衣着风格对应的服饰搭配建议。采用上述技术方案可以解决相关技术提供的服饰搭配方案智能程度受限的问题,可以提供达到用户预期效果的服饰推荐建议,提升了服饰推荐功能的智能性及精确度。The technical solution of the embodiment provides a clothing recommendation device, and the body shape data corresponding to the human body model of the user and the clothing matching proposal corresponding to the clothing style selected by the user may be determined according to the collocation model. The above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
在一实施例中,信息获取模块510是设置为:In an embodiment, the information acquisition module 510 is configured to:
当检测到服饰推荐功能启动时,输出衣着风格询问信息;When the clothing recommendation function is detected to be activated, the clothing style inquiry information is output;
获取用户输入的衣着风格信息,并提示所述用户输入至少一帧用户图像;Obtaining clothing style information input by the user, and prompting the user to input at least one frame of the user image;
根据所述用户输入的操作指示,控制3D深度摄像头拍摄用户图像,或者,由图片库中获取用户图像。The 3D depth camera is controlled to capture a user image according to the operation instruction input by the user, or the user image is acquired from the picture library.
在一实施例中,人体模型确定模块520是设置为:In an embodiment, the mannequin determination module 520 is configured to:
提取所述用户图像中的预设特征点,并根据所述预设特征点确定所述用户图像的脸部特征信息;Extracting a preset feature point in the user image, and determining facial feature information of the user image according to the preset feature point;
根据所述脸部特征信息由预先构建的人体模型集合中筛选所述用户图像对应的人体模型。The human body model corresponding to the user image is filtered from the pre-built set of human body models according to the facial feature information.
在一实施例中,搭配建议展示模块540是设置为:In an embodiment, the collocation suggestion module 540 is configured to:
在预设的服饰数据库中查找与所述服饰搭配建议中风格与尺码匹配的服饰模型,并显示所述服饰模型。Finding an apparel model matching the style and size in the clothing matching suggestion in the preset clothing database, and displaying the clothing model.
在一实施例中,搭配建议展示模块540是设置为:In an embodiment, the collocation suggestion module 540 is configured to:
根据所述服饰模型及人体模型渲染得到穿着有被推荐服饰的用户模型,并显示所述用户模型。A user model wearing the recommended clothing is rendered according to the clothing model and the human body model, and the user model is displayed.
在一实施例中,该装置还包括:In an embodiment, the apparatus further comprises:
服饰参数调整模块,设置为在显示所述用户模型之后,获取用户针对所述用户模型输入的调整操作;根据所述调整操作修改所述用户模型的服饰参数,显示修改后的新的用户模型。The clothing parameter adjustment module is configured to: after displaying the user model, acquire an adjustment operation input by the user for the user model; modify the clothing parameter of the user model according to the adjustment operation, and display the modified new user model.
在一实施例中,所述服饰搭配建议包括下述至少一项:服装种类搭配建议、鞋子搭配建议及饰品搭配建议。In an embodiment, the clothing matching suggestion includes at least one of the following: a clothing type matching suggestion, a shoe matching suggestion, and a jewelry matching suggestion.
实施例六Embodiment 6
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种搭配模型构建方法,该方法包括:The embodiment of the present application further provides a storage medium including computer executable instructions for executing a collocation model construction method when executed by a computer processor, the method comprising:
获取设定数量的包括景深信息的模特图像,其中,所述设定数量的模特图像中的模特身着预设的套装和配饰;Acquiring a set number of model images including depth of field information, wherein the models in the set number of model images are wearing preset sets and accessories;
根据所述模特图像构建每个模特的三维模型,并对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本;Constructing a three-dimensional model of each model according to the model image, and marking the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample;
根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,其中,所述图像样本包括所述第一图像样本。According to the image sample, the preset depth neural network is trained by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
在一实施例中,本申请实施例还提供另一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种服饰推荐方法,该方法包括:In an embodiment, the embodiment of the present application further provides another storage medium including computer executable instructions for executing a clothing recommendation method when executed by a computer processor, the method comprising:
获取至少一帧用户图像及用户的衣着风格信息;Obtaining at least one frame of the user image and the user's clothing style information;
根据所述用户图像确定对应的人体模型;Determining a corresponding human body model according to the user image;
将所述人体模型及所述衣着风格信息输入预先配置的搭配模型,获取所述搭配模型输出的服饰搭配建议,其中,所述搭配模型为根据预设的图像样本训练的深度学习模型,且该图像样本根据对设定模特的体型数据、套装及配饰进行标记得到;Entering the human body model and the clothing style information into a pre-configured collocation model, and obtaining a clothing matching suggestion output by the collocation model, wherein the collocation model is a deep learning model trained according to a preset image sample, and the The image sample is obtained by marking the body type data, the set and the accessories of the set model;
展示所述服饰搭配建议。Show the clothing matching suggestions.
存储介质——任何的一种或多种类型的存储器设备或存储设备。术语“存 储介质”旨在包括:安装介质,例如光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如动态随机存取存储器(Dynamic Random Access Memory,DRAM)、(Double Data Rate Random Access Memory,DDR RAM)、静态随机存取存储器(Static Random-Access Memory,SRAM)、扩展数据输出随机存取存储器(Extended Data Output Random Access Memory,EDO RAM),兰巴斯随机存取存储器(Rambus Random Access Memory,Rambus RAM)等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。Storage medium - any one or more types of memory devices or storage devices. The term "storage medium" is intended to include: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as a dynamic random access memory; (Dynamic Random Access Memory, DRAM), (Double Data Rate Random Access Memory, DDR RAM), Static Random Access Memory (SRAM), Extended Data Output Random Access Memory (Extended Data Output Random Access Memory) , EDO RAM), Rambus Random Access Memory (Rambus RAM), etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory components Wait. The storage medium may also include other types of memory or a combination thereof. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet. The second computer system can provide program instructions to the first computer for execution. The term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network). A storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的搭配模型构建的操作,还可以执行本申请任意实施例所提供的搭配模型构建方法中的相关操作。Certainly, a storage medium containing computer executable instructions provided by the embodiments of the present application, the computer executable instructions are not limited to the operation of the collocation model construction as described above, and may also perform the collocation model provided by any embodiment of the present application. Related operations in the build method.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的服饰推荐的操作,还可以执行本申请任意实施例所提供的服饰推荐方法中的相关操作。Of course, the storage medium containing the computer executable instructions provided by the embodiment of the present application is not limited to the operation of the clothing recommendation as described above, and may also perform the clothing recommendation method provided by any embodiment of the present application. Related operations in .
实施例七Example 7
本申请实施例提供了一种终端,该终端内具有操作系统,该终端中可集成本申请实施例提供的搭配模型构建装置。其中,终端可以为智能手机或平板电脑(PAD)等。图6是本申请实施例提供的一种终端的结构示意图。如图6所示,该终端包括存储器610及处理器620。其中,存储器610,设置为存储计算机程序、模特图像、模特的三维模型、图像样本及搭配模型。处理器620读取并执行该存储器610中存储的计算机程序。该处理器620在执行该计算机程序时实现本公开任意实施例所述的搭配模型构建方法。The embodiment of the present application provides a terminal, where the terminal has an operating system, and the collocation model construction device provided by the embodiment of the present application can be integrated into the terminal. The terminal can be a smart phone or a tablet (PAD). FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in FIG. 6, the terminal includes a memory 610 and a processor 620. The memory 610 is configured to store a computer program, a model image, a three-dimensional model of the model, an image sample, and a matching model. The processor 620 reads and executes the computer program stored in the memory 610. The processor 620 implements the collocation model construction method described in any of the embodiments of the present disclosure when executing the computer program.
实施例八Example eight
在一实施例中,本申请实施例提供了另一种终端,该终端内具有操作系统,该终端中可集成本申请实施例提供的服饰推荐装置。其中,终端可以为智能手机或平板电脑(PAD)等。图7是本申请实施例提供的另一种终端的结构示意图。 如图7所示,该终端包括摄像头710、存储器720及处理器730。该摄像头710为3D深度摄像头,可以采用结构光方案拍摄得到包括景深信息的用户图像。该存储器720,设置为存储计算机程序、用户图像、衣着风格信息、人体模型及搭配模型等。所述处理器730读取并执行所述存储器720中存储的计算机程序。所述处理器730在执行所述计算机程序时实现本公开任意实施例所述的服饰推荐方法。In an embodiment, the embodiment of the present application provides another terminal, where the terminal has an operating system, and the clothing recommendation device provided by the embodiment of the present application may be integrated into the terminal. The terminal can be a smart phone or a tablet (PAD). FIG. 7 is a schematic structural diagram of another terminal according to an embodiment of the present application. As shown in FIG. 7, the terminal includes a camera 710, a memory 720, and a processor 730. The camera 710 is a 3D depth camera, and a user image including depth of field information can be captured using a structured light scheme. The memory 720 is configured to store a computer program, a user image, clothing style information, a human body model, a collocation model, and the like. The processor 730 reads and executes a computer program stored in the memory 720. The processor 730 implements the apparel recommendation method of any of the embodiments of the present disclosure when the computer program is executed.
实施例九Example nine
上述示例中列举的摄像头、存储器及处理器均为终端的部分元器件,所述终端还可以包括其它元器件。以智能手机为例,说明上述终端可能的结构。The camera, memory and processor listed in the above examples are all components of the terminal, and the terminal may also include other components. Take a smart phone as an example to illustrate the possible structure of the above terminal.
图8是本申请实施例提供的一种智能手机的结构示意图。如图8所示,该智能手机可以包括:存储器801、中央处理器(Central Processing Unit,CPU)802(又称处理器,以下简称CPU)、外设接口803、射频(Radio Frequency,RF)电路805、音频电路806、扬声器811、显示器812、摄像头813、电源管理芯片808、输入/输出(Input/Output,I/O)子系统809、其他输入/控制设备810以及外部端口804,这些部件通过一个或多个通信总线或信号线807来通信。FIG. 8 is a schematic structural diagram of a smart phone according to an embodiment of the present application. As shown in FIG. 8 , the smart phone may include: a memory 801, a central processing unit (CPU) 802 (also referred to as a processor, hereinafter referred to as a CPU), a peripheral interface 803, and a radio frequency (RF) circuit. 805, audio circuit 806, speaker 811, display 812, camera 813, power management chip 808, input/output (I/O) subsystem 809, other input/control devices 810, and external port 804, these components pass One or more communication buses or signal lines 807 are in communication.
图示智能手机800仅仅是移动终端的一个范例,并且智能手机800可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的多种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The illustrated smartphone 800 is merely one example of a mobile terminal, and the smartphone 800 can have more or fewer components than those shown in the figures, two or more components can be combined, or can have different Component configuration. The various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
存储器801,所述存储器801可以被CPU802、外设接口803等访问,所述存储器801可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。在存储器811中存储计算机程序及搭配模型等。The memory 801 can be accessed by the CPU 802, the peripheral interface 803, etc., and the memory 801 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices. A computer program, a matching model, and the like are stored in the memory 811.
外设接口803,所述外设接口803可以将设备的输入和输出外设连接到CPU802和存储器801。 Peripheral interface 803, which can connect the input and output peripherals of the device to CPU 802 and memory 801.
I/O子系统809,所述I/O子系统809可以将设备上的输入输出外设,例如显示器812和其他输入/控制设备810,连接到外设接口803。I/O子系统809可以包括显示控制器8091和用于控制其他输入/控制设备810的一个或多个输入控制器8092。其中,一个或多个输入控制器8092从其他输入/控制设备810接收电信号或者向其他输入/控制设备810发送电信号,其他输入/控制设备810可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器8092可以与以下任一个连接:键盘、红外端口、通用串行总线(Universal Serial Bus,USB)接口以及诸如鼠标的指示设备。I/O subsystem 809, which can connect input and output peripherals on the device, such as display 812 and other input/control devices 810, to peripheral interface 803. The I/O subsystem 809 can include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810. Wherein, one or more input controllers 8092 receive electrical signals from other input/control devices 810 or transmit electrical signals to other input/control devices 810, and other input/control devices 810 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel. It is worth noting that the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a Universal Serial Bus (USB) interface, and a pointing device such as a mouse.
显示器812,所述显示器812是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A display 812, which is an input interface and an output interface between the user terminal and the user, displays the visual output to the user, and the visual output can include graphics, text, icons, video, and the like.
摄像头813,所述摄像头813采用结构光方案获取用户的光学图像,并将光学图像转换为电信号,通过外设接口803存储于存储器801。The camera 813 acquires an optical image of the user using a structured light scheme, and converts the optical image into an electrical signal, and is stored in the memory 801 through the peripheral interface 803.
I/O子系统809中的显示控制器8091从显示器812接收电信号或者向显示器812发送电信号。显示器812检测显示器上的接触,显示控制器8091将检测到的接触转换为与显示在显示器812上的用户界面对象的交互,即实现人机交互,显示在显示器812上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。在一实施例中,显示器512为屏幕。在一实施例中,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由屏幕形成的触摸敏感表面的延伸。 Display controller 8091 in I/O subsystem 809 receives an electrical signal from display 812 or an electrical signal to display 812. Display 812 detects contact on the display, display controller 8091 converts the detected contact into interaction with a user interface object displayed on display 812, i.e., enables human-computer interaction, and the user interface object displayed on display 812 can be operational The icon of the game, the icon of the network to the corresponding network, and the like. In an embodiment, display 512 is a screen. In an embodiment, the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the screen.
RF电路805,设置为建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。在一实施例中,RF电路805接收并发送RF信号,RF信号也称为电磁信号,RF电路805将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路805可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编译码器(COder-DECoder,CODEC)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 805 is configured to establish communication between the mobile phone and the wireless network (ie, the network side) to implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. In one embodiment, RF circuit 805 receives and transmits an RF signal, also referred to as an electromagnetic signal, and RF circuit 805 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal and communication network And other devices to communicate. RF circuitry 805 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
音频电路806,设置为从外设接口803接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器811。The audio circuit 806 is arranged to receive audio data from the peripheral interface 803, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 811.
扬声器811,设置为将手机通过RF电路805从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 811 is arranged to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.
电源管理芯片808,设置为为CPU802、I/O子系统809及外设接口803所连接的硬件进行供电及电源管理。The power management chip 808 is configured to provide power and power management for the hardware connected to the CPU 802, the I/O subsystem 809, and the peripheral interface 803.
本申请实施例提供的终端,通过包括景深信息的模特图像构建每个模特的三维模型,并对该三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本;根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,可以使该搭配模型具备基于体型数据及服饰风格推荐服饰搭配方案的功能。采用上述技术方案可以解决相关技术提供的服饰搭配方案智能程度受限的问题,可以提供达到用户预期效果的服饰推荐建议,提升了服饰推荐功能的智能性及精确度。The terminal provided by the embodiment of the present application constructs a three-dimensional model of each model by using a model image including depth information, and marks the body shape data, the suit, and the accessories corresponding to the three-dimensional model to obtain a first image sample; The fixed machine learning algorithm trains the preset deep neural network to obtain the matching model, which can make the matching model have the function of recommending the clothing matching scheme based on the body data and the clothing style. The above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
在一实施例中,本申请实施例还提供另一种终端,可以根据该搭配模型确 定与用户的人体模型对应的体型数据及用户选择的衣着风格对应的服饰搭配建议。采用上述技术方案可以解决相关技术提供的服饰搭配方案智能程度受限的问题,可以提供达到用户预期效果的服饰推荐建议,提升了服饰推荐功能的智能性及精确度。In an embodiment, the embodiment of the present application further provides another terminal, and according to the collocation model, the body shape data corresponding to the human body model of the user and the clothing collocation proposal corresponding to the clothing style selected by the user may be determined. The above technical solution can solve the problem that the clothing matching solution provided by the related technology is limited in intelligence, can provide the clothing recommendation suggestion that achieves the expected effect of the user, and improves the intelligence and accuracy of the clothing recommendation function.
上述实施例中提供的搭配模型构建装置、服饰推荐装置、存储介质及终端可执行本申请实施例所提供的搭配模型构建方法及服饰推荐方法,具备执行该方法相应的功能模块和效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的搭配模型构建方法及服饰推荐方法。The collocation model construction device, the clothing recommendation device, the storage medium and the terminal provided in the above embodiments can execute the collocation model construction method and the clothing recommendation method provided by the embodiments of the present application, and have the corresponding functional modules and effects for executing the method. For the technical details that are not described in detail in the above embodiments, reference may be made to the collocation model construction method and the clothing recommendation method provided by any embodiment of the present application.

Claims (20)

  1. 一种搭配模型构建方法,包括:A collocation model construction method, including:
    获取设定数量的包括景深信息的模特图像,其中,所述设定数量的模特图像中的模特身着预设的套装和配饰;Acquiring a set number of model images including depth of field information, wherein the models in the set number of model images are wearing preset sets and accessories;
    根据所述模特图像构建每个模特的三维模型,并对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本;Constructing a three-dimensional model of each model according to the model image, and marking the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample;
    根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,其中,所述图像样本包括所述第一图像样本。According to the image sample, the preset depth neural network is trained by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
  2. 根据权利要求1所述的方法,其中,所述设定数量的模特图像为模特的体型、性别和年龄中的至少一项不同的多个模特图像。The method according to claim 1, wherein the set number of model images is a plurality of model images different from at least one of a body shape, a gender, and an age of the model.
  3. 根据权利要求1或2所述的方法,其中,获取设定数量的包括景深信息的模特图像,包括:The method according to claim 1 or 2, wherein acquiring a set number of model images including depth information includes:
    控制三维3D深度摄像头按照预设方向对身着设定搭配服饰的模特进行拍摄,得到设定数量的包括景深信息的模特图像。The three-dimensional 3D depth camera is controlled to shoot a model wearing the matching costume according to a preset direction, and a set number of model images including depth information is obtained.
  4. 根据权利要求3所述的方法,其中,控制3D深度摄像头按照预设方向对身着设定搭配服饰的模特进行拍摄,得到设定数量的包括景深信息的模特图像,包括:The method according to claim 3, wherein the 3D depth camera is controlled to shoot a model wearing the matching costume according to a preset direction to obtain a set number of model images including depth information, including:
    控制3D深度摄像头环绕所述身着设定搭配服饰的模特进行视频拍摄,得到模特视频;Controlling the 3D depth camera to perform video shooting around the model wearing the matching costume, and obtaining a model video;
    采用设定的分帧策略对所述模特视频进行分帧处理,得到设定数量的包括景深信息的模特图像。The model video is subjected to frame processing by using a set framing strategy to obtain a set number of model images including depth information.
  5. 根据权利要求1或2所述的方法,其中,对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本,包括:The method according to claim 1 or 2, wherein marking the body shape data, the suit and the accessory corresponding to the three-dimensional model to obtain the first image sample comprises:
    对所述三维模型的颈围、胸围、腰围、肩宽、手臂、臀围及腿部进行标记;Marking the neck circumference, chest circumference, waist circumference, shoulder width, arms, hips and legs of the three-dimensional model;
    对所述套装和配饰进行标记,并标记所述套装及配饰对应的第一衣着风格;Marking the set and accessories and marking the first dress style corresponding to the set and accessories;
    根据标记后的三维模型对应的图像矩阵及所述第一衣着风格得到第一图像样本。The first image sample is obtained according to the image matrix corresponding to the marked three-dimensional model and the first clothing style.
  6. 根据权利要求1或2所述的方法,在对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本之后,还包括:The method according to claim 1 or 2, after marking the body shape data, the suit and the accessory corresponding to the three-dimensional model to obtain the first image sample, the method further includes:
    获取套装及配饰的调整指示,并根据所述调整指示修改所述三维模型对应的套装及配饰的属性参数;Obtaining an adjustment instruction of the set and the accessory, and modifying an attribute parameter of the set and the accessory corresponding to the three-dimensional model according to the adjustment instruction;
    对修改后的套装及配饰进行标记,并标记所述修改后的套装及配饰对应的 第二衣着风格;Marking the modified set and accessories and marking the second dress style corresponding to the modified set and accessories;
    根据修改属性参数后的三维模型对应的图像矩阵及所述第二衣着风格得到第二图像样本。And obtaining a second image sample according to the image matrix corresponding to the three-dimensional model after modifying the attribute parameter and the second dressing style.
  7. 根据权利要求1-6中任一项所述的方法,其中,根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,包括:The method according to any one of claims 1 to 6, wherein the preset depth neural network is trained according to the image sample by using a set machine learning algorithm to obtain a matching model, including:
    利用图像样本对预设的深度神经网络进行前向传播和后向传播两个阶段的训练;Using the image samples to train the preset deep neural network in two stages of forward propagation and backward propagation;
    在所述后向传播训练计算得到的误差达到期望误差值时,训练结束,并得到搭配模型。When the error calculated by the backward propagation training reaches the expected error value, the training ends and a matching model is obtained.
  8. 一种服饰推荐方法,包括:A method of recommending clothing, including:
    获取至少一帧用户图像及用户的衣着风格信息;Obtaining at least one frame of the user image and the user's clothing style information;
    根据所述用户图像确定对应的人体模型;Determining a corresponding human body model according to the user image;
    将所述人体模型及所述衣着风格信息输入预先配置的搭配模型,获取所述搭配模型输出的服饰搭配建议,其中,所述搭配模型为根据预设的图像样本训练的深度学习模型,且该图像样本根据对设定模特的体型数据、套装及配饰进行标记得到;Entering the human body model and the clothing style information into a pre-configured collocation model, and obtaining a clothing matching suggestion output by the collocation model, wherein the collocation model is a deep learning model trained according to a preset image sample, and the The image sample is obtained by marking the body type data, the set and the accessories of the set model;
    展示所述服饰搭配建议。Show the clothing matching suggestions.
  9. 根据权利要求8所述的方法,其中,获取至少一帧用户图像及用户的衣着风格信息,包括:The method according to claim 8, wherein acquiring at least one frame of the user image and the user's clothing style information comprises:
    当检测到服饰推荐功能启动时,输出衣着风格询问信息;When the clothing recommendation function is detected to be activated, the clothing style inquiry information is output;
    获取用户输入的衣着风格信息,并提示所述用户输入至少一帧用户图像;Obtaining clothing style information input by the user, and prompting the user to input at least one frame of the user image;
    根据所述用户输入的操作指示,控制3D深度摄像头拍摄用户图像,或者,由图片库中获取用户图像。The 3D depth camera is controlled to capture a user image according to the operation instruction input by the user, or the user image is acquired from the picture library.
  10. 根据权利要求8所述的方法,其中,根据所述用户图像确定对应的人体模型,包括:The method of claim 8, wherein determining a corresponding human body model based on the user image comprises:
    提取所述用户图像中的预设特征点,并根据所述预设特征点确定所述用户图像的脸部特征信息;Extracting a preset feature point in the user image, and determining facial feature information of the user image according to the preset feature point;
    根据所述脸部特征信息由预先构建的人体模型集合中筛选所述用户图像对应的人体模型。The human body model corresponding to the user image is filtered from the pre-built set of human body models according to the facial feature information.
  11. 根据权利要求8至10中任一项所述的方法,其中,展示所述服饰搭配建议,包括:The method according to any one of claims 8 to 10, wherein the clothing matching suggestion is displayed, comprising:
    在预设的服饰数据库中查找与所述服饰搭配建议中的风格和尺码匹配的服饰模型,并显示所述服饰模型。Finding an apparel model that matches the style and size in the apparel matching suggestion in a preset apparel database, and displaying the apparel model.
  12. 根据权利要求11所述的方法,其中,显示所述服饰模型,包括:The method of claim 11 wherein displaying the apparel model comprises:
    根据所述服饰模型及人体模型渲染得到穿着有被推荐服饰的用户模型,并显示所述用户模型。A user model wearing the recommended clothing is rendered according to the clothing model and the human body model, and the user model is displayed.
  13. 根据权利要求12所述的方法,在显示所述用户模型之后,还包括:The method of claim 12, after displaying the user model, further comprising:
    获取用户针对所述用户模型输入的调整操作;Obtaining an adjustment operation input by the user for the user model;
    根据所述调整操作修改所述用户模型的服饰参数,显示修改后的新的用户模型。Modifying the apparel parameters of the user model according to the adjustment operation, and displaying the modified new user model.
  14. 根据权利要求8-13中任一项所述的方法,其中,所述服饰搭配建议包括下述至少一项:服装种类搭配建议、鞋子搭配建议及饰品搭配建议。The method according to any one of claims 8 to 13, wherein the clothing matching suggestion comprises at least one of the following: a clothing category matching suggestion, a shoe matching suggestion, and a jewelry matching suggestion.
  15. 一种搭配模型构建装置,包括:A matching model building device, comprising:
    图像获取模块,设置为获取设定数量的包括景深信息的模特图像,其中,所述设定数量的模特图像中的模特身着预设的套装和配饰;An image acquisition module, configured to acquire a set number of model images including depth information, wherein the models in the set number of model images are wearing preset sets and accessories;
    样本确定模块,设置为根据所述模特图像构建每个模特的三维模型,并对所述三维模型对应的体型数据、套装及配饰进行标记得到第一图像样本;a sample determination module, configured to construct a three-dimensional model of each model according to the model image, and mark the body shape data, the suit and the accessories corresponding to the three-dimensional model to obtain a first image sample;
    模型训练模块,设置为根据图像样本,采用设定的机器学习算法对预设的深度神经网络进行训练,得到搭配模型,其中,所述图像样本包括所述第一图像样本。The model training module is configured to train the preset depth neural network according to the image sample by using a set machine learning algorithm to obtain a collocation model, wherein the image sample includes the first image sample.
  16. 根据权利要求15所述的装置,其中,所述设定数量的模特图像为模特的体型、性别和年龄中的至少一项不同的多个模特图像。The apparatus according to claim 15, wherein the set number of model images are a plurality of model images different from at least one of a body shape, a gender, and an age of the model.
  17. 一种服饰推荐装置,包括:A clothing recommendation device comprising:
    信息获取模块,设置为获取至少一帧用户图像及用户的衣着风格信息;The information acquisition module is configured to acquire at least one frame of the user image and the user's clothing style information;
    人体模型确定模块,设置为根据所述用户图像确定对应的人体模型;a human body model determining module, configured to determine a corresponding human body model according to the user image;
    搭配建议确定模块,设置为将所述人体模型及所述衣着风格信息输入预先配置的搭配模型,获取所述搭配模型输出的服饰搭配建议,其中,所述搭配模型为根据预设的图像样本训练的深度学习模型,且该图像样本根据对设定模特的体型数据、套装及配饰进行标记得到;a matching determination module, configured to input the human body model and the clothing style information into a pre-configured matching model, and obtain a clothing matching suggestion outputted by the matching model, wherein the matching model is trained according to a preset image sample. a deep learning model, and the image sample is obtained by marking the body type data, the set and the accessories of the set model;
    搭配建议展示模块,设置为展示所述服饰搭配建议。With the suggestion display module, set to display the clothing matching suggestions.
  18. 根据权利要求17所述的装置,其中,所述信息获取模块是设置为:The apparatus of claim 17, wherein the information acquisition module is configured to:
    当检测到服饰推荐功能启动时,输出衣着风格询问信息;When the clothing recommendation function is detected to be activated, the clothing style inquiry information is output;
    获取用户输入的衣着风格信息,并提示所述用户输入至少一帧用户图像;Obtaining clothing style information input by the user, and prompting the user to input at least one frame of the user image;
    根据所述用户输入的操作指示,控制三维3D深度摄像头拍摄用户图像,或者,由图片库中获取用户图像。The three-dimensional 3D depth camera is controlled to capture a user image according to the operation instruction input by the user, or the user image is acquired from the picture library.
  19. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的搭配模型构建方法,或者,所述计算机程序被处理器执行时实现如权利要求8至14中任一项所述的服饰推荐方法。A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor, implementing the collocation model construction method according to any one of claims 1 to 7, or the computer program being The costume recommendation method according to any one of claims 8 to 14 is implemented when the processor is executed.
  20. 一种终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至7中任一项所述的搭配模型构建方法,或者,所述处理器执行所述计算机程序时实现如权利要求8至14中任一项所述的服饰推荐方法。A terminal comprising a memory, a processor, and a computer program stored on the memory and operable by the processor, the processor executing the computer program to implement the collocation model according to any one of claims 1 to 7. The method of constructing, or the method of recommending the clothing according to any one of claims 8 to 14 when the processor executes the computer program.
PCT/CN2018/123510 2018-01-08 2018-12-25 Method for constructing matching model, clothing recommendation method and device, medium, and terminal WO2019134560A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810015394.6 2018-01-08
CN201810015394.6A CN110021061B (en) 2018-01-08 2018-01-08 Collocation model construction method, clothing recommendation method, device, medium and terminal

Publications (1)

Publication Number Publication Date
WO2019134560A1 true WO2019134560A1 (en) 2019-07-11

Family

ID=67144354

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/123510 WO2019134560A1 (en) 2018-01-08 2018-12-25 Method for constructing matching model, clothing recommendation method and device, medium, and terminal

Country Status (2)

Country Link
CN (1) CN110021061B (en)
WO (1) WO2019134560A1 (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457584A (en) * 2019-08-12 2019-11-15 西安文理学院 A kind of computer data excavation heuristic approach based on big data
CN110782316A (en) * 2019-10-15 2020-02-11 山西同云科技有限公司 Online and offline shopping system based on cloud AI
CN110956595A (en) * 2019-11-29 2020-04-03 广州酷狗计算机科技有限公司 Method, device and system for face beautifying processing and storage medium
CN111104422A (en) * 2019-12-10 2020-05-05 北京明略软件系统有限公司 Training method, device, equipment and storage medium of data recommendation model
CN111127131A (en) * 2019-11-20 2020-05-08 深圳市赢领智尚科技有限公司 Data acquisition method and device, computer equipment and storage medium
CN111508079A (en) * 2020-04-22 2020-08-07 深圳追一科技有限公司 Virtual clothing fitting method and device, terminal equipment and storage medium
CN111680760A (en) * 2020-06-16 2020-09-18 北京联合大学 Clothing style identification method and device, electronic equipment and storage medium
CN111767817A (en) * 2020-06-22 2020-10-13 北京百度网讯科技有限公司 Clothing matching method and device, electronic equipment and storage medium
CN111785017A (en) * 2020-05-28 2020-10-16 上海博泰悦臻电子设备制造有限公司 Bus scheduling method and device and computer storage medium
CN111861822A (en) * 2020-06-03 2020-10-30 四川大学华西医院 Patient model construction method, equipment and medical education system
CN112417535A (en) * 2020-11-16 2021-02-26 珠海格力电器股份有限公司 Clothing matching recommendation method, control device, storage medium and wardrobe
CN112560540A (en) * 2019-09-10 2021-03-26 Tcl集团股份有限公司 Beautiful makeup putting-on recommendation method and device
CN112819685A (en) * 2019-11-15 2021-05-18 青岛海信移动通信技术股份有限公司 Image style mode recommendation method and terminal
CN114662412A (en) * 2022-05-23 2022-06-24 深圳市远湖科技有限公司 Deep learning-based garment design method, device, equipment and storage medium
TWI771106B (en) * 2020-07-27 2022-07-11 日商威亞視股份有限公司 3d data system and 3d data generation method
CN114820135A (en) * 2022-05-16 2022-07-29 温州鞋革产业研究院 Intelligent clothing matching system and method
CN116050284A (en) * 2023-03-29 2023-05-02 环球数科集团有限公司 Fashion redesign system utilizing AIGC technology
CN116823361A (en) * 2023-08-31 2023-09-29 博洛尼智能科技(青岛)有限公司 Jewelry collocation detection and pushing method based on artificial intelligence

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110544154B (en) * 2019-08-30 2022-03-29 北京市商汤科技开发有限公司 Clothing matching method and device, electronic equipment and storage medium
CN113159876B (en) * 2020-01-21 2023-08-22 海信集团有限公司 Clothing collocation recommendation device, method and storage medium
CN111445559A (en) * 2020-04-07 2020-07-24 珠海格力电器股份有限公司 Image processing and displaying method, device, equipment and computer readable medium
CN112418273B (en) * 2020-11-02 2024-03-26 深圳大学 Clothing popularity evaluation method and device, intelligent terminal and storage medium
CN112685579A (en) * 2021-01-22 2021-04-20 广西安怡臣信息技术有限公司 Hair style and dressing matching system based on big data
CN113240481A (en) * 2021-02-09 2021-08-10 飞诺门阵(北京)科技有限公司 Model processing method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120154633A1 (en) * 2009-12-04 2012-06-21 Rodriguez Tony F Linked Data Methods and Systems
CN104978762A (en) * 2015-07-13 2015-10-14 北京航空航天大学 Three-dimensional clothing model generating method and system
CN104992179A (en) * 2015-06-23 2015-10-21 浙江大学 Fine-grained convolutional neural network-based clothes recommendation method
CN105989617A (en) * 2014-08-08 2016-10-05 株式会社东芝 Virtual try-on apparatus and virtual try-on method
CN106910115A (en) * 2017-02-20 2017-06-30 宁波大学 Virtualization fitting method based on intelligent terminal

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201102794D0 (en) * 2011-02-17 2011-03-30 Metail Ltd Online retail system
JP2016502713A (en) * 2012-11-12 2016-01-28 シンガポール・ユニバーシティ・オブ・テクノロジー・アンド・デザインSingapore University of Technologyand Design Clothing matching system and method
CN103440587A (en) * 2013-08-27 2013-12-11 刘丽君 Personal image designing and product recommendation method based on online shopping
CN104331417B (en) * 2014-10-09 2018-01-02 深圳码隆科技有限公司 A kind of matching method of individual subscriber dress ornament
CN106339390A (en) * 2015-07-09 2017-01-18 中兴通讯股份有限公司 Matching method and device based on human body feature data
US9852234B2 (en) * 2015-09-16 2017-12-26 Brian Gannon Optimizing apparel combinations
CN105224775B (en) * 2015-11-12 2020-06-05 中国科学院重庆绿色智能技术研究院 Method and device for matching clothes based on picture processing
CN107292685A (en) * 2016-03-30 2017-10-24 深圳市祈飞科技有限公司 A kind of method of automatic recommendation size and the fitting cabinet system using this method
CN106022343B (en) * 2016-05-19 2019-08-16 东华大学 A kind of clothes fashion recognition methods based on Fourier descriptor and BP neural network
CN106156297A (en) * 2016-06-29 2016-11-23 北京小米移动软件有限公司 Method and device recommended by dress ornament
CN106204124A (en) * 2016-07-02 2016-12-07 向莉妮 Personalized commercial coupling commending system and method
CN106504064A (en) * 2016-10-25 2017-03-15 清华大学 Clothes classification based on depth convolutional neural networks recommends method and system with collocation
CN110503681B (en) * 2017-02-14 2022-03-29 奥比中光科技集团股份有限公司 Human body model automatic creation method and three-dimensional fitting system
CN106933976B (en) * 2017-02-14 2020-09-18 深圳奥比中光科技有限公司 Method for establishing human body 3D net model and application thereof in 3D fitting
CN107358505A (en) * 2017-07-12 2017-11-17 苏州大学 A kind of size for purchase clothing online recommends method and system
CN107437099A (en) * 2017-08-03 2017-12-05 哈尔滨工业大学 A kind of specific dress ornament image recognition and detection method based on machine learning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120154633A1 (en) * 2009-12-04 2012-06-21 Rodriguez Tony F Linked Data Methods and Systems
CN105989617A (en) * 2014-08-08 2016-10-05 株式会社东芝 Virtual try-on apparatus and virtual try-on method
CN104992179A (en) * 2015-06-23 2015-10-21 浙江大学 Fine-grained convolutional neural network-based clothes recommendation method
CN104978762A (en) * 2015-07-13 2015-10-14 北京航空航天大学 Three-dimensional clothing model generating method and system
CN106910115A (en) * 2017-02-20 2017-06-30 宁波大学 Virtualization fitting method based on intelligent terminal

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457584A (en) * 2019-08-12 2019-11-15 西安文理学院 A kind of computer data excavation heuristic approach based on big data
CN112560540A (en) * 2019-09-10 2021-03-26 Tcl集团股份有限公司 Beautiful makeup putting-on recommendation method and device
CN110782316A (en) * 2019-10-15 2020-02-11 山西同云科技有限公司 Online and offline shopping system based on cloud AI
CN112819685B (en) * 2019-11-15 2022-11-04 青岛海信移动通信技术股份有限公司 Image style mode recommendation method and terminal
CN112819685A (en) * 2019-11-15 2021-05-18 青岛海信移动通信技术股份有限公司 Image style mode recommendation method and terminal
CN111127131A (en) * 2019-11-20 2020-05-08 深圳市赢领智尚科技有限公司 Data acquisition method and device, computer equipment and storage medium
CN110956595B (en) * 2019-11-29 2023-11-24 广州酷狗计算机科技有限公司 Face beautifying processing method, device, system and storage medium
CN110956595A (en) * 2019-11-29 2020-04-03 广州酷狗计算机科技有限公司 Method, device and system for face beautifying processing and storage medium
CN111104422A (en) * 2019-12-10 2020-05-05 北京明略软件系统有限公司 Training method, device, equipment and storage medium of data recommendation model
CN111104422B (en) * 2019-12-10 2023-08-29 北京明略软件系统有限公司 Training method, device, equipment and storage medium of data recommendation model
CN111508079B (en) * 2020-04-22 2024-01-23 深圳追一科技有限公司 Virtual clothes try-on method and device, terminal equipment and storage medium
CN111508079A (en) * 2020-04-22 2020-08-07 深圳追一科技有限公司 Virtual clothing fitting method and device, terminal equipment and storage medium
CN111785017A (en) * 2020-05-28 2020-10-16 上海博泰悦臻电子设备制造有限公司 Bus scheduling method and device and computer storage medium
CN111861822A (en) * 2020-06-03 2020-10-30 四川大学华西医院 Patient model construction method, equipment and medical education system
CN111861822B (en) * 2020-06-03 2023-11-21 四川大学华西医院 Patient model construction method, equipment and medical education system
CN111680760A (en) * 2020-06-16 2020-09-18 北京联合大学 Clothing style identification method and device, electronic equipment and storage medium
CN111767817B (en) * 2020-06-22 2023-08-01 北京百度网讯科技有限公司 Dress collocation method and device, electronic equipment and storage medium
CN111767817A (en) * 2020-06-22 2020-10-13 北京百度网讯科技有限公司 Clothing matching method and device, electronic equipment and storage medium
TWI771106B (en) * 2020-07-27 2022-07-11 日商威亞視股份有限公司 3d data system and 3d data generation method
CN112417535A (en) * 2020-11-16 2021-02-26 珠海格力电器股份有限公司 Clothing matching recommendation method, control device, storage medium and wardrobe
CN114820135A (en) * 2022-05-16 2022-07-29 温州鞋革产业研究院 Intelligent clothing matching system and method
CN114662412A (en) * 2022-05-23 2022-06-24 深圳市远湖科技有限公司 Deep learning-based garment design method, device, equipment and storage medium
CN116050284A (en) * 2023-03-29 2023-05-02 环球数科集团有限公司 Fashion redesign system utilizing AIGC technology
CN116823361A (en) * 2023-08-31 2023-09-29 博洛尼智能科技(青岛)有限公司 Jewelry collocation detection and pushing method based on artificial intelligence
CN116823361B (en) * 2023-08-31 2023-12-12 博洛尼智能科技(青岛)有限公司 Jewelry collocation detection and pushing method based on artificial intelligence

Also Published As

Publication number Publication date
CN110021061B (en) 2021-10-29
CN110021061A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
WO2019134560A1 (en) Method for constructing matching model, clothing recommendation method and device, medium, and terminal
US11798246B2 (en) Electronic device for generating image including 3D avatar reflecting face motion through 3D avatar corresponding to face and method of operating same
US11227008B2 (en) Method, system, and device of virtual dressing utilizing image processing, machine learning, and computer vision
US10964078B2 (en) System, device, and method of virtual dressing utilizing image processing, machine learning, and computer vision
CN106462979B (en) Fashion preference analysis
CN110110118B (en) Dressing recommendation method and device, storage medium and mobile terminal
WO2019120032A1 (en) Model construction method, photographing method, device, storage medium, and terminal
WO2019120031A1 (en) Method, device, storage medium, and mobile terminal for making recommendation about clothing matching
US11361521B2 (en) Apparatus and method for providing item according to attribute of avatar
US20230419582A1 (en) Virtual object display method and apparatus, electronic device, and medium
CN109978640A (en) Dress ornament tries method, apparatus, storage medium and mobile terminal on
JP2019512667A (en) Method and apparatus for presenting a watch face, and a smart watch
US11900506B2 (en) Controlling interactive fashion based on facial expressions
CN111507889A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
WO2022062808A1 (en) Portrait generation method and device
US20240070766A1 (en) Personalized try-on ads
CN111767817B (en) Dress collocation method and device, electronic equipment and storage medium
CN111507890A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112204539A (en) Adaptive search using social graph information
WO2019134501A1 (en) Method and device for simulating fit of garment on user, storage medium, and mobile terminal
US20230120037A1 (en) True size eyewear in real time
KR102580427B1 (en) Method for providing virtual fitting service and system for same
US20240037858A1 (en) Virtual wardrobe ar experience
KR102661019B1 (en) Electronic device providing image including 3d avatar in which motion of face is reflected by using 3d avatar corresponding to face and method for operating thefeof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18898713

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18898713

Country of ref document: EP

Kind code of ref document: A1