Method for determining the grey level of hair strands

The method objectively determines the gray level of hair strands by setting a threshold brightness value and calculating the ratio of bright pixels, addressing the subjectivity and inaccuracy of existing methods.

JP7541521B2Active Publication Date: 2024-08-28HENKEL KGAA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2021535191
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-12-18
Filing Date
2019-12-17
Publication Date
2024-08-28
Estimated Expiration
2039-12-17

AI Technical Summary

Technical Problem

Existing methods for determining the gray level of hair strands are subjective and lack objectivity and accuracy due to the random mixture of colored and non-colored fibers, which are averaged out in colorimetric measurements, and are influenced by lighting conditions and angle of view.

Method used

A method that involves obtaining an image of a hair strand, determining brightness values for each pixel, setting a threshold brightness value based on predetermined display criteria, and calculating the ratio of pixels exceeding this threshold to determine the gray level, using reference strands of known gray levels to establish a reliable workflow.

Benefits of technology

This method provides an objective and accurate determination of the gray level by distinguishing between gray and colored hair fibers based on brightness, improving precision and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007541521000003
    Figure 0007541521000003
  • Figure 0007541521000002
    Figure 0007541521000002
  • Figure 0007541521000005
    Figure 0007541521000005
Patent Text Reader

Abstract

A method for determining the gray level of a hair strand and a system suitable for carrying out said method comprises: first obtaining an image of the hair strand, representing the hair strand according to a predetermined display criterion; said image including a portion representing the hair strand with pixels; then determining a luminance value for each pixel of said portion; then determining the amount of pixels in said portion whose determined luminance value exceeds a threshold luminance value; finally determining the gray level of the hair strand by evaluating the ratio of said determined amount to the total amount of pixels in said portion.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of hair color characterization, and in particular to determining the percentage of gray hair in a hair strand, this percentage being commonly referred to as the greyness level. [Background technology]

[0002] Knowledge of one's hair condition, especially hair color, is important information to have in order to select a suitable hair treatment composition among the available products. Hair treatment products, such as shampoos or hair coloring compositions (also called hair dyes), may have different effects when applied to different users. Among the parameters that may affect the selection of hair treatment products, especially hair color products, the presence and amount of gray hair must be taken into account.

[0003] Traditionally, the assessment of the gray level of a user's hair is performed subjectively, either by the user themselves or by a hairstylist who is more experienced in working with various hair types, however, such an approach requires the presence of an experienced professional and still remains a subjective assessment of a person's true hair gray level.

[0004] A more objective approach could consist in determining the gray level using image analysis tools such as colorimetry. In particular, the image of the hair strand is analyzed and the gray level is calculated based on the color space (e.g. L * a * The average hair color value can be determined by calculating the average of the numerical components of the colors of the pixels in the image in a L / b color space, where L represents lightness, a represents the green and red components, and b represents the blue and yellow components, or alternatively, RGB, where R represents red, G represents green, and B represents blue.

[0005] Another pitfall of colorimetric measurements in determining gray levels is that the measurement spot is typically 0.5 cm 2 ~1cm 2The main culprit is the fact that gray hairs cover an area of ​​100-200 mm. Gray hairs appear as a random mixture of colored and non-colored fibers in the hair strand, resulting in a "salt and pepper" impression. Thus, the colorimetric approach averages the color without counting and distinguishing between gray and colored hair fibers individually.

[0006] In other words, colorimetry is not useful for determining the level of gray in a user's hair.

[0007] Even when using high-resolution cameras capable of recording pixels with micrometer or sub-micrometer spatial resolution, an objective determination of gray level will lack precision, since lighting conditions and angle of view have a strong effect on the observed color, and differences in lighting conditions will vary the measurements from one hair strand to another. Summary of the Invention [Problem to be solved by the invention]

[0008] Therefore, there is a need for a method to improve the objectivity and accuracy of determining the grey level of hair strands. [Means for solving the problem]

[0009] In order to overcome the above mentioned drawbacks, the present invention provides a method for determining the grey level of a hair strand, the method comprising: - acquiring an image of a hair strand, the image representing the hair strand according to a predefined representation criterion, the image including a portion representing the hair strand in pixels; - determining for each pixel of said portion a luminance value; - determining a quantity of pixels in said portion for which the determined luminance value exceeds a threshold luminance value; - Determining the grey level of a hair strand by evaluating the ratio of the determined amount of pixels to the total amount of pixels of said part. [Brief description of the drawings]

[0010] [Figure 1a] FIG. 1a is an image of a hair strand. [Figure 1b] FIG. 1b is a histogram of pixel intensities from the image of FIG. 1a. [Diagram 2] Figures 2a and 2c are images of the hair strand of Figure 1a viewed under different lighting conditions, and Figures 2b and 2d are histograms of pixel intensity from the images of Figures 2a and 2c, respectively. [Diagram 3] FIG. 3 is a schematic diagram of a flow chart illustrating steps of the method of an exemplary embodiment. [Figure 4] FIG. 4 is a schematic diagram of a system of an exemplary embodiment. [Diagram 5] 5a-5d are greyscale images of reference strands of hair of known grey levels containing 30%, 50%, 70% and 90% grey hair fibres, respectively. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] This method adds objectivity to the determination of the grey level of a user's hair, based on the analysis of the luminance observed in one image of the user's hair strand. It is assumed that white hair fibers appear brighter, i.e. with a higher luminance, than colored hair fibers. It is therefore possible to distinguish on an image the pixels corresponding to white hair fibers from those corresponding to colored fibers based on their luminance. This should however be performed on an image displaying the fibers according to a predefined display criterion. The term "predefined display criterion" should be understood in the context of the present invention as returning to the geometrical and physical conditions under which the hair fibers were imaged. For example, such conditions include: the image resolution (magnification), the lighting conditions (spectrum of the light incident on the hair strand, light intensity), the viewpoint under which the hair strand is displayed (angle of view, distance between the image acquisition tool and the fibers of the hair strand). If such conditions are predefined, a reliable workflow for determining the grey level of any hair strand can be established. For that purpose, a reference value of a threshold luminance is used that allows to distinguish colored hair fibers from white hair fibers on any image. One approach is to fix this threshold luminance value at a luminance value that allows to distinguish between colored and white hair fibers on an image of a hair strand with a known gray level. This can be done, for example, by using an image analysis tool to determine the distribution of all luminance values ​​and to see which belong to the brightest and which belong to the darkest pixels of the image. The threshold lies at a luminance level, above which the percentage of pixels with a higher luminance is equal to the percentage of white hair fibers on a hair strand with a known gray level. Other definitions of the threshold luminance value can be used, for example, if the contrast of the image displaying the hair strand is so high that pixels belonging to colored and white hair fibers are clearly distinguished. In this case, the threshold luminance can be set, for example, at a luminance value intermediate between the brightest and darkest pixels.

[0012] Note that a "portion of an image" may be the entire image itself, not just a subelement of the image.

[0013] According to one embodiment, the threshold luminance value is set as the median luminance value measured on an image of a reference strand of hair having a known proportion of white hair fibres equal to 50% of the total amount of hair fibres in the reference strand of hair.

[0014] Such a definition of the threshold brightness value can be easily determined by mixing any type of hair fiber with an equal number of white hair fibers and measuring the median brightness value for all pixels of a portion of the image of the reference strand of hair thus obtained. The conditions under which the reference strand of hair was imaged determine a predefined display criterion for further measurements performed on hair strands of unknown gray levels. The threshold brightness value can be used as a reference for all further measurements when performed on an image of the hair strand displaying the hair fibers with the predefined display criterion or when converted into a form corresponding to the predefined display criterion.

[0015] According to one embodiment, the method may further include: Setting the threshold brightness value according to the color of the pigmented fibers of the hair strands.

[0016] Different hair fibers reflect light in different ways and are displayed in the pixels of the image with different brightness values. Therefore, it is advantageous to set the threshold brightness value according to the color of the pigmented fibers of the hair strand. For example, the threshold brightness value may increase in sequence according to the color of the pigmented fibers of the hair strand, which are classified as follows: black, dark brown, light brown, dark blonde, medium blonde, light blonde.

[0017] According to one embodiment, the method may further include: obtaining an image of a reference strand of hair of known grey level, the image displaying the reference strand of hair according to a predefined display criterion, the image including a reference portion displaying the reference strand of hair in pixels; · determining a luminance value for each pixel of the reference portion; Arranging the determined luminance values ​​according to percentiles; Setting the threshold brightness value as the brightness value observed for a percentile of brightness values ​​equal to the total percentage of colored hair fibers in a reference strand of hair.

[0018] It is not necessary to use a reference strand of hair in which half of all hair fibres are white fibres. A reference strand of hair with any proportion of white fibres can be used for the determination of the threshold brightness value. However, if the proportion of white fibres is not equal to 50% of the total amount of hair fibres, the median brightness value measured for the pixels of the part of the reference strand of hair is no longer a suitable value. Instead, a more reliable result is obtained by ranking the brightness values ​​according to percentiles. For example, if a reference strand of hair contains 70% white fibres, it contains 30% coloured hair fibres. The brightness value corresponding to the 30th percentile of the brightness values ​​gives the critical brightness value. In this example critical brightness value, 30% of all pixels have a brightness value below the critical threshold and can therefore be identified as corresponding to coloured hair fibres (representing the overall average 30% "darker" information of the part of the image), and 70% of all pixels have a brightness value higher than the critical brightness value and correspond to the "lighter" information of the part of the image related to white hair fibres. This critical luminance value is then set as the threshold luminance value.

[0019] According to one embodiment, the method may further include: Obtaining at least two reference strands of hair of different known greyness; · for each reference strand of hair, obtaining an image representative of the hair strand according to a predefined representation criterion, the image including a reference portion representing the reference strand of hair in pixels; · determining the luminance value for each pixel of the reference portion of each image; Arranging the determined luminance values ​​according to percentiles for the reference part of each image; determining for each reference portion of the image a critical luminance value as the luminance value observed for a percentile of luminance values ​​equal to the total percentage of colored hair fibers in the reference strand of hair; Setting the threshold luminance value as the average value of the determined critical luminance values.

[0020] By increasing the number of hair reference strands used in determining the critical threshold, a higher accuracy for determining the threshold luminance value can be reached. In theory, all critical luminance values ​​should be the same or substantially identical. The average value may reduce any noise in the determination of the threshold luminance value.

[0021] According to one embodiment, at least five reference strands of different known grey levels may be used to set the threshold luminance value.

[0022] The use of five reference strands allows a more accurate determination of the threshold luminance value by averaging the critical luminance values ​​determined for each reference strand of hair. In particular, it is possible to use hair strands whose grey levels cover a wide range of grey hair percentages (e.g. 10%, 30%, 50%, 70% and 90%).

[0023] According to one embodiment, the method may further include: Setting a threshold brightness value for each reference strand of hair of a set of reference strands of hair containing different hair colors and of known greyness.

[0024] According to one embodiment, the method may further include: Converting the color of each pixel in that portion of the image to grayscale.

[0025] By converting the color image to a grayscale image, more precision can be added to the determination of the gray level of the hair strand. Indeed, gray shades provide a more standardized approach to measuring the brightness of pixels representing hair fibers than color. For example, blonde hair fibers will usually appear in an image as having a higher brightness than black or brown hair fibers, thereby changing the accuracy of the gray level determination. Alternatively, a threshold brightness value can be determined for each type of hair color to improve the accuracy of the method.

[0026] According to one embodiment, the method may further include: Obtaining an original image of a hair strand, the original image showing the hair strand and a calibration bar of known size and color; Transforming the original image by adjusting display parameters of the original image using image processing capable of changing at least one of the angle of view, magnification and brightness of the original image in order to display the hair strands according to a predefined display criterion, the display parameters including at least the angle of view and magnification.

[0027] The use of a calibration bar with known color, shape, size, and possibly known light reflectance properties can avoid the need to capture an image using fixed viewing parameters. Instead, the calibration bar can provide the needed information about the perspective, magnification, and lighting conditions used in capturing the image, so that the image can be processed and corrected from its original state to a transformed state that meets predefined viewing criteria.

[0028] Image processing, which can change at least one of the angle of view, magnification, and brightness of the original image, can usually be software used to skew or add image transformations, such as shrinking at the top and expanding at the bottom to mimic the change in angle of view. The brightness of the original image can be changed using a gamma parameter in the software for processing the image. Various masks can be applied to change the properties of the pixels in the image.

[0029] According to one embodiment, the predefined display criteria may include at least one or a combination of the following: angle of view, magnification, lighting conditions, spatial arrangement of the fibers of the hair strand, relative position of the hair strand and a light source illuminating the hair strand, and spectrum and intensity of the light source.

[0030] Many different values ​​can be chosen for these parameters, which should advantageously correspond to the values ​​used in setting the threshold brightness value on the basis of at least one reference strand of hair.

[0031] According to one embodiment, the method may further include: Selecting a portion of the image representing hair strands in pixels such that said portion comprises substantially parallel hair fibres.

[0032] It is particularly advantageous to avoid parts of the image that have overlapping hair fibers. To that end, the hair strands can be placed on a substrate that helps to arrange the hair fibers substantially parallel to each other. The thickness of the hair does not affect the result of the gray level evaluation, but it is preferable not to include sections of the hair fiber that may have a different thickness relative to the length of the hair. For example, the length of the hair can be prioritized and the root or tip can be avoided. If the hair strands are on the user's head, care should be taken not to include parts that contain skin, or further processing of the part that excludes such parts will be recommended.

[0033] The present invention also relates to a system suitable for implementing the method described above. In particular, such a system for determining the greyness level of hair strands may comprise: · an image capture device configured to receive an image of a hair strand, the image representing the hair strand according to a predefined representation criterion; At least one non-transitory data processing device capable of receiving data from the image acquisition device and configured as follows: Selecting a portion in the image, the portion representing hair strands in pixels; For each pixel of the portion, determine a luminance value; estimating the amount of pixels in said portion whose determined luminance value exceeds a threshold luminance value; Determine the grey level of the hair strand by calculating the ratio of the estimated pixel volume to the total volume of pixels in the part.

[0034] The term "image acquisition device" may denote an electronic component capable of receiving a pre-recorded image in numerical form. In this case, the "image acquisition device" is a hardware component, such as a circuit including a processor. It may also be a camera, a photodetector, or any other device capable of recording an image by measuring the light reflected by the hair strands. The optical resolution of this photodetector is advantageously at the micrometer or sub-micrometer level in order to be able to detect individual hair fibers in a portion of the image. The "at least one non-transitory data processing device" is typically a hardware component, such as a circuit including a processor, that analyzes the numerical information of the image provided by the image acquisition device. When part of a device such as a computer or a network of computers, different components may contribute to the execution of the method. For example, a first circuit or computer may process the image and select the appropriate portion thereof. A second circuit or computer may build a data sheet of the brightness characteristics of the pixels and count those whose brightness is below a threshold brightness value.

[0035] According to one embodiment, the system may further include: A position selection mechanism adapted to receive an image capture device and positioned at a predefined distance, at a predefined position and at a predefined angle relative to the hair strand.

[0036] Such a position selection mechanism may be a physical element, such as for example a frame. Such a frame may include adjustable elements for selecting different positions and orientations of the image capture device relative to the hair strand. Alternatively, the mechanism may include for example a set of sensors that record a first positioning setting for a reference strand of hair and the image capture device and check whether further hair strands and the image capture device are positioned according to the first positioning setting.

[0037] According to one embodiment, the system may further include: a light source, the light source being positioned at a predefined distance, at a predefined position and at a predefined angle relative to the hair strands, comprising: Emitted light spectrum, emitted light intensity The light emitting device is configured to emit light having predetermined characteristics selected from at least one of:

[0038] The light source may be an ambient light or an artificial light source whose characteristics are predefined, in particular the spectrum of the emitted light, the intensity of the emitted light and the orientation of the light source. Fixing the spectrum, intensity and orientation of the light source further improves the accuracy of the method in determining the true grey level of the hair strands.

[0039] According to one embodiment, the system may further include: A substrate including a curved surface, the curved surface configured to receive a hair strand.

[0040] The substrate may have a receptacle, in particular with a curved surface on which the hair fiber is intended to be placed, in order to reflect the light from the light source from different angles of incidence to the image capture device. The light source may be ambient light or a light source whose characteristics (in particular the spectrum of the light emitted, the intensity of the light emitted and the orientation of the light source) are predefined. This allows a more accurate estimation of the gray level by averaging out the possible influence of the lighting conditions. In fact, the hair fiber reflects the light differently when the light arrives from different angles of incidence. A curved surface for the hair strand (e.g. a cylindrical surface) creates a gradient of the angles of incidence of the light projected onto the hair strand and reflected to the image capture device.

[0041] The invention also relates to a non-transitory computer readable storage medium having stored thereon a computer program comprising instructions for carrying out the method for determining the greyness level of hair strands as described above.

[0042] In other words, the invention also relates to a computer program product comprising instructions for carrying out the method for determining the greyness level of hair strands as described above.

[0043] The present disclosure is described below in conjunction with the following drawings, in which like numerals refer to like elements and in which:

[0044] FIG. 1a is an image of a hair strand. FIG. 1b is a histogram of pixel intensities from the image of FIG. 1a. 2a and 2c are images of the hair strand of FIG. 1a viewed under different lighting conditions. Figures 2b and 2d are histograms of pixel intensity from the images of Figures 2a and 2c, respectively. FIG. 3 is a schematic diagram of a flow chart illustrating steps of the method of an exemplary embodiment. FIG. 4 is a schematic diagram of a system of an exemplary embodiment. 5a-5d are greyscale images of reference strands of hair of known grey levels containing 30%, 50%, 70% and 90% grey hair fibres, respectively.

[0045] For clarity, the dimensions of features shown in these figures do not necessarily correspond to the proportions of the actual size of the corresponding elements.

[0046] Detailed Description The following detailed description is merely exemplary in nature and is in no way intended to limit the disclosure, or the application and uses of the subject matter described herein. Moreover, there is no intention to be bound by any theory presented in the preceding background or the following detailed description.

[0047] The present invention provides a method to make the determination of the grey level of hair fibres more objective and accurate. This method relies on the evaluation (by counting) of the number of bright pixels in an image of a hair strand obtained under predefined conditions forming a "calibration standard", also called a "predefined display criterion". The evaluation of bright pixels is also guided by the fixation of a threshold brightness value that allows the classification of pixels into two categories, such as belonging to white or coloured hair fibres. This threshold brightness value can be set by using a reference strand of hair with a known grey level, for which it is also possible to determine how the pixels of the image of a hair fibre can be identified as belonging to white or coloured hair fibres under the "calibration standard". This threshold is set to a critical brightness level that sets a limit for the brightness of pixels, such that all pixels with a higher brightness are identified as corresponding to white hair fibres. At the critical brightness value, the proportion of more bright pixels in the image is equal to the proportion of white fibres in the reference hair.

[0048] The term "luminance" or brightness is * a *It can represent lightness L, expressed in the b color space, or a physical parameter that represents, for example, brightness, i.e., luminous flux per unit solid angle, luminous intensity expressed in candela cd, luminous flux per unit solid angle per unit projected source area expressed in candelas / square meter. The term should not be interpreted as being exclusive to these definitions. For example, L * a * It may be equivalent to lightness L in any other color space other than the b color space, or any other unit used to quantify the intensity of an optical signal sensed by a photodetector. Lightness, brightness, and luminance are interchangeable in this specification and the appended claims.

[0049] To understand the method of the present invention, FIGS. 1a, 1b, 2a-2f show what happens when analyzing the characteristics of a hair strand using statistical tools applied to the pixels of an image of such a hair strand.

[0050] In FIG. 1a an image 11 of a strand of hair 1 is represented. The strand of hair 1 was purposefully selected to contain 50% white hair fibers and 50% colored hair fibers. The general impression when looking at the image 11 is a "salt and pepper" appearance. The hair strand is placed on a substrate (not shown) with a curved surface, which results in a brightness gradient from the top to the bottom of the image 11. The perspective used to take the image 11 also results in a bend in the hair fibers, as can be seen at the edge 20 of the image 11. When trying to calculate the gray level of this hair strand based on the image 11, one would try to classify the white pixels as belonging to white hair fibers and the dark pixels as corresponding to colored hair fibers. The percentage of white pixels relative to the total number of pixels would suggest the gray level.

[0051] As can be seen in FIG. 1b, this approach would not be straightforward since there is no clear definition of a white pixel. FIG. 1b shows the (L * a *b shows a histogram of luminance values ​​(ranked from 0 to 255) for the L, lightness, component, using the standard of the color space. The horizontal axis 110 shows the luminance values ​​from 0 to 255, while the vertical axis 120 corresponds to the number of pixels having the determined luminance value. It can be seen that this histogram does not clearly distinguish between pixels belonging to white hair fibers and pixels belonging to colored hair fibers. A statistical analysis of the histogram shows that average It shows that a brightness value of 78 was measured. On closer inspection, it can be seen that this is not the most suitable parameter for classifying the pixels into the two categories that, on the one hand, identify white hair fibers and, on the other hand, identify colored hair fibers.

[0052] One source of uncertainty in this classification may result from edge effects, as described above, or from effects from illumination conditions. These effects may be mitigated, for example, by selecting a portion 100 of image 11 in FIG. 1a that contains substantially parallel, non-overlapping hair fibers.

[0053] Figures 2a and 2c show the same strand of hair 1 as in Figure 1a, under different lighting conditions. The perceived brightness in Figure 2a, showing image 12, is different from the perceived brightness in Figure 2c, showing image 13. The histograms in Figures 2b and 2d confirm this difference. In particular, the histograms in Figure 2a, showing image 12, show average The brightness value is found to be 54, which is the brightness of image 13 in Figure 2c. average The brightness value is found to be 103. Both of these values ​​are the same as those in Figure 1b. average does not correspond to the value 78. Moreover, the histogram shows a significant imbalance in the distribution of luminance.

[0054] To add reliability to the determination of the gray level, the present invention defines a display criterion, which may also be called a calibration standard, for images of hair strands. When all images are obtained either under predefined lighting conditions, at a predefined distance from the hair strand, at a predefined magnification and under a predefined viewing angle, for example, a histogram of brightness values ​​for the hair strand in FIG. 1a serves as a reference for defining the threshold brightness value. Thus, for the example of a strand of hair 1 in FIG. 1, the threshold brightness value can be fixed at the median brightness value, since it is known that 50% of the light pixels are due to white hair and 50% of the dark pixels are due to colored hair. A statistical analysis of the brightness of the pixels from image 11 leads to a median brightness value of 65, which is average This is substantially different from the value of 78 derived from the brightness value. It should be noted that the use of the median brightness value in the example of Figure 1 is a useful measure to distinguish gray hairs from colored hairs, since the hair strand 1 shown in Figure 1 contains a known percentage of gray and colored hairs, and there are as many gray hairs as colored hairs in this strand of hair 1.

[0055] In figure 3, the main steps that can be used to explain a method according to an embodiment of the invention are summarized in a flow chart. Firstly, a method 300 for determining the grey level of a hair strand may consist of acquiring 310 an image of the hair strand such that the image displays the hair strand according to a predefined display criterion. This predefined display criterion may be used to define the conditions under which the image is acquired, for example with a photodetector device. Alternatively, the predefined display criterion serves as a reference in the processing of an existing image to convert it from its original inappropriate format and perspective into an image whose angle of view, magnification, resolution and lighting conditions match those of the "predefined display criterion".

[0056] The predefined display criteria may include multiple parameters, for example defining the angle of view, the magnification, the lighting conditions, the spatial arrangement of the fibers of the hair strands, the relative position of the hair strands and the light source illuminating the hair strands, the spectrum and intensity of the light source.

[0057] In cases where the image is not compatible with a predefined display standard, or where there is no means to sufficiently closely reproduce the conditions under which the threshold brightness value was obtained, it is possible to obtain an image of the hair strand that further includes a calibration object, such as a calibration bar, which has known shape, size, color, light reflectance properties, and may further include inscriptions that serve to convert the perspective of the image into the predefined display standard.

[0058] The image in the predefined display criterion includes in particular one portion 100, which can be advantageously selected to avoid the skin, or the root, or the tip. When used for transformation of the image, it is also advantageous to avoid calibration bars.

[0059] Once the image displays hair strands at the predefined display criteria, the method may continue by determining 320 a luminance value for each pixel of portion 100 .

[0060] This luminance value may be used in a further step for determining 330 the amount of pixels in the portion whose determined luminance value exceeds a threshold luminance value.

[0061] Finally, the method proceeds by determining 340 the grey level of the hair strand by evaluating the ratio of the determined amount of pixels to the total amount of pixels in the portion 100 .

[0062] Furthermore, the method may take into account the color of the colored fibers of the hair strand. This color may be a relevant parameter in the setting of the threshold brightness value. Indeed, the brightness values ​​of the pixels of an image of blonde hair fibers are similar to those of gray hair fibers, while the brightness values ​​of black hair fibers are significantly smaller than those of gray hair fibers. It is therefore advantageous to determine the color of the colored hair fibers of the hair strand and set the threshold brightness value accordingly. The following classifications of hair fiber colors can be defined from darkest to lightest: black, dark brown, medium brown, light brown, dark blonde, medium blonde, light blonde. The threshold brightness value is set to increasingly higher values ​​as the color of the colored hair fibers changes from black to light blonde. It should be noted that the method of the present invention overcomes this problem by analyzing the distribution of brightness values ​​in the image and setting the threshold brightness value to a value in which the percentage of pixels having a brightness higher than the threshold is equal to the percentage of white hairs in the hair strand of known grayness to which the method of the present invention is applied.

[0063] However, to further improve the accuracy of the grey level determination, it is also possible to analyze the colour of the darkest pixel in the image of the hair strand in order to identify the corresponding colour of the coloured hair fibre. When analysing the greyness of an unknown hair strand, the colour of the darkest pixel is first analysed in order to identify the corresponding colour of the coloured hair. The brightness of the pixel in the image of the hair of unknown greyness is then analysed using the method described above with a fixed threshold value using hair strands of known greyness values ​​of similar hair colour. The term "similar" hair colour refers to the hair colour which has a minimum distance in colour space to the hair colour of the hair strand of unknown greyness. Thereby, the accuracy of the method is further improved, which is advantageous for determining threshold brightness values ​​for a wide spectrum of coloured hair colours.

[0064] To implement the method 300, it is possible to use a system 400 as shown in Fig. 4. Fig. 4 represents a hair fibre 401 seen from the side, which is part of a hair strand. The hair fibre 401, as well as the hair strand of which it is part, rests on a substrate 440 having a curved surface, so that the light incident on the hair strand is reflected in different directions resulting in a reduction of the influence of the illumination conditions on the determination of the pixel brightness histogram. The incident light 411 can originate either from ambient light or from an artificial light source 410. The reflected light 421 can be detected by an image acquisition device 420, for example a camera or a photodetector such as a charge-coupled device. The image acquisition device may simply be an electronic component capable of receiving a file via a wireless or wired connection, where the image should already be accessible, for example from a database.

[0065] The images captured by the image capture device 420 are then transferred, either wirelessly 422 or via a wired connection, to a non-transitory data processing device 430. The non-transitory data processing device 430 may for example be a computer 431, a processor, a network of processors, an electronic circuit or a computer, which processes the images in order to determine the grey level of the hair strands according to the steps described above.

[0066] Alternatively, the non-transitory data processing device 430 may be a mobile device 432, such as a mobile phone, tablet, or any similar device, or may include a mobile device 432 in any of the steps described above.

[0067] A position selection mechanism 450 (such as a frame or a sensor array) can also be used to ensure that the hair strands, the image capture device 420 and possibly the light source 410 are positioned according to a predefined setup that allows to produce an image that fits a predefined display criterion. If the position selection mechanism 450 is a frame as represented diagrammatically in Fig. 4, it may include adjustable elements that allow to select the distance and the angle of view. Alternatively, the position selection mechanism can comprise a set of sensors that records a first calibration setting for a reference strand of hair and the image capture device and checks whether further hair strands and image capture devices are positioned according to the first calibration setting.

[0068] A generalization of the method for setting the threshold luminance value is described below in relation to Figures 5a-5d.

[0069] To set the threshold luminance value, it is sufficient to estimate the luminance value found in an image of a reference strand of hair of known grey level. Once a histogram of pixel luminance is available, it is necessary to count the number of pixels, the luminance being the brightness, up to a percentage of pixels equal to the percentage of white hair fibres known to be present in the reference strand of hair.

[0070] Figures 5a-5d show images 14-17 of reference strands of hair with known gray levels that have been converted from color views to grayscale images. This conversion improves the reliability and further standardizes the brightness values ​​subsequently observed on the images, regardless of the color of the pigmented hair fiber.

[0071] Fig. 5a shows a reference strand of hair 2 known to have a grey level of 30%. In other words, in said reference strand of hair 2, 70% of the hair fibres are coloured and 30% of the hair fibres are white. Once an image 14 of this hair strand in a predefined display criterion is obtained, a portion 100 can be selected. Alternatively, the portion 100 can encompass the entire image 14. Statistics are performed on the determined pixel luminances, in particular to access percentiles of the luminance values. For example, the 70th percentile of the luminance values ​​corresponds to a critical luminance value, under which 70% of the pixels have a luminance below the critical luminance value and 30% of the pixels have a luminance above the critical luminance value. The critical luminance value can then be set as a threshold luminance value.

[0072] Figure 5b shows a strand of hair 1 known to have a grey level of 50%. Image 15 is a greyscale image of image 11.

[0073] Figure 5c shows a reference strand of hair 3 known to have a grey level of 70%. In other words, in said reference strand of hair 3, 30% of the hair fibres are coloured and 70% of the hair fibres are white. The steps described with respect to figure 5a are repeated by setting the critical luminance value to the luminance value found for the 30th percentile of luminance values.

[0074] Figure 5d shows a reference strand of hair 4 known to have a grey level of 90%. In other words, in said reference strand of hair 4, 10% of the hair fibres are coloured and 90% of the hair fibres are white. The steps described with respect to figure 5a are repeated by setting the critical luminance value to the luminance value found for the 10th percentile of luminance values.

[0075] Without limiting the images to the preferred portion, the critical thresholds taken from images 14-17 result in some differences in the critical luminance values: for image 14, the critical luminance value is identified as 72, for image 15, the critical luminance value is identified as 65, for image 16, the critical luminance value is identified as 76, and for image 17, the critical luminance value is identified as 85. A better choice for the threshold luminance value would be to set it to the average of these four values, all close to 75.

[0076] The difference between the critical thresholds can be reduced by carefully choosing smaller portions 100, such as those represented by the white squares in Figures 2a-2d.

[0077] The threshold intensity value can then be used to identify and count the number of pixels corresponding to white hair fibres in any other image of hair strands of unknown greyness.

[0078] The method of the present invention outputs the grey level of the hair strands. This information can be used, for example, to provide customized hair treatment product recommendations. Typically, knowing the user's grey level can result in the selection of a hair coloring treatment or shampoo that matches the determined grey level. The output of the product recommendation or the output of the determined grey level can be done via a man-machine interface in visual or auditory form. Furthermore, such a man-machine interface can receive input from the user in writing, via selection from a menu displayed to the user, or verbally, by dictating a selection or by verbal communication with a software-assisted interface.

[0079] The steps of the above-described examples and embodiments may be performed by a processor such as a computer. A computer program product including the steps of the above-described methods may be used to execute the methods on a computer.

[0080] Different kinds of non-transitory computer readable recording media with a computer program comprising instructions for carrying out the method of the invention can also be used, which may include for example a processor or chip, an electronic circuit containing several processors or chips, a hard drive, a flash or SD card, a USB stick, a CD-ROM or DVD-ROM or Blu-ray disk, or a diskette or floppy disk.

[0081] While at least one exemplary embodiment has been described in the above detailed description, it should be understood that a vast number of variations exist. It should also be understood that the exemplary embodiment is merely an example, and is not intended to limit the scope, applicability, or configuration of the various embodiments in any way. Rather, the foregoing detailed description will provide those skilled in the art with a convenient road map for implementing the exemplary embodiments as contemplated herein. It will also be understood that various changes may be made in the function and arrangement of elements described in the exemplary embodiments without departing from the scope of the various embodiments as set forth in the appended claims. Preferred aspects of the present specification include at least the following. [1] · obtaining (310) an image (11-17) of a hair strand, the image being an image representing the hair strand according to a predefined representation criterion, the image including a portion (100) representing the hair strand in pixels; determining (320) a luminance value for each pixel of the portion; determining (330) an amount of pixels in the portion whose determined luminance value exceeds a threshold luminance value; determining the grey level of the hair strand by evaluating the ratio of the determined amount of pixels to the total amount of pixels of the part (340); A method (300) for determining the grey level of a strand of hair (1), comprising: [2] The method according to [1], wherein the threshold brightness value is set as the median brightness value measured in an image of a reference strand of hair (2-3) having a known proportion of white hair fibers equal to 50% of the total amount of hair fibers in the reference strand of hair. [3]· obtaining an image of a reference strand of hair of known gray level, the image displaying the reference strand of hair according to a predefined display criterion, the image including a reference portion displaying the reference strand of hair in pixels; · determining a luminance value for each pixel of the reference portion; Arranging the determined luminance values ​​according to percentiles; setting the threshold brightness value to the brightness value observed for a percentile of brightness values ​​equal to the total percentage of colored hair fibers in a reference strand of hair; The method according to [1] or [2], further comprising: [4] · Obtaining at least two reference strands of hair of different and known greyness; - for each reference strand of hair, obtaining an image representing the hair strand according to a predefined representation criterion, the image including a reference portion representing the reference strand of hair in pixels; · determining the luminance value for each pixel of the reference portion of each image; Arranging the determined luminance values ​​according to percentiles for the reference parts of each image; determining for each reference portion of the image a critical luminance value as the luminance value found for a percentile of luminance values ​​equal to the total percentage of colored hair fibers in the reference strand of hair; Setting the threshold luminance value as the average of the determined critical luminance values The method according to [1] or [2], further comprising: [5] The method of [4], wherein the threshold luminance value is set using at least five reference strands of different and known grey levels. [6] setting a threshold luminance value for each hair reference strand of a set of hair reference strands having known grayness values ​​and different hair colors; The method according to any one of [3] to [5], further comprising: [7] Converting the color of each pixel in that portion of the image to grayscale. The method according to any one of [1] to [6], further comprising: [8] · acquiring an original image of a hair strand, the original image showing the hair strand and a calibration bar of known size and color; Transforming the original image by adjusting display parameters of the original image using image processing capable of changing at least one of an angle of view, a magnification and a brightness of the original image in order to display hair strands according to a predefined display criterion, the display parameters including at least an angle of view, a magnification and a brightness; The method according to any one of [1] to [7], further comprising: [9] The predefined display criteria are as follows: The angle of view, magnification, illumination conditions, the spatial arrangement of the fibers of the hair strand, the relative position of the hair strand and the light source illuminating the hair strand, the spectrum and intensity of the light source The method according to any one of [1] to [8], comprising at least one of the following or a combination thereof:

[10] Selecting a portion of an image that represents hair strands in pixels such that the portion includes substantially parallel hair fibers. The method according to any one of [1] to [9], further comprising:

[11] A system (400) for determining the grey level of a strand of hair (1), comprising: an image acquisition device (420) configured to receive images (11-17) of hair strands, said images representing the hair strands according to predefined representation criteria, Capable of receiving data from image acquisition devices, such as: selecting a portion (100) in the image, the portion representing hair strands in pixels; determining a luminance value for each pixel of said portion; estimating the amount of pixels in said portion whose determined luminance value exceeds a threshold luminance value; Determine the grey level of the hair strand by calculating the ratio of the amount of estimated pixels to the total amount of pixels in the part. At least one non-transitory data processing device (430) configured as follows: Including, the system.

[12] A position selection mechanism (450) adapted to receive an image capture device and positioned at a predetermined distance, a predetermined position and a predetermined angle relative to the hair strand. The system of

[11] , further comprising:

[13] a light source (410), said light source being positioned at a predefined distance, at a predefined position and at a predefined angle relative to the hair strands, said light source emitting: Emitted light spectrum, emitted light intensity configured to emit light having predetermined characteristics selected from at least one of The system according to

[11] or

[12] , further comprising:

[14] A substrate (440) including a curved surface, the curved surface being configured to receive a hair strand. The system according to any one of

[11] to

[13] , further comprising:

[15] A non-transitory computer-readable storage medium having stored thereon a computer program comprising instructions for carrying out the method for determining the gray level of hair strands according to any one of [1] to

[10] .

Claims

1. Obtaining (310) an image (11-17) of a hair strand, the image being an image representing the hair strand according to a predefined representation criterion, the image including a portion (100) representing the hair strand in pixels; - determining (320) a luminance value for each pixel of the portion; determining (330) an amount of pixels in the portion whose determined luminance value exceeds a threshold luminance value; Determining the grey level of the hair strand by evaluating the ratio of the determined amount of pixels to the total amount of pixels of the part (340). A method (300) for determining the grey level of a strand of hair (1), comprising: where the threshold luminance value is: - obtaining an image of a reference strand of hair of known grey level, the image displaying the reference strand of hair according to a predefined display criterion, the image including a reference portion displaying the reference strand of hair in pixels; - determining a luminance value for each pixel of the reference portion; Arranging the determined luminance values ​​according to percentiles; Setting the threshold brightness value to the brightness value observed for a percentile of brightness values ​​equal to the total percentage of colored hair fibers in the reference strand of hair. or the following: Obtaining at least two reference strands of hair of different and known greyness; - for each hair reference strand, obtaining an image representing the hair strand according to a predefined representation criterion, the image comprising a reference portion representing the hair reference strand in pixels; - determining a luminance value for each pixel of the reference portion of each image; - arranging the determined luminance values ​​according to percentiles for the reference portion of each image; determining for each reference portion of the image a critical luminance value as the luminance value found for a percentile of luminance values ​​equal to the total percentage of colored hair fibers in the reference strand of hair; Setting the threshold luminance value as the average of the determined critical luminance values The method is set by.

2. 2. The method of claim 1, wherein the threshold brightness value is set as the median brightness value measured in an image of a reference strand of hair (2-3) having a known percentage of white hair fibers equal to 50% of the total amount of hair fibers in the reference strand of hair.

3. The threshold luminance value is: Obtaining at least two reference strands of hair of different and known greyness; - for each hair reference strand, obtaining an image representing the hair strand according to a predefined representation criterion, the image comprising a reference portion representing the hair reference strand in pixels; - determining a luminance value for each pixel of the reference portion of each image; - arranging the determined luminance values ​​according to percentiles for the reference portion of each image; determining for each reference portion of the image a critical luminance value as the luminance value found for a percentile of luminance values ​​equal to the total percentage of colored hair fibers in the reference strand of hair; Setting the threshold luminance value as the average of the determined critical luminance values Set by 2. The method of claim 1, wherein the threshold luminance value is set using at least five reference strands of different and known gray levels.

4. Setting a threshold luminance value for each hair reference strand of a set of hair reference strands that include known greyness values ​​and different hair colours. The method of claim 1 or 3, further comprising:

5. Converting the color of each pixel in that portion of the image to grayscale The method of any one of claims 1 to 4, further comprising:

6. - acquiring an original image of a hair strand, the original image showing the hair strand and a calibration bar of known size and color; - transforming the original image by adjusting display parameters of the original image using image processing capable of changing at least one of the field angle, magnification and brightness of the original image in order to display hair strands according to a predefined display criterion, the display parameters including at least the field angle, magnification and brightness; The method of any one of claims 1 to 5, further comprising:

7. The predefined display criteria are as follows: The angle of view, magnification, illumination conditions, the spatial arrangement of the fibers of the hair strand, the relative position of the hair strand and the light source illuminating the hair strand, the spectrum and intensity of the light source The method according to any one of claims 1 to 6, comprising at least one of the following or a combination thereof:

8. Selecting a portion of the image that represents the hair strands in pixels, such that the portion contains substantially parallel hair fibers. The method of any one of claims 1 to 7, further comprising:

9. A system (400) for determining the grey level of a strand of hair (1), comprising: an image capture device (420) configured to receive images (11-17) of hair strands, said images representing the hair strands according to predefined display criteria; Capable of receiving data from an image capture device, such as: Select a portion (100) in the image, the portion representing hair strands in pixels; - determining a luminance value for each pixel of the portion; - estimating the amount of pixels in the portion whose determined luminance value exceeds a threshold luminance value; Determine the grey level of the hair strand by calculating the ratio of the amount of estimated pixels to the total amount of pixels in the part At least one non-transitory data processing device (430) configured as follows: Including, where the threshold luminance value is: - obtaining an image of a reference strand of hair of known grey level, the image displaying the reference strand of hair according to a predefined display criterion, the image including a reference portion displaying the reference strand of hair in pixels; - determining a luminance value for each pixel of the reference portion; Arranging the determined luminance values ​​according to percentiles; Setting the threshold brightness value to the brightness value observed for a percentile of brightness values ​​equal to the total percentage of colored hair fibers in the reference strand of hair. Set by the system.

10. a position selection mechanism (450) suitable for receiving an image capture device and positioned at a predefined distance, at a predefined position and at a predefined angle relative to the hair strands; The system of claim 9 further comprising:

11. A light source (410), which is positioned at a predefined distance, at a predefined position and at a predefined angle relative to the hair strands, and which is characterized in that: Emitted light spectrum, emitted light intensity a light source (410) configured to emit light having predetermined characteristics selected from at least one of: The system of claim 9 or 10, further comprising:

12. a substrate (440) including a curved surface, the curved surface being configured to receive hair strands; The system according to any one of claims 9 to 11, further comprising:

13. A non-transitory computer readable storage medium having stored thereon a computer program comprising instructions for carrying out the method for determining the greyness level of hair strands according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and apparatus for examining human hair

    JP2008518231A