Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8e60898e
authored
2024-07-11 09:52:07 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:init:4731
1 parent
3a4fd0b0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
src/apps/doc/management/commands/folder_dda_process.py
src/apps/doc/management/commands/folder_f3_process.py
src/apps/doc/management/commands/folder_ltgt_process.py
src/apps/doc/management/commands/folder_ocr_process.py
src/apps/doc/management/commands/folder_wsc_process.py
src/apps/doc/management/commands/folder_dda_process.py
View file @
8e60898
...
...
@@ -162,7 +162,7 @@ class Command(BaseCommand, LoggerMixin):
@staticmethod
def
get_path
(
name
,
img_output_dir
,
wb_output_dir
,
pdf_output_dir
):
time_stamp
=
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
:
%
M:
%
S'
)
time_stamp
=
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
_
%
M_
%
S'
)
new_name
=
'{0}_{1}'
.
format
(
time_stamp
,
name
)
img_save_path
=
os
.
path
.
join
(
img_output_dir
,
new_name
)
pdf_save_path
=
os
.
path
.
join
(
pdf_output_dir
,
new_name
)
...
...
src/apps/doc/management/commands/folder_f3_process.py
View file @
8e60898
...
...
@@ -320,7 +320,7 @@ class Command(BaseCommand, LoggerMixin):
true_file_set
.
add
(
os_error_filename_set
.
pop
())
for
name
in
true_file_set
:
time
.
sleep
(
10
)
unique_folder_name
=
'{0}_{1}'
.
format
(
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
:
%
M:
%
S'
),
name
)
unique_folder_name
=
'{0}_{1}'
.
format
(
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
_
%
M_
%
S'
),
name
)
path
=
os
.
path
.
join
(
input_dir
,
name
)
try
:
...
...
src/apps/doc/management/commands/folder_ltgt_process.py
View file @
8e60898
...
...
@@ -272,7 +272,7 @@ class Command(BaseCommand, LoggerMixin):
@staticmethod
def
get_path
(
name
,
img_output_dir
,
wb_output_dir
,
pdf_output_dir
,
seperate_dir_map
):
time_stamp
=
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
:
%
M:
%
S'
)
time_stamp
=
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
_
%
M_
%
S'
)
new_name
=
'{0}_{1}'
.
format
(
time_stamp
,
name
)
img_save_path
=
os
.
path
.
join
(
img_output_dir
,
new_name
)
pdf_save_path
=
os
.
path
.
join
(
pdf_output_dir
,
new_name
)
...
...
src/apps/doc/management/commands/folder_ocr_process.py
View file @
8e60898
...
...
@@ -186,7 +186,7 @@ class Command(BaseCommand, LoggerMixin):
@staticmethod
def
get_path
(
name
,
img_output_dir
,
wb_output_dir
,
pdf_output_dir
):
time_stamp
=
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
:
%
M:
%
S'
)
time_stamp
=
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
_
%
M_
%
S'
)
new_name
=
'{0}_{1}'
.
format
(
time_stamp
,
name
)
img_save_path
=
os
.
path
.
join
(
img_output_dir
,
new_name
)
pdf_save_path
=
os
.
path
.
join
(
pdf_output_dir
,
new_name
)
...
...
src/apps/doc/management/commands/folder_wsc_process.py
View file @
8e60898
...
...
@@ -409,7 +409,7 @@ class Command(BaseCommand, LoggerMixin):
@staticmethod
def
get_path
(
name
,
img_output_dir
,
wb_output_dir
,
pdf_output_dir
):
time_stamp
=
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
:
%
M:
%
S'
)
time_stamp
=
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d_
%
H
_
%
M_
%
S'
)
new_name
=
'{0}_{1}'
.
format
(
time_stamp
,
name
)
img_save_path
=
os
.
path
.
join
(
img_output_dir
,
new_name
)
pdf_save_path
=
os
.
path
.
join
(
pdf_output_dir
,
new_name
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment