CN112419228B - Method and device for detecting three-dimensional edge defect of cover plate - Google Patents

Method and device for detecting three-dimensional edge defect of cover plate Download PDF

Info

Publication number
CN112419228B
CN112419228B CN202011099453.6A CN202011099453A CN112419228B CN 112419228 B CN112419228 B CN 112419228B CN 202011099453 A CN202011099453 A CN 202011099453A CN 112419228 B CN112419228 B CN 112419228B
Authority
CN
China
Prior art keywords
image
cover plate
defect
edge
stereoscopic
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.)
Active
Application number
CN202011099453.6A
Other languages
Chinese (zh)
Other versions
CN112419228A (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.)
Gaoshi Technology Suzhou Co ltd
Original Assignee
Gaoshi Technology Suzhou Co ltd
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 Gaoshi Technology Suzhou Co ltd filed Critical Gaoshi Technology Suzhou Co ltd
Priority to CN202011099453.6A priority Critical patent/CN112419228B/en
Publication of CN112419228A publication Critical patent/CN112419228A/en
Application granted granted Critical
Publication of CN112419228B publication Critical patent/CN112419228B/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
    • G06T7/0004Industrial image inspection
    • G06T7/0006Industrial image inspection using a design-rule based approach
    • 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
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • G06T2207/10012Stereo images

Abstract

The disclosure relates to a method and a device for detecting a three-dimensional edge defect of a cover plate, wherein the method comprises the following steps: acquiring a three-dimensional edge image of the cover plate; obtaining a plurality of intermediate images through a plurality of mean filtering according to the stereo edge image, and obtaining the intermediate defect image according to the stereo edge image and the plurality of intermediate images; according to the intermediate defect image, obtaining the defect highlighted image through image enhancement; and extracting the image of the defect at the stereoscopic edge according to the defect highlighted image. When the method is used for detecting the defects of the three-dimensional edge of the cover plate, the interference in the three-dimensional edge image can be effectively inhibited, so that a good detection effect is obtained.

Description

Method and device for detecting three-dimensional edge defect of cover plate
Technical Field
The disclosure relates to the field of visual inspection, in particular to a method and a device for detecting a three-dimensional edge defect of a cover plate.
Background
It is known that the edges of the cover plates are prone to defects during the production process due to the three-dimensional nature of the edges of the cover plates. Especially 3D glass covers used in mobile phones, for example, defects in such covers may even result in scrapping of the finished mobile phone. However, due to the stereoscopic property of the edge of the cover plate, it is difficult to detect the defect at the edge of the cover plate, and the detection effect of the related art detection method is not good.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for detecting a three-dimensional edge defect of a cover plate.
According to a first aspect of the embodiments of the present disclosure, a method for detecting a three-dimensional edge defect of a cover plate is provided, where the method includes: acquiring a three-dimensional edge image of the cover plate; obtaining a plurality of intermediate images through a plurality of mean filtering according to the stereo edge image, and obtaining the intermediate defect image according to the stereo edge image and the plurality of intermediate images; according to the intermediate defect image, obtaining the defect highlighted image through image enhancement; extracting the image of the defect at the three-dimensional edge according to the defect highlighted image
Optionally, the extracting, according to the defect highlighted image, the image of the defect at the stereoscopic edge includes: and extracting the image of the defect by performing threshold segmentation on the defect highlighted image.
Optionally, before the acquiring the stereoscopic edge image of the cover plate, the detecting method further includes: collecting an image of the cover plate; and determining the stereo edge image of the cover plate according to the image of the cover plate.
Optionally, after acquiring the image of the cover plate, the detection method further includes: and filtering the acquired image of the cover plate through Gaussian filtering.
Optionally, the determining the stereoscopic edge image of the cover plate according to the image of the cover plate includes: and determining the stereo edge image of the cover plate according to the image of the cover plate and the cover plate reference image.
Optionally, determining the stereoscopic edge image of the cover plate according to the image of the cover plate and the cover plate reference image includes: taking a reference area in the cover plate reference image by taking a pixel point as a reference center; determining a positioning point corresponding to the reference center in the image of the cover plate through a search algorithm according to the reference area; determining the offset of the positioning point relative to the reference center according to the positioning point and the reference center; determining a stereoscopic edge image of the image from the offset and a position of a stereoscopic edge in the cover reference image.
Optionally, the reference center is a center of a camera hole in the cover reference image, and the reference area is a rectangular area centered on the center of the camera hole.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for detecting a three-dimensional edge defect of a cover plate, wherein the apparatus includes: an acquisition unit for acquiring a stereoscopic edge image of the cover plate; a first processing unit for obtaining a plurality of intermediate images by a plurality of mean filtering from the stereoscopic edge image and obtaining the intermediate defect image from the stereoscopic edge image and the plurality of intermediate images; a second processing unit for obtaining the defect saliency image by image enhancement from the intermediate defect image; and the extracting unit is used for extracting the image of the defect at the stereoscopic edge according to the defect highlighted image.
Optionally, the extracting unit is configured to extract an image of the defect at the stereoscopic edge according to the defect highlighted image in the following manner: and extracting the image of the defect by performing threshold segmentation on the defect highlighted image.
Optionally, the detection apparatus further includes: the acquisition unit is used for acquiring the image of the cover plate before the acquisition unit acquires the stereoscopic edge image of the cover plate; a determining unit for determining a stereoscopic edge image of the cover plate according to the image of the cover plate.
Optionally, the detection device further includes a filtering unit, where the filtering unit is configured to filter the acquired image of the cover plate through gaussian filtering after the acquisition unit acquires the image of the cover plate.
Optionally, the determining unit is configured to determine the stereoscopic edge image of the cover plate according to the image of the cover plate in the following manner: and determining the stereo edge image of the cover plate according to the image of the cover plate and the cover plate reference image.
Optionally, the determining unit is configured to determine the stereoscopic edge image of the cover plate according to the image of the cover plate and the cover plate reference image in the following manner: determining the stereoscopic edge image of the cover plate according to the image of the cover plate and the cover plate reference image comprises: taking a reference area in the cover plate reference image by taking a pixel point as a reference center; determining a positioning point corresponding to the reference center in the image of the cover plate through a search algorithm according to the reference area; determining the offset of the positioning point relative to the reference center according to the positioning point and the reference center; determining a stereoscopic edge image of the image from the offset and a position of a stereoscopic edge in the cover reference image.
Optionally, the reference center is a center of a camera hole in the cover reference image, and the reference area is a rectangular area centered on the center of the camera hole.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the defect detection is carried out on the three-dimensional edge of the cover plate, the interference in the three-dimensional edge image can be effectively inhibited, so that a good detection effect is obtained.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar or corresponding parts and in which:
FIG. 1 is a flow chart illustrating a method for detecting a dimensional edge defect of a cover plate according to an exemplary embodiment;
FIGS. 2a and 2b show an example of illumination at the edge of a handset;
FIG. 2c is a flow chart illustrating another method for detecting a dimensional edge defect of a cover plate according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating yet another method for detecting a cover plate solid edge defect in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an apparatus for inspecting solid edge defects of a cover plate in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating another apparatus for detecting a dimensional edge defect of a cover plate in accordance with an exemplary embodiment;
fig. 6 is a block diagram illustrating yet another apparatus for detecting a three-dimensional edge defect of a cover plate according to an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be understood that the terms "first," "second," "third," and "fourth," etc. in the claims, description, and drawings of the present disclosure are used to distinguish between different objects and are not used to describe a particular order. The terms "comprises" and "comprising," when used in the specification and claims of this disclosure, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the disclosure herein is for the purpose of describing particular embodiments only, and is not intended to be limiting of the disclosure. As used in the specification and claims of this disclosure, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the term "and/or" as used in the specification and claims of this disclosure refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The disclosure provides a method for detecting a three-dimensional edge defect of a cover plate. Referring to fig. 1, fig. 1 is a flowchart illustrating a method for detecting a three-dimensional edge defect of a cover plate according to an exemplary embodiment. As shown in FIG. 1, the method for detecting the cover plate solid edge defect comprises the following steps S101-S104.
Step S101: and acquiring a three-dimensional edge image of the cover plate.
Step S102: obtaining a plurality of intermediate images through a plurality of mean filtering according to the stereoscopic edge image, and obtaining the intermediate defect image according to the stereoscopic edge image and the plurality of intermediate images.
Step S103: and obtaining the defect highlighted image through image enhancement according to the intermediate defect image.
Step S104: and extracting the image of the defect at the stereoscopic edge according to the defect highlighted image.
In step S101, a stereoscopic edge image of the cover plate is acquired.
According to an embodiment of the present disclosure, the cover plate may be, for example, a glass cover plate of a mobile phone. The image of the stereoscopic edge of the glass cover plate of the mobile phone can be directly or indirectly acquired, for example, the stereoscopic edge of the glass cover plate can be directly imaged by an imaging device, or a prestored image of the stereoscopic edge of the glass cover plate can be acquired from other components through transmission.
In step S102, a plurality of intermediate images are obtained by a plurality of mean filtering from the stereoscopic edge image, and the intermediate defect image is obtained from the stereoscopic edge image and the plurality of intermediate images.
According to an embodiment of the present disclosure, this step is used to process the stereoscopic edge image, thereby obtaining an intermediate defect image, which is used for subsequent processing. Firstly, carrying out multiple times of mean filtering on a stereo edge image to obtain a plurality of intermediate images (mean filtered images), respectively carrying out pixel difference on the stereo edge image and each of the plurality of intermediate images to obtain a plurality of difference images, and then summing and normalizing the plurality of difference images according to pixels to obtain the intermediate defect image.
How to process the stereoscopic edge image to obtain the intermediate defect image will be explained by specific embodiments below.
Fig. 2a and 2b show an example of illumination at the edge of a handset.
Fig. 2a is an example of a handset product with 3D features. For products with curved edges, there is typically a shiny area at the edges, e.g., the left and right edges (solid line in-frame area). This is the lightening caused by the curvature of 3D, and the normal algorithm cannot accurately show the lightening area and the defect area (dotted line in fig. 2 a).
Fig. 2b is a partial view of fig. 2a with a defect. In fig. 2b, there are some irregularities at the edge of the handset that cannot be identified under the lighting conditions shown in fig. 2 a.
For example, when a glass cover plate of a mobile phone is imaged, due to uneven illumination and reflection at a three-dimensional edge region of the cover plate, the imaging is disturbed, so that the imaging effect is affected, and accurate detection of defects is not facilitated. In order to eliminate the influence of these disturbances on the imaging, 5 (the number of which can be adjusted manually according to the actual situation) filtering charts with sizes from M to N (M represents twice the excessive width of the edge light reflection area of the cover plate, N represents twice the silk-screen width, for example, M is 3, N is 11, both M and N can be obtained by measurement calculation or by parameters during design, of course, can also be adjusted manually according to the actual situation) which are sequentially increased are used to perform mean filtering on the stereo edge images to obtain 5 intermediate images, and the stereo edge image is respectively differenced with each intermediate image obtained after the mean value filtering according to pixels to obtain a plurality of differenced images, and summing the plurality of images subjected to difference according to pixels to obtain a composite image U, and finally normalizing the composite image U to obtain the intermediate defect image.
The composite image U can be realized by the following formula (1).
Figure BDA0002724868090000061
Wherein U represents a composite image, k represents the number of filter kernels, I represents a stereoscopic edge image, I'iRepresenting the intermediate image.
The grey values of the composite image U are then normalized to 0, 255, resulting in an intermediate defect image Z. The normalization of the composite image U can be achieved by the following equation (2):
Gz(x,y)=(GU(x,y)-Min(GU))*255/(Max(GU)-Min(GU)) (2)
wherein G isz(x,y)Representing the grey value, G, of the intermediate defect image Z at the coordinates (x, y) of the intermediate defect imageU(x,y)Represents the gray value of the composite image U at the coordinates (x, y) of the composite image Min (G)U) Representing the minimum gray value, Max (G), in the composite image UU) Representing the maximum gray value in the composite image U.
In step S103, the defect highlight image is obtained by image enhancement according to the intermediate defect image.
This step is used to process the intermediate defect image, thereby obtaining a defect saliency image, which is used for subsequent defect extraction, according to an embodiment of the present disclosure. In this embodiment, the intermediate defect image is image-enhanced to make the defect more conspicuous, thereby facilitating the extraction of the defect.
In conjunction with the above specific embodiments, how to perform image enhancement on the intermediate defect image to obtain a defect highlight image will be specifically explained below.
For example, when a glass cover plate of a mobile phone is imaged, due to the existence of a silk-screen area at the edge of a solid, the imaging is interfered, so that the imaging effect is influenced, and the accurate detection of defects is not facilitated. In order to eliminate the influence of the interference on the imaging, the intermediate defect image Z obtained by the above method may be first subjected to image enhancement to obtain two enhanced images, and then a defect highlight image is calculated from the two enhanced images.
Specifically, with respect to image enhancement, all pixels of the intermediate defect image Z are traversed, the current gray value Z (x, y) ((x, y) is the current pixel coordinate) of the current pixel is subtracted from the mean gray value of all pixels adjacent to the current pixel within the range of M × M (M represents twice the excessive width of the cover plate edge light reflection region as described above) pixel region, and if the subtracted absolute value is greater than a threshold T, for example, 8 (the threshold T is a division coefficient, which is associated with the gray of the silk-screen region at the solid edge and the gray of the background, which may be artificially set as the case may be), the gray value Z (x, y) of the current pixel is assigned as the sum of the current gray value Z (x, y) and the gray value Z (x-1, y) or Z (x, y-1) of the previous pixel, otherwise the gray value Z (x, y) is assigned to be 0, and after traversing all the pixels, a first enhanced image E is obtained, wherein the gray value of each pixel in the first enhanced image E is E (x, y). In addition, the formula f (x, y) is e (x, y)2A second enhanced image F may be obtained, where F (x, y) represents the gray value of the image F at (x, y) coordinates.
In addition, by traversing all the pixels on the above-described first enhanced image E and second enhanced image F, the gray value of each pixel in the defect saliency image S is calculated by the following equations (3), (4), and (5), thereby obtaining the defect saliency image S.
u(x,y)=e(x+M+1,y+M+1)-e(x+1,y+M+1)-e(x+M+1,y+1)+e(x+1,y+1) (3)
w(x,y)=f(x+M+1,y+M+1)-f(x+1,y+M+1)-f(x+M+1,y+1)+f(x+1,y+1) (4)
Figure BDA0002724868090000071
Wherein e is(x+M+1,y+M+1)、e(x+1,y+M+1)、e(x+M+1,y+1)And e(x+1,y+1)Represents the gray value of the first enhanced image E at its respective coordinate position; f. of(x+M+1,y+M+1)、f(x+1,y+M+1)、f(x+M+1,y+1)And f(x+1,y+1)Representing the gray value of the second enhanced image F at its respective coordinate position; u. of(x,y)、w(x,y): calculating intermediate variables of the process; s(x,y)Representing the gray scale value of the defect-highlighted image S at (x, y), M represents twice the excess width of the edge-reflecting region of the cover plate, as described above, and may be considered set.
In step S104, an image of a defect at the edge of the solid is extracted from the defect highlighted image.
According to an embodiment of the present disclosure, this step is used to extract the defect at the edge of the solid from the defect saliency image.
Further, the extracting, according to the defect highlighted image, the image of the defect at the stereoscopic edge includes: and extracting the image of the defect by performing threshold segmentation on the defect highlighted image.
According to the embodiment of the disclosure, each pixel in the defect highlighted image S is traversed, if the gray value of the current pixel is greater than or equal to the set threshold, for example, 10, the gray value of the current pixel is set to 255, otherwise, 0 is set, so that the image of the defect can be extracted.
Referring to fig. 2c, fig. 2c is a flowchart illustrating another method for detecting a three-dimensional edge defect of a cover plate according to an exemplary embodiment. As shown in fig. 2c, the method may comprise the following steps S201-S202 before step S101.
In step S201, an image of the cover plate is acquired.
In this step, the image of the cover plate may be acquired by any suitable image acquisition device.
In step S202, a stereo edge image of the cover plate is determined according to the image of the cover plate.
In this step, the image of the solid edge of the cover plate can be accurately determined from the overall image of the cover plate by any suitable method.
Further, the determining the stereoscopic edge image of the cover plate according to the image of the cover plate includes: and determining the stereo edge image of the cover plate according to the image of the cover plate and the cover plate reference image.
Specifically, the cover plate reference image is an image acquired by the same image acquisition device in advance at the same angle, and the stereo edge image of the cover plate is determined according to the current cover plate image and the cover plate reference image.
Further, determining the stereo edge image of the cover plate according to the image of the cover plate and the cover plate reference image comprises: taking a reference area in the cover plate reference image by taking a pixel point as a reference center; determining a positioning point corresponding to the reference center in the image of the cover plate through a search algorithm according to the reference area; determining the offset of the positioning point relative to the reference center according to the positioning point and the reference center; determining a stereoscopic edge image of the image from the offset and a position of a stereoscopic edge in the cover reference image. Preferably, the reference center is a center of a camera hole in the cover reference image, and the reference area is a rectangular area centered on the center of the camera hole.
Specifically, when a defect is actually detected, due to the image capturing device and/or the detecting device, the captured cover plate image may have a situation that the captured target is shifted up, down, left and right in the image, which may cause an error in defect detection when defects of the same product are continuously detected, and therefore, a reference image needs to be provided, which is, for example, a cover plate image captured in advance and accurately knows a parameter value to be used when the defect is detected through various measurement calculations. Therefore, the method can ensure that the cover plate three-dimensional edge is accurately positioned when the same product is continuously detected, thereby eliminating the interference of other areas of the image and ensuring more accurate detection.
For example, in order to accurately determine the stereo edge image, a rectangular reference region is taken in the cover plate reference image with the center of the camera hole as a reference center, and certainly, a region with other shapes can be taken with pixel points with obvious gray level difference at other positions as centers, and the size of the region can be artificially set and a certain number of pixel points should be included. All pixel gray values in the reference region can be extracted using any suitable pixel gray value extraction method, and the gray gradient value (gray contrast with adjacent pixel points) of each pixel point in the reference region is extracted by the following formula (6):
Figure BDA0002724868090000091
wherein, gx,yRepresenting the gray values of the pixel points located at the image coordinates x, y in the reference region. All pixels with a gray gradient value larger than, for example, 30 (which can be artificially adjusted according to the actual gradient value of the image) are grouped into a point set. From the point set, eight connected domains in the reference region are extracted by using a connected domain extraction algorithm, and all pixels in all connected domains with the number of pixels larger than 10 (which can be artificially adjusted according to the actual texture of the surface of the product) are used as a feature set.
Then, the image of the cover plate can be searched for a pixel point corresponding to the center of the camera hole by using the following search formula (7), that is, the center of the camera hole in the currently obtained image of the cover plate is searched for.
Figure BDA0002724868090000101
n represents the total number of pixels in all feature sets;
rja row coordinate representing a current pixel (jth pixel) in the current patch image;
cja column coordinate representing a current pixel (jth pixel) in the current patch image;
ri' line coordinates representing the ith pixel point in the feature set with respect to the center of the reference region;
c′irepresenting the column coordinates of the ith pixel point in the feature set relative to the center of the reference area;
t′irepresenting the gradient value of the ith pixel point in the feature set in the horizontal direction;
u′irepresenting the gradient value of the ith pixel point in the feature set in the vertical direction;
Figure BDA0002724868090000102
sliding the representative feature set horizontally and vertically on the current cover plate image to the r-thj+ri' line, cj+c′iGray scale gradient values in the horizontal direction in column;
Figure BDA0002724868090000103
sliding the representative feature set horizontally and vertically on the current image to the r-thj+ri' line, cj+c′iGray scale gradient values in the vertical direction in columns.
S represents the confidence coefficient of the center of the camera hole in the current image, namely the similarity between the camera hole in the current image and the center of the camera hole in the reference area, and is in [0, 1 ]]And taking a value, wherein when S is 1, the confidence coefficient is the highest. According to the above formula (7), the coordinates of all pixels in the current patch image are obtained by using the coordinates of all pixels (by sliding the search algorithm over the coordinates of all pixels)A plurality of S are obtained, so after all S are calculated, the row coordinate r used when the value of S is the highest is takenjAnd column coordinates cjThe value of (d) is the coordinates of the center of the camera hole in the current image.
After the center of the camera hole in the currently obtained cover plate image is searched, the difference between the pixel coordinate of the center of the camera hole and the pixel coordinate of the center of the camera hole in the cover plate reference image, that is, the offset coordinate of the center of the camera hole of the currently obtained cover plate image relative to the center of the camera hole in the cover plate reference image, can be obtained by making a difference between the pixel coordinate of the center of the camera hole and the pixel coordinate of the center of the camera hole in the cover plate reference image. The relative position of the center of the camera hole and the stereo edge is fixed and is not influenced by the acquisition sequence of the images, so that the pixel coordinate offset of the center of the camera hole is the offset of the stereo edge, the position of the stereo edge in the currently obtained image can be determined according to the offset value and the relative position (coordinate) of the stereo edge in the cover plate reference image, and the image of the stereo edge in the current cover plate image is determined
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for detecting a three-dimensional edge defect of a cover plate according to an exemplary embodiment. As shown in fig. 2c, the method may comprise the following step S301 after step S201.
In step S301, the acquired image of the cover plate is filtered by gaussian filtering.
In this step S301, in order to perform noise reduction on the image so as to reduce interference when the image is subsequently processed, after the image of the cover plate is captured, the image is subjected to noise reduction by a gaussian filtering method. And determining the image of the stereoscopic edge of the cover plate image after noise reduction. Of course, the above-mentioned denoising of the image by gaussian filtering is only exemplary and not limiting, and those skilled in the art may also denoise the image by any other suitable method.
The embodiment of the disclosure also provides a device for detecting the three-dimensional edge defect of the cover plate. The detection device is used for executing the steps in the detection method embodiment.
Referring to fig. 4, fig. 4 is a block diagram illustrating an apparatus 100 for detecting a three-dimensional edge defect of a cover plate according to an exemplary embodiment. As shown in fig. 4, the detection apparatus 100 includes an acquisition unit 101, a first processing unit 102, a second processing unit 103, and an extraction unit 104. The acquisition unit 101 is configured to acquire a stereoscopic edge image of the cover plate. The first processing unit 102 is configured to obtain a plurality of intermediate images by means of multiple mean filtering according to the stereo edge image, and obtain the intermediate defect image according to the stereo edge image and the plurality of intermediate images. The second processing unit 103 is configured to obtain the defect saliency image by image enhancement from the intermediate defect image. The extraction unit 104 is configured to extract an image of a defect at an edge of the solid from the defect saliency image.
Further, the extracting unit 103 is configured to extract an image of the defect at the stereoscopic edge from the defect saliency image in the following manner: and extracting the image of the defect by performing threshold segmentation on the defect highlighted image.
Referring to fig. 5, fig. 5 is a block diagram illustrating another apparatus 200 for detecting a stereoscopic edge defect of a cover plate according to an exemplary embodiment of the present disclosure. The detection apparatus 200 shown in fig. 5 differs from the detection apparatus 100 shown in fig. 4 only in that the detection apparatus 200 further comprises an acquisition unit 201 and a determination unit 202. The acquisition unit 201 is configured to acquire an image of the cover plate before the acquisition unit 101 acquires the stereoscopic edge image of the cover plate. The determination unit 202 is configured for determining a stereo edge image of the cover plate from the image of the cover plate.
Further, the determining unit 202 is configured to determine a stereo edge image of the cover plate according to the image of the cover plate in the following manner: and determining the stereo edge image of the cover plate according to the image of the cover plate and the cover plate reference image.
Furthermore, the determination unit is configured to determine the stereo edge image of the cover plate from the image of the cover plate and the cover plate reference image in the following manner: determining the stereoscopic edge image of the cover plate according to the image of the cover plate and the cover plate reference image comprises: taking a reference area in the cover plate reference image by taking a pixel point as a reference center; determining a positioning point corresponding to the reference center in the image of the cover plate through a search algorithm according to the reference area; determining the offset of the positioning point relative to the reference center according to the positioning point and the reference center; determining a stereoscopic edge image of the image from the offset and a position of a stereoscopic edge in the cover reference image.
Furthermore, the reference center is the center of the camera hole in the cover plate reference image, and the reference area is a rectangular area with the center of the camera hole as the center.
Referring to fig. 6, fig. 6 is a block diagram illustrating a detection apparatus 300 for a cover plate solid edge defect according to an exemplary embodiment of the present disclosure. The detection apparatus 300 shown in fig. 6 differs from the detection apparatus 200 shown in fig. 5 only in that the detection apparatus 300 further comprises a filtering unit 301. The filtering unit 301 is configured to filter the acquired image of the cover plate by gaussian filtering after the acquisition unit acquires the image of the cover plate.
It will be appreciated that with respect to the apparatus in the above embodiments, the specific manner in which the respective units perform operations has been described in detail in relation to the embodiments of the method and will not be elaborated upon here.
The present invention also provides an electronic device comprising: one or more processors; and a memory having stored therein computer-executable instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described above.
The present invention also provides a computer-readable storage medium comprising computer-executable instructions that, when executed by one or more processors, perform the method as described above.
The embodiments of the present disclosure are described in detail above, and the description of the embodiments is only used to help understanding the method and the core idea of the present disclosure. Meanwhile, a person skilled in the art should, based on the idea of the present disclosure, change or modify the specific embodiments and application scope of the present disclosure. In view of the above, the description is not intended to limit the present disclosure.

Claims (9)

1. A method for detecting a cover plate stereoscopic edge defect comprises the following steps:
acquiring a three-dimensional edge image of the cover plate;
obtaining a plurality of intermediate images through a plurality of mean value filtering according to the stereo edge image, and obtaining an intermediate defect image according to the stereo edge image and the plurality of intermediate images;
obtaining a defect highlighted image through image enhancement according to the intermediate defect image;
extracting an image of the defect at the stereoscopic edge according to the defect highlighted image;
wherein obtaining a plurality of intermediate images from the stereo edge image by a plurality of mean filtering and obtaining the intermediate defect image from the stereo edge image and the plurality of intermediate images comprises:
carrying out mean value filtering on the stereo edge image by using a plurality of filtering cores with sequentially increasing sizes to obtain a plurality of intermediate images;
respectively differencing the three-dimensional edge image with each of the plurality of intermediate images according to pixels to obtain a plurality of differenced images;
summing and normalizing the plurality of differenced images by pixels to obtain the intermediate defect image;
wherein obtaining the defect saliency image by image enhancement comprises:
traversing all pixels of the intermediate defect image, and subtracting the current gray value of the current pixel from the average gray value of all pixels in the pixel area range adjacent to the current pixel;
if the subtracted absolute value is larger than the threshold value, assigning the gray value z (x, y) of the current pixel as the sum of the current gray value z (x, y) and the gray value z (x-1, y) or z (x, y-1) of the previous pixel, otherwise assigning the gray value z (x, y) of the current pixel as 0, wherein x and y are the coordinates of the current pixel;
obtaining a first enhanced image after traversing all the pixels, wherein the gray value of each pixel in the first enhanced image is e (x, y), and the formula f (x, y) = e (x, y)2Obtaining a second enhanced image, wherein f (x, y) represents a gray value of the second enhanced image at (x, y) coordinates; and
and calculating to obtain the defect highlighted image according to the enhanced first enhanced image and the enhanced second enhanced image.
2. The method for detecting the cover plate stereoscopic edge defect according to claim 1, wherein the extracting the image of the defect at the stereoscopic edge according to the defect highlight image comprises: and extracting the image of the defect by performing threshold segmentation on the defect highlighted image.
3. The cover plate stereoscopic edge defect detection method according to claim 1, wherein before the acquiring the stereoscopic edge image of the cover plate, the detection method further comprises:
collecting an image of the cover plate;
and determining the stereo edge image of the cover plate according to the image of the cover plate.
4. The cover plate stereo edge defect detection method according to claim 3, wherein after acquiring the image of the cover plate, the detection method further comprises:
and filtering the acquired image of the cover plate through Gaussian filtering.
5. The cover plate stereoscopic edge defect detection method according to claim 3, wherein the determining the stereoscopic edge image of the cover plate according to the image of the cover plate comprises: and determining the stereo edge image of the cover plate according to the image of the cover plate and the cover plate reference image.
6. The cover plate stereoscopic edge defect detection method of claim 5, wherein determining the stereoscopic edge image of the cover plate from the image of the cover plate and the cover plate reference image comprises:
taking a reference area in the cover plate reference image by taking a pixel point as a reference center;
determining a positioning point corresponding to the reference center in the image of the cover plate through a search algorithm according to the reference area;
determining the offset of the positioning point relative to the reference center according to the positioning point and the reference center;
determining a stereoscopic edge image of the cover image according to the offset and the position of the stereoscopic edge in the cover reference image.
7. The method for detecting the cover plate stereo edge defect according to claim 6, wherein the reference center is the center of a camera hole in the cover plate reference image, and the reference area is a rectangular area centered at the center of the camera hole.
8. An electronic device, comprising:
one or more processors; and
memory having stored therein computer-executable instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-7.
9. A computer-readable storage medium comprising computer-executable instructions that, when executed by one or more processors, perform the method of any one of claims 1-7.
CN202011099453.6A 2020-10-14 2020-10-14 Method and device for detecting three-dimensional edge defect of cover plate Active CN112419228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011099453.6A CN112419228B (en) 2020-10-14 2020-10-14 Method and device for detecting three-dimensional edge defect of cover plate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011099453.6A CN112419228B (en) 2020-10-14 2020-10-14 Method and device for detecting three-dimensional edge defect of cover plate

Publications (2)

Publication Number Publication Date
CN112419228A CN112419228A (en) 2021-02-26
CN112419228B true CN112419228B (en) 2022-04-05

Family

ID=74854501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011099453.6A Active CN112419228B (en) 2020-10-14 2020-10-14 Method and device for detecting three-dimensional edge defect of cover plate

Country Status (1)

Country Link
CN (1) CN112419228B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112666733B (en) * 2021-03-15 2021-06-04 惠州高视科技有限公司 LCD gray scale picture offline defect detection method, electronic equipment and storage medium
CN114612320B (en) * 2022-03-04 2023-09-29 业成科技(成都)有限公司 Image brightness optimization method, device, computer equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008249413A (en) * 2007-03-29 2008-10-16 Fujinon Corp Defect detection method and device
CN102034108A (en) * 2010-12-06 2011-04-27 哈尔滨工业大学 Multi-resolution network characteristic registration-based method for sorting face values and face directions of notes in sorter
CN102175700A (en) * 2011-01-20 2011-09-07 山东大学 Method for detecting welding seam segmentation and defects of digital X-ray images
CN102999916A (en) * 2012-12-12 2013-03-27 清华大学深圳研究生院 Edge extraction method of color image
CN104715488A (en) * 2015-04-01 2015-06-17 无锡桑尼安科技有限公司 Method for detecting damage degree of outdoor electric energy meter
CN105424723A (en) * 2015-11-28 2016-03-23 惠州高视科技有限公司 Detecting method for defects of display screen module
CN105891233A (en) * 2016-05-26 2016-08-24 福州大学 Intelligent detection system for surface defects of lens based on machine vision and implementation method of intelligent detection system
CN106485696A (en) * 2016-09-22 2017-03-08 电子科技大学 A kind of detection method of the explosive dangerous materials stitch defect based on machine vision
CN108198175A (en) * 2017-12-28 2018-06-22 广东欧珀移动通信有限公司 Detection method, detection device, computer equipment and computer readable storage medium
CN108280825A (en) * 2018-01-19 2018-07-13 东华大学 A kind of liquid crystal display emargintion detection method
CN109345501A (en) * 2018-08-06 2019-02-15 天津普智捷信息技术有限公司 Spiral winded type material defect inspection method based on frequency domain image enhancement
CN109540925A (en) * 2019-01-23 2019-03-29 南昌航空大学 Complicated ceramic tile surface defect inspection method based on difference shadow method and local variance measurement operator
CN209460164U (en) * 2018-12-21 2019-10-01 珠海市恒天伟业电路板有限公司 A kind of circuit board detection device
CN111192208A (en) * 2019-12-18 2020-05-22 合肥登特菲医疗设备有限公司 Tooth CR image enhancement method and device based on side window filter
CN111681213A (en) * 2020-05-24 2020-09-18 浙江理工大学 Light guide plate line scratch defect detection method based on deep learning

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710415B (en) * 2009-11-30 2014-11-19 北京中星微电子有限公司 Image enhancement coefficient adjusting method and device thereof and image enhancement method and device thereof
CN106815821B (en) * 2017-01-23 2020-08-28 上海兴芯微电子科技有限公司 Denoising method and device for near-infrared image

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008249413A (en) * 2007-03-29 2008-10-16 Fujinon Corp Defect detection method and device
CN102034108A (en) * 2010-12-06 2011-04-27 哈尔滨工业大学 Multi-resolution network characteristic registration-based method for sorting face values and face directions of notes in sorter
CN102175700A (en) * 2011-01-20 2011-09-07 山东大学 Method for detecting welding seam segmentation and defects of digital X-ray images
CN102999916A (en) * 2012-12-12 2013-03-27 清华大学深圳研究生院 Edge extraction method of color image
CN104715488A (en) * 2015-04-01 2015-06-17 无锡桑尼安科技有限公司 Method for detecting damage degree of outdoor electric energy meter
CN105424723A (en) * 2015-11-28 2016-03-23 惠州高视科技有限公司 Detecting method for defects of display screen module
CN105891233A (en) * 2016-05-26 2016-08-24 福州大学 Intelligent detection system for surface defects of lens based on machine vision and implementation method of intelligent detection system
CN106485696A (en) * 2016-09-22 2017-03-08 电子科技大学 A kind of detection method of the explosive dangerous materials stitch defect based on machine vision
CN108198175A (en) * 2017-12-28 2018-06-22 广东欧珀移动通信有限公司 Detection method, detection device, computer equipment and computer readable storage medium
CN108280825A (en) * 2018-01-19 2018-07-13 东华大学 A kind of liquid crystal display emargintion detection method
CN109345501A (en) * 2018-08-06 2019-02-15 天津普智捷信息技术有限公司 Spiral winded type material defect inspection method based on frequency domain image enhancement
CN209460164U (en) * 2018-12-21 2019-10-01 珠海市恒天伟业电路板有限公司 A kind of circuit board detection device
CN109540925A (en) * 2019-01-23 2019-03-29 南昌航空大学 Complicated ceramic tile surface defect inspection method based on difference shadow method and local variance measurement operator
CN111192208A (en) * 2019-12-18 2020-05-22 合肥登特菲医疗设备有限公司 Tooth CR image enhancement method and device based on side window filter
CN111681213A (en) * 2020-05-24 2020-09-18 浙江理工大学 Light guide plate line scratch defect detection method based on deep learning

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Camera Module Defect Detection Using Gabor Filter and Convolutional Neural Network;Sungrok Kim et al;《2020 International Conference on Electronics, Information, and Communication (ICEIC)》;20200402;第1-4页 *
Cellular v mos circuits performing edge detection with difference-of-gaussian filters;T.Sunayama et al;《jpn.J.Appl.phys》;20000430;第39卷(第2000期);第2278-2286页 *
基于视觉的服务机器人人机交互技术研究;马琼雄;《中国博士学位论文全文数据库 信息科技辑》;20160115;第2016年卷(第1期);I138-148 *
基于计算机视觉的断路器动触头运动轨迹多目标修正测量方法;吴成坚等;《黑龙江电力》;20171231;第39卷(第6期);第516-521页 *
遥感图像几何定位精度评价方法研究;陈艺虾;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130715;第2013年卷(第7期);第3.2节、第5.1.2节 *

Also Published As

Publication number Publication date
CN112419228A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN110766736B (en) Defect detection method, defect detection device, electronic equipment and storage medium
KR102257734B1 (en) Surface defect inspection method and surface defect inspection device
CN108921176B (en) Pointer instrument positioning and identifying method based on machine vision
CN106934803B (en) method and device for detecting surface defects of electronic device
CN109507192B (en) Magnetic core surface defect detection method based on machine vision
CN111815630A (en) Defect detection method and device for LCD screen
CN112419228B (en) Method and device for detecting three-dimensional edge defect of cover plate
CN109632808B (en) Edge defect detection method and device, electronic equipment and storage medium
CN108416789A (en) Method for detecting image edge and system
CN109509200B (en) Checkerboard corner detection method based on contour extraction and computer readable storage medium
CN105139391B (en) A kind of haze weather traffic image edge detection method
CN109727244B (en) Magnetic shoe surface crack detection method
WO2007142682A2 (en) Method for detecting streaks in digital images
CN115205223A (en) Visual detection method and device for transparent object, computer equipment and medium
CN111652844B (en) X-ray defect detection method and system based on digital image region growing
JP2013002839A (en) Crack detection method
CN116152115A (en) Garbage image denoising processing method based on computer vision
CN112801141B (en) Heterogeneous image matching method based on template matching and twin neural network optimization
CN113744294A (en) Image processing method and related device
CN116612112B (en) Visual inspection method for surface defects of bucket
CN112669295A (en) Lithium battery pole piece defect detection method based on secondary threshold segmentation theory
CN116380918A (en) Defect detection method, device and equipment
CN111415378A (en) Image registration method for automobile glass detection and automobile glass detection method
CN107680083B (en) Parallax determination method and parallax determination device
CN116071692A (en) Morphological image processing-based water gauge water level identification method and system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 215011 rooms 101, 102, 901 and 902, floor 1, building 11, 198 Jialingjiang Road, high tech Zone, Suzhou, Jiangsu Province

Applicant after: Gaoshi Technology (Suzhou) Co.,Ltd.

Address before: 516000 West Side of the 4th Floor of CD Building, No. 2 South Road, Huatai Road, Huiao Avenue, Huizhou City, Guangdong Province

Applicant before: HUIZHOU GOVION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215129 Rooms 101, 102, 901, 902, Floor 9, Building 11, No. 198, Jialing River Road, High tech Zone, Suzhou City, Jiangsu Province

Patentee after: Gaoshi Technology (Suzhou) Co.,Ltd.

Address before: 215011 rooms 101, 102, 901 and 902, floor 1, building 11, 198 Jialingjiang Road, high tech Zone, Suzhou, Jiangsu Province

Patentee before: Gaoshi Technology (Suzhou) Co.,Ltd.