CN109900226A - A kind of metal surface quality detecting method of machine vision - Google Patents
A kind of metal surface quality detecting method of machine vision Download PDFInfo
- Publication number
- CN109900226A CN109900226A CN201711299633.7A CN201711299633A CN109900226A CN 109900226 A CN109900226 A CN 109900226A CN 201711299633 A CN201711299633 A CN 201711299633A CN 109900226 A CN109900226 A CN 109900226A
- Authority
- CN
- China
- Prior art keywords
- image
- dimensional
- machine vision
- quality detecting
- metal surface
- 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.)
- Pending
Links
Landscapes
- Image Analysis (AREA)
Abstract
The invention discloses a kind of metal surface quality detecting methods of machine vision, this method comprises: S1, obtains micro- sequence image and pre-processed;S2 merges multilayer sequence image;S3 restores workpiece surface three-dimensional appearance and calculates three-dimensional parameter value.
Description
Technical field
The invention belongs to Machine Vision Recognition Technology fields, are related to a kind of metal surface quality detecting method of machine vision.
Background technique
Currently, tracer method and optical method are the most traditional in numerous detection methods, but since tracer method needle sizes have
The influence for the disadvantages of limit and syringe needle are easily damaged measured surface, use scope are limited;Optics rule mostly need to by means of special instrument,
Expensive, testing cost is excessively high, and also has certain limitation for roughness measurement, such as by the limit of optical wavelength
System.
In roughness assessment system, the extremely limited information of workpiece surface is only utilized in two-dimensional parameter, cannot effective earth's surface
Levy the performances such as supporting, wearability, the leakproofness of workpiece.
Three-dimensional evaluation is from workpiece surface region rather than profile traces obtain information, can recover the three-dimensional shaped of workpiece surface
Looks, can it is more acurrate, more fully workpiece surface appearance is evaluated, there is globality and of overall importance.
Summary of the invention
It is limited using the microscope depth of field it is an object of that present invention to provide a kind of metal surface quality detecting method of machine vision
Feature carries out multilayer sequence to workpiece surface and claps figure, then recovers the exact height of workpiece surface to image co-registration by software
Information, reconstructs the three-dimensional appearance on its surface, finally calculates the three-dimensional parameter of workpiece surface roughness, realizes to common work
Part three-dimensional surface shape is reasonably evaluated, and traditional contact pin type detection method damage measured surface, tradition are efficiently solved
Focusing, interferometry, the measuring speed of scattering method be slow, the inaccurate comprehensive problem of information.
In order to solve the above technical problems, the present invention adopts the following technical scheme that: a kind of metal surface matter of machine vision
Detecting method, which comprises S1 obtains micro- sequence image and pre-processed;S2 melts multilayer sequence image
It closes;S3 restores workpiece surface three-dimensional appearance and calculates three-dimensional parameter value.
The present invention have compared with prior art it is below the utility model has the advantages that
The present invention program feature limited using the microscope depth of field, carries out multilayer sequence to workpiece surface and claps figure, then pass through
Software recovers the exact height information of workpiece surface, reconstructs the three-dimensional appearance on its surface to image co-registration, finally calculates and goes to work
The three-dimensional parameter of part surface roughness is realized and is rationally and effectively evaluated common workpiece surface three-dimensional appearance.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the metal surface quality detecting method of machine vision.
Fig. 2 is image preprocessing flow diagram.
Fig. 3 is that altitude information obtains schematic diagram.
Fig. 4 is Gauss interpolation schematic diagram.
Specific embodiment
With reference to the accompanying drawing and specific embodiment to the present invention carry out in further detail with complete explanation.It is understood that
It is that described herein the specific embodiments are only for explaining the present invention, rather than limitation of the invention.
Referring to Fig.1, the metal surface quality detecting method of a kind of machine vision of the invention, which comprises
S1 obtains micro- sequence image and is pre-processed;
S11 clap layer by layer to workpiece surface and be schemed using Z axis digital display microscope, and the full sequence image for taking bat all wraps
All information of the Z-direction in microscope containing workpiece;
S12 pre-processes image to reduce the influence of noise on image;
Because collected original image inevitably will receive noise, distortion, low contrast etc. influence, by picture into
Row pretreatment can reduce the adverse effect of these factors to achieve the purpose that improve discrimination.
Referring to Fig. 2, pretreated basic step includes:
1) gray level image is converted by original image while eliminating noise, conversion formula are as follows:
F (x, y)=0.299R+0.578G+0.114B (1)
Wherein R, G, B are three color components, carry out burn into expansion and filtering to the image after gray processing and are eliminated with reaching
The purpose of noise, smoothed profile.
2) image enhancement, using piecewise linear transform between image degree of comparing stretching conversion to increase concave and convex plane
Contrast.The principle of this mode is to improve the grayscale dynamic range of image procossing.Its greyscale transformation function are as follows:
Wherein: (a1,a2) be original image f (x, y) tonal range;(b1,b2) be transformation after image f'(x, y) gray scale
Range;L-1 is the gray value upper limit.
3) border detection and slant correction, border detection are used using top cap transformation and canny operator, slant correction
Hough transform.Top cap shift theory: such as by morphological method: expansion, burn into opening operation, closed operation, from original image
Opening operation image is subtracted, the part left in image is exactly image border.Calculating formula:
H=F- (F ° of S) (3)
F is generally original image;S is morphology element.
S2 merges multilayer sequence image;
The key of image co-registration is how accurately to obtain its altitude information, and schematic diagram is as shown in Figure 3.It can from Fig. 3
Out, workpiece surface is rough, there is the part of focus in every sequence of layer image.
Microscope, which rises to clap from the minimum point of workpiece surface to highest point stepping, takes sequence image, each on workpiece surface
It is focus that a point, which always has the point in a corresponding sequence figure, and the present invention is able to reflect using variance Focus field emission array operator
The readability that image focuses, when a certain point focusing in image, Focus field emission array operator value is the largest.Therefore, sequence is found out
The maximum value of each pixel Focus field emission array operator in column image also just has found corresponding number of plies when its focusing, so as to
Roughly calculate every height value.Focus field emission array operator value focuses near top at it at Gaussian Profile, such as Fig. 4 institute
Show.
The variance Focus field emission array operator magnitude of any point (x, y) is { F on curved surfacei| i=1,2 ..., m },Indicate this point
Exact height value.According to Gaussian Profile, variance focus function is expressed as
In formulaThe average value of Gaussian Profile is represented, also the actual height value of this point;σFRepresent standard deviation.
Both sides take logarithm to obtain
By three measure value Fm、Fm-1、Fm+1And its corresponding dm、dm-1、dm+1Substituting into above formula with stepping Δ d can calculate
S3 restores workpiece surface three-dimensional appearance and calculates three-dimensional parameter value;
S31, the selection of three-dimensional parameter;
In new ISO4287 draft, it is proposed that 27 standardized range parameters, 3 spacing parameters and 12 synthesis
Parameter.In fact, the microscopic appearance of piece surface be it is complicated, each parameter can only characterize the one aspect of pattern.So being
Avoiding the parameter explosion phenomenon similar to two-dimensional parameter should lay particular emphasis on a small number of, basic, important when choosing three-dimensional parameter
Selection principle, this is also a direction of three-dimensional parameter evaluating system development.
The present invention combines actual needs and parameter selection principle, chooses the S in range parametera、Sq、Sz、SskAnd Sku, also
S in spatial parameterds.These parameter basic expressions three-dimensional surface roughness feature, and convenience of calculation.
Before solving three-dimensional parameter, need a datum level as evaluation benchmark, the three-dimensional evaluation that the present invention is utilized
Benchmark is promoted by two-dimensional silhouette middle line, that is, uses least square plane as the evaluation benchmark of three-dimensional parameter.If three-dimensional surface
For Z (x, y), least square datum plane Equation f (x, y)=a+bx+cy finds out the value of a, b, c according to the principle of least square, then
F (x, y)=a+bx+cy is substituted into, the least square plane equation for some measurement point can be found out.Surface roughness curved surface side
Journey l (x, y, z)=z (x, y)-f (x, y).
S32, three-dimensional parameter introduction;
1) surface arithmetic average deviation SaRefer on measured surface each point to reference datum distance average value:
S is orthographic projection of the sampling area on datum level in formula.
2) surface Root Mean Square deviation SqRefer to the root-mean-square value of each point deviation reference datum on measured surface, it reacts wheel
Exterior feature deviates the degree of datum level:
3) ten point height S of surfacez:
L in formulai(x,y,z)maxAnd lj(x,y,z)min(i=1,2 ..., 5) it is respectively 5 tops and 5 in domain for assessment
The amount of a lowest trough.
4) surface deflection degree SskIt is the shape for measuring profile bumps amplitude distribution curve, with two-dimensional silhouette degree of skewness
RskFunction is identical:
5) surface deflection degree SkuIt is the kurtosis of topographical height distribution and the measurement of steepness:
6) surface peak density SdsIndicate the number on the vertex for including in unit sampling area:
M and N refers to the number of the sampled point in the direction x and y in sampling area in formula;NsRefer to the number of unit sampling area inner vertex
Mesh;Δ x, Δ y refer specifically to sampled point spacing.
The above description is only a preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art
For, the invention can have various changes and changes.All any modifications made within the spirit and principles of the present invention are equal
Replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (1)
1. a kind of metal surface quality detecting method of machine vision, which is characterized in that the described method includes: S1, obtains micro- sequence
Image is simultaneously pre-processed;S2 merges multilayer sequence image;S3 restores workpiece surface three-dimensional appearance and calculates three-dimensional
Parameter value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711299633.7A CN109900226A (en) | 2017-12-10 | 2017-12-10 | A kind of metal surface quality detecting method of machine vision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711299633.7A CN109900226A (en) | 2017-12-10 | 2017-12-10 | A kind of metal surface quality detecting method of machine vision |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109900226A true CN109900226A (en) | 2019-06-18 |
Family
ID=66940964
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711299633.7A Pending CN109900226A (en) | 2017-12-10 | 2017-12-10 | A kind of metal surface quality detecting method of machine vision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109900226A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112747698A (en) * | 2019-10-29 | 2021-05-04 | 复盛应用科技股份有限公司 | Golf club head measuring method |
-
2017
- 2017-12-10 CN CN201711299633.7A patent/CN109900226A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112747698A (en) * | 2019-10-29 | 2021-05-04 | 复盛应用科技股份有限公司 | Golf club head measuring method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105931232B (en) | Light strip center of structured light high-precision sub-pixel extraction | |
CN104966308B (en) | A kind of method for calculating laser beam spot size | |
CN108986048B (en) | Three-dimensional point cloud rapid composite filtering processing method based on line laser scanning | |
CN106228161B (en) | A kind of pointer-type dial plate automatic reading method | |
CN111415376B (en) | Automobile glass subpixel contour extraction method and automobile glass detection method | |
CN109166154A (en) | Light-field camera calibration method for light field three dimensional particles image reconstruction | |
CN108205821A (en) | Workpiece surface three-dimensional reconstruction method based on computer vision | |
CN111551350A (en) | Optical lens surface scratch detection method based on U _ Net network | |
CN110287887A (en) | A kind of scale recognition methods, device and computer storage medium | |
CN107392849A (en) | Target identification and localization method based on image subdivision | |
CN113689401A (en) | Method and device for detecting diameter of crystal bar of czochralski silicon single crystal furnace | |
CN107358628A (en) | Linear array images processing method based on target | |
CN108088381A (en) | A kind of contactless minim gap method for measuring width based on image procossing | |
CN111415349A (en) | Method for detecting polyester filament yarn based on image processing technology | |
CN105491315B (en) | A kind of projecting apparatus gamma correction method | |
CN110823106B (en) | Method for detecting quality of plate glass based on laser continuous wave modulation principle | |
CN104813217B (en) | For the method for the passive single channel imager for being designed to estimate the depth of field | |
CN109900226A (en) | A kind of metal surface quality detecting method of machine vision | |
CN104266607B (en) | Specular target profile measuring method | |
CN113838114A (en) | Blast furnace charge level depth estimation method and system based on edge defocus tracking | |
CN112330667A (en) | Morphology-based laser stripe center line extraction method | |
CN111815580A (en) | Image edge identification method and small module gear module detection method | |
CN103954238B (en) | A kind of fiber interference fringe image background light compensation method based on Gaussian function | |
CN108364274A (en) | The lossless clear reconstructing method of optical imagery under micro-nano-scale | |
CN112414316B (en) | Strain gauge sensitive grid size parameter measuring method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190618 |