First time here? Check out the FAQ!
answered Jul 25 '18
you can try warpPerspective_demo.cpp and adding a border on the image maybe useful.
Mat original_image = imread( filename ); copyMakeBorder(original_image, original_image, 100, 100, 100, 100, BORDER_CONSTANT, Scalar(0, 0, 0));