add_line
Draw a line on an image by specifying start and end coordinates, color, and line width for clear visual annotation.
Instructions
Draw a line on the image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | X coordinate of the start point | |
| x2 | Yes | X coordinate of the end point | |
| y1 | Yes | Y coordinate of the start point | |
| y2 | Yes | Y coordinate of the end point | |
| color | No | Color of the line | red |
| image_id | Yes | ID of the image to annotate | |
| line_width | No | Width of the line |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Status message | |
| image_id | Yes | Image ID that was annotated |