Hair diameter measurement program, hair diameter measurement device, and hair diameter measurement method
A computer-based program quantitatively measures hair diameter by analyzing brightness changes in multiple directions, overcoming subjective evaluation methods and enabling accurate, efficient hair thickness assessment.
Patent Information
- Application Number
- JP2023037438
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-24
AI Technical Summary
Current hair evaluation methods are subjective and lack quantitative assessment, necessitating a method for precise and objective measurement of hair diameter.
A program that utilizes a computer to detect brightness changes in images of hair taken in multiple directions, calculating the hair diameter by connecting detected points and lines, and outputting the results for evaluation.
Enables precise, rapid, and cost-effective quantitative evaluation of hair diameter, accommodating various hair orientations and separating overlapping hairs.
Smart Images

Figure 2024128454000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a hair diameter measurement program, a hair diameter measurement device, and a hair diameter measurement method. [Background technology]
[0002] Conventionally, it is known to evaluate hair based on the thickness of the hair or the like (Patent Document 1). For example, in medical institutions, evaluation of the hair of patients with alopecia is performed. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 4640619 Summary of the Invention [Problem to be solved by the invention]
[0004] However, currently, qualitative evaluations are conducted based on the doctor's subjective judgment, and a method for quantitatively evaluating hair is demanded by doctors, patients, and others.
[0005] Therefore, an object of the present invention is to quantitatively evaluate hair. [Means for solving the problem]
[0006] One embodiment of the present invention is a program that causes a computer to execute the steps of: detecting a plurality of first points where brightness changes by scanning an image of a hair in a first direction, and detecting a plurality of second points where brightness changes by scanning the image in a second direction different from the first direction; detecting a direction in which the brightness change at the first points and the second points is maximum; and outputting the length from either the first point or the second point to either the first point or the second point in the direction in which the brightness change is maximum as the diameter of the hair. Effect of the Invention
[0007] According to the present invention, hair can be quantitatively evaluated. [Brief description of the drawings]
[0008] [Figure 1] 1 is an example of an overall configuration according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a functional block diagram of a terminal and a server according to an embodiment of the present invention. [Diagram 3] 11A and 11B are diagrams for explaining detection of a point where luminance changes according to an embodiment of the present invention. [Figure 4] 11A and 11B are diagrams for explaining detection of a point in a direction in which luminance change is maximum from a point according to an embodiment of the present invention. [Diagram 5] FIG. 2 is a diagram for explaining the diameter of bristles according to one embodiment of the present invention. [Figure 6] FIG. 13 is a diagram for explaining the connection of bristle diameters in one embodiment of the present invention. [Figure 7] FIG. 13 is a diagram for explaining line connections according to an embodiment of the present invention. [Figure 8] 1 is a flowchart of an overall process according to an embodiment of the present invention. [Figure 9] 4 is a flowchart of a process for measuring hair diameter according to an embodiment of the present invention. [Figure 10] FIG. 13 is a diagram showing the results of comparing hair diameter measurement of the present invention with manual measurement. [Figure 11] FIG. 2 is a hardware configuration diagram of a server and a terminal according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0010] <Terminology explanation> In this specification, "hair" may be any hair. For example, "hair" is hair.
[0011] <Overall configuration example> 1 shows an example of the overall configuration according to one embodiment of the present invention. For example, the measurement of hair diameter according to the present invention is used in phototrichograms.
[0012] [Configuration example 1] The hair diameter measurement system 1 includes a terminal 11 and a photographing device 20. In the configuration example 1, the terminal 11 functions as a hair diameter measurement device. Each of them will be described below.
[0013] <<Device>> The terminal 11 measures the diameter (width) of a hair, etc., of the subject 30, using an image captured by the photographing device 20. For example, the terminal 11 is a computer such as a personal computer, a tablet terminal, or a smartphone.
[0014] <<Photographic equipment>> The image capturing device 20 is a digital camera that captures an image of the hair of the subject 30. For example, the image capturing device 20 captures a magnified image of the head of the subject 30, including the hair and scalp.
[0015] [Configuration example 2] The hair diameter measurement system 1 includes a terminal 11, a server 12, and a photographing device 20. The terminal 11 and the server 12 can transmit and receive data to and from each other via any network. In the configuration example 2, the server 12 functions as a hair diameter measurement device. Each of them will be described below.
[0016] <<Device>> The terminal 11 acquires the image captured by the photographing device 20 and transmits the image to the server 12. The terminal 11 may receive and display the results of the hair evaluation by the server 12. For example, the terminal 11 is a computer such as a personal computer, a tablet terminal, or a smartphone.
[0017] <<Server>> The server 12 measures the diameter (width) of hair, etc., of the subject 30, using an image captured by the photographing device 20. For example, the server 12 is a server made up of one or more computers.
[0018] <<Photographic equipment>> The photographing device 20 is the same as in the first configuration example, and therefore a description thereof will be omitted.
[0019] In addition, in FIG. 1, the photographing device 20 is described as a device separate from the terminal 11, but the terminal 11 and the photographing device 20 may be realized as a single device.
[0020] <Function block> FIG. 2 is a functional block diagram of a terminal 11 (when the terminal 11 in [Configuration Example 1] of FIG. 1 is a hair diameter measuring device) and a server 12 (when the server 12 in [Configuration Example 2] of FIG. 1 is a hair diameter measuring device) according to an embodiment of the present invention. The terminal 11 and the server 12 can include an image acquisition unit 110, a measurement unit 120 (note that the measurement unit 120 includes a brightness change point detection unit 121, a direction detection unit 122, a diameter connection unit 123, a line connection unit 124, and a diameter calculation unit 125), and a diameter output unit 130. The terminal 11 and the server 12 can function as the image acquisition unit 110, the measurement unit 120 (note that the measurement unit 120 includes a brightness change point detection unit 121, a direction detection unit 122, a diameter connection unit 123, a line connection unit 124, and a diameter calculation unit 125), and the diameter output unit 130 by executing a program.
[0021] The image acquiring unit 110 acquires an image of the hair of the subject 30 captured by the photographing device 20. For example, the image acquiring unit 110 acquires an enlarged image of the head of the subject 30, including the hair and scalp.
[0022] The measuring unit 120 measures the diameter of the hair by using an image of the hair of the subject 30. This will be described in detail below.
[0023] The luminance change point detection unit 121 detects a plurality of first points (pixels) where the luminance changes on the image by scanning the image of the hair of the subject 30 in a first direction. For example, when the difference between the luminance of the first point and the luminance of a point adjacent to the first point is equal to or greater than a threshold, the luminance change point detection unit 121 detects the first point as a point where the luminance changes. Note that since the accuracy of measuring the hair diameter changes depending on the value of the threshold, it is preferable to set a more appropriate threshold.
[0024] The luminance change point detection unit 121 detects a plurality of second points (pixels) where the luminance changes on the image by scanning the image of the subject 30's hair in a second direction (note that the second direction is a direction different from the first direction. For example, the first direction and the second direction are perpendicular to each other) of the image. For example, when the difference between the luminance of the second point and the luminance of a point adjacent to the second point is equal to or greater than a threshold, the luminance change point detection unit 121 detects the second point as a point where the luminance changes. Note that since the accuracy of measuring the hair diameter changes depending on the value of the threshold, it is preferable to set a more appropriate threshold.
[0025] The direction detection section 122 detects the direction in which the luminance change is maximum at the first points and the second points (that is, all the first points and all the second points detected by the luminance change point detection section 121). For example, the direction detection unit 122 detects the direction in which the luminance change at the first point and the second point is maximum using an edge detection technique.
[0026] The diameter connector 123 connects the diameter of a bristle to another diameter of the bristle (e.g., a diameter and another diameter in the same direction). For example, the diameter connector 123 connects the diameter of a bristle to another diameter of the bristle when the difference between the diameter of the bristle and the other diameter of the bristle is smaller than a threshold value.
[0027] The line connection unit 124 connects a line in which the diameters of multiple bristles are connected to another line in which the diameters of multiple bristles are connected (for example, a line in the same direction and another line). For example, when the difference between the thickness of the line in which the diameters of multiple bristles are connected (for example, a representative value such as the average value of the diameters included in the line) and the thickness of another line in which the diameters of multiple bristles are connected (for example, a representative value such as the average value of the diameters included in the other line) is smaller than a threshold value, the line connection unit 124 connects the line in which the diameters of multiple bristles are connected to the other line in which the diameters of multiple bristles are connected.
[0028] The diameter calculation unit 125 calculates the diameter of the hair.
[0029] The diameter calculation unit 125 can determine the length (e.g., the number of pixels) from any of the first points and second points (i.e., all of the first points and all of the second points detected by the brightness change point detection unit 121) to any point in the direction in which the brightness change detected by the direction detection unit 122 is greatest (i.e., any of all of the first points and all of the second points detected by the brightness change point detection unit 121) as the diameter of the hair.
[0030] The diameter calculation unit 125 can determine a representative value, such as an average value of the diameters of the bristles included in the lines connected by the line connection unit 124, as the diameter of the bristles.
[0031] The diameter output unit 130 outputs the hair diameter measured by the measurement unit 120. The hair diameter output by the diameter output unit 130 is used to diagnose the degree of hair loss, evaluate hair growth over time, and the like.
[0032] For example, the diameter output unit 130 may indicate the hair diameters, the lines connecting the diameters, and the positions of the hairs connected by the lines on an image of the hair of the subject 30, and output them to the terminal 11, etc. The diameter output unit 130 may output information on the hair diameters, the lines connecting the diameters, and the coordinates (X coordinate, Y coordinate) on the image of the hairs connected by the lines to the terminal 11, etc.
[0033] Each process will be described in detail below with reference to FIGS.
[0034] FIG. 3 is a diagram for explaining detection of a point where the luminance changes according to an embodiment of the present invention.
[0035] The luminance change point detection unit 121 detects a plurality of first points where the luminance changes by scanning an image of the subject 30's hair in a first direction, and detects a plurality of second points where the luminance changes by scanning in a second direction. For example, the first point and the second point are the end points of the hair. In this way, the boundary between the hair and the scalp is detected based on the difference in luminance.
[0036] FIG. 4 is a diagram for explaining detection of a point in a direction in which the luminance change is maximum from a point according to an embodiment of the present invention.
[0037] First, the direction detector 122 detects the direction in which the luminance change is maximum at all the first points and all the second points. That is, the direction in which the luminance change is maximum at the end point of the hair is detected. In this way, the direction perpendicular to the hair flow direction is detected at the boundary between the hair and the scalp.
[0038] Next, the diameter calculation unit 125 detects either the first point or the second point (note: the first point in FIG. 4) that is in the direction in which the luminance change is maximum at the first point or the second point (note: the second point in FIG. 4). In this way, the boundaries at both ends of the hair (boundaries between the hair and the scalp) are detected.
[0039] FIG. 5 is a diagram for explaining the diameter of bristles according to one embodiment of the present invention.
[0040] The diameter calculation unit 125 determines the length (number of pixels) from either the first point or the second point (note: the first point in FIG. 5) to either the first point or the second point (note: the second point in FIG. 5) in the direction in which the luminance change at that point is maximum as the hair diameter. Note: This is not limited to from the first point to the second point as in the example of FIG. 5, but may be from the first point to another first point, from the second point to another second point, or from the second point to the first point. In this way, the hair diameter required for evaluating the thickness (width) of the hair is measured.
[0041] FIG. 6 is a diagram for explaining the connection of bristle diameters according to one embodiment of the present invention.
[0042] The diameter connector 123 connects (connects) a diameter of the bristles (eg, the first diameter in FIG. 6) to another diameter of the bristles (eg, the second diameter in FIG. 6).
[0043] FIG. 7 is a diagram for explaining line connections according to one embodiment of the present invention.
[0044] The line connector 124 connects a line in which bristle diameters are connected (for example, the first line in FIG. 7) to another line in which bristle diameters are connected (for example, the second line in FIG. 7).
[0045] <Method> [Overall processing] FIG. 8 is a flowchart of an overall process according to one embodiment of the present invention.
[0046] In step 1 (S1), the image acquisition unit 110 acquires an image captured by the photographing device 20, in which the hair of the subject 30 is captured.
[0047] In step 2 (S2), the measurement unit 120 measures the diameter of the hair using the image acquired in S1. Details will be described with reference to FIG.
[0048] In step 3 (S3), the diameter output unit 130 outputs the diameter of the hair measured in S2.
[0049] [Hair diameter measurement] FIG. 9 is a flowchart of a process for measuring hair diameter according to an embodiment of the present invention.
[0050] In step 11 (S11), the brightness change point detection unit 121 detects a plurality of first points where the brightness changes by scanning in a first direction an image of the hair of the subject 30. For example, when the difference between the brightness of a first point and the brightness of a point adjacent to the first point is equal to or greater than a threshold, the brightness change point detection unit 121 detects the first point as a point where the brightness changes.
[0051] In step 12 (S12), the brightness change point detection unit 121 detects a plurality of second points where the brightness changes by scanning the image in a second direction (note that the second direction is a direction different from the first direction. For example, the first direction and the second direction are perpendicular to each other). For example, when the difference between the brightness of a second point and the brightness of a point adjacent to the second point is equal to or greater than a threshold value, the brightness change point detection unit 121 detects the second point as a point where the brightness changes.
[0052] In step 13 (S13), the direction detection unit 122 detects the direction in which the luminance change is maximum at the first points and the second points (that is, all the first points and all the second points detected in S11 and S12).
[0053] In step 14 (S14), the diameter calculation unit 125 determines the length from any of the first points and second points (i.e., all of the first points and all of the second points detected in S11 and S12) to any point in the direction of the maximum brightness change detected in S13 (i.e., any point among all of the first points and all of the second points detected in S11 and S12) to be the diameter of the hair.
[0054] In step 15 (S15), the diameter connection unit 123 connects the diameter of the hair to another diameter of the hair. For example, when the difference between the diameter of the hair and another diameter of the hair is smaller than a threshold value, the diameter connection unit 123 connects the diameter of the hair to the another diameter of the hair.
[0055] In step 16 (S16), the line connection unit 124 connects the line connecting the diameters of multiple bristles to another line connecting the diameters of multiple bristles. For example, when the difference between the thickness of the line connecting the diameters of multiple bristles and the thickness of the other line connecting the diameters of multiple bristles is smaller than a threshold value, the line connection unit 124 connects the line connecting the diameters of multiple bristles to the other line connecting the diameters of multiple bristles.
[0056] In step 17 (S17), the diameter calculation unit 125 calculates the diameter of the hair. For example, the diameter calculation unit 125 can determine a representative value, such as an average value of the diameters of the hairs included in the lines connected in S16, as the diameter of the hair.
[0057] <Measurement accuracy> Fig. 10 is a diagram showing the results of comparing the hair diameter measurement of the present invention with manual measurement (results of measuring the diameter of the same hair). The vertical axis (y-axis) of Fig. 10 shows the hair diameter (um) measured by the program of one embodiment of the present invention, and the horizontal axis (x-axis) shows the hair diameter (um) measured by manual measurement (measurement done by hand). Both are represented by y = 0.9726x (x = hair diameter measured by manual measurement, y = hair diameter measured by the program of one embodiment of the present invention), and the coefficient of determination R 2 =0.9976. This result shows that the hair diameter measurement of the present invention can calculate a value close to the actual hair diameter.
[0058] <Effects> Thus, in one embodiment of the present invention, the diameter of a hair can be measured using an image of the hair, making it possible to evaluate the thickness (width) of a hair with high accuracy, quickly and at low cost.
[0059] In one embodiment of the present invention, the image of the hair is scanned in two directions, so that it is possible to deal with all hair orientations. Furthermore, by connecting the hair diameters and lines, abrupt changes in hair thickness are not allowed, so it is possible to separate and evaluate overlapping hairs. Therefore, even if there are multiple hairs in a pore and the orientation of these hairs is not constant, it is possible to evaluate the thickness (width) of the hair.
[0060] <Hardware configuration> 11 is a hardware configuration diagram of the terminal 11 and the server 12 according to an embodiment of the present invention. The terminal 11 and the server 12 can include a control unit 1001, a main memory unit 1002, an auxiliary memory unit 1003, an input unit 1004, an output unit 1005, and an interface unit 1006. Each of these will be described below.
[0061] The control unit 1001 is a processor (for example, a central processing unit (CPU), a graphics processing unit (GPU), etc.) that executes various programs installed in the auxiliary storage unit 1003.
[0062] The main memory unit 1002 includes a non-volatile memory (Read Only Memory (ROM)) and a volatile memory (Random Access Memory (RAM)). The ROM stores various programs, data, etc. required for the control unit 1001 to execute various programs installed in the auxiliary memory unit 1003. The RAM provides a working area into which the various programs installed in the auxiliary memory unit 1003 are expanded when the control unit 1001 executes them.
[0063] The auxiliary storage unit 1003 is an auxiliary storage device that stores various programs and information used when the various programs are executed.
[0064] The input unit 1004 is an input device through which the operator of the terminal 11 and the server 12 inputs various instructions to the terminal 11 and the server 12 .
[0065] The output unit 1005 is an output device that outputs the internal states of the terminal 11 and the server 12, and the like.
[0066] The interface unit 1006 is a communication device for connecting to a network and communicating with other devices.
[0067] Although the embodiments of the present invention have been described in detail above, the present invention is not limited to the specific embodiments described above, and various modifications and variations are possible within the scope of the gist of the present invention as defined in the claims. [Explanation of symbols]
[0068] 1 Hair diameter measurement system 11 Terminal 12 Server 20 Imaging Equipment 30 Target Audience 110 Image acquisition unit 120 Measurement section 121 Brightness change point detection unit 122 Direction detector 123 Diameter connection 124 Line connection part 125 Diameter calculation section 130 diameter output section 1001 Control section 1002 Main memory 1003 Auxiliary storage unit 1004 Input section 1005 Output section 1006 Interface section
Claims
1. On the computer, a step of detecting a plurality of first points whose luminance changes by scanning an image of the hair in a first direction, and detecting a plurality of second points whose luminance changes by scanning the image in a second direction different from the first direction; detecting a direction in which a change in luminance at the first point and the second point is maximum; a step of outputting a length from either the first point or the second point to either the first point or the second point in a direction in which the luminance change is maximum as a diameter of the hair; A program for executing the above.
2. The computer-readable storage medium according to claim 1 , wherein the first direction and the second direction are orthogonal to each other.
3. The computer includes:
2. The program of claim 1, for executing a step of linking said bristle diameter with another bristle diameter.
4. The computer includes: The program according to claim 1 , for executing a procedure for linking the diameter of the hair to the other diameter of the hair when a difference between the diameter of the hair and the other diameter of the hair is smaller than a threshold value.
5. The computer includes:
2. The program according to claim 1, for executing a procedure for connecting a line connecting a plurality of said bristle diameters with another line connecting a plurality of said bristle diameters.
6. The computer includes: The program described in claim 1, for executing a procedure for connecting a line connecting the diameters of a plurality of the hairs to another line connecting the diameters of a plurality of the hairs when the difference between the thickness of the line connecting the diameters of a plurality of the hairs and the thickness of another line connecting the diameters of a plurality of the hairs is smaller than a threshold value.
7. The computer includes: The program according to claim 1, for executing a procedure for detecting the first point or the second point as a point where brightness changes when a difference between the brightness of the first point or the second point and the brightness of a point adjacent to the first point or the second point is equal to or greater than a threshold.
8. a brightness change point detection unit that detects a plurality of first points at which brightness changes by scanning an image of a hair in a first direction, and detects a plurality of second points at which brightness changes by scanning the image in a second direction different from the first direction; a direction detection unit that detects a direction in which a luminance change at the first point and the second point is maximum; an output unit that outputs a length from either the first point or the second point to either the first point or the second point in a direction in which the luminance change is maximum as a diameter of the hair; A hair diameter measuring device equipped with
9. A method performed by a hair diameter measuring device, comprising: detecting a plurality of first points whose luminance changes by scanning an image of the hair in a first direction, and detecting a plurality of second points whose luminance changes by scanning the image in a second direction different from the first direction; detecting a direction in which a luminance change at the first point and the second point is maximum; outputting a length from either the first point or the second point to either the first point or the second point in a direction in which the luminance change is maximum as a diameter of the hair; The method includes:
Citation Information
Patent Citations
Method and apparatus for measuring diameter of hair and sample for measurement
JP1992073052A
Line width detecting method for linear picture
JP1992270476A
Line width measurement method, line width measurement program, storage medium and information processing device
JP2018072115A
hair diameter measurement
JP2018538602A
Image processing device
JP2020067795A
