During the process of astrometry of the disk resolved objects, contour detection acts as an important part. When using the traditional operators such as Roberts operator, the result is easily affected by the noise and interior details. A contour detection method based on ResNet is proposed, which can extract more accurate contours based on sufficient dataset. Meanwhile, a robust method named window-contour detection is proposed, which is not dependent on the dataset and computing resource. The experimental results on the New Horizons LORRI frames show that ResNet can detect more contour pixels, while window-contour detection method can exclude more non-contour pixels.