added check to ensure that sufficient number of objects are used in camera inference