MATLAB Answers

Getting the coordinates of vertices of an A4 sheet with coins on it, for its further projective transformation and coin detection

4 views (last 30 days)
Baldr Odinson
Baldr Odinson on 19 Jan 2020
Answered: Matt J on 19 Jan 2020
I need to transform my tilted image in a way I can find coins on an A4 paper. So far, I have been getting four coordinates of edges of my paper by manually selecting them with ginput.
targetImageData = imread('coin1.jpg');
fprintf('Corner selection must be clockwise or anti-clockwise.\n');
[X,Y] = ginput(4);
Is there a way to automate this process, say, apply some edge detector and then find coordinates of each vertex and then pass them as the coordinates needed for transformation?


Sign in to comment.

Sign in to answer this question.