This commit is contained in:
HuangHai
2026-01-15 11:46:59 +08:00
parent f038929687
commit 8cbcca472b
11 changed files with 178 additions and 41 deletions

View File

@@ -153,9 +153,10 @@ class ReadImageKit:
每个对象包含:
- "name": 场站名称 (仅提取名称文字)
- "address": 场站地址 (通常在名称下方,请完整提取地址文字)
- "distance": 距离 (如 "1.2km", "800m" 等,如果存在请提取)
- "is_valid": true/false (是否为真实的场站卡片)
注意:仅提取名称和地址,不要包含距离或价格。
注意:仅提取名称、地址和距离,不要包含价格。
"""
else:
# 如果 CV 没检测到,退回到纯 VLM 模式
@@ -165,6 +166,7 @@ class ReadImageKit:
输出格式为 JSON 数组,每个对象包含:
- "name": 场站名称
- "address": 场站地址 (请仔细识别并提取场站的详细地址信息)
- "distance": 距离 (如 "1.2km", "800m" 等,如果存在请提取)
- "point": 场站卡片的中心点击坐标 [x, y]
- "bbox": 场站卡片的边界框 [x1, y1, x2, y2]
"""
@@ -187,6 +189,7 @@ class ReadImageKit:
final_stations.append({
"name": res.get("name"),
"address": res.get("address"),
"distance": res.get("distance"),
"point": [(bbox[0] + bbox[2]) // 2, (bbox[1] + bbox[3]) // 2],
"bbox": bbox
})