Compareimage

From LDTP

Table of contents

Syntax

imagecompare (imgfile1, imgfile2)

Description

Compares two images and returns difference of them in percentage

Refer: ldtputils.py (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/ldtputils.py)

Example

imagecompare ('in.jpg', "out.jpg')

Dependency

Python Imaging Library (http://www.pythonware.com/products/pil/)