|
|
@@ -61,8 +61,8 @@ def main():
|
|
|
return
|
|
|
|
|
|
# 检查OCR数据
|
|
|
- output_dir = Path("output")
|
|
|
- if not output_dir.exists() or not any(output_dir.rglob("*.json")):
|
|
|
+ ocr_out_dir = Path("ocr_out_dir")
|
|
|
+ if not ocr_out_dir.exists() or not any(ocr_out_dir.rglob("*.json")):
|
|
|
print("⚠️ 未找到OCR数据文件")
|
|
|
print(" 请先运行OCR处理生成数据文件")
|
|
|
print(" python3 ocr_by_vlm.py sample_data/your_image.png")
|