[Question] How to do homography with skiasharp #2893
Unanswered
TheArtyMorty
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Everyone,
This is my first project using SkiaSharp, and I'm very new to this so sorry if I missed something obvious.
In my project, I'm trying to automatically recognize a board game state from a picture, so I'm trying to read from the picture. My main issue is that the picture can be taken at an angle, and the board game that is square in real life can appear as a trapeze. To easily automate the recognition, I would like to bring it back to a flat square (for example see the below picture).
I have already implemented something to have the user pick the edges, so I have SkPoints that represents the 4 corners of my board, but I don't know how to do an Homography from that to a flat square.
Is there something I could do with skiaSharp ? Once again I'm very new to this, so sorry if this is a stupid question.
Thanks in advance,
Beta Was this translation helpful? Give feedback.
All reactions