automatic camera height detection