Help needed for coding in python using opencv

want code for detecting ellipse in an image and print the values of ratio of major to minor axes

“I want stuff” sounds like something you’d say while robbing a bank.

imagine being on Stack Overflow. follow the same rules.