Varying degrees of interference will happen in the detection of a weak edge by common edge detection method and the effect of the old photos is even worse.In this paper,edge detection algorithm based on roberts can detect the edge in the same time and can effectively weaken the miscellaneous patterns.