7e35e5ba by 周伟奇

fix readme

1 parent 7ab1add6
......@@ -15,3 +15,5 @@ test*
*.h5
*.jpg
*.out
*.log
\ No newline at end of file
......
......@@ -21,8 +21,8 @@ from authorization_from import retriever_individuals, retriever_companies
res = retriever_companies.get_target_fields(go_res, signature_res)
print(res)
# {'words_result':
# {'姓名': {'words': '李子君', 'score': 1, 'location': {'left': 105, 'top': 277, 'width': 60, 'height': 28}},
# '个人身份证件号码': {'words': '321001198601050010', 'score': 1, 'location': {'left': 320, 'top': 278, 'widtght': 24}},
# {'姓名': {'words': 'xx', 'score': 1, 'location': {'left': 105, 'top': 277, 'width': 60, 'height': 28}},
# '个人身份证件号码': {'words': 'xx', 'score': 1, 'location': {'left': 320, 'top': 278, 'widtght': 24}},
# '签字': {'words': '有', 'score': 1, 'location': {'left': 540, 'top': 1293, 'width': 143, 'height': 91}}}
# }
......@@ -32,9 +32,9 @@ print(res)
# {'words_result': {
# '经销商名称': {'words': 'xxx', 'score': 1, 'location': {'left': 473, 'top': 440, 'width': 331, 'height': 27}},
# '经销商代码-宝马中国': {'words': '42330', 's 1285, 'top': 414, 'width': 65, 'height': 26}},
# '管理人员姓名-总经理': {'words': '胡开', 'score': 1, 'location': {'left': 703, 'top': 815, 'width': 44, 'height': 24}},
# '公司公章': {'words': '有', 'score: {'left': 239, 'top': 1548, 'width': 323, 'height': 329}},
# '经销商代码-宝马中国': {'words': 'xx', 'score': 1, 'location': {'left': 1285, 'top': 414, 'width': 65, 'height': 26}},
# '管理人员姓名-总经理': {'words': 'xx', 'score': 1, 'location': {'left': 703, 'top': 815, 'width': 44, 'height': 24}},
# '公司公章': {'words': '有', 'score: 1, 'location': {'left': 239, 'top': 1548, 'width': 323, 'height': 329}},
# '法定代表人签章': {'words': '有', 'score': 1, 'location': {'left': 621, 'top': 1657, 'width': 161, 'height': 164}}}
# }
```
......
......@@ -166,4 +166,6 @@ class Retriever:
words_result_signature = self.rebuild_res(signature_value_res, signature_coordinates_res, True)
words_result.update(words_result_signature)
# signature_value_res.update(value_res)
# return signature_value_res
return {'words_result': words_result}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!