EP2768339A2 - Method for simulating hair having variable colorimetry and device for implementing said method - Google Patents

Method for simulating hair having variable colorimetry and device for implementing said method

Info

Publication number
EP2768339A2
EP2768339A2 EP12784506.3A EP12784506A EP2768339A2 EP 2768339 A2 EP2768339 A2 EP 2768339A2 EP 12784506 A EP12784506 A EP 12784506A EP 2768339 A2 EP2768339 A2 EP 2768339A2
Authority
EP
European Patent Office
Prior art keywords
image
hairstyle
hair
database
colorimetric
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
EP12784506.3A
Other languages
German (de)
French (fr)
Inventor
Pierre Ollivier
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spinnove
Original Assignee
Spinnove
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spinnove filed Critical Spinnove
Publication of EP2768339A2 publication Critical patent/EP2768339A2/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • G09G5/026Control of mixing and/or overlay of colours in general
    • AHUMAN NECESSITIES
    • A45HAND OR TRAVELLING ARTICLES
    • A45DHAIRDRESSING OR SHAVING EQUIPMENT; EQUIPMENT FOR COSMETICS OR COSMETIC TREATMENTS, e.g. FOR MANICURING OR PEDICURING
    • A45D44/00Other cosmetic or toiletry articles, e.g. for hairdressers' rooms
    • A45D44/005Other cosmetic or toiletry articles, e.g. for hairdressers' rooms for selecting or displaying personal cosmetic colours or hairstyle
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/06Colour space transformation
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/12Overlay of images, i.e. displayed pixel being the result of switching between the corresponding input pixels

Definitions

  • the present invention relates to a method for simulating a hair with variable colorimetry and a device for implementing said method.
  • Simulation methods are known today that allow a person to visualize themselves with a new hairstyle before the hairstylist actually makes the cut and / or the color on the hair.
  • the patent application EP 2 124 185 thus describes a method for finely detecting the outline of a hairstyle in order to propose to a person a simulation of his face with another hairstyle.
  • the application WO 98/21695 describes a hairstyle simulation method in which a hairstyle can be chosen in a database by a person, then geometric transformations are applied to the hairstyle chosen to obtain a hairstyle that can be superimposed. likely to an initial photo of the person. According to this method, it is also possible to change the color of the hairstyle to make it consistent with the color of the initial hairstyle of the person, to further increase the likelihood.
  • the present application describes a method of simulation of a hair colorimetric variable to simulate, in real time, in detail and with a reasonable technical cost at a consumer point of sale the new color that will have the hair of a person after application of a lotion of his choice, according to his current or future hairstyle.
  • the invention relates to a method for simulating a hair with variable colorimetry comprising:
  • the preliminary recording in a first database of a given number of images of hairstyles of given styles, and for each hairstyle image of the same style, of at least one associated colorimetric conversion matrix making it possible to obtain said hairstyle image by applying said die to a reference hairstyle image of the same style;
  • identifying in the first database a reference hairstyle image of the same style as that of the hairstyle-like image and a colorimetric conversion matrix associated with the hairstyle-like image the creation from of the initial digital image of the person of an avatar superimposed on the image of the face of the person previously extracted from said initial image, a hairstyle image reconstituted by application to a reference hairstyle image of said first database a colorimetric conversion matrix associated with the hairstyle-like image;
  • each hairstyle has a given hairstyle and hair type
  • said associated colorimetric conversion matrix makes it possible to convert the colorimetric value of each pixel of said hairstyle image with respect to the hairstyle image. colorimetric value of the corresponding pixel of a reference hairstyle image of the same hairstyle.
  • said conversion matrix is a square matrix and the colorimetric value of a pixel its component according to the colors Red, Green, Blue (RGB component).
  • the colorimetric conversion matrix by lotion makes it possible to convert the colorimetric value of each pixel of a reference hairdressing image with the colorimetric value of each pixel of the same reference hairdressing image after application of said lotion on a given hair of the type of hair from which comes the reference hairstyle.
  • the step of creating the avatar can be automatic or semi-automatic.
  • the reconstructed hairstyle image is obtained by applying the conversion matrix associated with the hairstyle image resembling a reference hairstyle image of the database of the same style as the hairstyle-like image.
  • the image of reconstituted hairstyle is then faithful in style and color to the image of hairstyle of the person.
  • the reconstituted hairstyle image is obtained by applying the conversion matrix associated with the hairstyle image resembling a reference hairstyle image of said database of a style different from that of said image. like hair style.
  • This variant can be implemented for example when the person wants to visualize with a different style of hairdressing.
  • the method according to the first aspect further comprises, for a given reference hairstyle, the prior registration in said first database of a given number of reference hairstyle images according to various shooting parameters. and recording one or more conversion matrices each linked to one of said parameters and making it possible to convert the colorimetric values of each of the pixels of a reference image associated with said parameter from those of each of the pixels of an image reference defined as the main reference image. It is thus possible to take into account the shooting parameters of the image of the person at the point of sale and to possibly correct the shooting parameters of the reference images.
  • the method according to the first aspect further comprises, during the prior registration of said first database and / or said second database, a step of simplifying the colorimetric conversion matrices comprising the definition of matrices. colorimetric conversion by areas of the image.
  • This simplification step makes it possible to adapt the smoothness of the simulation to the calculation capacities available at the point of sale and thus to find the best compromise on the quality of the simulation.
  • the colorimetric conversion matrices of said hairstyle images each form part of a set of metadata associated with each of said hairstyle images.
  • the metadata, multi-format may further include attributes of the hairstyle image, including for example shooting parameters. Saving as metadata reduces the size of databases.
  • the invention relates to a device for simulating a hair of variable colorimetry comprising:
  • Storage means comprising:
  • a first database with a given number of images of hairstyles of given styles, and for each hairstyle image of given style, at least one associated colorimetric conversion matrix for obtaining said hairstyle image by application of said matrix to a reference hairstyle image of the same style;
  • a second database with, for a given number of hair lotions, at least one colorimetric conversion matrix per lotion; means for acquiring an initial digital image of a person; a calculation unit allowing:
  • said storage means are arranged in a server remote from the computing unit, and further comprising a remote connection between said server and the computing unit.
  • Figure 1 is a block diagram describing the step of building a database of hair and their colorimetric variants, according to an exemplary embodiment
  • Figure 2 is a block diagram describing the step of building a database of lotions and their effects on the hair, according to an exemplary embodiment
  • FIG. 3 a block diagram describing an exemplary embodiment of a method for simplifying the colorimetric conversion and / or transformation matrices, with a view to constituting the database of the colorimetric metadata of the reference hairstyles as well as the colorimetric metadata database of hair lotions.
  • Figure 4 is a block diagram describing the step of simulating the hair of a person and the creation of personal color metadata, according to an exemplary embodiment
  • Figure 5 is a block diagram describing the step of simulating the effect of a lotion on the hair of a person, according to an exemplary embodiment
  • Figure 6 a diagram describing an embodiment of a device for implementing the method according to the invention.
  • Figures 1 to 5 describe the different steps of the implementation of the method according to the invention according to an exemplary embodiment.
  • FIG. 1 illustrates a first step comprising the creation of a first database 101, associating with a given number of hair styles and hair colors, colorimetric conversion matrices. It is thus necessary to carry out beforehand a cartography of a large number of styles of hairstyle and colors of hair. This preliminary barn for creating the first database is for example carried out in a specialized laboratory.
  • a first step S 10 high resolution digital images of different styles of hairstyles (A, B) belonging to different people (100A, 100B) are acquired.
  • style of hair By style of hair, one generally hears the arrangement of the hair (hair not attached, short, with fringe, tied in a bun, with braids, etc.) as well as possibly its texture (stiffness, suppleness, shine, friezes, etc.).
  • Each image is a reference image for the hair style.
  • These images are taken for a given color of the hair, for example a light color, for example blond, which will be the reference color.
  • the reference images of the different hairdressing styles are taken under standard shooting conditions, these conditions being in particular the lighting, the shooting distance, the angle of view, etc.
  • several images can be taken in different shooting conditions. One can then define among these reference images a main reference image for the style of hairdressing.
  • a set of data is extracted from these images, in addition to the colorimetric value of each pixel of the image, parameters related to the shooting conditions and descriptive parameters of the image (for example its resolution).
  • all of these data forming attributes of the image recorded as metadata associated with each image these metadata can be of multimedia form.
  • metadata may include text, images, texture formulas, photographs, and so on.
  • the metadata of the different reference images may also comprise one or more conversion matrices related to each of the shooting parameters. , and for converting the color values of each of the pixels of the reference image from those of each of the pixels of the image defined as the main reference image.
  • the ChAo images form a set of reference images taken with different shooting conditions of the person 100A presenting the hairstyle A
  • the ChBo images form a set. reference images taken with different shooting conditions of the person 100B presenting the hairdressing style B.
  • an image will be defined for each style of hairdressing, A or B, which will form a main reference image of the considered hairstyle. This step can be reproduced for a number N of hair styles.
  • a hairstyle of a given hairstyle for example A, but with different types of hair, for example various natural colors are made.
  • This step is reproduced for each of the hair styles.
  • M images each corresponding to a color, of the order for example of ten or a hundred natural colors according to the objective referred to in the exemplary embodiment concerned indicated respectively ChAi, ChA 2 , etc. for the style of hairdressing A and ChBi, ChB2, etc. for the hair style B in Figure 1.
  • a high-resolution digital image of a person with a given hair style and a given type of hair can be acquired, then images of the same hairstyle but different types of hair can be calculated from the image acquired to constitute the images 111A - 11 A.
  • a step S 13 then allows for each hair style and each natural color given, to extract a colorimetric conversion matrix corresponding to a given natural color.
  • the conversion matrix makes it possible to convert the colorimetric value of each pixel of the hairstyle image (for example ChAi) from the colorimetric value of the corresponding pixel of the image of the hairstyle of reference of the same hairstyle ( or main reference hairstyle), for example ChAo. It is possible in some cases that a geometric transformation is necessary between two images of hairstyles of the same style, the images being acquired on two different people. In this case, the correspondence of the pixels from one image to the other is understood after application of said geometric transformation.
  • each image is also associated with metadata that can include in addition to the colorimetric value of each pixel of the image, the colorimetric conversion matrix and optionally, parameters related to the shooting conditions as well as descriptive parameters of the image. 'picture.
  • a first database 101 is obtained in which are stored a set of metadata each associated with a hairstyle image and notably comprising the associated colorimetric conversion matrix (s).
  • the database may be enriched as a function of time of new images corresponding to new styles of hairstyles and / or associated natural colors, with each time an update of the metadata associated with the different images, and in particular an update.
  • day colorimetric conversion matrices may be enriched as a function of time of new images corresponding to new styles of hairstyles and / or associated natural colors, with each time an update of the metadata associated with the different images, and in particular an update.
  • Figure 2 illustrates a second step of creating a second database 102 associating a given number of hair lotions with at least one colorimetric conversion matrix by hair lotion.
  • the colorimetric conversion matrix of a lotion makes it possible, for example, to convert the colorimetric value of each pixel of a reference hairstyle with the colorimetric value of each pixel of the same hairstyle after application of said hair lotion on a type of hair from which the reference hairstyle is obtained.
  • a first step S20 different hair lotions are applied to different persons with various natural hair styles and colors and high-resolution digital images of the hairstyles are obtained after application of the lotion.
  • a Li hair lotion is applied to different people 111A, H2A, etc. presenting the hair style A and the hair types ChAi, ChA 2 , respectively and a lotion L 2 is applied to the person 114 B presenting the hair style B with the hair type CI1B4.
  • High resolution images are taken from the hairstyles once the lotion is applied to the hair and the hairstyle redone according to the initial style (121A, 1 2A for the application of the Li lotion to the hair ChAi and ChA 2 and 124B for the application from the lotion L 2 to the hair CI1B 4 ).
  • the initial style 121A, 1 2A for the application of the Li lotion to the hair ChAi and ChA 2 and 124B for the application from the lotion L 2 to the hair CI1B 4 .
  • step S21 for each image resulting from the application of the lotion, metadata associated with the images are extracted, then colorimetric conversion matrices by lotion are calculated and recorded (step S22) allowing the conversion of the colorimetric value of each pixel. of the image of the hairstyle after applying the lotion (for example 121A) from the colorimetric value of the corresponding pixel of the reference hairstyle of the same hairstyle (or main reference hairstyle), for example ChAo.
  • This calculation and recording step can be performed for different hair lotions applied to different styles of hairdressing according to a method equivalent to that described in step S20 above, as shown in FIG. 2.
  • a statistical simplification of the transformation matrices obtained making it possible to define for each hair lotion a single simplified transformation matrix, or a limited number of transformation matrices.
  • the transformation matrix associated with a given hair lotion is similar to a set of styles and / or a set of hair colors, to limit, by lotion, the number of transformation matrices.
  • the colorimetric conversion matrices are square matrices also called "Look Up Tables" or LUT according to the English expression, to give the component RGB (abbreviation of the English expression "Red Green Blue” ) of each pixel of the final image according to the RGB component of the corresponding pixel of the reference image. Each pixel is therefore associated with a colorimetric conversion matrix.
  • the simplifications aim to simplify the matrices by defining areas of the image, or masks, in which the colorimetric characteristics of the image are sufficiently homogeneous to be able to define identical colorimetric conversion matrices for all the pixels of the zone.
  • the simplifications also aim at simplifying the conversion matrices by defining sufficiently homogeneous zones to be able to define diagonal conversion matrices, or simplified compared to the initial matrices.
  • the masks thus defined are part of the attributes of the image and the metadata associated with the images may include succession of couples (zone / LUT) that can be recorded in the databases.
  • FIG. 3 illustrates, in a particular embodiment of the invention, a method for simplifying LUTs between an initial reference image and a target image 300 whose conversion matrix is recorded in the database.
  • a first step S31 consists in selecting a given number of zones Zi estimated homogeneous on the target image 300, this number in front of one side being as small as possible to facilitate the subsequent processing of the image but the largest possible (that is to say with very small areas, the extreme being a zone per pixel) if we aim that each simplified matrix obtained is as close as possible to the real pixel-by-pixel transformation matrix. There is therefore an optimization to be found in the simplification which will be a function of the final cost of treatment sought at the point of sale.
  • Each iteration consists in selecting a number N of zones not necessarily disjointes, compute (step S32) the simplified LUTs of each zone then calculate (step S33) for the entire image a function called "level of accuracy".
  • This function consists in calculating the difference between on the one hand the image 301 obtained using the application of the simplified LUTs of all the zones with the initial reference image and on the other hand the image 302 of the initial unimproved LUT transforming pixel by pixel of the initial reference image.
  • step S31 The methods of selecting and selecting a certain number of zones (step S31) can be very diverse. Also image editing professionals commonly use area definition tools, either by means of geometric contour selection or by methods related to color histograms; they then realize the transformations they want on these areas. For example, the aforementioned patent application WO98 / 21695 uses a method of selecting zones by histograms.
  • the parameters LIFT, GAIN, GAMMA of said linearity are calculated by RGB color channel using a statistical method of least cost of dispersion (for example the variance).
  • step S33 a statistical computation of the dispersion of the entire image between the reality and the resultant resulting from the simplified LUTs is performed (step S33).
  • the result of this calculation is called the "precision level" of this first selection of zones.
  • step S34 The above process is then repeated (step S34) by selecting a different number of zones (either smaller or larger) and comparing the precision levels found at the end of the process.
  • the operator will eventually find (step S35) the characteristics best suited to the hairstyle for which the simplification has been made and the model of use at the point of sale with the corresponding level of precision required. It is these characteristics (Zi zones / associated conversion matrices) that will then be recorded in the color metadata database 101 that is to be constituted (step S36).
  • a similar simplification process can be applied to the conversion matrices for creating colorimetric metadata associated with hair lotions in the second database 102.
  • a retouching professional can work on the image of the reference hairstyle by successive operations thanks to the tool at his disposal (for example Photoshop®), in order to get as close as possible to using of these operations the target image of the hairstyle to be reproduced via colorimetric transformations on the image of the reference hairstyle.
  • Operations with all their characteristics, including the selected areas and the associated LIFT, GAIN, GAMMA coefficients, are then listed in a metadata list, a "color decision list" describing a sequence of color metadata that is then exported to the database associated with the target image.
  • the level of precision obtained by the manual operations thus carried out by the professional is also calculated.
  • mathematical tools for massive data categorization such as those used for credit or financial market risk assessments, are used to perform almost all of the above operations almost automatically, including part successive reiterations.
  • the zones are then chosen according to a geometric or colorimetric algorithm in a systematic manner and according to certain criteria, for example criteria of geometric shapes with increasing surface or criteria for selecting histograms of gray shades (see patent application WO98 / 21695 previously cited).
  • a ranking algorithm uses the "level of precision" criterion and / or any other criteria considered relevant, for example the number of electronic operations necessary for the treatment at the point of sale. this allows to identify the best compromise between number of zones and accuracy sought and then save it in the database.
  • FIG. 4 illustrates a third step of the method according to the invention implemented this time directly on the place where the simulation of the colorimetry of the hair of a person 400, called in the rest of the description, must be carried out.
  • a first step S40 acquires a digital image 400 of the person.
  • This image can be recorded with light technical means, accessible at the point of sale, general public or semi-professional (digital camera, computer tools, smart phones or tablets) and is not necessarily a high resolution image.
  • a step S41 the hair 401 and the face 402 are cut off without the hair, starting from the image 400.
  • the extraction of the hair 401 can be made by known means, for example those described in the patent application. EP2124185 previously mentioned.
  • the first database 101 is searched for the hairstyle closest to that photographed, both in hair style and in color.
  • This step may comprise the treatment of the initial image 400 of the hairstyle, by applying a pre-established model associated with a retouching tool in order to characterize it an approximate first time with a few simple parameters predefined by the system (shapes, main colors, identified textures). It is then possible to carry out the automatic extraction in said first database 101 hairstyles and hair satisfying the initial approximate simple criteria found above, by automatic comparison of resemblance of the characteristics of the hairstyle / hair photographed with those extracted, then d display on a screen the few images that correspond to the optimization of this comparison. A manual selection of the hairstyle / hair whose likeness is perceived by the user to be the best can then be performed if necessary.
  • a step S43 it is then extracted in said first database metadata (zoning masks, textures, colors, shapes, etc.) associated with the image of the hairstyle / hair determined in the step previous. It is then possible (step S44) to reconstruct a hairstyle from the reference image corresponding to the identified hairstyle of the person and by application of the conversion tables. ("LUT") or couples (masks / LUTs) present in said metadata associated with the image of the hairstyle selected in the database. This hairstyle is associated with the previously registered face 402 of the person to form the reconstructed image 410 (step S45).
  • LUT conversion tables
  • an equipment and a software application give the person the HMI tools varying a finite number of characterization parameters of his hairstyle / hairstyle, from his initial reconstituted avatar.
  • This is an independent module that can for example complement the tools of composition / calibration that can currently be found on the market.
  • This module can either be sold as a complement to these tools (such as Photoshop®), or sold separately by coming to interface with these applications as a nested module ("plug-in").
  • FIG. 5 illustrates a fourth step of the method according to the invention corresponding to the visual simulation of the application of a hair lotion.
  • a step S 1 the colorimetric conversion matrices associated with the various hair lotions previously recorded in the second database 102 are applied, in order to simulate the effects of the lotion chosen on the avatar 410 of the person created in the step previous ( Figure 4).
  • Images 501, 502 obtained after applying the matrices corresponding to one or other of the lotions L 1 , L 2 in the example of FIG. 5 can then be displayed (step S52).
  • the colorimetric conversion matrix applied is that corresponding to the lotion chosen, defined for the hairstyle / type of hair identified for the person.
  • the matrix can be defined by zone and in each zone, by pixel color level.
  • FIG. 6 illustrates a system for implementing the invention according to an exemplary embodiment.
  • It includes a server 61 accessible remotely, for example via the Internet, in which there are storage means with the elements of the first and second databases of characterization of hairstyle / hair type and hair lotions.
  • said databases have been designed beforehand and can be updated in a central laboratory (not shown).
  • the databases are stored separately but are connected to each other.
  • the server may further include downloadable software for implementation at the point of sale of the method of simulation of a hair colorimetric variable, as described beforehand.
  • It furthermore comprises, on the point of sale, a digital image acquisition device 64 and a computing unit 62 for the actual implementation of the simulation of the person's hair.
  • the computing unit 62 may comprise a device for downloading the elements created or modified from the centralized laboratory to the accessible server.
  • the computing unit may finally include equipment as well as software and possibly downloadable data at the point of sale of the hair lotions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Image Processing (AREA)

Abstract

In a first aspect, the method for simulating hair having variable colorimetry comprises preliminarily recording, in a first database (101), a given number of images of given hairstyles and, for each image of a given hairstyle, at least one associated colorimetric conversion matrix for obtaining said hairstyle image by applying said matrix to a reference hairstyle image of the same style; preliminarily recording, in a second database (102), at least one colorimetric conversion matrix per lotion for a given number of capillary lotions (L1- Lk); determining a resembling hairstyle image in said database by image recognition from an image of a hairstyle (401) retrieved from an initial digital image of a person (400); identifying, in the first database, a reference hairstyle image of the same style as the style of the resembling hairstyle image and a colorimetric conversion matrix associated with the resembling hairstyle image; creating an avatar (410) from the initial digital image of the person (400), which avatar superimposes the image of the face of the person (402) preliminarily retrieved from said initial image, and a hairstyle image (403) reconstructed by applying a colorimetric conversion matrix associated with the resembling hairstyle image to an image of a reference hairstyle from said first database; applying a colorimetric conversion matrix from said second database (102), which matrix corresponds to the capillary lotion selected for simulating the expected color, to said reconstructed hairstyle image.

Description

METHODE DE SIMULATION D'UNE CHEVELURE A COLORIMETRIE VARIABLE ET DISPOSITIF POUR LA MISE EN ŒUVRE DE LA METHODE  METHOD OF SIMULATING A VARIABLE COLORIMETRY HAIR AND DEVICE FOR IMPLEMENTING THE METHOD
ETAT DE L'ART Domaine technique de l'invention STATE OF THE ART Technical field of the invention
La présente invention concerne une méthode de simulation d'une chevelure à colorimétrie variable et un dispositif pour la mise en œuvre de ladite méthode. The present invention relates to a method for simulating a hair with variable colorimetry and a device for implementing said method.
Etat de l'art State of the art
Des méthodes de simulation sont connues aujourd'hui qui proposent à une personne de se visualiser avec une nouvelle coiffure avant que le coiffeur visagiste ne réalise effectivement la coupe et/ou la couleur sur la chevelure. Simulation methods are known today that allow a person to visualize themselves with a new hairstyle before the hairstylist actually makes the cut and / or the color on the hair.
La demande de brevet EP 2 124 185 décrit ainsi une méthode permettant de détecter finement le contour d'une coiffure afin de proposer à une personne une simulation de son visage avec une autre coiffure. La demande WO 98/21695 décrit une méthode de simulation de coiffure dans laquelle un style de coiffure peut être choisi dans une base de données par une personne, puis des transformations géométriques sont appliquées au style de coiffure choisi pour obtenir une coiffure qui puisse se superposer de façon vraisemblable à une photo initiale de la personne. Selon cette méthode, il est également possible de modifier la couleur de la coiffure pour la rendre conforme à la couleur de la coiffure initiale de la personne, permettant d'augmenter encore la vraisemblance. The patent application EP 2 124 185 thus describes a method for finely detecting the outline of a hairstyle in order to propose to a person a simulation of his face with another hairstyle. The application WO 98/21695 describes a hairstyle simulation method in which a hairstyle can be chosen in a database by a person, then geometric transformations are applied to the hairstyle chosen to obtain a hairstyle that can be superimposed. likely to an initial photo of the person. According to this method, it is also possible to change the color of the hairstyle to make it consistent with the color of the initial hairstyle of the person, to further increase the likelihood.
La présente demande décrit une méthode de simulation d'une chevelure à colorimétrie variable permettant de simuler, en temps réel, dans les détails et avec un coût technique raisonnable sur un point de vente grand public la nouvelle couleur qu'aura la chevelure d'une personne après application d'une lotion de son choix, selon son style de coiffure actuel ou futur. RESUME DE L'INVENTION The present application describes a method of simulation of a hair colorimetric variable to simulate, in real time, in detail and with a reasonable technical cost at a consumer point of sale the new color that will have the hair of a person after application of a lotion of his choice, according to his current or future hairstyle. SUMMARY OF THE INVENTION
Selon un premier aspect, l'invention concerne une méthode de simulation d'une chevelure à colorimétrie variable comprenant : According to a first aspect, the invention relates to a method for simulating a hair with variable colorimetry comprising:
l'enregistrement préalable dans une première base de données d'un nombre donné d'images de coiffures de styles donnés, et pour chaque image de coiffure d'un même style, d'au moins une matrice de conversion colorimétrique associée permettant l'obtention de ladite image de coiffure par application de ladite matrice à une image de coiffure de référence de même style;  the preliminary recording in a first database of a given number of images of hairstyles of given styles, and for each hairstyle image of the same style, of at least one associated colorimetric conversion matrix making it possible to obtain said hairstyle image by applying said die to a reference hairstyle image of the same style;
l'enregistrement préalable dans une seconde base de données pour un nombre donné de lotions capillaires (Li - LK) d'au moins une matrice de conversion colorimétrique par lotion;  pre - registering in a second database for a given number of hair lotions (Li - LK) of at least one colorimetric conversion matrix per lotion;
la détermination par reconnaissance d'images à partir d'une image d'une coiffure extraite d'une image numérique initiale d'une personne d'une image de coiffure ressemblante dans ladite base de données,  image recognition determination from an image of a hairstyle extracted from an initial digital image of a person from a similar hairstyle image in said database,
l'identification dans la première base de données d'une image de coiffure de référence de même style que celui de l'image de coiffure ressemblante et d'une matrice de conversion colorimétrique associée à l'image de coiffure ressemblante, la création à partir de l'image numérique initiale de la personne d'un avatar superposant à l'image du visage de la personne préalablement extraite de ladite image initiale, une image de coiffure reconstituée par application à une image de coiffure de référence de ladite première base de données d'une matrice de conversion colorimétrique associée à l'image de coiffure ressemblante;  identifying in the first database a reference hairstyle image of the same style as that of the hairstyle-like image and a colorimetric conversion matrix associated with the hairstyle-like image, the creation from of the initial digital image of the person of an avatar superimposed on the image of the face of the person previously extracted from said initial image, a hairstyle image reconstituted by application to a reference hairstyle image of said first database a colorimetric conversion matrix associated with the hairstyle-like image;
l'application à ladite image de coiffure reconstituée d'une matrice de conversion colorimétrique de ladite seconde base de données correspondant à la lotion capillaire choisie pour simuler la couleur attendue.  applying to said reconstituted hairstyle image a colorimetric conversion matrix of said second database corresponding to the hair lotion chosen to simulate the expected color.
Grâce à la création préalable d'une base de données comprenant des matrices de conversion colorimétrique associées à différentes images de coiffures de style de coiffure et type de chevelure diverses, il est possible de créer un avatar superposant au visage de la personne qui souhaite simuler un changement de coiffure une image de coiffure reconstituée réaliste, une image de coiffure de référence et une matrice de conversion colorimétrique étant associées à l'image de coiffure reconstituée. Il est ainsi possible d'appliquer sur l'image de la coiffure reconstituée la transformation associée à une lotion capillaire de son choix, rendant possible la mise en œuvre d'une simulation en temps réel sur un lieu de vente. Thanks to the preliminary creation of a database comprising colorimetric conversion matrices associated with different images of hairstyles of various hairstyle and hair type, it is possible to create an avatar superimposed on the face of the person who wishes to simulate a changing a hairstyle a realistic reconstructed hairstyle image, a reference hairstyle image and a color conversion matrix being associated with the reconstructed hairstyle image. It is thus possible to apply on the image of the reconstituted hairstyle the transformation associated with a lotion capillary of its choice, making it possible to implement a simulation in real time at a point of sale.
Selon une variante, chaque coiffure présente un style de coiffure et un type de chevelure donné, et pour chaque image de coiffure, ladite matrice de conversion colorimétrique associée permet la conversion de la valeur colorimétrique de chaque pixel de ladite image de coiffure par rapport à la valeur colorimétrique du pixel correspondant d'une image de coiffure de référence du même style de coiffure.  According to one variant, each hairstyle has a given hairstyle and hair type, and for each hairstyle image, said associated colorimetric conversion matrix makes it possible to convert the colorimetric value of each pixel of said hairstyle image with respect to the hairstyle image. colorimetric value of the corresponding pixel of a reference hairstyle image of the same hairstyle.
Avantageusement, ladite matrice de conversion est une matrice carrée et la valeur colorimétrique d'un pixel sa composante selon les couleurs Rouge, Vert, Bleu (composante RGB).  Advantageously, said conversion matrix is a square matrix and the colorimetric value of a pixel its component according to the colors Red, Green, Blue (RGB component).
Selon une variante, la matrice de conversion colorimétrique par lotion permet la conversion de la valeur colorimétrique de chaque pixel d'une image de coiffure de référence avec la valeur colorimétrique de chaque pixel de la même image de coiffure de référence après application de ladite lotion sur une chevelure donnée du type de chevelure duquel provient la coiffure de référence.  According to one variant, the colorimetric conversion matrix by lotion makes it possible to convert the colorimetric value of each pixel of a reference hairdressing image with the colorimetric value of each pixel of the same reference hairdressing image after application of said lotion on a given hair of the type of hair from which comes the reference hairstyle.
L'étape de création de l'avatar peut être automatique ou semi-automatique. Selon une variante, l'image de coiffure reconstituée est obtenue par application de la matrice de conversion associée à l'image de coiffure ressemblante à une image de coiffure de référence de la base de données de même style que l'image de coiffure ressemblante. L'image de coiffure reconstituée est alors fidèle en style et en coloris à l'image de coiffure de la personne. Selon une autre variante, l'image de coiffure reconstituée est obtenue par application de la matrice de conversion associée à l'image de coiffure ressemblante à une image de coiffure de référence de ladite base de données d'un style différent de celui de ladite image de coiffure ressemblante. Cette variante peut être mise en œuvre par exemple lorsque la personne souhaite se visualiser avec une coiffure de style différent.  The step of creating the avatar can be automatic or semi-automatic. Alternatively, the reconstructed hairstyle image is obtained by applying the conversion matrix associated with the hairstyle image resembling a reference hairstyle image of the database of the same style as the hairstyle-like image. The image of reconstituted hairstyle is then faithful in style and color to the image of hairstyle of the person. According to another variant, the reconstituted hairstyle image is obtained by applying the conversion matrix associated with the hairstyle image resembling a reference hairstyle image of said database of a style different from that of said image. like hair style. This variant can be implemented for example when the person wants to visualize with a different style of hairdressing.
Selon une variante, la méthode selon le premier aspect comprend en outre, pour une coiffure de référence donnée, l'enregistrement préalable dans ladite première base de données d'un nombre donné d'images de coiffures de référence selon différents paramètres de prise de vue et l'enregistrement d'une ou plusieurs matrices de conversion liées chacune à un desdits paramètres et permettant de convertir les valeurs colorimétriques de chacun des pixels d'une image de référence associée audit paramètre à partir de celles de chacun des pixels d'une image de référence définie comme image de référence principale. Il est ainsi possible de tenir compte des paramètres de prise de vue de la prise d'image de la personne sur le lieu de vente et de la corriger éventuellement des paramètres de prise de vue des images de référence. According to a variant, the method according to the first aspect further comprises, for a given reference hairstyle, the prior registration in said first database of a given number of reference hairstyle images according to various shooting parameters. and recording one or more conversion matrices each linked to one of said parameters and making it possible to convert the colorimetric values of each of the pixels of a reference image associated with said parameter from those of each of the pixels of an image reference defined as the main reference image. It is thus possible to take into account the shooting parameters of the image of the person at the point of sale and to possibly correct the shooting parameters of the reference images.
Selon une variante, la méthode selon le premier aspect comprend en outre, lors de l'enregistrement préalable de ladite première base de données et/ou de ladite seconde base de données, une étape de simplification des matrices de conversion colorimétrique comprenant la définition de matrices de conversion colorimétrique par zones de l'image. Cette étape de simplification permet d'adapter la finesse de la simulation aux capacités de calcul disponibles sur le lieu de vente et de trouver ainsi le meilleur compromis sur la qualité de la simulation.  According to a variant, the method according to the first aspect further comprises, during the prior registration of said first database and / or said second database, a step of simplifying the colorimetric conversion matrices comprising the definition of matrices. colorimetric conversion by areas of the image. This simplification step makes it possible to adapt the smoothness of the simulation to the calculation capacities available at the point of sale and thus to find the best compromise on the quality of the simulation.
Selon une variante, les matrices de conversion colorimétriques desdites images de coiffure font partie chacune d'un ensemble de métadonnées associées à chacune desdites images de coiffure. Avantageusement, les métadonnées, multi-format, pourront comprendre en outre des attributs de l'image de coiffure, dont par exemple des paramètres de prise de vue. L'enregistrement sous forme de métadonnées permet de réduire la taille des bases de données.  According to one variant, the colorimetric conversion matrices of said hairstyle images each form part of a set of metadata associated with each of said hairstyle images. Advantageously, the metadata, multi-format, may further include attributes of the hairstyle image, including for example shooting parameters. Saving as metadata reduces the size of databases.
Selon un deuxième aspect, l'invention concerne un dispositif de simulation d'une chevelure à colorimétrie variable comprenant :  According to a second aspect, the invention relates to a device for simulating a hair of variable colorimetry comprising:
Des moyens de stockage comprenant :  Storage means comprising:
o une première base de données avec un nombre donné d'images de coiffures de styles donnés, et pour chaque image de coiffure de style donné, au moins une matrice de conversion colorimétrique associée permettant l'obtention de ladite image de coiffure par application de ladite matrice à une image de coiffure de référence de même style;  o a first database with a given number of images of hairstyles of given styles, and for each hairstyle image of given style, at least one associated colorimetric conversion matrix for obtaining said hairstyle image by application of said matrix to a reference hairstyle image of the same style;
o une seconde base de données avec, pour un nombre donné de lotions capillaires, au moins une matrice de conversion colorimétrique par lotion; des moyens d'acquisition d'une image numérique initiale d'une personne; une unité de calcul permettant :  a second database with, for a given number of hair lotions, at least one colorimetric conversion matrix per lotion; means for acquiring an initial digital image of a person; a calculation unit allowing:
o la détermination par reconnaissance d'images à partir d'une image d'une coiffure (401) extraite de l'image numérique initiale de la personne (400) d'une image de coiffure ressemblante dans la première base de données, o l'identification dans la première base de données d'une image de coiffure de référence de même style que celui de l'image de coiffure ressemblante et d'une matrice de conversion colorimétrique associée à l'image de coiffure ressemblante, the determination by image recognition from an image of a hairstyle (401) extracted from the initial digital image of the person (400) of a similar hairstyle image in the first database, o the identification in the first database of a reference hairstyle image of the same style as that of the hairstyle-like image and a colorimetric conversion matrix associated with the hairstyle-like image,
o la création d'un avatar de ladite personne, superposant à l'image du visage de la personne préalablement extraite de ladite image initiale, une image de coiffure reconstituée par application à une image de coiffure de référence de ladite première base de données d'une matrice de conversion colorimétrique associée à l'image de coiffure ressemblante, et  o creating an avatar of said person, superimposing on the image of the face of the person previously extracted from said initial image, a hairstyle image reconstituted by application to a reference hairstyle image of said first database of a colorimetric conversion matrix associated with the hairstyle-like image, and
o la transformation de ladite image reconstituée par application d'une matrice de conversion colorimétrique de ladite seconde base de données correspondant à la lotion capillaire choisie pour simuler la couleur attendue. transforming said reconstituted image by applying a colorimetric conversion matrix of said second database corresponding to the hair lotion chosen to simulate the expected color.
Selon une variante, lesdits moyens de stockage sont agencés dans un serveur situés à distance de l'unité de calcul, et comprenant en outre une connexion à distance entre ledit serveur et l'unité de calcul. Ainsi, il n'est pas nécessaire d'avoir les moyens de stockage sur le lieu de vente et en cas d'une pluralité de lieux de vente, les bases de données peuvent être mises à jour de façon centralisée pour l'ensemble des lieux de vente. Alternatively, said storage means are arranged in a server remote from the computing unit, and further comprising a remote connection between said server and the computing unit. Thus, it is not necessary to have storage means at the point of sale and in the case of a plurality of points of sale, the databases can be updated centrally for all places. of sale.
BREVE DESCRIPTION DES DESSINS D'autres avantages et caractéristiques de l'invention apparaîtront à la lecture de la description, illustrée par les figures suivantes : BRIEF DESCRIPTION OF THE DRAWINGS Other advantages and characteristics of the invention will appear on reading the description, illustrated by the following figures:
Figure 1, un schéma synoptique décrivant l'étape de constitution d'une base de données de chevelures et de leurs variantes colorimétriques, selon un exemple de réalisation ; Figure 1 is a block diagram describing the step of building a database of hair and their colorimetric variants, according to an exemplary embodiment;
Figure 2, un schéma synoptique décrivant l'étape de constitution d'une base de données de lotions et de leurs effets sur les chevelures, selon un exemple de réalisation ; Figure 2 is a block diagram describing the step of building a database of lotions and their effects on the hair, according to an exemplary embodiment;
Figure 3, un schéma synoptique décrivant un exemple de réalisation d'une méthode de simplification des matrices de conversion colorimétrique et/ou transformation, en vue de constituer la base de données des métadonnées colorimétriques des coiffures de référence ainsi que la base de données des métadonnées colorimétriques des lotions capillaires. 3, a block diagram describing an exemplary embodiment of a method for simplifying the colorimetric conversion and / or transformation matrices, with a view to constituting the database of the colorimetric metadata of the reference hairstyles as well as the colorimetric metadata database of hair lotions.
Figure 4, un schéma synoptique décrivant l'étape de simulation de la chevelure d'une personne et la création de métadonnées colorimétriques personnelles, selon un exemple de réalisation ; Figure 4 is a block diagram describing the step of simulating the hair of a person and the creation of personal color metadata, according to an exemplary embodiment;
Figure 5, un schéma synoptique décrivant l'étape de simulation de l'effet d'une lotion sur la chevelure d'une personne, selon un exemple de réalisation ; Figure 5 is a block diagram describing the step of simulating the effect of a lotion on the hair of a person, according to an exemplary embodiment;
Figure 6, un schéma décrivant un exemple de réalisation d'un dispositif pour la mise en œuvre de la méthode selon l'invention. Figure 6, a diagram describing an embodiment of a device for implementing the method according to the invention.
DESCRIPTION DETAILLEE DETAILED DESCRIPTION
Les figures 1 à 5 décrivent les différentes étapes de la mise en œuvre de la méthode selon l'invention selon un exemple de réalisation. Figures 1 to 5 describe the different steps of the implementation of the method according to the invention according to an exemplary embodiment.
La figure 1 illustre une première étape comprenant la création d'une première base de données 101, associant à un nombre donné de styles de coiffure et couleurs de chevelure, des matrices de conversion colorimétrique. Il s'agit ainsi de réaliser au préalable une cartographie d'un nombre important de styles de coiffure et couleurs de chevelure. Cette étable préalable de création de la première base de données est par exemple effectuée dans un laboratoire spécialisé.  FIG. 1 illustrates a first step comprising the creation of a first database 101, associating with a given number of hair styles and hair colors, colorimetric conversion matrices. It is thus necessary to carry out beforehand a cartography of a large number of styles of hairstyle and colors of hair. This preliminary barn for creating the first database is for example carried out in a specialized laboratory.
Dans une première étape S 10, des images numériques à haute résolution de différents styles de coiffures (A, B) appartenant à différentes personnes (100A, 100B) sont acquises. Par style de coiffure, on entend généralement l'arrangement de la chevelure (chevelure non attachée, courte, avec frange, attachée en chignon, avec des tresses, etc.) ainsi qu'éventuellement sa texture (raideur, souplesse, brillance, frises, etc.). Chaque image constitue une image de référence pour le style de coiffure. Ces images sont prises pour une couleur donnée de la chevelure, par exemple une couleur claire, par exemple de type blond, qui constituera la couleur de référence. Selon une variante, les images de référence des différents styles de coiffure sont prises dans des conditions normalisées de prise de vue, ces conditions étant notamment l'éclairage, la distance de prise de vue, l'angle de prise de vue, etc. Selon une autre variante, pour un style de coiffure donné, plusieurs images pourront être prises dans différentes conditions de prise de vue. On pourra alors définir parmi ces images de référence une image de référence principale pour le style de coiffure. In a first step S 10, high resolution digital images of different styles of hairstyles (A, B) belonging to different people (100A, 100B) are acquired. By style of hair, one generally hears the arrangement of the hair (hair not attached, short, with fringe, tied in a bun, with braids, etc.) as well as possibly its texture (stiffness, suppleness, shine, friezes, etc.). Each image is a reference image for the hair style. These images are taken for a given color of the hair, for example a light color, for example blond, which will be the reference color. According to one variant, the reference images of the different hairdressing styles are taken under standard shooting conditions, these conditions being in particular the lighting, the shooting distance, the angle of view, etc. According to another variant, for a given hair style, several images can be taken in different shooting conditions. One can then define among these reference images a main reference image for the style of hairdressing.
Dans une étape SU, on extrait de ces images un ensemble de données comprenant outre la valeur colorimétrique de chaque pixel de l'image, des paramètres liés aux conditions de prise de vue et des paramètres descriptifs de l'image (par exemple sa résolution), l'ensemble de ces données formant des attributs de l'image enregistrées sous forme de métadonnées associées à chaque image, ces métadonnées pouvant être de forme multimédia. Par exemple, les métadonnées peuvent comprendre des textes, des images, des formules de texture, des photographies, etc.  In a step SU, a set of data is extracted from these images, in addition to the colorimetric value of each pixel of the image, parameters related to the shooting conditions and descriptive parameters of the image (for example its resolution). , all of these data forming attributes of the image recorded as metadata associated with each image, these metadata can be of multimedia form. For example, metadata may include text, images, texture formulas, photographs, and so on.
Dans le cas où plusieurs images de référence sont prises dans différentes conditions de prise de vue pour un style de coiffure donné, les métadonnées des différentes images de référence pourront comprendre en outre une ou plusieurs matrices de conversion liées à chacun des paramètres de prise de vue, et permettant de convertir les valeurs colorimétriques de chacun des pixels de l'image de référence à partir de celles de chacun des pixels de l'image définie comme image de référence principale. Ainsi par exemple, dans l'exemple de la figure 1, les images ChAo forment un ensemble d'images de référence prises avec différentes conditions de prises de vue de la personne 100A présentant le style de coiffure A, et les images ChBo forment un ensemble d'images de référence prises avec différentes conditions de prises de vue de la personne 100B présentant le style de coiffure B. Parmi ces images, on définira une image pour chaque style de coiffure, A ou B, qui formera une image de référence principale du style de coiffure considéré. Cette étape pourra être reproduite pour un nombre N de styles de coiffure.  In the case where several reference images are taken under different shooting conditions for a given hair style, the metadata of the different reference images may also comprise one or more conversion matrices related to each of the shooting parameters. , and for converting the color values of each of the pixels of the reference image from those of each of the pixels of the image defined as the main reference image. For example, in the example of FIG. 1, the ChAo images form a set of reference images taken with different shooting conditions of the person 100A presenting the hairstyle A, and the ChBo images form a set. reference images taken with different shooting conditions of the person 100B presenting the hairdressing style B. Among these images, an image will be defined for each style of hairdressing, A or B, which will form a main reference image of the considered hairstyle. This step can be reproduced for a number N of hair styles.
Dans une étape S12, des images numériques à haute résolution de personnes 111A, 112A, 113A, 11 A etc. présentant une coiffure d'un style de coiffure donné, par exemple A, mais avec des chevelures de type différent, par exemple des coloris naturels divers sont réalisées. Cette étape est reproduite pour chacun des styles de coiffure. Pour chaque style de coiffure, on pourra enregistrer M images correspondant chacune à un coloris, de l'ordre par exemple d'une dizaine ou d'une centaine de coloris naturels selon l'objectif visé dans l'exemple de réalisation concerné, indiqués respectivement ChAi, ChA2, etc. pour le style de coiffure A et ChBi, ChB2, etc. pour le style de coiffure B sur la figure 1. Selon une variante, une image numérique à haute résolution d'une personne présentant un style de coiffure donné et un type de chevelure donné peut être acquise, puis des images du même style de coiffure mais différents types de chevelure peuvent être calculées à partir de l'image acquise pour constituer les images 111A - 11 A. In a step S12, high-resolution digital images of people 111A, 112A, 113A, 11A, and so on. presenting a hairstyle of a given hairstyle, for example A, but with different types of hair, for example various natural colors are made. This step is reproduced for each of the hair styles. For each hair style, it will be possible to record M images each corresponding to a color, of the order for example of ten or a hundred natural colors according to the objective referred to in the exemplary embodiment concerned, indicated respectively ChAi, ChA 2 , etc. for the style of hairdressing A and ChBi, ChB2, etc. for the hair style B in Figure 1. Alternatively, a high-resolution digital image of a person with a given hair style and a given type of hair can be acquired, then images of the same hairstyle but different types of hair can be calculated from the image acquired to constitute the images 111A - 11 A.
Une étape S 13 permet ensuite pour chaque style de coiffure et chaque coloris naturel donné, d'extraire une matrice de conversion colorimétrique correspondant à un coloris naturel donné. La matrice de conversion permet la conversion de la valeur colorimétrique de chaque pixel de l'image de la coiffure (par exemple ChAi) à partir de la valeur colorimétrique du pixel correspondant de l'image de la coiffure de référence du même style de coiffure (ou coiffure de référence principale), par exemple ChAo. Il est possible dans certains cas qu'une transformation géométrique soit nécessaire entre deux images de coiffures de même style, les images étant acquises sur deux personnes différentes. Dans ce cas, la correspondance des pixels d'une image à l'autre s'entend après application de ladite transformation géométrique. Ainsi, à chaque image, sont là aussi associées des métadonnées pouvant comprendre outre la valeur colorimétrique de chaque pixel de l'image, la matrice de conversion colorimétrique et éventuellement, des paramètres liés aux conditions de prise de vue ainsi que des paramètres descriptifs de l'image.  A step S 13 then allows for each hair style and each natural color given, to extract a colorimetric conversion matrix corresponding to a given natural color. The conversion matrix makes it possible to convert the colorimetric value of each pixel of the hairstyle image (for example ChAi) from the colorimetric value of the corresponding pixel of the image of the hairstyle of reference of the same hairstyle ( or main reference hairstyle), for example ChAo. It is possible in some cases that a geometric transformation is necessary between two images of hairstyles of the same style, the images being acquired on two different people. In this case, the correspondence of the pixels from one image to the other is understood after application of said geometric transformation. Thus, each image is also associated with metadata that can include in addition to the colorimetric value of each pixel of the image, the colorimetric conversion matrix and optionally, parameters related to the shooting conditions as well as descriptive parameters of the image. 'picture.
On obtient à l'issue de cette étape une première base de données 101 dans laquelle sont stockées un ensemble de métadonnées associées chacune à une image de coiffure et comprenant notamment la ou les matrice(s) de conversion colorimétrique associée(s).  At the end of this step, a first database 101 is obtained in which are stored a set of metadata each associated with a hairstyle image and notably comprising the associated colorimetric conversion matrix (s).
Avantageusement, il est possible de simplifier les matrices de conversion colorimétrique associées aux types de chevelure et/ou les matrices de conversion correspondant aux différents paramètres de prise de vue, et ceci dans le but de simplifier ultérieurement les calculs pour la simulation de la chevelure d'une personne, comme cela sera décrit ultérieurement. Il est ainsi possible de reconstituer toutes les variantes colorimétriques d'une coiffure/ chevelure uniquement à partir de son image de référence et en appliquant un modèle de recomposition des lumières, des couleurs et des géométries des prises de vues à travers les matrices de conversion colorimétriques.  Advantageously, it is possible to simplify the colorimetric conversion matrices associated with the types of hair and / or the conversion matrices corresponding to the different shooting parameters, and this in order to simplify further the calculations for the simulation of the hair of the hair. a person, as will be described later. It is thus possible to reconstitute all the colorimetric variants of a hairstyle / hair only from its reference image and by applying a model of recomposition of the lights, colors and geometries of the shots through the colorimetric conversion matrices. .
Avantageusement, la base de données pourra être enrichie en fonction du temps de nouvelles images correspondant à de nouveaux styles de coiffures et/ou coloris naturels associés, avec à chaque fois une mise à jour des métadonnées associées aux différentes images, et notamment une mise à jour des matrices de conversion colorimétriques.  Advantageously, the database may be enriched as a function of time of new images corresponding to new styles of hairstyles and / or associated natural colors, with each time an update of the metadata associated with the different images, and in particular an update. day colorimetric conversion matrices.
La figure 2 illustre une seconde étape consistant à créer une seconde base de données 102 associant à un nombre donné de lotions capillaires au moins une matrice de conversion colorimétrique par lotion capillaire. La matrice de conversion colorimétrique d'une lotion permet par exemple la conversion de la valeur colorimétrique de chaque pixel d'une coiffure de référence avec la valeur colorimétrique de chaque pixel de la même coiffure après application de ladite lotion capillaire sur un type de chevelure à partir duquel est obtenue la coiffure de référence. Figure 2 illustrates a second step of creating a second database 102 associating a given number of hair lotions with at least one colorimetric conversion matrix by hair lotion. The colorimetric conversion matrix of a lotion makes it possible, for example, to convert the colorimetric value of each pixel of a reference hairstyle with the colorimetric value of each pixel of the same hairstyle after application of said hair lotion on a type of hair from which the reference hairstyle is obtained.
Dans une première étape S20, on applique différentes lotions capillaires à différentes personnes présentant des styles de coiffure et coloris naturels variés et on acquière des images numériques à haute résolution des coiffures après application de la lotion. Par exemple dans l'exemple de la figure 2, une lotion capillaire Li est appliquée aux différentes personnes 111A, H2A, etc. présentant le style de coiffure A et les types chevelures ChAi, ChA2, respectivement et une lotion L2 est appliquée à la personne 114B présentant le style de coiffure B avec le type de chevelure CI1B4. Des images à haute résolution sont prises des coiffures une fois la lotion appliquée sur la chevelure et la coiffure refaite selon le style initial (121A, 1 2A pour l'application de la lotion Li aux chevelures ChAi et ChA2 et 124B pour l'application de la lotion L2 à la chevelure CI1B4). Alternativement, on peut aussi par simplification du processus limiter l'application de la lotion à une petite quantité de styles de référence d'une même chevelure donnée (donc d'un type de chevelure donné avec une couleur naturelle donnée), voire un seul style, lorsque l'on estime avec un degré de confiance suffisant que les résultats obtenus par l'application de la lotion sur chacun des différents styles de coiffure réalisés à partir de cette même chevelure résulteront au final d'une conversion colorimétrique équivalente entre styles. In a first step S20, different hair lotions are applied to different persons with various natural hair styles and colors and high-resolution digital images of the hairstyles are obtained after application of the lotion. For example in the example of Figure 2, a Li hair lotion is applied to different people 111A, H2A, etc. presenting the hair style A and the hair types ChAi, ChA 2 , respectively and a lotion L 2 is applied to the person 114 B presenting the hair style B with the hair type CI1B4. High resolution images are taken from the hairstyles once the lotion is applied to the hair and the hairstyle redone according to the initial style (121A, 1 2A for the application of the Li lotion to the hair ChAi and ChA 2 and 124B for the application from the lotion L 2 to the hair CI1B 4 ). Alternatively, for simplification of the process, it is also possible to limit the application of the lotion to a small amount of reference styles of the same given hair (thus of a given type of hair with a given natural color), or even a single style. when it is estimated with a sufficient degree of confidence that the results obtained by the application of the lotion on each of the different hair styles made from this same hair will ultimately result in an equivalent colorimetric conversion between styles.
Dans une étape S21, on extrait pour chaque image résultant de l'application de la lotion des métadonnées associées aux images puis on calcule et on enregistre (étape S22) des matrices de conversion colorimétrique par lotion permettant la conversion de la valeur colorimétrique de chaque pixel de l'image de la coiffure après application de la lotion (par exemple 121A) à partir de la valeur colorimétrique du pixel correspondant de la coiffure de référence du même style de coiffure (ou coiffure de référence principale), par exemple ChAo. Cette étape de calcul et d'enregistrement peut être effectuée pour différentes lotions capillaires appliquées à différents styles de coiffure selon un procédé équivalent à celui décrit dans l'étape S20 ci-dessus, ainsi que cela est représenté sur la figure 2.  In a step S21, for each image resulting from the application of the lotion, metadata associated with the images are extracted, then colorimetric conversion matrices by lotion are calculated and recorded (step S22) allowing the conversion of the colorimetric value of each pixel. of the image of the hairstyle after applying the lotion (for example 121A) from the colorimetric value of the corresponding pixel of the reference hairstyle of the same hairstyle (or main reference hairstyle), for example ChAo. This calculation and recording step can be performed for different hair lotions applied to different styles of hairdressing according to a method equivalent to that described in step S20 above, as shown in FIG. 2.
Avantageusement, on peut, lors d'une étape S23, appliquer une simplification statistique des matrices de transformation obtenues, permettant de définir pour chaque lotion capillaire une matrice de transformation simplifiée unique, ou un nombre limité de matrices de transformation. Par exemple, on pourra constater que la matrice de transformation associée à une lotion capillaire donnée est similaire à un ensemble de styles de coiffure et/ou un ensemble de coloris de chevelure, permettant de limiter, par lotion, le nombre de matrices de transformation. Advantageously, it is possible, during a step S23, to apply a statistical simplification of the transformation matrices obtained, making it possible to define for each hair lotion a single simplified transformation matrix, or a limited number of transformation matrices. For example, it can be seen that the transformation matrix associated with a given hair lotion is similar to a set of styles and / or a set of hair colors, to limit, by lotion, the number of transformation matrices.
On obtient alors la deuxième base de données 102 enregistrant pour chaque lotion capillaire la ou les matrice(s) de conversion colorimétrique associées.  This produces the second database 102 recording for each hair lotion the associated colorimetric conversion matrix (s).
Avantageusement, dans l'étape d'extraction des matrices de conversion colorimétrique associées aux types de chevelure (S 13) et/ou dans celle d'extraction des matrices de conversion colorimétriques appliquées aux lotions capillaires (S22), des simplifications pourront être apportées aux différentes matrices. En toute rigueur, les matrices de conversion colorimétrique sont des matrices carrées également appelées « Look Up Tables » ou LUT selon l'expression anglo-saxonne, permettant de donner la composante RGB (abréviation de l'expression anglo-saxonne « Red Green Blue ») de chaque pixel de l'image finale en fonction de la composante RGB du pixel correspondant de l'image de référence. A chaque pixel est donc associée une matrice de conversion colorimétrique. Les simplifications visent à simplifier les matrices en définissant des zones de l'image, ou masques, dans lesquelles les caractéristiques colorimétriques de l'image sont suffisamment homogènes pour pouvoir définir des matrices de conversion colorimétrique identiques pour l'ensemble des pixels de la zone. Les simplifications visent également à simplifier les matrices de conversion en définissant des zones suffisamment homogènes pour pouvoir définir des matrices de conversion diagonales, ou simplifiées par rapport aux matrices initiales. Les masques ainsi définis font partie des attributs de l'image et les métadonnées associées aux images pourront inclure des successions de couples (zone / LUT] qui pourront être enregistrées dans les bases de données.  Advantageously, in the step of extracting the colorimetric conversion matrices associated with the types of hair (S 13) and / or in that of extracting the colorimetric conversion matrices applied to the hair lotions (S22), simplifications can be made to the different matrices. In all rigor, the colorimetric conversion matrices are square matrices also called "Look Up Tables" or LUT according to the English expression, to give the component RGB (abbreviation of the English expression "Red Green Blue" ) of each pixel of the final image according to the RGB component of the corresponding pixel of the reference image. Each pixel is therefore associated with a colorimetric conversion matrix. The simplifications aim to simplify the matrices by defining areas of the image, or masks, in which the colorimetric characteristics of the image are sufficiently homogeneous to be able to define identical colorimetric conversion matrices for all the pixels of the zone. The simplifications also aim at simplifying the conversion matrices by defining sufficiently homogeneous zones to be able to define diagonal conversion matrices, or simplified compared to the initial matrices. The masks thus defined are part of the attributes of the image and the metadata associated with the images may include succession of couples (zone / LUT) that can be recorded in the databases.
La figure 3 illustre dans un mode de réalisation particulier de l'invention une méthode de simplification des LUT entre une image de référence initiale et une image cible 300 dont la matrice de conversion est enregistrée dans la base de données. Dans ce mode de réalisation une première étape S31 consiste à sélectionner un nombre donné de zones Zi estimées homogènes sur l'image cible 300, ce nombre devant d'un côté être le plus petit possible pour faciliter le traitement ultérieur de l'image mais le plus grand possible (c'est- à-dire avec des zones très petites, l'extrême étant une zone par pixel) si on vise que chaque matrice simplifiée obtenue soit la plus proche possible de la matrice réelle de transformation pixel par pixel. Il y a donc une optimisation à trouver dans la simplification qui sera fonction du coût de traitement final recherché dans le lieu de vente. Cette optimisation peut être obtenue par la répétition itérative du processus décrit ci-dessous. Chaque itération consiste à sélectionner un nombre N de zones pas nécessairement disjointes, à calculer (étape S32) les LUT simplifiées de chaque zone puis à calculer (étape S33) pour l'ensemble de l'image une fonction dite de « niveau de précision ». Cette fonction consiste à calculer l'écart entre d'une part l'image 301 obtenue à l'aide de l'application des LUT simplifiées de toutes les zones à l'image de référence initiale et d'autre part l'image 302 issue de la LUT initiale non simplifiée de transformation pixel par pixel de l'image de référence initiale. FIG. 3 illustrates, in a particular embodiment of the invention, a method for simplifying LUTs between an initial reference image and a target image 300 whose conversion matrix is recorded in the database. In this embodiment a first step S31 consists in selecting a given number of zones Zi estimated homogeneous on the target image 300, this number in front of one side being as small as possible to facilitate the subsequent processing of the image but the largest possible (that is to say with very small areas, the extreme being a zone per pixel) if we aim that each simplified matrix obtained is as close as possible to the real pixel-by-pixel transformation matrix. There is therefore an optimization to be found in the simplification which will be a function of the final cost of treatment sought at the point of sale. This optimization can be achieved by iterative repetition of the process described below. Each iteration consists in selecting a number N of zones not necessarily disjointes, compute (step S32) the simplified LUTs of each zone then calculate (step S33) for the entire image a function called "level of accuracy". This function consists in calculating the difference between on the one hand the image 301 obtained using the application of the simplified LUTs of all the zones with the initial reference image and on the other hand the image 302 of the initial unimproved LUT transforming pixel by pixel of the initial reference image.
Les modalités de choix et de sélection d'un certain nombre de zones (étape S31) peuvent être très diverses. Aussi les professionnels de retouche d'image utilisent couramment des outils de définition de zones, soit par des moyens de sélection de contours géométriques soit par des méthodes liées aux histogrammes de couleurs ; ils réalisent ensuite les transformations qu'ils souhaitent sur ces zones. Par exemple la demande de brevet W098/21695 précédemment citée utilise une méthode de sélection de zones par les histogrammes.  The methods of selecting and selecting a certain number of zones (step S31) can be very diverse. Also image editing professionals commonly use area definition tools, either by means of geometric contour selection or by methods related to color histograms; they then realize the transformations they want on these areas. For example, the aforementioned patent application WO98 / 21695 uses a method of selecting zones by histograms.
Au sein d'une même zone choisie, la simplification de la LUT consiste à faire en premier lieu des hypothèses de linéarité dans l'espace logarithmique de couleur à une dimension (c'est-à-dire indépendante par canal de couleur RGB) pour appliquer un calcul très communément réalisé dans les outils de retouche, du type Rout = (GAIN*Rin + LIFT)GAMMA, où les paramètres indiqués ont les significations suivantes : LIFT pour ajuster les couleurs sombres, GAIN pour ajuster les couleurs claires et GAMMA pour ajuster les tons intermédiaires. Les paramètres LIFT, GAIN, GAMMA de ladite linéarité sont calculés par canal de couleur RGB en utilisant une méthode statistique de moindre coût de dispersion (par exemple la variance). Alternativement on peut aussi réaliser une simplification encore plus fine en allant rechercher, toujours dans la zone choisie, les paramètres matriciels faisant intervenir l'influence des canaux voisins (« cross talks ») pour mieux rendre compte des effets de second ordre entre canaux que la linéarité ne pourra pas apporter. Ceci peut s'avérer particulièrement intéressant si des contrastes importants de teintes existent sur certaines coiffures, l'œil étant sensible aux effets de couleur relative induite entre zones visuellement proches et de couleurs sensiblement différentes. Within the same chosen zone, the simplification of the LUT consists in first making assumptions of linearity in the one-dimensional (ie independent for each RGB color channel) logarithmic color space. apply a calculation very commonly done in editing tools, type Rout = (GAIN * Rin + LIFT) GAMMA , where the parameters indicated have the following meanings: LIFT to adjust the dark colors, GAIN to adjust the light colors and GAMMA for adjust the intermediate tones. The parameters LIFT, GAIN, GAMMA of said linearity are calculated by RGB color channel using a statistical method of least cost of dispersion (for example the variance). Alternatively, one can also realize an even more refined simplification by searching, always in the selected area, matrix parameters involving the influence of neighboring channels ("cross talks") to better account for the second-order effects between channels that the linearity will not be able to bring. This may be particularly interesting if significant contrast shades exist on certain hairstyles, the eye being sensitive to the relative color effects induced between visually similar areas and substantially different colors.
En deuxième lieu, une fois les zones sélectionnées et les LUT simplifiées obtenues, un calcul statistique de mesure de la dispersion sur l'ensemble de l'image entre la réalité et la résultante issue des LUT simplifiées est réalisé (étape S33). Le résultat de ce calcul est appelé le « niveau de précision » de cette première sélection de zones. Le processus ci-dessus est ensuite répété (étape S34) en sélectionnant un nombre de zones différent (soit plus petit, soit plus grand) et en comparant les niveaux de précision trouvés au bout du processus. Ainsi, par itérations successives l'opérateur finira par trouver (étape S35) les caractéristiques les mieux adaptées au style de coiffure pour lequel la simplification a été opérée et au modèle d'utilisation sur le lieu de vente avec le niveau de précision requis correspondant. Ce sont ces caractéristiques (ensemble zones Zi/matrices de conversion associées) qui seront ensuite enregistrées dans la base de données de métadonnées colorimétriques 101 que l'on cherche à constituer (étape S36). Secondly, once the selected areas and the simplified LUTs have been obtained, a statistical computation of the dispersion of the entire image between the reality and the resultant resulting from the simplified LUTs is performed (step S33). The result of this calculation is called the "precision level" of this first selection of zones. The above process is then repeated (step S34) by selecting a different number of zones (either smaller or larger) and comparing the precision levels found at the end of the process. Thus, by successive iterations the operator will eventually find (step S35) the characteristics best suited to the hairstyle for which the simplification has been made and the model of use at the point of sale with the corresponding level of precision required. It is these characteristics (Zi zones / associated conversion matrices) that will then be recorded in the color metadata database 101 that is to be constituted (step S36).
Un processus de simplification similaire peut s'appliquer aux matrices de conversion pour la création des métadonnées colorimétriques associées aux lotions capillaires dans la deuxième base de données 102.  A similar simplification process can be applied to the conversion matrices for creating colorimetric metadata associated with hair lotions in the second database 102.
Pour la simplification des matrices de conversion et/ou transformation, des variantes au processus décrit ci-dessus sont possibles.  For the simplification of the conversion and / or transformation matrices, variants of the process described above are possible.
Par exemple, un professionnel de la retouche peut travaille sur l'image de la coiffure de référence par opérations successives grâce à l'outil dont il dispose (par exemple Photoshop®), dans le but d'approcher le plus possible à l'aide de ces opérations l'image cible de la coiffure à reproduire via des transformations colorimétriques sur l'image de la coiffure de référence. Les opérations avec toutes leurs caractéristiques, notamment les zones choisies et les coefficients LIFT, GAIN, GAMMA associés, sont ensuite répertoriées dans une liste de métadonnées, une liste (« color décision list ») décrivant une suite des métadonnées colorimétriques qui est ensuite exportée vers la base de données associée à l'image cible. On calcule également le niveau de précision obtenu par les opérations manuelles ainsi réalisée par le professionnel.  For example, a retouching professional can work on the image of the reference hairstyle by successive operations thanks to the tool at his disposal (for example Photoshop®), in order to get as close as possible to using of these operations the target image of the hairstyle to be reproduced via colorimetric transformations on the image of the reference hairstyle. Operations with all their characteristics, including the selected areas and the associated LIFT, GAIN, GAMMA coefficients, are then listed in a metadata list, a "color decision list" describing a sequence of color metadata that is then exported to the database associated with the target image. The level of precision obtained by the manual operations thus carried out by the professional is also calculated.
Selon un autre exemple, on utilise des outils mathématiques de classement massif de données, tels que ceux utilisés pour les évaluations de risques de crédit ou de marché financiers, pour réaliser de manière quasi-automatique l'ensemble des opérations ci-dessus y compris la partie réitérations successives. Les zones sont alors choisies selon un algorithme géométrique ou colorimétrique de manière systématique et selon certains critères, par exemple des critères de formes géométriques à surface croissante ou des critères de choix d'histogrammes de nuances de gris (cf. demande de brevet W098/21695 précédemment citée). Puis ensuite un algorithme de classement utilise le critère de « niveau de précision » et/ ou tout autre critère jugé pertinent, par exemple le nombre d'opérations électroniques nécessaires au traitement sur le lieu de vente. Ceci permet d'identifier le meilleur compromis entre nombre de zones et précision recherchée et de l'enregistrer ensuite dans la base de données. In another example, mathematical tools for massive data categorization, such as those used for credit or financial market risk assessments, are used to perform almost all of the above operations almost automatically, including part successive reiterations. The zones are then chosen according to a geometric or colorimetric algorithm in a systematic manner and according to certain criteria, for example criteria of geometric shapes with increasing surface or criteria for selecting histograms of gray shades (see patent application WO98 / 21695 previously cited). Then, a ranking algorithm uses the "level of precision" criterion and / or any other criteria considered relevant, for example the number of electronic operations necessary for the treatment at the point of sale. this allows to identify the best compromise between number of zones and accuracy sought and then save it in the database.
La figure 4 illustre une troisième étape de la méthode selon l'invention mise en œuvre cette fois-ci directement sur le lieu où doit être réalisée la simulation de la colorimétrie de la chevelure d'une personne 400, appelé dans la suite de la description « lieu de vente », et consistant en la création d'un avatar 410 de la personne au moyen des données enregistrées dans la première base de données 101.  FIG. 4 illustrates a third step of the method according to the invention implemented this time directly on the place where the simulation of the colorimetry of the hair of a person 400, called in the rest of the description, must be carried out. "Point of sale", and consisting in the creation of an avatar 410 of the person using the data recorded in the first database 101.
Dans une première étape S40, on acquière une image numérique 400 de la personne. Cette image peut être enregistrée avec des moyens techniques légers, accessibles sur le lieu de vente, grand public ou semi-professionnels (appareil photo numérique, outils informatiques, smart-phones ou tablettes) et n'est pas nécessairement une image de haute résolution.  In a first step S40, acquires a digital image 400 of the person. This image can be recorded with light technical means, accessible at the point of sale, general public or semi-professional (digital camera, computer tools, smart phones or tablets) and is not necessarily a high resolution image.
Dans une étape S41 , on détoure la chevelure 401 et le visage 402 sans la chevelure, à partir de l'image 400. L'extraction de la chevelure 401 peut être faite par des moyens connus, par exemple ceux décrits dans la demande de brevet EP2124185 précédemment citée.  In a step S41, the hair 401 and the face 402 are cut off without the hair, starting from the image 400. The extraction of the hair 401 can be made by known means, for example those described in the patent application. EP2124185 previously mentioned.
Dans une étape S42, on cherche dans la première base de données 101 la coiffure la plus proche de celle photographiée, à la fois en style de coiffure et en couleur. Cette étape peut comprendre le traitement de l'image initiale 400 de la coiffure, par application d'un modèle préétabli associé à un outil de retouche afin de la caractériser une première fois de manière approximative avec quelques paramètres simples prédéfinis par le système (formes, couleurs principales, textures identifiées). Il est alors possible de procéder à l'extraction automatique dans ladite première base de données 101 des coiffures et chevelures répondant aux critères simples approximatifs initiaux trouvés précédemment, par comparaison automatique de ressemblance des caractéristiques de la coiffure/ chevelure photographiée avec celles extraites, puis d'afficher sur un écran les quelques images répondant à l'optimisation de cette comparaison. Une sélection manuelle de la coiffure/chevelure dont la ressemblance est perçue par l'utilisateur comme étant la meilleure peut ensuite être réalisée si nécessaire.  In a step S42, the first database 101 is searched for the hairstyle closest to that photographed, both in hair style and in color. This step may comprise the treatment of the initial image 400 of the hairstyle, by applying a pre-established model associated with a retouching tool in order to characterize it an approximate first time with a few simple parameters predefined by the system (shapes, main colors, identified textures). It is then possible to carry out the automatic extraction in said first database 101 hairstyles and hair satisfying the initial approximate simple criteria found above, by automatic comparison of resemblance of the characteristics of the hairstyle / hair photographed with those extracted, then d display on a screen the few images that correspond to the optimization of this comparison. A manual selection of the hairstyle / hair whose likeness is perceived by the user to be the best can then be performed if necessary.
Dans une étape S43, il est alors procédé à l'extraction dans ladite première base de données des métadonnées (masques de zonage, textures, couleurs, formes, etc.) associées à l'image de la coiffure/chevelure déterminée dans l'étape précédente. Il est alors possible (étape S44) de reconstituer une coiffure à partir de l'image de référence correspondant au style de coiffure identifié de la personne et par application des tables de conversion (« LUT ») ou couples (masques/LUT) présents dans lesdites métadonnées associées à l'image de la coiffure sélectionnée dans la base de données. Cette coiffure est associée au visage 402 préalablement enregistré de la personne pour former l'image reconstituée 410 (étape S45). In a step S43, it is then extracted in said first database metadata (zoning masks, textures, colors, shapes, etc.) associated with the image of the hairstyle / hair determined in the step previous. It is then possible (step S44) to reconstruct a hairstyle from the reference image corresponding to the identified hairstyle of the person and by application of the conversion tables. ("LUT") or couples (masks / LUTs) present in said metadata associated with the image of the hairstyle selected in the database. This hairstyle is associated with the previously registered face 402 of the person to form the reconstructed image 410 (step S45).
Selon une variante, un équipement et une application logiciel donnent à la personne les outils IHM faisant varier un nombre fini de paramètres de caractérisation de sa coiffure/ chevelure, à partir de son avatar reconstitué initial. Il s'agit d'un module indépendant pouvant par exemple venir compléter les outils de composition/ étalonnage que l'on peut actuellement trouver sur le marché. Ce module peut donc soit être vendu comme complément à ces outils (tels Photoshop®), soit vendu séparément en venant s'interfacer avec ces applications comme module imbriqué (« plug-in »).  According to a variant, an equipment and a software application give the person the HMI tools varying a finite number of characterization parameters of his hairstyle / hairstyle, from his initial reconstituted avatar. This is an independent module that can for example complement the tools of composition / calibration that can currently be found on the market. This module can either be sold as a complement to these tools (such as Photoshop®), or sold separately by coming to interface with these applications as a nested module ("plug-in").
La figure 5 illustre une quatrième étape de la méthode selon l'invention correspondant à la simulation visuelle de l'application d'une lotion capillaire.  FIG. 5 illustrates a fourth step of the method according to the invention corresponding to the visual simulation of the application of a hair lotion.
Dans une étape S 1, on applique les matrices de conversion colorimétrique associées aux différentes lotions capillaires préalablement enregistrées dans la deuxième base de données 102, afin de simuler les effets de la lotion choisie sur l'avatar 410 de la personne créé dans l'étape précédente (figure 4). Des images 501, 502 obtenues après application des matrices correspondant à l'une ou l'autre des lotions Lj, L2 dans l'exemple de la figure 5 peuvent alors être affichée (étape S52). La matrice de conversion colorimétrique appliquée est celle correspondant à la lotion choisie, définie pour le style de coiffure /type de chevelure identifié pour la personne. Dans le cas de matrices de conversion colorimétrique simplifiées, la matrice peut être définie par zone et dans chaque zone, par niveau colorimétrique de pixel. Il est ainsi possible à partir de la chevelure/ coiffure de la première base de données dont les paramètres sont les plus proches de ceux de la chevelure/ coiffure de la personne, de restituer le résultat de l'application d'une lotion sur l'avatar de la personne, dans l'environnement lumineux qui a servi de référence à la création de la base de données des coiffures/ chevelures et des lotions référencées. In a step S 1, the colorimetric conversion matrices associated with the various hair lotions previously recorded in the second database 102 are applied, in order to simulate the effects of the lotion chosen on the avatar 410 of the person created in the step previous (Figure 4). Images 501, 502 obtained after applying the matrices corresponding to one or other of the lotions L 1 , L 2 in the example of FIG. 5 can then be displayed (step S52). The colorimetric conversion matrix applied is that corresponding to the lotion chosen, defined for the hairstyle / type of hair identified for the person. In the case of simplified colorimetric conversion matrices, the matrix can be defined by zone and in each zone, by pixel color level. It is thus possible from the hair / hairstyle of the first database whose parameters are closest to those of the hair / hairstyle of the person, to return the result of the application of a lotion on the avatar of the person, in the luminous environment that served as a reference for the creation of the database of hairstyles / hair and referenced lotions.
Selon une variante, on pourra simuler le rendu de la coiffure/ chevelure sous différents environnements de lumière au-delà de l'environnement de référence de la base de données, comme éléments complémentaires d'appréciation de l'effet de la lotion choisie.  According to one variant, it is possible to simulate the rendering of the hairstyle / hair under different light environments beyond the reference environment of the database, as additional elements for assessing the effect of the chosen lotion.
La figure 6 illustre un système pour la mise en œuvre de l'invention selon un exemple de réalisation. Il comprend un serveur 61 accessible à distance, par exemple par internet, dans lequel se trouvent des moyens de stockage avec les éléments des première et seconde bases de données de caractérisation des style de coiffure / type de chevelure et de lotions capillaires. Par exemple, lesdites bases de données ont été conçues au préalable et peuvent être mises à jour dans un laboratoire central (non représenté). Selon une variante, les bases de données sont stockées séparément mais sont en liaison l'une avec l'autre. Le serveur peut comprendre en outre des logiciels à télécharger pour la mise en œuvre sur le lieu de vente de la méthode de simulation d'une chevelure à colorimétrie variable, telle que décrite au préalable. Il comprend par ailleurs, et ce sur le lieu de vente, un dispositif 64 d'acquisition d'images numériques et une unité de calcul 62 pour la mise en œuvre proprement dite de la simulation de la chevelure de la personne. L'unité de calcul 62 peut comprendre un dispositif de téléchargement des éléments créés ou modifiés depuis le laboratoire centralisé vers le serveur accessible. L'unité de calcul peut comprendre enfin des équipements ainsi que des logiciels et données éventuellement téléchargeables sur le lieu de vente des lotions capillaires. FIG. 6 illustrates a system for implementing the invention according to an exemplary embodiment. It includes a server 61 accessible remotely, for example via the Internet, in which there are storage means with the elements of the first and second databases of characterization of hairstyle / hair type and hair lotions. For example, said databases have been designed beforehand and can be updated in a central laboratory (not shown). According to one variant, the databases are stored separately but are connected to each other. The server may further include downloadable software for implementation at the point of sale of the method of simulation of a hair colorimetric variable, as described beforehand. It furthermore comprises, on the point of sale, a digital image acquisition device 64 and a computing unit 62 for the actual implementation of the simulation of the person's hair. The computing unit 62 may comprise a device for downloading the elements created or modified from the centralized laboratory to the accessible server. The computing unit may finally include equipment as well as software and possibly downloadable data at the point of sale of the hair lotions.
Bien que décrite à travers un certain nombre d'exemples de réalisation détaillés, la méthode selon l'invention comprend différentes variantes, modifications et perfectionnements qui apparaîtront de façon évidente à l'homme de l'art, étant entendu que ces différentes variantes, modifications et perfectionnements font partie de la portée de l'invention, telle que définie par les revendications qui suivent.  Although described through a number of detailed embodiments, the method according to the invention comprises various variants, modifications and improvements which will become obvious to those skilled in the art, it being understood that these different variants, modifications and improvements are within the scope of the invention as defined by the following claims.

Claims

REVENDICATIONS
Méthode de simulation d'une chevelure à colorimétrie variable comprenant : A method of simulating a hair of variable colorimetry comprising:
l'enregistrement préalable dans une première base de données (101) d'un nombre donné d'images (100A - 114A, 100B - 114B) de coiffures de styles donnés, et pour chaque image de coiffure d'un style donné, d'au moins une matrice de conversion colorimétrique associée permettant l'obtention de ladite image de coiffure par application de ladite matrice à une image de coiffure de référence de même style; the preliminary recording in a first database (101) of a given number of images (100 A - 114 A , 100 B - 114 B ) of hairstyles of given styles, and for each hairstyle image of a style given, at least one associated colorimetric conversion matrix for obtaining said hairstyle image by applying said matrix to a reference hairstyle image of the same style;
l'enregistrement préalable dans une seconde base de données (102) pour un nombre donné de lotions capillaires (Li - LK) d'au moins une matrice de conversion colorimétrique par lotion; pre - registering in a second database (102) for a given number of hair lotions (Li - L K ) of at least one colorimetric conversion matrix per lotion;
la détermination par reconnaissance d'images à partir d'une image d'une coiffure (401) extraite d'une image numérique initiale d'une personne (400) d'une image de coiffure ressemblante dans la première base de données, l'identification dans la première base de données d'une image de coiffure de référence de même style que celui de l'image de coiffure ressemblante et d'une matrice de conversion colorimétrique associée à l'image de coiffure ressemblante,  image-recognition determination from an image of a hairstyle (401) extracted from an initial digital image of a person (400) of a hairstyle-like image in the first database, the identifying in the first database a reference hairstyle image of the same style as that of the hairstyle-like image and a colorimetric conversion matrix associated with the hairstyle-like image,
la création à partir de l'image numérique initiale de la personne (400) d'un avatar (410) superposant à l'image du visage de la personne (402) préalablement extraite de ladite image initiale, une image de coiffure (403) reconstituée par application à une image de coiffure de référence de ladite première base de données d'une matrice de conversion colorimétrique associée à l'image de coiffure ressemblante;  the creation from the initial digital image of the person (400) of an avatar (410) superimposed on the image of the person's face (402) previously extracted from said initial image, a hairstyle image (403) reconstructed by applying to a reference hairdressing image of said first database a colorimetric conversion matrix associated with the look-alike image;
l'application à ladite image de coiffure reconstituée d'une matrice de conversion colorimétrique de ladite seconde base de données (102) correspondant à la lotion capillaire choisie pour simuler la couleur attendue.  applying to said reconstructed hairstyle a colorimetric conversion matrix of said second database (102) corresponding to the hair lotion chosen to simulate the expected color.
Méthode de simulation d'une chevelure à colorimétrie variable selon la revendication 1, dans laquelle chaque coiffure présentant un style de coiffure et un type de chevelure donné, la matrice de conversion colorimétrique associée à une image de coiffure permet la conversion de la valeur colorimétrique de chaque pixel de ladite image de coiffure par rapport à la valeur colorimétrique du pixel correspondant d'une image de coiffure de référence du même style de coiffure. A method of simulating a hair with variable colorimetry according to claim 1, wherein each hairstyle having a given hairstyle and hair type, the color conversion matrix associated with a hairstyle image allows the conversion of the colorimetric value of every pixel of said hairstyle image with respect to the color value of the corresponding pixel of a reference hairstyle image of the same hairstyle.
3. Méthode de simulation d'une chevelure à colorimétrie variable selon l'une quelconque des revendications précédentes, dans laquelle l'image de coiffure reconstituée (403) est obtenue par application de la matrice de conversion associée à l'image de coiffure ressemblante à une image de coiffure de référence de ladite base de données de même style que ladite image de coiffure ressemblante. A method of simulating a hair of variable colorimetry according to any one of the preceding claims, wherein the reconstructed hairstyle image (403) is obtained by applying the conversion matrix associated with the hairstyle image resembling a reference hairstyle image of said database of the same style as said hairstyle-like image.
4. Méthode de simulation d'une chevelure à colorimétrie variable selon l'une quelconque des revendications 1 ou 2, dans laquelle l'image de coiffure reconstituée (403) est obtenue par application de la matrice de conversion associée à l'image de coiffure ressemblante à une image de coiffure de référence de ladite base de données d'un style différent de celui de ladite image de coiffure ressemblante. 4. Method of simulating a hair colorimetric variable according to any one of claims 1 or 2, wherein the reconstructed hairstyle image (403) is obtained by applying the conversion matrix associated with the hairstyle image resembling a reference hairstyle image of said database of a style different from that of said hairstyle-like image.
5. Méthode de simulation d'une chevelure à colorimétrie variable selon l'une quelconque des revendications précédentes, comprenant en outre, pour une coiffure de référence donnée, l'enregistrement préalable dans ladite première base de données d'un nombre donné d'images de coiffures de référence selon différents paramètres de prise de vue et l'enregistrement d'une ou plusieurs matrices de conversion liées chacune à un desdits paramètres permettant de convertir les valeurs colorimétriques de chacun des pixels d'une image de référence associée audit paramètre à partir de celles de chacun des pixels d'une image de référence définie comme image de référence principale. 5. Method of simulating a hair colorimetric variable according to any one of the preceding claims, further comprising, for a given reference hairstyle, the prior registration in said first database of a given number of images of reference hairstyles according to different shooting parameters and the recording of one or more conversion matrices each linked to one of said parameters making it possible to convert the colorimetric values of each of the pixels of a reference image associated with said parameter from those of each of the pixels of a reference image defined as the main reference image.
6. Méthode de simulation d'une chevelure à colorimétrie variable selon l'une quelconque des revendications précédentes, comprenant en outre, lors de l'enregistrement préalable de ladite première base de données et/ou de ladite seconde base de données, une étape de simplification des matrices de conversion colorimétrique comprenant la définition de matrices de conversion colorimétrique par zones de l'image. The method of simulating a hair with variable colorimetry according to any one of the preceding claims, further comprising, during the prior recording of said first database and / or said second database, a step of simplification of the colorimetric conversion matrices comprising the definition of colorimetric conversion matrices by zones of the image.
7. Méthode de simulation d'une chevelure à colorimétrie variable selon l'une quelconque des revendications précédentes, comprenant en outre, lors de l'enregistrement préalable de ladite deuxième base de données, une étape de réduction du nombre de matrices de conversion colorimétrique associées à une lotion capillaire donnée. 7. Method of simulation of a hair colorimetric variable according to any one of the preceding claims, further comprising, during the prior registration of said second database, a step of reducing the number of associated colorimetric conversion matrices to a given hair lotion.
8. Méthode de simulation d'une chevelure à colorimétrie variable selon l'une quelconque des revendications précédentes, dans laquelle les dites matrices de conversion colorimétriques desdites images de coiffure font partie chacune d'un ensemble de métadonnées associées à chacune desdites images de coiffure. 8. Method of simulation of a hair colorimetric variable according to any one of the preceding claims, wherein said colorimetric conversion matrices of said hairstyle images each part of a set of metadata associated with each of said hairstyle images.
9. Méthode de simulation d'une chevelure à colorimétrie variable selon la revendication 7, dans laquelle lesdites métadonnées comprennent en outre des attributs de l'image de coiffure, dont des paramètres de prise de vue. 9. The method of simulating a hair colorimetric variable according to claim 7, wherein said metadata further comprises attributes of the hairstyle image, including shooting parameters.
10. Dispositif de simulation d'une chevelure à colorimétrie variable comprenant : Apparatus for simulating a hair of variable colorimetry comprising:
Des moyens de stockage comprenant :  Storage means comprising:
o une première base de données (101) avec un nombre donné d'images de coiffures de styles donnés (100A - 1 14A, 100B - H4B), et pour chaque image de coiffure d'un style donné, au moins une matrice de conversion colorimétrique associée permettant l'obtention de ladite image de coiffure par application de ladite matrice à une image de coiffure de référence de même style; o a first database (101) with a given number of hairstyle images of given styles (100 A - 1 14 A , 100 B - H4 B ), and for each hairstyle image of a given style, at least an associated colorimetric conversion matrix making it possible to obtain said hairstyle image by applying said matrix to a reference hairstyle image of the same style;
o une seconde base de données (102) avec, pour un nombre donné de lotions capillaires (Li - LK), au moins une matrice de conversion colorimétrique par lotion; o a second database (102) with, for a given number of hair lotions (Li - L K ), at least one colorimetric conversion matrix per lotion;
des moyens d'acquisition d'une image numérique initiale d'une personne (400) ;  means for acquiring an initial digital image of a person (400);
une unité de calcul (62) permettant :  a computing unit (62) for:
o la détermination par reconnaissance d'images à partir d'une image d'une coiffure (401) extraite de l'image numérique initiale de la personne (400) d'une image de coiffure ressemblante dans la première base de données, o l'identification dans la première base de données d'une image de coiffure de référence de même style que celui de l'image de coiffure ressemblante et d'une matrice de conversion colorimétrique associée à l'image de coiffure ressemblante, la création d'un avatar (410) de ladite personne, superposant à l'image du visage de la personne (402) préalablement extraite de ladite image initiale, une image de coiffure (403) reconstituée par application à une image de coiffure de référence de ladite première base de données (101) d'une matrice de conversion colorimétrique associée à l'image de coiffure ressemblante, et the image recognition determination from an image of a hairstyle (401) extracted from the initial digital image of the person (400) of a similar hairstyle image in the first database, where identification in the first database of a reference hairstyle image of the same style as that of the hairstyle-like image and of a colorimetric conversion matrix associated with the hairstyle-like image, the creation of an avatar (410) of said person superimposing on the image of the person's face (402) previously extracted from said initial image, a a hairstyle image (403) reconstructed by applying to a reference hairstyle image of said first database (101) a colorimetric conversion matrix associated with the hairstyle-like image, and
o la transformation de ladite image reconstituée par application d'une matrice de conversion colorimétrique de ladite seconde base de données (102) correspondant à la lotion capillaire choisie pour simuler la couleur attendue.  transforming said reconstituted image by applying a colorimetric conversion matrix of said second database (102) corresponding to the hair lotion chosen to simulate the expected color.
11. Dispositif de simulation d'une chevelure à colorimétrie variable selon la revendication 10, dans lequel lesdits moyens de stockage sont agencés dans un serveur (61) situés à distance de l'unité de calcul (62), et comprenant en outre une connexion à distance (63) entre ledit serveur et l'unité de calcul. Apparatus for simulating a hair of variable colorimetry according to claim 10, wherein said storage means is arranged in a server (61) remote from the computing unit (62), and further comprising a connection remote (63) between said server and the computing unit.
12. Produit programme d'ordinateur comprenant des instructions de code de programme enregistrés sur un support lisible par un ordinateur, pour l'exécution des étapes du procédé de la méthode de simulation d'une chevelure à colorimétrie variable selon l'une au moins des revendications 1 à 9, lorsque ledit programme est exécuté sur un ordinateur. 12. A computer program product comprising program code instructions recorded on a computer-readable medium for performing the steps of the method of the hair simulation method with variable colorimetry according to at least one of the Claims 1 to 9, when said program is run on a computer.
EP12784506.3A 2011-10-18 2012-10-18 Method for simulating hair having variable colorimetry and device for implementing said method Withdrawn EP2768339A2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
FR1159396A FR2981254A1 (en) 2011-10-18 2011-10-18 METHOD OF SIMULATING A VARIABLE COLORIMETRY HAIR AND DEVICE FOR IMPLEMENTING THE METHOD
PCT/EP2012/070689 WO2013057210A2 (en) 2011-10-18 2012-10-18 Method for simulating hair having variable colorimetry and device for implementing said method

Publications (1)

Publication Number Publication Date
EP2768339A2 true EP2768339A2 (en) 2014-08-27

Family

ID=47177934

Family Applications (1)

Application Number Title Priority Date Filing Date
EP12784506.3A Withdrawn EP2768339A2 (en) 2011-10-18 2012-10-18 Method for simulating hair having variable colorimetry and device for implementing said method

Country Status (4)

Country Link
US (1) US20140306982A1 (en)
EP (1) EP2768339A2 (en)
FR (1) FR2981254A1 (en)
WO (1) WO2013057210A2 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2803039A1 (en) * 2012-01-13 2014-11-19 Wisimage Hair colouring device and method
EP3100240B1 (en) 2014-01-31 2018-10-31 Empire Technology Development LLC Evaluation of augmented reality skins
US9953462B2 (en) * 2014-01-31 2018-04-24 Empire Technology Development Llc Augmented reality skin manager
WO2015116183A2 (en) 2014-01-31 2015-08-06 Empire Technology Development, Llc Subject selected augmented reality skin
EP3100256A4 (en) 2014-01-31 2017-06-28 Empire Technology Development LLC Augmented reality skin evaluation
JP2017054337A (en) * 2015-09-10 2017-03-16 ソニー株式会社 Image processor and method
WO2017127784A1 (en) * 2016-01-21 2017-07-27 Skwarek Alison M Virtual hair consultation
WO2018084241A1 (en) * 2016-11-07 2018-05-11 らしさ・ドット・コム株式会社 Hair style simulation device, hair style simulation method, and computer program
US10846838B2 (en) * 2016-11-25 2020-11-24 Nec Corporation Image generation device, image generation method, and storage medium storing program
US11160353B2 (en) 2019-04-05 2021-11-02 L'oreal Bead assembly for custom formulation systems
US11136233B2 (en) 2019-04-05 2021-10-05 L'oreal Fluid formulation assembly for custom formulation systems
US11076683B2 (en) 2019-04-05 2021-08-03 L'oreal Systems and methods for creating custom formulations
US10849832B2 (en) 2019-04-05 2020-12-01 L'oreal Custom formulation systems
EP3723050A1 (en) * 2019-04-09 2020-10-14 Koninklijke Philips N.V. Modifying an appearance of hair

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU5201698A (en) 1996-11-12 1998-06-03 Mirror Software Corporation Imaging system for simulating hair styles
EP1374720A1 (en) * 2002-06-26 2004-01-02 The Procter & Gamble Company Method and apparatus for predicting the result of a coloration
JP2005327111A (en) * 2004-05-14 2005-11-24 Pioneer Electronic Corp Hairstyle display system and method, and computer program
EP2124185B1 (en) 2007-02-16 2017-08-30 Kao Corporation Hair image display method and display device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See references of WO2013057210A2 *

Also Published As

Publication number Publication date
US20140306982A1 (en) 2014-10-16
WO2013057210A2 (en) 2013-04-25
WO2013057210A3 (en) 2013-08-15
FR2981254A1 (en) 2013-04-19

Similar Documents

Publication Publication Date Title
EP2768339A2 (en) Method for simulating hair having variable colorimetry and device for implementing said method
US11854070B2 (en) Generating virtual makeup products
US11854072B2 (en) Applying virtual makeup products
Zhang et al. Palette-based image recoloring using color decomposition optimization
EP1482724B1 (en) Image processing method for digital images with exposure correction by recognition of skin areas of the subject.
Žeger et al. Grayscale image colorization methods: Overview and evaluation
WO2008050062A1 (en) Method and device for the virtual simulation of a sequence of video images
FR3082649A1 (en) METHOD FOR APPLYING COLORS ON A TEXTURE
Tan et al. Pigmento: Pigment-based image analysis and editing
FR3062738B1 (en) METHOD FOR PROCESSING AN INPUT IMAGE, DEVICE, TERMINAL EQUIPMENT AND COMPUTER PROGRAM
Todo et al. Image-based translucency transfer through correlation analysis over multi-scale spatial color distribution
EP3763116B1 (en) Process of reconstructing a color image acquired by an image sensor covered with a color filter mosaic
Delanoy et al. A Generative Framework for Image‐based Editing of Material Appearance using Perceptual Attributes
WO2021245273A1 (en) Method and device for three-dimensional reconstruction of a face with toothed portion from a single image
EP2803039A1 (en) Hair colouring device and method
Jang et al. Spectrum‐Based Color Reproduction Algorithm for Makeup Simulation of 3D Facial Avatar
JP4146506B1 (en) Mosaic image generating apparatus, method and program
WO2021123209A1 (en) Method for segmenting an input image showing a document containing structured information
Arora et al. Digital restoration of old paintings
FR3072806B1 (en) METHOD FOR CALCULATING A GLOBAL DESCRIPTOR OF AN IMAGE
Zhao et al. Automatic color extraction algorithm of graphic design image based on artificial intelligence
Xiao et al. Optimization‐Based Gradient Mesh Colour Transfer
Parraman et al. User preferences in colour enhancement for unsupervised printing methods
Zhang et al. Exemplar‐Based Portrait Photograph Enhancement as Informed by Portrait Paintings
FR3132370A1 (en) Method for simulating an application of a cosmetic make-up product on a body surface

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20140513

AK Designated contracting states

Kind code of ref document: A2

Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

DAX Request for extension of the european patent (deleted)
STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN

18D Application deemed to be withdrawn

Effective date: 20170503