Calculating the appropriate focal point of the lens to the width and the distance of the monitored area.