ClearWhirl: an iPhone photo cleaner that analyses images fully on-device
The developer of ClearWhirl, an iPhone photo-cleaning app, describes how it works without sending anything off the phone. Metadata sorts screenshots, large videos and bursts into folders quickly, while Apple's Vision framework analyses downscaled image copies to detect duplicates, text, barcodes and sharpness. Near-duplicates are found by comparing each photo only with the one taken just before it, which keeps the scan fast but misses similar shots taken far apart. Early versions froze because blocking work starved Swift's thread pool, so the team moved the work to a capped dispatch queue. The post also explains how a background processing request had to be submitted earlier to stop iOS suspending long scans.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in