CN104200249B - A kind of method of clothing automatic collocation, apparatus and system - Google Patents

A kind of method of clothing automatic collocation, apparatus and system Download PDF

Info

Publication number
CN104200249B
CN104200249B CN201410424590.0A CN201410424590A CN104200249B CN 104200249 B CN104200249 B CN 104200249B CN 201410424590 A CN201410424590 A CN 201410424590A CN 104200249 B CN104200249 B CN 104200249B
Authority
CN
China
Prior art keywords
picture
characteristic value
collocation
clothing
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410424590.0A
Other languages
Chinese (zh)
Other versions
CN104200249A (en
Inventor
谢水宁
冉会琼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Chongqing University of Post and Telecommunications
Original Assignee
Tencent Technology Shenzhen Co Ltd
Chongqing University of Post and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd, Chongqing University of Post and Telecommunications filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410424590.0A priority Critical patent/CN104200249B/en
Publication of CN104200249A publication Critical patent/CN104200249A/en
Application granted granted Critical
Publication of CN104200249B publication Critical patent/CN104200249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of method of clothing automatic collocation, and device, the realization of wherein method includes:Obtain the first picture of the clothing for needing automatic collocation;Colour recognition, shape recognition and image recognition are carried out to first picture, the characteristic value of the characteristic value, the characteristic value of shape and pattern of color is obtained;Determine that the first picture correspondence clothing needs the clothing classification arranged in pairs or groups according to the characteristic value of the shape of first picture;Characteristic value according to the characteristic value of color, the characteristic value of shape and pattern of first picture, meet predetermined image collocation rule and pattern collocation rule in selection second picture, and meet the other second picture of the garment type, arranged in pairs or groups with first picture.The embodiment of the present invention can just realize the automatic collocation of clothing in terminal side, complete the management to clothing, without being realized by network service, reduce clothing automatic collocation cost of implementation.

Description

A kind of method of clothing automatic collocation, apparatus and system
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method of clothing automatic collocation, apparatus and system.
Background technology
Clothing collocation is the problem of needing in people's daily life to consider, to realize that clothing automatic collocation then may be used by computer To facilitate user to be managed the clothing of oneself wardrobe, and it is time saving quickly to provide the user the scheme for collocation of wearing the clothes It is laborsaving.
Clothing automatic collocation has its realistic meaning under many scenes, for example:A:User is when buying clothes, it is necessary to really Whether fixed oneself have that clothes, accessories can arrange in pairs or groups therewith;If so, can then save the flower of purchase collocation clothes accessories Take;B:When user has many clothes, clothes collocation is complex, by clothing automatic collocation, then can with When family arbitrarily selects wherein one, arranging scheme is quickly provided automatically, reduces the time that user pays for this.
The scheme of current clothing automatic collocation has the Intelligent clothes cabinet based on cloud computing, is that one kind can be logical with cloud service network The Intelligent clothes cabinet of letter.The implementation process of scheme is as follows:Clothes number in Intelligent clothes cabinet is gathered by Intelligent clothes cabinet information acquisition terminal It is believed that breath, and by its numbering;Network connecting module provides the connection with network and cloud service platform interface;User accesses and connect Mouth provides information and exchanges and transmit, and matches the signal with receiving transmission;Cloud service manager is managed using distributed file system From user interface obtain numbering after garment data information, cloud data storage center by MapReduce (MapReduce, A kind of programming model, is usually used in the concurrent operation of large-scale dataset) mode is to garment data information parallel memorizing.Its main profit Cloud service platform is transferred data to network connection platform, is realized by network service.
Above scheme is needed based on network service realization, and transmission data volume is big, and cost of implementation is higher.
The content of the invention
The embodiments of the invention provide a kind of method of clothing automatic collocation, apparatus and system, in terminal or clothes Clothing automatic collocation is realized in business device side, without being realized by network service, reduces clothing automatic collocation cost of implementation.
A kind of method of clothing automatic collocation, including:
Obtain the first picture of the clothing for needing automatic collocation;Colour recognition, shape recognition are carried out to first picture And image recognition, obtain the characteristic value of the characteristic value, the characteristic value of shape and pattern of color;
Determine that the first picture correspondence clothing needs the clothing arranged in pairs or groups according to the characteristic value of the shape of first picture Classification;
According to the characteristic value of the characteristic value of color, the characteristic value of shape and pattern of first picture, selection second Meet predetermined image collocation rule and pattern collocation rule in picture, and meet the other second picture of the garment type, Arranged in pairs or groups with first picture.
A kind of device of clothing automatic collocation, including:
Picture acquiring unit, the first picture for obtaining the clothing for needing automatic collocation;
Picture recognition unit, for carrying out colour recognition, shape recognition and image recognition to first picture, is obtained The characteristic value of the characteristic value of color, the characteristic value of shape and pattern;
Classification determination unit, the characteristic value for the shape according to first picture determines the first picture correspondence clothing Thing needs the clothing classification arranged in pairs or groups;
Picture selecting unit, for the characteristic value of color, the characteristic value of shape and pattern according to first picture Characteristic value, meet predetermined image collocation rule and pattern collocation rule in selection second picture, and meet the clothing The other second picture of species, is arranged in pairs or groups with first picture.
A kind of system of clothing automatic collocation, including:The terminal and server communicably connected;
Wherein, the server is the device of any one provided in an embodiment of the present invention;
The terminal, for sending specify message to be used to specify the clothing for needing automatic collocation first to the server Picture, or, for sending the first picture to the server and specifying first picture to need automatic collocation;
The server, is additionally operable to collocation result being sent to the terminal.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:When buying clothes, the first picture Can be obtained by shooting, can determine whether user currently has the clothing arranged in pairs or groups therewith by automatic collocation, reduce purchase Buy the waste of unnecessary clothing;When which kind of clothing selection wear, the first picture can be then that user specifies in local picture , the clothing that user currently arranges in pairs or groups therewith can be determined rapidly by automatic collocation, the time that user selects clothing is reduced.Using Scene also has a lot, and the embodiment of the present invention can just realize the automatic collocation of clothing in terminal side, completes the management to clothing, Without being realized by network service, clothing automatic collocation cost of implementation is reduced.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is present invention method schematic flow sheet;
Fig. 2 is the algorithm flow schematic diagram of shape recognition techniques of the embodiment of the present invention;
Fig. 3 is the algorithm flow schematic diagram of colour recognition technology of the embodiment of the present invention;
Fig. 4 is the calculation schematic flow sheet of image recognition technology of the embodiment of the present invention;
Fig. 5 is present invention method schematic flow sheet;
Fig. 6 is apparatus structure schematic diagram of the embodiment of the present invention;
Fig. 7 is apparatus structure schematic diagram of the embodiment of the present invention;
Fig. 8 is apparatus structure schematic diagram of the embodiment of the present invention;
Fig. 9 is apparatus structure schematic diagram of the embodiment of the present invention;
Figure 10 is apparatus structure schematic diagram of the embodiment of the present invention;
Figure 11 is apparatus structure schematic diagram of the embodiment of the present invention;
Figure 12 is apparatus structure schematic diagram of the embodiment of the present invention;
Figure 13 is server architecture schematic diagram of the embodiment of the present invention;
Figure 14 is system structure diagram of the embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step it is described in detail, it is clear that described embodiment is only embodiment of the invention a part of, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
The embodiments of the invention provide a kind of method of clothing automatic collocation, as shown in figure 1, including:
101:Obtain the first picture of the clothing for needing automatic collocation;Colour recognition, shape are carried out to above-mentioned first picture Identification and image recognition, obtain the characteristic value of the characteristic value, the characteristic value of shape and pattern of color;
In embodiments of the present invention, the first picture is the picture specified, it is necessary to which equipment completes automatic collocation for it;Realize clothing The device of thing automatic collocation can be terminal device or server;For different application scenarios, can have not Same application demand, for example:By taking the realization of end side as an example, when buying clothes, the first picture can be obtained by shooting 's;When which kind of clothing selection wear, the first picture then can user specified in local picture.With the realization of server side Exemplified by, user is in shopping at network, and the first picture that server can be specified with receiving terminal apparatus, server can also receive end The first picture and specify first picture to need to carry out automatic collocation that end equipment is sent.Obtain the mode of the first picture according to Different application scenarios can have different sources, and the source of the first picture does not influence the realization of the embodiment of the present invention, to this Inventive embodiments are refused to limit.
In embodiments of the present invention, image recognition, colour recognition, shape recognition, can be based on various ripe graphic diagrams As recognizer and color management algorithm, the embodiment of the present invention refuses this uniqueness restriction.In subsequent embodiment, it will Citing is illustrated respectively.
102:Determine that above-mentioned first picture correspondence clothing needs what is arranged in pairs or groups according to the characteristic value of the shape of above-mentioned first picture Clothing classification;
In embodiments of the present invention, the characteristic value of the shape of the first picture, can represent that the clothing in the first picture belongs to What clothing classification, such as:It is jacket, trousers, shoes, skirt, Western-style clothes or ornament etc..Clothing classification can basis Need to be preset, most broad classification should be included:Jacket, trousers, shoes, ornament;It is also possible to continue subdivision, Such as:Jacket can be Western-style clothes, shirt etc., also can be combined with, for example:The combination of jacket and trousers may be embodied in one-piece dress In;The classification of clothing can be set by technical staff according to the demand of classification, and the embodiment of the present invention does not make uniqueness to this Limit.
103:According to the characteristic value of the characteristic value of color, the characteristic value of shape and pattern of above-mentioned first picture, selection Meet predetermined image collocation rule and pattern collocation rule in second picture, and meet other second figure of above-mentioned garment type Piece, is arranged in pairs or groups with above-mentioned first picture.
In embodiments of the present invention, when buying clothes, the first picture can be obtained by shooting, by taking automatically With that can determine whether user currently has the clothing arranged in pairs or groups therewith, the waste of the unnecessary clothing of purchase is reduced;What is worn in selection During kind of clothing, the first picture then can user specified in local picture, user can be determined rapidly by automatic collocation The current clothing arranged in pairs or groups therewith, reduces the time that user selects clothing.Application scenarios also have a lot, and the embodiment of the present invention is in terminal Side can just realize the automatic collocation of clothing, complete the management to clothing, without being realized by network service, and reduction clothing is certainly Dynamic collocation cost of implementation.
Be stored in the local second picture of device, and correspondence second picture feature value parameter, be for the first figure What piece was arranged in pairs or groups, the acquisition process of second picture and corresponding feature value parameter can be as follows:Needed certainly in above-mentioned acquisition Before first picture of the clothing of dynamic collocation, the above method also includes:
Second picture is obtained, and colour recognition, shape recognition and image recognition are carried out to above-mentioned second picture, face is obtained The characteristic value of the characteristic value of color, the characteristic value of shape and pattern;
Clothing classification according to belonging to the characteristic value of the shape of above-mentioned second picture determines above-mentioned second picture;
Store above-mentioned second picture, and the characteristic value of color of above-mentioned second picture, the characteristic value of pattern and affiliated Clothing classification.
In embodiments of the present invention, second picture can concentrate batch input, for example:User installs can hold for the first time The picture for shooting the clothing in oneself wardrobe is concentrated during the application of row flow of the embodiment of the present invention, it is defeated as second picture batch Enter.The source of second picture can voluntarily be controlled by user according to the demand of oneself, before second picture is obtained, may be used also To show the prompt message of " picture that please shoot or load own clothes ".
The embodiment of the present invention additionally provides the specific implementation for how storing second picture and corresponding characteristic value, side Continue automatic clothes collocation after an action of the bowels, it is specific as follows for improving the matching efficiency of automatic clothes collocation:Above-mentioned above-mentioned second figure of storage Piece, and the characteristic value of color, the characteristic value of pattern and the affiliated clothing classification of above-mentioned second picture include:
Above-mentioned second picture and its affiliated clothing classification are stored in database, by the color of above-mentioned second picture Characteristic value is stored in color libraries, and the characteristic value of the pattern of above-mentioned second picture is stored in pattern library;
The characteristic value of the above-mentioned characteristic value of color, the characteristic value of shape and pattern according to above-mentioned first picture, selection Meet predetermined image collocation rule and pattern collocation rule in second picture, and meet other second figure of above-mentioned garment type Piece includes:
Respectively according to above-mentioned first picture the characteristic value of color, the characteristic value of shape and pattern characteristic value, with accord with The predetermined image collocation rule of conjunction and pattern collocation are regular for standard, in above-mentioned color libraries and above-mentioned pattern library, selection category The other second picture of garment type arranged in pairs or groups in above-mentioned needs.
When device carries out automatic clothes collocation, it may occur that the situation of multiple second pictures occur, such case Generation is probably, because clothing is a lot, to have a case that a variety of arranging schemes really, it is also possible to because according to the suitable journey of matching The second picture that degree or preset a variety of matched rules are respectively obtained, the specific embodiment of the present invention is refused to limit, many in appearance In the case of individual second picture, situation about how to handle can be as follows:After second picture is chosen, the above method is also wrapped Include:If the second picture of selection has at least two, each second picture and the first picture for being respectively combined selection obtain collocation knot Really.
In the case where there are multiple second pictures, the embodiment of the present invention can carry out priority classification to second picture, Realized in embodiments of the present invention by the priority set in rule of arranging in pairs or groups, it is specific as follows:After collocation result is obtained, on Stating method also includes:Matching priority according to being set in predetermined image collocation rule and pattern collocation rule determines respectively to take Priority with result.
It is understood that occurring multiple possibilities differences according to second picture, there can be the setting of multiple priorities Mode, for example:Can be by setting a variety of collocation rules and setting the priority between collocation priority.Therefore above scheme is not It is interpreted as the uniqueness restriction to well-behaved inventive embodiments.
When carrying out Auto-matching for the first time to the first picture in embodiments of the present invention, all of the above stream can be performed Journey, but during second of Auto-matching, then can be without carrying out all of the above flow, but by automatic before recording in advance Collocation result, quickly realizes automatic collocation, can so reduce operand, improves collocation efficiency, specific as follows:In the second figure After piece is chosen, the above method also includes:
If receiving the confirmation instruction of above-mentioned second picture, the corresponding relation of above-mentioned second picture and the first picture is recorded; If getting above-mentioned first picture or when second picture needs automatic collocation, according to above-mentioned second picture and pair of the first picture The picture for determining to arrange in pairs or groups therewith should be related to.
In the present embodiment, second picture needs automatic collocation to arrange in pairs or groups result to realize by the history of record, In the case that particularly article is more stable in wardrobe, when performing the record that multiple matching is arranged in pairs or groups with many history, Conveniently it can accurately obtain more comprehensive arranging scheme.
The pixel of extraction image is controlled primarily directed to RGB (Red, Green, Blue, red, green, blue) color spaces, as The color of element is mixed according to a certain percentage by RGB three, and the span of its three is 0~255, and each color can Represented with three variables, i.e. the intensity of RGB, once the component of three primary colours is determined, then the color of pixel is just completely true It is fixed.According to corresponding conversion, RGB can be converted to HLS (Hue colourities, Lightness brightness, Saturation saturation degrees), YUV (lightness Luminance, chrominance C hrominance, concentration C hroma) model, can be more careful to the extraction of color.
In embodiments of the present invention, following three aspect is mainly included to the identification division of graph image:
1) colour recognition:According to the information received, corresponding color value is differentiated, and color is kept a record and preserved.
2) shape recognition:The shape binary map of segmentation figure picture, is obtained after binary map, the shape to target makees qualitative and fixed Amount analysis, the data of processing can be used for by obtaining, and the target is being represented with the characteristic vector of the shape description.
3) image recognition:Image recognition is mainly based upon image segmentation and image recognition is theoretical, to the clothing containing image Analyzed and processed, so that it is determined that the picture position in clothing, and it is further proposed that and identify picture shape.
In embodiments of the present invention, in terms of the flow of automatic clothes collocation relates generally to following four:
1) image preprocessing:Pretreatment operation is carried out to the image that collection is obtained, the phase of each pictures is extracted and recognize Feature is closed, corresponding picture is identified by its shape, and is referred in the storehouses such as clothes, trousers, skirt, shoes, accessories;
2) colour recognition:The color of Target Photo that will be recognized is selected with a check box selection, by comparing face Colour atla recognizes the title of this kind of color;
3) image recognition:Because there is pattern in clothes mostly, therefore mainly recognized by image recognition technology Extract the pattern in clothes;
4) images match:Picture that will be treated, by color, shape, image are identified and feature extraction after, Common colors collocation rule in database, and pattern collocation rule are matched clothing accordingly.
In embodiments of the present invention, main functional module has following 9 functional modules:
1st, picture input module:The clothes picture of collocation is wanted for gathering user, it can pass through cell-phone camera or sheet Map office is acquired, line number of going forward side by side Data preprocess, preserves the shape of picture, and is categorized into corresponding storehouse.
2nd, colour recognition frame:It is mainly used for one that the desired extraction to that color in clothes of user carries out selection Check box, user can extract the color required for oneself by this module.
3rd, pattern identification frame:User can be selected the pattern in clothes by this check box, and be carried out corresponding The figure for identifying the pattern.
4th, automatic collocation module:The module be mainly to the picture after treated can automatically to clothes collocation, user without It can just automatically generate collocation result manually.
5th, arrange in pairs or groups manually module:User is imported after picture, can select module of manually and automatically arranging in pairs or groups.When user is discontented During the result of sufficient automatic collocation, it can carry out selecting manual matching function after cls.
6th, module is removed in collocation:If the dissatisfied current clothes of user is matched, it can carry out to the collocation in screen As a result it is purged.
7th, collocation sharing module:The collocation result of oneself is shared into space, microblogging etc. for user.
8th, collocation export module:User can export to the collocation result oneself being satisfied with this map office.
9th, collocation removing module:Collocation for deleting a certain specific user.
The embodiment of the present invention can use garment shape identification technology, be realized by pattern-recognition in implementation process;Color Identification technology can mainly be acquired to be determined as which kind of color based on the value of three primary colours, and pattern recognition techniques mainly can be with It is theoretical based on image segmentation and image recognition, the clothing containing image is analyzed and processed, so that it is determined that the image in clothing Position, and it is further proposed that and identify picture shape.Introduced respectively below:
The algorithm of shape recognition techniques, as shown in Fig. 2 comprising the following steps:
201:Input picture, it is assumed that input be RGB picture;
202:RGB figures are converted into gray-scale map;
203:Carry out the image enhaucament of histogram equalization method;
204:Gray-scale map image gaussian filtering in 203 is smooth;
205:Canny rim detections are carried out to the figure in 204, extracted and image district of the segmentation with larger shape objects Domain, i.e. area-of-interest.
This step can record this area-of-interest position for (region of interest, ROI);
206:Size is normalized to 100*130 using bilinear interpolation;
207:The profile of shape objects is obtained using region-growing method;
208:This profile is described using Contour moment and profile tree, the characteristic vector of profile is used as;
209:Its similar degree is tried to achieve by the characteristic vector in ATL successively;
210:Obtained shape is classified as the Classification and Identification with the class of similarity highest one in template, i.e. completion shape.
The algorithm of colour recognition technology, as shown in figure 3, comprising the following steps:
301:Obtain area-of-interest position ROI (the region of interest, region of interest produced in shape recognition Domain).In machine vision, image procossing, sketched the contours of from processed image with modes such as square frame, circle, ellipse, irregular polygons Need region to be processed, referred to as area-of-interest, the subgraph of corresponding position in RGB figures is plucked out with this position;
302:The RGB color space figure of sub-image is converted into YUV color space figures;
303:The color moment of tri- passages of Y, U, V of 302 obtained subgraphs is sought, including:First moment, second moment and three ranks Square, one is obtained 9 characteristic values;
304:Its Euclidean distance is asked for the characteristic value of obtained color with the color moment vector in color libraries respectively (Euclidean distance), that is, seek similarity, if gap is excessive (being based on given threshold), this color vector is recorded Into color libraries;
305:The color of subgraph is classified as the minimum colour type of Euclidean distance therewith;
306:The color moment (from similar) recognized is selected in colour match information bank, color is so completed Identification classification;
In embodiments of the present invention, Matching Relation weight table can be set by technical staff, can be generally disposed as small In 1 threshold value, certain collocation probability is represented.
The algorithm of image recognition technology, as shown in figure 4, comprising the following steps:
401:Pretreatment:Gray processing, image enhaucament, noise remove, Edge extraction, image mainly are carried out to image Region of interest regional partition etc..
402:Feature extraction:It is responsible for the feature that can fully represent the image uniqueness to be given expression to the form of numerical value Come, real features are retained as far as possible, false feature is filtered out.
403:Image classification:In picture system, the image of input will be with tens of up to a hundred or even thousands of images progress Match somebody with somebody, for the complexity for reducing search time, reduction is calculated, pattern in accurate consistent method can be assigned to different figures In case storehouse.
404:Images match:Images match is on the basis of image preprocessing and feature extraction, by the survey currently inputted Examination characteristics of image is compared with the template image feature preserved in advance, by the similarity degree between them, judges this two width Whether image is consistent.
Application scenarios with regard to the embodiment of the present invention are illustrated following examples, are additionally provided in below scheme The flow arranged in pairs or groups manually, and by user by the specified graph image for needing to pay special attention to of check box and the region of color, As shown in figure 5, comprising the following steps that:
501:Receive user and import picture to be processed;
502:Shape recognition processing is carried out to the picture of importing;
503:The shape obtained by shape recognition is classified picture;
504:User selects oneself to want the form of collocation, automatic or manual;Step is jumped to if selection is automatic 505, if then jumping to step 508 manually;
505:User is received by a check box and chooses the color of object region of identification, and recognizes the face in the region Color, and recorded in color libraries;
506:The target pattern of user's selection identification is received by a check box, and recognizes the pattern, and recorded figure In case storehouse;
507:Matched rule in color libraries, and pattern library carries out best match, then branches to step 509;
508:The collocation clothes picture that user is manually entered is received, step 509 is jumped to after the completion of collocation;
509:Matching result is shown in screen;If being satisfied with current results, step 510 is jumped to, if dissatisfied Current results, then jump to step 504 and re-start a new wheel matching;
510:Current matching result is preserved, is output in this map office.
The embodiment of the present invention additionally provides a kind of device, as shown in fig. 6, including:
Picture acquiring unit 601, the first picture for obtaining the clothing for needing automatic collocation;
Picture recognition unit 602, for carrying out colour recognition, shape recognition and image recognition to above-mentioned first picture, Obtain the characteristic value of the characteristic value, the characteristic value of shape and pattern of color;
Classification determination unit 603, the characteristic value for the shape according to above-mentioned first picture determines above-mentioned first picture pair Clothing is answered to need the clothing classification arranged in pairs or groups;
Picture selecting unit 604, for the characteristic value of color, the characteristic value of shape and figure according to above-mentioned first picture Meet predetermined image collocation rule and pattern collocation rule in the characteristic value of case, selection second picture, and meet above-mentioned The other second picture of garment type, is arranged in pairs or groups with above-mentioned first picture.
In embodiments of the present invention, the first picture is the picture specified, it is necessary to which equipment completes automatic collocation for it;For not For same application scenarios, there can be different application demands, for example:When buying clothes, the first picture can be by clapping Take the photograph acquisition;When which kind of clothing selection wear, the first picture then can user specified in local picture.Obtain the first figure The mode of piece can have different sources according to different application scenarios, and the source of the first picture does not influence the embodiment of the present invention Realize, this embodiment of the present invention is refused to limit.
In embodiments of the present invention, image recognition, colour recognition, shape recognition, can be based on various ripe graphic diagrams As recognizer and color management algorithm, the embodiment of the present invention refuses this uniqueness restriction.
In embodiments of the present invention, the characteristic value of the shape of the first picture, can represent that the clothing in the first picture belongs to What clothing classification, such as:It is jacket, trousers, shoes, skirt, Western-style clothes or ornament etc..Clothing classification can basis Need to be preset, most broad classification should be included:Jacket, trousers, shoes, ornament;It is also possible to continue subdivision, Such as:Jacket can be Western-style clothes, shirt etc., also can be combined with, for example:The combination of jacket and trousers may be embodied in one-piece dress In;The classification of clothing can be set by technical staff according to the demand of classification, and the embodiment of the present invention does not make uniqueness to this Limit.
In embodiments of the present invention, when buying clothes, the first picture can be obtained by shooting, by taking automatically With that can determine whether user currently has the clothing arranged in pairs or groups therewith, the waste of the unnecessary clothing of purchase is reduced;What is worn in selection During kind of clothing, the first picture then can user specified in local picture, user can be determined rapidly by automatic collocation The current clothing arranged in pairs or groups therewith, reduces the time that user selects clothing.Application scenarios also have a lot, and the embodiment of the present invention is in terminal Side can just realize the automatic collocation of clothing, complete the management to clothing, without being realized by network service, and reduction clothing is certainly Dynamic collocation cost of implementation.
Be stored in the local second picture of device, and correspondence second picture feature value parameter, be for the first figure What piece was arranged in pairs or groups, the acquisition process of second picture and corresponding feature value parameter can be as follows:Further, such as Fig. 7 institutes Show that above-mentioned picture acquiring unit 601 is additionally operable to before above-mentioned acquisition needs the first picture of the clothing of automatic collocation, obtain Second picture;
Above-mentioned picture recognition unit 602, knows for carrying out colour recognition, shape recognition and image to above-mentioned second picture Not, the characteristic value of the characteristic value, the characteristic value of shape and pattern of color is obtained;
Above-mentioned classification determination unit 603, the characteristic value for the shape according to above-mentioned second picture determines above-mentioned second figure Clothing classification belonging to piece;Said apparatus also includes:
Memory cell 701, for storing above-mentioned second picture, and above-mentioned second picture the characteristic value of color, pattern Characteristic value and affiliated clothing classification.
In embodiments of the present invention, second picture can concentrate batch input, for example:User installs can hold for the first time The picture for shooting the clothing in oneself wardrobe is concentrated during the application of row flow of the embodiment of the present invention, it is defeated as second picture batch Enter.The source of second picture can voluntarily be controlled by user according to the demand of oneself, before second picture is obtained, may be used also To show the prompt message of " picture that please shoot or load own clothes ".
The embodiment of the present invention additionally provides the specific implementation for how storing second picture and corresponding characteristic value, side Continue automatic clothes collocation after an action of the bowels, it is specific as follows for improving the matching efficiency of automatic clothes collocation:Alternatively, above-mentioned storage list Member 701, for above-mentioned second picture and its affiliated clothing classification to be stored in database, by the color of above-mentioned second picture Characteristic value be stored in color libraries, the characteristic value of the pattern of above-mentioned second picture is stored in pattern library;
Above-mentioned picture selecting unit 604, for respectively according to above-mentioned first picture color characteristic value, the feature of shape The characteristic value of value and pattern, to meet, predetermined image collocation is regular and pattern collocation rule is standard, in above-mentioned color In storehouse and above-mentioned pattern library, selection belongs to the other second picture of garment type of above-mentioned needs collocation.
When device carries out automatic clothes collocation, it may occur that the situation of multiple second pictures occur, such case Generation is probably, because clothing is a lot, to have a case that a variety of arranging schemes really, it is also possible to because according to the suitable journey of matching The second picture that degree or preset a variety of matched rules are respectively obtained, the specific embodiment of the present invention is refused to limit, many in appearance In the case of individual second picture, situation about how to handle can be as follows:Further, as shown in figure 8, said apparatus also includes:
Picture assembled unit 801, after being chosen in second picture, if the second picture of selection has at least two, Each second picture and the first picture for being then respectively combined selection obtain result of arranging in pairs or groups.
In the case where there are multiple second pictures, the embodiment of the present invention can carry out priority classification to second picture, Realized in embodiments of the present invention by the priority set in rule of arranging in pairs or groups, it is specific as follows:Further, as shown in figure 9, on Stating device also includes:
Priority determining unit 901, for after collocation result is obtained, arranging in pairs or groups regular according to predetermined image and scheming The matching priority set in case collocation rule determines the priority of each collocation result.
It is understood that occurring multiple possibilities differences according to second picture, there can be the setting of multiple priorities Mode, for example:Can be by setting a variety of collocation rules and setting the priority between collocation priority.Therefore above scheme is not It is interpreted as the uniqueness restriction to well-behaved inventive embodiments.
When carrying out Auto-matching for the first time to the first picture in embodiments of the present invention, all of the above stream can be performed Journey, but during second of Auto-matching, then can be without carrying out all of the above flow, but by automatic before recording in advance Collocation result, quickly realizes automatic collocation, can so reduce operand, improves collocation efficiency, specific as follows:Further Ground, as shown in Figure 10, said apparatus also include:
Recording unit 1001, after being chosen in second picture, if receiving the confirmation instruction of above-mentioned second picture, Record the corresponding relation of above-mentioned second picture and the first picture;
Above-mentioned picture selecting unit 604, if be additionally operable to above-mentioned picture acquiring unit 601 get above-mentioned first picture or When second picture needs automatic collocation, the corresponding relation according to above-mentioned second picture and the first picture determines the figure arranged in pairs or groups therewith Piece.
In the present embodiment, second picture needs automatic collocation to arrange in pairs or groups result to realize by the history of record, In the case that particularly article is more stable in wardrobe, when performing the record that multiple matching is arranged in pairs or groups with many history, Conveniently it can accurately obtain more comprehensive arranging scheme.
The embodiment of the present invention additionally provides another device, as shown in figure 11, including:Receiver 1101, transmitter 1102, Processor 1103 and memory 1104;
Wherein, processor 1103, for controlling to perform:Obtain the first picture of the clothing for needing automatic collocation;To above-mentioned First picture carries out colour recognition, shape recognition and image recognition, obtains characteristic value, the characteristic value of shape and the figure of color The characteristic value of case;Determine that above-mentioned first picture correspondence clothing needs the clothing arranged in pairs or groups according to the characteristic value of the shape of above-mentioned first picture Species are other;According to the characteristic value of the characteristic value of color, the characteristic value of shape and pattern of above-mentioned first picture, the second figure is selected Meet predetermined image collocation rule and pattern collocation rule in piece, and meet the other second picture of above-mentioned garment type, with Above-mentioned first picture is arranged in pairs or groups.
In embodiments of the present invention, the first picture is the picture specified, it is necessary to which equipment completes automatic collocation for it;For not For same application scenarios, there can be different application demands, for example:When buying clothes, the first picture can be by clapping Take the photograph acquisition;When which kind of clothing selection wear, the first picture then can user specified in local picture.Obtain the first figure The mode of piece can have different sources according to different application scenarios, and the source of the first picture does not influence the embodiment of the present invention Realize, this embodiment of the present invention is refused to limit.
In embodiments of the present invention, image recognition, colour recognition, shape recognition, can be based on various ripe graphic diagrams As recognizer and color management algorithm, the embodiment of the present invention refuses this uniqueness restriction.In subsequent embodiment, it will Citing is illustrated respectively.
In embodiments of the present invention, the characteristic value of the shape of the first picture, can represent that the clothing in the first picture belongs to What clothing classification, such as:It is jacket, trousers, shoes, skirt, Western-style clothes or ornament etc..Clothing classification can basis Need to be preset, most broad classification should be included:Jacket, trousers, shoes, ornament;It is also possible to continue subdivision, Such as:Jacket can be Western-style clothes, shirt etc., also can be combined with, for example:The combination of jacket and trousers may be embodied in one-piece dress In;The classification of clothing can be set by technical staff according to the demand of classification, and the embodiment of the present invention does not make uniqueness to this Limit.
In embodiments of the present invention, when buying clothes, the first picture can be obtained by shooting, by taking automatically With that can determine whether user currently has the clothing arranged in pairs or groups therewith, the waste of the unnecessary clothing of purchase is reduced;What is worn in selection During kind of clothing, the first picture then can user specified in local picture, user can be determined rapidly by automatic collocation The current clothing arranged in pairs or groups therewith, reduces the time that user selects clothing.Application scenarios also have a lot, and the embodiment of the present invention is in terminal Side can just realize the automatic collocation of clothing, complete the management to clothing, without being realized by network service, and reduction clothing is certainly Dynamic collocation cost of implementation.
Be stored in the local second picture of device, and correspondence second picture feature value parameter, be for the first figure What piece was arranged in pairs or groups, the acquisition process of second picture and corresponding feature value parameter can be as follows:Processor 1103, is additionally operable to Control is performed:Before the first picture of clothing that automatic collocation is needed in above-mentioned acquisition, second picture is obtained, and to above-mentioned second Picture carries out colour recognition, shape recognition and image recognition, obtains the characteristic value, the characteristic value of shape and pattern of color Characteristic value;Clothing classification according to belonging to the characteristic value of the shape of above-mentioned second picture determines above-mentioned second picture;Storage is above-mentioned Second picture, and above-mentioned second picture the characteristic value of color, the characteristic value of pattern and affiliated clothing classification.
In embodiments of the present invention, second picture can concentrate batch input, for example:User installs can hold for the first time The picture for shooting the clothing in oneself wardrobe is concentrated during the application of row flow of the embodiment of the present invention, it is defeated as second picture batch Enter.The source of second picture can voluntarily be controlled by user according to the demand of oneself, before second picture is obtained, may be used also To show the prompt message of " picture that please shoot or load own clothes ".
The embodiment of the present invention additionally provides the specific implementation for how storing second picture and corresponding characteristic value, side Continue automatic clothes collocation after an action of the bowels, it is specific as follows for improving the matching efficiency of automatic clothes collocation:Above-mentioned processor 1103, is used Performed in control:Store above-mentioned second picture, and above-mentioned second picture the characteristic value of color, the characteristic value of pattern and institute The clothing classification of category includes:
Above-mentioned second picture and its affiliated clothing classification are stored in database, by the color of above-mentioned second picture Characteristic value is stored in color libraries, and the characteristic value of the pattern of above-mentioned second picture is stored in pattern library;
The characteristic value of the above-mentioned characteristic value of color, the characteristic value of shape and pattern according to above-mentioned first picture, selection Meet predetermined image collocation rule and pattern collocation rule in second picture, and meet other second figure of above-mentioned garment type Piece includes:
Respectively according to above-mentioned first picture the characteristic value of color, the characteristic value of shape and pattern characteristic value, with accord with The predetermined image collocation rule of conjunction and pattern collocation are regular for standard, in above-mentioned color libraries and above-mentioned pattern library, selection category The other second picture of garment type arranged in pairs or groups in above-mentioned needs.
When device carries out automatic clothes collocation, it may occur that the situation of multiple second pictures occur, such case Generation is probably, because clothing is a lot, to have a case that a variety of arranging schemes really, it is also possible to because according to the suitable journey of matching The second picture that degree or preset a variety of matched rules are respectively obtained, the specific embodiment of the present invention is refused to limit, many in appearance In the case of individual second picture, situation about how to handle can be as follows:Processor 1103, is additionally operable to control and performs:In the second figure After piece is chosen, if the second picture of selection there are at least two, each second picture and the first picture of selection are respectively combined Obtain result of arranging in pairs or groups.
In the case where there are multiple second pictures, the embodiment of the present invention can carry out priority classification to second picture, Realized in embodiments of the present invention by the priority set in rule of arranging in pairs or groups, it is specific as follows:Processor 1103, is additionally operable to control Perform:It is excellent according to the matching set in predetermined image collocation rule and pattern collocation rule after collocation result is obtained First level determines the priority of each collocation result.
It is understood that occurring multiple possibilities differences according to second picture, there can be the setting of multiple priorities Mode, for example:Can be by setting a variety of collocation rules and setting the priority between collocation priority.Therefore above scheme is not It is interpreted as the uniqueness restriction to well-behaved inventive embodiments.
When carrying out Auto-matching for the first time to the first picture in embodiments of the present invention, all of the above stream can be performed Journey, but during second of Auto-matching, then can be without carrying out all of the above flow, but by automatic before recording in advance Collocation result, quickly realizes automatic collocation, can so reduce operand, improves collocation efficiency, specific as follows:Processor 1103, it is additionally operable to control and performs:After second picture is chosen, if receiving the confirmation instruction of above-mentioned second picture, record The corresponding relation of above-mentioned second picture and the first picture;If getting above-mentioned first picture or second picture needs automatic collocation When, the corresponding relation according to above-mentioned second picture and the first picture determines the picture arranged in pairs or groups therewith.
In the present embodiment, second picture needs automatic collocation to arrange in pairs or groups result to realize by the history of record, In the case that particularly article is more stable in wardrobe, when performing the record that multiple matching is arranged in pairs or groups with many history, Conveniently it can accurately obtain more comprehensive arranging scheme.
The embodiment of the present invention additionally provides another device, as shown in figure 12, for convenience of description, illustrate only and this hair The related part of bright embodiment, particular technique details is not disclosed, refer to present invention method part.The terminal can be with It is to include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any device such as vehicle-mounted computer, so that terminal is mobile phone as an example:
Figure 12 is illustrated that the block diagram of the part-structure of the mobile phone related to terminal provided in an embodiment of the present invention.With reference to figure 12, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1210, memory 1220, input block 1230, display unit 1240th, sensor 1250, voicefrequency circuit 1260, Wireless Fidelity (wireless fidelity, WiFi) module 1270, processor The part such as 1280 and power supply 1290.It will be understood by those skilled in the art that the handset structure shown in Figure 12 is not constituted pair The restriction of mobile phone, can include than illustrating more or less parts, either combine some parts or different part cloth Put.
Each component parts of mobile phone is specifically introduced with reference to Figure 12:
RF circuits 1210 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, handled to processor 1280;In addition, being sent to base station by up data are designed.Generally, RF circuits 1210 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1210 can also be logical by radio communication and network and other equipment Letter.Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 1220 can be used for storage software program and module, and processor 1280 is stored in memory by operation 1220 software program and module, so as to perform various function application and the data processing of mobile phone.Memory 1220 can be led To include storing program area and storage data field, wherein, storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data field can store the use institute according to mobile phone Data (such as voice data, phone directory etc.) of establishment etc..In addition, memory 1220 can include high random access storage Device, can also include nonvolatile memory, and for example, at least one disk memory, flush memory device or other volatibility are solid State memory device.
Input block 1230 can be used for the numeral or character information for receiving input, and produce with the user of mobile phone set with And the relevant key signals input of function control.Specifically, input block 1230 may include contact panel 1231 and other inputs Equipment 1232.Contact panel 1231, also referred to as touch-screen, collect touch operation (such as user of the user on or near it Use the behaviour of any suitable object such as finger, stylus or annex on contact panel 1231 or near contact panel 1231 Make), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 1231 may include touch detection Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 1280, and the order sent of reception processing device 1280 and can be performed.In addition, Contact panel 1231 can be realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except touch surface Plate 1231, input block 1230 can also include other input equipments 1232.Specifically, other input equipments 1232 can include But it is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. It is one or more.
Display unit 1240 can be used for each of the information that is inputted by user of display or the information for being supplied to user and mobile phone Plant menu.Display unit 1240 may include display panel 1241, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 1241.Further, contact panel 1231 can cover display panel 1241, when contact panel 1231 is detected To after the touch operation on or near it, processor 1280 is sent to determine the type of touch event, with preprocessor 1280 provide corresponding visual output according to the type of touch event on display panel 1241.Although in fig. 12, touch surface Plate 1231 and display panel 1241 are input and the input function that mobile phone is realized as two independent parts, but some , can be by contact panel 1231 and the input that is integrated and realizing mobile phone of display panel 1241 and output function in embodiment.
Mobile phone may also include at least one sensor 1250, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1241, proximity transducer can close display panel when mobile phone is moved in one's ear 1241 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) and add The size of speed, can detect that size and the direction of gravity when static, application (the such as horizontal/vertical screen available for identification mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 1260, loudspeaker 1261, microphone 1262 can provide the COBBAIF between user and mobile phone.Audio Electric signal after the voice data received conversion can be transferred to loudspeaker 1261, is changed by loudspeaker 1261 by circuit 1260 Exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 1262, by voicefrequency circuit 1260 Voice data is converted to after reception, then after voice data output processor 1280 is handled, through RF circuits 1210 to be sent to ratio Such as another mobile phone, or voice data is exported to memory 1220 so as to further processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 1270 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Figure 12 is shown WiFi module 1270, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Become in the essential scope of invention and omit.
Processor 1280 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, By operation or perform and be stored in software program and/or module in memory 1220, and call and be stored in memory 1220 Interior data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 1280 may include one or more processing units;It is preferred that, processor 1280 can integrated application processor and modulation /demodulation processing Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located Manage radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1280.
Mobile phone also includes the power supply 1290 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 1280 are logically contiguous, so as to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
In embodiments of the present invention, the processor 1280 included by the terminal also has following functions:
Wherein, processor 1280, for controlling to perform:Obtain the first picture of the clothing for needing automatic collocation;To above-mentioned First picture carries out colour recognition, shape recognition and image recognition, obtains characteristic value, the characteristic value of shape and the figure of color The characteristic value of case;Determine that above-mentioned first picture correspondence clothing needs the clothing arranged in pairs or groups according to the characteristic value of the shape of above-mentioned first picture Species are other;According to the characteristic value of the characteristic value of color, the characteristic value of shape and pattern of above-mentioned first picture, the second figure is selected Meet predetermined image collocation rule and pattern collocation rule in piece, and meet the other second picture of above-mentioned garment type, with Above-mentioned first picture is arranged in pairs or groups.
In embodiments of the present invention, the first picture is the picture specified, it is necessary to which equipment completes automatic collocation for it;For not For same application scenarios, there can be different application demands, for example:When buying clothes, the first picture can be by clapping Take the photograph acquisition;When which kind of clothing selection wear, the first picture then can user specified in local picture.Obtain the first figure The mode of piece can have different sources according to different application scenarios, and the source of the first picture does not influence the embodiment of the present invention Realize, this embodiment of the present invention is refused to limit.
In embodiments of the present invention, image recognition, colour recognition, shape recognition, can be based on various ripe graphic diagrams As recognizer and color management algorithm, the embodiment of the present invention refuses this uniqueness restriction.In subsequent embodiment, it will Citing is illustrated respectively.
In embodiments of the present invention, the characteristic value of the shape of the first picture, can represent that the clothing in the first picture belongs to What clothing classification, such as:It is jacket, trousers, shoes, skirt, Western-style clothes or ornament etc..Clothing classification can basis Need to be preset, most broad classification should be included:Jacket, trousers, shoes, ornament;It is also possible to continue subdivision, Such as:Jacket can be Western-style clothes, shirt etc., also can be combined with, for example:The combination of jacket and trousers may be embodied in one-piece dress In;The classification of clothing can be set by technical staff according to the demand of classification, and the embodiment of the present invention does not make uniqueness to this Limit.
In embodiments of the present invention, when buying clothes, the first picture can be obtained by shooting, by taking automatically With that can determine whether user currently has the clothing arranged in pairs or groups therewith, the waste of the unnecessary clothing of purchase is reduced;What is worn in selection During kind of clothing, the first picture then can user specified in local picture, user can be determined rapidly by automatic collocation The current clothing arranged in pairs or groups therewith, reduces the time that user selects clothing.Application scenarios also have a lot, and the embodiment of the present invention is in terminal Side can just realize the automatic collocation of clothing, complete the management to clothing, without being realized by network service, and reduction clothing is certainly Dynamic collocation cost of implementation.
Be stored in the local second picture of device, and correspondence second picture feature value parameter, be for the first figure What piece was arranged in pairs or groups, the acquisition process of second picture and corresponding feature value parameter can be as follows:Processor 1280, is additionally operable to Control is performed:Before the first picture of clothing that automatic collocation is needed in above-mentioned acquisition, second picture is obtained, and to above-mentioned second Picture carries out colour recognition, shape recognition and image recognition, obtains the characteristic value, the characteristic value of shape and pattern of color Characteristic value;Clothing classification according to belonging to the characteristic value of the shape of above-mentioned second picture determines above-mentioned second picture;Storage is above-mentioned Second picture, and above-mentioned second picture the characteristic value of color, the characteristic value of pattern and affiliated clothing classification.
In embodiments of the present invention, second picture can concentrate batch input, for example:User installs can hold for the first time The picture for shooting the clothing in oneself wardrobe is concentrated during the application of row flow of the embodiment of the present invention, it is defeated as second picture batch Enter.The source of second picture can voluntarily be controlled by user according to the demand of oneself, before second picture is obtained, may be used also To show the prompt message of " picture that please shoot or load own clothes ".
The embodiment of the present invention additionally provides the specific implementation for how storing second picture and corresponding characteristic value, side Continue automatic clothes collocation after an action of the bowels, it is specific as follows for improving the matching efficiency of automatic clothes collocation:Above-mentioned processor 1280, is used Performed in control:Store above-mentioned second picture, and above-mentioned second picture the characteristic value of color, the characteristic value of pattern and institute The clothing classification of category includes:
Above-mentioned second picture and its affiliated clothing classification are stored in database, by the color of above-mentioned second picture Characteristic value is stored in color libraries, and the characteristic value of the pattern of above-mentioned second picture is stored in pattern library;
The characteristic value of the above-mentioned characteristic value of color, the characteristic value of shape and pattern according to above-mentioned first picture, selection Meet predetermined image collocation rule and pattern collocation rule in second picture, and meet other second figure of above-mentioned garment type Piece includes:
Respectively according to above-mentioned first picture the characteristic value of color, the characteristic value of shape and pattern characteristic value, with accord with The predetermined image collocation rule of conjunction and pattern collocation are regular for standard, in above-mentioned color libraries and above-mentioned pattern library, selection category The other second picture of garment type arranged in pairs or groups in above-mentioned needs.
When device carries out automatic clothes collocation, it may occur that the situation of multiple second pictures occur, such case Generation is probably, because clothing is a lot, to have a case that a variety of arranging schemes really, it is also possible to because according to the suitable journey of matching The second picture that degree or preset a variety of matched rules are respectively obtained, the specific embodiment of the present invention is refused to limit, many in appearance In the case of individual second picture, situation about how to handle can be as follows:Processor 1280, is additionally operable to control and performs:In the second figure After piece is chosen, if the second picture of selection there are at least two, each second picture and the first picture of selection are respectively combined Obtain result of arranging in pairs or groups.
In the case where there are multiple second pictures, the embodiment of the present invention can carry out priority classification to second picture, Realized in embodiments of the present invention by the priority set in rule of arranging in pairs or groups, it is specific as follows:Processor 1280, is additionally operable to control Perform:It is excellent according to the matching set in predetermined image collocation rule and pattern collocation rule after collocation result is obtained First level determines the priority of each collocation result.
It is understood that occurring multiple possibilities differences according to second picture, there can be the setting of multiple priorities Mode, for example:Can be by setting a variety of collocation rules and setting the priority between collocation priority.Therefore above scheme is not It is interpreted as the uniqueness restriction to well-behaved inventive embodiments.
When carrying out Auto-matching for the first time to the first picture in embodiments of the present invention, all of the above stream can be performed Journey, but during second of Auto-matching, then can be without carrying out all of the above flow, but by automatic before recording in advance Collocation result, quickly realizes automatic collocation, can so reduce operand, improves collocation efficiency, specific as follows:Processor 1280, it is additionally operable to control and performs:After second picture is chosen, if receiving the confirmation instruction of above-mentioned second picture, record The corresponding relation of above-mentioned second picture and the first picture;If getting above-mentioned first picture or second picture needs automatic collocation When, the corresponding relation according to above-mentioned second picture and the first picture determines the picture arranged in pairs or groups therewith.
In the present embodiment, second picture needs automatic collocation to arrange in pairs or groups result to realize by the history of record, In the case that particularly article is more stable in wardrobe, when performing the record that multiple matching is arranged in pairs or groups with many history, Conveniently it can accurately obtain more comprehensive arranging scheme.
Figure 13 is a kind of server architecture schematic diagram provided in an embodiment of the present invention, and the server 1300 can be because of configuration or property Energy is different and produces than larger difference, can include one or more central processing units (central processing Units, CPU) 1322 (for example, one or more processors) and memory 1332, one or more storage applications The storage medium 1330 (such as one or more mass memory units) of program 1342 or data 1344.Wherein, memory 1332 and storage medium 1330 can be it is of short duration storage or persistently storage.One can be included by being stored in the program of storage medium 1330 Individual or more than one module (diagram is not marked), each module can include operating the series of instructions in server.More enter One step, central processing unit 1322 be could be arranged to communicate with storage medium 1330, and storage medium is performed on server 1300 Series of instructions operation in 1330.
Server 1300 can also include one or more power supplys 1326, one or more wired or wireless nets Network interface 1350, one or more input/output interfaces 1358, and/or, one or more operating systems 1341, example Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Can be based on the server architecture shown in the Figure 13 the step of embodiment of the method in above-described embodiment.
The embodiment of the present invention additionally provides a kind of system of clothing automatic collocation, as shown in figure 14, including:With can communication party The terminal 1401 and server 1402 of formula connection;
Wherein, the server 1402 is the device of any one provided in an embodiment of the present invention;
The terminal 1401, specifies message to need the clothing of automatic collocation for specifying for being sent to the server 1402 First picture of thing, or, for sending the first picture to the server 1402 and specifying first picture to need automatic Collocation;
The server 1402, is additionally operable to collocation result being sent to the terminal 1401.
In embodiments of the present invention, terminal is specified when needing the situation of clothing of automatic collocation can be shopping at network, The first picture for selecting on the website that server-side is provided, then server carry out automatic collocation;In addition, sending the by terminal The situation of one picture, then can be the first picture that the first picture of user's shooting or user are locally stored, for example:User claps The picture for oneself wardrobe taken the photograph, being sent to server needs server to provide arranging scheme, and convenient progress shopping at network is used.
It is worth noting that, in said apparatus embodiment, included unit is simply drawn according to function logic Point, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each functional unit is specific Title is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
In addition, one of ordinary skill in the art will appreciate that realizing all or part of step in above-mentioned each method embodiment It can be by program to instruct the hardware of correlation to complete, corresponding program can be stored in a kind of computer-readable recording medium In, storage medium mentioned above can be read-only storage, disk or CD etc..
The present invention preferably embodiment is these are only, but protection scope of the present invention is not limited thereto, it is any Those familiar with the art the change that can readily occur in or replaces in the technical scope that the embodiment of the present invention is disclosed Change, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claim Enclose and be defined.

Claims (11)

1. a kind of method of clothing automatic collocation, it is characterised in that including:
Obtain the first picture of the clothing for needing automatic collocation;To first picture carry out colour recognition, shape recognition and Image recognition, obtains the characteristic value of the characteristic value, the characteristic value of shape and pattern of color;
Determine that the first picture correspondence clothing needs the clothing classification arranged in pairs or groups according to the characteristic value of the shape of first picture;
According to the characteristic value of the characteristic value of color, the characteristic value of shape and pattern of first picture, second picture is selected In meet predetermined image collocation rule and pattern collocation rule, and meet the other second picture of the garment type, with institute The first picture is stated to be arranged in pairs or groups;
It is described it is described acquisition need the first picture of clothing of automatic collocation before, methods described also includes:
Second picture is obtained, and colour recognition, shape recognition and image recognition are carried out to the second picture, color is obtained The characteristic value of characteristic value, the characteristic value of shape and pattern;
Clothing classification according to belonging to the characteristic value of the shape of the second picture determines the second picture;
Store the second picture, and the second picture the characteristic value of color, the characteristic value of pattern and affiliated clothing Species are other.
2. method according to claim 1, it is characterised in that the storage second picture, and the second picture The characteristic value of color, the characteristic value of pattern and affiliated clothing classification be stored in including:
The second picture and its affiliated clothing classification are stored in database, by the feature of the color of the second picture Value is stored in color libraries, and the characteristic value of the pattern of the second picture is stored in pattern library;
The characteristic value of the characteristic value of color, the characteristic value of shape and pattern according to first picture, selection second In picture, meet predetermined image collocation rule and pattern collocation rule, and meet the other second picture of the garment type Including:
Respectively according to first picture the characteristic value of color, the characteristic value of shape and pattern characteristic value, it is pre- to meet Fixed image collocation rule and pattern collocation rule is standard, and in the color libraries and the pattern library, selection belongs to institute State the other second picture of garment type for needing to arrange in pairs or groups.
3. method according to claim 1 or claim 2, it is characterised in that after second picture is chosen, methods described is also wrapped Include:If the second picture of selection has at least two, each second picture and the first picture for being respectively combined selection obtain collocation knot Really.
4. method according to claim 3, it is characterised in that after collocation result is obtained, methods described also includes:According to The matching priority set in predetermined image collocation rule and pattern collocation rule determines the priority of each collocation result.
5. method according to claim 1 or claim 2, it is characterised in that after second picture is chosen, methods described is also wrapped Include:
If receiving the confirmation instruction of the second picture, the corresponding relation of the second picture and the first picture is recorded;
If getting first picture or when second picture needs automatic collocation, according to the second picture and the first picture Corresponding relation determine the picture arranged in pairs or groups therewith.
6. a kind of device of clothing automatic collocation, it is characterised in that including:
Picture acquiring unit, the first picture for obtaining the clothing for needing automatic collocation;
Picture recognition unit, for carrying out colour recognition, shape recognition and image recognition to first picture, obtains color Characteristic value, the characteristic value of the characteristic value of shape and pattern;
Classification determination unit, the characteristic value for the shape according to first picture determines the first picture correspondence clothing need The clothing classification to be arranged in pairs or groups;
Picture selecting unit, the spy for the characteristic value of color, the characteristic value of shape and pattern according to first picture Meet predetermined image collocation rule and pattern collocation rule in value indicative, selection second picture, and meet the garment type Other second picture, is arranged in pairs or groups with first picture;
The picture acquiring unit, is additionally operable to before the acquisition needs the first picture of clothing of automatic collocation, obtains the Two pictures;
The picture recognition unit, for carrying out colour recognition, shape recognition and image recognition to the second picture, is obtained The characteristic value of the characteristic value of color, the characteristic value of shape and pattern;
The classification determination unit, the characteristic value for the shape according to the second picture is determined belonging to the second picture Clothing classification;Described device also includes:
Memory cell, for storing the second picture, and the color of the second picture characteristic value, the characteristic value of pattern And affiliated clothing classification.
7. device according to claim 6, it is characterised in that
The memory cell, for the second picture and its affiliated clothing classification to be stored in database, by described The characteristic value of the color of two pictures is stored in color libraries, and the characteristic value of the pattern of the second picture is stored in into pattern library In;
The picture selecting unit, for respectively according to the characteristic value of color of first picture, the characteristic value of shape and The characteristic value of pattern, to meet, predetermined image collocation is regular and pattern collocation rule is standard, in the color libraries and institute State in pattern library, selection belongs to the other second picture of garment type of the needs collocation.
8. according to the described device of claim 6 or 7, it is characterised in that described device also includes:
Picture assembled unit, after being chosen in second picture, if the second picture of selection has at least two, group respectively Each second picture and the first picture for closing selection obtain result of arranging in pairs or groups.
9. device according to claim 8, it is characterised in that described device also includes:
Priority determining unit, for after collocation result is obtained, being arranged in pairs or groups according to predetermined image collocation rule and pattern The matching priority set in rule determines the priority of each collocation result.
10. according to the described device of claim 6 or 7, it is characterised in that described device also includes:
Recording unit, after being chosen in second picture, if receiving the confirmation instruction of the second picture, record is described The corresponding relation of second picture and the first picture;
The picture selecting unit, is needed if being additionally operable to the picture acquiring unit and getting first picture or second picture When wanting automatic collocation, the corresponding relation according to the second picture and the first picture determines the picture arranged in pairs or groups therewith.
11. a kind of system of clothing automatic collocation, including:The terminal and server communicably connected, it is characterised in that
The server is the device described in claim 7~10 any one;
The terminal, specifies message to be used for the first figure for specifying the clothing for needing automatic collocation for being sent to the server Piece, or, for sending the first picture to the server and specifying first picture to need automatic collocation;
The server, is additionally operable to collocation result being sent to the terminal.
CN201410424590.0A 2014-08-26 2014-08-26 A kind of method of clothing automatic collocation, apparatus and system Active CN104200249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410424590.0A CN104200249B (en) 2014-08-26 2014-08-26 A kind of method of clothing automatic collocation, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410424590.0A CN104200249B (en) 2014-08-26 2014-08-26 A kind of method of clothing automatic collocation, apparatus and system

Publications (2)

Publication Number Publication Date
CN104200249A CN104200249A (en) 2014-12-10
CN104200249B true CN104200249B (en) 2017-07-21

Family

ID=52085538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410424590.0A Active CN104200249B (en) 2014-08-26 2014-08-26 A kind of method of clothing automatic collocation, apparatus and system

Country Status (1)

Country Link
CN (1) CN104200249B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834524A (en) * 2015-05-04 2015-08-12 小米科技有限责任公司 Information prompting method and device
CN104835062A (en) * 2015-05-04 2015-08-12 小米科技有限责任公司 Apparel and accessory collocation method and collocation apparatus
CN104821000B (en) * 2015-05-22 2017-12-22 京东方科技集团股份有限公司 Color-identifying system, color recognition method and display device
CN106375544B (en) * 2015-07-23 2020-11-06 青岛海尔洗衣机有限公司 Clothing matching recommendation method and intelligent terminal
CN106846122B (en) * 2017-02-20 2021-02-26 北京京东尚科信息技术有限公司 Commodity data processing method and device
CN107665238B (en) * 2017-08-24 2021-10-22 北京搜狗科技发展有限公司 Picture processing method and device for picture processing
CN110363203B (en) * 2018-04-09 2023-05-12 青岛有屋科技有限公司 Intelligent clothes selecting control method, wardrobe system and terminal
WO2019241971A1 (en) * 2018-06-21 2019-12-26 深圳市蚂蚁雄兵物联技术有限公司 Clothes management method and device and smart dressing mirror
CN112817437A (en) * 2019-11-15 2021-05-18 苹果公司 Colored visual indicia for variable use
CN113470125B (en) * 2021-07-21 2024-01-12 杭州万事利丝绸文化股份有限公司 Method and system for carrying out color matching on patterns

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908978A (en) * 2006-08-16 2007-02-07 林�智 Network dress appraisal and collocation system and method
CN101477560A (en) * 2009-02-02 2009-07-08 林�智 Clothing matching system and method based on scheme database
CN103246810A (en) * 2013-05-10 2013-08-14 中国地质大学(武汉) Closet device, closet system, and intelligent match recommending method for closet system based on internet of things
CN103440587A (en) * 2013-08-27 2013-12-11 刘丽君 Personal image designing and product recommendation method based on online shopping
CN103455920A (en) * 2012-05-30 2013-12-18 盛乐信息技术(上海)有限公司 Fitting method and fitting system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1908978A (en) * 2006-08-16 2007-02-07 林�智 Network dress appraisal and collocation system and method
CN101477560A (en) * 2009-02-02 2009-07-08 林�智 Clothing matching system and method based on scheme database
CN103455920A (en) * 2012-05-30 2013-12-18 盛乐信息技术(上海)有限公司 Fitting method and fitting system
CN103246810A (en) * 2013-05-10 2013-08-14 中国地质大学(武汉) Closet device, closet system, and intelligent match recommending method for closet system based on internet of things
CN103440587A (en) * 2013-08-27 2013-12-11 刘丽君 Personal image designing and product recommendation method based on online shopping

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于图像内容的服装检索与搭配技术研究;陈起进;《中国优秀硕士学位论文全文数据库信息科技辑》;20140115(第2014/01期);I138-2107 *

Also Published As

Publication number Publication date
CN104200249A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN104200249B (en) A kind of method of clothing automatic collocation, apparatus and system
CN105046280B (en) A kind of wardrobe intelligent management apapratus and method
CN109977859A (en) A kind of map logo method for distinguishing and relevant apparatus
CN109918975A (en) A kind of processing method of augmented reality, the method for Object identifying and terminal
CN108520058A (en) A kind of Business Information recommends method and mobile terminal
CN108875781A (en) A kind of labeling method, apparatus, electronic equipment and storage medium
CN108363750B (en) Clothing recommendation method and related products
CN106558025A (en) A kind for the treatment of method and apparatus of picture
CN107835367A (en) A kind of image processing method, device and mobile terminal
CN107784114A (en) Recommendation method, apparatus, terminal and the storage medium of facial expression image
CN108259990A (en) A kind of method and device of video clipping
CN109213732A (en) A kind of method, mobile terminal and computer readable storage medium improving photograph album classification
CN107341006A (en) Screen locking wallpaper recommends method and Related product
CN111009031B (en) Face model generation method, model generation method and device
CN108230232A (en) The method and relevant apparatus of a kind of image procossing
CN110263729A (en) A kind of method of shot boundary detector, model training method and relevant apparatus
CN110738211A (en) object detection method, related device and equipment
CN107705251A (en) Picture joining method, mobile terminal and computer-readable recording medium
CN109063558A (en) A kind of image classification processing method, mobile terminal and computer readable storage medium
CN106815557A (en) A kind of evaluation method of face features, device and mobile terminal
CN108170817A (en) Differentiation video acquiring method, device and the readable storage medium storing program for executing of photo main body
CN106874906A (en) A kind of binarization method of picture, device and terminal
CN108961157A (en) Image processing method, picture processing unit and terminal device
CN108259746B (en) Image color detection method and mobile terminal
CN108234882A (en) A kind of image weakening method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: TENGXUN SCI-TECH (SHENZHEN) CO., LTD.

Effective date: 20141127

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20141127

Address after: 400065 Chongwen Road, Nan'an District, Chongqing, No. 2

Applicant after: Chongqing University of Posts and Telecommunications

Applicant after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: 400065 Chongwen Road, Nan'an District, Chongqing, No. 2

Applicant before: Chongqing University of Posts and Telecommunications

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant