If your computer vision application can't even recognize which way up a picture like the ones in the article is then surely you have bigger problems then EXIF orientation.
As others have said: what about pictures that are simply not aligned with the horizon?