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.