Research of Sorting Technology Based On Industrial Robot of Machine Vision
Research of Sorting Technology Based On Industrial Robot of Machine Vision
II.
ROBOT
I.
INTRODUCTION
57
RESEARCH OF ALGORITHM
A.
III.
B. Image pre-processing
Image pre-processing mainly improves SNR. This paper
selects canny operator for edge detection to distinguish
different shapes among workpiece. Canny edge detection is
similar to Marr edge detection [13], belongs to calculate first
derivative of Gaussian function after smooth [14]. Canny
algorithm uses first order derivative of two-dimensional
Gaussian function to smooth image. Then using Gaussian
function removes noise, general method is the convolution
formula between the template of the Gaussian function and
image. The convolution formula is as follows:
1
x2 + y2
IG ( x, y) =
exp(
) I (x, y) = G(x, y) I (x, y) (1)
2
2
2 2
The I(x, y) is original image, the is a scale parameter.
Then using difference operation of IG(x,y) calculates the
gradient to get gradient amplitude image G and gradient
58
D. Corner detection
Using corner detection extracts characters of the polygon
workpiece after the circular workpiece detected. Corner
points are change large points in the direction of the level Ix
and vertical Iy. Dreschler and Nagel put forward detection
methods based on the principle of Gaussian curvature [15].
Smith proposed the famous the SUASAN corner detection
operator [16]. Harris and Stephens improved Plessey corner in
1988, then advanced the Harris operator [17]. In this paper,
using the Harris detect corner features, the formula is:
E ( u, v) = w( x, y)[I ( x + u, y + v) I ( x, y)]2 (6)
IG
1 I G
= tan [
/
]
y x
x, y
E ( u , v ) [ , ] M
IxIy
M = w( x, y) I x
I x I y I y
x, y
I S = {x | S x , y I 0}
(4)
If the intersection of S and I is non-empty after structure
element S translated to (x, y), the point (x, y) is to set up of
expansion result that I expansion with structure element S.
(a)
(7)
R = det M k (traceM ) 2
2 2
2
det M = 12 = I x I y ( I x I y )
2
2
traceM = 1 + 2 = I x + I y
(b)
(8)
59
( xI x J ) 2 + ( y I y J ) 2
xI2 + yI2
F.
(10)
i =0 j = 0
M 00 = f (i, j )
TABLE I.
(11)
M 10 = i f (i, j )
M 01 = j f (i, j )
(12)
Center of mass
(pixel)
The type of
workpiece
Center of mass
(pixel)
Hexagon
(664,466)
Triangle
(534,523)
(284,451)
Triangle
(752,429)
(455,182)
Triangle
(226,452)
(484,178)
Triangle
(356,249)
Circle
(750,458)
Triangle
(685,218)
Circle
(456,434)
Pentagon
(511,432)
Circle
(690,248)
Pentagon
(262,274)
Circle
(196,208)
Pentagon
(745,267)
Circle
(226,456)
Hexagon
Circle
(13)
60
The type of
workpiece
Hexagon
( i , j ) = (M 10 / M 00 , M 01 / M 00 )
V.
( xI xJ ) 2 + ( yI yJ ) 2 (9)
xJ2 + yJ2
(14)
[9]
REFERENCES
[11]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[10]
[12]
[13]
[14]
[15]
[16]
[17]
[18]
(a)
(b)
Figure 6. Experimental renderings.
61