604ddc73 by 周伟奇

fix dealername5

1 parent 49ae7448
...@@ -7,7 +7,7 @@ TARGET_FIELD_INDIVIDUALS = { ...@@ -7,7 +7,7 @@ TARGET_FIELD_INDIVIDUALS = {
7 'value': { 7 'value': {
8 '姓名': ('under', {'left_padding': 1, 'right_padding': 1, 'scope': 2}, ''), 8 '姓名': ('under', {'left_padding': 1, 'right_padding': 1, 'scope': 2}, ''),
9 '个人身份证件号码': ('under', {'left_padding': 0.5, 'right_padding': 0.5, 'scope': 2}, ''), 9 '个人身份证件号码': ('under', {'left_padding': 0.5, 'right_padding': 0.5, 'scope': 2}, ''),
10 '经销商名称': ('under', {'left_padding': 0.1, 'right_padding': 0.5, 'scope': 2, 'append': True}, '') 10 '经销商名称': ('under', {'left_padding': 0.1, 'right_padding': 0.8, 'scope': 2.5, 'append': True}, '')
11 }, 11 },
12 'signature': { 12 'signature': {
13 '签字': {'signature', } 13 '签字': {'signature', }
......
...@@ -108,7 +108,7 @@ class Retriever: ...@@ -108,7 +108,7 @@ class Retriever:
108 cent_y = y0 + ((y1 - y0)/2) 108 cent_y = y0 + ((y1 - y0)/2)
109 if x_min < cent_x < x_max and y_min < cent_y < y_max: 109 if x_min < cent_x < x_max and y_min < cent_y < y_max:
110 if len(text.strip()) > 0: 110 if len(text.strip()) > 0:
111 find_list.append(cent_x, cent_y, x0, y0, x1, y1, text) 111 find_list.append((cent_x, cent_y, x0, y0, x1, y1, text))
112 if len(find_list) == 0: 112 if len(find_list) == 0:
113 return None, None 113 return None, None
114 else: 114 else:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!