This code is set up to follow roughly with the series of Photometric Stereo tutorials on my website.
It's all written in Python 3, using with heavy use of Numpy and Matplotlib and SciPy.
Dependencies can be installed using pip by running;
$ pip install -r requirements.txt
Example images can be found in the demo-images folder.