fix bug
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -152,7 +152,7 @@ class Retriever: | ... | @@ -152,7 +152,7 @@ class Retriever: |
152 | self.rebuild_xy(*key_scope_tuple, cos, sin)[0] | 152 | self.rebuild_xy(*key_scope_tuple, cos, sin)[0] |
153 | 153 | ||
154 | all_find_value_list = [] | 154 | all_find_value_list = [] |
155 | for go_key_idx, ((x0, y0, x1, y1, x2, y3, x3, y3), text) in go_res.items(): | 155 | for go_key_idx, ((x0, y0, x1, y1, x2, y2, x3, y3), text) in go_res.items(): |
156 | cent_x, cent_y = self.rebuild_xy(x0 + ((x2 - x0) / 2), y0 + ((y2 - y0) / 2), cos, sin) | 156 | cent_x, cent_y = self.rebuild_xy(x0 + ((x2 - x0) / 2), y0 + ((y2 - y0) / 2), cos, sin) |
157 | # if go_key_idx == '98' and key_idx == 34: | 157 | # if go_key_idx == '98' and key_idx == 34: |
158 | # print(cent_x) | 158 | # print(cent_x) |
... | @@ -226,7 +226,7 @@ class Retriever: | ... | @@ -226,7 +226,7 @@ class Retriever: |
226 | *key_scope_tuple, cos, sin)[0] | 226 | *key_scope_tuple, cos, sin)[0] |
227 | 227 | ||
228 | all_find_value_list = [] | 228 | all_find_value_list = [] |
229 | for go_key_idx, ((x0, y0, x1, y1, x2, y3, x3, y3), text) in go_res.items(): | 229 | for go_key_idx, ((x0, y0, x1, y1, x2, y2, x3, y3), text) in go_res.items(): |
230 | cent_x, cent_y = self.rebuild_xy(x0 + ((x2 - x0) / 2), y0 + ((y2 - y0) / 2), cos, sin) | 230 | cent_x, cent_y = self.rebuild_xy(x0 + ((x2 - x0) / 2), y0 + ((y2 - y0) / 2), cos, sin) |
231 | # if go_key_idx == '98' and key_idx == 34: | 231 | # if go_key_idx == '98' and key_idx == 34: |
232 | # print(cent_x) | 232 | # print(cent_x) | ... | ... |
-
Please register or sign in to post a comment