numpy
Pillow

[faster nearest neighbors matching]
scipy
