summaryrefslogtreecommitdiff
path: root/check/static/perceptual_hash_report.html
diff options
context:
space:
mode:
authoradamhrv <adam@ahprojects.com>2019-04-23 12:58:20 +0200
committeradamhrv <adam@ahprojects.com>2019-04-23 12:58:20 +0200
commit650318a79fe28ae5322d6483aa98475857b7e20b (patch)
tree2beb61ec39736e6023a8f90ef7b5db2aa93ceec8 /check/static/perceptual_hash_report.html
parentfc5fe28c55429c4439387df81967b5fc9777c511 (diff)
add template
Diffstat (limited to 'check/static/perceptual_hash_report.html')
-rw-r--r--check/static/perceptual_hash_report.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/check/static/perceptual_hash_report.html b/check/static/perceptual_hash_report.html
new file mode 100644
index 0000000..566a058
--- /dev/null
+++ b/check/static/perceptual_hash_report.html
@@ -0,0 +1,39 @@
+<html>
+<head>
+ <link rel="stylesheet" href="{{ dir_assets }}/css.css">
+</head>
+<body>
+
+ <h1>Image Duplicates</h1>
+
+ {% for fname_a, image_group in image_groups %}
+ <h3>Duplicates for {{ fname_a }}</h3>
+ <table>
+ <tr>
+ <th>Image A</th>
+ <th>Image B</th>
+ <th>Score</th>
+ </tr>
+ {% for df in image_group.itertuples() %}
+ <tr>
+ <td>
+ <img class="img_match img_match_a" src="{{ dir_ims }}/{{ df.fname_a }}" />
+ </td>
+ <td>
+ <img class="img_match img_match_b" src="{{ dir_ims }}/{{ df.fname_b }}" />
+ </td>
+
+ <td class="result_txt">
+ <ul>
+ <li>Filename A:</h5> {{ df.fname_a }}</li>
+ <li>Filename B:<br> {{ df.fname_b }}</li>
+ <li>Score: {{ df.score }}</li>
+ </ul>
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endfor %}
+
+</body>
+</html> \ No newline at end of file