Camera + Wifi Shield

Hello, I want to know if it is possible to use a camera and a wifi shield to create a machine where the machine searches the internet for a picture and then locates the object from the picture in its surroundings. For example, the machine searches for a picture of a cup online, and then uses that picture of a cup locates another cup in the room the machine is in. Thank you, I know it is confusing, but I hope I will get an answer. :)