Huggingface.js documentation

Interface: ObjectDetectionOutputValue

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: ObjectDetectionOutputValue

Properties

box

box: Object

A dict (with keys [xmin,ymin,xmax,ymax]) representing the bounding box of a detected object.

Type declaration

Name Type
xmax number
xmin number
ymax number
ymin number

Defined in

inference/src/tasks/cv/objectDetection.ts:16


label

label: string

The label for the class (model specific) of a detected object.

Defined in

inference/src/tasks/cv/objectDetection.ts:25


score

score: number

A float that represents how likely it is that the detected object belongs to the given class.

Defined in

inference/src/tasks/cv/objectDetection.ts:30