d267a1d1fa
feat: 商品记忆库 — 从OCR结果学习,逐步替代OCR识别 - 扩展 product_db.py: schema迁移(specification/source/confidence/usage_count/last_seen) + 学习逻辑(learn_from_product)、置信度系统、批量查询、导入导出、云端同步 - 注入处理管线: processor.py 在提取产品后调用 _apply_memory() 用记忆补全OCR + _is_spec_suspicious() 检测OCR规格质量,处理完后自动学习 - order_service.py 创建共享 ProductDatabase 实例 - dialog_utils.py 新增商品记忆库云端同步条目 - 新建 memory_editor.py: Treeview查看/编辑/搜索/删除/重新导入 - main_window.py 系统设置区新增"商品记忆库"按钮 - build_exe.py 添加 memory_editor 到 hidden_imports @
43 lines
980 B
INI
43 lines
980 B
INI
[API]
|
|
api_key =
|
|
secret_key =
|
|
timeout = 30
|
|
max_retries = 3
|
|
retry_delay = 2
|
|
api_url = https://aip.baidubce.com/rest/2.0/ocr/v1/table
|
|
token_url = https://aip.baidubce.com/oauth/2.0/token
|
|
form_ocr_url = https://aip.baidubce.com/rest/2.0/solution/v1/form_ocr/get_request_result
|
|
|
|
[Paths]
|
|
input_folder = data/input
|
|
output_folder = data/output
|
|
temp_folder = data/temp
|
|
template_folder = templates
|
|
template_file = templates\银豹-采购单模板.xls
|
|
processed_record = data/processed_files.json
|
|
data_dir = data
|
|
product_db = data/product_cache.db
|
|
result_folder = data/result
|
|
|
|
[Performance]
|
|
max_workers = 4
|
|
batch_size = 5
|
|
skip_existing = true
|
|
|
|
[File]
|
|
allowed_extensions = .jpg,.jpeg,.png,.bmp
|
|
excel_extension = .xlsx
|
|
max_file_size_mb = 4
|
|
|
|
[Templates]
|
|
purchase_order = 银豹-采购单模板.xls
|
|
item_data = 商品资料.xlsx
|
|
|
|
[App]
|
|
version = 2026.05.05.0239
|
|
|
|
[Gitea]
|
|
base_url = https://gitea.94kan.cn
|
|
owner = houhuan
|
|
repo = yixuan-sync-data
|
|
token = 50b61e43a141d606ae2529cd1755bc666d800e08 |