Recognizing objects based on location