Great question — focus variation is an interesting edge case.
Blur mostly affects high-frequency detail, while perceptual hashes focus on structural similarity. In practice, slightly softer duplicates still cluster together.
Within each cluster, the keeper is chosen based on: • Resolution • Laplacian sharpness score • Format preference • Compression proxy
So the sharper version typically wins automatically.
However, the tool is designed for duplicate detection, not burst culling. Slightly different wildlife frames (e.g. tiny pose change + refocus) won’t cluster — intentionally.
If someone wanted burst-photo ranking, enabling SSIM checks or adding a stronger focus metric would be the logical extension.
View all comments
Show parent comment
0
u/hdw_coder Feb 17 '26
Great question — focus variation is an interesting edge case.
Blur mostly affects high-frequency detail, while perceptual hashes focus on structural similarity. In practice, slightly softer duplicates still cluster together.
Within each cluster, the keeper is chosen based on:
• Resolution
• Laplacian sharpness score
• Format preference
• Compression proxy
So the sharper version typically wins automatically.
However, the tool is designed for duplicate detection, not burst culling.
Slightly different wildlife frames (e.g. tiny pose change + refocus) won’t cluster — intentionally.
If someone wanted burst-photo ranking, enabling SSIM checks or adding a stronger focus metric would be the logical extension.
For a detailed description see: https://code2trade.dev/finding-and-eliminating-photo-duplicates-safely/