Trained model generation device, information processing device, trained model generation method, information processing method, trained model generation program, and information processing program
A machine learning model for color correction associates learning images with a color chart, enabling efficient color correction without simultaneous photography, thus addressing the inefficiency of traditional methods.
Patent Information
- Application Number
- JP2024089436
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-31
AI Technical Summary
Existing methods for color correction using a color chart require photographing the chart alongside the subject, which is cumbersome and inefficient.
A machine learning model is used to generate correction coefficients for color correction by associating learning images of a subject with a color chart, allowing color correction without the need to photograph the chart alongside the subject.
Enables color correction similar to using a color chart without the need for simultaneous photography, improving efficiency and accuracy by generating correction coefficients through machine learning.
Smart Images

Figure 0007550416000001
Abstract
Description
[Technical field]
[0001] The disclosed technology relates to a trained model generation device, an information processing device, a trained model generation method, an information processing method, a trained model generation program, and an information processing program. [Background technology]
[0002] Patent Document 1 discloses a tongue color correction method based on a deep neural network. Specifically, Patent Document 1 discloses a technique for solving color shifts and color distortions of tongue images generated by a tongue image of a mobile device using a deep neural network. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] China Patent Publication No. 115482160 Summary of the Invention [Problem to be solved by the invention]
[0004] The technology disclosed in the above Patent Document 1 is a technology for performing color correction of the tongue using a deep neural network. As also disclosed in the above Patent Document 1, the color of an image obtained by photographing a subject is significantly affected by the lighting environment at the time of photographing. For this reason, there is a problem that the color of the subject shown in the image differs from the original color, making it difficult to perform analysis using the original color information of the subject. For this reason, a method is generally adopted in which a color chart is used as reference information at the time of photographing, and color correction is performed on the subject based on the reference, thereby restoring the color of the subject shown in the image to the original color.
[0005] In conventional methods using a color chart, it is necessary to photograph the color chart together with the subject. Specifically, an image of the subject and the color chart is acquired, and the color of the color chart in the image is converted into a reference color, thereby correcting the color of the subject in the image.
[0006] However, when using the above-mentioned conventional method, it is necessary to simultaneously photograph the color target every time a subject is photographed, which is troublesome.
[0007] The disclosed technology has been made in consideration of the above-mentioned circumstances, and provides a trained model generation device, an information processing device, a trained model generation method, an information processing method, a trained model generation program, and an information processing program that can perform color correction on a subject similar to a color correction method using a color chart, without having to photograph a color chart together with the subject. [Means for solving the problem]
[0008] In order to achieve the above object, a first aspect of the present disclosure is a trained model generation device including a training acquisition unit that acquires a training image containing a training subject and a color chart; a calculation unit that calculates a correction coefficient for correcting a color appearing on the color chart in the training image to a standard reference color; a training data generation unit that generates training data that associates an image of the training subject portion in the training image with the correction coefficient; and a trained model generation unit that generates a trained model based on the training data, which outputs a correction coefficient for correcting the color of an image containing a subject when the image is input.
[0009] A second aspect of the present disclosure is a trained model generation method in which a computer executes processes to obtain a training image containing a training subject and a color chart, calculate a correction coefficient for correcting a color appearing on the color chart in the training image to a standard reference color, generate training data that associates an image of the training subject portion in the training image with the correction coefficient, and generate a trained model based on the training data, which outputs a correction coefficient for correcting the color of an image containing a subject when the image is input.
[0010] A third aspect of the present disclosure is a trained model generation program for causing a computer to execute a process of acquiring a training image including a training subject and a color chart, calculating a correction coefficient for correcting a color appearing on the color chart in the training image to a standard reference color, generating training data that associates an image of the training subject portion in the training image with the correction coefficient, and generating a trained model based on the training data, which outputs a correction coefficient for correcting the color of an image including a subject when the image is input.
[0011] A fourth aspect of the present disclosure is an information processing device that includes an acquisition unit that acquires an image containing a target subject, and a correction unit that inputs the image acquired by the acquisition unit into a pre-generated trained model to acquire a correction coefficient output from the trained model and corrects a color of the image using the correction coefficient, wherein the trained model is a trained model that outputs a correction coefficient for correcting the color of an image when an image containing a subject is input, and is a trained model that has been trained in advance based on training data in which a training subject and the training correction coefficient are associated, and the training correction coefficient is a correction coefficient that corrects the color of the color chart in a training image containing a training subject and a color chart to a standard reference color.
[0012] A fifth aspect of the present disclosure is an information processing method in which a computer executes a process of acquiring an image containing a target subject, inputting the acquired image into a trained model generated in advance to acquire a correction coefficient output from the trained model, and correcting a color of the image using the correction coefficient, the trained model being a trained model that outputs a correction coefficient for correcting the color of an image containing a subject when the image is input, the trained model being a trained model that has been trained in advance based on training data in which a training subject and the training correction coefficient are associated, and the training correction coefficient is a correction coefficient that corrects the color of the color chart in a training image containing a training subject and a color chart to a standard reference color.
[0013] A sixth aspect of the present disclosure is an information processing program for causing a computer to execute a process of acquiring an image containing a target subject, inputting the acquired image into a trained model generated in advance, thereby acquiring a correction coefficient output from the trained model, and correcting a color of the image using the correction coefficient, wherein the trained model is a trained model that outputs a correction coefficient for correcting the color of an image containing a subject when the image is input, and is a trained model that has been trained in advance based on training data in which a training subject and the training correction coefficient are associated, and the training correction coefficient is a correction coefficient that corrects the color of the color chart in a training image containing a training subject and a color chart to a standard reference color. Effect of the Invention
[0014] According to the disclosed technology, it is possible to obtain an effect that color correction similar to the color correction method using a color chart can be performed on a subject without photographing a color chart together with the subject. [Brief description of the drawings]
[0015] [Figure 1] FIG. 1 illustrates an example of a schematic configuration of an information processing apparatus according to an embodiment. [Diagram 2]FIG. 11 is a diagram for explaining color correction using a color chart. [Diagram 3] FIG. 11 is a diagram for explaining an increase in learning data. [Figure 4] FIG. 1 is a diagram for explaining a trained model of an embodiment. [Diagram 5] FIG. 1 illustrates an example of a computer constituting an information processing device. [Figure 6] FIG. 10 is a diagram illustrating an example of a trained model generation process executed by the information processing apparatus of the embodiment. [Figure 7] FIG. 2 illustrates an example of information processing executed by the information processing apparatus of the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, embodiments of the disclosed technology will be described in detail with reference to the drawings.
[0017] <Information processing device according to an embodiment>
[0018] Fig. 1 shows an information processing device 10 according to an embodiment. As shown in Fig. 1, the information processing device 10 functionally includes a data storage unit 20, a learning acquisition unit 22, a calculation unit 24, a learning data generation unit 26, a learning data storage unit 28, a trained model generation unit 30, a trained model storage unit 32, an acquisition unit 34, a correction unit 36, and an output unit 38. The information processing device 10 is realized by a computer as described below.
[0019] It is assumed that the lighting environment when a subject is photographed varies widely. Therefore, in order to grasp the true color of the subject, it is necessary to correct the color of the image when the subject is photographed. As a method for correcting the color of an image, a color correction method using a color chart is known.
[0020] FIG. 2 is a diagram for explaining color correction using a color chart. In this embodiment, a case is considered where the color of an image in which a tongue, which is an example of a subject, is corrected. When the color of an image is corrected using a color chart, as shown in FIG. 2, a color chart C1 is also photographed when an image IM1 of the tongue is photographed. Then, the color of the image IM1 is corrected using a correction coefficient that converts the color of the color chart C1 in the image IM1 into a reference color that serves as a standard. Specifically, IM2 shown in FIG. 2 is an image after color correction, and the color of the color chart C2 in the image IM2 is the reference color.
[0021] However, as described above, the method of simultaneously photographing a subject and a color chart is complicated. Therefore, the information processing device 10 of the present embodiment uses a machine learning model to obtain correction coefficients for color correction of an image. The following is a detailed description.
[0022] A plurality of learning images, each of which includes a tongue as a learning subject and a color chart, are stored in the data storage unit 20. In the following, each learning image is referred to as a first learning image.
[0023] The learning acquisition unit 22 reads out the multiple first learning images stored in the data storage unit 20, thereby acquiring the multiple first learning images.
[0024] The calculation unit 24 uses a known method to calculate a correction coefficient for correcting the color appearing on the color chart in the first learning image to a reference color serving as a standard.
[0025] Specifically, first, the calculation unit 24 extracts a color chart area from the first learning image using a known image processing method. For example, the calculation unit 24 extracts a color chart area from the first learning image using a trained model for color chart extraction that outputs 1 for the color chart area and 0 for areas other than the color chart area for the input image. Note that this trained model for color chart extraction can be constructed by a known machine learning technology.
[0026] Next, the calculation unit 24 separates each panel (multiple square regions shown in FIG. 2) in the color chart using a known image processing method, and then calculates a correction coefficient using a known method to convert the color of each panel in the color chart into a reference color.
[0027] For example, consider the case where color c=(R,G,B) in an image is corrected to a reference color c'=(R',G',B') that serves as a standard. Each of R, G, and B corresponds to a pixel value of 0 to 255, for example. In this case, color c can be corrected to reference color c' by the following linear conversion formula (1).
[0028] c'=Wc+b (1)
[0029] In the above formula (1), W is a matrix, and b is a vector. In this embodiment, a correction coefficient vector w, which is a combination of each component of the matrix W and each component of b, is defined as follows. Note that the following correction coefficient vector w corresponds to one point in the correction coefficient vector space. As shown below, the correction coefficient vector is a 12-dimensional vector, and therefore the correction coefficient vector space is a 12-dimensional space.
[0030] JPEG0007550416000002.jpg11134
[0031] When the color c of each pixel in an image is corrected to a reference color c' using a correction coefficient vector w having a large number of components (the number of components is 12) as described above, the correction may be performed to a color different from the actual reference color due to the large number of variables. Therefore, in order to improve the accuracy of color correction, in this embodiment, the above correction coefficient vector w is reduced in dimension to generate an encoding correction coefficient vector w' shown below. The encoding correction coefficient vector w' corresponds to one point in the encoding correction coefficient vector space. The encoding correction coefficient vector space is a five-dimensional space.
[0032] JPEG0007550416000003.jpg1067
[0033] When converting the correction coefficient vector w to the encoding correction coefficient vector w', the correction coefficient vector w obtained by converting the encoding correction coefficient vector w' back to the correction coefficient vector w is C A conversion function that reduces an error between the correction coefficient vector w and the original correction coefficient vector w is used. Examples of the conversion function include a principal component analysis or an autoencoder type neural network, which will be described later. In the following, a case where the conversion function is a principal component analysis or an autoencoder type neural network will be described as an example, but the present invention is not limited to this, and any conversion function may be used as long as the conversion from the correction coefficient vector w to the encoding correction coefficient vector w' is appropriately performed.
[0034] For example, consider a case where principal component analysis is used as the above-mentioned transformation function. In this case, principal component analysis is performed on the distribution of multiple correction coefficient vectors w corresponding to a group of images with color charts collected in advance. Then, an operation of w'=Uw is performed based on a transformation matrix U in which eigenvectors of the main principal component axes obtained by the principal component analysis are arranged, thereby calculating an encoded correction coefficient vector w' corresponding to the original correction coefficient vector w.
[0035] Alternatively, an existing autoencoder type neural network may be used as the above-mentioned conversion function. The autoencoder type neural network consists of two layers: an encode layer that converts the input into a low-dimensional vector, and a decode layer that decodes the input back to the original dimension. In this case, when a correction coefficient vector w is input to a trained autoencoder type neural network that maximizes the decoding accuracy for the entire training image group, an encoding correction coefficient vector w' is obtained from the encode layer of the autoencoder type neural network.
[0036] The above five-dimensional encoding correction coefficient vector w' is just an example, and the number of dimensions may be adjusted depending on the color distribution of the target image group.
[0037] Furthermore, the learning data generating unit 26 increases the learning data. Fig. 3 is a diagram for explaining the increase in learning data. The coordinate space in Fig. 3 represents the color space.
[0038] As shown in Fig. 3, the learning data generator 26 corrects the color of the image IM1, which is the first learning image, using the above-mentioned encoding correction coefficient vector w' to generate a corrected image IM2. As shown in Fig. 3, by assigning each component of the encoding correction coefficient vector w' to each component of the matrix W and each component of the vector b in the above formula (1) and then calculating the above formula (1), the color c of the first learning image IM1 is corrected to the reference color c', and a corrected image IM2 is generated.
[0039] More specifically, first, according to the above formula (1), a correction coefficient vector w is calculated that minimizes the error between the color c' and the reference color c for all panels in the color chart shown in the image IM1, which is the first learning image. Next, as described above, an encoding correction coefficient vector w' corresponding to the correction coefficient vector w is calculated by a conversion function such as principal component analysis or an autoencoder type neural network. Then, as shown in FIG. 3, the encoding correction coefficient vector w' is used to perform the conversion process shown in the above formula (1), thereby correcting the color c of the first learning image IM1 to the reference color c', and a corrected image IM2 is generated.
[0040] Next, the learning data generating unit 26 generates a plurality of second learning images IM3, IM4, and IM5 by changing the color of the corrected image IM2. At this time, the learning data generating unit 26 generates a plurality of second learning images so that the pixel values of the plurality of first learning images are within the distribution ranges of the pixel values of the plurality of first learning images.
[0041] Specifically, the encoding correction coefficient vector w' shown in FIG. 3 is changed by a random number to generate multiple teacher conversion vectors w t i ' is generated. i is the index for identifying the teacher transformation vector. Next, the teacher transformation vector w t i Each component of ' is assigned to each component of matrix W and each component of b in the above formula (1). Then, color conversion is performed on the corrected image IM2 according to the following formula (2). The following formula (2) converts the reference color c', which is the color of the corrected image IM2, into color c. This color c corresponds to the color of the image obtained in an actual lighting environment, and is also a pseudo color.
[0042] c=W -1 (c'-b) (2)
[0043] Multiple different teacher transformation vectors w t i The above-mentioned transformation process is performed on each of the training images IM3, IM4, and IM5 shown in FIG. 3, which are the second training images. Note that the multiple training transformation vectors w t i The probability distribution of the generation of ' is generated so as to match the probability distribution within the distribution range D of the sample group of the first learning images. For this reason, as shown in FIG. 3, the learning data generation unit 26 generates a plurality of second learning images IM3, IM4, IM5 within the distribution range D in the color space of the sample group that is the plurality of first learning images. Specifically, as shown in FIG. 3, the teacher transformation vector w t 1 ' to change the color of the corrected image IM2, and a second learning image IM3 is generated. t 2A second learning image IM5 is generated by changing the color of the corrected image IM2 using '. This generates a plurality of second learning images IM3, IM4, IM5 that are similar to the color variations of actual images taken under various light sources. Each of the plurality of second learning images IM3, IM4, IM5 is a pseudo image, and can be used as learning data, as described later.
[0044] In addition, the teacher transformation vector w t 1 ' is also an encoding correction coefficient vector for converting the color of the second learning image IM3 to the color of the corrected image IM2. Similarly, the teacher conversion vector w t 2 ' is also an encoding correction coefficient vector for converting the color of the second learning image IM5 to the color of the corrected image IM2. For this reason, each of the multiple second learning images and the multiple teacher conversion vectors w t i Pairs of each of the plurality of first learning images and a plurality of encoding correction coefficient vectors w′ are used as second learning data, as described later. Pairs of each of the plurality of first learning images and a plurality of encoding correction coefficient vectors w′ are used as first learning data, as described later.
[0045] For this reason, in the following description, for the sake of simplicity, the encoding correction coefficient vector w′ used to convert the color of the first learning image into the color of the corrected image will be referred to simply as the first correction coefficient, and the teacher conversion vector w′ used to convert the color of the second learning image into the color of the corrected image will be referred to simply as the first correction coefficient. t ' is also referred to simply as the second correction coefficient.
[0046] The learning data generating unit 26 generates first learning data for each of the plurality of first learning images, in which the first learning image is associated with a first correction coefficient. The learning data generating unit 26 also generates second learning data for each of the plurality of second learning images, in which the second learning image is associated with a second correction coefficient. The first correction coefficient and the second correction coefficient are values calculated in advance and are also teacher data.
[0047] The learning data storage unit 28 stores the first learning data and the second learning data generated by the learning data generation unit 26.
[0048] The trained model generation unit 30 generates a trained model that outputs a correction coefficient for correcting the color of an image when an image showing a tongue is input, using a known machine learning algorithm based on the first training data and the second training data stored in the training data storage unit 28. The trained model is, for example, a known neural network model. When generating the trained model, learning is performed so as to minimize an error between the correction coefficient output from the model and the teacher data of the correction coefficient.
[0049] Fig. 4 is a diagram for explaining the trained model of this embodiment. As shown in Fig. 4, when an image showing a tongue is input to the trained model of this embodiment, a correction coefficient for correcting the color of the image is output.
[0050] The trained model memory unit 32 stores the trained model generated by the trained model generation unit 30.
[0051] The acquisition unit 34 acquires an image of a target tongue. Note that this image is different from the first learning image and the second learning image, and is an image to be subjected to color correction.
[0052] The correction unit 36 inputs the image acquired by the acquisition unit 34 to the trained model stored in the trained model storage unit 32, and thereby acquires correction coefficients output from the trained model. Then, the correction unit 36 corrects the color of the image using the correction coefficients.
[0053] The output unit 38 outputs the image whose colors have been corrected by the correction unit 36 as a result.
[0054] A user operating the information processing device 10 checks the output result and confirms the color of the tongue shown in the image.
[0055] The information processing device 10 can be realized, for example, by a computer 50 shown in Fig. 5. The computer 50 includes a CPU 51, a memory 52 as a temporary storage area, and a non-volatile storage unit 53. The computer 50 also includes an input / output interface (I / F) 54 to which an external device, an output device, etc. are connected, and a read / write (R / W) unit 55 that controls reading and writing of data from and to a recording medium. The computer 50 also includes a network I / F 56 that is connected to a network such as the Internet. The CPU 51, the memory 52, the storage unit 53, the input / output I / F 54, the R / W unit 55, and the network I / F 56 are connected to one another via a bus 57.
[0056] The storage unit 53 can be realized by a hard disk drive (HDD), a solid state drive (SSD), a flash memory, etc. The storage unit 53 as a storage medium stores a program for operating the computer 50. The CPU 51 reads the program from the storage unit 53, expands it in the memory 52, and sequentially executes the processes contained in the program.
[0057] [Operation of the information processing device of the embodiment]
[0058] Next, a specific operation of the information processing device 10 according to the embodiment will be described. The information processing device 10 executes a trained model generation process shown in FIG.
[0059] First, in step S100, the learning acquisition unit 22 reads out a plurality of first learning images stored in the data storage unit 20, thereby acquiring a plurality of first learning images.
[0060] In step S101, the calculation unit 24 sets one first learning image from among the multiple first learning images acquired in step S100.
[0061] Next, in step S102, the calculation unit 24 uses a known method to calculate a first correction coefficient that corrects the color appearing on the color chart in the first learning image set in step S101 to a reference color that serves as a standard.
[0062] In step S104, the learning data generating unit 26 corrects the color of the first learning image using the first correction coefficient calculated in step S102, thereby generating a corrected image.
[0063] In step S106, the learning data generating unit 26 generates a plurality of second learning images by changing the color of each pixel of the corrected image generated in step S104.
[0064] In step S108, the learning data generation unit 26 calculates, for each of the multiple second learning images generated in step S106, a second correction coefficient used to correct the color of the second learning image to the color of the corrected image.
[0065] In step S110, the learning data generation unit 26 generates first learning data that associates an image of the tongue part in the first learning image set in step S101 with the first correction coefficient calculated in step S102. Also, in step S110, the learning data generation unit 26 generates second learning data that associates an image of the tongue part in the second learning image with the second correction coefficient calculated in step S108 for each of the multiple second learning images generated in step S106. Then, the learning data generation unit 26 stores the first learning data and the second learning data in the learning data storage unit 28.
[0066] In step S112, the learning data generation unit 26 determines whether or not the processes of steps S101 to S110 have been performed on all first learning images stored in the data storage unit 20. If the processes of steps S101 to S110 have been performed on all first learning images stored in the data storage unit 20, the process proceeds to step S112. On the other hand, if there are any first learning images for which the processes of steps S101 to S110 have not been performed, the process returns to step S101.
[0067] In step S112, the trained model generation unit 30 generates a trained model that outputs a correction coefficient for correcting the color of an image when an image showing a tongue is input, using a known machine learning algorithm based on the plurality of first training data and the plurality of second training data stored in the training data storage unit 28. Then, the trained model generation unit 30 stores the generated trained model in the trained model storage unit 32.
[0068] By executing the trained model generation process of Figure 6, a trained model is generated that outputs a correction coefficient for correcting the color of an image when an image showing a tongue is input, and the correction coefficient output from the trained model can be used to correct the color of the tongue image.
[0069] Next, upon receiving a predetermined instruction signal, the information processing device 10 executes the information processing shown in FIG.
[0070] In step S200, the acquisition unit 34 acquires an image showing the target tongue.
[0071] In step S202, the correction unit 36 reads out the trained model from the trained model storage unit 32.
[0072] In step S204, the correction unit 36 inputs the image acquired in step S200 to the trained model read out in step S202, thereby acquiring the correction coefficients output from the trained model.
[0073] In step S206, the correction unit 36 corrects the color of the image acquired in step S200 using the correction coefficient acquired in step S204.
[0074] In step S208, the output unit 38 outputs the image whose colors have been corrected in step S206 as a result.
[0075] As described above, the information processing device 10 of the embodiment acquires a learning image in which a learning tongue and a color chart are shown. Then, the information processing device 10 calculates a correction coefficient for correcting the color shown on the color chart in the learning image to a reference color that serves as a standard. The information processing device 10 generates learning data in which an image of the tongue part for learning in the learning image is associated with the correction coefficient. The information processing device 10 generates a trained model that outputs a correction coefficient for correcting the color of an image in which the tongue is shown when the image is input based on the learning data. This makes it possible to acquire a correction coefficient for performing color correction similar to the color correction method using a color chart, even if the color chart is not photographed together with the tongue. In addition, the correction coefficient can be used to correct the color of the image in which the tongue is shown, and color correction similar to the color correction method using a color chart can be performed even if the color chart is not photographed together with the tongue.
[0076] Moreover, the information processing device 10 generates second learning data and generates a trained model based on the second learning data, thereby making it possible to obtain correction coefficients for correcting the color of an image with higher accuracy. Specifically, the trained model is trained appropriately by increasing the number of learning data. Furthermore, by generating a plurality of second learning images so that each pixel value of a plurality of first learning images falls within a distribution range, a plurality of second learning images similar to the color variation of actual images captured under various light sources are generated.
[0077] The technology of the present disclosure is not limited to the above-described embodiment, and various modifications and applications are possible without departing from the spirit and scope of the present invention.
[0078] For example, although the present specification has been described as an embodiment in which a program is pre-installed, the program may also be provided by being stored on a computer-readable recording medium.
[0079] In the above embodiment, the process executed by the CPU after reading the software (program) may be executed by various processors other than the CPU. In this case, examples of the processor include a PLD (Programmable Logic Device) whose circuit configuration can be changed after manufacturing such as an FPGA (Field-Programmable Gate Array), and a dedicated electric circuit such as an ASIC (Application Specific Integrated Circuit) which is a processor having a circuit configuration designed exclusively for executing a specific process. Alternatively, a GPGPU (General-purpose graphics processing unit) may be used as the processor. Each process may be executed by one of these various processors, or may be executed by a combination of two or more processors of the same or different types (for example, a plurality of FPGAs, a combination of a CPU and an FPGA, etc.). The hardware structure of these various processors is, more specifically, an electric circuit that combines circuit elements such as semiconductor elements.
[0080] In addition, in each of the above embodiments, the program is described as being pre-stored (installed) in the storage, but the present invention is not limited to this. The program may be provided in a form stored in a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be downloaded from an external device via a network.
[0081] Furthermore, each process of the present embodiment may be implemented by a computer or server equipped with a general-purpose processor and a storage device, and each process may be executed by a program. This program is stored in a storage device, and may be recorded on a recording medium such as a magnetic disk, an optical disk, or a semiconductor memory, or may be provided through a network. Of course, any other components do not have to be implemented by a single computer or server, and may be distributed and implemented on multiple computers connected by a network.
[0082] In the above embodiment, the subject is a human tongue, but the subject is not limited to this. The subject may be anything. For example, the present embodiment is applicable to subjects such as a human face, biological tissue, and scenery.
[0083] For example, the following modifications are possible with respect to the subject.
[0084] [Variation 1] For example, each exposed part of the human body (for example, skin, eyes, lips, hair, etc. exposed to the outside of the human body) may be set as the subject. For example, when the subject is skin, it is possible to correct the color of the skin, and it is possible to reproduce how the skin looks under a reference light environment. More specifically, for example, when skin with makeup is photographed under a certain light environment, it is possible to reproduce how the skin looks under a reference light environment. In addition, when the color of the skin under the reference light environment is specified, it is possible to reproduce how the skin looks under various light environments. Therefore, the technology of the present embodiment can be a useful technology for evaluating cosmetics applied to the skin, for example. Similarly, when the subject is an eye, it is possible to reproduce the color of the eye under a reference light environment when wearing color contact lenses. Similarly, when the color of the eye under a reference light environment is specified, it is possible to reproduce the color of the eye under various light environments. Therefore, the technology of the present embodiment can be a useful technology for evaluating color contact lenses, for example. Similarly, when the subject is lips, it is possible to reproduce the color of the eyes under a reference light environment when lipstick is applied to the lips. Similarly, when the color of the lips under a reference light environment is specified, it is possible to reproduce the color of the eyes under various light environments. Therefore, the technology of the present embodiment can be a useful technology for evaluating lipstick, for example. Similarly, when the subject is hair, it is possible to reproduce the color of the hair under a reference light environment when the hair is dyed. Similarly, when the hair color under a reference light environment is specified, it is possible to reproduce what color the hair looks like under various light environments. Therefore, the technology of the present embodiment can be a useful technology for evaluating hair dyeing techniques, for example. As described above, when evaluating beauty products or services, the color of the subject in a specific light environment (e.g., the light environment in a beauty facility) is often different from the color of the subject in a light environment different from the specific light environment (e.g., the light environment in an office, hotel, restaurant, etc.). In such a case, even if the subject looks good in a specific light environment (e.g., a beauty facility), it may not look good in an actual light environment (e.g., outdoors, etc.). For this reason, for example, by using the technology of this embodiment, the color of the subject obtained in a specific light environment (e.g., a beauty facility) is once corrected to a color in a reference light environment, and then converted to a color in various light environments, thereby making it possible to evaluate beauty products or services. Note that the conversion process from the color in the reference light environment to the color in various light environments can be performed by adopting a known technology.
[0085] [Variation 2] Alternatively, for example, an unexposed part of the human body (for example, various biological tissues of the human body that are not exposed to the outside) may be used as the subject. For example, teeth, gums, uvula, organs, blood vessel walls, airway walls, intestinal walls, ear cavity walls, nasal cavity walls, vaginal inner walls, uterine inner walls, etc. may be used as the subject. In this case, by correcting the color of the subject photographed by various photographing devices, the color of the subject under a reference light environment is identified, which becomes useful information when performing various medical procedures. Therefore, the technology of the present embodiment can also be a useful technology when performing medical procedures.
[0086] [Variation 3] Alternatively, for example, various products may be used as the subject. For example, the color in a light source environment such as a factory or a prototype room where a craft is manufactured is often different from the color in the light environment in which the craft is actually used. In such a case, even if the craft looks good in a specific light environment (for example, a factory), it may not look good in the actual light environment. For this reason, for example, by using the technology of this embodiment, the color of various products such as crafts obtained in a specific light environment (for example, a factory) is once corrected to the color in a reference light environment, and then converted to the color in various light environments, making it possible to evaluate the color of various products such as crafts.
[0087] [Variation 4] Alternatively, for example, various foods (for example, meat, fish, vegetables, or fruits) may be used as the subject. For example, the color of various foods under a specific light source environment is often different from the color of the various foods under the light environment in which they are actually displayed. For this reason, for example, by using the technology of this embodiment, the color of various foods obtained under a specific light environment is first corrected to a color under a reference light environment, and then converted to a color under various light environments, making it possible to evaluate the color (or evaluate the freshness) of various foods.
[0088] [Variation 5] Alternatively, for example, a group may be generated for each combination of the light environment in which the subject is placed and the imaging device that captures the subject (more specifically, various setting values of the imaging device), and a trained model may be generated for each group. In general, how the original color of the subject changes is determined by the combination of the light environment and the imaging device. The type of light source may be used to define the light environment. In addition, the characteristics of the image sensor of the imaging device and the color temperature conversion setting by the terminal software are assumed to define the imaging device. For this reason, a group is generated for each combination of the light environment in which the subject is placed and the imaging device that captures the subject, learning data is amplified so as to reproduce the variation in color change for each group, and a trained model that outputs a correction coefficient for each group is generated. This makes it possible to obtain a trained model for outputting a correction coefficient according to the combination of the light environment in which the subject is placed and the imaging device that captures the subject. This makes it possible to individually generate trained models for obtaining correction coefficients for outdoor photography, trained models for obtaining correction coefficients for indoor photography, and trained models that output correction coefficients for internal tissue photography, for example. For example, when an endoscopic image is targeted, a dedicated light source and a dedicated imaging device are assumed. Therefore, by amplifying a group of image samples of an endoscopic image and generating a trained model based on the amplified image samples, a trained model specialized in outputting a correction coefficient for correcting the color of the endoscopic image can be obtained, and the color of the endoscopic image can be corrected more appropriately. When amplifying a group of image samples of an endoscopic image, as described above, the image is generated so that the probability distribution coincides with the spatial distribution of the correction coefficient for the entire group of image samples. In addition, by using groupings that depend on the characteristics of the light source, for example, a group of image samples specialized for indoor portraits or a group of image samples specialized for outdoor scenes under natural light, it becomes possible to generate trained models specialized for each, making it possible to more appropriately correct the colors of each image.
[0089] In the above embodiment, the information processing device 10 executes the trained model generation process of FIG. 6 and the information processing of FIG. 7, but the present invention is not limited to this. For example, the trained model generation device may execute the trained model generation process of FIG. 6, and the information processing device may execute the information processing of FIG. 7. In this case, the trained model generation device includes at least the learning acquisition unit 22, the calculation unit 24, the learning data generation unit 26, and the trained model generation unit 30. In this case, the information processing device includes at least the acquisition unit 34 and the correction unit 36.
[0090] All publications, patent applications, and standards mentioned in this specification are herein incorporated by reference to the same extent as if each individual publication, patent application, or standard was specifically and individually indicated to be incorporated by reference.
[0091] (Additional Note) The following additional notes are given regarding aspects of the present disclosure.
[0092] (Appendix 1) a learning acquisition unit that acquires learning images including a learning subject and a color chart; a calculation unit that calculates a correction coefficient for correcting a color appearing on the color chart in the learning image to a reference color; a learning data generating unit that generates learning data in which an image of the learning subject portion in the learning image is associated with the correction coefficient; a trained model generation unit that generates a trained model based on the learning data, the trained model outputting a correction coefficient for correcting a color of an image when an image including a subject is input; A trained model generating device comprising: (Appendix 2) the training image is a first training image, the correction coefficient is a first correction coefficient, The learning data is first learning data, The learning data generation unit includes: generating a corrected image by correcting a color of an image of the learning subject portion in the first learning image using the first correction coefficient; generating a plurality of second learning images by varying a color of the corrected image; calculating a second correction coefficient for correcting a color of each of a plurality of second learning images to a color of the corrected image, and generating second learning data that associates the second learning images with the second correction coefficient; The trained model generation unit generates the trained model based on the first training data and the second training data. 2. A trained model generation device as described in claim 1. (Appendix 3) the learning data generation unit generates a plurality of second learning images so that each pixel value falls within a distribution range of the plurality of first learning images; 3. The trained model generation device according to claim 1 or 2. (Appendix 4) an acquisition unit for acquiring an image including a target subject; A correction unit that inputs the image acquired by the acquisition unit into a trained model generated in advance, acquires a correction coefficient output from the trained model, and corrects a color of the image using the correction coefficient; Including, The trained model is a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input, and is trained in advance based on training data in which a training subject and the training correction coefficient are associated with each other, The correction coefficient for learning is a correction coefficient for correcting a color appearing on the color chart in a learning image in which a learning subject and a color chart are appearing, to a reference color serving as a standard. Information processing device. (Appendix 5) Acquire learning images that include a learning subject and a color target; Calculating a correction coefficient for correcting the color of the learning image on the color chart to a reference color; generating learning data in which an image of the learning subject portion in the learning image is associated with the correction coefficient; generating a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input based on the training data; A method for generating trained models in which processing is performed by a computer. (Appendix 6) Obtain an image of the target subject, The acquired image is input to a trained model generated in advance, thereby acquiring a correction coefficient output from the trained model, and correcting the color of the image using the correction coefficient; The trained model is a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input, and is trained in advance based on training data in which a training subject and the training correction coefficient are associated with each other, The correction coefficient for learning is a correction coefficient for correcting a color appearing on the color chart in a learning image in which a learning subject and a color chart are appearing, to a reference color serving as a standard. An information processing method in which processing is performed by a computer. (Appendix 7) Acquire learning images that include a learning subject and a color target; Calculating a correction coefficient for correcting the color of the learning image on the color chart to a reference color; generating learning data in which an image of the learning subject portion in the learning image is associated with the correction coefficient; generating a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input based on the training data; A trained model generation program for allowing a computer to execute processing. (Appendix 8) Obtain an image of the target subject, The acquired image is input to the trained model generated by the trained model generation program described in Supplementary Note 7, thereby acquiring the correction coefficient output from the trained model, and correcting the color of the image using the correction coefficient; The trained model is a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input, and is trained in advance based on training data in which a training subject and the training correction coefficient are associated with each other, The correction coefficient for learning is a correction coefficient for correcting a color appearing on the color chart in a learning image in which a learning subject and a color chart are appearing, to a reference color serving as a standard. An information processing program for causing a computer to execute processing. [Explanation of symbols]
[0093] 10. Information processing device 20 Data storage unit 22 Learning acquisition section 24 Calculation section 26 Learning data generation unit 28 Learning data storage unit 30 Trained model generation unit 32 Trained model memory 34 Acquisition Department 36 Correction section 38 Output section
Claims
1. a learning acquisition unit that acquires learning images including a learning subject and a color chart; a calculation unit that calculates a correction coefficient for correcting the color of the learning image on the color chart to a reference color; a learning data generating unit that generates learning data in which an image of the learning subject portion in the learning image is associated with the correction coefficient; a trained model generation unit that generates a trained model based on the learning data, the trained model outputting a correction coefficient for correcting a color of an image when an image including a subject is input; A trained model generating device comprising:
2. the learning image is a first learning image, the correction coefficient is a first correction coefficient, the learning data is first learning data, The learning data generation unit includes: generating a corrected image by correcting a color of an image of the learning subject portion in the first learning image using the first correction coefficient; generating a plurality of second learning images by varying a color of the corrected image; calculating a second correction coefficient for correcting a color of the second learning image to a color of the corrected image for each of a plurality of second learning images, and generating second learning data that associates the second learning image with the second correction coefficient; The trained model generation unit generates the trained model based on the first training data and the second training data. The trained model generating device according to claim 1 .
3. the learning data generation unit generates a plurality of second learning images so that each pixel value falls within a distribution range of the plurality of first learning images; The trained model generating device according to claim 1 or 2.
4. an acquisition unit for acquiring an image including a target subject; A correction unit that inputs the image acquired by the acquisition unit into a trained model generated in advance, acquires a correction coefficient output from the trained model, and corrects a color of the image using the correction coefficient; Including, The trained model is a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input, and is trained in advance based on training data in which a training subject and the training correction coefficient are associated with each other, The correction coefficient for learning is a correction coefficient for correcting a color appearing on the color chart in a learning image in which a learning subject and a color chart are appearing, to a reference color serving as a standard. Information processing device.
5. Acquire learning images that include a learning subject and a color target; Calculating a correction coefficient for correcting the color of the learning image on the color chart to a reference color; generating learning data in which an image of the learning subject portion in the learning image is associated with the correction coefficient; generating a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input based on the training data; A method for generating trained models in which processing is performed by a computer.
6. Obtain an image of the target subject, The acquired image is input to a trained model generated in advance, thereby acquiring a correction coefficient output from the trained model, and correcting the color of the image using the correction coefficient. An information processing method in which a process is executed by a computer, comprising the steps of: The trained model is a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input, and is trained in advance based on training data in which a training subject and the training correction coefficient are associated with each other, The correction coefficient for learning is a correction coefficient for correcting a color appearing on the color chart in a learning image in which a learning subject and a color chart are appearing, to a reference color serving as a standard. Information processing methods.
7. Acquire learning images that include a learning subject and a color target; Calculating a correction coefficient for correcting the color of the learning image on the color chart to a reference color; generating learning data in which an image of the learning subject portion in the learning image is associated with the correction coefficient; generating a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input based on the training data; A trained model generation program for allowing a computer to execute processing.
8. Obtain an image of the target subject, The acquired image is input to a trained model generated in advance, thereby acquiring a correction coefficient output from the trained model, and correcting the color of the image using the correction coefficient. An information processing program for causing a computer to execute a process, The trained model is a trained model that outputs a correction coefficient for correcting a color of an image when an image including a subject is input, and is trained in advance based on training data in which a training subject and the training correction coefficient are associated with each other, The correction coefficient for learning is a correction coefficient for correcting a color appearing on the color chart in a learning image in which a learning subject and a color chart are appearing, to a reference color serving as a standard. Information processing program.
Citation Information
Patent Citations
Convolutional-neural-network-based color correction method of face color and tongue color images
CN107507250A
Color distortion correction method, color distortion correction device, mobile terminal, program, and storage medium
JP2004242099A
Method of quantifying color of object, signal processing device, and imaging system
JP2021103835A
Tongue color correction method based on deep convolutional neural network
CN115482160A
