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
|
{
"type": "object",
"title": "Input",
"required": [
"image",
"bbox_json"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Input image to create mask for"
},
"padding": {
"type": "integer",
"title": "Padding",
"default": 10,
"maximum": 50,
"minimum": 0,
"x-order": 2,
"description": "Padding percentage to add around the face area"
},
"bbox_json": {
"type": "string",
"title": "Bbox Json",
"x-order": 1,
"description": "JSON string containing bbox coordinates from face detection. Format: {\"bbox\": [x1, y1, x2, y2], \"label\": \"face\", \"confidence\": 0.789}"
},
"mask_shape": {
"enum": [
"rectangle",
"circle"
],
"type": "string",
"title": "mask_shape",
"description": "Shape of the mask to generate",
"default": "rectangle",
"x-order": 3
}
}
}
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"
}
}