Hello, I am currently working on a project and I am stuck on one part. I am trying to detect the a playing a card in an image and then rotate it and then crop it out. The figure below depcits what I'm trying to achieve:
I've already achieved this goal using functions like edge() and regionprops(). But I am trying to do it without using those. This is what I have so far:
Now im trying to align the image and then crop it without using regionprops(). Do you have any suggestion on what approach I should take?
I want to do it as simple as possible without using any big matlab functions(No machine learning techniques either)