3 ms·
Use a Hough transform on the edge detection to get the right lines (you only want the longest, straightest ones). Then apply the affine transform back. It gets
by WildUtah 14y ago
Use a Hough transform on the edge detection to get the right lines (you only want the longest, straightest ones). Then apply the affine transform back.
It gets harder if the notebook doesn't lie flat, though.