I would like to apply a rotation on image of scanned book.
I use FindContours
and approxPolyDP
to get the corners of the book and for that I need a perfect white square. Only, when I apply a simple threeshold:
threshold(imgGrayScale, three, 1, 255, THRESH_BINARY);
on my input image I have still some points here and there. Thresholding it is the good solution to get a full perfect white square? Maybe Segmentation would be a better solution?
Summary of my post : https://i.stack.imgur.com/MAMSe.jpg