crop_image
Crop images to specific regions using pixel coordinates from the top-left corner. Define left, top, right, and bottom boundaries to extract desired portions of images.
Instructions
Crop an image to a specific region.
Coordinates are in pixels from the top-left corner.
Args: path: Absolute path to the image file. left: Left edge x coordinate. top: Top edge y coordinate. right: Right edge x coordinate. bottom: Bottom edge y coordinate. output_path: Where to save. Defaults to _cropped..
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| left | Yes | ||
| top | Yes | ||
| right | Yes | ||
| bottom | Yes | ||
| output_path | No |