Skip to content

Commit 3c8e4fa

Browse files
committed
* 更新集装箱箱型判断的规则
1 parent 8380b8a commit 3c8e4fa

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
### 更新日志
22

3-
#### DatasetToolsV1.0.8 - 2023-03-13
4-
* 更新获取版本号方法
3+
#### DatasetToolsV1.0.9 - 2023-03-13
4+
* 更新集装箱箱型判断的规则
55
---
66

77
<details onclose>
88
<summary>查看更多更新日志</summary>
99

10+
#### DatasetToolsV1.0.8 - 2023-03-13
11+
* 更新获取版本号方法
12+
---
13+
1014
#### dataset_toolsV1.0.7 - 2023-01-29
1115
* 支持创建文本检测数据集
1216

dataset_tools/jade_create_paddle_ocr_datasets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ def check_well_conta(self, conta):
9999

100100
def check_well_model(self, conta_model):
101101
self.model_list = ["G", "V", "B", "S", "R", "H", "U", "P", "T", "A",
102-
"K"] ##箱型校验规则,一共四位数,第三位为英文字母满足一定规则,第四位为0-9的数字
102+
"K"] ##箱型校验规则,一共四位数,第三位为英文字母满足一定规则,第1位为0-9的数字
103103
try:
104-
if conta_model[2] in self.model_list and conta_model[3].isdigit():
104+
if conta_model[2] in self.model_list and conta_model[0].isdigit():
105105
return True
106106
else:
107107
return False

0 commit comments

Comments
 (0)