I am working on a project. In this project I need to use a robotic gripper to gripp a flange. This flange will be detected and located in a monocamera. This flange contour comes from a FOUP handling flange. What I need to do is to detect the most outer edge. Because that edge is determined by a CAD model. The internal edge is not useful.
I have already tried to detect the edge by using bilateral filter and Canny detector. But this works not very well. Because the internal edge is more clear than the outer edge. The result is, there are many edges at the contour. And that contour is also not continuous.
The following 3 images are
- original image
- outer edge, I need to detect
- edge image by using Canny detector
Can anyone give me an advise, how to detect the outer line accurately?