Basic Usage

difPy is split into two main processes:

  • build which builds the image repository from the directories provided (difpy.build) and

  • search which performs the actual search operation (difPy.search).

First we need to build the dif object:

import difPy
dif = difPy.build("C:/Path/to/Folder/")

And then we can perform one or more different searches on the same dif object:

search_duplicates = difPy.search(dif, similarity="duplicates")
search_similar = difPy.search(dif, similarity= "similar")

We can obtain the search results as follows (see Output):

search_duplicates.result
search_similar.result

difPy supports searching for duplicate and similar images within a single or multiple directories.