Tools for sampling patches from Whole-Slide-Images (WSIs) readable by openslide using Python ('tested' on 3.5).
pip install wsisampler
You will need to install openslide. This is included in the dependencies so may be automatically installed. If not I found this to help:
#!/bin/bash
sudo apt-get install openslide-tools
pip install openslide-python
Please see demo.ipynb here.