adding blob and contour detection