Clothing search method and device, electronic device and medium

By identifying clothing categories and character attribute information, combined with image feature extraction and target detection technology, the problem of inaccurate traditional clothing image search is solved, the efficiency and accuracy of clothing search are improved, and it is suitable for the clothing needs of different groups of people.

CN112905889BActive Publication Date: 2024-10-15BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110236401.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-03
Publication Date
2024-10-15
Estimated Expiration
2041-03-03

AI Technical Summary

Technical Problem

The traditional shopping method based on text search cannot effectively search for the products expected by users through images in the online purchase scenario of clothing products, resulting in inaccurate search results.

Method used

By determining the category of clothing to be searched and the person's attribute information, extracting image features, determining a candidate set from stored clothing products of the same category, and filtering target clothing based on the person's attribute information, it improves search efficiency and accuracy.

Benefits of technology

It realizes the efficiency and accuracy of clothing search, ensures that search results match user expectations, and is suitable for the clothing needs of different groups of people.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112905889B_ABST
    Figure CN112905889B_ABST
Patent Text Reader

Abstract

The present disclosure provides a clothing search method and device, electronic device and medium, which relate to the field of image processing technology, and in particular to the field of computer vision and intelligent search technology. The implementation scheme of the clothing search method is: determining the category and character attribute information of the clothing to be searched in the image to be searched; extracting the image features of the clothing to be searched, and according to the image features, determining the candidate clothing set of the clothing to be searched from a plurality of clothing items of the same category as the clothing to be searched that have been stored; according to the character attribute information, determining at least one target clothing from the candidate clothing set, and using the at least one target clothing as the search result of the clothing to be searched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, in particular to the field of computer vision and intelligent search technology, and specifically to a method, device, electronic device, computer-readable storage medium and computer program product for clothing search. Background Art

[0002] With the development of mobile Internet and e-commerce, traditional shopping methods based on text search can no longer meet the needs of users. Users hope to search for product information through product images. Especially in the online purchase of clothing products, searching for clothing through images is becoming more and more common. Users use the image search interface provided by e-commerce applications (APPs) to take photos of passers-by's clothing and upload them, or select locally stored images (such as street photos of celebrities, etc.) to upload and search for the same clothing. However, this search method usually cannot search for the clothing products that users expect.

[0003] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0004] The present disclosure provides a method, device, electronic device, computer-readable storage medium, and computer program product for clothing search.

[0005] According to one aspect of the present disclosure, a clothing search method is provided, comprising: determining the category and character attribute information of the clothing to be searched in the image to be searched; extracting image features of the clothing to be searched, and determining, based on the image features, a candidate clothing set of the clothing to be searched from a plurality of stored clothing items of the same category as the clothing to be searched; and determining, based on the character attribute information, at least one target clothing from the candidate clothing set, and using the at least one target clothing as the search result of the clothing to be searched.

[0006] According to another aspect of the present disclosure, a clothing search device is provided, comprising: a recognition module configured to determine the category and character attribute information of the clothing to be searched in the image to be searched; a first search module configured to extract image features of the clothing to be searched, and determine a candidate clothing set of the clothing to be searched from a plurality of stored clothing items of the same category as the clothing to be searched based on the image features; and a second search module configured to determine at least one target clothing from the candidate clothing set based on the character attribute information, and use the at least one target clothing as the search result of the clothing to be searched.

[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the clothing search method of any aspect described above.

[0008] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the clothing search method of any aspect described above.

[0009] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the clothing search method of any of the above aspects when executed by a processor.

[0010] According to one or more embodiments of the present disclosure, by determining the category of the clothing to be searched, and determining the candidate clothing set from multiple clothing items of the same category as the clothing to be searched that have been stored according to the image features of the clothing to be searched, the search efficiency is improved, the relevance of the candidate clothing set to the clothing to be searched is ensured, and the accuracy of the search results is preliminarily ensured. By determining the character attribute information of the clothing to be searched, the group of people to whom the clothing to be searched is applicable is determined. The target clothing is screened out from the candidate clothing set according to the character attribute information, further ensuring the accuracy of the search results.

[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0013] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;

[0014] Figure 2 A structural block diagram of an exemplary clothing and person joint detection model according to an embodiment of the present disclosure is shown;

[0015] Figure 3 A schematic diagram showing an exemplary sample image for training a clothing and person joint detection model according to an embodiment of the present disclosure is shown;

[0016] Figure 4 A flowchart of a clothing search method according to an embodiment of the present disclosure is shown;

[0017] Figures 5A to 5C A schematic diagram showing three exemplary images to be searched according to an embodiment of the present disclosure;

[0018] Figure 6 A schematic diagram showing a method for calculating the intersection over union (IoU) according to an embodiment of the present disclosure is shown;

[0019] Figure 7 A flowchart of a clothing search method according to another embodiment of the present disclosure is shown;

[0020] Figures 8A to 8C A schematic diagram showing an exemplary clothing search interface on a client device according to an embodiment of the present disclosure is shown;

[0021] Fig. 9 A structural block diagram of a clothing search device according to an embodiment of the present disclosure is shown;

[0022] Fig.10 A structural block diagram of a clothing search device according to another embodiment of the present disclosure is shown;

[0023] Fig.11 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0024] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0025] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0026] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0027] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0028] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.

[0029] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable execution of the image processing-based clothing search method.

[0030] In some embodiments, server 120 may also provide other services or software applications that may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.

[0031] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0032] The user may use client devices 101, 102, 103, 104, 105 and / or 106 to upload an image to be searched, so as to search for clothing items of the same style as the clothing to be searched in the image to be searched. The client device may provide an interface that enables the user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six types of client devices are depicted, but those skilled in the art will appreciate that the present disclosure can support any type and number of client devices.

[0033] Client devices 101, 102, 103, 104, 105 and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as Microsoft Windows, Apple iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as Google Chrome OS); or include various mobile operating systems, such as Microsoft Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing a variety of different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

[0034] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.

[0035] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0036] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.

[0037] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.

[0038] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

[0039] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The data repository 130 may reside in various locations. For example, the data repository used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The data repository 130 may be of different types. In some embodiments, the data repository used by the server 120 may be a database, such as a relational database. One or more of these databases may store, update, and retrieve data to and from the database in response to a command.

[0040] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0041] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.

[0042] For the purpose of the embodiments of this disclosure, Figure 1 In the example of , client applications are deployed at client devices 101, 102, 103, 104, 105 and 106. The client application may be an e-commerce application that can provide various functions related to e-commerce, such as searching for goods, purchasing goods, watching e-commerce live broadcasts, evaluating goods or merchants, etc. Correspondingly, server 120 may be a server used with an e-commerce application, and database 130 may store data such as product information (including images, introduction videos, text descriptions, etc. of the goods), merchant information, etc. for use by the e-commerce application. Based on the relevant data stored in database 130, server 120 provides e-commerce services to client applications running in client devices, such as product search and purchase services, product recommendation services, e-commerce live broadcast services, etc.

[0043] In an embodiment of the present disclosure, the client application deployed at the client device includes an image search interface. The user can upload an image (i.e., the image to be searched) containing the clothing that the user desires to search (i.e., the clothing to be searched) to the server 120 through the interface. Based on the image uploaded by the user, the server 120 searches for clothing that is the same or similar to the clothing to be searched from the clothing products stored in the database 130 (i.e., searches for clothing of the same or similar style to the clothing to be searched), and returns the searched identical or similar clothing as the search result to the client application in the client device. The client application displays the search result to the user through the corresponding interface.

[0044] In order to achieve the above-mentioned purpose of searching for clothing through images and ensure the accuracy of search results, the server 120 uses feature extraction and target detection technology in the field of computer vision to analyze and process the images to be searched uploaded by users, and identify the relevant information of clothing and characters in the images to be searched, such as the category and location information of clothing in the images to be searched, and the character attribute information and location information of the characters, etc. These relevant information are applied to the subsequent search process of the clothing to be searched, so that the search results are more accurate and intelligent search is realized.

[0045] According to some embodiments, a clothing and person joint detection model is deployed in the server 120, and the model can analyze and process the images to be searched uploaded by the user, and identify the relevant information of the clothing and person in the images to be searched.

[0046] Figure 2 FIG. 2 shows a structural block diagram of an exemplary clothing-person joint detection model 200 according to an embodiment of the present disclosure. Figure 2 As shown, the model 200 includes a feature extraction module 210 and a target detection module 220. The feature extraction module 210 includes a variable convolution kernel, and the feature extraction module 210 is configured to extract feature information of an input image (including a sample image and an image to be searched); the target detection module 220 is configured to process the feature information extracted by the feature extraction module to determine the category and first position information of each clothing in the input image, as well as the character attribute information and second position information of each character.

[0047] The clothing and person joint detection model of the disclosed embodiment can simultaneously detect clothing and people, that is, detect the category and first position information of each clothing in the input image, as well as the person attribute information and second position information of each person, greatly improving the detection efficiency. In addition, by performing simultaneous and joint detection of clothing and people, the contextual information in the input image is fully considered, thereby improving the accuracy of the detection results. By adopting a variable convolution kernel, the detection accuracy of irregular clothing and people in different postures is significantly improved.

[0048] The feature extraction module 210 and the object detection module 220 are described in detail below.

[0049] like Figure 2 As shown, the feature extraction module 210 receives an input image and extracts feature information of the input image. It should be noted that the input images received by the model 200 in the training stage and the application stage are different. In the training stage of the model 200, the input image is a labeled sample image; in the application stage of the model 200 (i.e., the trained model 200 is deployed to the server 120 for clothing search), the input image is an image to be searched containing clothing to be searched uploaded by the user through the client application. Figure 2 The embodiment shown is intended to illustrate the structure of the model 200, and the difference between the input images in the training phase and the application phase will not affect the structure of the model 200. Figure 2 There is no distinction between the input images in the training phase and the input images in the application phase, and both are collectively referred to as input images.

[0050] In some embodiments, the feature extraction module 210 may be, for example, a ResNet (residual network) so as to be able to extract deeper features of the input image. According to some embodiments, ResNet may further adopt a feature pyramid network structure (FPN) to extract feature information of different scales of the input image, so that the model 200 can achieve good detection effects for clothing and people of different sizes.

[0051] Specifically, the feature extraction module 210 uses multiple convolution kernels to extract feature information of the image. According to some embodiments, the feature extraction module 210 includes at least one variable convolution kernel ( Figure 2 Two variable convolution kernels 212 and 214 are shown in FIG. 1 ). The shape of the variable convolution kernel is not a square like the traditional convolution kernel (the size of the traditional convolution kernel is usually k*k, and k is usually an odd number), but can be any irregular shape. By using the variable convolution kernel, the detection accuracy of irregular clothing and people in different postures is significantly improved.

[0052] Continue to refer Figure 2 The target detection module 220 takes the feature information output by the feature extraction module 210 as input, and processes the feature information to determine the category and first position information of each clothing in the input image, as well as the character attribute information and second position information of each character.

[0053] The category of clothing can be a relatively general category such as tops, bottoms, shoes, etc., or a subdivided category such as coats, sweatshirts, T-shirts, shorts, trousers, etc., or a more subdivided category that combines information such as the material and style of the clothing, such as woolen coats, denim coats, neutral style coats, etc. The first position information of clothing is used to indicate the position area (usually a rectangular area) of the clothing in the input image.

[0054] The character attribute information of the character includes, for example, gender (male / female), age (eg, elderly / middle-aged / young / juvenile / child, etc.), etc. The second position information of the character is used to indicate the position area (usually a rectangular area) of the character in the input image.

[0055] It should be noted that, in order to make the embodiments of the present disclosure easier to understand, in this specification, the location information of clothing obtained by analyzing and processing the image (for example, the clothing and person joint detection model outputs the sample image or the image to be searched) is recorded as the first location information, and the location information of the person obtained by analyzing and processing the image (for example, the clothing and person joint detection model outputs the sample image or the image to be searched) is recorded as the second location information. Those skilled in the art can understand that the first location information and the second location information are obtained through analysis and processing and are calculated values.

[0056] In the following, the position information of the clothing marked in the sample image is recorded as the first position label, and the position information of the person marked in the sample image is recorded as the second position label. Those skilled in the art can understand that the first position label and the second position label are obtained by marking and are true values.

[0057] It should be understood that in this specification, the first position information, the second position information, the first position label, and the second position label are only used to distinguish the calculated value and the true value of the position information of clothing and characters in the image to facilitate the description of the embodiments of the present disclosure, and are not intended to limit the scope of the present disclosure.

[0058] According to some embodiments, the target detection module 220 may be a YOLO (You Only Look Once) network (specifically, it may be a v1 version, a v2 version, a v3 version, etc. of the YOLO network), RCNN (Region Convolutional Neural Networks), Faster-RCNN (Fast RCNN), etc., but is not limited thereto.

[0059] In an embodiment of the present disclosure, the clothing and person joint detection model is trained based on sample images. Figure 2 The input and output of the model shown in the figure, the sample image of the embodiment of the present disclosure is an image annotated with the category label and the first position label of each clothing, and the character attribute label and the second position label of each character. Among them, the area indicated by the second position label is the minimum circumscribed rectangular area of ​​the area indicated by the first position labels of all clothing on the corresponding character.

[0060] According to an embodiment of the present disclosure, the area indicated by the second position label of the person marked in the sample image is not the area where the person is actually located, but the minimum circumscribed rectangular area of ​​the area where all the clothing worn by the person is located. The minimum circumscribed rectangular area only includes the torso of the person wearing the clothing, does not include the face, and does not pay attention to the posture of the person. Since the area indicated by the second position label marked in the sample image does not include the face, and does not pay attention to the posture of the person, the clothing and person joint detection model generated by training is not sensitive to the face and the posture of the person, and does not refer to the facial features when identifying the attribute information of the person. Even in the case of no face (for example, the image only includes the back of the person, or the image only includes the torso of the person, etc.) and various postures (for example, squatting, sitting, running, jumping, forward, back, etc.), the clothing and person joint detection model can still accurately identify the person's attribute information.

[0061] Figure 3 A schematic diagram of an exemplary sample image 300 for training a clothing-person joint detection model according to an embodiment of the present disclosure is shown.

[0062] like Figure 3 As shown, the sample image includes two pieces of clothing (i.e., clothing a and clothing b) and a person (i.e., person c). It is necessary to mark the categories and first position labels of the two pieces of clothing, as well as the person attribute information and second position label of the person.

[0063] For example, the category of clothing a can be marked as tops, and the first position label is (x1, y1, w1, h1). The first position label is used to indicate the area where clothing a is located in the sample image 300, that is, the area marked by the rectangular frame 310. In the first position label (x1, y1, w1, h1), x1 and y1 are the horizontal coordinate and the vertical coordinate of the top left corner vertex A of the rectangular frame 310, respectively, and w1 and h1 are the width and height of the rectangular frame 310, respectively.

[0064] Similarly, the category of clothing b can be marked as bottoms, and the first position label is (x2, y2, w2, h2). The first position label is used to indicate the area where clothing b is located in the sample image 300, that is, the area marked by the rectangular frame 320. In the first position label (x2, y2, w2, h2), x2 and y2 are the horizontal coordinate and vertical coordinate of the top left corner vertex B of the rectangular frame 320, respectively, and w2 and h2 are the width and height of the rectangular frame 320, respectively.

[0065] In addition, the character attribute information of character c can be marked as a female youth, and the second position label is (x3, y3, w3, h3). The area indicated by the second position label is the minimum circumscribed rectangular area of ​​the area indicated by the first position label of all the clothing (i.e., clothing a and clothing b) on character c, that is, the area indicated by the minimum circumscribed rectangle 330 of rectangular frame 310 and rectangular frame 320. In the second position label (x3, y3, w3, h3), x3 and y3 are respectively the horizontal coordinate and the vertical coordinate of the top left corner vertex C of rectangular frame 330, and w3 and h3 are respectively the width and height of rectangular frame 330.

[0066] Based on the trained clothing and person joint detection model, the server 120 can provide clothing search services to the client application in the client device, and accurately search for clothing products that are the same or similar to the clothing to be searched in the image to be searched uploaded by the user.

[0067] Figure 4 FIG. 4 is a flowchart of a clothing search method 400 according to an embodiment of the present disclosure. The method 400 may be performed on a server (eg, Figure 1 , that is, the execution subject of each step of method 400 may be Figure 1 The server 120 shown in FIG. Figure 4 As shown, method 400 includes steps 410, 420, and 430. In step 410, the category and character attribute information of the clothing to be searched in the image to be searched are determined; in step 420, the image features of the clothing to be searched are extracted, and according to the image features, a candidate clothing set of the clothing to be searched is determined from a plurality of clothing items of the same category as the clothing to be searched that have been stored; in step 430, at least one target clothing is determined from the candidate clothing set according to the character attribute information, and the at least one target clothing is used as the search result of the clothing to be searched.

[0068] According to the embodiments of the present disclosure, by determining the category of the clothing to be searched, and determining the candidate clothing set from multiple clothing products of the same category as the clothing to be searched that have been stored according to the image features of the clothing to be searched, the search efficiency is improved, the relevance of the candidate clothing set to the clothing to be searched is ensured, and the accuracy of the search results is preliminarily ensured. By determining the character attribute information of the clothing to be searched, the group of people to whom the clothing to be searched is applicable is determined. The target clothing is screened out from the candidate clothing set according to the character attribute information, further ensuring the accuracy of the search results.

[0069] The various steps of method 400 are described in detail below.

[0070] refer to Figure 4 , in step 410, the category of the clothing to be searched and the character attribute information in the image to be searched are determined.

[0071] The image to be searched is an image uploaded by the user through a client device.

[0072] The image to be searched may include one or more clothing. When the image to be searched includes only one clothing, the clothing is the clothing to be searched.

[0073] When the clothing to be searched includes multiple clothing, the clothing to be searched may be any one of the multiple clothing. According to one embodiment, each clothing in the image to be searched may be used as clothing to be searched. In this embodiment, each clothing in the image to be searched is used as clothing to be searched, its category and character attribute information are determined, and steps 420 and 430 are performed to obtain search results corresponding to each clothing in the image to be searched. Subsequently, in response to the user's selection operation on the clothing in the image to be searched, the search results for the selected clothing may be returned to the user.

[0074] According to another embodiment, the clothing to be searched can be determined based on the interactive operation of the user on the client device. For example, the position information of each clothing included in the image to be searched can be determined, and the position information can be sent to the client device so that the image to be searched can be displayed on the screen of the client device, and the position of each clothing can be marked in the image to be searched; in response to the user's selection operation of clothing, the clothing to be searched is determined. The specific implementation steps of this embodiment can refer to the clothing search method 700 below (especially refer to steps 710 to 740 in method 700). In this embodiment, the position information of each clothing in the image to be searched can be determined by using the aforementioned clothing and person joint detection model, and the image to be searched is input into the model, and the first position information of each clothing output by the model is the position information of each clothing. In addition to the method of using the aforementioned clothing and person joint detection model, other methods can also be used to determine the position information of each clothing in the image to be searched. For example, the image to be searched is input into other target detection models, and the other target detection models detect and output the position information of each clothing in the image to be searched.

[0075] The categories of clothing to be searched may be, for example, relatively general categories such as tops, bottoms, and shoes, or subdivided categories such as coats, sweatshirts, T-shirts, shorts, and trousers, or more subdivided categories that combine information such as the material and style of the clothing, such as woolen coats, denim coats, and neutral-style coats. The present disclosure does not limit the specific settings of clothing categories.

[0076] According to some embodiments, the category of the clothing to be searched can be determined by the following method: input the image to be searched into a preset clothing and person joint detection model so that the clothing and person joint detection model outputs the category of the clothing to be searched. The structure of the clothing and person joint detection model can refer to Figure 2 And the relevant text description above.

[0077] The character attribute information of the clothing to be searched includes, for example, gender, age, etc. Age can be, for example, an age group (e.g., elderly / middle-aged / young / juvenile / child, etc.), or a specific age value (e.g., 20 years old, 30 years old, etc.). The character attribute information of the clothing to be searched can indicate the group of people to whom the clothing to be searched is suitable.

[0078] According to some embodiments, the character attribute information of the clothing to be searched may be determined according to the following steps 412 and 414:

[0079] In step 412, the target person in the image to be searched corresponding to the clothing to be searched is determined.

[0080] In step 414, the character attribute information of the target person is used as the character attribute information of the clothing to be searched.

[0081] In layman's terms, the target person corresponding to the clothing to be searched is the person wearing the clothing to be searched in the image to be searched. Therefore, the person attribute information of the person wearing the clothing to be searched can be used as the person attribute information of the clothing to be searched, indicating that the clothing to be searched is suitable for people with the person attribute information.

[0082] According to some embodiments, the target person in the image to be searched corresponding to the clothing to be searched may be determined in the following manner, that is, the above step 412 further includes steps 4122, 4124 and 4126:

[0083] In step 4122, first position information of the clothing to be searched in the image to be searched is determined.

[0084] In step 4124, second position information of each person included in the image to be searched is determined.

[0085] The first position information of the clothing to be searched in the image to be searched in step 4122 and the second position information of each person in the image to be searched in step 4124 can be determined, for example, by the aforementioned clothing and person joint detection model, that is: the image to be searched is input into the preset clothing and person joint detection model, so that the clothing and person joint detection model outputs the first position information of the clothing to be searched and the second position information of each person.

[0086] The clothing attribute joint detection model can detect both clothing and people at the same time, greatly improving the detection efficiency. In addition, by performing simultaneous and joint detection on clothing and people, the contextual information in the input image is fully considered, thus improving the accuracy of the detection results.

[0087] In step 4126, the target person corresponding to the clothing to be searched is determined by matching the first position information with the second position information of each of the persons.

[0088] Specifically, the first position information can be used to indicate the first area where the clothing to be searched is located in the image to be searched, and the second position information can be used to indicate the second area where the person to be searched is located in the image to be searched. Accordingly, step 4126 can respectively calculate the intersection over union (IoU) of the first area and the second area of ​​each person in each person, and take the person with the largest IoU as the target person corresponding to the clothing to be searched.

[0089] The target person is determined by calculating the intersection and union ratio of the first area and the second area, which has a small amount of calculation and high efficiency. In addition, the calculation process does not require reference to facial features, clothing or character morphology. Even if there is no face in the image to be searched, and the clothing / character morphology is complex and diverse, the target person corresponding to the image to be detected can be accurately determined, which has good universality and practicality.

[0090] Figures 5A to 5C Schematic diagram of three images 500A to 500C to be searched according to an embodiment of the present disclosure is shown. Figures 5A to 5C To illustrate the method of determining the target person corresponding to the clothing to be searched.

[0091] refer to Figure 5A , the image to be searched 500A includes only one piece of clothing, which is the clothing to be searched. After the aforementioned steps 4122 and 4124, the first position information pos1_info of the clothing to be searched and the second position information pos2_info of the person are determined. The first position information pos1_info is used to indicate the first area where the clothing to be searched is located, i.e. Figure 5A The second position information pos2_info is used to indicate the second area where the character is located, that is, Figure 5A In step 4126, the intersection and union ratio of the first area of ​​the clothing to be searched and the second area of ​​each person is calculated, that is, the intersection and union ratio of the rectangular box 512 and the rectangular box 514 is calculated, and the person with the largest intersection and union ratio is taken as the target person corresponding to the clothing to be searched. In fact, since the image to be searched 500A includes only one person, the person must be taken as the target person corresponding to the clothing to be searched.

[0092] refer to Figure 5B , the image to be searched 500B includes three pieces of clothing, each of which can be used as clothing to be searched. After the aforementioned steps 4122 and 4124, it is determined that the first position information of the three pieces of clothing to be searched are pos1_info1, pos1_info2, pos1_info3 and the second position information of the person pos2_info. The first position information pos1_info1, pos1_info2, pos1_info3 are respectively used to indicate the first area where the three pieces of clothing to be searched are located, that is, Figure 5B The second position information pos2_info is used to indicate the second area where the person is located, that is, Figure 5BIn step 4126, the intersection and union ratio of the first area of ​​the clothing to be searched and the second area of ​​each person is calculated, that is, the intersection and union ratio of the rectangular box 522 (or the rectangular boxes 524, 526) and the rectangular box 528 is calculated, and the person with the largest intersection and union ratio is taken as the target person corresponding to the clothing to be searched. In fact, since the image to be searched 500B only includes one person, the person must be taken as the target person corresponding to the clothing to be searched.

[0093] refer to Figure 5A , Figure 5B It can be seen that when the image to be searched includes only one person, the person must be taken as the person corresponding to the clothing to be searched. Therefore, according to some embodiments, in step 412, when the image to be searched includes only one person, the person can be directly taken as the person corresponding to the clothing to be searched, without having to determine the first position information, the second position information and match the first position information with the second position information according to steps 4122 to 4126, thereby avoiding unnecessary calculation steps and improving calculation efficiency. The number of people included in the image to be searched can be determined, for example, using the aforementioned clothing and person joint detection model, or other target detection models.

[0094] refer to Figure 5C , the image to be searched 500C includes multiple garments, each of which can be used as a garment to be searched. After the aforementioned steps 4122 and 4124, the first position information of the garment to be searched and the second position information of each person are determined. The first position information of each garment to be searched is used to indicate the first area where the garment to be searched is located, i.e. Figure 5C The second position information of each character is used to indicate the second area where the character is located, that is, Figure 5C The area indicated by the rectangular boxes 538, 548, and 558 in the figure. Taking the clothing to be searched as the clothing in the rectangular box 532 as an example, in step 4126, the intersection and union ratio of the first area of ​​the clothing to be searched and the second area of ​​each person (i.e., the person A, B, and C in the figure) is calculated respectively, that is, the intersection and union ratio of the rectangular box 532 and the rectangular boxes 538, 548, and 558 is calculated respectively, and the person corresponding to the rectangular box with the largest intersection and union ratio is taken as the target person corresponding to the clothing to be searched. For example, after calculation, the intersection and union ratio of the rectangular box 532 and the rectangular box 538 is the largest, so the person in the rectangular box 538 is the target person corresponding to the clothing to be searched.

[0095] The intersection-and-union ratio is also called the overlap ratio. The intersection-and-union ratio of two rectangular boxes is the ratio of the area of ​​their overlapping regions to the total area covered by the two boxes. Figure 6FIG. 4 is a schematic diagram showing a method for calculating the intersection-over-union ratio according to an embodiment of the present disclosure. Figure 6 As shown, the intersection-and-joint ratio of rectangular frame 610 and rectangular frame 620 is the ratio of the area of ​​shaded region 630 (ie, rectangular frame 610∩rectangular frame 620) to the total area covered by rectangular frames 610 and 620 (ie, rectangular frame 610∪rectangular frame 620).

[0096] After the target person corresponding to the clothing to be searched is determined in step 412 , in step 414 , the person attribute information of the target person is used as the person attribute information of the clothing to be searched.

[0097] According to some embodiments, the character attribute information of the target person can be determined, for example, by the aforementioned clothing and person joint detection model, that is, the image to be searched is input into a preset clothing and person joint detection model so that the clothing and person joint detection model outputs the character attribute information of each character for determining the attribute information of the target person. It can be understood that since the target person is one of the above-mentioned characters, the character attribute information of the target person can be determined based on the character attribute information of each character output by the clothing attribute joint detection model.

[0098] Continue to refer Figure 4 After determining the category of the clothing to be searched and the character attribute information in step 410, execute step 420.

[0099] In step 420, image features of the clothing to be searched are extracted, and based on the image features, a candidate clothing set of the clothing to be searched is determined from a plurality of stored clothing items of the same category as the clothing to be searched.

[0100] Compared with determining the candidate clothing set from all products or all clothing products, determining the candidate clothing set from multiple stored clothing items of the same category as the clothing to be searched improves the search efficiency, ensures the relevance of the candidate clothing set to the clothing to be searched, and preliminarily ensures the accuracy of the search results.

[0101] According to an embodiment, a partial image of the clothing to be searched can be cropped from the image to be searched based on the first position information of the clothing to be searched output by the clothing and person joint detection model, and then the image features of the partial image can be extracted. The image features can be, for example, HOG (Histogram of Oriented Gradient) features, hash features, etc., but are not limited thereto. The extracted image features of the clothing to be searched are usually represented as a feature vector.

[0102] After extracting the image features of the clothing to be searched, a candidate clothing set of the clothing to be searched is determined from a plurality of clothing items of the same category as the clothing to be searched that have been stored, based on the image features. According to some embodiments, the step of determining a candidate clothing set of the clothing to be searched from a plurality of clothing items of the same category as the clothing to be searched that have been stored, based on the image features, further includes the following steps 422, 424:

[0103] In step 422, the similarity between the image feature and the image feature of each of the plurality of apparel items is calculated respectively.

[0104] According to some embodiments, the database 130 stores image features of each clothing item (for example, the server 120 can extract image features of images of all clothing items offline and store them in the database 130). In step 422, first, according to the category of the clothing to be searched determined in step 410, multiple clothing items of the same category as the clothing to be searched are screened out from the database (for example, if the clothing to be searched is a T-shirt, then the T-shirt items in the database are screened out). Then, the image features of the multiple clothing items are obtained, and the similarity between the image features of the image to be searched and the image features of each of the multiple clothing items is calculated respectively. In some embodiments, the image features of the image to be searched and the image features of the clothing items are both represented in the form of feature vectors, and accordingly, the similarity between the image features of the image to be searched and the image features of the clothing items can be, for example, the cosine similarity of the corresponding two feature vectors.

[0105] In step 424, a preset number of clothing items with the greatest similarity are used as a candidate clothing set for clothing to be searched; or clothing items with a similarity greater than a preset threshold are used as a candidate clothing set for clothing to be searched.

[0106] Continue to refer Figure 4 After determining the candidate clothing set of the clothing to be searched in step 420, step 430 is executed.

[0107] In step 430, at least one target garment is determined from the candidate garment set according to the character attribute information, and the at least one target garment is used as a search result of the garment to be searched.

[0108] The character attribute information of the clothing to be searched can indicate the group of people that the clothing to be searched is suitable for. The target clothing is selected from the candidate clothing set according to the character attribute information, which further ensures the accuracy of the search results and makes the search results more in line with user expectations.

[0109] According to some embodiments, the database 130 stores product description information of the product. Accordingly, for each candidate clothing in the candidate clothing set, the database 130 also stores product description information of the candidate clothing. In step 430, the product description information of each candidate clothing in the candidate clothing set is obtained, and the candidate clothing whose product description information includes the character attribute information is used as the target clothing. The determined target clothing is the search result of the clothing to be searched.

[0110] According to some embodiments, after obtaining the search results of the clothing to be searched, the target clothing in the search results is sorted according to the similarity of the image features in step 422, and the sorted search results are sent to the client device to be presented to the user, thereby further improving the probability of hitting the clothing that the user expects to search for and optimizing the user experience.

[0111] According to some embodiments, see Figure 2 As well as the above, method 400 also includes the step of configuring the structure of the clothing and person joint detection model, that is, configuring the clothing and person joint detection model to include: a feature extraction module, the feature extraction module includes a variable convolution kernel, and the feature extraction module is configured to extract feature information of the image to be searched; and a target detection module, configured to process the feature information extracted by the feature extraction module to determine the category and first position information of each clothing in the image to be searched, and the person attribute information and second position information of each person.

[0112] The clothing and person joint detection model of the disclosed embodiment can simultaneously detect clothing and people, that is, detect the category and first position information of each clothing in the input image, as well as the person attribute information and second position information of each person, greatly improving the detection efficiency. In addition, by performing simultaneous and joint detection of clothing and people, the contextual information in the input image is fully considered, thereby improving the accuracy of the detection results. By adopting a variable convolution kernel, the detection accuracy of irregular clothing and people in different postures is significantly improved. According to some embodiments, see Figure 2 , Figure 3 As mentioned above, the clothing and person joint detection model is trained based on sample images, wherein the sample images are images annotated with the category label and the first position label of each clothing, and the person attribute label and the second position label of each person, and the area indicated by the second position label is the minimum circumscribed rectangular area of ​​the area indicated by the first position labels of all clothing on the corresponding person.

[0113] According to an embodiment of the present disclosure, the area indicated by the second position label of the person marked in the sample image is not the area where the person is actually located, but the minimum circumscribed rectangular area of ​​the area where all the clothing worn by the person is located. The minimum circumscribed rectangular area only includes the torso of the person wearing the clothing, does not include the face, and does not pay attention to the posture of the person. Since the area indicated by the second position label marked in the sample image does not include the face, and does not pay attention to the posture of the person, the clothing and person joint detection model generated by training is not sensitive to the face and the posture of the person, and does not refer to the facial features when identifying the attribute information of the person. Even in the case of no face (for example, the image only includes the back of the person, or the image only includes the torso of the person, etc.) and various postures (for example, squatting, sitting, running, jumping, forward, back, etc.), the clothing and person joint detection model can still accurately identify the person's attribute information.

[0114] Figure 7 FIG. 7 is a flowchart of a clothing search method 700 according to another embodiment of the present disclosure. The method 700 is performed on a client device (eg, Figure 1 The execution of each step of method 700 may be performed at the client device 101, 102, 103, 104, 105, 106) shown in FIG. Figure 1 The client devices 101, 102, 103, 104, 105 and 106 are shown in FIG. Figure 7 As shown, method 700 includes steps 710 to 760. In step 710, a clothing search request is sent to a server, the clothing search request including an image to be searched; in step 720, the location information of each clothing in the image to be searched is received from the server; in step 730, the image to be searched is displayed in a first area of ​​the screen, and the location of each clothing in the image to be searched is marked; in step 740, in response to the user's selection operation on clothing, the clothing to be searched is determined; in step 750, the search result of the clothing to be searched is received from the server; in step 760, the search result is displayed in a second area of ​​the screen.

[0115] According to an embodiment of the present disclosure, a user can search for clothing through an image. Based on the image to be searched displayed in the first area of ​​the screen and the position of each clothing marked in the image to be searched, the user can select the clothing to be searched that he or she wishes to search from the image to be searched, and the search results of the clothing to be searched are displayed in real time in the second area of ​​the screen, thereby improving the fluency of clothing search interaction and optimizing the user experience.

[0116] Each step of method 700 is described in detail below.

[0117] like Figure 7 As shown, in step 710, a clothing search request is sent to a server, wherein the clothing search request includes an image to be searched.

[0118] In some embodiments, the user may upload an image to be searched and send a clothing search request through an image search interface provided by a client application in a client device.

[0119] Fig. 8A FIG. 8 is a partial schematic diagram of an exemplary clothing search interface 800A of a client application in a client device. Fig. 8A As shown, a search box 810 is provided at the top of the clothing search interface 800A, and an image search interface 812 is provided on the right side of the search box. The user can click the image search interface 812, take an image and upload the image as the image to be searched, or select an image (such as a street shot of a celebrity) from the locally stored images as the image to be searched and upload it. Uploading the image to be searched is to send a clothing search request.

[0120] In step 720, the location information of each garment in the image to be searched is received from the server.

[0121] The position information of each clothing item can be determined by the server using the aforementioned clothing and person joint detection model (refer to the above, the first position information output by the clothing and person joint detection model is the position information of each clothing item). The position information of clothing items is used to indicate the position of the clothing item in the image to be searched. Referring to the above, the position information of clothing items can be expressed in the form of (x, y, w, h), where x and y are the horizontal and vertical coordinates of the upper left corner vertex of the position rectangular box of the clothing item in the image to be searched, and w and h are the width and height of the position rectangular box of the clothing item.

[0122] In step 730, the image to be searched is displayed in a first area of ​​the screen, and the position of each garment is marked in the image to be searched.

[0123] The first area of ​​the screen may be, for example, the upper area of ​​the screen. In step 730, the position of each piece of clothing is marked in the image to be searched according to the acquired position information of each piece of clothing.

[0124] According to some embodiments, a position marker is used to mark the position of each garment in the image to be searched, wherein the position marker of the garment to be searched is different from the position markers of other garments, so as to distinguish the garment to be searched from other garments in the image to be searched.

[0125] Further, according to some embodiments, the location mark of the clothing to be searched is configured to have an area larger than the area of ​​the location marks of other clothing, so that the location mark of the clothing to be searched is more eye-catching visually, so as to highlight the clothing to be searched. In other embodiments, the location mark of the clothing to be searched can also be configured to have a brighter color than the location marks of other clothing, or the location mark of the clothing to be searched can be highlighted, etc., to achieve the same effect (making the location mark of the clothing to be searched more eye-catching visually, so as to highlight the clothing to be searched).

[0126] It should be noted that, in the case where the image to be searched includes multiple clothing, in step 730, the user has not yet selected the clothing to be searched, and accordingly, the clothing to be searched cannot be highlighted in the current screen, and the current screen has no content displayed in other areas except the first area where the image to be searched is displayed and the area where the image search entrance is displayed, and blank space appears. In order to improve the user experience and avoid blank space in other areas of the screen, according to some embodiments, method 700 also includes the steps of: receiving the search results of the initial clothing to be searched returned by the server; and displaying the search results of the initial clothing to be searched in the second area of ​​the screen; wherein the initial clothing to be searched is the clothing located at the center of the image to be searched, or the clothing with the largest area occupied by the position. The search results of the initial clothing to be searched are determined by the server, for example, using the aforementioned clothing search method 400.

[0127] Continue to refer Fig. 8A , the user passes Fig. 8A The client device then receives the location information of each garment in the image 500B to be searched, and receives the search results of the initial garment to be searched. Fig. 8A The interface 800A shown is transformed into Figure 8B Interface 800B is shown.

[0128] like Figure 8B As shown, the area marked by the dotted rectangular frame 820 is the first area of ​​the screen, and the area marked by the dotted rectangular frame 830 is the second area of ​​the screen. The first area 820 displays the image 500B to be searched, and the position of each garment is marked with a position mark. Figure 8BIn the figure, the initial clothing to be searched is the pants in Figure 500B, and its position is marked by rectangular frame 821; the positions of other clothing are marked by dots 822 and 823. The area of ​​rectangular frame 821 is larger than the area of ​​dots 822 and 823, which is more eye-catching visually, achieving the effect of highlighting the clothing to be searched. Furthermore, the brightness of each pixel in rectangular frame 821 can be increased to make the clothing to be searched highlighted and more eye-catching visually. The search results of the initial clothing to be searched (pants) are displayed in the second area 830 of the screen.

[0129] In step 740 , in response to the user's selection operation on clothing, clothing to be searched is determined.

[0130] The user's selection operation on the clothing may be, for example, a gesture operation such as single-clicking, double-clicking, long-pressing, etc. on the location mark of the clothing. The clothing selected by the user through the selection operation is the clothing to be searched.

[0131] In step 750, the search result of the clothing to be searched returned by the server is received.

[0132] The search results of the clothing to be searched can be determined, for example, by using the aforementioned clothing search method 400, which can provide accurate search results and better meet user expectations.

[0133] In step 760, the search results are displayed in a second area of ​​the screen.

[0134] Continue to refer Figure 8B ,exist Figure 8B In the interface 800B shown, the user can click the position mark 822 to select the T-shirt at the position mark 822 as the clothing to be searched. Figure 8B The interface 800B shown is transformed into Figure 8C Interface 800C is shown.

[0135] like Figure 8C As shown, the first area 820 of the screen displays the image 500B to be searched, and the location of each garment is marked with a location marker. Figure 8C In the figure, the area indicated by the dotted rectangular frame 820 is the first area of ​​the screen, and the area indicated by the dotted rectangular frame 830 is the second area of ​​the screen. The first area 820 displays the image 500B to be searched, and the position of each garment is indicated by a position mark. Figure 8CIn the figure, the clothing to be searched is the T-shirt in Figure 500B, and its position is marked by rectangular frame 824; the positions of other clothing are marked by dots 825 and 826. The area of ​​rectangular frame 824 is larger than the area of ​​dots 825 and 826, which is more eye-catching visually, achieving the effect of highlighting the clothing to be searched. Furthermore, the brightness of each pixel in rectangular frame 824 can be increased to make the clothing to be searched highlighted and more eye-catching visually. The search results of the clothing to be searched (T-shirt) are displayed in the second area 830 of the screen.

[0136] Fig. 9 FIG. 9 is a structural block diagram of a clothing search device 900 according to an embodiment of the present disclosure. Fig. 9 As shown, the apparatus 900 includes an identification module 910 , a first search module 920 , and a second search module 930 .

[0137] The identification module 910 is configured to determine the category of the clothing to be searched and the character attribute information in the image to be searched.

[0138] The first search module 920 is configured to extract image features of the clothing to be searched, and determine a candidate clothing set of the clothing to be searched from a plurality of stored clothing items of the same category as the clothing to be searched according to the image features.

[0139] The second search module 930 is configured to determine at least one target clothing from the candidate clothing set according to the character attribute information, and use the at least one target clothing as the search result of the clothing to be searched.

[0140] According to the embodiments of the present disclosure, by determining the category of the clothing to be searched, and determining the candidate clothing set from multiple clothing products of the same category as the clothing to be searched that have been stored according to the image features of the clothing to be searched, the search efficiency is improved, the relevance of the candidate clothing set to the clothing to be searched is ensured, and the accuracy of the search results is preliminarily ensured. By determining the character attribute information of the clothing to be searched, the group of people to whom the clothing to be searched is applicable is determined. The target clothing is screened out from the candidate clothing set according to the character attribute information, further ensuring the accuracy of the search results.

[0141] Fig.10 FIG. 1 shows a structural block diagram of a clothing search device 1000 according to an embodiment of the present disclosure. Fig.10 As shown, the device 1000 includes a request module 1010 , a receiving module 1020 , a display module 1030 and an interaction module 1040 .

[0142] The request module 1010 is configured to send a clothing search request to the server, wherein the clothing search request includes an image to be searched.

[0143] The receiving module 1020 is configured to receive the location information of each clothing in the image to be searched and the search result of the clothing to be searched returned by the server.

[0144] The display module 1030 is configured to display the image to be searched in a first area of ​​the screen, mark the location of each clothing in the image to be searched, and display the search result in a second area of ​​the screen.

[0145] The interaction module 1040 is configured to determine the clothing to be searched in response to the user's selection operation on the clothing.

[0146] According to an embodiment of the present disclosure, a user can search for clothing through an image. Based on the image to be searched displayed in the first area of ​​the screen and the position of each clothing marked in the image to be searched, the user can select the clothing to be searched that he or she wishes to search from the image to be searched, and the search results of the clothing to be searched are displayed in real time in the second area of ​​the screen, thereby improving the fluency of clothing search interaction and optimizing the user experience.

[0147] It should be understood that Fig. 9 The various modules of the apparatus 900 shown in FIG. Figure 4 The steps in the method 400 described above correspond to each other, and Fig.10 The various modules of the device 1000 shown in FIG. Figure 7 Thus, the operations, features, and advantages described above for method 400 are also applicable to device 900 and the modules included therein, and the operations, features, and advantages described above for method 700 are also applicable to device 1000 and the modules included therein. For the sake of brevity, some operations, features, and advantages are not described in detail herein.

[0148] Although specific functions are discussed above with reference to specific modules, it should be noted that the functions of the various modules discussed herein can be divided into multiple modules, and / or at least some functions of multiple modules can be combined into a single module. The specific module execution action discussed herein includes that the specific module itself performs the action, or alternatively the specific module calls or otherwise accesses another component or module that performs the action (or performs the action together with the specific module). Therefore, the specific module that performs the action can include the specific module itself that performs the action and / or the specific module calls or otherwise accesses another module that performs the action. For example, the first search module 920 and the second search module 930 described above can be combined into a single module in some embodiments. For another example, the request module 1010 can include a receiving module 1020 in some embodiments.

[0149] It should also be understood that various techniques may be described herein in the general context of software hardware elements or program modules. Fig. 9 and 10 The various modules described can be implemented in hardware or in hardware in combination with software and / or firmware. For example, these modules can be implemented as computer program codes / instructions, which are configured to be executed in one or more processors and stored in a computer-readable storage medium. Alternatively, these modules can be implemented as hardware logic / circuits. For example, in some embodiments, one or more of the identification module 910, the first search module 920, the second search module 930, the request module 1010, the receiving module 1020, the display module 1030, and the interaction module 1040 can be implemented together in a system on chip (System on Chip, SoC). SoC may include an integrated circuit chip (which includes a processor (e.g., a central processing unit (CPU), a microcontroller, a microprocessor, a digital signal processor (DSP), etc.), a memory, one or more communication interfaces, and / or one or more components in other circuits), and may optionally execute the received program code and / or include embedded firmware to perform functions.

[0150] According to an embodiment of the present disclosure, an electronic device, a readable storage medium and a computer program product are also provided.

[0151] refer to Fig.11 , a block diagram of an electronic device 1100 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0152] like Fig.11As shown, the device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0153] Multiple components in the device 1100 are connected to the I / O interface 1105, including: an input unit 1106, an output unit 1107, a storage unit 1108, and a communication unit 1109. The input unit 1106 can be any type of device that can input information to the device 1100. The input unit 1106 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 1107 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 1108 can include but is not limited to a disk and an optical disk. The communication unit 1109 allows the device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth™ device, a 1302.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.

[0154] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as the aforementioned method 400 or method 700. For example, in some embodiments, the method 400 or method 700 may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1103 and executed by the computing unit 1101, one or more steps of the method 400 or method 700 described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to execute the method 400 or the method 700 in any other appropriate manner (eg, by means of firmware).

[0155] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0156] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0157] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0158] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0159] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0160] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0161] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0162] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A clothing search method, comprising: Determine the category of the clothing to be searched and the person attribute information in the image to be searched, including: Determine first position information of the clothing to be searched in the image to be searched, where the first position information is used to indicate a first area in the image to be searched where the clothing to be searched is located; Determine second position information of each person included in the image to be searched in the image to be searched, where the second position information is used to indicate a second area where the person is located in the image to be searched; respectively calculating an intersection-over-union ratio between the first region and a second region of each of the characters; The person with the largest intersection-over-union ratio is used as the target person corresponding to the clothing to be searched; and Using the character attribute information of the target person as the character attribute information of the clothing to be searched; Extracting image features of the clothing to be searched, and determining a candidate clothing set of the clothing to be searched from a plurality of stored clothing products of the same category as the clothing to be searched according to the image features; At least one target clothing item is determined from the candidate clothing set according to the character attribute information, and the at least one target clothing item is used as a search result of the clothing item to be searched.

2. The method according to claim 1, wherein: The image to be searched is input into a preset clothing and person joint detection model so that the clothing and person joint detection model outputs the first position information of the clothing to be searched, as well as the second position information and person attribute information of each person, for determining the person attribute information of the target person.

3. The method according to claim 2, further comprising: The clothing and person joint detection model is configured to include: A feature extraction module, the feature extraction module comprising a variable convolution kernel, the feature extraction module being configured to extract feature information of the image to be searched; and The target detection module is configured to process the feature information extracted by the feature extraction module to determine the category and first position information of each clothing in the image to be searched, and the character attribute information and second position information of each character.

4. The method according to claim 2, wherein: The clothing and person joint detection model is trained based on sample images. The sample image is an image annotated with the category label and the first position label of each clothing, and the character attribute label and the second position label of each character. The area indicated by the second position tag is the minimum circumscribed rectangular area of ​​the areas indicated by the first position tags of all the clothing on the corresponding person.

5. The method according to claim 1, wherein: Determining a candidate clothing set of the clothing to be searched from a plurality of stored clothing products of the same category as the clothing to be searched according to the image features comprises: respectively calculating the similarity between the image feature and the image feature of each of the plurality of clothing items; taking a preset number of clothing items with the greatest similarity as a candidate clothing set for the clothing to be searched; or The clothing items with similarity greater than a preset threshold are used as a candidate clothing set for the clothing to be searched.

6. The method according to claim 1, wherein: Determining at least one target garment from the candidate garment set according to the character attribute information of the garment to be searched comprises: The candidate clothing including the character attribute information in the commodity description information is used as the target clothing.

7. The method according to claim 1, wherein: The character attribute information includes at least one of gender and age.

8. The method according to claim 1, further comprising: Determine the position information of each garment included in the image to be searched, and send the position information to the client device so as to display the image to be searched on the screen of the client device and mark the position of each garment in the image to be searched; In response to the user's selection operation on clothing, clothing to be searched is determined.

9. A clothing search device, comprising: The recognition module is configured to determine the category of the clothing to be searched and the person attribute information in the image to be searched through the following steps: Determine first position information of the clothing to be searched in the image to be searched, where the first position information is used to indicate a first area in the image to be searched where the clothing to be searched is located; Determine second position information of each person included in the image to be searched in the image to be searched, where the second position information is used to indicate a second area where the person is located in the image to be searched; respectively calculating an intersection-over-union ratio between the first region and a second region of each of the characters; The person with the largest intersection-over-union ratio is used as the target person corresponding to the clothing to be searched; as well as Using the character attribute information of the target person as the character attribute information of the clothing to be searched; A first search module is configured to extract image features of the clothing to be searched, and determine a candidate clothing set of the clothing to be searched from a plurality of stored clothing products of the same category as the clothing to be searched according to the image features; as well as The second search module is configured to determine at least one target clothing from the candidate clothing set according to the character attribute information, and use the at least one target clothing as the search result of the clothing to be searched.

10. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.

12. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.