From ed47c1557915bb2472f6959e723cd76155312a98 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 6 Apr 2020 00:50:58 +0800 Subject: Add deduper (unfinished tool for finding image duplicates). --- deduper/libpuzzle/man/puzzle-diff.8 | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 deduper/libpuzzle/man/puzzle-diff.8 (limited to 'deduper/libpuzzle/man/puzzle-diff.8') diff --git a/deduper/libpuzzle/man/puzzle-diff.8 b/deduper/libpuzzle/man/puzzle-diff.8 new file mode 100644 index 0000000..5744b5a --- /dev/null +++ b/deduper/libpuzzle/man/puzzle-diff.8 @@ -0,0 +1,58 @@ +.\" +.\" Copyright (c) 2007-2014 Frank DENIS +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.Dd $Mdocdate: September 23 2007 $ +.Dt PUZZLE-DIFF 1 +.Os +.Sh NAME +.Nm puzzle\-diff +.Nd compare pictures with libpuzzle +.Sh SYNOPSIS +.Nm puzzle\-diff +[\-b ] +[\-e] [\-E ] [\-h] [\-H ] [\-l ] +[\-n ] [\-p

] [\-t] [\-W ] + + +.Sh DESCRIPTION +puzzle\-diff compares two pictures and outputs the normalized distance. +.Pp +Try +.Em puzzle\-diff \-h +for more info. +.Sh EXAMPLES +Output distance between two images: +.Bd -literal -offset indent +$ puzzle\-diff pic\-a\-0.jpg pics\-a\-1.jpg +0.102286 +.Ed +.Pp +Compare two images, exit with 10 if they look the same, exit with 20 if +they don't (may be useful for scripts): +.Bd -literal -offset indent +$ puzzle\-diff \-e pic\-a\-0.jpg pics\-a\-1.jpg +$ echo $? +10 +.Ed +.Pp +Compute distance, without cropping and with computing the average intensity +of the whole blocks: +.Bd -literal -offset indent +$ puzzle\-diff \-p 1.0 \-c pic\-a\-0.jpg pic\-a\-1.jpg +0.0523151 +.Ed +.Sh SEE ALSO +.Xr libpuzzle 3 +.Xr puzzle_set 3 -- cgit v1.2.3