Skip to content

Instantly share code, notes, and snippets.

@mustafa0x
Created November 16, 2014 06:56
Show Gist options
  • Save mustafa0x/380d73e7f281869bdbcf to your computer and use it in GitHub Desktop.
Save mustafa0x/380d73e7f281869bdbcf to your computer and use it in GitHub Desktop.
Image Magick Sub Image Search
for f in haystack/*.jpg; do
echo $'\n'"Searching in '$f'";
compare -dissimilarity-threshold 1 -metric rmse -subimage-search "$f" needle.png results-"$(basename ${f%.jpg})"-%d.png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment