Uses OpenCV to detect an object in an image