Information processing device, determination method, and determination program
Patent Information
- Application Number
- JP2023510408
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-10-04
- Publication Date
- 2024-10-03
- Estimated Expiration
- 2042-10-04
AI Technical Summary
Existing color determination techniques struggle to accurately determine the original color of objects under various types of illumination due to lighting effects, as they are primarily designed for common lighting conditions like CIE daylight.
An information processing device that utilizes XYZ color values, spectral reflectance, and principal component analysis to generate a spectral distribution model, allowing it to calculate Lab values and convert them to LCh values for accurate color determination by referencing a determination table, thereby eliminating the effects of different lighting conditions.
Enables the determination of true colors by accounting for various lighting conditions, reducing processing load and user burden through efficient color determination processing.
Abstract
Description
[Technical Field]
[0001] This disclosure relates to an information processing device, a determination method, and a determination program. [Background technology]
[0002] Techniques for determining the color of objects in an image are known. However, the color of an object in an image may differ from its original color due to the influence of lighting. For example, if an object's original color is blue and the lighting is yellow, the object's color in the image will appear darker due to the lighting. Therefore, color correction has been proposed (see Patent Document 1). The color correction device in Patent Document 1 calculates the color information of each pixel in the output image based on the color information of each pixel in the input image, the spectral distribution of the lighting in the restored input image, and the spectral distribution of the lighting in the output image. In calculating the spectral distribution of the lighting in the output image, the spectral distribution of the lighting designated as the target lighting is used. The spectral distribution of the designated lighting is calculated based on the correlated color temperature of CIE daylight. [Prior art documents] [Patent Documents]
[0003] [Patent Document 1] International Publication No. 2007 / 007788 [Overview of the project] [Problems that the invention aims to solve]
[0004] The above technology can perform color correction for common lighting conditions such as CIE daylight. However, there are many different types of lighting. Therefore, the above technology cannot determine the true color under various types of lighting.
[0005] The purpose of this disclosure is to determine the original color. [Means for solving the problem]
[0006] An information processing apparatus according to one aspect of the present disclosure is provided. The information processing apparatus is a value corresponding to an identification target area that is an image area in an image obtained by imaging an object under first illumination, and is an XYZ value represented in an XYZ color system , minutes Light distribution, spectral reflectance when it is a perfectly diffusing reflecting surface, and L * a * b * an acquisition unit that acquires determination information indicating the correspondence between the Lab value, which is a value in a color space, and a color; the XYZ value, the spectral distribution, and the When it is a perfectly diffuse reflecting surface Using the spectral reflectance, the L * a * b * a calculation unit that calculates a Lab value that is a value corresponding to the identification target area in the color space; and a determination unit that determines the color of the identification target area using the calculated Lab value and the determination information. When the spectral distribution is generated, the acquisition unit acquires the XYZ values of the reference color and the spectral reflectance of the reference color, calculated based on the RGB values obtained from the image region of the reference color in the image obtained by imaging an object under the first illumination. When the spectral distribution is generated, the generation unit generates a spectral distribution model using spectral distribution data including the data of the first illumination or data similar to the data, and principal component analysis. The spectral distribution is obtained based on the XYZ values of the reference color, the spectral distribution model, and the spectral reflectance of the reference color.
Advantages of the Invention
[0007] According to the present disclosure, the original color can be determined.
Brief Description of the Drawings
[0008] [Figure 1] A diagram showing the hardware of the information processing apparatus. [Figure 2] A block diagram showing the functions of the information processing apparatus. [Figure 3] A diagram showing an example of a determination table (Part 1). [Figure 4] A flowchart showing an example of color determination processing. [Figure 5] A diagram showing an example of a determination table (Part 2). [Figure 6] A diagram showing an example of a management table (Part 1). [Figure 7] A diagram showing an example of a management table (Part 2).
Embodiments of the Invention
[0009] The embodiments will be described below with reference to the drawings. The following embodiments are merely examples, and various modifications are possible within the scope of this disclosure.
[0010] Embodiment. Figure 1 shows the hardware of the information processing device. The information processing device 100 is a device that executes a determination method. The information processing device 100 can be a PC (Personal Computer), a smartphone, a tablet terminal, a server, etc. For example, if the information processing device 100 is a server, the information processing device 100 will send and receive data with a tablet terminal. The information processing device 100 includes a processor 101, a volatile storage device 102, and a non-volatile storage device 103.
[0011] The processor 101 controls the entire information processing unit 100. For example, the processor 101 may be a CPU (Central Processing Unit), an FPGA (Field Programmable Gate Array), etc. The processor 101 may also be a multiprocessor. The information processing unit 100 may also have processing circuits.
[0012] The volatile storage device 102 is the main memory of the information processing device 100. For example, the volatile storage device 102 is RAM (Random Access Memory). The non-volatile storage device 103 is the auxiliary storage device of the information processing device 100. For example, the non-volatile storage device 103 is an HDD (Hard Disk Drive) or an SSD (Solid State Drive).
[0013] Next, the functions of the information processing device 100 will be explained. Figure 2 is a block diagram showing the functions of an information processing device. The information processing device 100 includes a storage unit 110, an acquisition unit 120, a generation unit 130, a calculation unit 140, a specific unit 150, a conversion unit 160, and a determination unit 170.
[0014] The memory unit 110 may be realized as a memory area secured in the volatile memory device 102 or the non-volatile memory device 103. Part or all of the acquisition unit 120, generation unit 130, calculation unit 140, specification unit 150, conversion unit 160, and determination unit 170 may be realized by a processing circuit. Also, part or all of the acquisition unit 120, generation unit 130, calculation unit 140, specification unit 150, conversion unit 160, and determination unit 170 may be realized as modules of a program executed by the processor 101. For example, the program executed by the processor 101 is also referred to as a determination program. For example, the determination program is recorded on a recording medium.
[0015] The information processing apparatus 100 uses the spectral distribution P E (λ) in the color determination process. Therefore, the generation of the spectral distribution P E (λ) will be described below.
[0016] <Generation of spectral distribution P E (λ)> The memory unit 110 stores various information. The acquisition unit 120 acquires the XYZ values of the reference color. The XYZ values are values represented in the XYZ color space. For example, the acquisition unit 120 acquires the XYZ values from the memory unit 110 or an external device. For example, the external device is a cloud server. Note that the diagram of the external device is omitted.
[0017] Also, the acquisition unit 120 may acquire the calculated XYZ values. Specifically, the acquisition unit 120 acquires an image. Note that the image is an image obtained by imaging an object under the first illumination. The first illumination is illumination in a factory or the like. For example, the first illumination is sodium illumination, white LED (Light Emitting Diode) illumination, or the like. The acquisition unit 120 acquires RGB values from the image area of the reference color (for example, the image area indicating the housing). Note that the image area of the reference color may be predetermined. When the camera that generated the image generated the image based on sRGB ITU-R BT.709, the calculation unit 140 calculates the XYZ values from the RGB values using Equation (1).
[0018]
number
[0019] Thus, the acquisition unit 120 may acquire the calculated XYZ values.
[0020] The acquisition unit 120 acquires spectral distribution data, including data from the first illumination, from the storage unit 110 or an external device. The spectral distribution data may also be described as data from the first illumination (i.e., spectral distribution data of the first illumination). The spectral distribution data may include data similar to that of the first illumination. For example, if the first illumination is sodium illumination, the spectral distribution data may include data similar to that of sodium illumination. Furthermore, the spectral distribution data may include data from multiple illuminations. For example, the spectral distribution data may include data from multiple illuminations installed in the factory, such as sodium illumination and white LED illumination. The external device may be, for example, a spectroradiometer.
[0021] The generation unit 130 uses spectral distribution data and principal component analysis to generate an equation showing the top three principal components. This equation is represented by equation (2). a1, a2, and a3 are parameters. Note that the three parameters have unknown values. As will be described later, the three parameters are calculated. P1, P2, and P3 are the top three principal components.
[0022]
number
[0023] In this way, P(λ) can be obtained by applying principal component analysis to spectral distribution data. Here, P(λ) is called the spectral distribution model. The generation unit 130 may also generate the spectral distribution model P(λ) using the value obtained by dividing spectral distribution data including data from one or more illuminations by the energy mean value and the results of principal component analysis.
[0024] The acquisition unit 120 acquires the spectral reflectance ρ(λ) of a reference color area (for example, an area of the housing). For example, the acquisition unit 120 acquires the spectral reflectance ρ(λ) from the storage unit 110 or an external device.
[0025] The calculation unit 140 calculates parameters a1, a2, and a3 using the XYZ values, spectral distribution model P(λ), and spectral reflectance ρ(λ) acquired by the acquisition unit 120. Specifically, the calculation unit 140 calculates parameters a1, a2, and a3 using equation (3).
[0026]
number
[0027] Note that K is a constant. The overline x(λ), y(λ), and z(λ) are color matching functions.
[0028] Since there are three equations, the calculation unit 140 can calculate the three unknown parameters. The calculation unit 140 substitutes the calculated parameters a1, a2, and a3 into the spectral distribution model P(λ). This gives us a spectral distribution model P(λ) with the three parameters clearly defined. The spectral distribution model P(λ) with the three parameters clearly defined is the spectral distribution P E This is called (λ). The calculation unit 140 calculates the spectral distribution P E (λ) may be stored in the memory unit 110 or an external device.
[0029] Next, I will explain the color detection process. <Color detection process> The acquisition unit 120 acquires an image. For example, the acquisition unit 120 acquires the image from the camera that generated the image. The image is obtained by imaging an object under the first illumination.
[0030] The identification unit 150 identifies the area to be identified from the image. For example, the identification unit 150 identifies a predetermined area as the area to be identified. Alternatively, for example, the identification unit 150 identifies a marker area in the image as the area to be identified. The identification unit 150 may identify multiple areas to be identified. Note that the area to be identified is an image area.
[0031] The calculation unit 140 calculates the XYZ value, which is the value corresponding to the area to be identified, based on the area to be identified. More specifically, the calculation unit 140 calculates the XYZ value based on the RGB value of the area to be identified. For example, the calculation unit 140 calculates the XYZ value using formula (1). Note that the XYZ value is a value expressed in the XYZ color system.
[0032] The acquisition unit 120 acquires the calculated XYZ values. Here, the XYZ values may be calculated by an external device. If the external device calculates the XYZ values, the acquisition unit 120 acquires the XYZ values from the external device. The acquisition unit 120 acquires the spectral distribution P E (λ) is obtained from the storage unit 110 or an external device. The acquisition unit 120 acquires the spectral reflectance ρ1(λ) when the surface is a perfect diffuse reflector from the storage unit 110 or an external device.
[0033] The calculation unit 140 calculates the XYZ value and the spectral distribution P. E Using (λ) and the spectral reflectance ρ1(λ), L * a * b * The Lab value, which corresponds to the identification target area in the color space, is calculated. Specifically, the calculation unit 140 calculates the Lab value using equation (4). The Lab value is L * a * b * It is also called a value.
[0034]
number
[0035] Xn, Yn, and Zn are expressed using equation (5).
[0036]
number
[0037] The conversion unit 160 converts the calculated Lab value to L * C * The value is converted to an LCh value, which corresponds to the identification target region in the h color space. Specifically, the conversion unit 160 converts the Lab value to an LCh value using equation (6). The LCh value is L * C * Also called the h-value.
[0038]
number
[0039] The acquisition unit 120 acquires the determination table from the storage unit 110 or an external device. An example of the determination table is shown below.
[0040] Figure 3 shows an example of a judgment table (part 1). For example, judgment table 111 is stored in memory unit 110. Judgment table 111 is also called judgment information. Judgment table 111 is L * C * This shows the correspondence between LCh values, which are values in the h color space, and colors.
[0041] The determination unit 170 uses the LCh value obtained by the conversion and the determination table 111 to determine the color of the area to be identified. In detail, the determination unit 170 determines the color of the L * Value, C * The color of the area to be identified is determined using the value, the h value, and the judgment table 111.
[0042] Next, the color determination process performed by the information processing device 100 will be explained using a flowchart. Figure 4 is a flowchart showing an example of color detection processing. (Step S11) The acquisition unit 120 acquires an image. (Step S12) The identification unit 150 identifies the region to be identified from the image. (Step S13) The calculation unit 140 calculates the XYZ values based on the area to be identified. (Step S14) The acquisition unit 120 acquires the spectral distribution P E (λ) is obtained from the memory unit 110. (Step S15) The acquisition unit 120 acquires the spectral reflectance ρ1(λ) from the storage unit 110. (Step S16) The calculation unit 140 calculates the XYZ values and the spectral distribution P. E The Lab value is calculated using (λ) and the spectral reflectance ρ1(λ). (Step S17) The conversion unit 160 converts the Lab value to the LCh value. (Step S18) The determination unit 170 determines the color of the area to be identified using the LCh value and the determination table 111.
[0043] According to the embodiment, the information processing device 100 processes the spectral distribution P E By using (λ), the influence of lighting can be eliminated. Therefore, the information processing device 100 can determine the original color. In addition, based on spectral distribution data of various types of lighting, one or more spectral distributions P E (λ) is generated, and the information processing device 100 processes the spectral distribution P E By using (λ), it is possible to eliminate the influence of various types of lighting and determine the true color.
[0044] The above describes a case in which the color of the area to be identified is determined using the LCh value and the determination table 111. The determination unit 170 may also determine the color of the area to be identified using the Lab value and the determination table. An example of such a determination table is shown.
[0045] Figure 5 shows an example of a judgment table (part 2). For example, judgment table 111a is stored in the storage unit 110. Judgment table 111a is also called judgment information. Judgment table 111a is L * a *b * This shows the correspondence between Lab values, which are values in the color space, and colors.
[0046] The acquisition unit 120 acquires the determination table 111a from the storage unit 110 or an external device. Then, the determination unit 170 uses the calculated Lab value and the determination table 111a to determine the color of the area to be identified. In detail, the determination unit 170 uses L * value, a * value, b * The color of the area to be identified is determined using the value and the determination table 111a. The information processing device 100 does not perform the process of converting Lab values to LCh values by determining the color using Lab values. Therefore, the processing load on the information processing device 100 can be reduced.
[0047] Here, for example, judgment table 111 and judgment table 111a are generated by the user. LCh values are easier to handle than Lab values. Therefore, it is easier for the user to generate judgment table 111 than judgment table 111a. Thus, when the information processing device 100 determines the color using LCh values, the user's generation burden is reduced. Furthermore, judgment table 111 and judgment table 111a may be updated automatically. In addition, judgment table 111 and judgment table 111a may be updated by the user. Furthermore, the acquisition unit 120 may acquire the management table from the storage unit 110 or an external device. An example of a management table is shown.
[0048] Figure 6 shows an example of a management table (part 1). For example, the management table 112 is stored in the storage unit 110. The management table 112 is also called management information. The management table 112 shows the correspondence between location and spectral distribution. The management table 112 may also be described as showing the correspondence between multiple locations and multiple spectral distributions.
[0049] The acquisition unit 120 acquires the imaging position of an object. The imaging position is the position at which the object was imaged. For example, the acquisition unit 120 acquires the imaging position from the camera. Based on the management table 112, the acquisition unit 120 acquires the spectral distribution corresponding to the imaging position.
[0050] For example, sodium lighting is installed at point A in a factory. The user uses a camera to image an object under the sodium lighting. The acquisition unit 120 acquires the imaging position of the object from the camera. This imaging position is position L1. Based on the management table 112, the acquisition unit 120 acquires the spectral distribution P corresponding to this imaging position. E Obtain 1(λ). Spectral distribution P E 1(λ) is the spectral distribution obtained by using principal component analysis with spectral distribution data that includes sodium illumination data or data similar to said data.
[0051] For example, at point B in the factory, white LED lighting is installed. The user uses a camera to image an object under the white LED lighting. The acquisition unit 120 acquires the imaging position of the object from the camera. This imaging position is position L2. Based on the management table 112, the acquisition unit 120 acquires the spectral distribution P corresponding to this imaging position. E Obtain 2(λ). Spectral distribution P E 2(λ) is the spectral distribution obtained by using principal component analysis with spectral distribution data that includes data for white LED lighting or data similar to said data.
[0052] In this way, the information processing device 100 acquires different spectral distributions depending on the imaging position. Then, the information processing device 100 can determine the color of the target area to be identified using the spectral distribution corresponding to the imaging position.
[0053] Furthermore, the acquisition unit 120 may acquire a different management table from the storage unit 110 or an external device. An example of such a management table is shown below.
[0054] Figure 7 shows an example of a management table (part 2). For example, management table 112a is stored in the storage unit 110. Management table 112a is also called management information. Management table 112a shows the correspondence between time and spectral distribution. Management table 112a may also be described as showing the correspondence between multiple times and multiple spectral distributions.
[0055] The acquisition unit 120 acquires the imaging time of an object. The imaging time is the time when the object was imaged. For example, the acquisition unit 120 acquires the imaging time from the camera. Based on the management table 112a, the acquisition unit 120 acquires the spectral distribution corresponding to the imaging time.
[0056] Here, even when imaging an object at the same location, the lighting may change depending on the time. For example, at time T1, the sodium illumination is on. At time T2, the white LED illumination is on. The acquisition unit 120, when the imaging time is within time T1, records the spectral distribution P E 1(λ) is acquired. Also, if the imaging time is within time T2, the acquisition unit 120 acquires the spectral distribution P E Obtain 2(λ).
[0057] In this way, the information processing device 100 acquires different spectral distributions depending on the imaging time. Then, the information processing device 100 can determine the color of the target area using the spectral distribution corresponding to the imaging time. [Explanation of symbols]
[0058] 100 Information processing device, 101 Processor, 102 Volatile memory device, 103 Non-volatile memory device, 110 Storage unit, 111 Decision table, 111a Decision table, 112 Management table, 112a Management table, 120 Acquisition unit, 130 Generation unit, 140 Calculation unit, 150 Identification unit, 160 Conversion unit, 170 Decision unit.
Claims
1. XYZ values, which are values corresponding to an identification target area that is an image area in an image obtained by capturing an image of an object under a first illumination and are values expressed in the XYZ color system, a spectral distribution, a spectral reflectance when the surface is a perfect diffuse reflector, and L * a * b * an acquisition unit that acquires determination information indicating a correspondence relationship between a Lab value, which is a value in a color space, and a color; Using the XYZ values, the spectral distribution, and the spectral reflectance when the surface is a perfect diffuse reflector, * a * b * a calculation unit that calculates Lab values that correspond to the identification target area in a color space; a determination unit that determines a color of the identification target area using the calculated Lab value and the determination information; A generation unit; having when the spectral distribution is generated, the acquisition unit acquires the XYZ values of the reference color calculated based on RGB values obtained from an image area of the reference color in an image obtained by capturing an image of an object under the first illumination, and a spectral reflectance of a portion of the reference color; When the spectral distribution is generated, the generation unit generates a spectral distribution model by using spectral distribution data including data of the first illumination or data similar to the data and a principal component analysis; The spectral distribution is obtained based on the XYZ values of the reference color, the spectral distribution model, and a spectral reflectance of a portion of the reference color. Information processing device.
2. Further comprising a conversion unit, The determination information is L * C * indicates the correspondence between LCh values, which are values in h color space, and colors, The conversion unit converts the calculated Lab value into the L * C * converting the LCh value, which is a value corresponding to the region to be identified in h color space; The determination unit determines a color of the discrimination target region by using the LCh value obtained by the conversion and the determination information. The information processing device according to claim 1 .
3. the acquisition unit acquires management information indicating an imaging position of the object and a correspondence relationship between the position and the spectral distribution, and acquires the spectral distribution corresponding to the imaging position based on the management information.
3. The information processing device according to claim 1 or 2.
4. the acquisition unit acquires management information indicating an image capture time of the object and a correspondence relationship between time and the spectral distribution, and acquires the spectral distribution corresponding to the image capture time based on the management information.
3. The information processing device according to claim 1 or 2.
5. An information processing device, XYZ values, which are values corresponding to an identification target area that is an image area in an image obtained by capturing an image of an object under a first illumination and are values expressed in the XYZ color system, a spectral distribution, a spectral reflectance when the surface is a perfect diffuse reflector, and L * a * b * The L is calculated by obtaining information indicating a correspondence relationship between the Lab value, which is a value in a color space, and the color, using the XYZ value, the spectral distribution, and the spectral reflectance when the surface is a perfect diffuse reflector. * a * b * Calculating Lab values, which are values corresponding to the identification target area in a color space; Using the calculated Lab value and the determination information, a color of the identification target area is determined; When the spectral distribution is generated, the XYZ values of the reference color calculated based on RGB values obtained from an image area of the reference color in an image obtained by capturing an image of an object under the first illumination, and the spectral reflectance of the portion of the reference color are acquired, and a spectral distribution model is generated using spectral distribution data including data of the first illumination or data similar to the data, and principal component analysis, and the spectral distribution is generated based on the XYZ values of the reference color, the spectral distribution model, and the spectral reflectance of the portion of the reference color. Judgment method.
6. In the information processing device, XYZ values, which are values corresponding to an identification target area that is an image area in an image obtained by capturing an image of an object under a first illumination and are values expressed in the XYZ color system, a spectral distribution, a spectral reflectance when the surface is a perfect diffuse reflector, and L * a * b * The L is calculated by obtaining information indicating a correspondence relationship between the Lab value, which is a value in a color space, and the color, using the XYZ value, the spectral distribution, and the spectral reflectance when the surface is a perfect diffuse reflector. * a * b * Calculating Lab values, which are values corresponding to the identification target area in a color space; determining a color of the discrimination target region using the calculated Lab value and the determination information; A determination program for executing a process, When the spectral distribution is generated, the XYZ values of the reference color calculated based on RGB values obtained from an image area of the reference color in an image obtained by capturing an image of an object under the first illumination, and the spectral reflectance of the portion of the reference color are acquired, and a spectral distribution model is generated using spectral distribution data including data of the first illumination or data similar to the data, and principal component analysis, and the spectral distribution is generated based on the XYZ values of the reference color, the spectral distribution model, and the spectral reflectance of the portion of the reference color. Judging program.
