Recognize shape, contour of tool