Auto cropping and resizing images

45 Views Asked by At

I'd like to write a python script that does the following manipulation for a bulk of images:

chessboard manipulation example

This example was achieved using CamScanner's auto-crop. I'd like to mimic it. What it does? It takes an image of a chessboard taken on mobile phone, and crops it to the dims of the chessboard, as well as resizing it to a view from the upper side.

I've tried opencv camera caliberation algorithm but that didn't work out quite well. https://docs.opencv.org/4.x/dc/dbb/tutorial_py_calibration.html

Thanks in advance!

0

There are 0 best solutions below