Contour inspection method and apparatus
AssigneeOMRON Corporation
InventorShiro Fujieda
Life of this patent
Estimating the term…
Abstract
Defects in the contour of a target object is detected by obtaining an digital variable-density image of the contour and edges are extracted from the image of the contour so as to sequentially represent the contour. Their directions are measured and the direction of each edge is compared with those of other edges selected according to their distances from the edge under consideration. The differential is indicative of the presence or absence of an indentation or a protrusion in the contour, representing a defect.
Claims9
A method of inspecting a contour of a target object, said method comprising the steps of:
- preparing a variable-density image of said contour;
- extracting edge pixels along and from said contour on said image;
- measuring directions of said edge pixels, the direction of each of said edge pixels being defined as a direction that makes a specified angle with the direction of the density gradient on said variable-density image at, said each pixel;
- selecting said edge pixels sequentially one edge pixel at a time and comparing the direction of said one edge pixel with the direction of another of said edge pixels at a specified distance from said one edge pixel to obtain a comparison result;
- determining presence or absence of a defect in said contour from the comparison results obtained for said edge pixels;
- and
- obtaining an edge code Ec(x,y) for each of said edge pixels as follows:
- Ec(x,y)=a tan {Ey(x,y)/Ex(x,y)} if Ex(x,y)>0 and Ey(x,y)≧0;
- Ec(x,y)=360°+a tan {Ey(x,y)/Ex(x,y)}if Ex(x,y)>0 and Ey(x,y)<0;
- Ec(x,y)=180°+a tan {Ey(x,y)/Ex(x,y)}if Ex(x,y)>0;
- Ec(x,y)=0° if Ex(x,y)=0 and Ey(x,y)>0;
- and
- Ec(x,y)=180° if Ex(x,y)=0 and Ey(x,y)<0;
- where (x,y) is the coordinate of said each edge pixel, and Ex(x,y) and Ey(x,y) are respectively the x-component and the y-component of the density gradient at position (x,y);
- and
- wherein the step of comparing the direction comprises the step of comparing the edge code of said each edge pixel with the edge code of said another edge pixel.
An apparatus for inspecting a contour of a target object, said apparatus comprising:
- image input means for obtaining a variable-density image of said target object;
- edge extracting means for extracting edge pixels along and from said contour on said image;
- measuring means for measuring directions of said edge pixels extracted by said edge extracting means, the direction of each of said edge pixels being defined as a direction that makes a specified angle with the direction of the density gradient on said variable-density image at, said each pixel;
- comparing means for selecting said edge pixels sequentially one edge pixel at a time and comparing the direction of said one edge pixel with the direction of another of said edge pixels at a specified distance from said one edge pixel to obtain a comparison result;
- and
- judging means for determining presence or absence of a defect in said contour from the comparison results obtained by said comparing means;
- wherein said comparing means serves to obtain an edge code Ec(x,y) for each of said edge pixels as follows:
- Ec(x,y)=a tan{Ev(x,y)/Ex(x,y)} if Ex(x,y)<0 and Ey(x,y)≧0;
- Ec(x,y)=360°+a tan{Ey(x,y)/Ex(x,y)} if Ex(x,y)>0 and Ey(x,y)<0;
- Ec(x,y)=180°=a tan{Ey(x,y)/Ex(x,y)} if Ex(x,y)<0;
- Ec(x,y)=0° if Ex(x,y)=0 and Ey(x,y)>0;
- and
- Ec(x,y)=180° if Ex(x,y)=0 and Ey(x,y)<0;
- where (x,y) is the coordinate of said each edge pixel, and Ex(x,y) and Ey(x,y) are respectively the x-component and the y-component of the density gradient at position (x,y):
- and to compare the edge code of said each edge pixel with the edge code of said another edge pixel.
Dependencies are inferred from the claim text.