docs: 添加涉密文件自检工具实施计划
This commit is contained in:
9
UmiOCR-data/py_src/ocr/output/tools.py
Normal file
9
UmiOCR-data/py_src/ocr/output/tools.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# 从data中提取、拼接文本
|
||||
def getDataText(data):
|
||||
textOut = ""
|
||||
l = len(data) - 1
|
||||
for i, tb in enumerate(data):
|
||||
textOut += tb["text"]
|
||||
if i < l:
|
||||
textOut += tb["end"]
|
||||
return textOut
|
||||
Reference in New Issue
Block a user