detection contour ok