Enhance OCR configuration and integrate fuzzy matching for label parsing
This commit is contained in:
@@ -41,10 +41,23 @@ DEFAULT_CONFIG: dict[str, Any] = {
|
||||
},
|
||||
"ocr": {
|
||||
"enabled": True,
|
||||
"engine": "tesseract",
|
||||
"language": "eng",
|
||||
"tesseract_cmd": None,
|
||||
"psm": 6,
|
||||
"margin": 0,
|
||||
"threshold": True,
|
||||
"paddle_threshold": False,
|
||||
"scale": 2.0,
|
||||
"config": "",
|
||||
"use_angle_cls": True,
|
||||
"paddle": {
|
||||
"enable_mkldnn": False,
|
||||
"lang": "en",
|
||||
"use_doc_orientation_classify": False,
|
||||
"use_doc_unwarping": False,
|
||||
"use_textline_orientation": False,
|
||||
},
|
||||
},
|
||||
"capture": {
|
||||
"photos_dir": "captures/photos",
|
||||
@@ -56,7 +69,12 @@ DEFAULT_CONFIG: dict[str, Any] = {
|
||||
"display": {
|
||||
"show_fps": True,
|
||||
},
|
||||
"label_data": {"models": ["Regius", "Duvell"], "colors": ["T-NF-BLK-OUT-BST-G", "T-BLK-G"]},
|
||||
"label_data": {
|
||||
"model_min_score": 0.72,
|
||||
"color_min_score": 0.72,
|
||||
"models": ["Regius", "Duvell"],
|
||||
"colors": ["T-NF-BLK-OUT-BST-G", "T-BLK-G"],
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user