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
637c67af
authored
2024-09-09 15:56:24 +0800
by
chenyao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更改切图比例
1 parent
7fd988ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/common/tools/pdf_to_img.py
src/common/tools/pdf_to_img.py
View file @
637c67a
...
...
@@ -10,9 +10,9 @@ from io import BytesIO
from
unicodedata
import
normalize
# 页面保存为png图片参数
ZOOM_X_1
=
ZOOM_Y_1
=
3
.0
ZOOM_X_2
=
ZOOM_Y_2
=
5
.0
ZOOM_X_3
=
ZOOM_Y_3
=
7
.0
ZOOM_X_1
=
ZOOM_Y_1
=
1
.0
ZOOM_X_2
=
ZOOM_Y_2
=
2
.0
ZOOM_X_3
=
ZOOM_Y_3
=
3
.0
trans_1
=
fitz
.
Matrix
(
ZOOM_X_1
,
ZOOM_X_1
)
.
preRotate
(
0
)
# zoom factor 1 in each dimension
trans_2
=
fitz
.
Matrix
(
ZOOM_X_2
,
ZOOM_X_2
)
.
preRotate
(
0
)
# zoom factor 2 in each dimension
trans_3
=
fitz
.
Matrix
(
ZOOM_X_3
,
ZOOM_X_3
)
.
preRotate
(
0
)
# zoom factor 3 in each dimension
...
...
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