idealo / imagededup

😎 Finding duplicate images made easy!
https://idealo.github.io/imagededup/
Apache License 2.0
5.18k stars 459 forks source link

Make plot_duplicates output clearer #125

Open tanujjain opened 3 years ago

tanujjain commented 3 years ago

WHAT

Make plot_duplicates output clearer.

WHY

The graph plotted by plot_duplicates output can be cluttered, especially when there are several duplicates found for an image. The titles of each image run into each other, which makes it hard to read the plot. Additionally, the titles can be hard to read, possibly due to a static dpi. An example can be seen below:

imgdedup_plot_issue

HOW

In the current implementation, a fixed number of columns in the layout is used (= 4), the top row is reserved for plotting only the original image and the number of rows are dynamic. There are several ways to remodel this: