Fix duplicated entries when using fast compare option (#557)

pull/560/head
Rafał Mikrut 2 years ago committed by GitHub
parent 0e00544af4
commit 2c725e8e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -727,8 +727,8 @@ impl SimilarImages {
.filter(|(_similarity, hash)| !master_of_group.contains(*hash) && available_hashes.contains_key(*hash))
.collect::<Vec<_>>();
// Not found any hash with specific distance
if vector_with_found_similar_hashes.is_empty() {
// Not found any hash with specific distance maybe except self
if vector_with_found_similar_hashes.len() <= 1 {
continue;
}

Loading…
Cancel
Save