Skip to content

Associating filenames and clusters #275

@Giuliagiorgi

Description

@Giuliagiorgi

Hi everyone and thank you for this amazing tool!

I'm trying to clusterize around 9k images through PixPlot to exclude non-pertinent clusters of images.
To do that, I wonder if there is a possibility to have a file with the filenames of the images associated with each cluster without using the lazo option (which would be less precise).

In the 'hotspot' JSON file, the images associated with each cluster have an integer number and then there is the filename of the centroid. Something along the line:

{
    "images": [
        20,
        23,
        118,
        177,
        221,
        222,
        223,
        224,
        ...
    ],
    "img": "B_E33VKIOek.jpg",
    "label": "Cluster 2"
}

This makes it difficult to filter out the images in the original folder, as I cannot link them to the one in the cluster. The output I'm looking for instead is something like:

{
    "images": [
        B_E33VKIOek.jpg,
        B_aaaaaaa.jpg,
        B_bbbbbb.jpg,
        B_fofofo.jpg,
        ...
    ],
    "img": "B_E33VKIOek.jpg",
    "label": "Cluster 2"
}

Am I missing something and this output already exists?
Or how can I link the integer numbers in the 'hotspot' JSON file to the filenames of the images?

Thank you very much,
Giulia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions