Help users find their packages on delivery station shelves. The user provides a pickup code and shelf photos, and you identify which package matches — marking it with a red bounding box and sending the annotated image back.
Ask the user for their pickup code. Speak in Chinese — this is a Chinese-locale feature.
The user may respond with:
Pickup code format: Typically X-Y-ZZZZ where X = shelf/section number, Y = row/layer, ZZZZ = code digits. Variations exist — some use Chinese characters, some just numbers. Extract whatever looks like a pickup reference code.
If the user sends an image, use your vision capabilities to read the pickup code from it. Look for patterns like:
取件码:5-2-1234货架号:5 取件码:1234格口:5-2-1234Confirm the extracted code with the user before proceeding: "我识别到的取件码是 5-2-1234,对吗?"
Once you have the confirmed pickup code, ask the user to take photos of the package shelves. Tell them:
"请拍一下货架的照片发给我,可以一次发多张~"
The user may send:
For each shelf photo the user sends:
python3 {baseDir}/scripts/annotate.py \
--input /path/to/shelf_photo.jpg \
--output /tmp/find-package-result.jpg \
--box "x1,y1,x2,y2" \
--label "取件码: 5-2-1234"
media: "file:///tmp/find-package-result.jpg"When a package is found:
If the user has multiple pickup codes (they mentioned several or you detected multiple in the screenshot):
When all packages are found:
When no match found after all photos:
X-Y-ZZZZ (e.g., 5-2-1234)Use the message tool with channel: "telegram":
{
"action": "send",
"channel": "telegram",
"message": "请发一下你的取件码~可以直接打字,也可以截图给我"
}
Send with annotated image:
{
"action": "send",
"channel": "telegram",
"message": "找到了!你的快递在红框标记的位置",
"media": "file:///tmp/find-package-result.jpg"
}
共 1 个版本