Background technology
The ultimate principle that Brinell hardness is measured: a standard hardness spherical indenter is imposed certain pressure, is pressed into the testee surface, shed load after testee with a residual circular impression, determine the hardness number of material according to the size of impression.The size of hardness number press head diameter, load and impression diameter is calculated according to formula and is got.Wherein, impression diameter is used microscope artificial observation reading usually, or after using digital camera to obtain indentation image, manually chooses the impression frontier point and calculate impression diameter.They mainly depend on eye-observation, require the tester to possess certain working experience and professional skill, determination efficiency is lower, and cause easily personal error, and the result who causes the different operating and measure between the person is different.
At present, Brinell hardness impression diameter quick automatic determining method is being sought in this area.A kind of scheme is to utilize the CCD camera to obtain indentation image, utilization image processing techniques realization automatically accurately measuring the impression size.But because measured test specimen surface texturisation is different, institute gathers and often has more noise contribution in the indentation image, has reduced the degree of accuracy of accuracy and the specimen hardness measurement of indentation edge extraction.
In order to guarantee the accurate measurement of impression diameter, require the test specimen surface to answer flat-satin in the national standard (GB/T231.1-2009), and do not have oxide skin and extraneous dirt etc., and recommendation form surface roughness parameter Ra is not more than 1.6 μ m.Therefore, need by mechanical means (upper grinding machine) or manual method measured surface to be carried out cutting down, make the measured surface roughness of sample reach inspection side slat spare.The surface roughness value is lower after the finishing, and when gathering indentation image, its image quality is better, indentation image edge clear (such as Fig. 2).But effects on surface carries out cutting down, has both consisted of additional operation link, also makes to measure the cost rising.
Summary of the invention
In order more accurately to measure material hardness, the invention provides a kind of scheme, wherein, utilize computer image processing technology, in conjunction with the impression shape facility, obtain quickly and accurately the shape information of impression, scientifically describe the slight change of impression shape, thereby the testing staff is freed from the heavy duplication of labour.
The variety of issue that exists in order to overcome present detection method the object of the present invention is to provide a kind of machine vision technique that utilizes to realize fast, accurately assay method of Brinell hardness.In the present invention, at first utilize image processing techniques to extract indentation edge, extracted the impression shape facility, then by describing the slight change of impression shape, reject pseudo-edge, keep the impression true edge, final by calculating the impression diameter size, realize the Accurate Measurement of Brinell hardness.
According to an aspect of the present invention, provide a kind of Brinell hardness automatic measuring method, it is characterized in that comprising:
Gather the image of the impression on the test specimen;
Extract the edge of the described image of described impression;
Reject the pseudo-edge in the described edge;
Generation impression circle;
The hardness of calculation testing piece.
Embodiment
According to one embodiment of present invention, provide a kind of Brinell hardness automatic method for measuring, it has fast, accurately, stable, need not the advantage such as manual intervention fully, to overcome the deficiencies in the prior art.
To achieve these goals, Brinell hardness automatic measuring method according to an embodiment of the invention comprises:
-collection test specimen indentation image
Use sclerometer that the sintered carbide ball of certain diameter is applied test force Specimen surface, after the regulation retention time, the removal test force, impression appears in the test specimen surface.As shown in Figure 1, (portable) Brinell hardness analyzer 1 vertically is positioned over the surface of test specimen 2, gathers indentation image information on the test specimen surface with portable Brinell hardness analyzer 1, and input computing machine 3.
-extraction indentation edge
Common industrial sanding apparatus is processed test surfaces, and the surface roughness value is higher, and the indentation image marginal portion is fuzzy such as Fig. 3 (a) and Fig. 4 (a).And through after the image analysis processing, obtain corresponding indentation edge shown in Fig. 3 (b) and Fig. 4 (b).
The pseudo-edge of-rejecting impression
Because the test specimen surface quality is not high, causes the indentation edge noise spot more, has the part pseudo-edge, does not namely belong to the edge of true impression.After needing to reject pseudo-edge, justify match with true edge.
, the indentation edge each point is asked for curvature, and asks the curvature changing value so that rounded edge produces the characteristics of sudden change for noise spot, the reacting condition of curvature the situation of change of outline line, the curvature of circle contour changes comparatively smooth, changing value is less than predetermined value (such as 0.3).And there is part in noise spot, has the curvature mutation phenomenon.Therefore, in according to one embodiment of present invention, judge and the rejecting pseudo-edge by following steps:
A. the point (such as upper left point) on the impression profile (as counterclockwise), is followed the tracks of the impression profile as starting point in a direction, carries out the sampling of interval predetermined number (such as 10) pixel,
B. calculate the curvature k of certain some p of impression profile.Computation process is as follows:
k=θ
2-θ
1
Wherein, (x
p, y
p) be the coordinate of some p; Upper left as starting point with outline line, by counterclockwise outline line being followed the tracks of, interval i (such as i=10) pixel obtains two neighbouring sample point (x of current point
P-i,y
P-i), (x
P+i, y
P+i); θ
j(j=1,2) are the grazing angle of corresponding sampled point;
C. add up the curvature changing value continuously less than the sampled point of predetermined changing value (such as 0.3),
D. judge whether accumulative total surpasses a predetermined accumulative total numerical value (such as 10), belongs to arc section if "Yes" is then judged related pixel, belongs to pseudo-edge if "No" is then judged related pixel.
E. reject pseudo-edge.
-generation impression circle
After rejecting pseudo-edge, keep one section or multi-section circular arc on the impression profile, arc section is carried out match, thereby obtain the impression fitting circle, such as Fig. 3 .c and Fig. 4 .c.
-calculating test specimen hardness
Can calculate the hardness of test specimen according to impression match diameter of a circle and correlation parameter, computing method as shown in Equation (1).
According to the actual result of the Brinell hardness assay method of this embodiment, the hardness number precision reaches 0.01HBW, and impression diameter is to 0.0001mm resolution, and measures impression and show that the result only needs less than 1 second.
Advantage of the present invention comprises:
1. utilize computer picture recognition to replace the manual detection method, can measure Brinell hardness quick, objective, exactly, overcome in the prior art scheme need manual intervention, subjectivity is strong, accuracy of detection is low, treat the test block surface quality requires high defective;
2. the present invention adopts internal optics system acquisition indentation image, has that cost is low, picture quality is high and the advantage such as the operation that is easy to carry;
3. utilize image processing techniques scientifically to describe the impression shape facility, can reflect objectively the slight change of indentation edge, and utilize indentation edge curvature to change, reject by the poor noise edge that causes of surface quality, finally improve the degree of accuracy of Determination of Hardness;
4. measure system according to the computer picture of the method for the invention establishment, also have preferably extended capability.Fitness to all kinds of test specimen surface quality is high, has automaticity height, quick, the easy characteristics of operation.