在更新一版,更方便了

This commit is contained in:
2025-08-17 15:50:21 +08:00
parent 556f8d8020
commit 3414df5317
36 changed files with 2128 additions and 20246 deletions
Binary file not shown.
+19
View File
@@ -0,0 +1,19 @@
# OCR订单处理系统 - 便携版
## 使用说明
1. 双击 "OCR订单处理系统.exe" 启动程序
2. 将需要处理的图片文件放入 data/input 目录
3. 处理结果将保存在 data/output 目录
4. 日志文件保存在 logs 目录
## 注意事项
- 首次运行时需要配置百度OCR API密钥
- 支持的图片格式:jpg, jpeg, png, bmp
- 单个文件大小不超过4MB
## 目录结构
- OCR订单处理系统.exe - 主程序
- data/input/ - 输入图片目录
- data/output/ - 输出结果目录
- logs/ - 日志目录
+28
View File
@@ -0,0 +1,28 @@
[API]
api_key = O0Fgk3o69RWJ86eAX8BTHRaB
secret_key = VyZD5lzcIMgsup1uuD6Cw0pfzS20IGPZ
timeout = 30
max_retries = 3
retry_delay = 2
api_url = https://aip.baidubce.com/rest/2.0/ocr/v1/table
[Paths]
input_folder = data/input
output_folder = data/output
temp_folder = data/temp
template_folder = templates
processed_record = data/processed_files.json
[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
+205
View File
@@ -0,0 +1,205 @@
{
"6920584471055": {
"map_to": "6920584471017",
"description": "条码映射:6920584471055 -> 6920584471017"
},
"6925861571159": {
"map_to": "69021824",
"description": "条码映射:6925861571159 -> 69021824"
},
"6923644268923": {
"map_to": "6923644268480",
"description": "条码映射:6923644268923 -> 6923644268480"
},
"6925861571466": {
"map_to": "6925861571459",
"description": "条码映射:6925861571466 -> 6925861571459"
},
"6907992508344": {
"map_to": "6907992508191",
"description": "条码映射:6907992508344 -> 6907992508191"
},
"6903979000979": {
"map_to": "6903979000962",
"description": "条码映射:6903979000979 -> 6903979000962"
},
"6923644283582": {
"map_to": "6923644283575",
"description": "条码映射:6923644283582 -> 6923644283575"
},
"6923644268930": {
"map_to": "6923644268497",
"description": "条码映射:6923644268930 -> 6923644268497"
},
"6923644268916": {
"map_to": "6923644268503",
"description": "条码映射:6923644268916 -> 6923644268503"
},
"6923644268909": {
"map_to": "6923644268510",
"description": "条码映射:6923644268909 -> 6923644268510"
},
"6923644299804": {
"map_to": "6923644299774",
"description": "条码映射:6923644299804 -> 6923644299774"
},
"6923644266318": {
"map_to": "6923644266066",
"description": "条码映射:6923644266318 -> 6923644266066"
},
"6923644210151": {
"map_to": "6923644223458",
"description": "条码映射:6923644210151 -> 6923644223458"
},
"6907992501819": {
"map_to": "6907992500133",
"description": "条码映射:6907992501819 -> 6907992500133"
},
"6907992502052": {
"map_to": "6907992100272",
"description": "条码映射:6907992502052 -> 6907992100272"
},
"6907992507385": {
"map_to": "6907992507095",
"description": "条码映射:6907992507385 -> 6907992507095"
},
"6973726149671": {
"map_to": "6973726149657",
"description": "条码映射:6973726149671 -> 6973726149657"
},
"6977426410574": {
"map_to": "6977426410567",
"description": "条码映射:6977426410574 -> 6977426410567"
},
"6973726149688": {
"map_to": "6973726149664",
"description": "条码映射:6973726149688 -> 6973726149664"
},
"6935205322012": {
"map_to": "6935205320018",
"description": "条码映射:6935205322012 -> 6935205320018"
},
"6943497411024": {
"map_to": "6943497411017",
"description": "条码映射:6943497411024 -> 6943497411017"
},
"6921734968821": {
"map_to": "6921734968814",
"description": "条码映射:6921734968821 -> 6921734968814"
},
"6921734968258": {
"map_to": "6921734968241",
"description": "条码映射:6921734968258 -> 6921734968241"
},
"6921734968180": {
"map_to": "6921734968173",
"description": "条码映射:6921734968180 -> 6921734968173"
},
"6921734908735": {
"map_to": "6935205372772",
"description": "条码映射:6921734908735 -> 6935205372772"
},
"6923644248222": {
"map_to": "6923644248208",
"description": "条码映射:6923644248222 -> 6923644248208"
},
"6902083881122": {
"map_to": "6902083881085",
"description": "条码映射:6902083881122 -> 6902083881085"
},
"6907992501857": {
"map_to": "6907992500010",
"description": "条码映射:6907992501857 -> 6907992500010"
},
"6902083891015": {
"map_to": "6902083890636",
"description": "条码映射:6902083891015 -> 6902083890636"
},
"6923450605240": {
"map_to": "6923450605226",
"description": "条码映射:6923450605240 -> 6923450605226"
},
"6923450605196": {
"map_to": "6923450614624",
"description": "条码映射:6923450605196 -> 6923450614624"
},
"6923450665213": {
"map_to": "6923450665206",
"description": "条码映射:6923450665213 -> 6923450665206"
},
"6923450666821": {
"map_to": "6923450666838",
"description": "条码映射:6923450666821 -> 6923450666838"
},
"6923450661505": {
"map_to": "6923450661499",
"description": "条码映射:6923450661505 -> 6923450661499"
},
"6923450676103": {
"map_to": "6923450676097",
"description": "条码映射:6923450676103 -> 6923450676097"
},
"6923450614631": {
"map_to": "6923450614624",
"description": "条码映射:6923450614631 -> 6923450614624"
},
"6901424334174": {
"map_to": "6973730760015",
"description": "条码映射:6901424334174 -> 6973730760015"
},
"6958620703716": {
"map_to": "6958620703907",
"description": "条码映射:6958620703716 -> 6958620703907"
},
"6937003706322": {
"map_to": "6937003703833",
"description": "条码映射:6937003706322 -> 6937003703833"
},
"6950783203494": {
"map_to": "6950873203494",
"description": "条码映射:6950783203494 -> 6950873203494"
},
"6907992501871": {
"map_to": "6907992500010",
"description": "条码映射:6907992501871 -> 6907992500010"
},
"6907992501864": {
"map_to": "6907992100012",
"description": "条码映射:6907992501864 -> 6907992100012"
},
"6923644264192": {
"map_to": "6923644264116",
"description": "条码映射:6923644264192 -> 6923644264116"
},
"6923450667316": {
"map_to": "69042386",
"description": "条码映射:6923450667316 -> 69042386"
},
"6923450653012": {
"map_to": "69021343",
"description": "条码映射:6923450653012 -> 69021343"
},
"6925019900087": {
"multiplier": 10,
"target_unit": "瓶",
"description": "特殊处理:数量*10,单位转换为瓶"
},
"6921168593804": {
"multiplier": 30,
"target_unit": "瓶",
"description": "NFC产品特殊处理:每箱30瓶"
},
"6901826888138": {
"multiplier": 30,
"target_unit": "瓶",
"fixed_price": 3.7333333333333334,
"specification": "1*30",
"description": "特殊处理: 规格1*30,数量*30,单价=112/30"
},
"6958620703907": {
"multiplier": 14,
"target_unit": "个",
"specification": "1*14",
"description": "友臣肉松,1盒14个"
}
}
+28
View File
@@ -0,0 +1,28 @@
[API]
api_key = O0Fgk3o69RWJ86eAX8BTHRaB
secret_key = VyZD5lzcIMgsup1uuD6Cw0pfzS20IGPZ
timeout = 30
max_retries = 3
retry_delay = 2
api_url = https://aip.baidubce.com/rest/2.0/ocr/v1/table
[Paths]
input_folder = data/input
output_folder = data/output
temp_folder = data/temp
template_folder = templates
processed_record = data/processed_files.json
[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
Binary file not shown.