0

How can I get a rectangle area from a picture by Python?

original picture:

the ideal result:

Markus
  • 5,976
  • 5
  • 6
  • 21
  • How do you want to decide what to crop - have you got the coordinates, do you want to detect the starburst, find the purple square, or what? – Ken Y-N Oct 14 '22 at 07:16
  • Welcome to SO. Please edit your question. And try to be more clear to explain your question. You may visit and check [how to ask a good question](https://stackoverflow.com/help/how-to-ask) – Yunus Temurlenk Oct 14 '22 at 07:25
  • Please check this similar question as a start: https://stackoverflow.com/q/1817442/18667225 – Markus Oct 14 '22 at 07:30
  • Also consider that due to perspective and lens distortion, that is not technically a rectangle. – decadenza Oct 14 '22 at 07:45
  • Welcome to Stack Overflow. Please read the information guides in the **help center** (https://stackoverflow.com/help), in particular, "How to Ask A Good Question" (https://stackoverflow.com/help/how-to-ask) and "How to create a Minimal, Reproducible Example" (https://stackoverflow.com/help/minimal-reproducible-example). – fmw42 Oct 14 '22 at 15:45

0 Answers0