ar functions for objectdetection