Dewarping reproductions with chessboard image.
How to use:
- Pring a grid from grid folder. Don't scale images.
- Make digital photo of object. For example, old photo print in a photo album with curved pages.
- Put the image of chessboard on the photo print. Don't change anything in the setup. Make a photo of chessboard grid.
- Dewarp the image of photo print with the image of grid.
Using:
python.exe dewarp_chess.py <chessboard_image.tiff> <chessboard-width> <chessboard-height> <warped_image.tiff> <dewarped_image.tif>
Example:
python.exe dewarp_chess.py 20210114_164614.jpg 39 29 20210114_164614.jpg 20210114_164614_dewarped.tif
See Python source for details.