ClassifyDescriptor

When a new feature vector is extracted from an image, a query to ApertureData Platform can be issued to classify that feature vector based on the indexed features in ApertureData Platform. ApertureData Platform can respond to the query with the label associated with that descriptor.

The bare minimum requirement for this call is the descriptor set we should look to match, the number of closest labels to look for, and descriptor blob of matching dimensions.

Parameters

  • set: name of the set.
  • k_closest: How many near neighbors to look at before returning a label

Examples

# Classify a descriptor
{
    "ClassifyDescriptor": {
        "set": "party_faces",       # Specify the name of the DescriptorSet
        "k_closest": 1              # Classify using one nearest neighbor
    }
}

+ blob

# This returns the result as follows:
"ClassifyDescriptors": {
    "status": "success",
    "label": "Ricky Fort"
}