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

5 visualizzazioni (ultimi 30 giorni)
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');
imshow(targetImageData);
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?
W9TDW.png
KlCuY.png

Risposte (1)

Matt J
Matt J il 19 Gen 2020
The Computer Vision Toolbox has a few corner point detector apps,

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by