Creating a image recognition ai

I would like to make a image recognition ai that can have exceptions like people wearing a blue shirt, does anyone have any ideas or has this already been made