This commit is contained in:
HuangHai
2026-01-16 19:15:40 +08:00
parent a565d9c45d
commit c7cf0db77e
18 changed files with 232 additions and 12 deletions

View File

@@ -285,7 +285,7 @@ class ReadImageKit:
- **场站名称 (name)**: 通常位于卡片顶部,字体最大且加粗。
- **距离信息 (distance)**: 例如 '5.3km' 或 '90m',通常在名称附近或卡片右上角。
- **价格 (price)**: 例如 '0.84',通常以 ¥ 开头。
- **枪数信息**: 如 '快 闲10/12'。
- **枪数信息**: 如 '快 闲10/12',请解析为 total_piles 与 free_piles(若不可判定则为 null)。
对于每张卡片,请输出:
- name: 场站名称
@@ -293,6 +293,8 @@ class ReadImageKit:
- address: 场站地址(如果卡片上有显示则提取,无则为 null)
- point: 卡片中心点击坐标 [x, y],使用归一化坐标 [0-1000]
- bbox: 卡片外接矩形边界 [x1, y1, x2, y2],使用归一化坐标 [0-1000]
- total_piles: 卡片可见的总桩数(整数或 null)
- free_piles: 卡片可见的空闲桩数(整数或 null)
输出格式为 JSON 数组。
注意:严禁识别广告位、筛选标签或功能入口。真正的场站卡片通常是一个横跨屏幕的大区域。
@@ -373,7 +375,9 @@ class ReadImageKit:
"distance": res.get("distance"),
"address": res.get("address"),
"point": actual_p,
"bbox": actual_bbox
"bbox": actual_bbox,
"total_piles": res.get("total_piles"),
"free_piles": res.get("free_piles")
})
if final_stations: