You are on page 1of 1

Start

Capture image

Apply thresholding

Find centroid=ctr

Find XY coordinate of ctr

No Rotate Robot

If Y1<Y<Y2 ? Yes

No Move forward

If X<X1 ? Yes If Servo=Q ? Yes Close arms End No Reduce angle

You might also like