How to recognize that an image is inverted i.e. upside down

Hi @enthusiastic
did u followed this thread?

Regards,
Nived N