The original Foscam recovery images and guides were hidden from Foscam.com, but the files are still available. Source: https://web.archive.org/web/20170624094839 ...
It uses OpenCV to scan images for expected objects, and determines the physical orientation. Currently it only supports network-attached Foscam cameras. If you see the following in stdout: "Corrupt ...