crop-image
Recorta una imagen por coordenadas en píxeles, coordenadas en porcentaje, o un margen uniforme (en píxeles o como fracción). Elige un modo por llamada.
Entrada
URL of the image to crop. Use exactly one crop mode per call.
Left offset in pixels. Combine with y, width and height for pixel mode.
Top offset in pixels. Combine with x, width and height for pixel mode.
Crop width in pixels. Combine with x, y and height for pixel mode.
Crop height in pixels. Combine with x, y and width for pixel mode.
Left offset as a fraction (0.0–1.0). Combine all four _pct fields for percentage mode.
Top offset as a fraction (0.0–1.0). Combine all four _pct fields for percentage mode.
Crop width as a fraction (0.0–1.0). Combine all four _pct fields for percentage mode.
Crop height as a fraction (0.0–1.0). Combine all four _pct fields for percentage mode.
Remove this many pixels from every side (uniform margin mode).
Remove this fraction (0.0–0.5) from every side (uniform percentage margin mode).
Salida
Ejecuta el modelo para ver el resultado aquí.
Precios
Características
Ejemplos de API
curl -X POST \
/api/v1/model/wowmachine/crop-image \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {}
}'