Detection with resized images to increase speed