FR2693580A1 - Creation/verification method for signature of object represented by digital pixel image - involves calculating reference from original signature and control histogram in verification stage, and calculating comparison of pixels - Google Patents

Creation/verification method for signature of object represented by digital pixel image - involves calculating reference from original signature and control histogram in verification stage, and calculating comparison of pixels Download PDF

Info

Publication number
FR2693580A1
FR2693580A1 FR9302550A FR9302550A FR2693580A1 FR 2693580 A1 FR2693580 A1 FR 2693580A1 FR 9302550 A FR9302550 A FR 9302550A FR 9302550 A FR9302550 A FR 9302550A FR 2693580 A1 FR2693580 A1 FR 2693580A1
Authority
FR
France
Prior art keywords
histogram
pixels
amplitude
signature
level
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.)
Granted
Application number
FR9302550A
Other languages
French (fr)
Other versions
FR2693580B1 (en
Inventor
Corvett James
Robert Pierre
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.)
Individual
Original Assignee
Individual
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
Priority claimed from FR9205340A external-priority patent/FR2690543A1/en
Application filed by Individual filed Critical Individual
Priority to FR9302550A priority Critical patent/FR2693580B1/en
Publication of FR2693580A1 publication Critical patent/FR2693580A1/en
Application granted granted Critical
Publication of FR2693580B1 publication Critical patent/FR2693580B1/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0006Industrial image inspection using a design-rule based approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/50Extraction of image or video features by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
    • G06V10/507Summing image-intensity values; Histogram projection analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

In a first original signature creation phase, a window is positioned in the digital image representing the object. A reference is calculated which consists of counting and classifying the pixels in the window as a function of different amplitude levels. A characteristic parameter is extracted from the reference histogram corresponding to the original signature and its value is calculated. In a second verification stage a calculating window is positioned over a zone of the object to be verified. A histogram is calculated in a similar way to the first stage. The characteristic value parameter is calculated for the histogram and the signatures are compared. ADVANTAGE - Improves known methods for recognising shapes using artificial vision techniques.

Description

Procédé perfectionné de création/vérification de la signature d'un objet représenté sur une image numérique, à l'aide d'histogrammes calculés dans des fenêtres positionnées dans l'image. Improved process for creating / verifying the signature of an object represented on a digital image, using histograms calculated in windows positioned in the image.

Le domaine de l'invention est celui de la vision artificielle appliquée à la reconnaissance de forme entendue au sens large. The field of the invention is that of artificial vision applied to shape recognition understood in the broad sense.

Une application particulièrement adaptée à l'invention est le contrôle de qualité. Un "système qualité" tel que défini par les normes ISO 9000 doit permettre, par mesure sans contact, d'identifier et de préparer un enregistrement relatif par exemple à la qualité de fabrication d'un objet. Il s'agit de déterminer au moins un paramètre caractéristique de l'objet contrôlé, ce paramètre étant utilisé ensuite pour vérifier la conformité d'autres objets du même type. Les mesures étant effectuées sans contact, un objet contrôlé ne subit aucun dommage. An application particularly suited to the invention is quality control. A "quality system" as defined by the ISO 9000 standards must make it possible, by contactless measurement, to identify and prepare a record relating, for example, to the quality of manufacture of an object. This involves determining at least one characteristic parameter of the controlled object, this parameter then being used to check the conformity of other objects of the same type. The measurements being carried out without contact, a controlled object does not suffer any damage.

Plus précisément, l'invention concerne un procédé de création/vérification, de la "signature" (constituée d'un ou plusieurs paramètres de contrôle) d'un objet représenté sur une image numérique décrite pixel par pixel, de façon à comparer la signature d'une zone d'objet à une signature originale. More specifically, the invention relates to a method of creation / verification of the "signature" (consisting of one or more control parameters) of an object represented on a digital image described pixel by pixel, so as to compare the signature from an object area to an original signature.

L'invention s'applique à deux grandes catégories de situations d'analyse d'image
- le cas où l'on souhaite comparer un objet à contrôler par rapport
à un objet type de référence
- le cas où l'on souhaite analyser un objet unique au moyen d'un
procédé de comparaison de signature, par exemple pour vérifier
l'homogénéité de sa signature en différents endroits, ou encore pour
détecter des transitions dans l'objet ou même le contour de l'objet.
The invention applies to two main categories of image analysis situations
- the case where one wishes to compare an object to be checked against
to a reference type object
- the case where one wishes to analyze a single object by means of a
signature comparison process, for example to check
the homogeneity of its signature in different places, or even for
detect transitions in the object or even the outline of the object.

L'invention peut s'appliquer dans tous les cas où un système de prise de vue peut mémoriser, pour chaque objet à contrôler, une image contenant cet objet. The invention can be applied in all cases where a shooting system can memorize, for each object to be checked, an image containing this object.

Il peut s'agir, notamment, d'une caméra fixe située en regard d'un tapis roulant entraînant des objets issus d'une même chaîne de fabrication.It can be, in particular, a fixed camera located opposite a conveyor belt driving objects from the same production line.

Les solutions connues de mise en oeuvre d'un tel système de vision artificielle appliquée au contrôle de qualité présentent de nombreux inconvénients.  The known solutions for implementing such an artificial vision system applied to quality control have many drawbacks.

En effet, un tel système est généralement très complexe et nécessite une grande quantité de matériels spécialisés. Cette complexité induit une implantation longue et coûteuse des matériels. Indeed, such a system is generally very complex and requires a large amount of specialized equipment. This complexity leads to a long and costly installation of equipment.

L'utilisation d'un tel système est donc obligatoirement liée à l'assistance d'un intervenant extérieur spécialiste, qui doit être présent non seulement lors de la phase de mise en place mais également lors de toutes les phases d'adaptation du système au contrôle d'un nouveau type d'objet. The use of such a system is therefore necessarily linked to the assistance of an outside specialist, who must be present not only during the installation phase but also during all the phases of adaptation of the system to control of a new type of object.

A cette situation de dépendance du fournisseur, s'ajoute le surcoût des interventions et l'impossibilité de préserver une confidentialité satisfaisante sur le savoir-faire de l'utilisateur. To this situation of dependence on the supplier, there is the additional cost of the interventions and the impossibility of preserving a satisfactory confidentiality on the know-how of the user.

Par ailleurs, cette assistance d'un intervenant extérieur n'étant souvent que partielle, un opérateur doit assurer le suivi et le fonctionnement du système. Cet opérateur, utilisateur habituel du système, se trouve confronté à un système très peu convivial, complexe et donc difficile à intégrer. In addition, since this assistance from an outside operator is often only partial, an operator must monitor and operate the system. This operator, a regular user of the system, finds himself confronted with a system that is not very user-friendly, complex and therefore difficult to integrate.

Les procédés connus de contrôle d'objets ont généralement visé à simplifier et économiser les opérations de traitement du signal mises en oeuvre. Ainsi, on trouve généralement la succession des étapes suivantes
- sur une console affichant une image contenant un objet type, un opérateur pose une ligne de jauge horizontale et une ligne de jauge verticale permettant de repérer la position de l'objet dans l'image.
The known methods of controlling objects have generally aimed at simplifying and saving the signal processing operations implemented. Thus, we generally find the succession of the following stages
- on a console displaying an image containing a typical object, an operator places a horizontal gauge line and a vertical gauge line making it possible to locate the position of the object in the image.

- en fonctionnement, le système mémorise une image contenant un objet à contrôler puis évalue un décalage éventuel par rapport aux lignes de jauge posées auparavant. L'objet est alors recalé dans l'image en fonction de ce décalage. - in operation, the system memorizes an image containing an object to be checked and then assesses any offset with respect to the gauge lines previously laid. The object is then readjusted in the image according to this offset.

- enfin, le système effectue des mesures relativement succinctes (à partir de quelques lignes de jauge, ou d'un comptage de points ou d'objets (groupes de points) sur les deux images contenant respectivement l'objet type et l'objet à contrôler recalé. A partir de ces mesures, le système apprécie la qualité de l'objet à contrôler et prend une décision quant à sa conformité avec l'objet type, en fonction de tolérances définies a priori par l'opérateur. - finally, the system performs relatively brief measurements (from a few gauge lines, or from a count of points or objects (groups of points) on the two images containing respectively the standard object and the object to be From these measurements, the system assesses the quality of the object to be checked and makes a decision as to its conformity with the standard object, according to tolerances defined a priori by the operator.

Un tel système est notamment très dépendant du moindre décalage de l'une quelconque des lignes de jauge utilisées pour le recalage ou les mesures dimensionnelles. En effet, si l'image de l'un des objets présente par exemple un léger défaut dans une zone où est posée une ligne de jauge, les opérations de recalage ou de mesure dimensionnelle seront erronées. Such a system is notably very dependent on the slightest offset of any of the gauge lines used for registration or dimensional measurements. Indeed, if the image of one of the objects presents for example a slight defect in an area where a gauge line is placed, the readjustment or dimensional measurement operations will be erroneous.

En outre, dans les systèmes existants, le procédé de contrôle comprend également fréquemment une étape de binarisation des pixels composant l'image numérique contenant l'objet. Une telle binarisation consiste à donner une première valeur de luminance à tous les pixels dont la luminance est inférieure à un seuil de luminance, les pixels de luminance supérieure à ce seuil prenant une seconde valeur de luminance. Cette étape de binarisation s'applique aussi bien à l'objet type qu'à l'objet à contrôler et a pour but de ne conserver que les contours de l'objet. Or, suivant l'éclairage, l'objet apparaît plus ou moins clairement vis-à-vis du reste de l'image. Si l'objet ne se distingue pas nettement, l'étape de binarisation risque de détruire une partie de l'information, ce qui se traduit par une perte partielle ou totale des contours de l'objet. In addition, in existing systems, the control method also frequently comprises a step of binarization of the pixels composing the digital image containing the object. Such binarization consists in giving a first luminance value to all the pixels whose luminance is less than a luminance threshold, the pixels of luminance greater than this threshold taking a second luminance value. This binarization step applies to both the type object and the object to be checked and aims to keep only the contours of the object. However, depending on the lighting, the object appears more or less clearly vis-à-vis the rest of the image. If the object is not clearly distinguishable, the binarization step risks destroying part of the information, which results in a partial or total loss of the object's contours.

En plus de l'imperfection du principe de repérage d'objet à deux lignes de jauge et de la vulnérabilité aux variations d'éclairage, les systèmes existants présentent de nombreux autres défauts tels que la sensibilité aux bruits dans l'image, ou encore le fait que les systèmes existants travaillent généralement sur l'image point à point. Dans une telle image, tous les points sont obligatoirement définis. Or, Si les valeurs des pixels correspondant à certains points de l'image sont erronées, les calculs de distance ou de repérage prenant en compte ces valeurs sont faux. In addition to the imperfection of the principle of locating an object with two gauge lines and of the vulnerability to lighting variations, the existing systems have many other defects such as sensitivity to noise in the image, or even the the fact that existing systems generally work on the point-to-point image. In such an image, all points are necessarily defined. However, if the values of the pixels corresponding to certain points of the image are erroneous, the distance or location calculations taking these values into account are false.

L'invention a notamment pour objectif de pallier ces différents inconvénients de l'état de la technique. The invention particularly aims to overcome these various drawbacks of the state of the art.

Plus précisément, un objectif de l'invention est de fournir un procédé de création/vérification de la signature d'un objet représenté sur une image numérique décrite pixel par pixel, de façon à comparer la signature d'une zone d'objet à une signature originale
L'invention a également pour objectif de fournir un tel procédé permettant une réduction importante des délais et des coûts d'implantation d'un système mettant en oeuvre ce procédé.
More specifically, an objective of the invention is to provide a method of creating / verifying the signature of an object represented on a digital image described pixel by pixel, so as to compare the signature of an object area with a original signature
The invention also aims to provide such a method allowing a significant reduction in the time and cost of setting up a system implementing this method.

Un autre objectif de l'invention est de fournir un tel procédé facile à mettre en oeuvre, simple d'utilisation et ne nécessitant aucune intervention extérieure, permettant ainsi à l'utilisateur de ce procédé de le mettre en oeuvre de façon autonome. Another objective of the invention is to provide such a method which is easy to implement, simple to use and does not require any external intervention, thus allowing the user of this method to implement it independently.

L'invention a également pour objectif de fournir un tel procédé permettant de réduire la vulnérabilité des mesures aux variations d'éclairage, et la sensibilité aux "bruits" dans l'image. The invention also aims to provide such a method making it possible to reduce the vulnerability of the measurements to variations in lighting, and the sensitivity to “noise” in the image.

L'invention a également pour objectif de fournir un tel procédé permettant de pallier les inconvénients dus à l'aspect discrétisé et "pointilliste" de l'image. The invention also aims to provide such a method to overcome the drawbacks due to the discretized and "pointillist" aspect of the image.

Ces objectifs, ainsi que d'autres qui apparaîtront par la suite, sont atteints selon un premier mode de mise en oeuvre de l'invention à l'aide d'un procédé de création/vérification de la signature d'un objet représenté sur une image numérique décrite pixel par pixel, de façon à comparer la signature d'une zone d'objet à une signature originale, caractérisé en ce qu'il comprend: : - d'une part une première phase de création d'une signature originale de
l'objet comprenant les étapes suivantes
* positionnement d'une fenêtre dans l'image numérique représentant
l'objet
* calcul d'un histogramme de référence consistant à compter et
classer le nombre de pixels de ladite fenêtre en fonction de
différents niveaux d'amplitude;;
* extraction d'un paramètre caractéristique dudit histogramme de
référence correspondant à ladite signature originale, et calcul de sa
valeur - d'autre part une seconde phase de vérification de la signature à contrôler
comprenant les étapes suivantes
* positionnement d'une fenêtre de calcul sur une zone d'objet à
contrôler
* calcul d'un histogramme dans les mêmes conditions que dans la
phase de création de signature consistant à compter et à classer le
nombre de pixels de ladite fenêtre en fonction de différents niveaux
d'amplitude
* calcul de la valeur dudit paramètre caractéristique pour l'histo
gramme correspondant à la signature de la zone d'objet à contrôler;
* comparaison des signatures.
These objectives, as well as others which will appear subsequently, are achieved according to a first embodiment of the invention using a method of creation / verification of the signature of an object represented on a digital image described pixel by pixel, so as to compare the signature of an object area with an original signature, characterized in that it comprises: - on the one hand a first phase of creation of an original signature of
the object comprising the following steps
* positioning of a window in the digital image representing
the object
* calculation of a reference histogram consisting of counting and
classify the number of pixels of said window according to
different levels of amplitude ;;
* extraction of a characteristic parameter from said histogram of
reference corresponding to said original signature, and calculation of its
value - on the other hand a second phase of verification of the signature to be checked
including the following steps
* positioning of a calculation window on an object area to
control
* calculation of a histogram under the same conditions as in the
signature creation phase consisting of counting and classifying the
number of pixels of said window according to different levels
amplitude
* calculation of the value of said characteristic parameter for the histo
gram corresponding to the signature of the object area to be checked;
* comparison of signatures.

Par niveau d'amplitude d'un pixel, on entend ici un niveau d'intensité lumineuse. By amplitude level of a pixel is meant here a level of light intensity.

Ainsi, ce mode de mise en oeuvre correspond au cas où l'on souhaite analyser un objet unique au moyen d'un procédé de comparaison de signature, par exemple pour vérifier l'homogénéité de sa signature en différents endroits, ou encore pour détecter des transitions dans l'objet ou même le contour de l'objet. Thus, this mode of implementation corresponds to the case where it is desired to analyze a single object by means of a signature comparison method, for example to verify the homogeneity of its signature in different places, or else to detect transitions in the object or even the outline of the object.

Cette méthode présente de nombreux avantages, et peut ainsi notamment fonctionner par autoapprentissage, le processus étant autoadaptatif. This method has many advantages, and can in particular work by self-learning, the process being self-adapting.

En effet, par exemple dans le cas où l'on recherche une transition dans l'objet, l'opérateur positionne la fenêtre de façon qu'elle comporte une première sous-zone connue qui permettra de calculer des histogrammes de référence, puis le système recherchera itérativement, en s'éloignant de cette sous-zone en direction de la transition à détecter, la localisation de la transition par comparaison des histogrammes successifs obtenus dans les sous-zones successives explorées par comparaison avec l'histogramme de référence. Indeed, for example in the case where a transition is sought in the object, the operator positions the window so that it comprises a first known sub-area which will allow the calculation of reference histograms, then the system will iteratively search, moving away from this sub-area in the direction of the transition to be detected, the location of the transition by comparison of the successive histograms obtained in the successive sub-areas explored by comparison with the reference histogram.

Ce premier mode de mise en oeuvre concerne par exemple avantageusement un procédé de créatiolilvérification de la signature d'un objet, du type consistant à détecter une zone d'extrémité dudit objet, comprenant les étapes suivantes - on positionne une fenêtre dans ladite zone d'extrémité, - on établit des premiers histogrammes de référence par balayage des lignes
d'écran situées dans ladite fenêtre et du côté du centre de l'objet, - on calcule les histogrammes d'exploration correspondant à une succession
de lignes s'étendant sensiblement perpendiculairement à la direction de
mesure, en s'éloignant du centre de l'objet;; - on compare les histogrammes d'exploration aux histogrammes de
référence, jusqu'à détecter un histogramme divergent qui présente une
valeur du paramètre caractéristique de comparaison avec la valeur dudit
paramètre caractéristique de l'histogramme de référence d'une différence
supérieure à une valeur prédéterminée, la ligne correspondant audit
histogramme divergent étant alors réputée constituer ladite extrémité de
l'objet.
This first embodiment relates, for example, advantageously to a method for creating a signature of an object, of the type consisting in detecting an end zone of said object, comprising the following steps - a window is positioned in said zone. end, - first reference histograms are established by scanning the lines
screen located in said window and on the side of the center of the object, - the exploration histograms corresponding to a succession are calculated
of lines extending substantially perpendicular to the direction of
measure, moving away from the center of the object ;; - we compare the exploration histograms to the histograms of
reference, until detecting a divergent histogram which presents a
value of the characteristic parameter for comparison with the value of said
characteristic parameter of the reference histogram of a difference
greater than a predetermined value, the line corresponding to said
divergent histogram then being deemed to constitute said end of
the object.

Dans ce cas, la fenêtre est constituée par une ligne située du côté du centre de l'objet. In this case, the window consists of a line located on the side of the center of the object.

D'autre part, on positionne en quelque sorte une pluralité de fenêtres de mesures correspondant à chacune des lignes successives explorées jusqu'à trouver l'histogramme divergent révélateur de l'extrémité de l'objet. On the other hand, we sort of position a plurality of measurement windows corresponding to each of the successive lines explored until we find the divergent histogram revealing the end of the object.

Ceci veut dire que c'est dans l'objet à contrôler lui même que l'on va trouver à la fois l'histogramme de référence et les histogrammes à comparer à l'histogramme de référence, et qu'on applique répétivement le procédé du premier mode de mise en oeuvre. This means that it is in the object to be checked itself that we will find both the reference histogram and the histograms to be compared to the reference histogram, and that we repeatedly apply the process of first mode of implementation.

Ce premier mode de mise en oeuvre concerne également avantageusement un procédé de création/vérification de la signature d'un objet du type consistant à détecter une condition d'homogénéité d'un objet en comparant des signatures de différentes zones dudit objet, dans lequel: - on positionne une pluralité de fenêtres dans ledit objet, - on établit un histogramme pour chacune desdites zones d'objet délimitée
par chacune desdites fenêtres, - on calcule un paramètre caractéristique d'histogramme constituant une
référence pour l'objet à contrôler, ledit paramètre à contrôler étant
élaboré à partir des histogrammes calculés pour la pluralité des fenêtres.
This first embodiment also advantageously relates to a method of creating / verifying the signature of an object of the type consisting in detecting a condition of homogeneity of an object by comparing signatures of different areas of said object, in which: - a plurality of windows are positioned in said object, - a histogram is established for each of said delimited object zones
by each of said windows, - a characteristic histogram parameter constituting a
reference for the object to be checked, said parameter to be checked being
developed from histograms calculated for the plurality of windows.

Avantageusement, ledit paramètre caractéristique d'un histogramme appartient au groupe comprenant - une mesure de surface déterminée à partir dudit histogramme - une largeur correspondant à l'intervalle en abscisse pour lequel la
représentation graphique dudit histogramme est située au-dessus d'une
valeur prédéterminée - une hauteur correspondant à la valeur maximale en ordonnée de la
représentation graphique dudit histogramme.
Advantageously, said characteristic parameter of a histogram belongs to the group comprising - a surface measurement determined from said histogram - a width corresponding to the interval on the abscissa for which the
graphical representation of said histogram is located above a
predetermined value - a height corresponding to the maximum value on the ordinate of the
graphical representation of said histogram.

Dans un second mode de mise en oeuvre, le procédé de création/vérification de la signature d'un objet représenté sur une image numérique décrite pixel par pixel, du type consistant à comparer un objet à contrôler par rapport à un objet type de référence, est caractérisé en ce qu'il comprend: - d'une part une première phase de création d'une signature originale d'un
objet type représenté sur une image numérique de référence comprenant
les étapes suivantes
* repérage de la position dudit objet type dans l'image de référence;;
* positionnement d'une fenêtre dans ladite image de référence
* calcul d'un histogramme de référence consistant à compter et
classer le nombre de pixels de ladite fenêtre en fonction de
différents niveaux d'amplitude
* extraction d'un paramètre caractéristique dudit histogramme de
référence correspondant à ladite signature originale, et calcul de sa
valeur - d'autre part une seconde phase de vérification de la signature d'un objet
à contrôler représenté sur une image numérique de travail comprenant les
étapes suivantes
* repérage de la position dudit objet à contrôler dans l'image de
travail
* calcul du décalage entre ladite position de l'objet à contrôler dans
l'image de travail et ladite position de l'objet type dans l'image de
référence
* décalage de ladite fenêtre de façon qu'elle soit positionnée de la
même façon par rapport à l'objet à contrôler et par rapport à
l'objet type
* calcul d'un histogramme dans les mêmes conditions que dans une
phase de création de signature consistant à compter et classer le
nombre de pixels de ladite fenêtre en fonction des différents
niveaux d'amplitude
* calcul de la valeur dudit paramètre caractéristique dudit histo
gramme correspondant à la signature de l'objet à contrôler
* comparaison de la signature de l'objet à contrôler avec la signature
originale afin d'apprécier la qualité dudit objet à contrôler.
In a second embodiment, the method of creating / verifying the signature of an object represented on a digital image described pixel by pixel, of the type consisting in comparing an object to be checked with respect to a reference type object, is characterized in that it comprises: - on the one hand a first phase of creation of an original signature of a
typical object represented on a digital reference image comprising
the next steps
* location of the position of said standard object in the reference image ;;
* positioning of a window in said reference image
* calculation of a reference histogram consisting of counting and
classify the number of pixels of said window according to
different amplitude levels
* extraction of a characteristic parameter from said histogram of
reference corresponding to said original signature, and calculation of its
value - on the other hand a second phase of verification of the signature of an object
to be checked represented on a digital working image comprising the
following steps
* identification of the position of said object to be checked in the image of
job
* calculation of the offset between said position of the object to be checked in
the working image and said position of the type object in the image of
reference
* offset of said window so that it is positioned from the
same way with respect to the object to be checked and with respect to
the type object
* calculation of a histogram under the same conditions as in a
signature creation phase consisting of counting and classifying the
number of pixels of said window according to the different
amplitude levels
* calculation of the value of said characteristic parameter of said histo
gram corresponding to the signature of the object to be checked
* comparison of the signature of the object to be checked with the signature
original in order to assess the quality of said object to be checked.

Ce mode de mise en oeuvre correspond au cas où l'on souhaite comparer un objet à contrôler par rapport à un objet type de référence. This mode of implementation corresponds to the case where one wishes to compare an object to be checked with respect to a reference type object.

Ainsi, dans ce cas, l'invention propose de substituer à une comparaison difficile de deux objets, la comparaison aisée de deux histogrammes représentant chacun un des deux objets à comparer. En effet, ces histogrammes présentent l'avantage d'être faciles à calculer et de permettre la définition de mesures fiables de reconnaissance. Thus, in this case, the invention proposes to replace a difficult comparison of two objects, the easy comparison of two histograms each representing one of the two objects to be compared. Indeed, these histograms have the advantage of being easy to calculate and allowing the definition of reliable recognition measures.

Dans le premier comme dans le second mode de mise en oeuvre, l'invention permet de faire un traitement parallèle pouvant être sous-traité par un processeur secondaire. In the first as in the second mode of implementation, the invention makes it possible to make a parallel processing which can be subcontracted by a secondary processor.

Cette méthode rend également possible l'analyse des contours de forme complexe d'une manière beaucoup plus rapide (et suffisamment fiable) que si on
souhaitait modéliser a priori la forme complexe.
This method also makes it possible to analyze contours of complex shape in a much faster (and sufficiently reliable) way than if we
wanted to model a priori the complex form.

Cette méthode s'applique même au cas où le contour n'est pas modélisable. This method applies even to the case where the contour cannot be modeled.

De plus, les histogrammes sont calculés pour des objets pris dans leur
ensemble, ou bien pour des portions d'objets obtenues en apposant des fenêtres ou
masques de façon à limiter encore les traitements d'image et de comparaison.
In addition, histograms are calculated for objects taken from their
together, or for portions of objects obtained by affixing windows or
masks so as to further limit image and comparison processing.

Un critère de caractérisation d'un histogramme correspond par exemple
à la somme des pixels de chaque valeur d'amplitude pondérée par un coefficient
prédéterminé affecté à chaque valeur d'amplitude.
A criterion for characterizing a histogram corresponds for example
the sum of the pixels of each amplitude value weighted by a coefficient
predetermined assigned to each amplitude value.

Si les coefficients de pondération sont identiques, cette somme correspond à une surface. If the weighting coefficients are identical, this sum corresponds to an area.

En prenant des coefficients distincts, on peut privilégier la prise en compte de sous-zones plus lumineuses, moins lumineuses, ou de luminosité déterminée. By taking separate coefficients, we can favor the taking into account of more luminous, less luminous, or of determined luminosity sub-zones.

Dans un mode de réalisation préférentiel de l'invention, ledit paramètre caractéristique est une mesure de surface, ladite étape de calcul de ladite mesure de surface consistant à - répartir lesdits pixels dudit histogramme en au moins deux groupes de
pixels, chacun desdits groupes de pixels étant associé à une plage distincte
de niveaux d'amplitude successifs, deux groupes successifs étant associés à
deux plages adjacentes de niveaux d'amplitude et séparés par un niveau
d'amplitude de séparation; - déterminer ladite mesure de surface en comptant le nombre de pixels d'au
moins un desdits groupes de pixels.
In a preferred embodiment of the invention, said characteristic parameter is a surface measurement, said step of calculating said surface measurement consisting in - distributing said pixels of said histogram in at least two groups of
pixels, each of said pixel groups being associated with a separate range
successive amplitude levels, two successive groups being associated with
two adjacent ranges of amplitude levels and separated by a level
separation amplitude; - determine said surface measurement by counting the number of pixels at least
minus one of said pixel groups.

De cette façon, chaque groupe de pixels peut correspondre à une mesure directe de la surface d'une région de l'image dont le niveau d'amplitude est sensiblement uniforme. Ainsi, pour une image comprenant par exemple trois régions distinctes, l'histogramme correspondant comprend trois pics à chacun desquels on peut associer un groupe de pixels. In this way, each group of pixels can correspond to a direct measurement of the surface of a region of the image whose amplitude level is substantially uniform. Thus, for an image comprising for example three distinct regions, the corresponding histogram comprises three peaks to each of which a group of pixels can be associated.

Avantageusement, ledit histogramme comprend un premier et un second groupes de pixels, ledit premier groupe contenant les pixels dont le niveau d'amplitude est inférieur à un niveau d'amplitude de séparation, ledit second groupe contenant les pixels dont le niveau d'amplitude est supérieur audit niveau d'amplitude de séparation, la détermination dudit niveau d'amplitude de séparation comprenant les étapes suivantes - recherche d'un premier niveau d'amplitude (316) correspondant à un
nombre maximal de pixels possédant un même niveau d'amplitude - recherche, parmi les niveaux restants, d'un second niveau d'amplitude (34)
d'une part correspondant à un nombre maximal de pixels possédant un
même niveau d'amplitude et d'autre part répondant aux contraintes
suivantes
* le nombre de pixels possédant ledit second niveau d'amplitude (34)
est supérieur à un niveau de seuil déterminé d'après la moyenne
des nombres de pixels associés à tous les niveaux d'amplitude (31
à 31n);;
* le nombre de niveaux d'amplitude existant entre le second niveau
d'amplitude (34) et-le premier niveau d'amplitude (316) doit être
suffisamment grand
* une valeur crête du second niveau d'amplitude (34) doit être la plus
grande possible, ladite valeur crête étant fonction du nombre de
pixels du second niveau d'amplitude (34) et du nombre de niveaux
d'amplitude existant entre le premier niveau (316) et le second
niveau (34); - recherche d'un troisième niveau d'amplitude (35) d'une part situé entre
lesdits premier (34) et second (316) niveaux d'amplitude et d'autre part
correspondant au nombre de pixels le plus faible, ledit troisième niveau
d'amplitude (35) étant égal audit niveau d'amplitude de séparation.
Advantageously, said histogram comprises a first and a second group of pixels, said first group containing the pixels whose amplitude level is lower than a separation amplitude level, said second group containing the pixels whose amplitude level is higher than said separation amplitude level, the determination of said separation amplitude level comprising the following steps - search for a first amplitude level (316) corresponding to a
maximum number of pixels with the same amplitude level - search among the remaining levels for a second amplitude level (34)
on the one hand corresponding to a maximum number of pixels having a
same level of amplitude and on the other hand meeting the constraints
following
* the number of pixels having said second amplitude level (34)
is above a threshold level determined from the mean
pixel numbers associated with all amplitude levels (31
at 31n) ;;
* the number of amplitude levels existing between the second level
amplitude (34) and the first amplitude level (316) must be
big enough
* a peak value of the second amplitude level (34) must be the most
large possible, said peak value being a function of the number of
pixels of the second amplitude level (34) and of the number of levels
amplitude existing between the first level (316) and the second
level (34); - search for a third amplitude level (35) on the one hand located between
said first (34) and second (316) amplitude levels and secondly
corresponding to the lowest number of pixels, said third level
amplitude (35) being equal to said separation amplitude level.

Ceci correspond au cas le plus simple où l'image ne comprend que deux régions d'intensités lumineuses distinctes. This corresponds to the simplest case where the image only comprises two regions of distinct light intensities.

Dans ce cas, la détermination du niveau d'amplitude de séparation entre les deux groupes de pixels constituant l'histogramme est entièrement automatique. In this case, the determination of the level of separation amplitude between the two groups of pixels constituting the histogram is entirely automatic.

Lorsque l'image (ou la zone d'image) à contrôler et l'image (ou la zone d'image) de référence comprennent au moins deux régions d'intensités lumineuses distinctes, la détermination de chacun desdits niveaux d'amplitude de séparation comprend avantageusement les étapes suivantes - visualisation dudit histogramme de référence - positionnement sur ledit histogramme de référence de deux bornes inférieure et supérieure de niveau d'amplitude de séparation;; - détermination, pour ledit histogramme de référence, dudit niveau d'amplitude de séparation comme étant égal au niveau d'amplitude d'une part compris entre lesdites bornes inférieure et supérieure et d'autre part correspondant à un nombre minimal de pixels possédant un même niveau d'amplitude - positionnement automatique sur ledit histogramme de contrôle de deux bornes inférieure et supérieure compensées, lesdites bornes inférieure et supérieure compensées étant obtenues à partir d'une part desdites bornes inférieure et supérieure et d'autre part d'un facteur de compensation représentatif des variations de luminosité entre les pixels utilisés pour le calcul de l'histogramme de référence et les pixels utilisés pour le calcul de l'histogramme de contrôle - détermination, pour ledit histogramme de contrôle, dudit niveau d'amplitude de séparation comme étant égal au niveau d'amplitude d'une part compris entre lesdites bornes inférieure et supérieure compensées et d'autre part correspondant à un nombre minimal de pixels possédant un même niveau d'amplitude. When the image (or image area) to be checked and the reference image (or image area) comprise at least two regions of distinct light intensities, the determination of each of said levels of separation amplitude advantageously comprises the following steps - display of said reference histogram - positioning on said reference histogram of two lower and upper limits of separation amplitude level; determination of said separation amplitude level for said reference histogram as being equal to the amplitude level on the one hand comprised between said lower and upper bounds and on the other hand corresponding to a minimum number of pixels having the same amplitude level - automatic positioning on said control histogram of two compensated lower and upper bounds, said compensated lower and upper bounds being obtained on the one hand from said lower and upper bounds and on the other hand from a compensation factor representative of the variations in brightness between the pixels used for the calculation of the reference histogram and the pixels used for the calculation of the control histogram - determination, for said control histogram, of said level of separation amplitude as being equal on the amplitude level on the one hand between said lower and upper limits co mpensées and secondly corresponding to a minimum number of pixels having the same level of amplitude.

Dans ce cas, la détermination de chacun des niveaux d'amplitude de séparation nécessite au départ l'intervention de l'opérateur (sur l'histogramme de référence), puis le système travaille automatiquement (sur l'histogramme de contrôle). In this case, the determination of each of the separation amplitude levels initially requires the intervention of the operator (on the reference histogram), then the system works automatically (on the control histogram).

Avantageusement, la définition dudit facteur de compensation appartient au groupe suivant de définitions - le facteur de compensation est égal à un premier rapport entre d'une part le niveau d'amplitude moyen des pixels de l'histogramme de contrôle et d'autre part le niveau d'amplitude moyen des pixels de l'histogramme de référene - le facteur de compensation est égal à un second rapport entre d'une part le niveau d'amplitude de l'histogramme de contrôle correspondant au nombre maximal de pixels possédant un même niveau d'amplitude et d'autre part le niveau d'amplitude de l'histogramme de référence correspondant au nombre maximal de pixels possédant un même niveau d'amplitude - le facteur de compensation est égal à un troisième rapport entre d'une part la largeur de l'histogramme de contrôle et d'autre part la largeur de l'histogramme de référence - le facteur de compensation est égal à une somme pondérée desdits premier, second et troisième rapports. Advantageously, the definition of said compensation factor belongs to the following group of definitions - the compensation factor is equal to a first ratio between on the one hand the average amplitude level of the pixels of the control histogram and on the other hand the average amplitude level of the pixels of the reference histogram - the compensation factor is equal to a second ratio between on the one hand the amplitude level of the control histogram corresponding to the maximum number of pixels having the same level amplitude and on the other hand the amplitude level of the reference histogram corresponding to the maximum number of pixels having the same amplitude level - the compensation factor is equal to a third ratio between on the one hand the width of the control histogram and on the other hand the width of the reference histogram - the compensation factor is equal to a weighted sum of said first, second and third reports.

De cette façon, le procédé selon l'invention permet de s'affranchir des variations de condition d'éclairage. In this way, the method according to the invention makes it possible to overcome variations in lighting conditions.

Préférentiellement, ladite fenêtre est constituée d'un élément fermé unique constitué d'un seul tenant, ou d'une pluralité de tels éléments, ou d'une imbrication de tels éléments alternativement de sorte que Si une première fenêtre délimite une surface à prendre en compte pour l'analyse de l'image, la fenêtre de niveau immédiatement inférieur qui est imbriquée dans ladite première fenêtre délimite une zone dont les pixels ne sont pas pris en compte pour l'analyse de l'image, et ainsi de suite. Preferably, said window consists of a single closed element consisting of a single piece, or of a plurality of such elements, or of a nesting of such elements alternately so that If a first window delimits a surface to be taken into account. account for the analysis of the image, the window of immediately lower level which is nested in said first window delimits an area whose pixels are not taken into account for the analysis of the image, and so on.

Dans un mode de réalisation avantageux, ladite fenêtre est un masque de contour de l'objet à contrôler, ledit masque de contour étant défini lors de la première phase de création de signature, et ladite étape de calcul d'un histogramme consiste à balayer ligne à ligne l'image numérique incluant le masque, et à prendre en compte sélectivement les pixels de l'image au cours d'un processus d'activation/désactivation de la construction de l'histogramme - le processus étant placé en mode d'activation lors de chaque franchisse
ment d'un contour de masque en direction de l'intérieur du masque, - le processus étant placé en mode de désactivation lors d'un franchissement
en sens contraire.
In an advantageous embodiment, said window is a contour mask of the object to be checked, said contour mask being defined during the first phase of creation of a signature, and said step of calculating a histogram consists in scanning line to line the digital image including the mask, and to selectively take into account the pixels of the image during an activation / deactivation process of the construction of the histogram - the process being placed in activation mode during each crossing
ment of a mask contour towards the interior of the mask, - the process being placed in deactivation mode when crossing
in the opposite direction.

De façon préférentielle, ledit contour subit une étape de lissage préalable consistant à balayer ligne à ligne le contour et d'une part à éliminer les points de rebroussement isolés, et d'autre part à ne conserver qu'un seul point pour toute série de points adjacents sur une même ligne, et ledit processus d'activation/désactivation est mis en oeuvre automatiquement au moyen d'un système de bascule inversant le mode courant d'activation/désactivation à chaque rencontre d'un nouveau pixel du contour du masque lors du balayage de l'image. Preferably, said contour undergoes a prior smoothing step consisting in sweeping line by line the contour and on the one hand eliminating the isolated cusp points, and on the other hand keeping only one point for any series of adjacent points on the same line, and said activation / deactivation process is implemented automatically by means of a toggle system reversing the current activation / deactivation mode each time a new pixel of the mask contour is encountered during scanning the image.

Dans un mode de réalisation avantageux de l'invention, ledit masque est de largeur sensiblement constante et en ce que ladite mesure de surface permet de déduire une mesure de longueur. In an advantageous embodiment of the invention, said mask is of substantially constant width and in that said surface measurement makes it possible to deduce a measurement of length.

D'autres caractéristiques et avantages de l'invention apparaîtront à la lecture de la description suivante d'un mode de réalisation préférentiel de l'invention, donné à titre d'exemple indicatif et non limitatif, et des dessins annexés, dans lesquels la figure 1 présente une vue d'un système de vision artificielle appliquée
au contrôle de qualité la figure 2 présente un mode de réalisation du procédé selon l'invention
dans le cas où l'on souhaite comparer un objet à contrôler par rapport à
un objet type de référence.
Other characteristics and advantages of the invention will appear on reading the following description of a preferred embodiment of the invention, given by way of non-limiting example, and the accompanying drawings, in which the figure 1 presents a view of an applied artificial vision system
in quality control FIG. 2 presents an embodiment of the method according to the invention
if you want to compare an object to be checked against
a reference type object.

la figure 3 présente une représentation graphique d'un histogramme
donnant le nombre de pixels pour chacun des différents niveaux d'ampli
tude la figure 4 présente un exemple de signature correspondant à une mesure
de surface la figure 5 présente un exemple de signature correspondant à une mesure
de surface avec pose d'un masque de contour la figure 6 présente un exemple de masque de contour dans le cas d'un
contour en forme d'ellipse la figure 7 présente un exemple de signature correspondant à une mesure
de distance la figure 8 présente un exemple d'application d'un mode de réalisation
préférentiel d'un procédé de création/vérification de la signature d'un
objet du type consistant à détecter une zone d'extrémité de cet objet la figure 9 présente un exemple d'application d'un mode de réalisation
préférentiel d'un procédé de création/vérification de la signature d'un
objet du type consistant à détecter une condition d'homogénéité d'un objet
en comparant des signatures de différentes zones de cet objet la figure 10 présente un synoptique d'un circuit de calcul d'un histogramme
utilisable dans le cadre de l'invention - la figure 1 1 présente un exemple d'utilisation de fenêtres multiples - la figure 12 présente un exemple de fenêtre constituée d'une imbrication
d'éléments fermés constitués d'un seul tenant - la figure 13A présente un exemple d'image comprenant trois régions
d'intensités lumineuses distinctes - la figure 13B présente l'histogramme correspondant à l'image présentée sur
la figure 13A ; - la figure 14 présente un exemple de chevauchement entre deux groupes
successifs de pixels d'un histogramme - la figure 15 présente un exemple d'histogramme comprenant trois groupes
de pixels et quatre niveaux d'amplitude de séparation.
Figure 3 shows a graphical representation of a histogram
giving the number of pixels for each of the different amp levels
study Figure 4 shows an example of a signature corresponding to a measurement
Figure 5 shows an example of a signature corresponding to a measurement
of surface with installation of a contour mask figure 6 presents an example of contour mask in the case of a
elliptical outline figure 7 shows an example of a signature corresponding to a measurement
distance Figure 8 shows an example of application of an embodiment
preferential of a process of creation / verification of the signature of a
object of the type consisting in detecting an end zone of this object FIG. 9 presents an example of application of an embodiment
preferential of a process of creation / verification of the signature of a
object of the type consisting in detecting a condition of homogeneity of an object
by comparing signatures of different areas of this object, figure 10 presents a block diagram of a histogram calculation circuit
usable in the context of the invention - Figure 1 1 shows an example of using multiple windows - Figure 12 shows an example of a window consisting of a nesting
closed elements made in one piece - Figure 13A shows an example image comprising three regions
of distinct light intensities - FIG. 13B presents the histogram corresponding to the image presented on
Figure 13A; - Figure 14 shows an example of overlap between two groups
successive pixels of a histogram - Figure 15 shows an example of a histogram comprising three groups
pixels and four levels of separation amplitude.

La description suivante correspond à un système de vision artificielle appliquée au contrôle de qualité. Un tel système permet de créer la signature d'un objet, c'est-à-dire de déterminer au moins un paramètre caractéristique de cet objet. The following description corresponds to an artificial vision system applied to quality control. Such a system makes it possible to create the signature of an object, that is to say to determine at least one characteristic parameter of this object.

Par ailleurs, un tel système permet de vérifier la conformité d'autres objets du même type en utilisant comme référence la caractéristique déterminée auparavant.Furthermore, such a system makes it possible to verify the conformity of other objects of the same type by using the characteristic determined previously as a reference.

En d'autres termes, le système compare la signature de l'objet à contrôler à la signature originale.In other words, the system compares the signature of the object to be checked with the original signature.

La figure 1 présente une vue d'un tel système de vision artificielle appliquée au contrôle de qualité. Figure 1 shows a view of such an artificial vision system applied to quality control.

Lors de la création de la signature d'un objet, l'objet étant une poupée dans cet exemple, le système détermine un paramètre caractéristique d'une poupée. When creating the signature of an object, the object being a doll in this example, the system determines a characteristic parameter of a doll.

Ensuite, le système doit contrôler ce même paramètre sur toutes les poupées du même type.Then the system must control this same parameter on all dolls of the same type.

Une caméra 1 fixe est située en regard d'un tapis roulant 2 entraînant des poupées 31 32 33, 34. Cette caméra 1 est reliée à un système 4 de traitement qui mémorise, pour chaque poupée 31 32 33, 34 une image numérique décrite pixel par pixel contenant la poupée. A fixed camera 1 is located opposite a conveyor belt 2 driving dolls 31 32 33, 34. This camera 1 is connected to a processing system 4 which stores, for each doll 31 32 33, 34 a digital image described pixel per pixel containing the doll.

Le système 4 de traitement détermine, sur chaque image numérique, le paramètre caractéristique de l'objet et le compare au paramètre caractéristique choisi comme paramètre de référence lors de la création de la signature. The processing system 4 determines, on each digital image, the characteristic parameter of the object and compares it with the characteristic parameter chosen as the reference parameter when the signature is created.

D'une part, les résultats sont imprimés (5) en continu. Ainsi, le système 4 de traitement permet de préparer un enregistrement relatif à la qualité de fabrication d'un objet. On the one hand, the results are printed (5) continuously. Thus, the processing system 4 makes it possible to prepare a recording relating to the quality of manufacture of an object.

D'autre part, grâce à des sorties application (non représentées), le système 4 peut commander en temps réel des unités (non représentées) de traitement des non-conformités . On the other hand, thanks to application outputs (not shown), the system 4 can control units (not shown) for processing non-conformities in real time.

La figure 2 présente un schéma synoptique d'un mode de réalisation d'un procédé de création/vérification de la signature d'un objet représenté sur une image numérique décrite pixel par pixel, dans le cas où l'on souhaite comparer un objet à contrôler par rapport à un objet type de référence. FIG. 2 presents a block diagram of an embodiment of a method for creating / verifying the signature of an object represented on a digital image described pixel by pixel, in the case where it is desired to compare an object with check against a standard reference object.

Ce procédé comprend une première phase de création d'une signature originale d'un objet type représenté sur une image numérique de référence, puis une seconde phase de vérification de la signature d'un objet à contrôler représenté sur une image numérique de travail. This method comprises a first phase of creating an original signature of a typical object represented on a digital reference image, then a second phase of verifying the signature of an object to be checked represented on a digital working image.

La première phase I de création d'une signature originale comprend les étapes suivantes - repérage 21 de la position de l'objet type dans l'image de référence
consistant à définir successivement une information de position verticale
et une information de position horizontale à partir de mesures effectuées
soit dans l'image de base, soit dans l'image délivrée.
The first phase I of creating an original signature comprises the following steps - identification 21 of the position of the type object in the reference image
consisting in successively defining vertical position information
and horizontal position information from measurements
either in the base image or in the delivered image.

L'information de position verticale de l'objet comprend d'une part la ligne d'écran correspondant à une extrémité verticale de l'objet et d'autre part le bord de l'image par lequel doit démarrer la recherche de cette ligne d'écran. The vertical position information of the object comprises on the one hand the screen line corresponding to a vertical end of the object and on the other hand the edge of the image by which the search for this line d must start. 'screen.

L'information de position horizontale de l'objet est constituée d'une part de plusieurs distances correspondant à la mesure, pour plusieurs lignes d'écran, de l'écart entre un bord de l'image et le contour le plus proche de l'objet, et d'autre part du bord de l'image par rapport auquel sont mesurées ces distances. The horizontal position information of the object consists on the one hand of several distances corresponding to the measurement, for several screen lines, of the difference between an edge of the image and the contour closest to the object, and on the other hand the edge of the image with respect to which these distances are measured.

Un tel repérage de la position d'un objet dans une image est expliqué en détail dans la demande de brevet antérieure FR 9202263 (non publiée au moment du dépôt de cette demande). Such identification of the position of an object in an image is explained in detail in the prior patent application FR 9202263 (not published at the time of filing of this application).

- positionnement 22 d'une fenêtre dans cette image de référence, ce
positionnement est réalisé par un opérateur grâce à la visualisation sur un
écran de la dérivée seconde de l'image contenant l'objet, par exemple à
l'aide d'un stylet optique.
positioning 22 of a window in this reference image, this
positioning is carried out by an operator thanks to the visualization on a
second derivative screen of the image containing the object, for example at
using an optical stylus.

Dans le cas le plus simple, cette fenêtre est constituée d'un élément fermé unique constitué d'un seul tenant. In the simplest case, this window is made up of a single closed element made in one piece.

Mais cette fenêtre peut également être constituée d'une pluralité de tels éléments (on parle dans ce cas de fenêtres multiples), un exemple d'une telle fenêtre étant présenté en relation avec la figure 11. But this window can also be made up of a plurality of such elements (in this case we speak of multiple windows), an example of such a window being presented in relation to FIG. 11.

Enfin, cette fenêtre peut être constituée d'une imbrication d'éléments fermés constitués d'un seul tenant, comme présenté sur la figure 12. Finally, this window can be made up of a nesting of closed elements made in one piece, as shown in FIG. 12.

Par exemple, sur une image numérique 121, un opérateur pose une première fenêtre délimitant une surface à prendre en compte pour l'analyse de l'image. Ensuite, l'opérateur pose une seconde fenêtre 123, imbriquée dans la première fenêtre 122, et délimitant une zone dont les pixels ne sont pas pris en compte pour l'analyse de l'image. Dans cet exemple, l'opérateur a posé une troisième fenêtre 124, délimitant une surface à prendre en compte pour l'analyse de l'image. Dans d'autres exemples, on peut poser plus de fenêtres, en respectant la règle que les différentes fenêtres délimitent successivement une surface à prendre en compte et une surface à ne pas prendre en compte. For example, on a digital image 121, an operator places a first window defining a surface to be taken into account for the analysis of the image. Then, the operator places a second window 123, nested in the first window 122, and delimiting an area whose pixels are not taken into account for the analysis of the image. In this example, the operator has placed a third window 124, delimiting an area to be taken into account for the analysis of the image. In other examples, it is possible to install more windows, respecting the rule that the different windows successively delimit an area to be taken into account and an area not to be taken into account.

Dans l'exemple présenté sur la figure 12, la surface finalement prise en compte correspond à la surface hachurée. In the example presented in FIG. 12, the surface finally taken into account corresponds to the hatched surface.

- calcul 23 d'un histogramme consistant à compter le nombre de pixels de
ladite fenêtre en fonction des différents niveaux d'amplitude, comme
expliqué ci-après - extraction 24 d'un paramètre caractéristique de cet histogramme corres
pondant à la signature originale, les différents types de paramètres
(surface, largeur, hauteur) sont explicités par la suite en relation avec les
figures 3, 13A, 13B, 14 et 15, et différents exemples d'applications sont
présentés en relation avec les figures 4, 5, 7, 8 et 9.
- calculation 23 of a histogram consisting in counting the number of pixels of
said window according to the different amplitude levels, such as
explained below - extraction 24 of a characteristic parameter from this corresponding histogram
depending on the original signature, the different types of parameters
(surface, width, height) are explained below in relation to the
Figures 3, 13A, 13B, 14 and 15, and different examples of applications are
presented in relation to Figures 4, 5, 7, 8 and 9.

La seconde phase II de vérification de la signature d'un objet à contrôler comprend les étapes suivantes - repérage 25 de la position de l'objet à contrôler dans l'image de travail,
selon la méthode présentée auparavant pour l'étape correspondante de la
phase I de création - calcul 26 du décalage entre la position de l'objet à contrôler dans l'image
de travail et la position de l'objet type dans l'image de référence - décalage 27 de la fenêtre de façon qu'elle soit positionnée de la même
façon par rapport à l'objet à contrôler et par rapport à l'objet type - calcul 28 d'un histogramme consistant à compter le nombre de pixels de
la fenêtre pour chacun des niveaux d'amplitude existants - extraction 29 d'un paramètre caractéristique de l'histogramme du même
type que celui extrait lors de l'étape correspondante de la phase de
création et correspondant à la signature de l'objet à contrôler - comparaison 210 de la signature de l'objet à contrôler avec la signature
originale afin d'apprécier la qualité de l'objet à contrôler.
The second phase II of verification of the signature of an object to be checked comprises the following steps - identification of the position of the object to be checked in the working image,
according to the method presented previously for the corresponding step of the
creation phase I - calculation 26 of the offset between the position of the object to be checked in the image
and the position of the type object in the reference image - offset 27 of the window so that it is positioned the same
way with respect to the object to be checked and with respect to the standard object - calculation 28 of a histogram consisting in counting the number of pixels of
the window for each of the existing amplitude levels - extraction 29 of a characteristic parameter of the histogram of the same
type as that extracted during the corresponding stage of the phase of
creation and corresponding to the signature of the object to be checked - comparison 210 of the signature of the object to be checked with the signature
original in order to assess the quality of the object to be checked.

Par exemple, si le paramètre caractéristique est une mesure de surface, l'écart entre la surface de l'objet à contrôler et la surface de l'objet type est mesure. For example, if the characteristic parameter is a surface measurement, the difference between the surface of the object to be checked and the surface of the type object is measured.

Si cet écart est inférieur à une valeur tolérée, on considère que l'objet possède la qualité requise, dans le cas contraire, cet objet ne répond pas aux critères de qualité et n'est pas conservé. Dans ce dernier cas, la détection de cette non-conformité permet de commander en temps réel des unités de traitement approprié.If this difference is less than a tolerated value, it is considered that the object has the required quality, otherwise, this object does not meet the quality criteria and is not kept. In the latter case, the detection of this non-conformity enables appropriate processing units to be controlled in real time.

La figure 3 présente une représentation graphique d'un histogramme pouvant être calculé sur l'image numérique de base mais également sur les dérivées de cette image, à savoir la dérivée première et la dérivée seconde. FIG. 3 presents a graphic representation of a histogram which can be calculated on the basic digital image but also on the derivatives of this image, namely the first derivative and the second derivative.

Pour chaque niveau d'amplitude possible 311 à 3yin, l'histogramme donne le nombre correspondant de pixels possédant ce niveau. For each possible amplitude level 311 to 3yin, the histogram gives the corresponding number of pixels having this level.

Le calcul d'un histogramme peut être réalisé de la façon suivante. On choisit un certain nombre de niveaux d'amplitudes parmi tous les niveaux quantifiés disponibles (on prend par exemple 64 niveaux d'amplitudes sur 256 niveaux d'amplitudes quantifiés disponibles en sortie de la caméra numérique), et on associe un registre à chacun de ces niveaux. Chaque pixel de la fenêtre est quantifié et correspond à un de ces niveaux d'amplitude. On incrémente la valeur du registre correspondant à cette valeur, puis on passe au pixel suivant. The calculation of a histogram can be carried out as follows. We choose a number of amplitude levels among all the quantized levels available (we take for example 64 amplitude levels out of 256 quantized amplitude levels available at the output of the digital camera), and we associate a register with each of these levels. Each pixel of the window is quantized and corresponds to one of these amplitude levels. We increment the value of the register corresponding to this value, then we go to the next pixel.

Ainsi, lorsque tous les pixels ont été affectés à l'un des niveaux d'amplitude, l'histogramme est disponible directement grâce aux valeurs des différents registres. Thus, when all the pixels have been assigned to one of the amplitude levels, the histogram is available directly thanks to the values of the different registers.

Le paramètre caractéristique extrait d'un tel histogramme et correspondant à la signature de l'objet peut être notamment une mesure de surface, de largeur, ou de hauteur caractéristique de la forme de l'histogramme. The characteristic parameter extracted from such a histogram and corresponding to the signature of the object can in particular be a measurement of area, width, or height characteristic of the shape of the histogram.

Par hauteur H de l'histogramme, on entend la valeur maximale M en ordonnée de la représentation graphique de cet histogramme. By height H of the histogram is meant the maximum value M on the ordinate of the graphic representation of this histogram.

La largeur L d'un histogramme correspond toujours à un nombre de niveaux d'amplitude dont le nombre correspondant de pixels n'est pas nul. Dans l'exemple de la figure 3, l'histogramme possède une largeur L. The width L of a histogram always corresponds to a number of amplitude levels whose corresponding number of pixels is not zero. In the example in Figure 3, the histogram has a width L.

Enfin, le paramètre caractéristique de l'histogramme peut être une mesure de surface consistant à compter le nombre de pixels dont le niveau d'amplitude est sensiblement uniforme (c'est-à-dire dont le niveau d'amplitude appartient à une ou plusieurs plages prédéterminées de niveaux d'amplitude successifs. Finally, the characteristic parameter of the histogram can be a surface measurement consisting in counting the number of pixels whose amplitude level is substantially uniform (that is to say whose amplitude level belongs to one or more predetermined ranges of successive amplitude levels.

Dans le cas de l'utilisation des registres, il suffit d'additionner les valeurs des registres correspondant aux niveaux d'amplitude appartenant à cette plage. In the case of using the registers, it suffices to add the values of the registers corresponding to the amplitude levels belonging to this range.

Les figures 13A et 13B montrent la correspondance entre les régions 131, 132, 133 d'intensités lumineuses distinctes dans une image (figure 13A) et des groupes 131', 132', 133' de pixels dans un histogramme 135 (figure 13B). FIGS. 13A and 13B show the correspondence between the regions 131, 132, 133 of distinct light intensities in an image (FIG. 13A) and groups 131 ', 132', 133 'of pixels in a histogram 135 (FIG. 13B).

Chaque pic de l'histogramme 135 est associé à un des groupes 131', 132', 133' de pixels. La surface de chaque pic, est donnée par le nombre de pixels du groupe associé, et donne une mesure directe de la surface de la région d'image correspondante. Each peak in the histogram 135 is associated with one of the groups 131 ′, 132 ′, 133 ′ of pixels. The area of each peak is given by the number of pixels in the associated group, and gives a direct measure of the area of the corresponding image region.

Comme présenté sur la figure 14, deux pics 141, 142 adjacents d'un histogramme peuvent se chevaucher. Dans ce cas, on détermine un niveau d'amplitude de séparation 143 entre les deux pics adjacents 141, 142 et on considère que les deux groupes de pixels comprennent les pixels dont le niveau d'amplitude est respectivement inférieur et supérieur à ce niveau d'amplitude de séparation 143. As shown in Figure 14, two adjacent peaks 141, 142 of a histogram may overlap. In this case, a level of separation amplitude 143 is determined between the two adjacent peaks 141, 142 and it is considered that the two groups of pixels include the pixels whose amplitude level is respectively lower and greater than this level of separation amplitude 143.

Dans cet exemple ,on approxime donc la surface (A + C + D) par la surface (A + B + C). De même, on approxime la surface (E + C + D) par la surface (E + D + F). In this example, we therefore approximate the surface (A + C + D) by the surface (A + B + C). Similarly, we approximate the surface (E + C + D) by the surface (E + D + F).

Une mesure de surface utilisée comme paramètre caractéristique d'un histogramme consiste donc à mesurer la surface de un ou plusieurs pics (c'est-à-dire à compter le nombre de pixels d'un ou plusieurs groupes). A surface measurement used as a characteristic parameter of a histogram therefore consists in measuring the surface of one or more peaks (that is to say counting the number of pixels of one or more groups).

On peut envisager plusieurs solutions pour déterminer le ou les niveaux d'amplitude de séparation d'un histogramme. Several solutions can be envisaged for determining the level or levels of amplitude of separation of a histogram.

Une première solution, décrite en relation avec la figure 3, correspond au cas où l'image (ou la zone d'image traitée) ne comprend que deux régions d'intensités lumineuses distinctes. Dans ce cas, l'histogramme comprend deux pics. A first solution, described in relation to FIG. 3, corresponds to the case where the image (or the image area processed) only comprises two regions of distinct light intensities. In this case, the histogram includes two peaks.

Il suffit de déterminer un niveau de seuil de séparation pour séparer les deux groupes de pixels correspondant à ces deux pics.It suffices to determine a separation threshold level to separate the two groups of pixels corresponding to these two peaks.

Ce niveau d'amplitude de séparation est par exemple déterminé de la façon suivante. On recherche un premier niveau d'amplitude 316 correspondant au nombre maximal M de pixels possédant un même niveau d'amplitude. This level of separation amplitude is for example determined as follows. We are looking for a first amplitude level 316 corresponding to the maximum number M of pixels having the same amplitude level.

Puis on recherche, parmi les niveaux restants, un second niveau d'amplitude d'une part correspondant à un nombre maximal de pixels possédant un même niveau d'amplitude et d'autre part répondant aux contraintes suivantes - le nombre de pixels possédant ce second niveau d'amplitude doit être
supérieur à un niveau de seuil déterminé d'après la moyenne des différents
nombres de pixels associés aux niveaux d'amplitude - le nombre de niveaux d'amplitude existant entre le second et le premier
niveau d'amplitude doit être suffisamment grand - une valeur paramètre du second niveau d'amplitude doit être la plus
grande possible, cette valeur paramètre étant fonction du nombre de pixel
possédant ce second niveau d'amplitude et du nombre de niveaux
d'amplitude existant entre le premier niveau et le second niveau.La valeur
paramètre peut par exemple être calculée à l'aide de la formule suivante:
(nombre de pixels possédant ce niveau d'amplitude) . (nombre de niveaux
d'amplitude existant entre le premier et le second niveaux d'amplitude).
Then, among the remaining levels, a second amplitude level is sought on the one hand corresponding to a maximum number of pixels having the same amplitude level and on the other hand meeting the following constraints - the number of pixels having this second amplitude level should be
above a threshold level determined by the average of the different
number of pixels associated with amplitude levels - the number of amplitude levels between the second and the first
amplitude level must be large enough - a parameter value of the second amplitude level must be the highest
large possible, this parameter value being a function of the number of pixels
having this second level of amplitude and the number of levels
amplitude between the first level and the second level.
parameter can for example be calculated using the following formula:
(number of pixels with this amplitude level). (number of levels
between the first and second amplitude levels).

Dans l'exemple de la figure 3, la valeur 33 correspondant au niveau d'amplitude 313 ne peut être choisie comme second niveau d'amplitude car ce niveau 313 est situé trop proche du premier niveau d'amplitude 316. Le second niveau d'amplitude choisi est ici le niveau d'amplitude noté 34. In the example in FIG. 3, the value 33 corresponding to the amplitude level 313 cannot be chosen as the second amplitude level because this level 313 is located too close to the first amplitude level 316. The second level of amplitude chosen here is the amplitude level noted 34.

Enfin, on recherche un troisième niveau d'amplitude d'une part situé entre lesdits premier 316 et second 34 niveau d'amplitude, et d'autre part correspondant au nombre de pixels le plus faible. Dans l'exemple de la figure 3, ce troisième niveau d'amplitude est le niveau d'amplitude noté 35. Finally, a third amplitude level is sought on the one hand situated between said first 316 and second 34 amplitude levels, and on the other hand corresponding to the lowest number of pixels. In the example of FIG. 3, this third level of amplitude is the level of amplitude denoted 35.

C'est ce troisième niveau d'amplitude 35 qui est choisi comme niveau d'amplitude de séparation et qui permet de séparer au mieux l'histogramme en deux groupes distincts. It is this third amplitude level 35 which is chosen as the separation amplitude level and which makes it possible to best separate the histogram into two distinct groups.

Une seconde solution permettant de déterminer le ou les niveaux d'amplitude de séparation d'un histogramme est présenté en relation avec la figure 15. A second solution for determining the level or levels of separation amplitude of a histogram is presented in relation to FIG. 15.

Cette seconde solution comprend les étapes suivantes - l'opérateur visualise un histogramme de référence 151 (obtenu avec les pixels contenus dans une fenêtre contenant un objet ou une zone d'objet type) - pour chaque niveau d'amplitude de séparation à déterminer 151, 152, 153, 154, l'opérateur positionne sur cet histogramme de référence 155 une borne inférieure
B1L, B2L, B3L, B4L et une borne supérieure B1H, B2H, B3H, B4H - sur cet histogramme de référence, chaque niveau d'amplitude de séparation est défini comme le niveau d'amplitude d'une part compris entre une paire de bornes inférieure et supérieure et d'autre part correspondant à un nombre minimal de pixels.
This second solution comprises the following steps - the operator displays a reference histogram 151 (obtained with the pixels contained in a window containing a typical object or object area) - for each level of separation amplitude to be determined 151, 152, 153, 154, the operator positions a lower bound on this reference histogram 155
B1L, B2L, B3L, B4L and an upper bound B1H, B2H, B3H, B4H - on this reference histogram, each level of separation amplitude is defined as the amplitude level on the one hand comprised between a pair of terminals lower and upper and secondly corresponding to a minimum number of pixels.

- pour chaque objet ou zone d'objet à contrôler, à partir d'un histogramme de contrôle, le système calcule et positionne des paires de bornes inférieure et supérieure compensées obtenues à partir d'une part des bornes inférieure et supérieure précédentes (déterminées par l'opérateur) et d'autre part d'un facteur de compensation représentatif des variations de luminosité entre l'image ou la zone d'image de référence et l'image ou la zone d'image de contrôle - sur cet histogramme de contrôle, chaque niveau d'amplitude de séparation ("compensé") est défini comme le niveau d'amplitude d'une part compris entre une paire de bornes inférieure et supérieure compensées et d'autre part correspondant à un nombre minimal de pixels.- for each object or object area to be checked, from a control histogram, the system calculates and positions pairs of compensated lower and upper bounds obtained from a share of the previous lower and upper bounds (determined by operator) and on the other hand a compensation factor representative of the variations in brightness between the reference image or image area and the control image or image area - on this control histogram , each level of separation amplitude ("compensated") is defined as the amplitude level on the one hand comprised between a pair of lower and upper compensated terminals and on the other hand corresponding to a minimum number of pixels.

Grâce au facteur de compensation, le procédé selon l'invention permet de s'affranchir des problèmes dus aux variations de luminosité (conditions d'éclairage, reflets, etc...).On peut prévoir de définir le facteur de compensation à l'aide d'une des définitions suivantes - le facteur de compensation est égal à un premier rapport entre d'une part le niveau d'amplitude moyen des pixels de l'histogramme de contrôle et d'autre part le niveau d'amplitude moyen des pixels de l'histogramme de référene - le facteur de compensation est égal à un second rapport entre d'une part le niveau d'amplitude de l'histogramme de contrôle correspondant au nombre maximal de pixels possédant un même niveau d'amplitude et d'autre part le niveau d'amplitude de l'histogramme de référence correspondant au nombre maximal de pixels possédant un même niveau d'amplitude - le facteur de compensation est égal à un troisième rapport entre d'une part la largeur de l'histogramme de contrôle et d'autre part la largeur de l'histogramme de référence - le facteur de compensation est égal à une somme pondérée desdits premier, second et troisième rapports. Thanks to the compensation factor, the method according to the invention overcomes problems due to variations in brightness (lighting conditions, reflections, etc. . . ). It is possible to provide for defining the compensation factor using one of the following definitions - the compensation factor is equal to a first ratio between on the one hand the average amplitude level of the pixels of the control histogram and on the other hand the average amplitude level of the pixels of the reference histogram - the compensation factor is equal to a second ratio between on the one hand the amplitude level of the control histogram corresponding to the maximum number of pixels having the same amplitude level and on the other hand the amplitude level of the reference histogram corresponding to the maximum number of pixels having the same amplitude level - the compensation factor is equal to a third ratio between d on the one hand the width of the control histogram and on the other hand the width of the reference histogram - the compensation factor is equal to a weighted sum of said first, second and third reports.

Des exemples de tels paramètres caractéristiques d'un histogramme (à savoir largeur, longueur ou surface) sont présentés par la suite en relation avec les figures 4 à 9. Examples of such parameters characteristic of a histogram (namely width, length or surface) are presented below in relation to FIGS. 4 to 9.

La figure 4 présente un exemple de signature correspondant à une mesure de surface. Cette mesure de surface consiste, comme expliqué précédemment, à compter le nombre de pixels d'un ou plusieurs groupes séparés deux par deux par un niveau d'amplitude de séparation. FIG. 4 shows an example of a signature corresponding to a surface measurement. This surface measurement consists, as explained above, of counting the number of pixels of one or more groups separated two by two by a level of separation amplitude.

A l'aide d'un système de vision artificielle telle que présentée sur la figure 1, il s'agit de vérifier la qualité d'écrous sortant d'une chaîne de fabrication. Sur une image numérique 41 de référence représentant l'objet type 43, c'est-à-dire l'écrou, on positionne une fenêtre 44. Le système calcule un histogramme des pixels contenus dans cette fenêtre 44, c'est-à-dire compte le nombre de pixels correspondant à chaque niveau d'amplitude. Using an artificial vision system as shown in Figure 1, it is a question of checking the quality of nuts leaving a production line. A window 44 is positioned on a reference digital image 41 representing the standard object 43, that is to say the nut. The system calculates a histogram of the pixels contained in this window 44, that is to say say count the number of pixels corresponding to each amplitude level.

Le système calcule un niveau d'amplitude de séparation permettant de séparer les pixels du groupe correspondant à la surface de l'écrou des pixels correspondant au fond de l'image. Par exemple, seuls les pixels correspondant à la surface de l'écrou possèdent un niveau d'amplitude inférieur à ce niveau d'amplitude de séparation. De cette façon, si l'écran est positionné sur un fond blanc, la zone de l'alésage central de l'écrou fournira sur l'image, des pixels dont le niveau d'amplitude est élevé, ces pixels étant éliminés automatiquement par seuillage puisque seuls les pixels dont le niveau d'amplitude est faible appartiennent au groupe correspondant à la surface de l'écrou
Le calcul de la surface de l'écrou 42 consiste donc simplement à comptabiliser le nombre de pixels appartenant au groupe choisi.On aura alors indirectement une information représentative de la dimension de l'alésage.
The system calculates a separation amplitude level making it possible to separate the pixels of the group corresponding to the surface of the nut from the pixels corresponding to the background of the image. For example, only the pixels corresponding to the surface of the nut have an amplitude level lower than this separation amplitude level. In this way, if the screen is positioned on a white background, the area of the central bore of the nut will provide on the image, pixels whose level of amplitude is high, these pixels being eliminated automatically by thresholding. since only the pixels with a low amplitude level belong to the group corresponding to the surface of the nut
The calculation of the surface of the nut 42 therefore simply consists in counting the number of pixels belonging to the chosen group. We will then have indirectly information representative of the dimension of the bore.

Lors de la phase de vérification, chaque écrou à contrôler est représenté sur une image numérique. La position de cet écrou dans l'image n'est pas forcément la même que celle de l'écrou type dans l'image de référence. La position de l'écrou à contrôler peut notamment avoir subi une rotation par rapport à la position de l'écrou type. Le système grâce au repérage de la position de l'objet type dans l'image de référence, et après avoir repéré la position de l'objet à contrôler dans l'image de travail, positionne une fenêtre sur l'objet à contrôler. During the verification phase, each nut to be checked is represented on a digital image. The position of this nut in the image is not necessarily the same as that of the standard nut in the reference image. The position of the nut to be checked may in particular have been rotated relative to the position of the standard nut. The system, by locating the position of the standard object in the reference image, and after locating the position of the object to be checked in the working image, positions a window on the object to be checked.

Ensuite, comme lors de la phase de création de la signature originale, le système calcule un histogramme, puis en déduit un niveau d'amplitude de séparation lui permettant de calculer la surface de l'écrou à contrôler. Then, as during the creation phase of the original signature, the system calculates a histogram, then deduces a level of separation amplitude allowing it to calculate the area of the nut to be checked.

Par comparaison de la surface de l'écrou type et la surface de l'écrou à contrôler, le système peut apprécier la qualité de l'écrou, et notamment vérifier la conformité du trou 43 situé au centre de cet écrou 42. By comparison of the surface of the standard nut and the surface of the nut to be checked, the system can assess the quality of the nut, and in particular verify the conformity of the hole 43 located in the center of this nut 42.

Un tel procédé n'est pas sensible aux variations de contraste ou d'illumination puisque le niveau d'amplitude de séparation permettant de différencier les pixels appartenant à la surface de l'écrou des pixels appartenant au reste de l'image n'est pas prédéterminé mais au contraire calculé en tenant compte de l'ensemble des pixels. Such a method is not sensitive to variations in contrast or illumination since the level of separation amplitude making it possible to differentiate the pixels belonging to the surface of the nut from the pixels belonging to the rest of the image is not predetermined but on the contrary calculated by taking into account all the pixels.

De plus, cette mesure de surface, contrairement à une mesure de distance, n'est nullement affectée par une rotation de l'objet à contrôler. En effet, toute mesure de surface est indépendante de la direction. In addition, this surface measurement, unlike a distance measurement, is in no way affected by a rotation of the object to be checked. Indeed, any surface measurement is independent of the direction.

La figure 5 présente un exemple de signature correspondant à une mesure de surface avec pose d'un masque de contour. FIG. 5 shows an example of a signature corresponding to a surface measurement with the fitting of a contour mask.

Dans cet exemple, on cherche à vérifier la conformité de l'ensemble des trous d'une semelle de fer à repasser. In this example, we seek to verify the conformity of all the holes of an iron soleplate.

Sur une image numérique 51, on visualise la semelle 54 du fer à repasser ainsi que le support 53 permettant de maintenir l'ensemble du fer à repasser dans une telle position. On a digital image 51, the sole 54 of the iron is seen as well as the support 53 making it possible to keep the whole of the iron in such a position.

Comme expliqué précédemment, on place une fenêtre de façon à ne travailler que sur l'objet à contrôler. De plus, afin de ne travailler que sur la semelle 54 du fer à repasser et donc d'optimiser les temps de traitement, on utilise une fenêtre égale à un masque de contour 52. Ce masque de contour 52, calculé à partir de l'objet type lors de la phase de création de la signature ou créé mathématiquement, possède un contour correspondant sensiblement au contour de la semelle 54. Ainsi, le calcul de l'histogramme ne porte que sur les pixels correspondant à la surface théorique de la semelle 54. As explained above, a window is placed so that it only works on the object to be checked. In addition, in order to work only on the soleplate 54 of the iron and therefore to optimize the treatment times, a window is used equal to a contour mask 52. This contour mask 52, calculated from the typical object during the creation phase of the signature or created mathematically, has a contour corresponding substantially to the contour of the sole 54. Thus, the calculation of the histogram relates only to the pixels corresponding to the theoretical surface of the sole 54 .

Après l'étape de seuillage, le calcul de la surface réelle de la semelle 54 à contrôler (c'est-à-dire le comptage de tous les pixels dont le niveau d'amplitude est supérieur au seuil) permet de détecter l'absence de certains des trous 55 de la semelle ou bien une taille incorrecte de ces trous 55. After the thresholding step, the calculation of the real surface of the sole 54 to be checked (that is to say the counting of all the pixels whose amplitude level is above the threshold) makes it possible to detect the absence of some of the holes 55 in the sole or an incorrect size of these holes 55.

La figure 6 présente un exemple de masque de contour dans le cas d'un contour en forme d'ellipse. Figure 6 shows an example of a contour mask in the case of an elliptical contour.

Un masque est défini, lors de la première phase de création de la signature, par l'ensemble des pixels 61 constituant son contour. Un masque de contour a généralement une forme concave (l'exemple d'une ellipse présentée sur la figure 6 correspond à une telle hypothèse). Il peut être décomposé en une suite verticale de lignes 11 à lj, chaque ligne ne comprenant que deux points 61 du contour du masque. A mask is defined, during the first phase of creation of the signature, by the set of pixels 61 constituting its outline. A contour mask generally has a concave shape (the example of an ellipse presented in Figure 6 corresponds to such an assumption). It can be broken down into a vertical series of lines 11 to 1j, each line comprising only two points 61 of the outline of the mask.

Le calcul d'un histogramme, lorsqu'un masque de contour a été positionné, consiste à balayer ligne à ligne la plus petite portion d'image rectangulaire contenant ce masque et à prendre en compte sélectivement les pixels de la portion d'image au cours d'un processus d'activation/désactivation de la constructiuon de l'histogramme. The calculation of a histogram, when a contour mask has been positioned, consists in scanning line by line the smallest rectangular image portion containing this mask and in selectively taking into account the pixels of the image portion during an activation / deactivation process of the construction of the histogram.

Le processus est placé - en mode d'activation lors de chaque franchissement d'un contour de
masque en direction de l'intérieur du masque - en mode de désactivation lors d'un franchissement en sens contraire (c'est
à-dire de l'intérieur du masque vers l'extérieur).
The process is placed - in activation mode when crossing a contour of
mask towards the interior of the mask - in deactivation mode when crossing in the opposite direction (this is
from inside the mask to the outside).

Le contour du masque, comme présenté sur la figure 6, peut subir une étape de lissage consistant à balayer ligne à ligne le contour et - à éliminer les points de rebroussement isolés ; et - à ne conserver qu'un seul point pour toute série de points adjacents sur
une même ligne.
The outline of the mask, as shown in FIG. 6, can undergo a smoothing step consisting in sweeping the outline line by line and - eliminating the isolated cusps; and - to keep only one point for any series of adjacent points on
the same line.

Ainsi, le processus d'activation/désactivation de la construction de l'histogramme est mis en oeuvre automatiquement au moyen d'un système de bascule inversant le mode courant d'activation/désactivation à chaque rencontre d'un nouveau pixel 61 du contour du masque lors du balayage de l'image. Thus, the activation / deactivation process of the construction of the histogram is implemented automatically by means of a toggle system reversing the current activation / deactivation mode each time a new pixel 61 of the contour of the contour is encountered. mask when scanning the image.

La figure 7 présente un exemple de signature correspondant à une mesure de distance.  FIG. 7 shows an example of a signature corresponding to a distance measurement.

Dans cet exemple, il s'agit de déterminer la distance D d'un des bras d'un objet 72 représenté sur une image numérique 71. In this example, it is a question of determining the distance D of one of the arms of an object 72 represented on a digital image 71.

Pour cela, on pose une fenêtre 74 très fine puis on calcule la surface de l'objet 72 situé dans cette fenêtre 74. La largeur de la fenêtre 74 étant fixe, il est aisé de passer d'une mesure de surface à une mesure de longueur. Ainsi, on se retrouve dans le cas expliqué en relation avec la figure 4. Ce procédé de mesure de longueur est beaucoup plus fiable qu'un procédé classique car on ne mesure pas la longueur entre deux points mais la longueur entre deux groupes de points, ce qui rend le procédé beaucoup moins sensible aux points parasites. For this, a very fine window 74 is placed and then the surface of the object 72 located in this window 74 is calculated. The width of the window 74 being fixed, it is easy to go from a surface measurement to a measurement of length. Thus, we find ourselves in the case explained in relation to FIG. 4. This length measurement method is much more reliable than a conventional method because we do not measure the length between two points but the length between two groups of points, which makes the process much less sensitive to parasitic points.

En d'autres termes, au lieu de faire une mesure de distance avec une longueur de droite (mesure linéaire), on fait une mesure sous forme matricielle. In other words, instead of making a distance measurement with a straight line length (linear measurement), we make a measurement in matrix form.

Pour cela, on utilise un ensemble de pixels ordonnés dans des histogrammes construits sur une portion d'image à deux dimensions.To do this, we use a set of ordered pixels in histograms constructed on a two-dimensional image portion.

La figure 8 présente un mode de réalisation préférentiel d'un procédé de création/vérification de la signature d'un objet du type consistant à détecter une zone d'extrémité de cet objet. FIG. 8 shows a preferred embodiment of a method for creating / verifying the signature of an object of the type consisting in detecting an end region of this object.

Un tel problème se pose en effet lors de la fabrication de biscuits fourrés à la confiture. Il arrive en effet fréquemment que les extrémités de ces biscuits, lorsqu'ils viennent d'être formés, ne présentent pas des bords nets, mais au contraire comprennent une traînée due à la confiture utilisée pour les fourrer. Such a problem arises in fact during the manufacture of cookies filled with jam. It frequently happens that the ends of these cookies, when they have just been formed, do not have sharp edges, but on the contrary comprise a trail due to the jam used to stuff them.

Dans ce cas, le procédé selon l'invention consiste à positionner dans chaque image numérique 81 contenant un objet 82 à contrôler, une fenêtre 84 dans la zone de transition 83. In this case, the method according to the invention consists in positioning in each digital image 81 containing an object 82 to be checked, a window 84 in the transition zone 83.

On établit des premiers histogrammes de référence par balayage des lignes d'écran situées dans la fenêtre 84 et du côté de l'objet 82 (c'est-à-dire du côté du biscuit). First reference histograms are established by scanning the screen lines located in the window 84 and on the side of the object 82 (that is to say on the side of the cookie).

Puis on calcule les histogrammes correspondant à une succession de lignes s'étendant perpendiculairement à la direction de mesure (c'est-à-dire vers la zone de transition floue 83). Chaque histogramme calculé est comparé aux histogrammes de référence (qui sont sensiblement identiques) jusqu'à ce qu'un histogramme différent des précédents apparaisse. On considère que l'extrémité du biscuit 82 est situé sur la ligne correspondant à ce changement d'histogramme. Then the histograms corresponding to a succession of lines extending perpendicular to the measurement direction (that is to say towards the fuzzy transition zone 83) are calculated. Each calculated histogram is compared to the reference histograms (which are substantially identical) until a histogram different from the previous ones appears. It is considered that the end of the cookie 82 is located on the line corresponding to this change in histogram.

En répétant Si nécessaire cette opération pour l'autre extrémité, on connaît les deux extrémités du biscuit 82 de façon précise et l'on peut facilement calculer la distance les séparant. Cette distance est comparée à une distance de référence, et comme dans tous les exemples précédents l'objet à contrôler 82 est jugé conforme aux critères de qualité si sa distance caractéristique se trouve comprise entre les valeurs minimales et maximales admises. By repeating If necessary this operation for the other end, we know the two ends of the cookie 82 in a precise way and we can easily calculate the distance separating them. This distance is compared to a reference distance, and as in all the previous examples the object to be checked 82 is judged to comply with the quality criteria if its characteristic distance is between the minimum and maximum values allowed.

La figure 9 présente un mode de réalisation préférentiel d'un procédé de créationlvérification de la signature d'un objet du type consistant à détecter une condition d'homogénéité d'un objet en comparant des signatures de différentes zones de cet objet. Ce cas correspond par exemple à la mesure de la rugosité du bord d'un joint torique, de façon à détecter des taches, c'est-à-dire d'éventuelles inhomogénéités .  FIG. 9 presents a preferred embodiment of a method of creation / verification of the signature of an object of the type consisting in detecting a condition of homogeneity of an object by comparing signatures of different zones of this object. This case corresponds for example to the measurement of the roughness of the edge of an O-ring, so as to detect stains, that is to say possible inhomogeneities.

Dans ce cas, le procédé selon l'invention consiste à prendre une pluralité d'images 91 contenant chacune une portion 92 du joint. Puis, pour chaque image, on décompose la portion de joint en une multitude de petits rectangles 84A à 84E adjacents, correspondants en quelque sorte à autant de fenêtres de calcul d'histogramme. On calcule un histogramme pour chacun de ces petits rectangles 84A à 84E Puis on somme ces histogrammes deux par deux par paires adjacentes de façon que chacun de ces petits rectangles soit pris deux fois. On obtient des histogrammes sommés. Ceci permet de détecter une tache même si elle se trouve à la limite de deux petits rectangles 84A à 84E
Puis on calcule l'histogramme moyen correspondant à la moyenne de tous ces histogrammes sommés.On choisit comme paramètre caractéristique de cet histogramme moyen sa largeur. Par largeur on entend ici le nombre de niveaux d'amplitude étant associés à des quantités de pixels non nulle.
In this case, the method according to the invention consists in taking a plurality of images 91 each containing a portion 92 of the joint. Then, for each image, the joint portion is broken down into a multitude of adjacent small rectangles 84A to 84E, corresponding in a way to as many histogram calculation windows. We calculate a histogram for each of these small rectangles 84A to 84E. Then we sum these histograms two by two in adjacent pairs so that each of these small rectangles is taken twice. We obtain summed histograms. This makes it possible to detect a spot even if it is at the limit of two small rectangles 84A to 84E
Then we calculate the average histogram corresponding to the average of all these summed histograms. We choose as a characteristic parameter of this average histogram its width. By width is meant here the number of amplitude levels being associated with non-zero quantities of pixels.

Enfin, on compare chaque histogramme sommé (somme de deux histogrammes correspondant à deux petits rectangles). Une tache est détectée, et indique que le joint est de mauvaise qualité, si la valeur de la largeur de l'histogramme sommé n'est pas comprise dans un intervalle de tolérance situé autour de la valeur de la largeur de l'histogramme moyen. Finally, we compare each summed histogram (sum of two histograms corresponding to two small rectangles). A spot is detected, and indicates that the joint is of poor quality, if the value of the width of the summed histogram is not included in a tolerance interval located around the value of the width of the average histogram.

La figure 10 présente un synoptique d'un circuit de calcul d'un histogramme utilisable dans le cadre de l'invention. FIG. 10 presents a block diagram of a circuit for calculating a histogram usable in the context of the invention.

Le fonctionnement d'un tel circuit est le suivant. Un processeur 106 initialise la mémoire vive 103 destinée à stocker les valeurs de l'histogramme en inscrivant la valeur 0 dans chaque case de cette mémoire. The operation of such a circuit is as follows. A processor 106 initializes the random access memory 103 intended to store the values of the histogram by writing the value 0 in each box of this memory.

Le processeur 106 commande le multiplexeur 101 de façon à sélectionner: - soit une entrée de données "temps réel", ces données correspondant à une
image en cours d'acquisition ou une image issue d'un autre traitement (par
exemple une convolution) - soit une entrée de données stockées auparavant et envoyées par un
processeur principal (non représenté) transitant par le processeur 106.
The processor 106 controls the multiplexer 101 so as to select: - either a "real time" data entry, this data corresponding to a
image being acquired or an image from another processing (by
example a convolution) - either a data entry previously stored and sent by a
main processor (not shown) passing through processor 106.

Le processeur 106 indique à des moyens 105 de logiques de contrôle si les données doivent être analysées avec ou sans masque de contour. Dans le cas de l'utilisation d'un masque de contour, chaque pixel de ce contour possède un code particulier (0 par exemple). The processor 106 indicates to control logic means 105 whether the data should be analyzed with or without a contour mask. When using a contour mask, each pixel of this contour has a specific code (0 for example).

Par ailleurs, le processeur 106 inscrit dans un registre 102 l'adresse de la zone de la mémoire 103 à utiliser, ce registre étant relié aux fils d'adresses hautes
AH de la mémoire 103.
Furthermore, the processor 106 enters in a register 102 the address of the memory area 103 to be used, this register being connected to the high address wires.
AH from memory 103.

Dans le cas d'une analyse sans masque de contour, les différentes valeurs de niveaux d'amplitude des pixels servent d'adresse à la mémoire 103. Dans ce cas, l'entrée est reliée aux fils d'adresse basses AB. Lorsqu'un pixel arrive pour être traité, son niveau d'amplitude permet de sélectionner une case mémoire. Le contenu de cette case mémoire sélectionnée est envoyé à un compteur 104 qui incrémente d'une unité la valeur de la case mémoire. Le compteur 104 possède des moyens d'écrêtrage afin d'éviter de repasser à zéro après avoir atteint sa valeur maximale. Le résultat de l'incrémentation est ensuite écrit en mémoire 103 dans la case mémoire sélectionnée, puis on passe au pixel suivant. In the case of an analysis without contour mask, the various values of amplitude levels of the pixels serve as addresses for the memory 103. In this case, the input is connected to the low address wires AB. When a pixel arrives to be processed, its amplitude level makes it possible to select a memory cell. The content of this selected memory box is sent to a counter 104 which increments the value of the memory box by one. The counter 104 has clipping means in order to avoid going back to zero after reaching its maximum value. The result of the incrementation is then written into memory 103 in the selected memory box, then we pass to the next pixel.

Ainsi, lorsque tous les pixels ont été traités, chaque case mémoire correspondant à un niveau d'amplitude distinct contient une valeur indiquant le nombre de pixels possédant effectivement cette valeur. On dispose donc de l'histogramme des valeurs d'amplitude. Thus, when all the pixels have been processed, each memory cell corresponding to a distinct amplitude level contains a value indicating the number of pixels actually having this value. We therefore have the histogram of amplitude values.

Dans le cas d'une analyse avec masque de contour, des moyens 107 de détection du "code de contour" indiquent aux moyens 105 de logique de contrôle chaque pixel faisant partie du contour du masque, en faisant changer d'état une bascule interne/externe. In the case of an analysis with a contour mask, means 107 for detecting the "contour code" indicate to the control logic means 105 each pixel forming part of the contour of the mask, by changing the state of an internal flip-flop / external.

Si le pixel ne fait pas partie du contour du masque et si la bascule est dans l'état interne, alors le pixel est traité comme expliqué précédemment pour une analyse sans masque de contour. If the pixel is not part of the outline of the mask and if the rocker is in the internal state, then the pixel is treated as explained previously for an analysis without outline mask.

Sinon, c'est-à-dire si le pixel appartient au contour du masque ou si la bascule se trouve dans l'état externe, le pixel n'est pas traité. De cette façon, on possède l'histogramme de tous les pixels situés à l'intérieur du contour délimité par le masque. Otherwise, that is to say if the pixel belongs to the outline of the mask or if the rocker is in the external state, the pixel is not processed. In this way, we have the histogram of all the pixels located inside the outline delimited by the mask.

Après le traitement de l'ensemble des pixels, le processeur 106 récupère les résultats dans la mémoire 103 et les transmet au processeur principal (non représenté). After processing all the pixels, the processor 106 retrieves the results from memory 103 and transmits them to the main processor (not shown).

La figure 11 présente un exemple d'utilisation de fenêtres multiples. Figure 11 shows an example of using multiple windows.

Dans cet exemple, le procédé selon l'invention permet de mesurer de façon économique la longueur d'un objet 116 en positionnant deux fenêtres 112A, 112B à chacune de ses deux extrémités. In this example, the method according to the invention makes it possible to economically measure the length of an object 116 by positioning two windows 112A, 112B at each of its two ends.

Un histogramme unique est alors réalisé sur l'union des deux fenêtres. En effectuant une mesure de surface sur cet histogramme, le cas échéant après seuillage pour élimination des pixels non significatifs, on obtient une valeur représentative de la longueur de l'objet et susceptible d'être comparée à une valeur de référence. A single histogram is then produced on the union of the two windows. By performing a surface measurement on this histogram, if necessary after thresholding for elimination of non-significant pixels, a value representative of the length of the object is obtained which can be compared with a reference value.

Ceci s'explique par le fait que la mesure ainsi effectuée revient en quelque sorte à placer deux fenêtres imbriquées l'une dans l'autre. Une première fenêtre de plus grande longueur de type "positif" (c'est-à-dire dont les pixels sont pris en compte pour l'analyse de l'image), dans laquelle on vient placer une seconde fenêtre de type négatif (c'est-à-dire sont les pixels ne sont pas pris en compte), cette seconde fenêtre étant placée de manière telle qu'il ne subsiste plus de la première fenêtre que les deux fenêtres d'extrémité sur l'union desquelles est réalisé l'histogramme comme décrit précédemment. This is explained by the fact that the measurement thus carried out amounts in a way to placing two windows nested one inside the other. A first window of greater length of the "positive" type (that is to say whose pixels are taken into account for the analysis of the image), in which a second window of the negative type is placed (c (i.e. the pixels are not taken into account), this second window being placed in such a way that only the two end windows remain on the first window, on the union of which is made l histogram as described previously.

Ce cas est notamment particulièrement avantageux dans l'hypothèse où la zone médiane de l'objet (correspondant à la seconde fenêtre "négative") comporte des éléments susceptibles de parasiter ou de fausser la luminosité des pixels (imaginons par exemple un lettrage de produit en lettres fluorescentes). This case is particularly particularly advantageous in the hypothesis where the median zone of the object (corresponding to the second "negative" window) comprises elements liable to parasitize or distort the brightness of the pixels (imagine for example a product lettering in fluorescent letters).

En fait, même en l'absence d'un tel risque de parasitage, le principe de fenêtrage multiple permet de réduire considérablement le nombre de pixels pris en compte et les temps de traitement de calcul. In fact, even in the absence of such a risk of interference, the principle of multiple windowing makes it possible to considerably reduce the number of pixels taken into account and the calculation processing times.

D'autre part, comme on pourra le constater sur la figure 11, il est plus avantageux de prendre une largeur de fenêtre X inférieure à la largeur c de l'objet. On the other hand, as can be seen in Figure 11, it is more advantageous to take a window width X less than the width c of the object.

En effet, dans ce cas, la forme de l'histogramme calculé sera moins dépendante de la géométrie de l'extrémité, et donc diminuera l'exigence de précision pour le positionnement des deux fenêtres jumelles par rapport à chaque objet.  Indeed, in this case, the shape of the calculated histogram will be less dependent on the geometry of the end, and therefore will decrease the requirement of precision for the positioning of the two twin windows compared to each object.

Claims (13)

REVENDICATIONS 1. Procédé de création/vérification de la signature d'un objet représenté sur une image numérique décrite pixel par pixel, de façon à comparer la signature d'une zone d'objet à une signature originale, caractérisé en ce qu'il comprend - d'une part une première phase de création d'une signature originale de1. Method for creating / verifying the signature of an object represented on a digital image described pixel by pixel, so as to compare the signature of an object area with an original signature, characterized in that it comprises - on the one hand, a first phase of creating an original signature of l'objet comprenant les étapes suivantes the object comprising the following steps * positionnement d'une fenêtre dans l'image numérique représentant * positioning of a window in the digital image representing l'objet  the object * calcul d'un histogramme de référence consistant à compter et * calculation of a reference histogram consisting of counting and classer le nombre de pixels de ladite fenêtre en fonction de classify the number of pixels of said window according to différents niveaux d'amplitude different amplitude levels * extraction d'un paramètre caractéristique dudit histogramme de * extraction of a characteristic parameter from said histogram of référence correspondant à ladite signature originale, et calcul de sa reference corresponding to said original signature, and calculation of its valeur - d'autre part une seconde phase de vérification de la signature à contrôler value - on the other hand a second phase of verification of the signature to be checked comprenant les étapes suivantes  including the following steps * positionnement d'une fenêtre de calcul sur une zone d'objet à * positioning of a calculation window on an object area to contrôler  control * calcul d'un histogramme de contrôle dans les mêmes conditions que * calculation of a control histogram under the same conditions as dans la phase de création de signature consistant à compter et à in the signature creation phase of counting and classer le nombre de pixels de ladite fenêtre en fonction de classify the number of pixels of said window according to différents niveaux d'amplitude different amplitude levels * calcul de la valeur dudit paramètre caractéristique pour l'histo * calculation of the value of said characteristic parameter for the histo gramme de contrôle correspondant à la signature de la zone d'objet control gram corresponding to the signature of the object area à contrôler; to control; * comparaison des signatures. * comparison of signatures. 2. Procédé de création/vérification de la signature d'un objet (42) représenté sur une image numérique (41) décrite pixel par pixel, du type consistant à comparer un objet à contrôler par rapport à un objet type de référence, caractérisé en ce qu'il comprend:2. Method for creating / verifying the signature of an object (42) represented on a digital image (41) described pixel by pixel, of the type consisting in comparing an object to be checked with respect to a reference type object, characterized in what he understands: d'une part une première phase (I) de création d'une signature originale on the one hand, a first phase (I) of creating an original signature d'un objet type représenté sur une image numérique de référence of a typical object represented on a digital reference image comprenant les étapes suivantes  including the following steps * repérage (21) de la position dudit objet (42) type dans l'image (41) * location (21) of the position of said object (42) type in the image (41) de référence; reference; * positionnement (22) d'une fenêtre (44) dans ladite image (41) de * positioning (22) of a window (44) in said image (41) of référence reference * calcul (23) d'un histogramme de référence consistant à compter et * calculation (23) of a reference histogram consisting of counting and classer le nombre de pixels de ladite fenêtre (44) en fonction de classify the number of pixels of said window (44) according to différents niveaux d'amplitude (311 à 31n) ;;  different amplitude levels (311 to 31n) ;; * extraction (24) d'un paramètre caractéristique dudit histogramme * extraction (24) of a characteristic parameter of said histogram de référence correspondant à ladite signature originale, et calcul de of reference corresponding to said original signature, and calculation of sa valeur  his value d'autre part une seconde phase (TI) de vérification de la signature d'un on the other hand a second phase (TI) of verification of the signature of a objet à contrôler représenté sur une image numérique de travail compre object to be checked represented on a digital working image nant les étapes suivantes  the next steps * repérage (25) de la position dudit objet à contrôler dans l'image de * location (25) of the position of said object to be checked in the image of travail  job * calcul (26) du décalage entre ladite position de l'objet à contrôler * calculation (26) of the offset between said position of the object to be checked dans l'image de travail et ladite position de l'objet type dans l'image in the working image and said position of the type object in the image de référence reference * décalage (27) de ladite fenêtre de façon qu'elle soit positionnée de * offset (27) of said window so that it is positioned la même façon par rapport à l'objet à contrôler et par rapport à the same way with respect to the object to be checked and with respect to l'objet type the type object * calcul (28) d'un histogramme de contrôle dans les mêmes conditions * calculation (28) of a control histogram under the same conditions que dans une phase de création de signature consistant à compter that in a signature creation phase consisting of counting et classer le nombre de pixels de ladite fenêtre en fonction des and classify the number of pixels of said window according to the différents niveaux d'amplitude different amplitude levels * calcul (29) de la valeur dudit paramètre caractéristique dudit histo  * calculation (29) of the value of said characteristic parameter of said histo gramme de contrôle correspondant à la signature de l'objet à control gram corresponding to the signature of the object to contrôler  control * comparaison (210) de la signature de l'objet à contrôler avec la * comparison (210) of the signature of the object to be checked with the signature originale afin d'apprécier la qualité dudit objet à contrô original signature in order to assess the quality of the said object to be checked ler. 1st. 3. Procédé de création/vérification de la signature d'un objet (82) selon la revendication 1, du type consistant à détecter une zone d'extrémité dudit objet (82), caractérisé en ce qu'on positionne une fenêtre (84) dans ladite zone d'extrémité, en ce qu'on établit des premiers histogrammes de référence par balayage des lignes d'écran situées dans ladite fenêtre (84) et du côté du centre de l'objet (82), en ce qu'on calcule les histogrammes d'exploration correspondant à une succession de lignes s'étendant sensiblement perpendiculairement à la direction de mesure, en s'éloignant du centre de l'objet (82); et en ce qu'on compare les histogrammes d'exploration aux histogrammes de référence, jusqu'à détecter un histogramme divergent qui présente une valeur du paramètre caractéristique de comparaison avec la valeur dudit paramètre caractéristique de l'histogramme de référence d'une différence supérieure à une valeur prédéterminée, la ligne correspondant audit histogramme divergent étant alors réputée constituer ladite extrémité de l'objet (82).3. A method of creating / verifying the signature of an object (82) according to claim 1, of the type consisting in detecting an end region of said object (82), characterized in that a window (84) is positioned. in said end zone, in that first reference histograms are established by scanning the screen lines situated in said window (84) and on the side of the center of the object (82), in that calculates the exploration histograms corresponding to a succession of lines extending substantially perpendicular to the direction of measurement, away from the center of the object (82); and in that the exploration histograms are compared with the reference histograms, until detecting a divergent histogram which presents a value of the characteristic parameter of comparison with the value of said characteristic parameter of the reference histogram of a greater difference at a predetermined value, the line corresponding to said divergent histogram then being deemed to constitute said end of the object (82). 4. Procédé de création/vérification de la signature d'un objet selon la revendication 1 du type consistant à détecter une condition d'homogénéité d'un objet (92) en comparant des signatures de différentes zones dudit objet, caractérisé en ce qu'on positionne une pluralité de fenêtres (84A à 84E) dans ledit objet, en ce qu'on établit un histogramme pour chacune desdites zones d'objet délimitée par chacune desdites fenêtres (84A à 84E), et en ce qu'on calcule un paramètre caractéristique d'histogramme constituant une référence pour l'objet (92) à contrôler, ledit paramètre à contrôler étant élaboré à partir des histogrammes calculés pour la pluralité de fenêtres (84A à 84E).4. A method of creating / verifying the signature of an object according to claim 1 of the type consisting in detecting a condition of homogeneity of an object (92) by comparing signatures of different areas of said object, characterized in that a plurality of windows (84A to 84E) are positioned in said object, in that a histogram is established for each of said object areas delimited by each of said windows (84A to 84E), and in that a parameter is calculated histogram characteristic constituting a reference for the object (92) to be checked, said parameter to be checked being produced from histograms calculated for the plurality of windows (84A to 84E). 5. Procédé selon l'une quelconque des revendications 1 à 4, caractérisé en ce que ledit paramètre caractéristique d'un histogramme appartient au groupe comprenant - une mesure de surface déterminée à partir dudit histogramme - une largeur (L) correspondant à l'intervalle en abscisse pour lequel la5. Method according to any one of claims 1 to 4, characterized in that said characteristic parameter of a histogram belongs to the group comprising - a surface measurement determined from said histogram - a width (L) corresponding to the interval on the x-axis for which the représentation graphique dudit histogramme est située au-dessus d'une graphical representation of said histogram is located above a valeur prédéterminée - une hauteur (H) correspondant à la valeur maximale en ordonnée de la predetermined value - a height (H) corresponding to the maximum value on the ordinate of the représentation graphique dudit histogramme. graphical representation of said histogram. 6. Procédé selon la revendication 5, caractérisé en ce que ledit paramètre caractéristique est une mesure de surface, et en ce que ladite étape de calcul de ladite mesure de surface consiste à - répartir lesdits pixels dudit histogramme en au moins deux groupes de6. Method according to claim 5, characterized in that said characteristic parameter is a surface measurement, and in that said step of calculating said surface measurement consists in - distributing said pixels of said histogram in at least two groups of pixels (131', 132', 133'; 141, 142), chacun desdits groupes de pixels étant pixels (131 ', 132', 133 '; 141, 142), each of said groups of pixels being associé à une plage distincte de niveaux d'amplitude successifs, deux associated with a separate range of successive amplitude levels, two groupes successifs étant associés à deux plages adjacentes de niveaux successive groups being associated with two adjacent ranges of levels d'amplitude et séparés par un niveau d'amplitude de séparation (35 ; 143  amplitude and separated by a level of separation amplitude (35; 143 ; à 154); - déterminer ladite mesure de surface en comptant le nombre de pixels d'au ; at 154); - determine said surface measurement by counting the number of pixels at least moins un desdits groupes de pixels. minus one of said pixel groups. 7. Procédé selon la revendication 6, caractérisé en ce que ledit histogramme comprend un premier et un second groupes de pixels, ledit premier groupe contenant les pixels dont le niveau d'amplitude est inférieur à un niveau d'amplitude de séparation, ledit second groupe contenant les pixels dont le niveau d'amplitude est supérieur audit niveau d'amplitude de séparation, et en ce que la détermination dudit niveau d'amplitude de séparation comprend les étapes suivantes - recherche d'un premier niveau d'amplitude (316) correspondant à un 7. Method according to claim 6, characterized in that said histogram comprises a first and a second group of pixels, said first group containing the pixels whose amplitude level is lower than a separation amplitude level, said second group containing the pixels whose amplitude level is greater than said separation amplitude level, and in that the determination of said separation amplitude level comprises the following steps - search for a corresponding first amplitude level (316) has a nombre maximal de pixels possédant un même niveau d'amplitude - recherche, parmi les niveaux restants, d'un second niveau d'amplitude (34) maximum number of pixels with the same amplitude level - search among the remaining levels for a second amplitude level (34) d'une part correspondant à un nombre maximal de pixels possédant un  on the one hand corresponding to a maximum number of pixels having a même niveau d'amplitude et d'autre part répondant aux contraintes same level of amplitude and on the other hand meeting the constraints suivantes following * le nombre de pixels possédant ledit second niveau d'amplitude (34) * the number of pixels having said second amplitude level (34) est supérieur à un niveau de seuil déterminé d'après la moyenne is above a threshold level determined from the mean des nombres de pixels associés à tous les niveaux d'amplitude (31  pixel numbers associated with all amplitude levels (31 à 31n) ;  at 31n); * le nombre de niveaux d'amplitude existant entre le second niveau * the number of amplitude levels existing between the second level d'amplitude (34) et le premier niveau d'amplitude (316) doit être amplitude (34) and the first amplitude level (316) must be suffisamment grand big enough * une valeur paramète du second niveau d'amplitude (34) doit être * a parameter value of the second amplitude level (34) must be la plus grande possible, ladite valeur paramètre étant fonction du as large as possible, said parameter value being a function of nombre de pixels du second niveau d'amplitude (34) et du nombre number of pixels of the second amplitude level (34) and of the number de niveaux d'amplitude existant entre le premier niveau (316) et le amplitude levels existing between the first level (316) and the second niveau (34);; - recherche d'un troisième niveau d'amplitude (35) d'une part situé entre second level (34) ;; - search for a third amplitude level (35) on the one hand located between lesdits premier (34) et second (316) niveaux d'amplitude et d'autre part said first (34) and second (316) amplitude levels and secondly correspondant au nombre de pixels le plus faible, ledit troisième niveau corresponding to the lowest number of pixels, said third level d'amplitude (35) étant égal audit niveau d'amplitude de séparation. amplitude (35) being equal to said separation amplitude level. 8. Procédé selon la revendication 6, caractérisé en ce que la détermination de chacun desdits niveaux d'amplitude de séparation comprend les étapes suivantes - visualisation dudit histogramme de référence - positionnement sur ledit histogramme de référence de deux bornes inférieure (BîL à B4L) et supérieure (B1H à B4H) de niveau d'amplitude de séparation;; - détermination, pour ledit histogramme de référence, dudit niveau d'amplitude de séparation (151 à 154) comme étant égal au niveau d'amplitude d'une part compris entre lesdites bornes inférieure et supérieure et d'autre part correspondant à un nombre minimal de pixels possédant un même niveau d'amplitude - positionnement automatique sur ledit histogramme de contrôle de deux bornes inférieure et supérieure compensées, lesdites bornes inférieure et supérieure compensées étant obtenues à partir d'une part desdites bornes inférieure et supérieure et d'autre part d'un facteur de compensation représentatif des variations de luminosité entre les pixels utilisés pour le calcul de l'histogramme de référence et les pixels utilisés pour le calcul de l'histogramme de contrôle - détermination, pour ledit histogramme de contrôle, dudit niveau d'amplitude de séparation comme étant égal au niveau d'amplitude d'une part compris entre lesdites bornes inférieure et supérieure compensées et d'autre part correspondant à un nombre minimal de pixels possédant un même niveau d'amplitude.8. Method according to claim 6, characterized in that the determination of each of said separation amplitude levels comprises the following steps - visualization of said reference histogram - positioning on said reference histogram of two lower bounds (BîL to B4L) and higher (B1H to B4H) of separation amplitude level; - determination, for said reference histogram, of said separation amplitude level (151 to 154) as being equal to the amplitude level on the one hand comprised between said lower and upper bounds and on the other hand corresponding to a minimum number of pixels having the same amplitude level - automatic positioning on said control histogram of two compensated lower and upper bounds, said compensated lower and upper bounds being obtained on the one hand from said lower and upper bounds and on the other hand d a compensation factor representative of the variations in brightness between the pixels used for the calculation of the reference histogram and the pixels used for the calculation of the control histogram - determination, for said control histogram, of said amplitude level separation as being equal to the amplitude level on the one hand between said lower limits and s higher compensated and on the other hand corresponding to a minimum number of pixels having the same level of amplitude. 9. Procédé selon la revendication 8, caractérisé en ce que la définition dudit facteur de compensation appartient au groupe suivant de définitions - le facteur de compensation est égal à un premier rapport entre d'une part le niveau d'amplitude moyen des pixels de l'histogramme de contrôle et d'autre part le niveau d'amplitude moyen des pixels de l'histogramme de référene - le facteur de compensation est égal à un second rapport entre d'une part le niveau d'amplitude de l'histogramme de contrôle correspondant au nombre maximal de pixels possédant un même niveau d'amplitude et d'autre part le niveau d'amplitude de l'histogramme de référence correspondant au nombre maximal de pixels possédant un même niveau d'amplitude - le facteur de compensation est égal à un troisième rapport entre d'une part la largeur de l'histogramme de contrôle et d'autre part la largeur de l'histogramme de référence - le facteur de compensation est égal à une somme pondérée desdits premier, second et troisième rapports.9. Method according to claim 8, characterized in that the definition of said compensation factor belongs to the following group of definitions - the compensation factor is equal to a first ratio between on the one hand the average amplitude level of the pixels of l control histogram and on the other hand the average amplitude level of the pixels of the reference histogram - the compensation factor is equal to a second ratio between on the one hand the amplitude level of the control histogram corresponding to the maximum number of pixels having the same amplitude level and on the other hand the amplitude level of the reference histogram corresponding to the maximum number of pixels having the same amplitude level - the compensation factor is equal to a third relationship between on the one hand the width of the control histogram and on the other hand the width of the reference histogram - the compensation factor is equal to a weighted sum of said first, second and third reports. 10. Procédé selon l'une quelconque des revendications 1 à 9, caractérisé en ce que ladite fenêtre est constituée d'un élément (44 ; 52 ; 74 ; 84) fermé unique constitué d'un seul tenant, ou d'une pluralité de tels éléments (112A, 112B), ou d'une imbrication de tels éléments (122, 123, 124) alternativement de sorte que si une première fenêtre (122) délimite une surface à prendre en compte pour l'analyse de l'image (121), la fenêtre (123) de niveau immédiatement inférieur qui est imbriquée dans ladite première fenêtre (122) délimite une zone dont les pixels ne sont pas pris en compte pour l'analyse de l'image (121), et ainsi de suite.10. Method according to any one of claims 1 to 9, characterized in that said window consists of a single closed element (44; 52; 74; 84) consisting of a single piece, or of a plurality of such elements (112A, 112B), or a nesting of such elements (122, 123, 124) alternately so that if a first window (122) delimits a surface to be taken into account for the analysis of the image ( 121), the window (123) of immediately lower level which is nested in said first window (122) delimits an area whose pixels are not taken into account for the analysis of the image (121), and so on . 11. Procédé selon l'une quelconque des revendications 1 à 10, caractérisé en ce que ladite fenêtre est un masque de contour (52) de l'objet (54) à contrôler, ledit masque (52) de contour étant défini lors de la première phase de création de signature, et en ce que ladite étape de calcul d'un histogramme consiste à balayer ligne à ligne l'image numérique (51) incluant le masque (54), et à prendre en compte sélectivement les pixels de l'image au cours d'un processus d'activationjdésactivation de la construction de l'histogramme11. Method according to any one of claims 1 to 10, characterized in that said window is an outline mask (52) of the object (54) to be checked, said outline mask (52) being defined during the first phase of signature creation, and in that said step of calculating a histogram consists in scanning line by line the digital image (51) including the mask (54), and in taking into account selectively the pixels of the image during an activation process j deactivation of the histogram construction - le processus étant placé en mode d'activation lors de chaque - the process being placed in activation mode during each franchissement d'un contour de masque en direction de l'intérieur crossing a mask outline towards the interior du masque (54), the mask (54), - le processus étant placé en mode de désactivation lors d'un - the process being placed in deactivation mode during a franchissement en sens contraire. crossing in the opposite direction. 12. Procédé selon la revendication 11, caractérisé en ce que ledit contour subit une étape de lissage préalable consistant à balayer ligne à ligne le contour et d'une part à éliminer les points de rebroussement isolés, et d'autre part à ne conserver qu'un seul point (61) pour toute série de points adjacents sur une même ligne, et en ce que ledit processus d'activation/désactivation est mis en oeuvre automatiquement au moyen d'un système de bascule inversant le mode courant d'activation/désactivation à chaque rencontre d'un nouveau pixel (61) du contour du masque lors du balayage de l'image. 12. Method according to claim 11, characterized in that said contour undergoes a prior smoothing step consisting in sweeping line by line the contour and on the one hand eliminating the isolated cusps, and on the other hand only keeping '' a single point (61) for any series of adjacent points on the same line, and in that said activation / deactivation process is carried out automatically by means of a rocker system reversing the current activation mode / deactivation each time a new pixel (61) of the mask outline is encountered during the scanning of the image. 13. Procédé selon la revendications 12, caractérisé en ce que ledit masque (74) est de largeur sensiblement constante et en ce que ladite mesure de surface permet de déduire une mesure de longueur (D). 13. Method according to claim 12, characterized in that said mask (74) is of substantially constant width and in that said surface measurement makes it possible to deduce a measurement of length (D).
FR9302550A 1992-04-27 1993-03-02 IMPROVED PROCESS FOR CREATING / VERIFYING THE SIGNATURE OF AN OBJECT REPRESENTED ON A DIGITAL IMAGE, USING HISTOGRAMS CALCULATED IN WINDOWS POSITIONED IN THE IMAGE. Expired - Fee Related FR2693580B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
FR9302550A FR2693580B1 (en) 1992-04-27 1993-03-02 IMPROVED PROCESS FOR CREATING / VERIFYING THE SIGNATURE OF AN OBJECT REPRESENTED ON A DIGITAL IMAGE, USING HISTOGRAMS CALCULATED IN WINDOWS POSITIONED IN THE IMAGE.

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
FR9205340A FR2690543A1 (en) 1992-04-27 1992-04-27 Creation and verification of signature of digitised image of object - uses histogram of pixels in inspection window as basis for determining value of comparison parameter
FR9302550A FR2693580B1 (en) 1992-04-27 1993-03-02 IMPROVED PROCESS FOR CREATING / VERIFYING THE SIGNATURE OF AN OBJECT REPRESENTED ON A DIGITAL IMAGE, USING HISTOGRAMS CALCULATED IN WINDOWS POSITIONED IN THE IMAGE.

Publications (2)

Publication Number Publication Date
FR2693580A1 true FR2693580A1 (en) 1994-01-14
FR2693580B1 FR2693580B1 (en) 1996-01-05

Family

ID=26229433

Family Applications (1)

Application Number Title Priority Date Filing Date
FR9302550A Expired - Fee Related FR2693580B1 (en) 1992-04-27 1993-03-02 IMPROVED PROCESS FOR CREATING / VERIFYING THE SIGNATURE OF AN OBJECT REPRESENTED ON A DIGITAL IMAGE, USING HISTOGRAMS CALCULATED IN WINDOWS POSITIONED IN THE IMAGE.

Country Status (1)

Country Link
FR (1) FR2693580B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006000651A1 (en) * 2004-05-24 2006-01-05 France Telecom Method for the characterization of a digital image and the applications thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990014639A1 (en) * 1989-05-25 1990-11-29 International Remote Imaging Systems, Inc. A method and an apparatus for identifying an object
US5060290A (en) * 1989-09-05 1991-10-22 Dole Dried Fruit And Nut Company Algorithm for gray scale analysis especially of fruit or nuts
WO1991017517A1 (en) * 1990-05-07 1991-11-14 Gdp Technologies, Inc. Improved image analysis method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1990014639A1 (en) * 1989-05-25 1990-11-29 International Remote Imaging Systems, Inc. A method and an apparatus for identifying an object
US5060290A (en) * 1989-09-05 1991-10-22 Dole Dried Fruit And Nut Company Algorithm for gray scale analysis especially of fruit or nuts
WO1991017517A1 (en) * 1990-05-07 1991-11-14 Gdp Technologies, Inc. Improved image analysis method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
B.G. BATCHELOR: "interactive image analysis as a prototyping tool for industrial inspection", COMPUTERS AND DIGITAL TECHNIQUES, vol. 2, no. 2, April 1979 (1979-04-01), pages 61 - 70 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006000651A1 (en) * 2004-05-24 2006-01-05 France Telecom Method for the characterization of a digital image and the applications thereof
US7876832B2 (en) 2004-05-24 2011-01-25 France Telecom Method for the characterization of a digital image and the applications thereof

Also Published As

Publication number Publication date
FR2693580B1 (en) 1996-01-05

Similar Documents

Publication Publication Date Title
EP0970367B1 (en) Method for examining doubtful zones on the surface of an unwinding strip by image segmentation
FR3084945A1 (en) METHOD OF ANALYSIS OF A FOOTPRINT
FR2905188A1 (en) Input image e.g. palm imprint image, density converting method for e.g. image processing improving system, involves converting minimum local and maximum local values into minimum and maximum common values, and reconstructing input image
EP1770037B1 (en) Process of detecting double feeding of postal items by image analysis of the upright items
WO2016146937A1 (en) Method for processing an asynchronous signal
CA2284894C (en) Method for examining an unwinding strip surface by pre-classification of detected surface defect
WO2023006627A1 (en) Method for automatically detecting defects in the components of a circuit board
EP3214601B1 (en) Image enhancement method applicable to fingerprint images
EP0681270A1 (en) Object trajectory determination process and device for carrying out this process
FR2790571A1 (en) METHOD FOR RECOGNIZING FORMS
JP7383722B2 (en) Method and system for defect detection in image data of target coatings
FR2693580A1 (en) Creation/verification method for signature of object represented by digital pixel image - involves calculating reference from original signature and control histogram in verification stage, and calculating comparison of pixels
EP1646967B1 (en) Method for measuring the proximity of two contours and system for automatic target identification
FR2688911A1 (en) METHOD FOR CREATING THE SIGNATURE OF AN OBJECT REPRESENTED ON A DIGITAL IMAGE, OF THE TYPE CONSISTING OF DEFINING AT LEAST ONE CHARACTERISTIC DIMENSIONAL SIZE OF THE OBJECT, AND CORRESPONDING METHOD FOR VERIFYING THE SIGNATURE OF AN OBJECT.
EP3933626B1 (en) Assessment of the bias of a biometric identification function
FR2690543A1 (en) Creation and verification of signature of digitised image of object - uses histogram of pixels in inspection window as basis for determining value of comparison parameter
EP1129432B1 (en) Method for comparing recorded pixel images representing equipotential lines of at least an integrated circuit chip
FR3058816A1 (en) METHOD FOR NON-DESTRUCTIVE CONTROL OF METAL PIECE
WO2017187059A1 (en) Method for adjusting a stereoscopic imaging device
FR2685514A1 (en) Process and device for verifying the orientation of an electronic component before placement on an electronic card
JPH09179985A (en) Inspection method and classifying method for image defect
FR2681947A1 (en) Method for the automatic classification of defects in micro-circuits
FR3137474A1 (en) Method for grouping waveform descriptions
EP1554687A2 (en) Fuzzy associative system for multimedia object description
FR3080937A1 (en) METHOD AND DEVICE FOR REAL-TIME DISTANCE RECOGNITION

Legal Events

Date Code Title Description
TP Transmission of property
CJ Change in legal form
ST Notification of lapse

Effective date: 20051130

RN Application for restoration
FC Decision of inpi director general to approve request for restoration
ST Notification of lapse

Effective date: 20100831