Skip to content

Latest commit

 

History

History
94 lines (54 loc) · 2.2 KB

Detection.md

File metadata and controls

94 lines (54 loc) · 2.2 KB

@foyer-inc/insight-sdk / Exports / Detection

Interface: Detection

An interface describing a detection returned by the classify endpoint

Table of contents

Properties

Properties

area

area: number

A number between 0 and 1 that represents what percentage of the image the given Detection occupies

Defined in

lib/types.ts:101


attributes

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.

Defined in

lib/types.ts:120


boundingBox

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.

Defined in

lib/types.ts:109


class

class: string

The name of the detection

Defined in

lib/types.ts:96


confidence

confidence: number

A number between 0 and 1 that represents the likelihood that the output of the Insight object detection model is correct

Defined in

lib/types.ts:114


segmentation

Optional segmentation: Segmentation

Defined in

lib/types.ts:121