O'Reilly logo

Computer Vision with Python 3 by Saurabh Kapur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Image translation through random cropping

Image translation means that the X, Y position of the image changes in the input image. For example, we train our program with images of a pen at the center of the image and while testing (giving an unknown image as input), we give an image with pen at one of the corners of the image. As we read earlier, it is possible that the program might not detect the object as a pen. To tackle this problem, we try to move the object to different positions in the image by randomly cropping the image at different positions.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required