Discrimination of Spatially Confused Beams for Ranging with Single Camera