Nothing Special   »   [go: up one dir, main page]

CN106227827A - Image of clothing foreground color feature extracting method and costume retrieval method and system - Google Patents

Image of clothing foreground color feature extracting method and costume retrieval method and system Download PDF

Info

Publication number
CN106227827A
CN106227827A CN201610590862.3A CN201610590862A CN106227827A CN 106227827 A CN106227827 A CN 106227827A CN 201610590862 A CN201610590862 A CN 201610590862A CN 106227827 A CN106227827 A CN 106227827A
Authority
CN
China
Prior art keywords
clothing
image
color
value
component
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.)
Granted
Application number
CN201610590862.3A
Other languages
Chinese (zh)
Other versions
CN106227827B (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.)
South China Normal University
Original Assignee
South China Normal University
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 South China Normal University filed Critical South China Normal University
Priority to CN201610590862.3A priority Critical patent/CN106227827B/en
Publication of CN106227827A publication Critical patent/CN106227827A/en
Application granted granted Critical
Publication of CN106227827B publication Critical patent/CN106227827B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5838Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a kind of image of clothing foreground color feature extracting method and costume retrieval method and system, wherein color feature extracted step is as follows: image of clothing is carried out image block;According to image block zoning;Color difference threshold method is combined with image block and detects clothing foreground edge, and the color of pixel each to image of clothing is changed;In image of clothing, the color of each pixel is converted to HSV space;The pixel color value being directed to high weight district adds high weight, and the pixel color value being directed to low weight district adds low weight;Statistics hsv color rectangular histogram, obtains color feature value.The inventive method uses the color difference threshold method detection clothing edge combined with image block, the part being wherein judged as clothing prospect retains its color characteristic, and the part being judged as background takes aberration and replaces original color, effectively eliminate the interference of background color, improve recall ratio and the precision ratio of costume retrieval.

Description

Image of clothing foreground color feature extracting method and costume retrieval method and system
Technical field
The present invention relates to technical field of image processing, particularly to a kind of image of clothing foreground color feature extracting method and Costume retrieval method and system.
Background technology
Along with the fast development of ecommerce and quickly propelling of the Internet, garment image is countless, no matter from clothing From the point of view of Producer or consumer, all in the urgent need to a kind of image of clothing research tool based on content, by " to scheme Search figure " mode, find clothing interested rapidly and accurately.At present, CBIR (Content-based Image Retrieval, CBIR) technology become a popular research field.First costume retrieval based on content extracts The bottom visual signature of image of clothing, such as color, shape, texture etc., then carries out similarity measurement to the feature extracted, from And retrieve same or analogous clothing.For image of clothing, color characteristic often best embodies out the basis of clothing Matter feature, it is also most stable of visual signature.Therefore, in costume retrieval, often use color as the main spy of retrieval One of levy.
At present, conventional color feature extracted algorithm has color histogram nomography, cumulative color histogram nomography, color moment Algorithm etc..Wherein, color histogram nomography calculates simply because of it and has the advantages such as rotation, translation invariance and extensively adopted With.But color histogram nomography effect when costume retrieval is unsatisfactory, and the problem being primarily present is: image of clothing background face The interference of color is the biggest.Such as, the many garment images in Taobao have the background of complexity: have the advertisement character of large size;Have unrelated Scene;Also have the clothing with model.At present, also there are some methods removing clothing ambient interferences.Such as, Canny operator is used Obtain clothing edge;Cut out the color histogram nomography in picture centre region;JSEG partitioning algorithm etc..But experiment finds, on The effect stating these methods is the most undesirable.Therefore, the color characteristic the most accurately extracting clothing itself is a difficult problem.Only Accurately extract the color characteristic of clothing foreground image, eliminate the interference of background color as far as possible, just can be effectively improved costume retrieval Precision ratio and recall ratio.
Summary of the invention
The first object of the present invention is that the shortcoming overcoming prior art is with not enough, it is provided that a kind of image of clothing foreground color Feature extracting method, the method uses the color difference threshold method detection clothing edge combined with image block, is judged as clothing The part of prospect retains its color characteristic, and the part being judged as background takes aberration and replaces original color, it is possible to effectively disappear Interference except background color.
The second object of the present invention is that providing a kind of realizes based on above-mentioned image of clothing foreground color feature extracting method Image of clothing search method, be effectively increased recall ratio and the precision ratio of costume retrieval.
The third object of the present invention is that providing a kind of realizes based on above-mentioned image of clothing foreground color feature extracting method Image of clothing searching system.
The first object of the present invention is achieved through the following technical solutions: a kind of image of clothing foreground color feature extraction side Method, step is as follows:
S1, image of clothing is carried out image block: image of clothing is divided into n × m sub-block, makes the block region of center n1 × m1 For nucleus, other regions are outer peripheral areas;
S2, according to image block zoning: nucleus is defined as high weight district, and outer peripheral areas is defined as low weight District;
S3, color difference threshold method is combined with image block and detects clothing foreground edge, and picture each to image of clothing The color of vegetarian refreshments is changed, and detailed process is as follows:
S31, read the rgb value of each pixel the most from left to right, subsequently into step S32;
S32, the value of chromatism asked between current pixel point and previous pixel, and by the RGB color of current pixel point Replace with calculated value of chromatism, subsequently into step S33;Wherein current pixel point and the value of chromatism of previous pixel For:
Color (x, y)=RGB (x, y) RGB (x-1, y)+color1;
Wherein color (x, y) be coordinate be current pixel point (x, y) with previous pixel (x-1, y) between aberration Value, color1 is variable, plays the effect of color compensating, and initial value is 0;
Whether S33, R, G and B value sum judged in current pixel point value of chromatism be more than 128 and current pixel point location Whether territory is high weight regions;
If it is not, then return to the process of step S32 for next pixel;
The most then judge whether current pixel point is first pixel meeting above-mentioned condition;
The most then this pixel is judged to clothing left hand edge, according to clothing left hand edge pixel x coordinate xleftObtain clothes Dress right hand edge pixel x coordinate xright, wherein xright=width-xleft, width is image overall width;Color1 is composed simultaneously Value is the RGB numerical value of current pixel point, i.e. and color1=RGB (x, y);Then enter step S34 for next pixel to carry out Process;
If it is not, then color1 to be entered as the RGB numerical value of current pixel point, i.e. color1=RGB (x, y);Then for Next pixel enters the process of step S34;
Whether S34, judgement current pixel point x coordinate meet x >=xright
If it is not, enter step S32;
If so, color1 is entered as 0, i.e. color1=0;It is then return to step S32;
S4, step S3 is processed after image of clothing in the color of each pixel be converted to HSV space;
S5, be directed to high weight district pixel color value add high weight, be directed to the pixel color in low weight district Value adds low weight;
S6, statistics hsv color rectangular histogram, obtain color feature value.
Preferably, in step S1, n × m is 3 × 3,4 × 4,5 × 5 or 6 × 6, and corresponding n1 × m1 is 1 × 1,2 × 2,3 × 3 Or 4 × 4.
Preferably, step S5 is directed to high weight that high weight district pixel color value added and is directed to low weight district The ratio of the low weight that pixel color value is added is 4:1 or 3:1
Preferably, it is further comprising the steps of in step S3: if R, G, B in current pixel point value of chromatism tri-value sum is big In 128, but this pixel is positioned at low weight district, then being determined this pixel is invalid edge, takes current pixel point with previous The value of chromatism of pixel replaces the color of this pixel original.
The second object of the present invention is achieved through the following technical solutions: a kind of based on above-mentioned image of clothing foreground color feature The costume retrieval method that extracting method realizes, it is characterised in that step is as follows:
In S7, employing claim 1, step S1 to S6 carries out foreground color feature extraction to image of clothing each in data base, Obtain the color feature value of each image of clothing in garment image data storehouse;
In S8, employing claim 1, step S1 to S6 carries out foreground color feature extraction to image of clothing to be retrieved, obtains The color feature value of image of clothing to be retrieved;
S9, employing Euclidean distance are special for the color of each image of clothing in image of clothing to be retrieved and clothing image data base Value indicative carries out measuring similarity;
The highest some width image of clothing that i.e. weighted euclidean distance is minimum of similarity in S10, return garment image data storehouse, As final retrieval result.
Preferably, described step S9 use weighted euclidean distance for image of clothing to be retrieved and clothing image data base In the color feature value of each image of clothing carry out measuring similarity, wherein similarity D measure formulas is as follows:
D = W 1 Σ i = 1 L ( A i - B i ) 2 + W 2 Σ j = 1 M ( A j - B j ) 2 + W 3 Σ q = 1 N ( A q - B q ) 2 ;
Wherein W1For the weight coefficient of H component, L is H component characterization sum;W2For the weight coefficient of S component, M is S component Feature sum;W3For the weight coefficient of V component, N is V component feature sum;AiH component color for image of clothing to be retrieved is special Value indicative, BiFor the H component color eigenvalue of image of clothing, A in data basejS component color feature for image of clothing to be retrieved Value, BjFor the S component color eigenvalue of image of clothing, A in data baseqFor the V component color feature value of image of clothing to be retrieved, BqFor the V component color feature value of image of clothing in data base.
Preferably, W1:W2:W3Weight ratio be 1:2:3 or 1:3:2;Step S10 returns similarity in data base the highest 30 width image of clothing as final retrieval result.
The third object of the present invention is achieved through the following technical solutions: a kind of based on above-mentioned image of clothing foreground color feature The costume retrieval system that extracting method realizes, it is characterised in that including:
Garment image data storehouse, for storing the color feature value of image of clothing and image of clothing;
Characteristic extracting module, for extracting clothing figure in garment image data storehouse by step S1 to S6 in claim 1 The color feature value of picture, for extracting the color feature value of image of clothing to be retrieved by step S1 to S6 in claim 1;
Characteristic matching module, is used for using Euclidean distance respectively to take in image of clothing to be retrieved and clothing image data base The color feature value of dress image carries out measuring similarity, returns some width images that in garment image data storehouse, similarity is the highest and makees For retrieval result.
Preferably, also include user function module, be used for specifying image of clothing to be retrieved, specifying garment image data storehouse also Select retrieval mode and measuring similarity mode.
Preferably, characteristic matching module uses weighted euclidean distance for image of clothing to be retrieved and clothing image data base In the color feature value of each image of clothing carry out measuring similarity, wherein similarity D measure formulas is as follows:
D = W 1 Σ i = 1 L ( A i - B i ) 2 + W 2 Σ j = 1 M ( A j - B j ) 2 + W 3 Σ q = 1 N ( A q - B q ) 2 ;
Wherein W1For the weight coefficient of H component, L is H component characterization sum;W2For the weight coefficient of S component, M is S component Feature sum;W3For the weight coefficient of V component, N is V component feature sum;AiH component color for image of clothing to be retrieved is special Value indicative, BiFor the H component color eigenvalue of image of clothing, A in data basejS component color feature for image of clothing to be retrieved Value, BjFor the S component color eigenvalue of image of clothing, A in data baseqFor the V component color feature value of image of clothing to be retrieved, BqFor the V component color feature value of image of clothing in data base.
The present invention has such advantages as relative to prior art and effect:
(1) image of clothing foreground color feature extracting method of the present invention uses the color difference threshold method combined with image block Detection clothing edge, and use the color of value of chromatism pixel each to image of clothing to be replaced, before the highest weight district The pixel of scape part with the addition of color compensating when calculating value of chromatism, and the clothing foreground color in the highest weight district has obtained relatively Good reservation, the background colour in high weight district is replaced by aberration, whitewashes close to background, and the color in low weight district is all replaced For aberration;The inventive method can effectively eliminate the interference of clothing background color.Additionally in the inventive method, auxiliary uses piecemeal Weighting method gives the weight that central area pixel is higher, can weaken the interference of peripheral background further.By the inventive method Recall ratio and the precision ratio of costume retrieval can be effectively improved when being applied to costume retrieval, be particularly directed to the clothing that background is complicated Image, the advantage compared to existing technology of retrieval effectiveness when the inventive method is applied to costume retrieval becomes apparent from;Overcome existing In technology, to be applied to precision ratio and recall ratio during costume retrieval relatively low for color feature extracted algorithm, particularly with the clothes that background is complicated Dress image, the technical problem of retrieval effectiveness difference.
(2) in the inventive method, if R, G, B in pixel value of chromatism tri-value sum is more than 128, but this pixel position In low weight district, then being determined this pixel is invalid edge, takes value of chromatism and replaces the color of this pixel original, can be effective Prevent the erroneous judgement at edge during complex background.
(3) image of clothing foreground color feature extracting method of the present invention can also avoid the edge that clothing self pattern produces It is mistaken for background colour interference, when the edge that clothing pattern produces being detected, owing to this point is usually located at high weight district, therefore Color1 is entered as the rgb value of current pixel point again, due to the color compensating of color1, so that the right at pattern edge The color of pixel keeps constant, and this just remains the color characteristic of clothing itself.
(4) in the present invention, costume retrieval method and system is based on image of clothing foreground color feature extraction side in the present invention Method realizes, and additionally all uses weighted euclidean distance to calculate image of clothing kimonos to be retrieved in search method of the present invention and system Fill the similarity between the color feature value of image of clothing in image data base, distinguish H, S, V tri-by weighted euclidean distance The impact of individual component, it is possible to increase the recall ratio of costume retrieval and precision ratio.
Accompanying drawing explanation
The precision ratio comparison diagram of algorithms of different when Fig. 1 is the pure color clothing of retrieval complex background.
The recall ratio comparison diagram of algorithms of different when Fig. 2 is the pure color clothing of retrieval complex background.
Fig. 3 be retrieval complex background with the precision ratio comparison diagram of algorithms of different during a small amount of pattern clothing.
Fig. 4 be retrieval complex background with the recall ratio comparison diagram of algorithms of different during a small amount of pattern clothing.
The precision ratio comparison diagram of algorithms of different when Fig. 5 is the pattern clothing of retrieval complex background.
The recall ratio comparison diagram of algorithms of different when Fig. 6 is the pattern clothing of retrieval complex background.
Detailed description of the invention
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention do not limit In this.
Embodiment
Present embodiment discloses a kind of image of clothing foreground color feature extracting method, step is as follows:
S1, image of clothing is carried out image block: image of clothing is divided into n × m sub-block, makes the block region of center n1 × m1 For nucleus, other regions are outer peripheral areas;Wherein n × m can be 3 × 3,4 × 4,5 × 5 or 6 × 6, and corresponding n1 × m1 Can be 1 × 1,2 × 2,3 × 3 or 4 × 4.Using n × m in the present embodiment is 4 × 4 and corresponding n1 × m1 is 2 × 2 to obtain figure As piecemeal.
S2, according to image block zoning: nucleus is defined as high weight district, and outer peripheral areas is defined as low weight District.
S3, color difference threshold method is combined with image block and detects clothing foreground edge, and picture each to image of clothing The color of vegetarian refreshments is changed, and detailed process is as follows:
S31, read the rgb value of each pixel the most from left to right, subsequently into step S32.
S32, the value of chromatism asked between current pixel point and previous pixel, and by the RGB color of current pixel point Replace with calculated value of chromatism, subsequently into step S33;
Wherein the value of chromatism between current pixel point and previous pixel is:
Color (x, y)=RGB (x, y) RGB (x-1, y)+color1;
Wherein color (x, y) be coordinate be current pixel point (x, y) with previous pixel (x-1, y) between aberration Value, color1 is variable, plays the effect of color compensating, and initial value is 0;
Whether S33, R, G and B value sum judged in current pixel point value of chromatism be more than 128 and current pixel point location Whether territory is high weight regions;
If it is not, then return to the process of step S32 for next pixel;
The most then judge whether current pixel point is first pixel meeting above-mentioned condition;
The most then this pixel is judged to clothing left hand edge, according to clothing left hand edge pixel x coordinate xleftObtain clothes Dress right hand edge pixel x coordinate xright, wherein xright=width-xleft, width is image overall width;Color1 is composed simultaneously Value is the RGB numerical value of current pixel point, i.e. and color1=RGB (x, y);Then enter step S34 for next pixel to carry out Process;
If it is not, then color1 to be entered as the RGB numerical value of current pixel point, i.e. color1=RGB (x, y);Then for Next pixel enters the process of step S34.
Whether S34, judgement current pixel point x coordinate meet x >=xright
If not, then it is assumed that this pixel remains as foreground part, step S32 is entered;
If, then it is assumed that this pixel is background parts, color1 is entered as 0 simultaneously, i.e. color1=0;Then return To step S32.
S4, step S3 is processed after image of clothing in the color of each pixel be converted to HSV space.
S5, be directed to high weight district pixel color value add high weight, be directed to the pixel color in low weight district Value adds low weight;The ratio of the highest weight and low weight is 4:1, naturally it is also possible to be adopted as other ratio, than Such as 3:1.
S6, statistics hsv color rectangular histogram, obtain color feature value.
The present embodiment method uses the color difference threshold method detection clothing edge combined with image block, and the inventive method will The rgb value of current pixel point and previous pixel obtains aberration plus color compensating value color1 after carrying out subtraction Value, then uses this value of chromatism to replace the color that current pixel point is original, and wherein color1 initial value is zero;The present embodiment method Middle judge clothing left hand edge according to R, G, B value sum and pixel region in each pixel value of chromatism, then pass through Clothing left hand edge gets clothing right hand edge, the pixel occurred before clothing left hand edge and after clothing right hand edge, mends Repaying value color1 is zero, and after clothing left hand edge occurs, color1 is endowed the RGB numerical value of clothing left hand edge pixel, and And the pixel being between clothing left hand edge and right hand edge occurs that in its value of chromatism, R, G, B value sum more than 128 and is in height Just the value of color1 is given during weight district the rgb value of this pixel, face can be obtained when next pixel calculates value of chromatism Colorimetric compensation.Therefore using value of chromatism to replace original color through the inventive method, be in clothing left hand edge and right hand edge it Between pixel due to the compensating action of color1, the color after it is replaced keeps the most constant or is basically unchanged, and other portions The pixel divided is zero due to color1, and the color after replacing hence with value of chromatism compares original color bigger difference. The present embodiment said method makes the clothing foreground color in high weight district obtain preferable reservation, the background colour quilt in high weight district Replacing with aberration, whitewash close to background, the color in low weight district is all replaced by aberration, and therefore the present embodiment method can have Effect eliminates the interference of clothing background color.
If R, G, B in step S3 of the present embodiment said method in pixel value of chromatism tri-value sum is more than 128, but This pixel is positioned at low weight district, then being determined this pixel is invalid edge, the most still takes value of chromatism and replaces this picture original The color of vegetarian refreshments, can effectively prevent the erroneous judgement at edge during complex background.
The edge that the present embodiment said method can also avoid clothing self pattern to produce is mistaken for background colour interference, when When the edge that clothing pattern produces being detected, owing to this pixel is usually located at high weight district, therefore color1 is by assignment again For the rgb value of current pixel point, due to the color compensating of color1, so that the color of the right pixels point at pattern edge keeps Constant, this just remains the color characteristic of clothing itself.
The present embodiment also discloses a kind of clothing inspection realized based on above-mentioned image of clothing foreground color feature extracting method Suo Fangfa, step is as follows:
S7, employing above-mentioned steps S1 to S6 carry out foreground color feature extraction to image of clothing each in data base, are taken The color feature value of each image of clothing in dress image data base.
S8, employing above-mentioned steps S1 to S6 carry out foreground color feature extraction to image of clothing to be retrieved, obtain to be retrieved The color feature value of image of clothing.
S9, employing weighted euclidean distance are for the face of each image of clothing in image of clothing to be retrieved and clothing image data base Color characteristic value carries out measuring similarity, and wherein similarity D measure formulas is as follows:
D = W 1 Σ i = 1 L ( A i - B i ) 2 + W 2 Σ j = 1 M ( A j - B j ) 2 + W 3 Σ q = 1 N ( A q - B q ) 2 ;
Wherein W1For the weight coefficient of H component, L is H component characterization sum;W2For the weight coefficient of S component, M is S component Feature sum;W3For the weight coefficient of V component, N is V component feature sum;AiH component color for image of clothing to be retrieved is special Value indicative, BiFor the H component color eigenvalue of image of clothing, A in data basejS component color feature for image of clothing to be retrieved Value, BjFor the S component color eigenvalue of image of clothing, A in data baseqFor the V component color feature value of image of clothing to be retrieved, BqFor the V component color feature value of image of clothing in data base.
W in the present embodiment1:W2:W3Weight ratio be 1:2:3, it is also possible to select other ratios such as 1:3:2.
The highest some width image of clothing that i.e. weighted euclidean distance is minimum of similarity in S10, return garment image data storehouse, As final retrieval result.The 30 width image of clothing that in the present embodiment, in return data base, similarity is the highest are as final inspection Hitch fruit.
The present embodiment also discloses a kind of clothing inspection realized based on above-mentioned image of clothing foreground color feature extracting method Cable system, including:
Garment image data storehouse, for storing the color feature value of image of clothing and image of clothing.
User function module, is used for specifying image of clothing to be retrieved, specifying garment image data storehouse and select retrieval mode With measuring similarity mode.
Characteristic extracting module, for extracting the color of image of clothing in garment image data storehouse by above-mentioned steps S1 to S6 Eigenvalue, for extracting the color feature value of image of clothing to be retrieved by above-mentioned steps S1 to S6.
Characteristic matching module, is used for using Euclidean distance respectively to take in image of clothing to be retrieved and clothing image data base The color feature value of dress image carries out measuring similarity, returns the 30 width image conducts that in garment image data storehouse, similarity is the highest Retrieval result, the retrieval result wherein exported sorts from high to low according to similarity.
In the present embodiment, characteristic matching module uses weighted euclidean distance for image of clothing to be retrieved and clothing picture number Carrying out measuring similarity according to the color feature value of image of clothing each in storehouse, wherein similarity D measure formulas is as follows:
D = W 1 Σ i = 1 L ( A i - B i ) 2 + W 2 Σ j = 1 M ( A j - B j ) 2 + W 3 Σ q = 1 N ( A q - B q ) 2 ;
Wherein W1For the weight coefficient of H component, L is H component characterization sum;W2For the weight coefficient of S component, M is S component Feature sum;W3For the weight coefficient of V component, N is V component feature sum;AiH component color for image of clothing to be retrieved is special Value indicative, BiFor the H component color eigenvalue of image of clothing, A in data basejS component color feature for image of clothing to be retrieved Value, BjFor the S component color eigenvalue of image of clothing, A in data baseqFor the V component color feature value of image of clothing to be retrieved, BqFor the V component color feature value of image of clothing in data base.
Be as shown in Figures 1 to 6 by global color histogram method in above-mentioned for the present embodiment costume retrieval method and prior art, Recall ratio when cumulative color histogram method and color moments method are respectively applied to costume retrieval and precision ratio.Wherein clothing are divided into pure Color, carry a small amount of pattern and pattern three class, have chosen the simple three class representative graphs of background respectively and complicated three classes of background represent Figure, totally 6 representational image of clothing are retrieved.Garment image data storehouse contains the clothes that 300 several Taobaos download Dress image.
When being the pure color clothing that figure to be retrieved is background complexity as depicted in figs. 1 and 2, the precision ratio of each algorithm and recall ratio Contrast.Fig. 3 and Fig. 4 show figure to be retrieved when being the complicated band a small amount of pattern clothing of background, the precision ratio of each algorithm and look into complete Rate.When Fig. 5 and Fig. 6 show the pattern clothing that figure to be retrieved is background complexity, the precision ratio of each algorithm and recall ratio.By above-mentioned Each figure is visible, and in the case of background complexity, for different types of figure to be retrieved, the retrieval performance of the present embodiment method is the most excellent All it is greatly improved in other algorithms, precision ratio and recall ratio.This explanation, the present embodiment method can effectively reduce background face The interference of color, the image of clothing being particularly suited under complex background is retrieved, is had stronger practicality.Simple for background three Class figure to be retrieved, the present embodiment method is the most slightly better than other algorithms.
Above-described embodiment is the present invention preferably embodiment, but embodiments of the present invention are not by above-described embodiment Limit, the change made under other any spirit without departing from the present invention and principle, modify, substitute, combine, simplify, All should be the substitute mode of equivalence, within being included in protection scope of the present invention.

Claims (10)

1. an image of clothing foreground color feature extracting method, it is characterised in that step is as follows:
S1, image of clothing is carried out image block: image of clothing is divided into n × m sub-block, and the block region making center n1 × m1 is core Heart region, other regions are outer peripheral areas;
S2, according to image block zoning: nucleus is defined as high weight district, and outer peripheral areas is defined as low weight district;
S3, color difference threshold method is combined with image block and detects clothing foreground edge, and pixel each to image of clothing Color change, detailed process is as follows:
S31, read the rgb value of each pixel the most from left to right, subsequently into step S32;
S32, the value of chromatism asked between current pixel point and previous pixel, and the RGB color of current pixel point is replaced For calculated value of chromatism, subsequently into step S33;Wherein current pixel point with the value of chromatism of previous pixel is:
Color (x, y)=RGB (x, y) RGB (x-1, y)+color1;
Wherein color (x, y) be coordinate be current pixel point (x, y) with previous pixel (x-1, y) between value of chromatism, Color1 is variable, plays the effect of color compensating, and initial value is 0;
Whether S33, R, G and B value sum judged in current pixel point value of chromatism be more than 128 and current pixel point region is No for high weight regions;
If it is not, then return to the process of step S32 for next pixel;
The most then judge whether current pixel point is first pixel meeting above-mentioned condition;
The most then this pixel is judged to clothing left hand edge, according to clothing left hand edge pixel x coordinate xleftObtain clothing right Edge pixel point x coordinate xright, wherein xright=width-xleft, width is image overall width;Color1 is entered as simultaneously The RGB numerical value of current pixel point, i.e. color1=RGB (x, y);Then the process of step S34 is entered for next pixel;
If it is not, then color1 to be entered as the RGB numerical value of current pixel point, i.e. color1=RGB (x, y);Then for next Pixel enters the process of step S34;
Whether S34, judgement current pixel point x coordinate meet x >=xright
If it is not, enter step S32;
If so, color1 is entered as 0, i.e. color1=0;It is then return to step S32;
S4, step S3 is processed after image of clothing in the color of each pixel be converted to HSV space;
S5, be directed to high weight district pixel color value add high weight, the pixel color value being directed to low weight district adds Add low weight;
S6, statistics hsv color rectangular histogram, obtain color feature value.
Image of clothing foreground color feature extracting method the most according to claim 1, it is characterised in that n × m in step S1 Being 3 × 3,4 × 4,5 × 5 or 6 × 6, corresponding n1 × m1 is 1 × 1,2 × 2,3 × 3 or 4 × 4.
Image of clothing foreground color feature extracting method the most according to claim 1, it is characterised in that step S5 is directed to The high weight that high weight district pixel color value is added and be directed to the low weight that low weight district pixel color value is added Ratio be 4:1 or 3:1.
Image of clothing foreground color feature extracting method the most according to claim 1, it is characterised in that also wrap in step S3 Include following steps: if tri-value sums of R, G, B in current pixel point value of chromatism are more than 128, but this pixel is positioned at low weight District, then being determined this pixel is invalid edge, takes current pixel point and replaces this picture original with the value of chromatism of previous pixel The color of vegetarian refreshments.
5. the costume retrieval method realized based on the image of clothing foreground color feature extracting method described in claim 1, It is characterized in that, step is as follows:
In S7, employing claim 1, step S1 to S6 carries out foreground color feature extraction to image of clothing each in data base, obtains The color feature value of each image of clothing in garment image data storehouse;
In S8, employing claim 1, step S1 to S6 carries out foreground color feature extraction to image of clothing to be retrieved, obtains to be checked The color feature value of rope image of clothing;
S9, employing Euclidean distance are for the color feature value of each image of clothing in image of clothing to be retrieved and clothing image data base Carry out measuring similarity;
The highest some width image of clothing that i.e. weighted euclidean distance is minimum of similarity in S10, return garment image data storehouse, as Final retrieval result.
Costume retrieval method the most according to claim 5, it is characterised in that use weighted euclidean distance in described step S9 Measuring similarity is carried out, wherein for the color feature value of each image of clothing in image of clothing to be retrieved and clothing image data base Similarity D measure formulas is as follows:
D = W 1 Σ i = 1 L ( A i - B i ) 2 + W 2 Σ j = 1 M ( A j - B j ) 2 + W 3 Σ q = 1 N ( A q - B q ) 2 ;
Wherein W1For the weight coefficient of H component, L is H component characterization sum;W2For the weight coefficient of S component, M is S component characterization Sum;W3For the weight coefficient of V component, N is V component feature sum;AiFor the H component color eigenvalue of image of clothing to be retrieved, BiFor the H component color eigenvalue of image of clothing, A in data basejFor the S component color eigenvalue of image of clothing to be retrieved, BjFor The S component color eigenvalue of image of clothing, A in data baseqFor the V component color feature value of image of clothing to be retrieved, BqFor data The V component color feature value of image of clothing in storehouse.
Costume retrieval method the most according to claim 5, it is characterised in that W1:W2:W3Weight ratio be 1:2:3 or 1:3: 2;The 30 width image of clothing that in step S10, in return data base, similarity is the highest are as final retrieval result.
8. the costume retrieval system realized based on the image of clothing foreground color feature extracting method described in claim 1, It is characterized in that, including:
Garment image data storehouse, for storing the color feature value of image of clothing and image of clothing;
Characteristic extracting module, for extracting image of clothing in garment image data storehouse by step S1 to S6 in claim 1 Color feature value, for extracting the color feature value of image of clothing to be retrieved by step S1 to S6 in claim 1;
Characteristic matching module, is used for using Euclidean distance for clothing figure each in image of clothing to be retrieved and clothing image data base The color feature value of picture carries out measuring similarity, and some width images that in return garment image data storehouse, similarity is the highest are as inspection Hitch fruit.
Costume retrieval system the most according to claim 8, it is characterised in that also include user function module, is used for specifying Image of clothing to be retrieved, appointment garment image data storehouse also select retrieval mode and measuring similarity mode.
Costume retrieval system the most according to claim 8, it is characterised in that characteristic matching module use weighting European away from Measuring similarity is carried out from for the color feature value of each image of clothing in image of clothing to be retrieved and clothing image data base, its Middle similarity D measure formulas is as follows:
D = W 1 Σ i = 1 L ( A i - B i ) 2 + W 2 Σ j = 1 M ( A j - B j ) 2 + W 3 Σ q = 1 N ( A q - B q ) 2 ;
Wherein W1For the weight coefficient of H component, L is H component characterization sum;W2For the weight coefficient of S component, M is S component characterization Sum;W3For the weight coefficient of V component, N is V component feature sum;AiFor the H component color eigenvalue of image of clothing to be retrieved, BiFor the H component color eigenvalue of image of clothing, A in data basejFor the S component color eigenvalue of image of clothing to be retrieved, BjFor The S component color eigenvalue of image of clothing, A in data baseqFor the V component color feature value of image of clothing to be retrieved, BqFor data The V component color feature value of image of clothing in storehouse.
CN201610590862.3A 2016-07-25 2016-07-25 Image of clothing foreground color feature extracting method and costume retrieval method and system Expired - Fee Related CN106227827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610590862.3A CN106227827B (en) 2016-07-25 2016-07-25 Image of clothing foreground color feature extracting method and costume retrieval method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610590862.3A CN106227827B (en) 2016-07-25 2016-07-25 Image of clothing foreground color feature extracting method and costume retrieval method and system

Publications (2)

Publication Number Publication Date
CN106227827A true CN106227827A (en) 2016-12-14
CN106227827B CN106227827B (en) 2019-04-12

Family

ID=57532834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610590862.3A Expired - Fee Related CN106227827B (en) 2016-07-25 2016-07-25 Image of clothing foreground color feature extracting method and costume retrieval method and system

Country Status (1)

Country Link
CN (1) CN106227827B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085766A (en) * 2017-04-20 2017-08-22 温州市鹿城区中津先进科技研究院 The big data analysis method of strategy instruction of getting the raw materials ready is carried out based on sales volume
CN107103495A (en) * 2017-04-20 2017-08-29 温州市鹿城区中津先进科技研究院 Big data analysis method based on clothing color collection apparatus statistic of classification sales volume
CN107153969A (en) * 2017-04-20 2017-09-12 温州市鹿城区中津先进科技研究院 The big data processing method that fabric scheduling is instructed is carried out based on positioning label
CN107169817A (en) * 2017-04-20 2017-09-15 温州市鹿城区中津先进科技研究院 Electric business platform exhibiting pictures colouring information acquisition method
CN107862710A (en) * 2017-11-28 2018-03-30 奕响(大连)科技有限公司 A kind of similar decision method of picture based on conversion lines
CN107870992A (en) * 2017-10-27 2018-04-03 上海交通大学 Editable image of clothing searching method based on multichannel topic model
CN108229493A (en) * 2017-04-10 2018-06-29 商汤集团有限公司 Banknote validation method, apparatus and electronic equipment
CN108769585A (en) * 2018-05-30 2018-11-06 深圳万智联合科技有限公司 A kind of good monitoring system of monitoring effect
CN108876841A (en) * 2017-07-25 2018-11-23 成都通甲优博科技有限责任公司 The method and system of interpolation in a kind of disparity map parallax refinement
CN111325806A (en) * 2020-02-18 2020-06-23 苏州科达科技股份有限公司 Clothing color recognition method, device and system based on semantic segmentation
CN111739003A (en) * 2020-06-18 2020-10-02 上海电器科学研究所(集团)有限公司 Machine vision algorithm for appearance detection
CN113298862A (en) * 2021-06-08 2021-08-24 深圳市中瑞微视光电有限公司 Jewelry screening method, system, terminal and storage medium
CN113781451A (en) * 2021-09-13 2021-12-10 长江存储科技有限责任公司 Wafer detection method and device, electronic equipment and computer readable storage medium
CN116226432A (en) * 2022-12-14 2023-06-06 钰深(北京)科技有限公司 Digitalized garment style duplication checking method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663398A (en) * 2012-03-31 2012-09-12 上海博康智能信息技术有限公司 Color image color feature extraction method and device thereof
US20140119643A1 (en) * 2012-10-25 2014-05-01 Adobe Systems Incorporated Image Matting and Alpha Value Techniques
CN103955952A (en) * 2014-05-04 2014-07-30 电子科技大学 Extraction and description method for garment image color features
CN105718552A (en) * 2016-01-19 2016-06-29 北京服装学院 Clothing freehand sketch based clothing image retrieval method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663398A (en) * 2012-03-31 2012-09-12 上海博康智能信息技术有限公司 Color image color feature extraction method and device thereof
US20140119643A1 (en) * 2012-10-25 2014-05-01 Adobe Systems Incorporated Image Matting and Alpha Value Techniques
CN103955952A (en) * 2014-05-04 2014-07-30 电子科技大学 Extraction and description method for garment image color features
CN105718552A (en) * 2016-01-19 2016-06-29 北京服装学院 Clothing freehand sketch based clothing image retrieval method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈倩等: "基于内容的服装检索系统中颜色特征提取算法的研究和改进", 《激光杂志》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108229493A (en) * 2017-04-10 2018-06-29 商汤集团有限公司 Banknote validation method, apparatus and electronic equipment
CN107103495A (en) * 2017-04-20 2017-08-29 温州市鹿城区中津先进科技研究院 Big data analysis method based on clothing color collection apparatus statistic of classification sales volume
CN107153969A (en) * 2017-04-20 2017-09-12 温州市鹿城区中津先进科技研究院 The big data processing method that fabric scheduling is instructed is carried out based on positioning label
CN107169817A (en) * 2017-04-20 2017-09-15 温州市鹿城区中津先进科技研究院 Electric business platform exhibiting pictures colouring information acquisition method
CN107085766A (en) * 2017-04-20 2017-08-22 温州市鹿城区中津先进科技研究院 The big data analysis method of strategy instruction of getting the raw materials ready is carried out based on sales volume
CN108876841A (en) * 2017-07-25 2018-11-23 成都通甲优博科技有限责任公司 The method and system of interpolation in a kind of disparity map parallax refinement
CN108876841B (en) * 2017-07-25 2023-04-28 成都通甲优博科技有限责任公司 Interpolation method and system in parallax refinement of parallax map
CN107870992A (en) * 2017-10-27 2018-04-03 上海交通大学 Editable image of clothing searching method based on multichannel topic model
CN107862710A (en) * 2017-11-28 2018-03-30 奕响(大连)科技有限公司 A kind of similar decision method of picture based on conversion lines
CN108769585A (en) * 2018-05-30 2018-11-06 深圳万智联合科技有限公司 A kind of good monitoring system of monitoring effect
CN111325806A (en) * 2020-02-18 2020-06-23 苏州科达科技股份有限公司 Clothing color recognition method, device and system based on semantic segmentation
WO2021164283A1 (en) * 2020-02-18 2021-08-26 苏州科达科技股份有限公司 Clothing color recognition method, device and system based on semantic segmentation
CN111739003A (en) * 2020-06-18 2020-10-02 上海电器科学研究所(集团)有限公司 Machine vision algorithm for appearance detection
CN111739003B (en) * 2020-06-18 2022-11-18 上海电器科学研究所(集团)有限公司 Machine vision method for appearance detection
CN113298862A (en) * 2021-06-08 2021-08-24 深圳市中瑞微视光电有限公司 Jewelry screening method, system, terminal and storage medium
CN113781451A (en) * 2021-09-13 2021-12-10 长江存储科技有限责任公司 Wafer detection method and device, electronic equipment and computer readable storage medium
CN113781451B (en) * 2021-09-13 2023-10-17 长江存储科技有限责任公司 Wafer detection method, device, electronic equipment and computer readable storage medium
CN116226432A (en) * 2022-12-14 2023-06-06 钰深(北京)科技有限公司 Digitalized garment style duplication checking method and device

Also Published As

Publication number Publication date
CN106227827B (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN106227827A (en) Image of clothing foreground color feature extracting method and costume retrieval method and system
CN109670591B (en) Neural network training method and image matching method and device
Ye et al. Co-saliency detection via co-salient object discovery and recovery
TWI559242B (en) Visual clothing retrieval
CN103604371B (en) Mobile terminal and object measurement method thereof
CN109583481B (en) Fine-grained clothing attribute identification method based on convolutional neural network
CN108537239A (en) A kind of method of saliency target detection
CN106250431B (en) A kind of Color Feature Extraction Method and costume retrieval system based on classification clothes
CN106898026A (en) The dominant hue extracting method and device of a kind of picture
CN106373086A (en) Augmented reality-based ring 2D online real-time trying method and system
CN109448009A (en) Infrared Image Processing Method and device for transmission line faultlocating
Cai et al. Study on shadow detection method on high resolution remote sensing image based on HIS space transformation and NDVI index
CN105718552A (en) Clothing freehand sketch based clothing image retrieval method
CN107832359A (en) A kind of picture retrieval method and system
CN113052923B (en) Tone mapping method, tone mapping apparatus, electronic device, and storage medium
CN106815587A (en) Image processing method and device
Liu et al. A novel feature fusion approach for VHR remote sensing image classification
CN111767817A (en) Clothing matching method and device, electronic equipment and storage medium
CN103049512B (en) Blocking, weighting and matching retrieval method based on commodity image saliency map
JP2003141546A (en) Image processing method
Weng et al. Clothing image retrieval using color moment
CN106295673A (en) Item Information processing method and processing means
Mezaris et al. Still image objective segmentation evaluation using ground truth
JP5290915B2 (en) Image processing apparatus, image processing method, and program
Li et al. Yarn-dyed fabric image retrieval using colour moments and the perceptual hash algorithm

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190412

Termination date: 20200725