Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
part_of_F3_OCR
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1942a9b8
authored
2022-08-09 17:13:01 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
57ff6bf4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
general_extractor/retriever.py
general_extractor/retriever.py
View file @
1942a9b
...
...
@@ -152,7 +152,7 @@ class Retriever:
self
.
rebuild_xy
(
*
key_scope_tuple
,
cos
,
sin
)[
0
]
all_find_value_list
=
[]
for
go_key_idx
,
((
x0
,
y0
,
x1
,
y1
,
x2
,
y
3
,
x3
,
y3
),
text
)
in
go_res
.
items
():
for
go_key_idx
,
((
x0
,
y0
,
x1
,
y1
,
x2
,
y
2
,
x3
,
y3
),
text
)
in
go_res
.
items
():
cent_x
,
cent_y
=
self
.
rebuild_xy
(
x0
+
((
x2
-
x0
)
/
2
),
y0
+
((
y2
-
y0
)
/
2
),
cos
,
sin
)
# if go_key_idx == '98' and key_idx == 34:
# print(cent_x)
...
...
@@ -226,7 +226,7 @@ class Retriever:
*
key_scope_tuple
,
cos
,
sin
)[
0
]
all_find_value_list
=
[]
for
go_key_idx
,
((
x0
,
y0
,
x1
,
y1
,
x2
,
y
3
,
x3
,
y3
),
text
)
in
go_res
.
items
():
for
go_key_idx
,
((
x0
,
y0
,
x1
,
y1
,
x2
,
y
2
,
x3
,
y3
),
text
)
in
go_res
.
items
():
cent_x
,
cent_y
=
self
.
rebuild_xy
(
x0
+
((
x2
-
x0
)
/
2
),
y0
+
((
y2
-
y0
)
/
2
),
cos
,
sin
)
# if go_key_idx == '98' and key_idx == 34:
# print(cent_x)
...
...
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