COLOR JUDGMENT DEVICE, COLOR JUDGMENT METHOD, AND PROGRAM

The color determination device addresses the ambiguity in human color perception by using a probability distribution model to enhance the accuracy and efficiency of image search by considering similar colors, improving the relevance of search results.

JP7540593B2Active Publication Date: 2024-08-27NEC CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023523942
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-05-28
Publication Date
2024-08-27
Estimated Expiration
2041-05-28

AI Technical Summary

Technical Problem

Existing color determination technologies struggle to accurately account for the ambiguity of human color perception, leading to inefficiencies in image search processes due to the vast number of colors in color spaces like RGB and the difficulty in precisely matching user-specified colors with image colors.

Method used

A color determination device and method that utilize color space information and a probability distribution model to convert user-specified colors into second color features, calculating similarity with first color features extracted from images, thereby accounting for color ambiguity and enhancing accuracy in color matching.

Benefits of technology

The solution enables more accurate and efficient image search by considering colors similar to the user-specified color, reducing the effort required to find desired images and improving the relevance of search results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540593000049
    Figure 0007540593000049
  • Figure 0007540593000022
    Figure 0007540593000022
  • Figure 0007540593000048
    Figure 0007540593000048
Patent Text Reader

Abstract

A color assessment device (10) according to one embodiment of the present disclosure comprises: a color feature quantity extraction unit (11) for extracting, from an image, a first color feature quantity relating to the color of the image, on the basis of color space information that defines a color space; a designated color conversion unit (12) for converting a color designated by a user to a second color feature quantity relating to the designated color, on the basis of the color space information and a probability distribution model that represents the ambiguity of colors; and a similarity calculation unit (13) for calculating the degree of similarity between the first color feature quantity and the second color feature quantity. This makes it possible to provide a color assessment device capable of accurate color assessment of images, in consideration of the ambiguity of colors distinguished by humans.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present disclosure relates to a color determining apparatus, a color determining method, and a non-transitory computer-readable medium. [Background technology]

[0002] There has been progress in technology that allows a device to search for and present images corresponding to a color specified by a searcher. For example, the image search device disclosed in Patent Document 1 extracts HSV color space data from a sample image (search key) created by the searcher, and calculates the similarity between the sample image and each image in the image database using the extracted HSV color space data and HSV color space data extracted from an image database. The image search device then determines search candidates based on the calculated similarity and displays the search candidate images on a display unit. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 07-073195 Summary of the Invention [Problem to be solved by the invention]

[0004] This disclosure aims to improve upon the techniques disclosed in the prior art documents. [Means for solving the problem]

[0005] A color judgment device according to one aspect of the present disclosure includes a color feature extraction means for extracting a first color feature, which is a feature related to the color of an image, from the image based on color space information that defines the color space; a specified color conversion means for converting a color specified by a user into a second color feature, which is a feature related to the specified color, based on the color space information and a probability distribution model that expresses color ambiguity; and a similarity calculation means for calculating the similarity between the first color feature and the second color feature.

[0006] In one aspect of the color determination method according to this disclosure, a color determination device extracts a first color feature, which is a feature related to the color of an image, from an image based on color space information that defines a color space; converts a color specified by a user into a second color feature, which is a feature related to the specified color, based on the color space information and a probability distribution model that expresses color ambiguity; and calculates the similarity between the first color feature and the second color feature.

[0007] A non-transitory computer-readable medium according to one aspect of the present disclosure stores a program that causes a computer to extract, from an image based on color space information that defines a color space, a first color feature that is a feature related to the color of the image, convert a user-specified color into a second color feature that is a feature related to the specified color based on the color space information and a probability distribution model that expresses color ambiguity, and calculate the similarity between the first color feature and the second color feature. [Effects of the Invention]

[0008] According to this disclosure, it is possible to provide a color judgment device, a color judgment method, and a non-transitory computer-readable medium that can accurately judge the color of an image, taking into account the ambiguity of colors that humans distinguish. [Brief explanation of the drawings]

[0009] [Figure 1] 1 is a block diagram showing an example of a color determination device according to a first embodiment. [Figure 2] 4 is a flowchart illustrating an example of processing performed by the color determination device according to the first embodiment. [Figure 3] FIG. 10 is a block diagram showing an example of a color determination device according to a second embodiment. [Figure 4A] FIG. 10 is a diagram illustrating an example of a definition of an HSV color space according to the second embodiment. [Figure 4B] FIG. 10 is a diagram illustrating an example of a definition of an HSV color space according to the second embodiment. [Figure 5A] FIG. 10 is a diagram illustrating an example of a method for dividing a hue H according to the second embodiment. [Figure 5B]FIG. 10 is a diagram illustrating an example of a method for dividing saturation S according to the second embodiment. [Figure 5C] FIG. 10 is a diagram illustrating an example of a method for dividing luminosity V according to the second embodiment. [Figure 6A] 10 is a table illustrating an example of a two-dimensional array according to the second embodiment. [Figure 6B] 10 is a table showing an example of a range of hue H according to the second embodiment. [Figure 6C] 10 is a table showing an example of an SV range according to the second embodiment; [Figure 6D] 10 is a table illustrating an example of a two-dimensional array according to the second embodiment. [Figure 7] 10 is a graph showing an example of a probability distribution model according to the second embodiment; [Figure 8] 10 is a table showing the ranges of hue H, saturation S, and brightness V of each region and cases of probability distribution models applied to each range according to the second embodiment. [Figure 9A] 10 is a table showing an example of a two-dimensional array showing a calculation result according to the second embodiment. [Figure 9B] 10 is a table showing an example of a two-dimensional array showing a calculation result according to the second embodiment. [Figure 10A] 10 is a table showing an example of a two-dimensional array showing a calculation result according to the second embodiment. [Figure 10B] 10 is a table showing an example of a two-dimensional array showing a calculation result according to the second embodiment. [Figure 11A] 10 is a table showing an example of a two-dimensional array showing a calculation result according to the second embodiment. [Figure 11B] 10 is a table showing an example of a two-dimensional array showing a calculation result according to the second embodiment. [Figure 12A] 10 is a table showing an example of a two-dimensional array showing a calculation result according to the second embodiment. [Figure 12B] 10 is a table showing an example of a two-dimensional array showing a calculation result according to the second embodiment. [Figure 13A] 10 is a table illustrating an example of a two-dimensional array indicating second color feature amounts according to the second embodiment. [Figure 13B] 10 is a table illustrating an example of a two-dimensional array indicating first color feature amounts according to the second embodiment. [Figure 14A] 10 is a flowchart illustrating an example of processing performed by the color determining device according to the second embodiment. [Figure 14B] 10 is a flowchart illustrating an example of processing performed by the color determining device according to the second embodiment. [Figure 15] FIG. 10 is a block diagram showing an example of a color determination device according to a third embodiment. [Figure 16] 11 is a flowchart illustrating an example of processing performed by the color determining device according to the third embodiment. [Figure 17] FIG. 2 is a block diagram illustrating an example of a hardware configuration of an apparatus according to each embodiment. DETAILED DESCRIPTION OF THE INVENTION

[0010] Embodiment 1 DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present disclosure will be described below with reference to the drawings. The first embodiment discloses a color judgment device according to the technique of the present disclosure.

[0011] [Configuration Description] FIG. 1 shows an example of a color judgment device according to a first embodiment. The color judgment device 10 in FIG. 1 includes a color feature extraction unit 11, a specified color conversion unit 12, and a similarity calculation unit 13. Each unit (means) of the color judgment device 10 is controlled by a control unit (controller) not shown. Each unit will be described below.

[0012] The color feature extraction unit 11 extracts first color features, which are features related to the color of an image to be determined, from the image to be determined based on color space information that defines the color space. The color space information defines any known color space, such as, but not limited to, the HSV color space, the HLS color space, the RGB color space, and the CMTK color space. These color spaces are capable of expressing any color using the components that make up the color space. The first color features indicate the color characteristics of the image and include features related to one or more colors in the color space.

[0013] The specified color conversion unit 12 converts the user's specified color into a second color feature, which is a feature related to the specified color, based on color space information and a probability distribution model that expresses color ambiguity. The color space information used by the specified color conversion unit 12 is the same as the color space information used by the color feature extraction unit 11. The probability distribution model also provides a non-zero probability distribution not only for the specified color but also for colors similar to the specified color. A "color similar to the specified color" is a color in which, in the color space defined by the above-mentioned color space information, the value of at least one component in the color space has a value close to that of the specified color (i.e., the difference between the same components is less than a certain threshold). As a result, the probability distribution model expresses color ambiguity by allowing colors other than the specified color to be included.

[0014] The second color feature indicates the color characteristics of the specified color and includes feature values ​​related to multiple colors in the color space. Originally, the specified color is defined as a single color in the color space, but as described above, the specified color conversion unit 12 uses a probability distribution model to convert the specified color into a second color feature value including feature values ​​related to multiple colors.

[0015] The similarity calculation unit 13 calculates the similarity between the first color feature extracted by the color feature extraction unit 11 and the second color feature converted by the specified color conversion unit 12. The more colors contained in the first color feature and the second color feature are in common, the higher the similarity value. Furthermore, the higher the value of the feature of the same color in both color feature, the higher the similarity value. The higher the similarity value, the closer the color of the image to be judged is to the color specified by the user, and the more likely it is that the image is the image the user desires. The similarity is expressed in a predetermined numerical range, for example, 0 to 1 or 0 to 100, but is not limited thereto.

[0016] [Processing Description] 2 is a flowchart showing an example of a typical process of the color judgment device 10, and this flowchart will be used to explain the process of the color judgment device 10. First, the color feature extraction unit 11 of the color judgment device 10 extracts, from the image to be judged, a first color feature, which is a feature related to the color of the image, based on the color space information (step S11; color feature extraction step).

[0017] Furthermore, the specified color conversion unit 12 converts the user's specified color into a second color feature, which is a feature related to the specified color, based on the color space information and a probability distribution model that expresses the ambiguity of the color (step S12; color feature conversion step).

[0018] The similarity calculation unit 13 calculates the similarity between the first color feature amount and the second color feature amount (step S13; similarity calculation step). This calculated similarity may be output and displayed on a display unit of the color judgment device 10, for example. Alternatively, the color judgment device 10 may use this similarity to perform image search processing. Details of this will be described later in the second embodiment.

[0019] In addition, steps S11 and S12 may be executed first or in parallel, but in order to reduce the time from when the user specifies a color until step S13 is completed, it is preferable to complete the processing of step S11 before the user specifies a color.

[0020] [Effect description] In this way, the color judgment device 10 expresses the ambiguity of colors as perceived by the human eye using a probability distribution model, and by applying this model to a specified color, it is possible to make an accurate color judgment of an image that takes into account the ambiguity of colors as perceived by humans.

[0021] Embodiment 2 A second embodiment of this disclosure will be described below with reference to the drawings. In the second embodiment, a specific example of the color determination device described in the first embodiment will be disclosed.

[0022] [Configuration Description] 3 is a block diagram showing an example of a color judgment device 20. The color judgment device 20 includes a color space information reading unit 21, a color feature extraction unit 22, a specified color conversion unit 23, a similarity calculation unit 24, an image search unit 25, and a storage unit 26. Each unit will be described in detail below.

[0023] The color space information reading unit 21 reads color space information that defines the HSV color space from the storage unit 26, and outputs the color space information to the color feature extraction unit 22 and the specified color conversion unit 23. The color space defines the granularity (detail), range, and expression method of each color.

[0024] 4A and 4B are diagrams illustrating an example definition of the HSV color space according to the second embodiment. FIG. 4A shows a representation of a cone model in the HSV color space. In the right circular cone C shown in FIG. 4A, the angle of rotation along the circumference represents hue H, the position in the radial direction of the circle from the center line represents saturation S, and the position along the center line represents lightness (value) V. The range of hue H (deg) is [0, 360], the range of saturation S is [0, 1], and the range of lightness V is [0, 1]. Here, a color whose saturation S (saturation value) is 0 indicates that the color is located on the center line of the right circular cone C, and a color whose saturation S is 1 indicates that the color is located on the outer periphery (generator) of the right circular cone C. Furthermore, when the color's brightness V (Value) is 0, that color is located at the apex of the right circular cone C, and when the color's brightness V is 1, that color is located at the base of the right circular cone C.

[0025] In the second embodiment, the right circular cone C is divided into the following four regions: black region 1 where the lightness V is less than 0.19 (second threshold); gray region 2 where the lightness V is equal to or greater than 0.19 and equal to or less than 0.81 (third threshold) and the saturation S is less than 0.14 (fourth threshold); white region 3 where the lightness V is greater than 0.81 and the saturation S is less than 0.14 (fifth threshold); and region 4 of colors other than regions 1, 2, and 3. As will be described later, the properties of the specified color change depending on which of regions 1 to 4 the specified color belongs to, and therefore the probability distribution model used for the specified color is changed.

[0026] Figure 4B shows the probability distribution (Prob) of each color in the hue H range of 0 to 360°. In Figure 4B, red (A) occupies the range of 340° to 20°, brown (B) occupies the range of 10° to 35°, orange (C) occupies the range of 30° to 50°, yellow (D) occupies the range of 45° to 100°, green (E) occupies the range of 70° to 160°, cyan (F) occupies the range of 140° to 220°, blue (G) occupies the range of 200° to 290°, purple (H) occupies the range of 260° to 320°, and pink (I) occupies the range of 310° to 350°. The 10°-20°, 30°-35°, 45°-50°, 70°-100°, 140°-160°, 200°-220°, 260°-290°, 310°-320°, and 340°-350° regions are boundary regions between adjacent colors (A) to (I). The probability distribution of each color is 1 in the range of each color excluding the boundary region, a value between 1 and 0 in the boundary region, and 0 elsewhere. The probability distribution of each color in each boundary region varies linearly with changes in hue H. The method for using this probability distribution will be described later. The color space information reading unit 21 reads and uses the color space information shown in FIGS. 4A and 4B from the storage unit 26.

[0027] Returning to Fig. 3, the explanation will be continued. The color feature extraction unit 22 extracts color-related features (first color features) for each of the multiple images stored in the storage unit 26. These features represent information about the color of the image in the HSV color space. In the second embodiment, the color feature extraction unit 22 equally divides the HSV color space and represents the component amounts of the colors of each divided area as a two-dimensional array.

[0028] 5A to 5C are diagrams showing methods of dividing hue H, saturation S, and brightness V. In FIG. h The area H1 of hue H is (0, 360 / n h ], and area H2 is (360 / n h , 2*360 / n h ],..., area Hn h is ((n h -1)*360 / n h , 360]. If the index of the region of hue H is m, the region Hm is ((m-1)*360 / nh , m*360 / n h ], i.e. (m-1)*360 / n h Larger m*360 / n h The result is as follows: Also, the hue H has a periodicity of 360°.

[0029] Figure 5B shows the saturation S as s The area S1 of saturation S is [0, 1 / n s ], and the area S2 is (1 / n s , 2 / n s ],..., area Sn s is ((n s -1) / n s , 1]. If the index of the region of saturation S is m, the region Sm is ((m-1) / n s , m / n s ], i.e. (m-1) / n s Larger m / n s The result is as follows: Furthermore, when the saturation S is 0, the saturation S belongs to the region S1.

[0030] Figure 5C shows the brightness V as V The area V1 of brightness V is [0, 1 / n V ], and area V2 is (1 / n V , 2 / n V ],..., area Vn V is ((n V -1) / n V , 1]. If the index of the region of brightness V is m, the region Vm is ((m-1) / n V , m / n V ], i.e. (m-1) / n V Larger m / n V The result is as follows: Furthermore, when the brightness V is 0, the brightness V belongs to the region V1.

[0031] Figure 6A shows the h =18, n s = 4, n V The format of the two-dimensional array for n = 4 is shown below. h , n s , n VThe values ​​are examples of values ​​that are assumed to be appropriate for representing an RGB image in the HSV color space. In Figure 6A, the values ​​for all regions are 0, which are initialized values.

[0032] Columns H1 to H18 in FIG. 6A represent the 18 equal-sized regions of the hue H. FIG. 6B shows the specific ranges of H1 to H18. As shown in FIG. 6B, H1 represents (0, 20), H2 represents (20, 40), ..., H17 represents (320, 340), and H18 represents (340, 360).

[0033] In addition, rows SV1 to SV16 in FIG. 6A represent saturation S and lightness V as s *n V=16 equal areas are shown. Figure 6C shows the specific ranges of SV1 to SV16. As shown in Figure 6C, SV1 is s(0.75,1), v(0.75,1), SV2 is s(0.5,0.75), v(0.75,1), SV3 is s(0.25,0.5), v(0.75,1), SV4 is s[0,0.25], v(0.75,1). SV5 is s(0.75,1), v(0.5,0.75), SV6 is s(0.5,0.75), v(0.5,0.75), SV7 is s(0.25,0.5), v(0.5,0.75), SV8 is s[0,0.25], v(0.5,0.75). SV9 is s(0.75,1), SV10 is s(0.5,0.75), v(0.25,0.5), SV11 is s(0.25,0.5), v(0.25,0.5), SV12 is s[0,0.25], v(0.25,0.5]. Also, SV13 is s(0.75,1], v[0,0.25], SV14 is s(0.5,0.75), v[0,0.25], SV15 is s(0.25,0.5), v[0,0.25], SV16 is s[0,0.25], v[0,0.25]. Here, SV1 to 4, 5 to 8, 9 to 12, and 13 to 16 each belong to the same lightness V region, and SVq, q+4, q+8, and q+12 (q is an arbitrary integer between 1 and 4) belong to the same saturation S region. This HSV color space division method is stored in storage unit 26 as color space information, and color feature amount extraction unit 22 uses this information supplied from color space information reading unit 21 to extract features.

[0034] In detail, the color feature extraction unit 22 executes the following process. (i) First, the color feature extraction unit 22 acquires the RGB values ​​of one pixel in one image. Here, it is assumed that the acquired RGB values ​​of one pixel are (r=0, g=0, b=1). (ii) Next, the color feature extraction unit 22 converts the acquired RGB values ​​into HSV values. If the RGB values ​​are (r=0, g=0, b=1), the color feature extraction unit 22 converts the RGB values ​​into HSV values ​​of (h=240, s=1, v=0.004). (iii) The color feature extraction unit 22 adds 1 to the value of the bin (component of the two-dimensional array shown in FIG. 6A) in the two-dimensional array that corresponds to the HSV value obtained in (ii). In this case, the bin that corresponds to the HSV value is the (SV13, H12) component of the two-dimensional array, so 1 is added to the (SV13, H12) bin. FIG. 6D shows a two-dimensional array in which 1 has been added to the component of that bin in FIG. 6A.

[0035] The color feature extraction unit 22 performs the processes (i) to (iii) for all pixels of one image. As a result, for each pixel in one image, the color feature extraction unit 22 stores a value of 1 in a bin of a two-dimensional array corresponding to the HSV value converted from the RGB value of each pixel. After completing this process for one image, the color feature extraction unit 22 normalizes the two-dimensional array obtained as the final result. In this way, a first color feature is extracted for one image. The first color feature refers to a feature (probability value) of each bin in the color space related to the color of the image. The color feature extraction unit 22 performs these processes for each of the multiple images stored in the storage unit 26, and pre-extracts a first color feature for each image.

[0036] Returning to FIG. 3, the explanation will be continued. The specified color conversion unit 23 acquires a color (specified color) specified by the user for image search, and converts it into a second color feature, which is a feature related to the specified color, by applying a probability distribution model. This second color feature is a feature that indicates the probability distribution of colors in the HSV color space. Note that the specified color is designated by the user through an input unit (not shown) of the color determination device 20. Alternatively, a display unit (not shown) of the color determination device 20 may display multiple candidate colors, and the user may select one from the multiple colors to designate the specified color.

[0037] The probability distribution model is a model that expresses the ambiguity of the specified color, with the probability at the specified color being the maximum (peak value). The probability distribution model is a mountain-shaped window function that assigns a value greater than 0 to a color (target color) that is within a predetermined distance from the specified color in the HSV color space, and assigns a higher probability the closer the distance between the specified color and the target color in the HSV color space. Here, the distance indicates the distance between the areas shown in Figures 5A to 5C between the specified color and the target color in terms of hue H, saturation S, or lightness V.

[0038] For example, in the case of hue H in FIG. 5A, if the specified color is in the area h1 and the target color is in the area h2 (h1 and h2 are each 1 or more, n h In the case of (an integer below), the distance between the two in hue H is |h1-h2| or n h -|h1-h2|, whichever is smaller. The reason for this distance is that, as mentioned above, hue H has a 360° periodicity. Also, for saturation S in FIG. 5B, if the specified color is in region s1 and the target color is in region s2, the distance between them at saturation S is |s1-s2|. For lightness V in FIG. 5C, if the specified color is in region v1 and the target color is in region v2, the distance between them at lightness V is |v1-v2|.

[0039] FIG. 7 is a graph showing an example of such a probability distribution model. In FIG. 7, the probability of a specified color is 1, which is the maximum value, and the probability of a target color within a range of distances from the specified color, L1 to L2 (L1 is a negative integer and L2 is a positive integer), takes a non-zero value. The distances 0 to L1 and 0 to L2 may be the same or different. Furthermore, when the distances 0 to L1 and 0 to L2 are the same, the shape of the graph may be symmetrical about the specified color, but it does not have to be symmetrical. However, in the example described below, an example will be described in which the shape of the graph is symmetrical about the specified color.

[0040] In this example, the specified color conversion unit 23 uses the following Gaussian as a probability distribution model that gives the probability of the target color.

number

number

[0041] Also, σ in (1) h , σ s , σ v indicate the standard deviations of the Gaussians for hue H, saturation S, and lightness V, respectively. These standard deviations give the probability of the target color according to the degree of change of the target color from the specified color for hue H, saturation S, and lightness V. As shown above, the probability distribution model gives a non-zero probability even for target colors that are close in hue to the specified color.

[0042] FIG. 8 is a table showing the ranges of hue H, saturation S, and lightness V for regions 1 to 4 shown in FIG. 4A, and the cases of the probability distribution model to be applied to each. As shown in FIG. 4A, black region 1 is case A, white region 3 is case B, gray region 2 is case C, and other color region 4 is case D. Here, in each case, as will be described later, σ in (1) h , σ s , σ v The specified color conversion unit 23 selects an appropriate probability distribution model according to this table based on which of areas 1 to 4 the specified color belongs to, and calculates the probability shown in (1). The probability distribution model for each case will be explained below.

[0043] (Case A) If the specified color belongs to region 1, σ h , σ s , σ v will have the following value:

number

[0044] Furthermore, since the range of brightness V in region 1 is v[0, 0.19), in the two-dimensional array shown in Figure 6A, the four rows SV13 to SV16 that include that range are assigned probabilities other than 0. Below, two examples of Case A will be explained using this setting.

[0045] (Example A1) When the HSV of the specified color is h=0, s=0, v=0 and the specified color is pure black, the actual bin belongs to the entire row of SV16. In this case, when the specified color conversion unit 23 calculates the probability for the target bin (SV14, H2) on the two-dimensional array, for example, since the specified color is s=0, as described above, h = 0. Also, based on the definition of distance, d s =2, d v =0, the specified color conversion unit 23 calculates the probability of this target bin as follows:

number

[0046] (Example A2) As another example, if the HSV of the specified color is h=10, s=0.8, and v=0.15, the actual bin belongs to (SV13, H1). In this case, when the specified color conversion unit 23 calculates the probability for the target bin (SV16, H5) on the two-dimensional array, since the specified color is s=0.8, d h = 0. Based on the definition of distance, d h = 4, d s =3, d v =0, the specified color conversion unit 23 calculates the probability of this target bin as follows:

number

[0047] 9B, each bin in the SV16 row has a different probability value, but the calculation example is not limited to this, and there may be bins in the SV16 row that have the same probability value. For example, the probability values ​​may all be the same across the entire SV16 row.

[0048] (Case B) If the specified color belongs to region 3, σ h , σ s , σ v is the value shown in (3). When s in the actual bin of the specified color is 0, the specified color conversion unit 23 calculates the distance d h is set to 0. When the s of the actual bin is 0, there is no color in the specified color, so regardless of the hue H of the target color, the distance between the actual bin and the target bin is d s and d v Because it can be decided by.

[0049] Furthermore, since the ranges of saturation S and lightness V in region 1 are s[0,0.14) and v(0.81,1], in the two-dimensional array shown in Figure 6A, the only row that is assigned a probability other than 0 is the one row of SV4 that includes that range. Below, we will explain two examples of Case B using this setting.

[0050] (Example B1) When the HSV of the specified color is h=0, s=0, v=1 and the specified color is pure white, the actual bin belongs to the entire row of SV4. In this case, when the specified color conversion unit 23 calculates the probability for the target bin related to the entire row of SV14 on the two-dimensional array, since the specified color is s=0, as described above, h = 0. Also, based on the definition of distance, d s =0, d v =0, the specified color conversion unit 23 calculates the probability of this target bin as follows:

number

[0051] (Example B2) As another example, if the HSV of the specified color is h=10, s=0.1, and v=0.9, the actual bin belongs to (SV4, H1). In this case, when the specified color conversion unit 23 calculates the probability for the target bin (SV4, H7) on the two-dimensional array, since the specified color is s=0.1, d h = 0. Based on the definition of distance, d h =6, d s =0, d v =0, the specified color conversion unit 23 calculates the probability of this target bin as follows:

number

[0052] (Case C) If the specified color belongs to region 2, σ h , σ s , σ v will have the following value:

number

[0053] Furthermore, since the ranges of saturation S and lightness V in region 2 are s[0, 0.14] and v[0.19, 0.81], in the two-dimensional array shown in Figure 6A, the four rows containing that range, SV4, 8, 12, and 16, are assigned probabilities other than 0. Below, we will explain two examples of Case C using this setting.

[0054] (Example C1) When the HSV of the specified color is h=0, s=0, v=0.7 and the specified color is pure gray, the actual bin belongs to the entire row of SV8. In this case, when the specified color conversion unit 23 calculates the probability for the target bin related to the entire row of SV4 on the two-dimensional array, since the specified color is s=0, as described above, h = 0. Also, based on the definition of distance, d s =0, d v = 1, the specified color conversion unit 23 calculates the probability of this target bin as follows:

number

[0055] (Example C2) As another example, if the HSV of the specified color is h=10, s=0.1, and v=0.3, the actual bin belongs to (SV12, H1). In this case, when the specified color conversion unit 23 calculates the probability for the target bin (SV8, H5) on the two-dimensional array, since the specified color is s=0.1, d h = 0. Based on the definition of distance, d h = 4, d s =0, d v = 1, the specified color conversion unit 23 calculates the probability of this target bin as follows:

number

[0056] (Case D) If the specified color belongs to region 4, the specified color conversion unit 23 determines which color region, (A) to (I) in FIG. 4B, the specified color belongs to. If the specified color belongs to a range excluding boundary regions between colors (i.e., when the probability is 1), the color region related to that range and the boundary regions between colors adjacent to the left and right of that color region (i.e., regions where the probability is a value between 1 and 0) become the target colors. If the specified color belongs to the boundary region between adjacent colors A and B (i.e., regions where the probability is a value between 1 and 0), that boundary region and the color regions of colors A and B adjacent to the left and right of that boundary region, excluding the boundary regions between colors (i.e., regions where the probability is 1), become the target colors. Then, the specified color conversion unit 23 calculates σ h , σ s , σ v Set it to the following value:

number

[0057] In addition, the designated color conversion unit 23 h , d s , d v For each of the following conditions, add 1 to the value:

number

number

number

[0058] 5B, when the region S to which s of the target bin belongs is the same as the region S to which s=0.14, which is the boundary of region 4, belongs and is different from the region S to which s of the actual bin belongs, the specified color conversion unit 23 converts d s Similarly, in FIG. 5C, when the region V to which the target bin v belongs is the same as the region V to which v=0.19, which is the boundary of region 4, belongs and is different from the region V to which the actual bin v belongs, the specified color conversion unit 23 adds 1 to d vto further reduce the probability of the target bin. The reason for this is as follows: when at least one of the saturation S and lightness V of the target color differs from the specified color by a predetermined value, the case where the target color is close to black, white, or gray is compared with the case where it is far from any of these colors. In this case, the former case appears to humans to be more different in hue from the specified color than the latter case.

[0059] In this way, the specified color conversion unit 23 can set a probability distribution model that is more in line with how humans perceive colors by imposing a "penalty" on the probability of the target color under certain conditions. An example using this setting will be described below.

[0060] (Example D1) If the HSV of the specified color is h=110, s=0.2, and v=0.7, the actual bin belongs to (SV8, H6). Also, since the specified color has h=110, the color range to which the specified color belongs is the range 100° to 140° of green (E) in FIG. 4B, excluding its boundary area. Therefore, the target for which the specified color conversion unit 23 calculates the probability is the 100° to 140° area in FIG. 4B, and the boundary areas 70° to 100° and 140° to 160° to the left and right of that area. These areas are the areas of a total of five columns from H4 to H8 in FIG. 6B. In the two-dimensional array in FIG. 6A, Col true is the column H6-7 to which the area 100°-140° belongs, and Col left ,Col right are columns H4-5 and H8 to which the regions 70°-100° and 140°-160° belong, respectively. In this case, when the specified color conversion unit 23 calculates the probability for the target bin (SV13, H4) on the two-dimensional array, the column (i.e., H4-5) of the region to which the target bin h belongs in FIG. 4B (i.e., 70°-100°) is different from the column (i.e., H6-7) of the region to which the actual bin belongs in FIG. 4B (i.e., 100°-140°). h The distance is the original distance of 2, but a penalty of 1 is added to make it 3. Also, based on the definition of distance, d s= 3. The region V to which the target bin v belongs is the same as the region V to which v = 0.19, which is the boundary of region 4, belongs, and is different from the region V to which the real bin v belongs, so d v The original distance of "2" is added with a penalty of "1" to make it "3". Also, σ h is 2+2+1=5. Based on the above, the specified color conversion unit 23 calculates the probability of this target bin as follows.

number

[0061] (Example D2) As another example, if the HSV of the specified color is h=90, s=0.2, and v=0.7, the actual bin belongs to (SV8, H5). Also, since the specified color has h=90, the color range to which the specified color belongs is the range 70° to 100°, which is the boundary region between yellow (D) and green (E) in FIG. 4B. Therefore, the ranges for which the specified color conversion unit 23 calculates the probability are the range 70° to 100° in FIG. 4B, the range 50° to 70° of the yellow (D) region excluding the boundary region, and the range 100° to 140° of the green (E) region excluding the boundary region. These ranges are the areas of a total of five columns from H3 to H7 in FIG. 6B. In the two-dimensional array in FIG. 6A, Col true is the column H4~5 to which the area 70°~100° belongs, and Col left ,Col right are the regions 50°~70° and 100°~140°, respectively. true The columns other than these are columns H3, H6 to H7.

[0062] In this case, when the specified color conversion unit 23 calculates the probability for the target bin (SV13, H3) on the two-dimensional array, the column (i.e., H3) in the region to which the target bin belongs in FIG. 4B (i.e., 50° to 70°) is different from the column (i.e., H4 to H5) in the region to which the actual bin belongs in FIG. 4B (i.e., 70° to 100°). h The distance is the original distance of 2, but a penalty of 1 is added to make it 3. Also, based on the definition of distance, d s = 3. And, for the same reason as in (Example D1), d v The original distance of "2" is added with a penalty of "1" to make it "3". Also, σ h is 2+1+2=5. Based on the above, the specified color conversion unit 23 calculates the probability of this target bin as follows.

number

[0063] Furthermore, when the specified color conversion unit 23 calculates the probability for another target bin (SV4, H6) on the two-dimensional array, the column (i.e., H6-7) in the region to which the target bin belongs in FIG. 4B (i.e., 100°-140°) is different from the column (i.e., H4-5) in the region to which the actual bin belongs in FIG. 4B (i.e., 70°-100°). h is the original distance of "1" plus a penalty of "1" and becomes "2". Also, based on the definition of distance, d s =0, d v = 1. Also, σ h is 2+1+2=5. Based on the above, the specified color conversion unit 23 calculates the probability of this target bin as follows.

number

[0064] In this way, the specified color conversion unit 23 changes the probability distribution model to be used based on the region to which the specified color belongs in the HSV color space. Then, the specified color conversion unit 23 derives second color features (features of each bin in the color space) for the specified color and colors similar to the specified color as a two-dimensional array as shown in Figures 9A to 12B. Note that, when performing calculations, the specified color conversion unit 23 acquires the rules and data used for calculations shown in (1) to (3), (8), (11) to (14), and Figures 4A to 6D, 8, etc. from the storage unit 26.

[0065] Returning to Fig. 3, the explanation will be continued. The similarity calculation unit 24 calculates, for each image, the similarity between the first color feature of the image extracted by the color feature extraction unit 22 and the second color feature of the designated color derived by the designated color conversion unit 23. When performing the calculation, the similarity calculation unit 24 acquires the first color feature from the storage unit 26. The similarity calculation unit 24 calculates the similarity sim as follows, using data of the target color related to the second color feature.

number

number

number

[0066] θ is a threshold value for distinguishing between the proportion of the main target color in the first color feature o (image), and can be set by the user via the input unit (setting means) of the color judgment device 20. sim(o,q) is the similarity between the first color feature o and the second color feature q to be calculated. Dot(Hist o ,Hist q ) is the dot product of the two-dimensional array of color feature q and the two-dimensional array of color feature o.

[0067] In addition, Sum o is 0, that is, if the sum of the values ​​in the two-dimensional array of the bins of the color feature o corresponding to the actual bins and target bins of the color feature q is 0, it can be said that the image related to the color feature o is not related to the specified color. Therefore, the similarity calculation unit 24 derives 0 as sim(o,q).

[0068] Sum o is not 0, SumT o If SumT is less than θ, the similarity calculation unit 24 multiplies sim(o,q) by the parameter D1 shown in (18). This parameter D1 is a value in the range from 0 to 1, and has the function of reducing the value of sim(o,q). o If θ is less than θ, the proportion of the designated color and the target color in the image for which the similarity is to be calculated is low. Therefore, the similarity calculation unit 24 calculates a low similarity for that image. This prevents the similarity from being calculated too high due to noise colors contained in the image for which the similarity is to be calculated.

[0069] On the other hand, Sum o is not 0 and SumT o If SumT is equal to or greater than θ, the similarity calculation unit 24 multiplies sim(o,q) by the parameter D2 shown in (19). This parameter D2 is a value greater than 1 and has the effect of increasing the value of sim(o,q). oIf is equal to or greater than θ, the proportion of the designated color and the target color in the image for which the similarity is to be calculated is high, and therefore the similarity calculation unit 24 calculates a high similarity for that image.

[0070] 13A shows the result of the specified color conversion unit 23 converting the RGB values ​​of the specified color into HSV values ​​based on the color space information acquired from the color space information reading unit 21, when the RGB values ​​of the specified color are (r=146, g=53, b=53), and deriving a second color feature based on the HSV values. FIG. 13B shows an example of the first color feature extracted from an image by the color feature extraction unit 22. The similarity calculation unit 24 calculates the similarity as described above using the color features shown in FIGS. 13A and 13B, and is able to calculate a value of "0.84028" as sim(o,q).

[0071] The similarity calculation unit 24 calculates the similarity between the first color feature of each image and the second color feature of the specified color for images within a range specified by the user via the input unit among the images stored in the storage unit 26. Then, it outputs the calculated similarity of each image to the image search unit 25. In addition, when performing the calculation, the similarity calculation unit 24 obtains the rules and parameters used for the calculation shown in (18) to (20) etc. from the storage unit 26.

[0072] Returning to FIG. 3 , the description continues. The image search unit 25 generates image search results based on the similarity of each image output by the similarity calculation unit 24. This generation method can be any known method. For example, the image search unit 25 may generate image search results so that images are displayed on the display unit of the color judgment device 20 in descending order of similarity. Alternatively, the image search unit 25 may generate image search results so that images whose similarity is equal to or greater than a certain threshold, or images ranked within a certain threshold when images are sorted in descending order of similarity, are displayed on the display unit of the color judgment device 20. Note that, during the search result generation process, the image search unit 25 acquires a search result generation method from the storage unit 26. Furthermore, the user can confirm the selected image or indicate that the selected image is the user's desired image by operating the input unit and inputting instructions.

[0073] The storage unit 26 stores images, color space information, rules used in calculations, data and parameters, and methods for generating search results used by each unit of the above-mentioned color judgment device 20. Each unit obtains this data by accessing the storage unit 26.

[0074] [Processing Description] 14A and 14B are flowcharts showing an example of a typical process of the color determination device 20, and this flowchart explains a series of processes of the color determination device 20. Note that the details of the processes executed by each unit are as described above, and therefore will be omitted where appropriate.

[0075] 14A, the process before similarity calculation of the color determination device 20 will be described. First, the color space information reading unit 21 of the color determination device 20 reads color space information from the storage unit 26 (step S21). Next, the color feature extraction unit 22 extracts, from a certain image stored in the storage unit 26, a first color feature, which is a feature related to the color of the image, based on the color space information read by the color space information reading unit 21 (step S22).

[0076] Thereafter, the color feature extraction unit 22 determines whether or not the first color feature has been extracted for all images from which color features are to be extracted (step S23). These "all target images" may be, for example, images previously specified by the user among the images stored in the storage unit 26, or may be all images stored in the storage unit 26.

[0077] If the first color feature has not been extracted for all the target images (No in step S23), the color feature extraction unit 22 executes the processes from step S22 again for the target images from which the first color feature has not been extracted. On the other hand, if the first color feature has been extracted for all the target images (Yes in step S23), the color feature extraction unit 22 ends the process.

[0078] Next, the similarity calculation and search result generation processing of the color determination device 20 shown in Fig. 14B will be described. First, the specified color conversion unit 23 of the color determination device 20 acquires a specified color designated by the user for image search (step S31). Based on the position of the acquired specified color in the HSV color space, the specified color conversion unit 23 selects a probability distribution model to be applied using the table shown in Fig. 8. Then, using the selected probability distribution model, the specified color is converted into a second color feature, which is a feature related to the specified color (step S32).

[0079] The similarity calculation unit 24 calculates the similarity between the second color feature obtained in step S32 and the first color feature extracted in step S22 (step S33). After calculating the similarity, the similarity calculation unit 24 determines whether the similarity has been calculated for all images for which search results are to be generated (step S34). This "all target images" may be, for example, images stored in the storage unit 26 that were specified as search targets when the user specified a specified color, or may be all stored images.

[0080] If the similarity has not been calculated for all target images (No in step S34), similarity calculation unit 24 repeats the processes from step S33 onwards for the target images for which the similarity has not been calculated. On the other hand, if the similarity has been calculated for all target images (Yes in step S34), similarity calculation unit 24 ends the calculation process. Then, image search unit 25 generates image search results based on the similarity of each image calculated by similarity calculation unit 24 (step S35).

[0081] [Effect description] As described above, the color judgment device 20, like the color judgment device 10 according to the first embodiment, can make an accurate color judgment of an image, taking into consideration the ambiguity of colors that humans can distinguish.

[0082] When a device searches for an image using a specified color specified by a user, the user must select one or more specified colors from a predefined color space. However, because colors as seen by the human eye are ambiguous due to factors such as the size of the color space, the display that displays the colors, and environmental influences such as ambient lighting, it is difficult for the user to accurately select a color from the color space that matches the color of the desired image.

[0083] For example, in the RGB color space, each RGB value can take on 256 different values, making it possible to represent approximately 17 million different colors.However, the human eye is said to be able to distinguish only a few million colors, making it difficult for humans to accurately distinguish between different colors represented in the RGB color space.

[0084] For this reason, if there is a gap between one or more colors specified by the user and the colors of the image seen by the user, the user must repeatedly specify one or more different colors on the device and try searching until the desired image is found, which poses a problem of time and effort required for the search.

[0085] In contrast, in this disclosure, the ambiguity of color in the human eye is expressed by a probability distribution model, so that the color judgment device 20 can take into account not only the specified color but also colors similar to the specified color in its calculations, and present images related to those similar colors. This makes it easier for users to find the image they want, and reduces the amount of work required by the user.

[0086] The color judgment device 20 can be used for any purpose as long as it identifies an image having a specified color or a color similar to the specified color. For example, the color judgment device 20 can extract images of people wearing clothing of a user-specified color from a large amount of video data from a surveillance camera. Therefore, the color judgment device 20 can be used for crime prevention, security, and other purposes.

[0087] The color judgment device 20 further includes an image search unit 25 that generates search results for images based on the similarity. This allows the user to check search results for images that are thought to include the specified color. In particular, the similarity calculation unit 24 calculates the similarity for each of a plurality of images, and the image search unit 25 can generate search results based on these similarities. This allows the user to check search results for images that are thought to include the specified color from among a plurality (especially a large number) of images.

[0088] Furthermore, when the sum of the features in each bin of the color space in the first color feature corresponding to each bin of the color space having a feature equal to or greater than a certain threshold η in the second color feature is less than θ (first threshold), the similarity calculation unit 24 calculates the similarity by multiplying the parameter D1 that suppresses the similarity sim(o,q) compared to when the sum of the features is equal to or greater than θ. Therefore, the color judgment device 20 can prevent the similarity from being calculated as being too high due to noise colors contained in the image to be judged for similarity.

[0089] Furthermore, the user can set the threshold value θ through the input unit of the color determination device 20. Therefore, the color determination device 20 can more easily present the image desired by the user as a search result based on the user's setting.

[0090] Furthermore, the specified color conversion unit 23 can change the probability distribution model used depending on the specified color. In other words, the specified color conversion unit 23 can change the target color and its probability distribution depending on the visual characteristics of the specified color, making it easier for the similarity calculation unit 24 to calculate a high similarity for images whose hue is close to the specified color. Therefore, the color judgment device 20 can more easily present images desired by the user as search results.

[0091] Furthermore, the specified color conversion unit 23 can convert the specified color into the second color feature using a probability distribution model that maximizes the probability distribution of the specified color. Therefore, the similarity calculation unit 24 can calculate a higher similarity for an image that includes the specified color than for an image that includes the target color. Therefore, the color judgment device 20 can more easily present an image desired by the user as a search result.

[0092] Furthermore, the color space information read by the color space information reading unit 21 may define the HSV color space. In the second embodiment, the color space information may be the HLS color space, the RGB color space, the CMTK color space, etc. However, the HSV color space has the advantage that, from a design perspective, it is easy to define a function for a probability distribution model and the user can easily intuitively specify a specified color.

[0093] The specified color conversion unit 23 can divide the HSV color space into a black region 1 (first region) where the lightness V is less than 0.19, a gray region 2 (second region) where the lightness V is between 0.19 and 0.81 and where the saturation S is less than 0.14, a white region 3 (third region) where the lightness V is greater than 0.81 and the saturation S is less than 0.14, and a region 4 (fourth region) of other colors. The probability distribution model used can be changed based on which region the specified color belongs to. This makes it easier for the similarity calculation unit 24 to calculate a high similarity for images whose color is close to the specified color, allowing the color determination device 20 to more easily present images desired by the user as search results. Furthermore, this color space division method matches the user's perception of color, and the similarity calculation results calculated by the similarity calculation unit 24 based on this division method correspond to the user's perception.

[0094] Here, the specified color conversion unit 23 can set the feature amount (probability) of the second color feature amount for areas other than the area to which the specified color belongs in each area of ​​the HSV color space to 0. Therefore, the similarity calculation unit 24 can calculate the similarity as 0 for an image that contains only colors that are not similar to the specified color, and can accurately identify target images that become noise in a user's search.

[0095] Furthermore, the probability distribution model is expressed as a Gaussian, and the standard deviation used for the Gaussian in at least one of the regions may be different from the standard deviation used for the Gaussian in the other regions. Therefore, the specified color conversion unit 23 can change the probability distribution of the target color depending on the hue of the specified color, making it easier for the similarity calculation unit 24 to calculate a high similarity for images whose hue is close to the specified color. Therefore, the color judgment device 20 can more easily present images desired by the user as search results.

[0096] Embodiment 3 Hereinafter, a third embodiment of this disclosure will be described. In the third embodiment, a main variation on the second embodiment will be described.

[0097] [Configuration Description] 15 is a block diagram showing an example of a color judgment device 20 according to Embodiment 3. This color judgment device 20′ further includes a correction unit 27 compared to the color judgment device 20 according to Embodiment 2.

[0098] As described in the second embodiment, the image search unit 25 generates search results for each image based on the calculation results of the similarity calculation unit 24. Then, the images related to the search results are displayed on the display unit of the color judgment device 20'. At this time, the user uses the input unit to select one or more desired images from the displayed images.

[0099] At this time, the color judgment device 20′ associates the search results or the similarities of the multiple images calculated by the similarity calculation unit 24 with the image selected by the user from the search results, and stores them as evaluation data in the storage unit 26. Then, the correction unit 27 uses the stored evaluation data to correct the probability distribution model.

[0100] The modifying unit 27 can modify the probability distribution model in each of the four regions of the HSV color space by, for example, machine learning. The modifying unit 27 may modify the standard deviation of the Gaussian in regions 1 to 3, and may modify at least one of the standard deviation and the method of assigning penalties in region 4 of other colors. Furthermore, the modifying unit 27 may modify the similarity calculation method of the similarity calculation unit 24 instead of or in addition to modifying the probability distribution model. For example, the modifying unit 27 may modify at least one of the above-mentioned D1 and D2 in each of the four regions.

[0101] In this manner, when the similarity calculation unit 24 recalculates the similarity using the specified color associated with the image selected by the user, at least one of the following occurs: the similarity of the image is calculated to be higher, or the similarity of images other than the selected image is calculated to be lower. The correction unit 27 corrects the probability distribution model in this manner. Preferably, the correction unit 27 can also correct the probability distribution model so that the similarity of the image selected by the user is calculated to be highest compared to other images for which similarity is to be calculated.

[0102] In the color judgment device 20′, if a search account is set for each user, the correction unit 27 may correct at least one of the probability distribution model and the similarity calculation method for each user, thereby enabling the correction unit 27 to make corrections that reflect different ways of seeing colors depending on the user.

[0103] [Processing Description] 16 is a flowchart showing an example of a typical process of the color determination device 20′, and this flowchart will be used to explain a series of processes of the color determination device 20′. Note that a description of the processes explained in the second embodiment will be omitted.

[0104] First, the color judgment device 20' associates the search results of the similarity calculation unit 24 or the similarities of multiple images with an image selected by the user from the search results, and stores the associated data as evaluation data in the storage unit 26 (step S41). The correction unit 27 uses the stored evaluation data to correct the probability distribution model (step S42). The correction unit 27 may also correct the similarity calculation method in step S42. The processing of step S42 may also be executed when evaluation data for a predetermined number of samples or more has been accumulated, for example, for each of the four types of regions or for each user.

[0105] [Effect description] In this way, the correction unit 27 can correct the probability distribution model using the evaluation data so that images that match the user's specified color are displayed higher in the search results, thereby further increasing the possibility that the user will be able to see the image they want at the top of the search results in future searches.

[0106] This disclosure is not limited to the above-described embodiments and may be modified as appropriate without departing from the spirit of the present disclosure. For example, in the second embodiment, numerical values ​​such as 0.14, 0.19, and 0.81 are used as examples of thresholds for dividing the HSV color space into four types of regions. However, other numerical values ​​may be used as the thresholds. The threshold value of saturation S separating regions 2 and 4 may be the maximum value of saturation S when lightness V is 0.19 (i.e., the value of saturation S for the lightest black). The fifth threshold value of saturation S separating regions 3 and 4 may be different from the fourth threshold value of saturation S separating regions 2 and 4. For example, the fifth threshold value may be smaller than the fourth threshold value in order to tighten the criteria for determining white relative to gray. The fifth threshold value may be the maximum value of saturation S when lightness V is 0.19.

[0107] A normal distribution, which is a type of Gaussian, can also be used as the function of the above-mentioned probability distribution model. In addition to the Gaussian, any window function having a mountain shape can be used as the function of the probability distribution model. For example, functions other than the normal distribution, such as a Gaussian window, a triangular window, a Parzen window, a Welch window, a Sine window, a generalized Cosine window such as a Hann window, and a Kaiser window, can be used, but the functions that can be used are not limited to these.

[0108] In the second embodiment, the color feature extraction unit 22 does not need to normalize the two-dimensional array obtained as the final result. In this case, the similarity calculation unit 24 performs normalization if necessary when calculating the similarity. This allows the image search unit 25 to generate search results that accurately reflect the magnitude of the similarity between images.

[0109] The user can specify not only one color but also multiple colors as the specified color. In this case, the color judgment device 10 or 20 can calculate the similarity between the image and the specified color by performing the above-mentioned process.

[0110] For example, in the second embodiment, when two colors are designated as designated colors, the designated color conversion unit 23 derives the second feature of each designated color as described above. The designated color conversion unit 23 then adds the two feature values ​​for corresponding bins in the two-dimensional array, and normalizes the resulting two-dimensional array to derive the second feature of the congruent color. The similarity calculation unit 24 then calculates the similarity between the second feature value of the congruent color and the first feature value of each image. In this way, the color judgment device 20 can calculate the similarity between an image and a designated color.

[0111] In the above example, the weights of the two specified colors are the same, but the weights may be changed by the user. For example, if the main colors of the image desired by the user are 70% red and 30% black, the user inputs to the color determination device 20 via the input unit that the weight of the first specified color, "red," is 7 and the weight of the second specified color, "black," is 3. The specified color conversion unit 23 uses the weights to add the second feature value of "red" and the second feature value of "black" in a ratio of 7:3, and then normalizes the two-dimensional array after the addition process to derive the second feature value of the congruent color. The similarity calculation unit 24 calculates the similarity using the second feature value of the congruent color. By doing so, the similarity calculation unit 24 can calculate a higher similarity for images whose colors are closer to the image the user remembers. As a result, the image search unit 25 is more likely to present the image desired by the user. The above process can, of course, be implemented for three or more specified colors.

[0112] In the above-described embodiments, this disclosure has been described as a hardware configuration, but this disclosure is not limited to this. This disclosure can also be realized by having a processor in a computer execute a computer program to perform the processing (steps) of the color determination device described in the above-described embodiments.

[0113] 17 is a block diagram showing an example of the hardware configuration of an information processing device (signal processing device) that executes the processes of the above-described embodiments. Referring to FIG. 17, this information processing device 90 includes a signal processing circuit 91, a processor 92, and a memory 93.

[0114] The signal processing circuit 91 is a circuit for processing signals in accordance with the control of the processor 92. The signal processing circuit 91 may include a communication circuit for receiving signals from a transmitting device.

[0115] The processor 92 performs the processing of the device described in the above embodiment by reading and executing software (computer programs) from the memory 93. As an example of the processor 92, one of a CPU (Central Processing Unit), an MPU (Micro Processing Unit), an FPGA (Field-Programmable Gate Array), a DSP (Demand-Side Platform), and an ASIC (Application Specific Integrated Circuit) may be used, or a plurality of these may be used in parallel.

[0116] The memory 93 is configured with a volatile memory, a nonvolatile memory, or a combination thereof. The memory 93 is not limited to one, and multiple memories may be provided. The volatile memory may be, for example, a RAM (Random Access Memory) such as a DRAM (Dynamic Random Access Memory) or an SRAM (Static Random Access Memory). The nonvolatile memory may be, for example, a ROM (Random Only Memory) such as a PROM (Programmable Random Only Memory) or an EPROM (Erasable Programmable Read Only Memory), a flash memory, or an SSD (Solid State Drive).

[0117] The memory 93 is used to store one or more instructions. Here, the one or more instructions are stored as a group of software modules in the memory 93. The processor 92 can perform the processes described in the above embodiments by reading and executing the group of software modules from the memory 93.

[0118] The memory 93 may include memory built into the processor 92 in addition to memory provided outside the processor 92. The memory 93 may also include storage located away from the processors constituting the processor 92. In this case, the processor 92 can access the memory 93 via an I / O (Input / Output) interface.

[0119] As described above, one or more processors included in each device in the above-described embodiments execute one or more programs including instructions for causing a computer to execute the algorithms described using the drawings. This processing enables the signal processing method described in each embodiment to be realized.

[0120] The program includes instructions (or software code) that, when loaded into a computer, cause the computer to perform one or more functions described in the embodiments. The program may be stored in a non-transitory computer-readable medium or a tangible storage medium. By way of example and not limitation, computer-readable media or tangible storage media include random-access memory (RAM), read-only memory (ROM), flash memory, solid-state drive (SSD) or other memory technologies, CD-ROM, digital versatile disk (DVD), Blu-ray® disk or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices. The program may also be transmitted on a transitory computer-readable medium or communication medium. By way of example and not limitation, transitory computer-readable media or communication media include electrical, optical, acoustic, or other forms of propagated signals.

[0121] A part or all of the above-described embodiments can be described as, but not limited to, the following supplementary notes. (Appendix 1) a color feature extraction means for extracting a first color feature, which is a feature related to the color of an image, from the image based on color space information that defines a color space; a designated color conversion means for converting a color designated by a user into a second color feature quantity, which is a feature quantity related to the designated color, based on the color space information and a probability distribution model that expresses color ambiguity; a similarity calculation means for calculating a similarity between the first color feature amount and the second color feature amount. Color determination device. (Appendix 2) further comprising an image search means for generating image search results based on the similarity; 2. A color judgment device according to claim 1. (Appendix 3) the color feature extraction means extracts the first color feature for each of a plurality of images; the similarity calculation means calculates the similarity for each of the plurality of images; the image search means generates the search results based on the similarity of each of the plurality of images. 3. A color judgment device according to claim 2. (Appendix 4) a storage means for storing the search results or the similarity of each of the plurality of images and the image selected by the user from the search results in association with each other as evaluation data; and a correction means for correcting at least one of the probability distribution model and the similarity calculation method of the similarity calculation means using the evaluation data. 4. A color judgment device according to claim 3. (Appendix 5) the color feature extraction means extracts, as the first color feature, a feature of each bin of the color space related to the color of the image; the specified color conversion means extracts, as the second color feature, a feature of each bin of the color space related to the specified color and a color similar to the specified color; the similarity calculation means calculates the similarity by multiplying a parameter that suppresses the similarity when a sum of the features in the first color feature in each bin of the color space corresponding to each bin of the color space having a feature equal to or greater than a certain threshold in the second color feature is less than a first threshold, compared to when the sum of the features is equal to or greater than the first threshold; 5. A color judgment device according to any one of claims 1 to 4. (Appendix 6) The device further includes a setting means for allowing a user to set the first threshold value. 6. A color judgment device according to claim 5. (Appendix 7) the designated color conversion means changes the probability distribution model to be used in accordance with the designated color. 7. A color judgment device according to any one of claims 1 to 6. (Appendix 8) the specified color conversion means converts the specified color into the second color feature using the probability distribution model that maximizes the probability of the specified color. 8. A color judgment device according to any one of claims 1 to 7. (Appendix 9) the color space information defines an HSV color space; 9. A color judgment device according to any one of appendices 1 to 8. (Appendix 10) the specified color conversion means divides the HSV color space into a first region where the Value value is less than a second threshold, a second region where the Value value is equal to or greater than the second threshold and equal to or less than a third threshold, and where the Saturation value is less than a fourth threshold, a third region where the Value value is greater than the third threshold, and where the Saturation value is less than a fifth threshold, and a fourth region other than the first, second, and third regions, and changes the probability distribution model to be used based on which of the first, second, or fourth regions the specified color belongs to. 10. A color judgment device according to claim 9. (Appendix 11) the designated color conversion means sets the feature amount in the second color feature amount to 0 for areas other than the area to which the designated color belongs in the first area to the fourth area. 11. A color judging device according to claim 10. (Appendix 12) the probability distribution model is expressed by a Gaussian, and a standard deviation used for the Gaussian in at least one of the first to fourth regions is different from a standard deviation used for the Gaussian in other regions; 12. The color judgment device according to claim 10 or 11. (Appendix 13) extracting a first color feature from an image based on color space information defining a color space, the first color feature being a feature related to the color of the image; converting the color designated by the user into a second color feature, which is a feature related to the designated color, based on the color space information and a probability distribution model that expresses color ambiguity; calculating a similarity between the first color feature and the second color feature; A color determination method executed by a color determination device. (Appendix 14) extracting a first color feature from an image based on color space information defining a color space, the first color feature being a feature related to the color of the image; converting the color designated by the user into a second color feature, which is a feature related to the designated color, based on the color space information and a probability distribution model that expresses color ambiguity; calculating a similarity between the first color feature and the second color feature; A non-transitory computer-readable medium that stores a program that causes a computer to execute a program.

[0122] Although the present disclosure has been described above with reference to the embodiments, the present disclosure is not limited to the above. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present disclosure within the scope of the disclosure. [Explanation of symbols]

[0123] 10 Color determination device 11 Color feature extraction unit 12 Specified color conversion unit 13 Similarity calculation part 20, 20' color judgment device 21 Color space information reading unit 22 Color feature extraction unit 23 Specified color conversion unit 24 Similarity calculation unit 25 Image search unit 26 Memory unit 27 Correction section

Claims

1. a color feature extraction unit for extracting a first color feature from an image, the first color feature being a feature related to the color of the image, based on color space information defining a color space; a designated color conversion means for converting a color designated by a user into a second color feature quantity, which is a feature quantity related to the designated color, based on the color space information and a probability distribution model that expresses color ambiguity; a similarity calculation means for calculating a similarity between the first color feature amount and the second color feature amount. Color determination device.

2. further comprising an image search means for generating image search results based on the similarity. The color judgment device according to claim 1 .

3. The color feature extraction means extracts the first color feature for each of a plurality of images, the similarity calculation means calculates the similarity for each of the plurality of images; the image search means generates the search results based on the similarity of each of the plurality of images. The color judgment device according to claim 2 .

4. a storage means for storing the similarity of the search results or each of the plurality of images and the image selected by a user from the search results in association with each other as evaluation data; and a correction means for correcting at least one of the probability distribution model and the similarity calculation method of the similarity calculation means by using the evaluation data. The color judgment device according to claim 3 .

5. the color feature extraction means extracts, as the first color feature, a feature of each bin of the color space related to the color of the image; the specified color conversion means extracts, as the second color feature, a feature of each bin of the color space related to the specified color and a color similar to the specified color; the similarity calculation means calculates the similarity by multiplying a parameter that suppresses the similarity when a sum of features in the first color feature in each bin of the color space corresponding to each bin of the color space having a feature equal to or greater than a certain threshold in the second color feature is less than a first threshold, compared to when the sum of the features is equal to or greater than the first threshold; The color judging device according to claim 1 .

6. The method further includes a setting unit for allowing a user to set the first threshold value. The color judging device according to claim 5 .

7. the designated color conversion means changes the probability distribution model to be used in accordance with the designated color. The color judging device according to claim 1 .

8. the designated color conversion means converts the designated color into the second color feature using the probability distribution model that maximizes the probability of the designated color. The color judging device according to claim 1 .

9. extracting, from an image, a first color feature amount which is a feature amount relating to the color of the image based on color space information which defines a color space; converting the color designated by the user into a second color feature, which is a feature related to the designated color, based on the color space information and a probability distribution model that expresses color ambiguity; Calculating a similarity between the first color feature amount and the second color feature amount; A color determination method executed by a color determination device.

10. extracting, from an image, a first color feature amount which is a feature amount relating to the color of the image based on color space information which defines a color space; converting the color designated by the user into a second color feature, which is a feature related to the designated color, based on the color space information and a probability distribution model that expresses color ambiguity; Calculating a similarity between the first color feature amount and the second color feature amount; A program that causes a computer to do something.

Citation Information

Patent Citations

  • Picture retrieving method and its device

    JP1995073195A

  • Image retrieval device, image retrieval method, and program for retrieving image

    JP2003036273A

  • Image processing method and program

    JP2014164656A

  • Image extraction method, image extraction device, image extraction system, server, user terminal, communication system and program

    WO2013005262A1

  • Image search system, image search method, and program

    WO2020050354A1