Skip to content

Commit 8a69e3e

Browse files
authored
Update README.md
1 parent 6095329 commit 8a69e3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Computing how similar are 2 photos
66
var reader = new ImageReader();
77
var strategy = new StrictMatcherStrategy();
88
var runner = new ImageMatcherRunner(reader, strategy);
9-
var result = runner.RunMatcher("TestData/TestImage.png", "TestData/TestImage.png");
9+
var result = runner.RunMatcher("TestData/TestImage.png", "TestData/TestImage.png", true, 320);
1010
```
11+
First 2 arguments are files to compare. Third argument tells to resize image before diff compare + forth param with target width after resize.
12+
1113
Result is number from 0 to 100. 0 means photots are exacly the same (based on strategy used). 100 is black image vs. white image - 100% dismatch. So far there is only one strategy - but so far it was sufficient to get reasonable results.

0 commit comments

Comments
 (0)