UNPKG

@huggingface/tasks

Version:
32 lines (31 loc) 903 B
{ "$id": "/inference/schemas/object-detection/input.json", "$schema": "http://json-schema.org/draft-06/schema#", "description": "Inputs for Object Detection inference", "title": "ObjectDetectionInput", "type": "object", "properties": { "inputs": { "type": "string", "description": "The input image data as a base64-encoded string. If no `parameters` are provided, you can also provide the image data as a raw bytes payload.", "comment": "type=binary" }, "parameters": { "description": "Additional inference parameters for Object Detection", "$ref": "#/$defs/ObjectDetectionParameters" } }, "$defs": { "ObjectDetectionParameters": { "title": "ObjectDetectionParameters", "type": "object", "properties": { "threshold": { "type": "number", "description": "The probability necessary to make a prediction." } } } }, "required": ["inputs"] }