cluster command reads a features.csv produced by detect, groups the detected objects into clusters using K-Means, and automatically selects the optimal number of clusters with the elbow method.
Syntax
Options
Path to the
features.csv file produced by the detect command. Short alias: -i.Directory where clustering results are written. Short alias:
-o.Defaults to a clusters/ subdirectory next to the input CSV file.Directory containing the processed (annotated) images from the detection step. When provided, the command overlays cluster assignments on the detection images to produce cluster visualizations.
Maximum number of clusters to evaluate when running the elbow method. The algorithm tests K values from 1 to this number and selects the K at the elbow of the WCSS curve.
Output files
For each image represented in the input CSV, the command creates a subdirectory under--output-dir:
The
<image-name>_clustered.csv file is the required input for the analyze command.