Detect perspective based on image

Hi, my problem is that I have a photo of fuel prices pylon. Photo can be took from side or underneath and I need to correct the perpective like when you "scan" documents with smartphone. I know everything what I need including fitgeotrans but the problem is that I need to automaticaly detect anchor points. How should I even start? I though I could use Hough transform do higlight edges but it gives me rather rubbish then lines.
Example image for reference:

Answers (1)

yanqi liu
yanqi liu on 2 Mar 2022
yes,sir,what is target,is it to rectification image,such as

2 Comments

That is pretty what I need. But it must be done automaticaly.
should choose 4 point by hand to make transform

Sign in to comment.

Asked:

on 1 Mar 2022

Commented:

on 2 Mar 2022

Community Treasure Hunt

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

Start Hunting!