@foyer-inc/insight-sdk / Exports / Detection
An interface describing a detection returned by the classify endpoint
• area: number
A number between 0 and 1 that represents what percentage of the image the given Detection occupies
• attributes: object
[]
Attributes are more specific features gathered from the objects detected in the images. For the detections that have them, the attributes will give more robust information about the image. Attributes will always have a name field and a value field.
• boundingBox: number
[]
An array of shape [x1, y1, x2, y2] where items are (x1, y1) represents the upperleft corner of the Detection and (x2, y2) represent the lowerright corner of the Detection Each value is a number between 0 and 1 and represents a percentage of distance across an image in either the x or y axes.
• class: string
The name of the detection
• confidence: number
A number between 0 and 1 that represents the likelihood that the output of the Insight object detection model is correct
• Optional
segmentation: Segmentation