Type alias InferenceResult

InferenceResult: {
    backbonepredictions: PredictionsMap | ServerSegmentationPredictions | null;
    backbonetype: "SegmentationPrediction" | "ObjectDetectionPrediction";
    predictions: ServerSegmentationPredictions;
    type: "SegmentationPrediction" | "ClassificationPrediction";
}

Inference API response

Type declaration

  • backbonepredictions: PredictionsMap | ServerSegmentationPredictions | null

    backbone predictions. e.g. bounding boxes

  • backbonetype: "SegmentationPrediction" | "ObjectDetectionPrediction"

    Prediction type. Only for object detection, segmentation projects.

  • predictions: ServerSegmentationPredictions

    prediction on the image

  • type: "SegmentationPrediction" | "ClassificationPrediction"

    Inference type for the image.

    For object detection, segmentation and classification projects, this field will be 'ClassificationPrediction' for the image, stating if the image is OK (no annotations detected) or NG (has annotations detected).

    In this case, please use backbonetype to differentiate the two types of projects.

    For visual prompting projects, this field will be 'SegmentationPrediction'.

Generated using TypeDoc