604ddc73 by 周伟奇

fix dealername5

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