We have developed a non-contacting technique to detect small steps on a sur
face such as label edges on a letter by using a spatially modulated illumin
ation. Steps can be detected correctly with this new technique even if ther
e are printed patterns on the same surface. Thus the technique is effective
for determining label areas that are often seen on pieces of direct mail.