Image Adaptive Threshold
Apply adaptive threshold operation that calculates threshold for small regions, suitable for varying lighting conditions
Documentación de la API
Punto final de la solicitud
Parámetros de la solicitud
| Nombre del parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
| imageFile | file (Subida requerida) | Sí | - |
| blockSize | number | Sí | Size of a pixel neighborhood that is used to calculate a threshold for the pixel (must be odd) |
| constant | number | No | Constant subtracted from the mean or weighted mean. Usually positive. |
| method | select | Sí | Adaptive thresholding method to use |
Los parámetros de tipo archivo necesitan ser subidos primero vía POST /upload/image-adaptive-threshold para obtener filePath, luego pasar filePath al campo de archivo correspondiente.
Formato de respuesta
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
Documentación de MCP
Agregue este herramienta a su configuración de servidor MCP:
{
"mcpServers": {
"elysiatools-image-adaptive-threshold": {
"name": "image-adaptive-threshold",
"description": "Apply adaptive threshold operation that calculates threshold for small regions, suitable for varying lighting conditions",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-adaptive-threshold",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
Puede encadenar múltiples herramientas, por ejemplo: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, máximo 20 herramientas.
Soporte para enlaces de archivos URL o codificación Base64 para parámetros de archivo.
Si encuentra algún problema, por favor, póngase en contacto con nosotros en [email protected]