CN106910191A - A kind of bearing channel recognition methods based on depth image - Google Patents

A kind of bearing channel recognition methods based on depth image Download PDF

Info

Publication number
CN106910191A
CN106910191A CN201710129091.2A CN201710129091A CN106910191A CN 106910191 A CN106910191 A CN 106910191A CN 201710129091 A CN201710129091 A CN 201710129091A CN 106910191 A CN106910191 A CN 106910191A
Authority
CN
China
Prior art keywords
bearing
depth image
point
segmentation
represent
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
CN201710129091.2A
Other languages
Chinese (zh)
Other versions
CN106910191B (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.)
Hefei Institutes of Physical Science of CAS
Original Assignee
Hefei Institutes of Physical Science of CAS
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 Hefei Institutes of Physical Science of CAS filed Critical Hefei Institutes of Physical Science of CAS
Priority to CN201710129091.2A priority Critical patent/CN106910191B/en
Publication of CN106910191A publication Critical patent/CN106910191A/en
Application granted granted Critical
Publication of CN106910191B publication Critical patent/CN106910191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/22Measuring arrangements characterised by the use of optical techniques for measuring depth
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Abstract

The invention discloses a kind of bearing channel recognition methods based on depth image, its feature includes:1 obtains bearing depth data;2 noise processeds;3 bearings are recognized;4 raceway grooves are recognized;5 raceway grooves are fitted;The present invention during polytype bearing is measured, can eliminate the subjectivity error of manual detection, eliminate abrasion of the measurement apparatus to bearing, and can quickly recognize bearing channel and its size, ensure detection speed and precision higher, strong robustness can be applied to all kinds of bearing channel detections.

Description

A kind of bearing channel recognition methods based on depth image
Technical field
Field of machine vision of the present invention, specifically a kind of bearing channel recognition methods based on depth image.
Background technology
Bearing is the critical component in various plant equipment, and its quality is directly connected to the runnability of whole equipment, So detection to bearing quality it is critical that.The quality pack of bearing contains quality and apparent size, is passed for apparent size The method of system is to use artificial mensuration, and efficiency is low and subjectivity is strong.In order to overcome disadvantage mentioned above, there are many scholars and work The advanced automatic detection systems of journey Shi Faming.
Zhang Ganqiang et al. (A of CN 105571552) proposes a kind of Bearing testing method, is measured using contact pin type sensor Ditch track data, is measured using contact digital sensor and plate washer to bearing diameter.Chen Zhenfeng (A of CN 105277161) A kind of detection method for bearing channel is proposed, it is passed through using a kind of device for possessing top board, base plate and helical duct Whether the pressure sensor on the outside of helical duct on punch-pin is qualified to detect bearing.Cheng Jiang (A of CN 103968791) et al. is proposed A kind of full-automatic comprehensive detection device of deep groove ball bearing, this device uses air cylinder driven, and height, profit are measured using elevation carrection table Internal diameter is measured with measuring stick, and plate and screw rod are followed by regulation and adapt to different types of bearing.
The automated detection method of above scholar and engineer all overcomes the shortcoming of traditional-handwork measurement, automaticity Height, but there is also clearly disadvantageous:First, their equipment is all contact type measurement, there is abrasion in itself to bearing.Second, Adaptability is not strong, can only be directed to the measurement of the bearing of one or several types, once change it is accomplished by readjusting even change Structure.Third, speed and precision be not high, the sensor that it is used can only rough measure size, tool can not be accurately acquired Body accurate parameters, differentiate that error rate is high.It is domestic at present also no a kind of for the full-automatic, contactless of bearing, strong robustness Measuring method.
The content of the invention
The present invention is in order to solve the weak point that above-mentioned prior art is present, there is provided a kind of bearing groove based on depth image Road recognition methods, to during polytype bearing is measured, eliminate the subjectivity error of manual detection, eliminates measurement Abrasion of the device to bearing, and can quickly recognize bearing channel and its size, it is ensured that detection speed and precision higher, robustness By force.
In order to solve the above technical problems, the present invention is adopted the following technical scheme that being:
A kind of the characteristics of bearing channel recognition methods based on depth image of the present invention, comprises the following steps:
Step 1, acquisition bearing depth data:
The depth image M of bearing, a width of W, the height of the depth image M are gathered using line laser sensor and motion platform It is H to spend;
Step 2, noise processed:
Noise of the depth image M intermediate values beyond bearing height scope is removed using threshold method, sliding window is recycled Variance method removes the noise spot that peels off in the depth image M, obtains by the depth image M' after noise processed;
Step 3, bearing identification:
3.1st, the bianry image M of depth image M' is obtained using local thresholding methodbin
3.2nd, to the bianry image MbinClosing operation of mathematical morphology is carried out, so as to obtain the bianry image M after closed operationc bin
3.3rd, the bianry image M is obtained using minimum enclosed rectanglec binIn the codomain of connection two boundary rectangle, it is maximum The boundary rectangle of area is the outline comprising bearing, the central point O (x of the boundary rectangle of maximum areac,yc) it is bearing Centre point;
Step 4, raceway groove identification:
4.1st, the centre point O (x according to bearingc,yc) obtain the bearing circle being located on bearing diameter direction in depth image M' Loop data, is designated as Q={ w1,w2,…,wi,…,wn};wiRepresent ith pixel point;Remember the ith pixel point wiCoordinate is (xi,yi);1≤i≤n;
4.2nd, raceway groove identification is carried out to the bearing annulus data Q using based on lower convex domain decomposition merging algorithm, obtains ditch Track data is designated as Qc
Step 5, raceway groove fitting:
5.1st, using least square method LS to the ditch track data QcIt is fitted, obtains the first solution (x of fitting circle0,y0, r);Wherein, x0Represent abscissa of the fitting circle of bearing channel in the depth image M', y0Represent the fitting of bearing channel Abscissa of the circle in the depth image M', r represents the radius of the fitting circle of bearing channel;
5.2nd, according to the just solution (x0,y0, r) using particle swarm optimization algorithm to the ditch track data QcOptimize and ask Solution, obtains the circular fitting parameter (x', y', r') of bearing channel.
The characteristics of present invention bearing channel recognition methods based on depth image according to claim 1, lies also in: Sliding window variance method SWVM in the step 2 is carried out as follows:
Step 2.1, definition sliding window:Define the length of side for g square window, on depth image with from left to right, from When the order of top to bottm is slided, the pixel positioned at window center position is denoted as px,y, coordinate is (x, y), then px,yBoundary constraint It is:X ∈ [(g-1)/2, W- (g-1)/2], y ∈ [(g-1)/2, H- (g-1)/2];Note ΩxyFor in depth image M', center pixel Coordinate is the pixel set in the square window of (x, y), thenWherein, p(j) xy Represent j-th pixel in square window, and pixel set ΩxyCentral pixel point be
Step 2.2, initialization x=(g-1)/2-1, y=(g-1)/2;
Step 2.3, abscissa border detection:X+1 is assigned to x, judges whether x=W- (g-1)/2 sets up, if so, X=(g-1)/2-1 is then made, after y+1 is assigned into y, step 2.4 is performed, step 2.5 is otherwise performed;
Step 2.4, ordinate border detection:Judge whether y≤H- (g-1)/2 sets up, if so, step 2.5 is then performed, Otherwise, algorithm is terminated, so as to obtain the depth image M' for removing the noise that peels off;
Step 2.5, judge central pixel pointWhether it is non-zero points;If non-zero points, then enter step 2.6, if not Non-zero points, return and perform step 2.3;
Step 2.6, acquisition non-zero points set omegaxy v
Step 2.6.1, initialization j=0;
Step 2.6.2, judge j=g2Whether set up, if set up, obtain non-zero point set Represent k-th non-zero points in corresponding square window, wherein N≤g2, and And step 2.7 is performed, otherwise, j+1 is assigned to j, and judge j=g2Whether/2 set up, if set up, return to step 2.6.2, Otherwise perform step 2.6.3;
Step 2.6.3, judge j-th pixel p(j) xyWhether it is non-zero points, if non-zero points, then by p(j) xyIt is put into non- Zero point set omegaxy vIn, otherwise abandon j-th pixel p(j) xy;And return to step 2.6.2 is performed;
Step 2.7, using formula (1) obtain non-zero points set omegaxy vIn all effective pixel points spatial spreading degree
In formula (1), dmnRepresent the Euclidean distance between m-th non-zero points and n-th non-zero points;And 1≤m ≠ n≤N;
Step 2.8, setting threshold value Τ2If,Step 2.9 is then transferred to, step 2.3 is otherwise transferred to;
Step 2.9, available point set omega is represented with Sxy vThe variance of interior element, non-zero points set omega is represented with Exy vInterior element Average;Threshold value T is set3If, S>T3, then by the central pixel point of square windowValue be set to " 0 ", otherwise protect Stay central pixel pointValue, and return to step 2.3.
Decompose merging algorithm DCBLCD based on lower convex domain in the step 4.2 is carried out as follows:
Step a, to the bearing annulus data Q={ w1,w2,…,wi,…,wnDecomposed:
Step a.1, definition stepped intervals be Δ, define BfIt is the segmentation that bearing annulus data Q is decomposited, f justifies for bearing The subscript of the segmentation that loop data Q is decomposited, initializes i=1, f=1;
Step a.2, initialization Δ=2;
Step a.3, order segmentation Bf={ wi,wi+1,...,wi+Δ, then it is segmented BfThe curvilinear equation of composition is g (x), remembers wzWith wvIt is set BfThe point of middle any two difference coordinate, coordinate is respectively (xz,yz) and (xv,yv), then there are g (xz)=yz,g(xv) =yv, and obtain w using formula (2)zAnd wvBetween under it is convex away from Dzv, so as to obtain segmentation BfIn between all two differences Under it is convex away from, and constitute under it is convex away from set
Dzv=α g (xz)+βg(xv)-g(αxz+βxv)+τ (2)
α, β are scale factor in formula (2), and alpha+beta=1, and τ is constant;
Step a.4, use DuIt is convex away from set under expressionIn u-th under it is convex away from then Wherein ε=Δ (1+ Δs)/2;JudgeWhether set up, if so, then perform step a.5, otherwise, perform step a.6;
A.5, by f-th step is segmented BfWhether it is put into segmentation set Γ, and after i+ Δs are assigned into i, judges i >=n-1 Set up, if so, then represent and obtain segmentation set Γ={ B1,B2,...,Bγ,...,Bf, wherein BγRepresent and be segmented in set Γ The γ segmentation, and perform step b, otherwise, f+1 is assigned to f, and return to step is a.2;
Step a.6, Δ+1 is assigned to Δ after, perform step a.3;
Step b, each segmentation to being segmented in set Γ are merged:
Step b.1, initialization γ=1, counting variable θ=0;
Step b.2, stepped intervals σ=1,
Step b.3, define Bγ,σExpression starting point is Bγ, and the constituted merging section of continuous σ segmentation, i.e.,By Bγ,σComprising annulus data point total number be designated as c;
B.4, according to formula (2) step calculates merging section Bγ,σIt is convex away from so as to obtain down under between middle any two difference It is convex away from setWherein λ=c (c-1)/2;
Step b.5, statistics under it is convex away from setIn less than 0 point number, be denoted as c-, and calculate scale factor
Step b.6, defined parameters κ for control it is described under it is convex away from setThe factor of middle negative ratio, if η>κ, then hold B.8 b.7 row step, otherwise perform step;
Step b.7, section B will be mergedγ,σIt is put into merging section set H, and after γ+σ+1 are assigned into γ, judges that γ=f is No establishment, if so, then represent to obtain to merge to be segmented and gather It is in HIndividual merging section, And perform step c, otherwise return to step b.3;
Step b.8, σ+1 is assigned to σ after, judge whether γ+σ+1=f set up, if so, then represent obtain merge section SetOtherwise, after θ+1 being assigned into θ, return to step is b.2;
Step c, from section set H is merged filter out ditch track data Qc
NoteRepresentComprising annulus data point number, selected comprising a point number from the merging section set H At mostAs the ditch track data Qc, i.e.,
Compared to tradition machinery formula detection method, the beneficial effects of the invention are as follows:
1st, the present invention uses software automatic survey, it is not necessary to the participation of people, is missed so as to avoid the subjective of manual detection Difference, improves the uniformity of Bearing testing.
2nd, the present invention can effectively remove bearing data noise using sliding window variance method SWVM is slided, and reduce and make an uproar Sound recognizes the influence with measurement to the later stage, improves certainty of measurement.
3rd, the present invention can be identified effectively using based on lower convex domain decomposition merging DCBLCD from bearing annulus data Raceway groove circular arc data, and circular arc border is accurately determined, recognition accuracy is high.
4th, the robustness of this method is high, and different types of bearing can be detected, without complicated mechanical machine The design of structure and conversion.
Brief description of the drawings
Fig. 1 is recognition methods block diagram of the present invention;
Fig. 2 is the bearing channel identification region measurement data figure of recognition methods of the present invention;
Fig. 3 is the bearing channel datagram for having identified shown in recognition methods of the present invention;
Fig. 4 is the bearing channel data circular fitting design sketch shown in recognition methods of the present invention.
Specific embodiment
In the present embodiment, a kind of bearing channel recognition methods based on depth image has that speed is fast, high precision, robustness Strong the characteristics of, all kinds of bearing channel detections are can apply to, its step includes 1 data acquisition, 2 noise filterings, the identification of 3 bearings, 4 Raceway groove is recognized and the fitting of 5 raceway grooves.Wherein:
The noise filtering of the 2nd step, is using sliding window variance method SWVM (SlidingWindowVariance Method), differentiated by calculating the space length of data and the variance of value in image block positioned at window center data whether It is noise;
3rd step bearing is recognized, is that bearing is identified from background data, using Minimum Enclosing Rectangle method MER (Minimum ExternalRectangle), first obtains the profile of image, then according to the minimum external of profile with morphological approach Rectangular characteristic carries out handsome choosing, obtains inner circle excircle configuration;
4th step raceway groove is recognized, is that raceway groove circular arc data are identified, and algorithm is merged using being decomposed based on lower convex domain DCBLCD (Decomposition andConsolidationAlgorithmBasedonLower ConvexDomain) is recognized Raceway groove;
5th step raceway groove is fitted, and is to obtain just solution using least square method LS (Least Square) fitting circule methods, then with grain Swarm optimization PSO (Particle Swarm Optimization) is optimized, and then obtains precision circular fitting higher; Specifically, as shown in figure 1, being to carry out as follows:
Step 1, acquisition bearing depth data:
Line laser sensor is placed in the surface of motion platform, bearing is placed on the moving platform, using line laser Sensor and motion platform gather the depth image M of bearing, a width of W of depth image M, are highly H;
Step 2, noise processed:
In order to reduce operand, first with threshold method removal depth image M intermediate values substantially beyond bearing height scope Discrete noise, sets threshold value T1, threshold value T herein11.5 times of bearing maximum height are set to, sliding window variance method is recycled The noise spot that peels off with good data mixing in SWVM removal depth images M, obtains by the depth image after noise processed M', specifically, SWVM algorithms are carried out in accordance with the following steps:
Step 2.1, definition sliding window:It is the square window of g to define the length of side, and g values are bigger, and operand is bigger, and value is smaller, Locality is stronger, and g generally takes 5, when being slided with order from left to right, from top to bottom on depth image, positioned at window center The pixel of position is denoted as px,y, coordinate is (x, y), then px,yBoundary constraint be:X ∈ [(g-1)/2, W- (g-1)/2], y ∈ [(g-1)/2,H-(g-1)/2];Note ΩxyFor in depth image M', center pixel coordinate is the pixel in the square window of (x, y) Set, thenWherein, p(j) xyJ-th pixel in square window is represented, and Pixel set ΩxyCentral pixel point be
Step 2.2, initialization x=(g-1)/2-1, y=(g-1)/2;
Step 2.3, abscissa border detection:X+1 is assigned to x, judges whether x=W- (g-1)/2 sets up, if so, X=(g-1)/2-1 is then made, after y+1 is assigned into y, step 2.4 is performed, step 2.5 is otherwise performed;
Step 2.4, ordinate border detection:Judge whether y≤H- (g-1)/2 sets up, if so, step 2.5 is then performed, Otherwise, algorithm is terminated, so as to obtain the depth image M' for removing the noise that peels off;
Step 2.5, judge central pixel pointWhether it is non-zero points;If non-zero points, then enter step 2.6, if not Non-zero points, return and perform step 2.3;
Step 2.6, acquisition non-zero points set omegaxy v
Step 2.6.1, initialization j=0;
Step 2.6.2, judge j=g2Whether set up, if set up, obtain non-zero point set Represent k-th non-zero points in corresponding square window, wherein N≤g2, and And step 2.7 is performed, otherwise, j+1 is assigned to j, and judge j=g2Whether/2 set up, if set up, return to step 2.6.2, Otherwise perform step 2.6.3;
Step 2.6.3, judge j-th pixel p(j) xyWhether it is non-zero points, if non-zero points, then by p(j) xyIt is put into non- Zero point set omegaxy vIn, otherwise abandon j-th pixel p(j) xy;And return to step 2.6.2 is performed;
Step 2.7, using formula (1) obtain non-zero points set omegaxy vIn all effective pixel points spatial spreading degree
In formula (1), dmnRepresent the Euclidean distance between m-th non-zero points and n-th non-zero points;And 1≤m ≠ n≤N.From Definition can be seen thatIt is Ωxy vIn between all non-zero points and the non-zero points closest with it distance average value,Table Show the spatial distribution characteristic of data point in window,Bigger, data distribution is more discrete,Smaller, data get over uniform close, when When represent in window W there is no zero point.
Step 2.8, setting threshold value Τ2, in the present embodiment, take Τ2It is 1, represents that the non-zero points in window are non-with its arest neighbors Average distance between zero point is 1, ifRepresent that the spatial spreading degree of data in window is larger, exceeded setting Threshold value, then be transferred to step 2.9, is otherwise transferred to step 2.3;
Step 2.9, available point set omega is represented with Sxy vThe variance of interior element, non-zero points set omega is represented with Exy vInterior element Average;Threshold value T is set3If, S>T3, then by the central pixel point of square windowValue be set to " 0 ", i.e., quite In removing the point.Otherwise retain central pixel pointValue, and return to step 2.3.
Step 3, bearing identification:
3.1st, the bianry image M of depth image M' is obtained using local thresholding methodbin, increased income using image algorithm in this example AdaptiveThreshold () function in storehouse opencv 2 is processed;
3.2nd, to bianry image MbinClosing operation of mathematical morphology is carried out, is increased income in storehouse opencv 2 using image algorithm in this example MorphologyEx () function pair MbinProcessed, so as to obtain the bianry image M after closed operationc bin
3.3rd, bianry image M is obtained using minimum enclosed rectangle (MinimumExternal Rectangle, MER)c binIn The codomain of connection two boundary rectangle, minAreaRect () is increased income using image algorithm in storehouse opencv 2 in this example to calculate The minimum enclosed rectangle of two-value connected domain, because only this target of bearing in detection image, does not have other objects, so most The boundary rectangle of large area is the outline comprising bearing, the central point O (x of the boundary rectangle of maximum areac,yc) it is bearing Centre point;
Step 4, raceway groove identification:
4.1st, the centre point O (x according to bearingc,yc) obtain the bearing circle being located on bearing diameter direction in depth image M' Raceway groove identification numeric field data in loop data, such as Fig. 2 is exactly to be located at data on bearing annulus, is designated as Q={ w1,w2,…,wi,…, wn};wiRepresent ith pixel point;Note ith pixel point wiCoordinate is (xi,yi);1≤i≤n;
4.2nd, merging algorithm (Decomposition and Consolidation are decomposed using based on lower convex domain AlgorithmBased on Lower ConvexDomain, DCBLCD) raceway groove identification is carried out to bearing annulus data Q, obtain Ditch track data as shown in Figure 3 is designated as Qc, QcIdeal zone corresponding diagram 2 in channel region, it is a central angle at 90 degree The circular arc of left and right.QcAcquisition be broadly divided into decomposition and union operation to data in Q, wherein operation splitting is the number in Q According to several segmentations are decomposed into, each segmentation is a set for data, and union operation be by above-mentioned segmentation adjacent to each other by According to the merging of certain rule selectivity.Specifically follow the steps below:
Step a, to bearing annulus data Q={ w1,w2,…,wi,…,wnDecomposed:
Step a.1, definition stepped intervals be Δ, define BfIt is the segmentation that bearing annulus data Q is decomposited, f justifies for bearing The subscript of the segmentation that loop data Q is decomposited, initializes i=1, f=1;
Step a.2, initialization Δ=2;
Step a.3, order segmentation Bf={ wi,wi+1,...,wi+Δ, then it is segmented BfThe curvilinear equation of composition is g (x), remembers wzWith wvIt is set BfThe point of middle any two difference coordinate, coordinate is respectively (xz,yz) and (xv,yv), then there are g (xz)=yz,g(xv) =yv, and obtain w using formula (2)zAnd wvBetween under it is convex away from Dzv, so as to obtain segmentation BfIn between all two differences Under it is convex away from, and constitute under it is convex away from set
Dzv=α g (xz)+βg(xv)-g(αxz+βxv)+τ (2)
α, β are scale factor in formula (2), and alpha+beta=1, in this example the equal value of α, β for 0.5, τ be constant, be an error Tolerance parameter, in a lower convex domain, in theory, and when τ=0, Dzv> 0 is permanent to be set up, but in actual acquired data because The presence of noise data, Dzv> 0 is frequently not permanent establishment, so needing to set a constant factor τ for tolerance noise, this example Middle value is 0.01;
Step a.4, use DuIt is convex away from set under expressionIn u-th under it is convex away from then Wherein ε=Δ (1+ Δs)/2;JudgeWhether set up, if so, illustrate to be segmented BfIn have and be unsatisfactory for lower convexity matter Two points, do not continue to extension, perform step a.5, otherwise, continue to extend, and perform step a.6;
A.5, by f-th step is segmented BfWhether it is put into segmentation set Γ, and after i+ Δs are assigned into i, judges i >=n-1 Set up, if so, then represent and obtain segmentation set Γ={ B1,B2,...,Bγ,...,Bf, wherein BγRepresent and be segmented in set Γ The γ segmentation, and perform step b, otherwise, f+1 is assigned to f, and return to step is a.2;
Step a.6, Δ+1 is assigned to Δ after, perform step a.3;
Step b, each segmentation to being segmented in set Γ are merged:
Step b.1, initialization γ=1, counting variable θ=0;
Step b.2, stepped intervals σ=1,
Step b.3, define Bγ,σExpression starting point is Bγ, and the constituted merging section of continuous σ segmentation, i.e.,By Bγ,σComprising annulus data point total number be designated as c;
B.4, according to formula (2) step calculates merging section Bγ,σIt is convex away from so as to obtain down under between middle any two difference It is convex away from setWherein λ=c (c-1)/2;
Step b.5, statistics under it is convex away from setIn less than 0 point number, be denoted as c-, and calculate scale factor The value is bigger, illustrates that two segmentation differences are bigger, is more not belonging to same figure below domain.
Step b.6, defined parameters κ for control under it is convex away from setThe factor of middle negative ratio, κ is taken in this example is 0.2, if η>B.7 κ, then perform step, otherwise performs step b.8;
Step b.7, section B will be mergedγ,σIt is put into merging section set H, and after γ+σ+1 are assigned into γ, judges that γ=f is No establishment, if so, then represent to obtain to merge to be segmented and gather It is in HIndividual merging section, And perform step c, otherwise return to step b.3;
Step b.8, σ+1 is assigned to σ after, judge whether γ+σ+1=f set up, if so, then represent obtain merge section SetOtherwise, after θ+1 being assigned into θ, return to step is b.2;
Step c, from section set H is merged filter out ditch track data Qc
NoteRepresentComprising annulus data point number, selected from section set H is merged most comprising point numberAs ditch track data Qc, i.e.,
Step 5, raceway groove fitting:
5.1st, using least square method LS to ditch track data QcIt is fitted, obtains the first solution (x of fitting circle0,y0,r);Its In, x0Represent abscissa of the fitting circle of bearing channel in depth image M', y0Represent the fitting circle of bearing channel in depth map As the ordinate in M', r represents the radius of the fitting circle of bearing channel;
5.2nd, it is not optimal solution by the solution that least square method LS is obtained is a kind of estimation, so according to just solution (x0,y0, particle swarm optimization algorithm (Particle Swarm Optimization Algorithm, PSO) r) is reused to raceway groove Data QcSolution is optimized, the circular fitting parameter (x', y', r') of bearing channel is obtained, there is the preferable just solution, institute of LS It is very fast with PSO convergence rates.Final fitting effect such as Fig. 4, the point of solid black is the ditch track data for identifying, and black surround Hollow point is final round matched curve.
Embodiments of the invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to be said using the present invention Equivalent structure or equivalent flow conversion that bright book and accompanying drawing content are made, or directly or indirectly it is used in other related technology necks Domain, is included within the scope of the present invention.

Claims (3)

1. a kind of bearing channel recognition methods based on depth image, it is characterised in that comprise the following steps:
Step 1, acquisition bearing depth data:
Using the depth image M, a width of W of the depth image M of line laser sensor and motion platform collection bearing, highly it is H;
Step 2, noise processed:
Noise of the depth image M intermediate values beyond bearing height scope is removed using threshold method, sliding window variance is recycled Method removes the noise spot that peels off in the depth image M, obtains by the depth image M' after noise processed;
Step 3, bearing identification:
3.1st, the bianry image M of depth image M' is obtained using local thresholding methodbin
3.2nd, to the bianry image MbinClosing operation of mathematical morphology is carried out, so as to obtain the bianry image M after closed operationc bin
3.3rd, the bianry image M is obtained using minimum enclosed rectanglec binIn the codomain of connection two boundary rectangle, maximum area Boundary rectangle be the outline comprising bearing, the central point O (x of the boundary rectangle of maximum areac,yc) it is the center of circle of bearing Point;
Step 4, raceway groove identification:
4.1st, the centre point O (x according to bearingc,yc) obtain the bearing annulus number being located on bearing diameter direction in depth image M' According to being designated as Q={ w1,w2,…,wi,…,wn};wiRepresent ith pixel point;Remember the ith pixel point wiCoordinate is (xi, yi);1≤i≤n;
4.2nd, raceway groove identification is carried out to the bearing annulus data Q using based on lower convex domain decomposition merging algorithm, obtains raceway groove number According to being designated as Qc
Step 5, raceway groove fitting:
5.1st, using least square method LS to the ditch track data QcIt is fitted, obtains the first solution (x of fitting circle0,y0,r);Its In, x0Represent abscissa of the fitting circle of bearing channel in the depth image M', y0Represent the fitting circle of bearing channel in institute The abscissa in depth image M' is stated, r represents the radius of the fitting circle of bearing channel;
5.2nd, according to the just solution (x0,y0, r) using particle swarm optimization algorithm to the ditch track data QcSolution is optimized, is obtained To the circular fitting parameter (x', y', r') of bearing channel.
2. the bearing channel recognition methods based on depth image according to claim 1, it is characterized in that:In the step 2 Sliding window variance method SWVM carry out as follows:
Step 2.1, definition sliding window:Define the length of side for g square window, on depth image with from left to right, on to Under order slide when, the pixel positioned at window center position is denoted as px,y, coordinate is (x, y), then px,yBoundary constraint be:x ∈ [(g-1)/2, W- (g-1)/2], y ∈ [(g-1)/2, H- (g-1)/2];Note ΩxyFor in depth image M', center pixel coordinate It is the pixel set in the square window of (x, y), thenWherein, p(j) xyExpression side J-th pixel in shape window, and pixel set ΩxyCentral pixel point be
Step 2.2, initialization x=(g-1)/2-1, y=(g-1)/2;
Step 2.3, abscissa border detection:X+1 is assigned to x, judges whether x=W- (g-1)/2 sets up, if so, then make x =(g-1)/2-1, after y+1 is assigned into y, performs step 2.4, otherwise performs step 2.5;
Step 2.4, ordinate border detection:Judge whether y≤H- (g-1)/2 sets up, if so, step 2.5 is then performed, it is no Then, algorithm is terminated, so as to obtain the depth image M' for removing the noise that peels off;
Step 2.5, judge central pixel pointWhether it is non-zero points;If non-zero points, then enter step 2.6, if not non-zero Point, returns and performs step 2.3;
Step 2.6, acquisition non-zero points set omegaxy v
Step 2.6.1, initialization j=0;
Step 2.6.2, judge j=g2Whether set up, if set up, obtain non-zero points set omegaxy v={ p 'xy (1),p ′xy (2),...p′xy (k)...p′xy (N),Represent k-th non-zero points in corresponding square window, wherein N≤g2, and simultaneously perform Step 2.7, otherwise, is assigned to j, and judge j=g by j+12Whether/2 set up, if set up, return to step 2.6.2 otherwise holds Row step 2.6.3;
Step 2.6.3, judge j-th pixel p(j) xyWhether it is non-zero points, if non-zero points, then by p(j) xyIt is put into non-zero point set Close Ωxy vIn, otherwise abandon j-th pixel p(j) xy;And return to step 2.6.2 is performed;
Step 2.7, using formula (1) obtain non-zero points set omegaxy vIn all effective pixel points spatial spreading degree l:
In formula (1), dmnRepresent the Euclidean distance between m-th non-zero points and n-th non-zero points;And 1≤m ≠ n≤N;
Step 2.8, setting threshold value T2If, l >=T2, then step 2.9 is transferred to, otherwise it is transferred to step 2.3;
Step 2.9, available point set omega is represented with Sxy vThe variance of interior element, non-zero points set omega is represented with Exy vInterior element it is equal Value;Threshold value T is set3If, S>T3, then by the central pixel point of square windowValue be set to " 0 ", otherwise retain in Imago vegetarian refreshmentsValue, and return to step 2.3.
3. the bearing channel recognition methods based on depth image according to claim 1, it is characterized in that:The step 4.2 In based on lower convex domain decompose merge algorithm DCBLCD carry out as follows:
Step a, to the bearing annulus data Q={ w1,w2,…,wi,…,wnDecomposed:
Step a.1, definition stepped intervals be Δ, define BfIt is the segmentation that bearing annulus data Q is decomposited, f is bearing annulus data The subscript of the segmentation that Q is decomposited, initializes i=1, f=1;
Step a.2, initialization Δ=2;
Step a.3, order segmentation Bf={ wi,wi+1,...,wi+Δ, then it is segmented BfThe curvilinear equation of composition is g (x), remembers wzAnd wvFor Set BfThe point of middle any two difference coordinate, coordinate is respectively (xz,yz) and (xv,yv), then there are g (xz)=yz,g(xv)=yv, And obtain w using formula (2)zAnd wvBetween under it is convex away from Dzv, so as to obtain segmentation BfIn between all two differences under it is convex Away from, and it is convex away from set under composition
Dzv=α g (xz)+βg(xv)-g(αxz+βxv)+τ (2)
α, β are scale factor in formula (2), and alpha+beta=1, and τ is constant;
Step a.4, use DuIt is convex away from set under expressionIn u-th under it is convex away from then Wherein ε=Δ (1+ Δs)/2;JudgeWhether set up, if so, then perform step a.5, otherwise, perform step a.6;
A.5, by f-th step is segmented BfIt is put into segmentation set Γ, and after i+ Δs are assigned into i, judges whether i >=n-1 sets up, If so, then represent and obtain segmentation set Γ={ B1,B2,...,Bγ,...,Bf, wherein BγRepresent the in segmentation set Γ γ segmentation, and step b is performed, otherwise, f+1 is assigned to f, and return to step is a.2;
Step a.6, Δ+1 is assigned to Δ after, perform step a.3;
Step b, each segmentation to being segmented in set Γ are merged:
Step b.1, initialization γ=1, counting variable θ=0;
Step b.2, stepped intervals σ=1,
Step b.3, define Bγ,σExpression starting point is Bγ, and the constituted merging section of continuous σ segmentation, i.e.,Will Bγ,σComprising annulus data point total number be designated as c;
B.4, according to formula (2) step calculates merging section Bγ,σUnder between middle any two difference it is convex away from so that obtain down it is convex away from SetWherein λ=c (c-1)/2;
Step b.5, statistics under it is convex away from setIn less than 0 point number, be denoted as c-, and calculate scale factor
Step b.6, defined parameters κ for control it is described under it is convex away from setThe factor of middle negative ratio, if η>κ, then perform step Suddenly b.7, otherwise step is performed b.8;
Step b.7, section B will be mergedγ,σBe put into merging section set H, and after γ+σ+1 are assigned into γ, judge γ=f whether into It is vertical, if so, then represent and obtain merging segmentation set It is in HIndividual merging section, and hold Row step c, otherwise return to step are b.3;
Step b.8, σ+1 is assigned to σ after, judge whether γ+σ+1=f set up, if so, then represent obtain merge section setOtherwise, after θ+1 being assigned into θ, return to step is b.2;
Step c, from section set H is merged filter out ditch track data Qc
NoteRepresentComprising annulus data point number, selected from the merging section set H most comprising point numberAs the ditch track data Qc, i.e.,
CN201710129091.2A 2017-03-06 2017-03-06 A kind of bearing channel recognition methods based on depth image Active CN106910191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710129091.2A CN106910191B (en) 2017-03-06 2017-03-06 A kind of bearing channel recognition methods based on depth image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710129091.2A CN106910191B (en) 2017-03-06 2017-03-06 A kind of bearing channel recognition methods based on depth image

Publications (2)

Publication Number Publication Date
CN106910191A true CN106910191A (en) 2017-06-30
CN106910191B CN106910191B (en) 2019-10-18

Family

ID=59186811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710129091.2A Active CN106910191B (en) 2017-03-06 2017-03-06 A kind of bearing channel recognition methods based on depth image

Country Status (1)

Country Link
CN (1) CN106910191B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976274A (en) * 2010-09-10 2011-02-16 上海宏力半导体制造有限公司 Method for extracting simulation program with integrated circuit emphasis (SPICE) model of field effect transistor
EP2381213A1 (en) * 2010-04-21 2011-10-26 Aktiebolaget SKF Method and device for measuring a bearing component
CN105938620A (en) * 2016-04-14 2016-09-14 北京工业大学 Small-diameter pipe inside weld surface defect identification device
CN106169017A (en) * 2016-06-20 2016-11-30 浙江兆丰机电股份有限公司 A kind of hub-bearing unit steel ball based on play size matching process
CN106290392A (en) * 2016-08-05 2017-01-04 宁波达尔机械科技有限公司 A kind of little micro-bearing surface pitting defects online test method and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2381213A1 (en) * 2010-04-21 2011-10-26 Aktiebolaget SKF Method and device for measuring a bearing component
CN101976274A (en) * 2010-09-10 2011-02-16 上海宏力半导体制造有限公司 Method for extracting simulation program with integrated circuit emphasis (SPICE) model of field effect transistor
CN105938620A (en) * 2016-04-14 2016-09-14 北京工业大学 Small-diameter pipe inside weld surface defect identification device
CN106169017A (en) * 2016-06-20 2016-11-30 浙江兆丰机电股份有限公司 A kind of hub-bearing unit steel ball based on play size matching process
CN106290392A (en) * 2016-08-05 2017-01-04 宁波达尔机械科技有限公司 A kind of little micro-bearing surface pitting defects online test method and system thereof

Also Published As

Publication number Publication date
CN106910191B (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110163853B (en) Edge defect detection method
CN102654902B (en) Contour vector feature-based embedded real-time image matching method
CN108109137A (en) The Machine Vision Inspecting System and method of vehicle part
CN104915963B (en) A kind of detection and localization method for PLCC elements
CN107705288B (en) Infrared video detection method for dangerous gas leakage under strong interference of pseudo-target motion
CN107230203B (en) Casting defect identification method based on human eye visual attention mechanism
CN103604809B (en) A kind of online visible detection method of pattern cloth flaw
CN104198497B (en) Surface defect detection method based on visual saliency map and support vector machine
CN109166098A (en) Work-piece burr detection method based on image procossing
CN104835175B (en) Object detection method in a kind of nuclear environment of view-based access control model attention mechanism
CN110853015A (en) Aluminum profile defect detection method based on improved Faster-RCNN
CN105046197A (en) Multi-template pedestrian detection method based on cluster
CN104268505A (en) Automatic cloth defect point detection and recognition device and method based on machine vision
CN103499585A (en) Non-continuity lithium battery thin film defect detection method and device based on machine vision
CN106952280B (en) A kind of spray gun paint amount uniformity detection method based on computer vision
CN101226108A (en) Method for testing droplet distribution consistency degree
CN110763700A (en) Method and equipment for detecting defects of semiconductor component
CN110047063B (en) Material drop detection method, device, equipment and storage medium
CN103778645A (en) Circular target real-time tracking method based on images
CN106504262A (en) A kind of small tiles intelligent locating method of multiple features fusion
CN105572143B (en) The detection method of rolled material surface periodic defect in calender line
CN108109154A (en) A kind of new positioning of workpiece and data capture method
CN110726720B (en) Method for detecting suspended substances in drinking mineral water
CN110232682B (en) Image-based track foreign matter detection method
CN108492306A (en) A kind of X-type Angular Point Extracting Method based on image outline

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