Huggingface.js documentation

Interface: ImageSegmentationOutputValue

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: ImageSegmentationOutputValue

Properties

label

label: string

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

Defined in

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


mask

mask: string

A str (base64 str of a single channel black-and-white img) representing the mask of a segment.

Defined in

inference/src/tasks/cv/imageSegmentation.ts:20


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/imageSegmentation.ts:24

< > Update on GitHub