How to detect the slope in the picture?

How to detect the slope in the picture. For example, do you need to find out that the bottle is lying and not standing, or that a person weighs upside down?

Hey, this article from our blog might help: