In another embodiment of the invention, the method and apparatus disclosed herein is a method and apparatus using a single camera for a three dimensional inspection of balls on ball grid array devices, BGA/CSP devices or balls on wafers or balls on die.