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
aaac8024
authored
2021-03-12 18:38:34 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix ext bug
1 parent
cf8331db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/apps/doc/management/commands/folder_ocr_process.py
src/apps/doc/management/commands/folder_ocr_process.py
View file @
aaac802
...
...
@@ -32,7 +32,7 @@ class TIFFHandler:
for
i
in
range
(
tiff
.
n_frames
):
try
:
save_path
=
os
.
path
.
join
(
self
.
img_save_path
,
'page_{0}'
.
format
(
i
))
save_path
=
os
.
path
.
join
(
self
.
img_save_path
,
'page_{0}
.jpeg
'
.
format
(
i
))
tiff
.
seek
(
i
)
tiff
.
save
(
save_path
)
self
.
img_path_list
.
append
(
save_path
)
...
...
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