|
|
@@ -224,7 +224,7 @@ def main():
|
|
|
st.header("📁 文件选择")
|
|
|
|
|
|
# 查找可用的OCR文件
|
|
|
- available_files = find_available_ocr_files(config['paths']['output_dir'])
|
|
|
+ available_files = find_available_ocr_files(config['paths']['ocr_out_dir'])
|
|
|
|
|
|
if available_files:
|
|
|
selected_file = st.selectbox("选择OCR结果文件", available_files, index=0)
|
|
|
@@ -260,7 +260,7 @@ def main():
|
|
|
# 显示统计信息
|
|
|
stats = validator.get_statistics()
|
|
|
|
|
|
- col1, col2, col3, col4 = st.columns(4)
|
|
|
+ col1, col2, col3, col4, col5 = st.columns(5) # 增加一列
|
|
|
with col1:
|
|
|
st.metric("📊 总文本块", stats['total_texts'])
|
|
|
with col2:
|
|
|
@@ -269,6 +269,16 @@ def main():
|
|
|
st.metric("❌ 标记错误", stats['marked_errors'])
|
|
|
with col4:
|
|
|
st.metric("✅ 准确率", f"{stats['accuracy_rate']:.1f}%")
|
|
|
+ with col5:
|
|
|
+ # 显示OCR工具信息
|
|
|
+ if stats['tool_info']:
|
|
|
+ tool_names = list(stats['tool_info'].keys())
|
|
|
+ main_tool = tool_names[0] if tool_names else "未知"
|
|
|
+ st.metric("🔧 OCR工具", main_tool)
|
|
|
+
|
|
|
+ # 详细工具信息
|
|
|
+ if stats['tool_info']:
|
|
|
+ st.expander("🔧 OCR工具详情", expanded=False).write(stats['tool_info'])
|
|
|
|
|
|
st.markdown("---")
|
|
|
|