Automatic processing of Young's fringes in speckle photography