How AI is used in image recognition