20260608173128

This commit is contained in:
oneao committed 2026-06-08 17:31:29 +08:00
1 parent 930f03954a
commit 65685d1a6a
29 files changed
+283 -52

No files matched your search

+235
View File
@@ -0,0 +1,235 @@
pipeline_name: PP-StructureV3
batch_size: 8
use_doc_preprocessor: False
use_seal_recognition: False
use_table_recognition: True
use_formula_recognition: True
use_chart_recognition: False
use_region_detection: True
format_block_content: False
markdown_ignore_labels:
- number
- footnote
- header
- header_image
- footer
- footer_image
- aside_text
SubModules:
LayoutDetection:
module_name: layout_detection
model_name: PP-DocLayout_plus-L
model_dir: null
batch_size: 8
threshold:
0: 0.3 # paragraph_title
1: 0.5 # image
2: 0.4 # text
3: 0.5 # number
4: 0.5 # abstract
5: 0.5 # content
6: 0.5 # figure_table_chart_title
7: 0.3 # formula
8: 0.5 # table
9: 0.5 # reference
10: 0.5 # doc_title
11: 0.5 # footnote
12: 0.5 # header
13: 0.5 # algorithm
14: 0.5 # footer
15: 0.45 # seal
16: 0.5 # chart
17: 0.5 # formula_number
18: 0.5 # aside_text
19: 0.5 # reference_content
layout_nms: True
layout_unclip_ratio: [1.0, 1.0]
layout_merge_bboxes_mode:
0: "large" # paragraph_title
1: "large" # image
2: "union" # text
3: "union" # number
4: "union" # abstract
5: "union" # content
6: "union" # figure_table_chart_title
7: "large" # formula
8: "union" # table
9: "union" # reference
10: "union" # doc_title
11: "union" # footnote
12: "union" # header
13: "union" # algorithm
14: "union" # footer
15: "union" # seal
16: "large" # chart
17: "union" # formula_number
18: "union" # aside_text
19: "union" # reference_content
ChartRecognition:
module_name: chart_recognition
model_name: PP-Chart2Table
model_dir: null
batch_size: 1
RegionDetection:
module_name: layout_detection
model_name: PP-DocBlockLayout
model_dir: null
layout_nms: True
layout_merge_bboxes_mode: "small"
SubPipelines:
DocPreprocessor:
pipeline_name: doc_preprocessor
batch_size: 8
use_doc_orientation_classify: True
use_doc_unwarping: True
SubModules:
DocOrientationClassify:
module_name: doc_text_orientation
model_name: PP-LCNet_x1_0_doc_ori
model_dir: null
batch_size: 8
DocUnwarping:
module_name: image_unwarping
model_name: UVDoc
model_dir: null
GeneralOCR:
pipeline_name: OCR
batch_size: 8
text_type: general
use_doc_preprocessor: False
use_textline_orientation: True
SubModules:
TextDetection:
module_name: text_detection
model_name: PP-OCRv5_server_det
model_dir: null
limit_side_len: 736
limit_type: min
max_side_limit: 4000
thresh: 0.3
box_thresh: 0.6
unclip_ratio: 1.5
TextLineOrientation:
module_name: textline_orientation
model_name: PP-LCNet_x1_0_textline_ori
model_dir: null
batch_size: 8
TextRecognition:
module_name: text_recognition
model_name: PP-OCRv5_server_rec
model_dir: null
batch_size: 8
score_thresh: 0.0
TableRecognition:
pipeline_name: table_recognition_v2
use_layout_detection: False
use_doc_preprocessor: False
use_ocr_model: False
SubModules:
TableClassification:
module_name: table_classification
model_name: PP-LCNet_x1_0_table_cls
model_dir: null
WiredTableStructureRecognition:
module_name: table_structure_recognition
model_name: SLANeXt_wired
model_dir: null
WirelessTableStructureRecognition:
module_name: table_structure_recognition
model_name: SLANet_plus
model_dir: null
WiredTableCellsDetection:
module_name: table_cells_detection
model_name: RT-DETR-L_wired_table_cell_det
model_dir: null
WirelessTableCellsDetection:
module_name: table_cells_detection
model_name: RT-DETR-L_wireless_table_cell_det
model_dir: null
TableOrientationClassify:
module_name: doc_text_orientation
model_name: PP-LCNet_x1_0_doc_ori
model_dir: null
SubPipelines:
GeneralOCR:
pipeline_name: OCR
text_type: general
use_doc_preprocessor: False
use_textline_orientation: True
SubModules:
TextDetection:
module_name: text_detection
model_name: PP-OCRv5_server_det
model_dir: null
limit_side_len: 736
limit_type: min
max_side_limit: 4000
thresh: 0.3
box_thresh: 0.4
unclip_ratio: 1.5
TextLineOrientation:
module_name: textline_orientation
model_name: PP-LCNet_x1_0_textline_ori
model_dir: null
batch_size: 8
TextRecognition:
module_name: text_recognition
model_name: PP-OCRv5_server_rec
model_dir: null
batch_size: 8
score_thresh: 0.0
SealRecognition:
pipeline_name: seal_recognition
batch_size: 8
use_layout_detection: False
use_doc_preprocessor: False
SubPipelines:
SealOCR:
pipeline_name: OCR
batch_size: 8
text_type: seal
use_doc_preprocessor: False
use_textline_orientation: False
SubModules:
TextDetection:
module_name: seal_text_detection
model_name: PP-OCRv4_server_seal_det
model_dir: null
limit_side_len: 736
limit_type: min
max_side_limit: 4000
thresh: 0.2
box_thresh: 0.6
unclip_ratio: 0.5
TextRecognition:
module_name: text_recognition
model_name: PP-OCRv5_server_rec
model_dir: null
batch_size: 8
score_thresh: 0
FormulaRecognition:
pipeline_name: formula_recognition
batch_size: 8
use_layout_detection: False
use_doc_preprocessor: False
SubModules:
FormulaRecognition:
module_name: formula_recognition
model_name: PP-FormulaNet_plus-L
model_dir: null
batch_size: 8
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
@@ -15,13 +15,7 @@ public class GlobalExceptionHandler {
public Result<ExceptionDetailInfo> handleException(Exception ex, HttpServletRequest request) {
ExceptionDetailInfo info = ExceptionUtils.extractExceptionInfo(ex, request, "cn.g3soft");
log.error("异常发生在 {}#{}({}:{}),ID: {},信息: {}",
info.getClassName(),
info.getMethodName(),
info.getFileName(),
info.getLineNumber(),
info.getId(),
info.getSummary());
log.error("系统异常: {}", info);
ex.printStackTrace();
@@ -16,7 +16,7 @@ spring:
time-zone: "Asia/Shanghai"
date-format: yyyy-MM-dd HH:mm:ss
profiles:
active: dev
active: build
file:
base-dir: D:/data/file
@@ -1,10 +1,10 @@
url=jdbc:sqlserver://118.89.70.199:1433;databaseName=G3BoxOCR
username=sa
password=zhang520..
driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
#url=jdbc:sqlserver://127.0.0.1:1433;databaseName=G3ContainerOCR
#url=jdbc:sqlserver://118.89.70.199:1433;databaseName=G3BoxOCR
#username=sa
#password=123456@aaa
#password=zhang520..
#driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
url=jdbc:sqlserver://127.0.0.1:1433;databaseName=G3ContainerOCR
username=sa
password=123456@aaa
driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
@@ -28,18 +28,30 @@ const subFileList2 = ref([]) // 发货单、签收单、过磅单
const tipContainerNo = ref('')
const initialized = ref(false)
onLoad(async () => {
toast.loading('正在初始化中...', {
overlay: true,
})
await getUniqueIdApi().then((res) => {
try {
const res = await getUniqueIdApi()
if (res.success) {
form.value.b_id = res.data
initialized.value = true
}
})
else {
toast.fail('初始化失败,请重试')
}
}
catch (err) {
console.error('初始化失败:', err)
toast.fail('初始化失败,请重试')
}
finally {
toast.hide()
}
})
function handleBeforeChoose({ fileList, resolve }) {
@@ -156,6 +168,11 @@ function handleBeforeRemove({ file, fileList, resolve }) {
}
async function handleConfirm() {
if (!initialized.value) {
toast.fail('系统初始化未完成,请重试')
return
}
if (!boxImage.value) {
toast.fail('集装箱号图片不能为空')
return
@@ -348,12 +365,31 @@ function validateContainerNo(containerNo) {
}
async function continueAdd() {
initialized.value = false
toast.loading('正在初始化中...', {
overlay: true,
})
try {
const idRes = await getUniqueIdApi()
if (idRes.success) {
resetForm()
form.value.b_id = idRes.data
tipContainerNo.value = ''
initialized.value = true
}
else {
toast.fail('初始化失败,请重试')
}
}
catch (err) {
console.error('初始化失败:', err)
toast.fail('初始化失败,请重试')
}
finally {
toast.hide()
}
}
@@ -509,7 +545,6 @@ const templateCollapse = ref<string[]>(['template1'])
multiple
:accept="fileMode"
:max-size="50 * 1024 * 1024"
:before-choose="handleBeforeChoose"
/>
</view>
</wd-cell-group>
-33
View File
@@ -1,33 +0,0 @@
配置一:
CPU:270KPlus
散热:华硕升旗360
主板:华硕z890pwifi
内存:芝奇幻锋戟 16*2 6800 adie
硬盘:TIPlus 7100 1TB
显卡:华硕prime5070ti
电源:华硕TUF850W
机箱风扇:普通的海景房+风扇
合计:15299元
配置二:
CPU:270KPlus
散热:钛担SJ-A080360黑色一体式CPU水冷散热器
主板:华硕z890pwifi
内存:宏碁掠夺者冰刃16*2 DDR5 8000频率C36 RGB灯条
硬盘:宏碁掠夺者GM71TB PCIE4.0 TLC颗粒
显卡:华硕prime5070ti
电源:先马GT850850W金牌模组ATX3黑色
机箱风扇:普通的海景房+风扇
合计:8076元 + 显卡(抖音买可能7000元)= 15076元
配置三:
CPU:270KPlus
散热:瓦尔基里B360-GT三排ARGB黑色一体式水冷3.95吋IPS液晶屏
主板:华硕z890pwifi
内存:金百达刃C3232GDDR56800灯条16G*2根海力士A代
硬盘:雷克沙ARES战神M.21TB读速7400MB/S TLC颗粒
显卡:华硕prime5070ti
电源:华硕TUF850W
机箱风扇:乔思伯X400深空灰海景房+钛游FM360三联排风扇*2套FM240双联排风扇*1套
合计:8049元 + 显卡(抖音买可能7000元)= 15049元
BIN
View File
Binary file not shown.