feat: update threshold
This commit is contained in:
@@ -134,7 +134,7 @@ class LayoutDetector:
|
||||
)
|
||||
)
|
||||
|
||||
mixed_recognition = any(region.type == "text" and region.score > 0.6 for region in regions)
|
||||
mixed_recognition = any(region.type == "text" and region.score > 0.3 for region in regions)
|
||||
|
||||
return LayoutInfo(regions=regions, MixedRecognition=mixed_recognition)
|
||||
|
||||
|
||||
@@ -701,11 +701,6 @@ class MineruOCRService(OCRServiceBase):
|
||||
if "results" in result and "image" in result["results"]:
|
||||
markdown_content = result["results"]["image"].get("md_content", "")
|
||||
|
||||
# Check if markdown contains formula image references
|
||||
if "
|
||||
|
||||
# Apply postprocessing to fix OCR errors
|
||||
markdown_content = _postprocess_markdown(markdown_content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user