Finish the procedure of us contour detection

With poor performance