automatic camera detection