I am trying to use pdiffer in ubuntu. It is a python interface to the PerceptualDiff tool. https://pypi.python.org/pypi/pdiffer
I installed pdiffer using pip (after installing pip)
I installed cmake
I installed freeimage (sudo apt-get install libfreeimage-dev)
I built PerceptualDiff following the read me file.
As far as I know, everything is setup (there were no errors). Under Home/Documents I have my two images and a folder called pdiff that has the compiled perceptualdiff file in it.
I used the python interpreter in a terminal window
from pdiffer import PDiffer
pdiff = PDiffer(bin='/home/username/Documents/pdiff/perceptualdiff')
result = pdiff('image1.png', 'image2.png')
no errors until the last command
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'PDiffer' object is not callable
This is the first time I've tried to use a python interface for a C module. If you could tell me what I'm doing wrong (or let me know what other information I need to include), I would appreciate it.