by xwang152-jack · v1.5.2
A plugin for drawing bounding boxes and labels on images with annotation data visualization
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: xwang152-jack
Version: 1.5.2
Type: Tool Plugin
Contact: xwang152@163.com
A Dify tool plugin for image annotation visualization. It receives image files and annotation information, then returns images with drawn bounding boxes and labels. Perfect for visualizing object detection and image segmentation results.
| Parameter | Type | Description |
|---|---|---|
image_file | file | Image file to annotate |
annotations | string | Annotation data (JSON string) |
| Parameter | Type | Default | Description |
|---|---|---|---|
box_color | string | #ff0000 | Bounding box color (hex) |
text_color | string | #ffffff | Text color (hex) |
line_width | number | 2 | Line width (1-20) |
font_size | number | 16 | Font size (8-72) |
coordinate_type | string | relative | Coordinate type: relative or absolute |
{
"annotations": [
{
"bbox": [x1, y1, x2, y2],
"label": "person",
"confidence": 0.95
}
]
}
Relative Coordinates (0-1000):
bbox: [100, 200, 300, 400] → converted to pixel coordinatesAbsolute Coordinates (pixels):
bbox: [50, 100, 150, 200] → used directly as pixel coordinatescoordinate_type: "absolute" to use this modedraw_boxes tool node to your workflowimage_file parameterSuccess:
{
"success": true,
"annotation_count": 2,
"image_size": {"width": 800, "height": 600},
"message": "成功绘制2个标注"
}
Error:
{
"success": false,
"error": "Error description",
"error_code": 400
}
| Code | Description |
|---|---|
| 400 | Parameter error |
| 404 | Image loading failed |
| 413 | Image too large (>4096x4096) |
| 422 | Invalid annotation format |
| 500 | Internal server error |
For proper Chinese/Japanese/Korean label display, ensure your Dify environment has CJK fonts installed:
# Debian/Ubuntu
apt-get install -y fonts-noto-cjk
# Alpine Linux
apk add font-noto-cjk
pip install -r requirements.txt
See PRIVACY.md for privacy policy.
image_data (string) to image_file (file type) for better Dify integrationContact: xwang152@163.com or submit an issue.