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
32c61c54
authored
2022-08-09 17:17:28 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
1942a9b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
general_extractor/retriever.py
general_extractor/retriever.py
View file @
32c61c5
...
...
@@ -84,7 +84,7 @@ class Retriever:
merged_idx_list
=
[]
merged_x_list
=
[]
merged_y_list
=
[]
for
text
,
x0
,
y0
,
x1
,
y1
,
idx_tuple
in
value_list
:
for
text
,
x0
,
y0
,
x1
,
y1
,
x2
,
y2
,
x3
,
y3
,
idx_tuple
in
value_list
:
merged_value_list
.
append
(
text
)
merged_idx_list
.
extend
(
idx_tuple
)
merged_x_list
.
append
(
x0
)
...
...
@@ -95,6 +95,10 @@ class Retriever:
min
(
merged_x_list
),
min
(
merged_y_list
),
max
(
merged_x_list
),
min
(
merged_y_list
),
max
(
merged_x_list
),
max
(
merged_y_list
),
min
(
merged_x_list
),
max
(
merged_y_list
),
tuple
(
merged_idx_list
))
...
...
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