CN112529876A - Method for detecting edge defects of contact lenses - Google Patents

Method for detecting edge defects of contact lenses Download PDF

Info

Publication number
CN112529876A
CN112529876A CN202011479846.XA CN202011479846A CN112529876A CN 112529876 A CN112529876 A CN 112529876A CN 202011479846 A CN202011479846 A CN 202011479846A CN 112529876 A CN112529876 A CN 112529876A
Authority
CN
China
Prior art keywords
edge
contact lens
image
detection method
defects
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
CN202011479846.XA
Other languages
Chinese (zh)
Other versions
CN112529876B (en
Inventor
赵友全
乜灵梅
查涛
张凯
管志强
房彦军
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.)
Tianjin University
Original Assignee
Tianjin University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin University filed Critical Tianjin University
Priority to CN202011479846.XA priority Critical patent/CN112529876B/en
Publication of CN112529876A publication Critical patent/CN112529876A/en
Application granted granted Critical
Publication of CN112529876B publication Critical patent/CN112529876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/958Inspecting transparent materials or objects, e.g. windscreens
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • G06T3/604Rotation of a whole image or part thereof using a CORDIC [COordinate Rotation Digital Compute] device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/958Inspecting transparent materials or objects, e.g. windscreens
    • G01N2021/9583Lenses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Abstract

A method of detecting edge defects in a contact lens, the method comprising obtaining a two-dimensional image of the contact lens; preprocessing a two-dimensional image; performing transverse and longitudinal projection on the preprocessed two-dimensional image to obtain a one-dimensional signal; performing second-order derivation on the one-dimensional signal to obtain edge geometric parameters of the contact lens; performing space polar coordinate transformation by using the edge geometric parameters; extracting edge lines according to the polar coordinates; and extracting characteristic parameters of the extracted edge lines, and judging that the edge of the contact lens has defects if the characteristic parameters exceed a preset threshold value. The invention obtains the circle center and the radius of the corneal contact lens in a short time by deriving after accumulating the horizontal and vertical pixels in the image, and the circular image contour extracted on the basis can prevent the micro defect information from being lost.

Description

Method for detecting edge defects of contact lenses
Technical Field
The invention belongs to the field of biomedical engineering, and relates to a method for detecting edge defects of contact lenses.
Background
The corneal contact lens is a soft lens widely used for vision correction, and the main manufacturing mode of the corneal contact lens comprises two modes of turning and injection molding, and the toughness of the material enables the defects of injection edge cracking, air bubbles, mold brightness and the like to be easily generated in the processing process, so that a wearer feels discomfort, the canthus is inflamed and even the cornea is damaged. The image acquisition system based on machine vision can obtain the outline image of the corneal contact lens, and automatic defect detection can be realized through image enhancement, edge extraction and feature analysis.
The edge shape of the corneal contact lens is circular, circle detection is needed when the edge of the corneal contact lens is extracted, and the existing circle detection method comprises Hough transform, random Hough transform, least square method circle fitting and the like, wherein the Hough transform is a method for carrying out information statistics by using parameter transform to obtain the coordinates and the radius of a circle center, the time complexity and the space complexity of the method are high, the calculation speed of the method is low, the extracted contour is easy to lose tiny edge defects, and the calculation speed and the defect detection accuracy are insufficient; the random Hough change improves the classical Hough transform, but the method is not suitable for circular ring detection; the least squares circle fitting is relatively fast, but image processing is difficult due to the influence of the form, pattern, front and back surfaces, etc. of the contact lens. In addition, the edge defects of the corneal contact lens comprise mold edges, broken edges, cracked edges, turning edges, deformation and the like, and the existing detection method only extracts the distance from the edge to the circle center for defect analysis, so that detection omission and false detection are easily caused.
Disclosure of Invention
It is therefore one of the primary objectives of the claimed invention to provide a method for detecting edge defects of contact lenses, so as to at least partially solve at least one of the above-mentioned problems.
In order to achieve the above object, the present invention provides a method for detecting edge defects of a contact lens, comprising:
(1) acquiring a two-dimensional image of a contact lens;
(2) preprocessing a two-dimensional image;
(3) performing transverse and longitudinal projection on the preprocessed two-dimensional image to obtain a one-dimensional signal;
(4) performing second-order derivation on the one-dimensional signal to obtain edge geometric parameters of the contact lens;
(5) performing space polar coordinate transformation by using the edge geometric parameters;
(6) extracting edge lines according to the polar coordinates;
(7) and extracting characteristic parameters of the extracted edge lines, and judging that the edge of the contact lens has defects if the characteristic parameters exceed a preset threshold value.
Based on the above technical solutions, the method for detecting edge defects of a contact lens according to the present invention has at least one or some of the following advantages over the prior art:
1. the invention has proposed the detection method of a contact lens edge defect, this detection method obtains centre of a circle and radius of the contact lens of cornea in the short time through calculating the derivation after accumulating horizontal and vertical pixel in the picture, the round image outline that is extracted on this basis, can prevent losing the tiny defect information, compared with prior art, its calculated speed is fast, the defect is judged accurately;
2. the invention can find the thickness unevenness of the contact lens which can not be observed manually, ensures the quality of the contact lens, prevents the defective products from flowing to the market and causing harm to users, and can classify and sort the defects by detecting the defect characteristic extraction.
Drawings
FIG. 1 is a flow chart illustrating a method for detecting edge defects of a contact lens according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of edge defect types in an embodiment of the present invention;
FIG. 3 is an image after preprocessing in an embodiment of the invention;
FIG. 4 is a one-dimensional signal diagram after dimensionality reduction in an embodiment of the present invention;
FIG. 5 is a first order derivation diagram in an embodiment of the present invention;
FIG. 6 is a graph of second derivative according to an embodiment of the present invention;
FIG. 7 is an image of an original image after coordinate transformation centered on the center of a contact lens according to an embodiment of the present invention;
FIG. 8 is an edge line image extracted in an embodiment of the present invention;
FIG. 9 is a graph showing the results of the detection in example 1 of the present invention.
Detailed Description
In order that the objects, technical solutions and advantages of the present invention will become more apparent, the present invention will be further described in detail with reference to the accompanying drawings in conjunction with the following specific embodiments.
The invention discloses a method for detecting edge defects of contact lenses, which comprises the following steps:
(1) acquiring a two-dimensional image of a contact lens;
(2) preprocessing a two-dimensional image;
(3) performing transverse and longitudinal projection on the preprocessed two-dimensional image to obtain a one-dimensional signal;
(4) performing second-order derivation on the one-dimensional signal to obtain edge geometric parameters of the contact lens;
(5) performing space polar coordinate transformation by using the edge geometric parameters;
(6) extracting edge lines according to the polar coordinates;
(7) and extracting characteristic parameters of the extracted edge lines, and judging that the edge of the contact lens has defects if the characteristic parameters exceed a preset threshold value.
In some embodiments of the present invention, the two-dimensional image in step (1) is obtained by a pinhole light source refraction and scattering imaging method.
In some embodiments of the present invention, the preprocessing in step (2) comprises image gray scale transform enhancement and filtering processing.
In some embodiments of the present invention, the method for obtaining the edge geometry of the contact lens in step (4) comprises recording the first two maximum peaks of the second-order derivation, and calculating the edge geometry parameter according to the maximum peaks.
In some embodiments of the present invention, the edge geometric parameters in step (4) include circle center coordinates, radius, edge width, and longitudinal-transverse radius difference.
In some embodiments of the present invention, the method further comprises determining whether the contact lens edge is defective based on the difference in the longitudinal and transverse radii;
and if the transverse-longitudinal radius difference exceeds a preset threshold value, judging that the edge of the contact lens has defects.
In some embodiments of the present invention, the spatial polar coordinate transformation in step (5) is a transformation between an image coordinate space and a polar coordinate space.
In some embodiments of the invention, the interpolation process of the polar space transform is performed using nearest neighbor interpolation.
In some embodiments of the present invention, the edge line is extracted in step (6) to form an approximate straight line.
In some embodiments of the present invention, the characteristic parameter in step (7) comprises at least one of an edge line width characteristic, an edge line gray scale characteristic, and a distance characteristic from an edge point to a center of the contact lens.
The invention provides an edge defect method aiming at the requirements of the material, the shape and the detection environment of a contact lens, selects a small-hole light source imaging method to carry out edge imaging, highlights the edge information of the contact lens to weaken the internal patterns and the adverse effects caused by impurities in water, adopts horizontal and vertical pixel accumulation and second-order derivation to carry out target positioning, firstly obtains the center of a circular image, and extracts the edge of a corneal contact lens based on the center and the radius. The pixel accumulation is a process of pixel integration of an image according to multiple dimensions, belongs to one dimension reduction method, and is used for rapid detection of regular image edges. The second derivative can reflect the change of the gradient near the image pixel, and focus on the change of the edge brightness, and for the one-dimensional signal, the first derivative is used for representing the slope, and the second derivative is used for representing the concave-convex of the signal. And combining pixel accumulation and second-order difference to extract image edge information including circle center position and edge width.
The obtained two-dimensional image is represented by IMG, the size of the two-dimensional image is represented by m × n, the specific calculation mode is represented by formula (1), horizontal and vertical pixel accumulation is respectively carried out, IMGx (n) represents vertical pixel summation, and IMGy (m) represents horizontal pixel summation. For the edge part of the mutation, the statistical power is better.
Figure BDA0002836510740000041
The second derivative reaction is the change rate of the first derivative, which intuitively reflects the concave-convex property of the original signal, and the expression is shown as formula (2), wherein x0Is an argument of the signal, f (x)0) For the dependent variable, h is the step size parameter, essentially the smaller h the more accurate.
Figure BDA0002836510740000042
The gray information of the image is extracted through pixel accumulation, the horizontal or longitudinal gray information can be subjected to feature analysis through second-order derivation, and when a regular edge exists in the image, rapid information integration can be performed through combination of the methods, and the edge parameter of the image can be obtained.
The specific detection flow of the intelligent detection method for the contact lenses is shown in fig. 1, and the image of the contact lenses with the highlighted edges is obtained based on the pinhole light source imaging technology; image enhancement is realized by utilizing linear gray scale transformation; calculating the center and radius of the target through pixel accumulation and second-order derivation; extracting a lens edge line based on the calculation of a circular equation and the coordinate transformation; and further extracting edge characteristics and identifying defects through pixel-level image analysis.
The invention detects defects of the edge of a contact lens, and the types of defects to be identified specifically, including gaps, abrasion, tearing and the like, are shown in fig. 2 (a) - (f), which are specifically represented by pixel gray scale, edge shape, edge width and the like. The edge shape of the contact lens is a circle, and the traditional Hough transform circle detection and corresponding improved algorithm are based on the accumulation of corresponding points in a parameter space, so that the center of the detected circle has certain deviation with the center of the contact lens.
The image processing method of the invention mainly relates to edge extraction and feature extraction, and mainly comprises the following steps:
(1) image preprocessing, including image contrast enhancement and filtering processing;
(2) and (4) accumulating and superposing pixels, namely performing transverse and longitudinal projection on the image by adopting a pixel accumulation method, and reducing two-dimensional image information into a one-dimensional signal.
(3) Second-order derivation finds the circle center coordinates, radius and edge width of the edge: and performing second-order derivation on the one-dimensional signals, and calculating the center, the transverse and longitudinal diameters and the edge width of the contact lens by recording the maximum peak value.
(4) Converting a Cartesian space coordinate system and a polar coordinate system, and performing polar coordinate transformation on an original image by taking the center and the radius of the contact lens as the reference to obtain the polar coordinate of the image;
(5) extracting edge lines: and extracting the edge of the image according to the obtained polar coordinates.
(6) And (3) defect detection: and extracting the characteristics of the contact lens such as transverse and longitudinal radius difference, the gray characteristic of the edge, the distance from the edge to the center, the abrupt change characteristic of the distance, the width abrupt change and the like to judge whether the contact lens has edge defects.
Cumulative pixel overlap
After the original image is subjected to preprocessing image enhancement, a preprocessed image is obtained, as shown in fig. 3; the preprocessed images are respectively subjected to transverse and longitudinal accumulation summation of image gray scale, two-dimensional image information is reduced to transverse and longitudinal one-dimensional signals, the result is shown in fig. 4, and catastrophe points can be obviously observed from fig. 4: a and C are longitudinal circle boundaries, and B, D are transverse circle boundaries, where the transverse direction (i.e., column direction) represents the length of the image and the longitudinal direction (i.e., row direction) represents the accumulation of pixel gray levels.
Second order derivation and related information extraction
The second order derivation for the one-dimensional signal may reflect changes in the gradient near the image pixel, i.e., changes in edge shading. In order to solve the problem of accurate positioning of the edge points, the invention respectively performs one-dimensional derivation and two-dimensional derivation on one-dimensional signals after pixel accumulation, the one-dimensional derivation result is shown in fig. 5, A-B, C-D, E-F and G-H in fig. 5 respectively represent the edge points, edge extraction on the first derivation according to the amplitude value can be influenced by the internal contour, for example, the amplitudes of O point and G point in the figure are close, and the possibility of edge point confusion exists. The two-dimensional derivation result is shown in fig. 6, while the edge point signal in fig. 6 is clearly demarcated and is not affected by the edge points of the inner contour. The distance between the largest adjacent peaks and valleys (distance between a-B) in fig. 6 shows the width of the edge line, which is one of the criteria for subsequent evaluation of edge defects.
C is defined as the mean of the absolute values of the second derivative of the lateral projection, as shown in equation (3) below,
Figure BDA0002836510740000061
peak extraction is performed by using the mean value C, and the coordinate position of the peak point larger than 3C is recorded as formula (4), where DIFIx is a peak sequence satisfying the requirement, and assuming that the length of DIFIx is k, corresponding to fig. 5, the positions of DIFIx (1), DIFIx (2), DIFIx (k) and DIFIx (k-1) in the original signal are C, D, E and F, respectively, i.e., Index l, Index2, Index3 and Index4 in formula (5), Index1 and Index2 are the outer edge position and the inner edge position of the left edge, and Index3 and Index4 are the outer edge position and the inner edge position of the right edge, respectively.
DIFIx=findpeaks(|DIF2x|>3C) (4)
Figure BDA0002836510740000062
Figure BDA0002836510740000063
Figure BDA0002836510740000064
The central transverse coordinate, the edge width and the transverse radius of the contact lens can be obtained by the formula (6) and the formula (7), wherein X0The horizontal coordinate of the circle center is the coordinate mean value of four edge points, Widthx is the edge width obtained by solving the left and right edge mean values, and Rx is the center line of the circular ring processed by the mean value of the inner diameter and the outer diameter as the radius of the horizontal circle center. The longitudinal projection is processed as above to obtain the longitudinal circular coordinate, edge width and radius, and the result of the transverse and longitudinal directions is integrated to obtain the center coordinate, radius and edge width.
Edge line conversion and extraction
The invention converts the curve into a simple straight line through space conversion and then extracts the corresponding gray scale, distance, various sudden change and other characteristics.
1) And (4) converting the image space coordinate system and the polar coordinate system.
And performing radius type scanning by taking the center coordinates as a center point, wherein the scanning radius is larger than the radius of the center of the circle in numerical value. And (4) performing interpolation between image transformations by adopting a nearest neighbor interpolation method. The conversion of the two spaces is according to the conversion formula (8), the horizontal axis of the polar coordinate space is the polar angle, and the vertical axis is the polar diameter.
Figure BDA0002836510740000071
Fig. 7 shows the original image after coordinate transformation centered at the center of the contact lens.
2) And extracting edge lines.
In order to extract the edge accurately, a certain width of pixel points is extracted to form a region with reference to the width of the edge of the contact lens, and as shown in fig. 8, an image of the extracted edge line is displayed.
3) Before feature extraction, gray level enhancement and filtering processing are carried out on the transformed edge lines. Considering gray level differences caused by the front and back of the contact lens, the thickness of the edge and the like, the dynamic contrast enhancement is carried out according to the gray level mean value, and the upper limit k of the enhancement area is set according to a formula (9), wherein line represents the extracted edge line, and n is the number of pixel points on the edge line. The gray level mean value represents the overall brightness of the edge line, the darker the gray level mean value is, the smaller the upper limit k of the image enhancement area is, and the purpose of the operation is to map all the edge lines to the same gray level so as to extract the gray level parameters.
Figure BDA0002836510740000072
After various transformations, the extracted edges are relatively isolated, in order to ensure the accuracy of the gray average value, the positions of pixel points with longitudinal continuous width larger than the edge width are searched, the pixel points are determined as edge pixels, and all the edge pixel point average values are calculated.
Criterion for judging edge defect
The judgment criteria of the present invention are not limited to the following criteria, and may be set according to actual needs. The threshold setting of the embodiment is set by performing feature extraction according to a picture of a normal edge, and in other embodiments, the threshold may be set according to actual needs. Several criteria for judging edge defects are listed below:
(1) and if the difference of the longitudinal and transverse radii RD exceeds a threshold value, judging that the edge of the contact lens has defects.
The difference between the transverse radius and the longitudinal radius, RD, satisfies the formula (10);
RD=|Rx-Ry| (10)
wherein, Rx and Ry are respectively a transverse radius and a longitudinal radius, and the larger RD is, the larger difference of the transverse and longitudinal diameters is, and the more serious lens deformation is.
(2) And if the width of the edge line exceeds a threshold value, judging that the edge of the contact lens has defects. The extraction of the width is to record the maximum length of each column of continuous points as the width of the edge line, denoted as w.
(3) And D, judging that the edge of the contact lens has a defect if the edge width mutation degree DM exceeds a threshold value. DM is the first derivative of the width w.
(4) The gray level of the edge line pixel changes GPM, if the gray level characteristics of the edge line pixel exceed the threshold value, the defect of the edge of the contact lens is judged;
the most intuitive imaging of the thickness unevenness is represented by a large difference of gray scale, and GPM and a pixel gray scale abrupt change width GPMW are proposed to describe the thickness unevenness defect, and GPMW is the width of the defect. The notch defect has larger mutation on the gray scale, the difference between the notch average value and the normal edge is very large, the notch average value is defined as the gray scale density GPMW, and the GPMW and the pixel gray scale mutation density GPMD are used for describing the notch defect.
(4) The distance from the edge point to the center of the contact lens is defined as DER, the radius of the contact lens is different, the DER cannot be used as a judgment standard, the difference width ratio is provided as a judgment basis, and the DER is defined as formula (11), R is the radius of a fitting circle, and wn is the average value of the edge width. If the DSR exceeds a threshold value, judging that the contact lens edge has defects;
Figure BDA0002836510740000081
(5) the DEM is the first derivative of DER, and if the abrupt change characteristic exceeds the threshold value, the edge of the contact lens is judged to have defects.
Example 1
In this embodiment, 307 images with normal edges are selected for feature extraction. The preprocessing is image-level contrast enhancement and median filtering. Setting the threshold shown in the table 1 according to the parameter range, wherein the upper limit of DR is 20 pixel points; the gray scale change characteristics comprise three parameters, namely GPM, GPMW and GPMD, wherein the GPM limit is 100, the GPMW is only counted, the threshold value is set by referring to the extraction of a defect picture, and the GPMD is set to 80; DSR is within 2 and is a normal value; the upper limit of the DEM is 1; the edge width WR should be between 0.5-1.5 times the width mean; the upper limit of the edge width change slope WM is 1.
TABLE 1 threshold ranges for edge features
Figure BDA0002836510740000091
According to the parameter limitation of the normal edge, 922 pictures with edge defects are detected, 879 pictures are detected, 43 pictures are not detected, the detection rate is 95.18%, and the detection time is 0.8 s/picture. The detection effect is shown in fig. 9, and the defect positions are marked by rectangles with different curvatures aiming at different characteristics, wherein the rectangles represent gray level abrupt changes, the rectangles with small curvatures represent relative changes of distances and radiuses, the circles represent abrupt changes of distances, the rectangles with large curvatures have abrupt changes of widths, all kinds of edge defects are marked, and small gaps, gray level abrupt changes, tearing, deformation and the like are sought to be detected. The presence of different marks at the same location indicates that a defective contact lens will often have more than one defect, with fewer lenses being deformed.
Table 2 provides the number of different defects detected, with the exception of the radius difference, and the remaining edge defects largely overlapping, indicating that contact lenses are often characterized by more than one feature when defective.
TABLE 2 number of different defects detected
Figure BDA0002836510740000092
In conclusion, the invention provides a new solution for detecting the edge defects of the contact lenses, and the defects can be detected quickly and accurately.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention and are not intended to limit the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for detecting edge defects of a contact lens, comprising:
(1) acquiring a two-dimensional image of a contact lens;
(2) preprocessing a two-dimensional image;
(3) performing transverse and longitudinal projection on the preprocessed two-dimensional image to obtain a one-dimensional signal;
(4) performing second-order derivation on the one-dimensional signal to obtain edge geometric parameters of the contact lens;
(5) performing space polar coordinate transformation by using the edge geometric parameters;
(6) extracting edge lines according to the polar coordinates;
(7) and extracting characteristic parameters of the extracted edge lines, and judging that the edge of the contact lens has defects if the characteristic parameters exceed a preset threshold value.
2. The detection method according to claim 1,
the two-dimensional image in the step (1) is obtained by a small-hole light source refraction and scattering imaging method.
3. The detection method according to claim 1,
the preprocessing in the step (2) comprises image gray scale transformation enhancement and filtering processing.
4. The detection method according to claim 1,
and (4) recording the first two maximum peak values of the second-order derivation, and calculating to obtain the edge geometric characteristic parameters according to the maximum peak values.
5. The detection method according to claim 1,
the edge geometric parameters in the step (4) comprise a circle center coordinate, a radius, an edge width and a transverse and longitudinal radius difference.
6. The detection method according to claim 5,
the detection method also comprises the step of judging whether the edge of the contact lens has defects according to the transverse and longitudinal radius difference;
and if the transverse-longitudinal radius difference exceeds a preset threshold value, judging that the edge of the contact lens has defects.
7. The detection method according to claim 1,
and (5) transforming the spatial polar coordinate into an image coordinate space and a polar coordinate space.
8. The detection method according to claim 7,
the interpolation processing of the polar coordinate space transformation is performed using nearest neighbor interpolation.
9. The detection method according to claim 1,
and (5) extracting the edge line in the step (6) to form an approximate straight line.
10. The detection method according to claim 1,
the characteristic parameters in the step (7) comprise at least one of edge line width characteristics, edge line gray scale characteristics and edge point-to-contact lens center distance characteristics.
CN202011479846.XA 2020-12-15 2020-12-15 Method for detecting edge defects of contact lenses Active CN112529876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011479846.XA CN112529876B (en) 2020-12-15 2020-12-15 Method for detecting edge defects of contact lenses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011479846.XA CN112529876B (en) 2020-12-15 2020-12-15 Method for detecting edge defects of contact lenses

Publications (2)

Publication Number Publication Date
CN112529876A true CN112529876A (en) 2021-03-19
CN112529876B CN112529876B (en) 2023-03-14

Family

ID=75000177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011479846.XA Active CN112529876B (en) 2020-12-15 2020-12-15 Method for detecting edge defects of contact lenses

Country Status (1)

Country Link
CN (1) CN112529876B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113379744A (en) * 2021-08-12 2021-09-10 山东大拇指喷雾设备有限公司 Nozzle device surface defect detection method and system based on image processing
CN113838080A (en) * 2021-09-28 2021-12-24 上海赢朔电子科技股份有限公司 Rapid edge finding method for surface of modular semiconductor
CN116012330A (en) * 2022-12-28 2023-04-25 广州市易鸿智能装备有限公司 Pole piece defect detection method, device, equipment and computer storage medium
CN116862912A (en) * 2023-09-04 2023-10-10 山东恒信科技发展有限公司 Raw oil impurity detection method based on machine vision
CN116990450A (en) * 2023-07-18 2023-11-03 欧几里德(苏州)医疗科技有限公司 Defect detection method and system for cornea shaping mirror
CN117197036A (en) * 2023-07-25 2023-12-08 钛玛科(北京)工业科技有限公司 Image detection method and device
CN117269179A (en) * 2023-11-23 2023-12-22 平方和(北京)科技有限公司 High-precision detection method and system for edge defects of contact lens based on machine vision
CN116990450B (en) * 2023-07-18 2024-04-26 欧几里德(苏州)医疗科技有限公司 Defect detection method and system for cornea shaping mirror

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134342A (en) * 1993-12-27 2000-10-17 Menicon Co., Ltd. Visual inspection method and apparatus for contact lenses
CN101246544A (en) * 2008-01-24 2008-08-20 电子科技大学中山学院 Iris locating method based on boundary point search and SUSAN edge detection
WO2012076993A1 (en) * 2010-12-07 2012-06-14 Hiok Nam Tay Auto-focus image system
CN104021382A (en) * 2014-06-20 2014-09-03 北京释码大华科技有限公司 Eye image collection method and system
CN106537110A (en) * 2014-05-15 2017-03-22 伊麦视觉私人有限公司 System and method for inspecting opthalmic lenses
CN111062961A (en) * 2019-12-30 2020-04-24 天津大学 Contact lens edge defect detection method based on deep learning
CN111354041A (en) * 2018-12-20 2020-06-30 核动力运行研究所 System positioning method based on image recognition

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134342A (en) * 1993-12-27 2000-10-17 Menicon Co., Ltd. Visual inspection method and apparatus for contact lenses
CN101246544A (en) * 2008-01-24 2008-08-20 电子科技大学中山学院 Iris locating method based on boundary point search and SUSAN edge detection
WO2012076993A1 (en) * 2010-12-07 2012-06-14 Hiok Nam Tay Auto-focus image system
CN106537110A (en) * 2014-05-15 2017-03-22 伊麦视觉私人有限公司 System and method for inspecting opthalmic lenses
CN104021382A (en) * 2014-06-20 2014-09-03 北京释码大华科技有限公司 Eye image collection method and system
CN111354041A (en) * 2018-12-20 2020-06-30 核动力运行研究所 System positioning method based on image recognition
CN111062961A (en) * 2019-12-30 2020-04-24 天津大学 Contact lens edge defect detection method based on deep learning

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
YAO HONG-BING: "《Defect detection for resin lenses based on digital image processing technology》", 《JOURNAL OF APPLIED OPTICS》 *
朱宇栋: "《光学镜片外观瑕疵视觉检测方法》", 《应用光学》 *
陈至坤等: "基于视觉技术的圆环外观缺陷检测算法研究", 《机床与液压》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113379744A (en) * 2021-08-12 2021-09-10 山东大拇指喷雾设备有限公司 Nozzle device surface defect detection method and system based on image processing
CN113379744B (en) * 2021-08-12 2021-11-19 山东大拇指喷雾设备有限公司 Nozzle device surface defect detection method and system based on image processing
CN113838080A (en) * 2021-09-28 2021-12-24 上海赢朔电子科技股份有限公司 Rapid edge finding method for surface of modular semiconductor
CN113838080B (en) * 2021-09-28 2022-12-27 上海赢朔电子科技股份有限公司 Rapid edge finding method for surface of modular semiconductor
CN116012330B (en) * 2022-12-28 2023-10-20 广州市易鸿智能装备有限公司 Pole piece defect detection method, device, equipment and computer storage medium
CN116012330A (en) * 2022-12-28 2023-04-25 广州市易鸿智能装备有限公司 Pole piece defect detection method, device, equipment and computer storage medium
CN116990450A (en) * 2023-07-18 2023-11-03 欧几里德(苏州)医疗科技有限公司 Defect detection method and system for cornea shaping mirror
CN116990450B (en) * 2023-07-18 2024-04-26 欧几里德(苏州)医疗科技有限公司 Defect detection method and system for cornea shaping mirror
CN117197036A (en) * 2023-07-25 2023-12-08 钛玛科(北京)工业科技有限公司 Image detection method and device
CN117197036B (en) * 2023-07-25 2024-02-13 钛玛科(北京)工业科技有限公司 Image detection method and device
CN116862912A (en) * 2023-09-04 2023-10-10 山东恒信科技发展有限公司 Raw oil impurity detection method based on machine vision
CN116862912B (en) * 2023-09-04 2023-11-24 山东恒信科技发展有限公司 Raw oil impurity detection method based on machine vision
CN117269179A (en) * 2023-11-23 2023-12-22 平方和(北京)科技有限公司 High-precision detection method and system for edge defects of contact lens based on machine vision
CN117269179B (en) * 2023-11-23 2024-02-02 平方和(北京)科技有限公司 High-precision detection method and system for edge defects of contact lens based on machine vision

Also Published As

Publication number Publication date
CN112529876B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN112529876B (en) Method for detecting edge defects of contact lenses
CN109141232B (en) Online detection method for disc castings based on machine vision
CN105067638B (en) Tire fetal membrane face character defect inspection method based on machine vision
JP5155886B2 (en) Method and apparatus for detecting eyes in digital images
CN104794721B (en) A kind of quick optic disk localization method based on multiple dimensioned spot detection
CN115018853B (en) Mechanical component defect detection method based on image processing
CN115861291B (en) Chip circuit board production defect detection method based on machine vision
CN111462066B (en) Thread parameter detection method based on machine vision
CN116309600B (en) Environment-friendly textile quality detection method based on image processing
CN110428463B (en) Method for automatically extracting center of image in out-of-focus fuzzy centering of aspheric optical element
CN116205919A (en) Hardware part production quality detection method and system based on artificial intelligence
CN108734701B (en) Placido ring image morphological change identification method
CN115439481A (en) Deaerator welding quality detection method based on image processing
CN112884708A (en) Method for detecting burrs of circular injection molding piece
CN113298776B (en) Method for detecting appearance defects of metal closed water pump impeller
CN107392849A (en) Target identification and localization method based on image subdivision
CN115063407B (en) Scratch and crack identification method for annular copper gasket
CN116503403B (en) Defect detection method of metal cutting tool bit based on image processing
CN115984271A (en) Metal burr identification method based on angular point detection
CN114863493B (en) Detection method and detection device for low-quality fingerprint image and non-fingerprint image
CN115953550A (en) Point cloud outlier rejection system and method for line structured light scanning
CN117095004A (en) Excavator walking frame main body welding deformation detection method based on computer vision
CN111815575B (en) Bearing steel ball part detection method based on machine vision
CN116912329A (en) Binocular vision optimal precision measurement method
CN116673597A (en) Laser line image feature extraction system and method for double-V composite groove

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant