Similarity-based duplicate photo finder CLI
A command-line duplicate file finder built years ago for the same purpose. It samples bytes at specific positions, hashes those samples, and compares the hashes to produce a similarity score rather than a strict match. This works well for photos, and it normalizes image orientation by rotating based on the brightest corner so photos in different orientations are compared using the same features.
What it addresses
Strict matching misses near-duplicate photos: two shots taken in the same second can differ slightly in pixels but still depict the same scene.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Similarity-based duplicate photo finder CLI
A command-line duplicate file finder built years ago for the same purpose. It samples bytes at specific positions, hashes those samples, and compares the hashes to produce a similarity score rather than a strict match. This works well for photos, and it normalizes image orientation by rotating based on the brightest corner so photos in different orientations are compared using the same features.
Problem: Strict matching misses near-duplicate photos: two shots taken in the same second can differ slightly in pixels but still depict the same scene.
Posted by @guessmyname · Original source ↗
Source text · @guessmyname · · Source ↗
I built a CLI years ago for the same purpose. From what I can tell, your program treats files as duplicates if they share the same normalized filename and the exact same size; it doesn't compare contents or hashes. Mine samples bytes at specific positions, hashes those samples, and compares the hashes to produce a similarity score rather than a strict match. This works great for photos, two shots taken in the same second can differ slightly in pixels but still depict the same scene, so they're considered duplicates. It also normalizes image orientation by rotating based on the brightest corner, so photos in different orientations are compared using the same features.