Large-scale image and video search: Challenges, technologies, and trends