olumise/bbox-mask-generator

Public
4 runs

Run olumise/bbox-mask-generator with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input image to create mask for
bbox_json
string
JSON string containing bbox coordinates from face detection. Format: {"bbox": [x1, y1, x2, y2], "label": "face", "confidence": 0.789}
padding
integer
10

Max: 50

Padding percentage to add around the face area
mask_shape
None
rectangle
Shape of the mask to generate

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "object",
  "title": "Output",
  "additionalProperties": {
    "type": "string",
    "format": "uri"
  }
}