Image processing method, image processing apparatus, image processing system, and program
The image processing method addresses accuracy and speed issues in leaf color indicator methods by incorporating ambient light correction, mask processing, and statistical analysis with a model database to determine substance concentration accurately and efficiently.
Patent Information
- Application Number
- JP2023068288
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-31
AI Technical Summary
Existing methods for obtaining leaf color indicators using remote sensing technology face challenges in achieving high accuracy due to varying ratios of reflected and transmitted light influenced by weather and sun position, and require time-consuming optimization calculations with uncertain results.
An image processing method that includes steps to acquire color data per pixel, perform ambient light correction, mask processing, histogram smoothing, and utilize a model database to determine leaf color correlation values.
Enables precise and rapid determination of substance concentration in subjects, such as chlorophyll in plant leaves, by correcting for environmental light and using statistical analysis of color data.
Smart Images

Figure 2024154477000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing method for acquiring information about the concentration of a substance contained in a subject from an image. [Background technology]
[0002] In recent years, methods for acquiring leaf color indexes using remote sensing technology have been proposed for the purpose of improving the efficiency and labor saving of agricultural work. Patent Document 1 discloses a method for acquiring a Soil & Plant Analyzer Development (SPAD) value from the results of spectroscopic measurement of light reflected by plants. Patent Document 2 discloses a method for acquiring a SPAD value using optimization calculations. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2002-168771 A [Patent Document 2] JP 2020-193856 A Summary of the Invention [Problem to be solved by the invention]
[0004] In Patent Document 1, it is assumed that the light that reaches the light receiving unit is only the light reflected by the plant, but since the leaves of the plant are semi-transparent objects, in reality, in addition to the light reflected by the leaves of the plant, the transmitted light that passes through the leaves of the plant also reaches the light receiving unit. The mixture ratio of the reflected light and the transmitted light changes depending on the weather (clear, cloudy, etc.) and the position of the sun (altitude and azimuth). Therefore, in the method of Patent Document 1, when the weather or the position of the sun changes, the mixture ratio of the reflected light and the transmitted light changes, making it difficult to obtain the concentration of a substance (leaf color value or SPAD value) with high accuracy.
[0005] In addition, the method of Patent Document 2 uses optimization calculations, which means it takes a long time to obtain the substance concentration from one image. Also, the content of the solution varies depending on the initial value settings used in the optimization calculations, and there is a possibility that a solution other than the expected solution will be adopted, so tuning of the initial value based on the actual measurement value is necessary.
[0006] An object of the present invention is to provide an image processing method capable of quickly and accurately obtaining the concentration of a substance contained in a subject from an image. [Means for solving the problem]
[0007] An image processing method as one aspect of the present invention is characterized by having a step of acquiring information regarding the number of color data for each pixel in an image including a subject, and a step of acquiring information regarding the concentration of a substance contained in the subject in accordance with the information regarding the number of color data. Effect of the Invention
[0008] According to the present invention, it is possible to provide an image processing method capable of obtaining the concentration of a substance contained in a subject from an image with high accuracy and high speed. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram of an image processing system according to a first embodiment. [Diagram 2] 1 is a diagram showing a state in which an object is captured under outdoor ambient light using the image processing system of the first embodiment. [Diagram 3] 4 is a flowchart showing a method of generating an input image used in the image processing method of the first embodiment. [Figure 4] 4 is a flowchart showing an image processing method according to the first embodiment. [Diagram 5] FIG. 11 is a diagram illustrating an example of a mask process according to the first embodiment. [Figure 6] FIG. 11 is a diagram illustrating an example of a histogram smoothing process according to the first embodiment. [Figure 7]FIG. 4 is a diagram showing an example of a database of models relating to the color of a subject in the first embodiment. [Figure 8] FIG. 13 is a diagram showing an example in which a smoothed histogram according to the first embodiment is shown together with a database of models relating to the colors of a subject. [Figure 9] FIG. 1 is a diagram showing an example of the distribution of leaf color correlation values in Example 1. [Figure 10] FIG. 13 is a diagram showing an example of change in distribution of leaf color correlation values over time in Example 1. [Figure 11] 10 is a flowchart showing an image processing method according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used to refer to the same components, and duplicated descriptions will be omitted. [Example 1] In this embodiment, an image processing method for acquiring numerical information (information on the concentration of a substance) correlated with the concentration of a substance contained in a subject from an image (spectral image) acquired by a camera (RGB camera) having an imaging unit will be described. The concentration of a substance contained in a subject is correlated with, for example, a leaf color value or a SPAD value. The substance is, for example, chlorophyll contained in the leaves of a plant. In the following description, the "numerical information correlated with the concentration of a substance contained in a subject" is also referred to as a "leaf color correlation value." In addition, in this embodiment, a case where the subject is a rice leaf will be described, but the present invention is not limited to this. For example, the subject may be a stalk, ear, flower, or fruit of rice. In addition, the subject may be a plant other than rice (for example, wheat).
[0011] 1 is a block diagram of an image processing system 100. The image processing system 100 has an imaging unit 101, an image processing unit (image processing device) 102, a control unit 103, a storage unit 104, a communication unit 105, a display unit 106, and an ambient light information acquisition unit 110. The imaging unit 101 includes an imaging optical system 101a and an imaging element 101b. The imaging element 101b photoelectrically converts an optical image (subject image) formed via the imaging optical system 101a, and outputs an image (image data) to the image processing unit 102.
[0012] The image processing system (imaging system) 100 may be provided inside the camera. Also, some functions such as the image processing unit 102 may be configured to be realized on a computer (user PC) away from the camera or on cloud computing. In this case, the camera has only some of the functions of the image processing system 100 including the imaging unit 101.
[0013] FIG. 2 is a diagram showing a state in which an image of a subject 140 is captured under outdoor ambient light using the image processing system 100. The ambient light information acquisition unit 110 includes an ambient light sensor 111 that acquires the illuminance of light incident on the subject 140 for each predetermined wavelength. The wavelength range that the ambient light sensor 111 can acquire is the wavelength range of visible light, specifically, a wavelength range of about 400 nm to 700 nm (wavelength range of blue light, green light, and red light). The ambient light sensor 111 may be, for example, a photoelectric conversion element such as a CCD or CMOS sensor on which red, green, and blue color filters are provided. The range indicated by the dotted line in FIG. 2 is the angle of view range 171 of the imaging unit 101.
[0014] A method for generating an input image used in the image processing method of this embodiment will be described below with reference to Fig. 3. Fig. 3 is a flow chart showing a method for generating an input image used in the image processing method of this embodiment, specifically, a flow for correcting the influence of ambient light from information of an image captured by the imaging unit 101. Ambient light refers to external light such as the sun. Since the color balance (or color temperature) of the light source of ambient light may change depending on the time of shooting and the weather, it is preferable to correct the influence of ambient light (correct the white balance) in order to obtain accurate color information of the subject 140.
[0015] In step S201, the imaging unit 101 captures an image of the subject 140 and obtains an RGB image in response to a signal from the control unit 103. The image processing unit 102 obtains the image captured by the imaging unit 101.
[0016] In step S202, the ambient light information acquisition unit 110 (ambient light sensor 111) acquires (detects) ambient light information (ambient light data) when an image is captured, in response to a signal from the control unit 103. In this embodiment, the ambient light information is information regarding the color balance (or color temperature) of light from a surrounding light source (mainly sunlight). The ambient light sensor 111 is calibrated in advance so as to have the same spectral sensitivity characteristics as the imaging unit 101.
[0017] The processes in steps S201 and S202 are carried out substantially simultaneously.
[0018] In step S210, the image processing unit 102 performs an environmental light correction process based on the image obtained in step S201 and the environmental light information obtained in step S202. The image that has been subjected to the environmental light correction process (white balance correction process) in this step becomes an input image used in the image processing method of this embodiment.
[0019] Hereinafter, an image processing method for acquiring a leaf color correlation value using an input image generated in the flow of Fig. 3 will be described with reference to Fig. 4. Fig. 4 is a flowchart showing the image processing method of this embodiment.
[0020] In step S301, the image processing unit 102 acquires an image generated in the flow of FIG. 3 (hereinafter, referred to as an input image).
[0021] In step S302, the image processing unit 102 extracts a specific region from the input image by performing mask processing. The mask processing is performed in order to process a specific region of the input image, rather than to process the entire input image in the subsequent processing. By performing such processing, the time required for this flow can be shortened, which is preferable. In addition, it is preferable because it is possible to eliminate unnecessary objects such as soil and obstacles that do not need to be processed, thereby improving the accuracy of obtaining the leaf color correlation value. In addition, the image processing unit 102 may perform mask processing to extract a specific color from the input image.
[0022] FIG. 5 is a diagram showing an example of mask processing. FIG. 5(A) is an input image of the subject 140. FIG. 5(B) is an image in which only the portion surrounded by the black frame in FIG. 5(A) is extracted. FIG. 5(C) is a mask image for extracting only the leaf region from FIG. 5(B). The image processing unit 102 performs processing to extract only the region shown in white in the mask image in FIG. 5(C) from the image in FIG. 5(B). Region extraction may be performed in multiple stages, or if the number of pixels is very large at the input image stage, the input image may be reduced, and then region extraction processing and mask processing may be performed. By performing mask processing that leaves only the originally necessary region in this way, it is possible to realize high speed and high accuracy, which is preferable.
[0023] In step S303, the image processing unit 102 functions as a first acquisition unit and acquires a histogram of color data for each pixel of the area extracted in step S302. The input image is a color image and has three channels, RGB, so if a histogram is formed as is, it will be three-dimensional. Since it is difficult to analyze if it is three-dimensional, it is preferable to convert the histogram to two dimensions and acquire a planar histogram consisting of bins based on the color data. Here, a "bin" is also called a section or class, and refers to a numerical range of one column (bar) of a histogram graph. The height direction of the histogram is a frequency indicating how many data are contained in the bin. For example, the image processing unit 102 may acquire a two-dimensional histogram in which the horizontal axis is B / G (the gradation value of the blue component relative to the gradation value of the green component) and the vertical axis is R / G (the gradation value of the red component relative to the gradation value of the green component) in which the R channel and the B channel are normalized by the G channel. This makes it possible to distinguish whether the green color of the leaves contains more red components or more blue components, which is preferable since it makes analysis easier.
[0024] In this embodiment, the horizontal axis of the two-dimensional histogram is B / G and the vertical axis is R / G, but the present invention is not limited to this. For example, if the imaging unit 101 acquires information up to the infrared (IR) region, the vertical axis may be IR / G, etc. Using the infrared region is preferable because it is useful for analyzing not only chlorophyll but also water content.
[0025] In this step, the image processing unit 102 acquires a histogram in this embodiment, but it is sufficient if it can acquire information regarding the number of color data, and for example, it may acquire table data that associates color data with the number of color data.
[0026] In step S304, the image processing unit 102 performs a smoothing process on the histogram acquired in step S303. Depending on the input image, the histogram acquired in step S303 may have multiple peaks or may be too flat to distinguish peaks. As described below, the leaf color correlation value is acquired using a representative value of the histogram, but the accuracy of the acquired leaf color correlation value in the above case is low. It is preferable to perform the smoothing process in this step because it is possible to suppress a decrease in the accuracy of acquiring the leaf color correlation value. Specifically, the histogram can be smoothed by applying a Gaussian filter or a median filter with a predetermined coefficient, but the present invention is not limited to this.
[0027] In step S305, the image processing unit 102 acquires a representative value from the histogram smoothed in step S304. In order to suppress the influence of outliers, it is preferable that the image processing unit 102 acquires, as the representative value, the value having the highest frequency (frequency) in the histogram (mode) or the coordinate value that is the median of the frequency distribution of the histogram.
[0028] FIG. 6 is a diagram showing an example of a histogram smoothing process. FIG. 6(A) shows a two-dimensional histogram regarding the frequency of RGB values of each pixel in an input image after a mask process has been performed. In FIG. 6(A), the horizontal axis is B / G, and the vertical axis is R / G. FIG. 6(B) shows the result of a smoothing process performed by applying a median filter to the two-dimensional histogram of FIG. 6(A). In FIG. 6(A) and FIG. 6(B), the brighter the color (color closer to white), the higher the frequency. FIG. 6(C) shows the two-dimensional histogram of FIG. 6(A) projected onto the B / G axis (horizontal axis). FIG. 6(D) shows the two-dimensional histogram of FIG. 6(B) projected onto the B / G axis (horizontal axis). In FIG. 6(C) and FIG. 6(D), the vertical axis (height direction) shows the frequency.
[0029] The circle in Fig. 6(B) indicates the coordinates of the most frequent value. In Fig. 6(B), there are multiple frequent values. The black circle indicates the coordinates of the median value. The triangle indicates the coordinates obtained by averaging the coordinates (B / G, R / G) of the most frequent value. The image processing unit 102 may acquire, as the representative value of the histogram, the coordinates of the median value indicated by the black circle, or the coordinates obtained by averaging the coordinates of the most frequent value indicated by the triangle.
[0030] In step S306, the image processing unit 102 functions as a second acquisition unit and acquires a leaf color correlation value for the input image according to the acquired representative value of the histogram. Note that the image processing unit 102 also uses a database of models (information) related to the color of the subject (hereinafter, model database) because the leaf color correlation value cannot be acquired from the representative value of the histogram alone. Here, "color" refers to "the color of the leaves of the plant."
[0031] Fig. 7 is a diagram showing an example of the model database. As shown in Fig. 7, the model database is made up of a plurality of functions (function groups) each determined based on the SPAD values obtained by measuring actual rice leaves with a leaf color meter (SPAD meter) and the RGB values obtained when the measured leaves are photographed by the imaging unit 101. For ease of viewing, Fig. 7 shows functions corresponding to SPAD values of 10, 20, 30, 40, 50, and 60. However, in order to improve the accuracy of acquiring the leaf color correlation value, the number of functions may be increased in increments of 1.0 or 0.1, for example.
[0032] The model database does not necessarily have to be extracted from the exact same object (plant leaves) as the object 140. Within the same plant, different varieties may be used as long as the growth characteristics of the leaves do not differ significantly.
[0033] When the model database is expressed on a plane with the horizontal axis being B / G, the vertical axis being R / G, the positive direction of the horizontal axis being the right direction, and the positive direction of the vertical axis being the upward direction, it includes a function having an upward convex shape in the evaluation area used when acquiring the leaf color correlation value. Specifically, a function having an upward convex shape is a function in which a line segment connecting two points on the graph is always on the lower side of the graph. The shape of the function is very important because it represents the state of the leaves, but the function itself is not limited. For example, a polynomial, logarithm, exponential function, or a combination of these may be used based on actual measured values such as SPAD values. Note that the function does not need to be a function that is differentiable in all numerical ranges (an upward convex concave function), and may be a function that connects straight lines with different slopes and intercepts. The evaluation area changes depending on the type of subject, specifically the original leaf color depth of the plant, and for example, in the case of a general variety of rice, the horizontal axis is in the range of 0.4 to 1.0 and the vertical axis is in the range of 0.7 to 1.3. Outside the evaluation range, the shape of the function can be any shape.
[0034] Fig. 8 is a diagram showing an example in which a smoothed histogram and a model database relating to color are shown together. A method for acquiring a leaf color correlation value in this embodiment will be described with reference to Fig. 8(A). The image processing unit 102 acquires the SPAD value of the function that is closest (has the smallest distance) to the coordinates of the most frequent value or median value of the histogram among multiple functions as the leaf color correlation value. In Fig. 8(A), the function with a SPAD value of 35.5 (not shown) is closest to the coordinates of the most frequent value, so the image processing unit 102 determines the leaf color correlation value to be 35.5.
[0035] Also, the model database may be a lattice-shaped data table in the evaluation region, instead of a set of functions. Specifically, it may be a data table divided into units of a predetermined size in the same dimension as the above-mentioned histogram. For example, as shown in FIG. 8B, the data table is configured in a range where B / G is 0.4 to 1.0 and R / G is 0.7 to 1.3, with a pitch of 0.01. The evaluation region may be changed depending on the type of subject. Here, each is data determined based on the SPAD value obtained by measuring an actual rice leaf with a leaf color meter (SPAD meter) and the RGB value obtained when the measured leaf is photographed by the imaging unit 101. A specific SPAD value is assigned to each coordinate in the lattice, and the SPAD value corresponding to the coordinate closest to the coordinate with the most frequent value may be acquired as the leaf color correlation value.
[0036] As described above, according to the configuration of this embodiment, it is possible to acquire a leaf color correlation value, and it is also possible to display the distribution of the leaf color correlation value, which indicates the range over which the leaf color correlation value is distributed in the input image. By displaying the distribution of the leaf color correlation value, it is possible to evaluate the reliability of the accuracy of the input image, the growth variation of the actual plant, and the like, which is preferable.
[0037] Hereinafter, an example of a method for indicating the existence range of the leaf color correlation value (distribution of the leaf color correlation value corresponding to the frequency that is equal to or greater than a predetermined ratio with respect to the frequency of the representative value) will be described. FIG. 9 is a diagram showing an example of the distribution of the leaf color correlation value. In FIG. 9, in addition to the histogram and the functions of the model database, values on the histogram whose frequency is 0.85 or more when the frequency of the most frequent value of the histogram is set to 1 are indicated by ●. Note that, although only functions in increments of 10 are shown in FIG. 9, it is assumed that functions in increments of 0.1 (not shown) are also included in practice. The minimum and maximum values of the SPAD value of the function closest to the value on each histogram are acquired as the minimum and maximum values of the leaf color correlation value. Specifically, the minimum value is 30.7, and the maximum value is 38.3. As described above, by acquiring the minimum and maximum values of the leaf color correlation value, it is possible to indicate the leaf color correlation value in the input image not only as one representative value, but also as a range from the minimum value to the maximum value, which is preferable.
[0038] Fig. 10 is a diagram showing an example of the change in distribution of the leaf color correlation value over time. In Fig. 10, the horizontal axis represents the date of the cultivation season, and the vertical axis represents the leaf color correlation value. As shown in Fig. 10, the range from the minimum value to the maximum value of the leaf color correlation value is not the same throughout the cultivation season, but varies. Obtaining such a variation in width is preferable because, for example, a period with a wide width can be inferred to indicate uneven growth of crops or low accuracy of the input image due to external factors such as weather.
[0039] In this embodiment, rice leaves have been described as an example of the subject 140, but ears of rice may also be used. The image processing unit 102 acquires a histogram of color data for each pixel of the ear region extracted from an input image in which ears of rice are shown in a paddy field, and acquires numerical information correlated with the concentration of a substance contained in the ear of rice using the acquired histogram and a model database related to color. The numerical information correlated with the concentration of a substance contained in the ear of rice is the chlorophyll concentration of the ear of rice, etc. The image processing unit 102 can also acquire numerical information correlated with the amount of moisture. The model database is a database that collects how the color of the ear of rice changes from green to yellow or brown, and includes information such as the correlation value between color and moisture amount and the appropriate time for harvesting when the ear of rice turns to a certain color.
[0040] As described above, according to the configuration of this embodiment, it is possible to obtain the concentration of a substance contained in a subject from an image with high accuracy and high speed. [Example 2] In Example 1, the leaf color correlation value is obtained based on the representative value of the histogram, but in this example, the leaf color correlation value is obtained based on a histogram of the leaf color correlation values corresponding to the coordinates where the non-zero bins of the histogram are located.
[0041] The basic configuration of the image processing system of this embodiment is similar to that of the image processing system of embodiment 1. In this embodiment, only the configuration different from embodiment 1 will be described, and a description of the similar configuration will be omitted.
[0042] Hereinafter, an image processing method for acquiring a leaf color correlation value using an input image generated in the flow of Fig. 3 will be described with reference to Fig. 11. Fig. 11 is a flowchart showing the image processing method of this embodiment.
[0043] The processes in steps S401 to S404 are similar to those in steps S301 to S304 in FIG. 4, respectively, and therefore will not be described.
[0044] In step S405, the image processing unit 102 acquires a plurality of leaf color correlation values based on the histogram smoothed in step S304. The image processing unit 102 acquires the leaf color correlation values using the model database as described in the first embodiment. Here, leaf color correlation values are not acquired for all data points used in acquiring the histogram, and for data included in the same bin, one is used to acquire the leaf color correlation value and the other is used to count the frequency. Note that when a bin spans a plurality of leaf color correlation values, the leaf color correlation value corresponding to the bin may be expressed as an average value of the plurality of leaf color correlation values, or the like.
[0045] In step S406, the image processing unit 102 acquires a leaf color correlation value according to the histogram of the leaf color correlation value acquired in step S405. The acquisition method may be the same as the method described in the first embodiment. It is sufficient to acquire a leaf color correlation value corresponding to a bin by using the mode or median of the histogram.
[0046] As described above, according to the configuration of this embodiment, it is possible to obtain the concentration of a substance contained in a subject from an image with high accuracy and high speed. [Other Examples] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-mentioned embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0047] The disclosure of this embodiment includes the following configurations and methods. (Configuration 1) obtaining information regarding a number of color data for each pixel in an image including an object; and acquiring information regarding a concentration of a substance contained in the subject in accordance with the information regarding the number of color data. (Configuration 2) 2. The image processing method according to configuration 1, wherein information regarding the concentration of a substance contained in the subject is obtained using information regarding the number of color data and a database regarding color data of the subject. (Configuration 3) The image processing method according to configuration 2, characterized in that the database includes a function having an upward convex shape when represented on a plane with the horizontal axis representing the blue component gradation value relative to the green component gradation value, the vertical axis representing the red component gradation value relative to the green component gradation value, and the positive direction of the horizontal axis representing the rightward direction and the positive direction of the vertical axis representing the upward direction. (Configuration 4) 4. The image processing method according to claim 2 or 3, wherein the database is a database relating to color data of plants. (Configuration 5) 5. The image processing method according to any one of configurations 2 to 4, wherein the database is a database relating to color data of plant leaves. (Configuration 6) 6. The image processing method according to any one of configurations 1 to 5, wherein the information regarding the number of color data items is a histogram regarding the color data items. (Configuration 7) 7. The image processing method according to claim 6, wherein the histogram is a planar histogram consisting of bins based on the color data. (Configuration 8) The image processing method according to configuration 6 or 7, wherein the histogram is a planar histogram having a first axis representing the gradation value of the red component relative to the gradation value of the green component and a second axis representing the gradation value of the blue component relative to the gradation value of the green component. (Configuration 9) information regarding the concentration of a substance contained in the subject is obtained using information regarding the number of pieces of color data and a database regarding the color data; 7. The image processing method according to configuration 6, wherein the database is a data table divided into units of a predetermined size in the same dimension as the histogram. (Configuration 10) 10. The image processing method according to any one of configurations 6 to 9, wherein information on the concentration of a substance contained in the subject is acquired according to a representative value of the histogram. (Configuration 11) 11. The image processing method according to configuration 10, wherein the representative value of the histogram is a most frequent value of the histogram. (Configuration 12) 11. The image processing method according to configuration 10, wherein the representative value of the histogram is a median value of the histogram. (Configuration 13) The image processing method according to configuration 10, characterized in that information regarding the concentration of a substance contained in the subject is acquired according to a value corresponding to a frequency that is equal to or greater than a predetermined ratio with respect to a frequency of the representative value. (Configuration 14) The method further comprises the step of performing a smoothing process on the histogram, The image processing method according to any one of configurations 6 to 13, characterized in that information regarding the concentration of a substance contained in the subject is obtained according to the histogram after the smoothing process has been performed. (Configuration 15) The image processing method according to any one of configurations 1 to 14, wherein the image is an image of a plant captured using a camera having at least three channels of RGB. (Configuration 16) The method further comprises the step of extracting a specific region from the image; 16. The image processing method according to any one of configurations 1 to 15, wherein the information regarding the number of color data items is obtained for each pixel in the specific region. (Configuration 17) Extracting specific color components from the image; 17. The image processing method according to any one of configurations 1 to 16, wherein the information regarding the number of color data is based on the specific color component for each pixel. (Configuration 18) a first acquisition unit that acquires information regarding the number of color data items for each pixel in an image including a subject; and a second acquisition unit that acquires information regarding a concentration of a substance contained in the subject in accordance with information regarding the number of color data. (Configuration 19) An imaging unit that captures an image of a subject; 19. An image processing system comprising the image processing device according to configuration 18. (Configuration 20) A program for causing a computer to execute the image processing method according to any one of configurations 1 to 17.
[0048] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of the gist of the present invention. [Explanation of symbols]
[0049] 100 Image Processing System 101 Imaging unit 102 Image processing section
Claims
1. obtaining information regarding a number of color data for each pixel in an image including an object; and acquiring information regarding a concentration of a substance contained in the subject in accordance with the information regarding the number of color data.
2. 2. The image processing method according to claim 1, wherein the information on the concentration of a substance contained in the subject is obtained using information on the number of color data and a database on the color data of the subject.
3. 3. The image processing method according to claim 2, wherein the database includes a function having an upward convex shape when represented on a plane in which the horizontal axis represents the blue component gradation value relative to the green component gradation value, the vertical axis represents the red component gradation value relative to the green component gradation value, and the positive direction of the horizontal axis is the rightward direction and the positive direction of the vertical axis is the upward direction.
4. 3. The image processing method according to claim 2, wherein the database is a database relating to color data of plants.
5. 3. The image processing method according to claim 2, wherein the database is a database relating to color data of leaves of plants.
6. 3. The image processing method according to claim 1, wherein the information regarding the number of color data items is a histogram regarding the color data items.
7. 7. The method of claim 6, wherein the histogram is a planar histogram of bins based on the color data.
8. 7. The image processing method according to claim 6, wherein the histogram is a planar histogram having a first axis representing the gradation value of the red component relative to the gradation value of the green component and a second axis representing the gradation value of the blue component relative to the gradation value of the green component.
9. information regarding the concentration of a substance contained in the subject is obtained using information regarding the number of pieces of color data and a database regarding the color data; 7. The image processing method according to claim 6, wherein the database is a data table divided into units of a predetermined size in the same dimension as the histogram.
10. 7. The image processing method according to claim 6, wherein the information on the concentration of a substance contained in the subject is acquired according to a representative value of the histogram.
11. 11. The image processing method according to claim 10, wherein the representative value of the histogram is a mode value of the histogram.
12. 11. The image processing method according to claim 10, wherein the representative value of the histogram is a median value of the histogram.
13. 11. The image processing method according to claim 10, wherein the information on the concentration of the substance contained in the subject is acquired according to a value corresponding to a frequency that is equal to or greater than a predetermined rate with respect to a frequency of the representative value.
14. The method further comprises the step of performing a smoothing process on the histogram, 7. The image processing method according to claim 6, wherein the information regarding the concentration of a substance contained in the subject is acquired according to the histogram after the smoothing process has been performed.
15. 3. The image processing method according to claim 1, wherein the image is an image of a plant captured using a camera having at least three channels of RGB.
16. The method further comprises the step of extracting a specific region from the image; 3. The image processing method according to claim 1, wherein the information regarding the number of pieces of color data is obtained for each pixel in the specific region.
17. Extracting specific color components from the image; 3. The image processing method according to claim 1, wherein the information regarding the number of pieces of color data is based on the specific color component for each pixel.
18. a first acquisition unit that acquires information regarding a number of pieces of color data for each pixel in an image including a subject; a second acquisition unit that acquires information regarding a concentration of a substance contained in the subject in accordance with information regarding the number of color data.
19. An imaging unit that captures an image of a subject; 20. An image processing system comprising the image processing device according to claim 18.
20. 3. A program for causing a computer to execute the image processing method according to claim 1.
Citation Information
Patent Citations
Growth degree measuring device of plant
JP2002168771A
Image processing method, image processing device, imaging system, and program
JP2020193856A
