|
|
@@ -973,6 +973,7 @@ class OCRResultComparator:
|
|
|
f.write(f"`{diff['file1_value'][:50]}{'...' if len(diff['file1_value']) > 50 else ''}` | ")
|
|
|
f.write(f"`{diff['file2_value'][:50]}{'...' if len(diff['file2_value']) > 50 else ''}` | ")
|
|
|
f.write(f"{diff['description']} | {severity} |\n")
|
|
|
+
|
|
|
def compare_ocr_results(file1_path: str, file2_path: str, output_file: str = "comparison_report",
|
|
|
output_format: str = "markdown", ignore_images: bool = True,
|
|
|
table_mode: str = 'standard', similarity_algorithm: str = 'ratio'):
|