If you can somehow transfer images to matrices (2D arrays) you can calculate eigenvalues using any maths library (I believe numpy can do that). Images with closer eigenvalues mostly look similar.
Firstly, you need to convert your images to two dimensinal arrays. (For example by storing the rgb value of pixel x,y in twodimarray[x][y], see this )
Than you can calculate the eigenvalue of this matrix (In the Wikipedia article on Eigenvalues there is more information about eigenvalues, applications section in link can be more interesting for you) using numpy as explained here) Lastly, googling eigenvalues and image recognation could give you further ideas.