Highly reflective material target captured by the camera will form a mixture of the original target and its reflection image, and the above method is unable to accurately segment the image. To solve this problem, we proposed a method based on two-dimensional gray histogram contour projection segmentation algorithm. This algorithm is based on the grayscale image grayscale - field to establish the two-dimensional gray histogram, and use the two-dimensional histogram oblique segmentation method to filter out noise, then the Otsu method is used to projection segmentation and look for the best threshold segmentation in a straight line, so as to get the target image to be detected. Finally, use the convex polygon method to process the edge of the target. Experimental results show that the proposed method can accurately segment the target from the blurred image.