7e35e5ba by 周伟奇

fix readme

1 parent 7ab1add6
...@@ -14,4 +14,6 @@ ...@@ -14,4 +14,6 @@
14 test* 14 test*
15 *.h5 15 *.h5
16 *.jpg 16 *.jpg
17 *.out
...\ No newline at end of file ...\ No newline at end of file
17 *.out
18
19 *.log
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -21,8 +21,8 @@ from authorization_from import retriever_individuals, retriever_companies ...@@ -21,8 +21,8 @@ from authorization_from import retriever_individuals, retriever_companies
21 res = retriever_companies.get_target_fields(go_res, signature_res) 21 res = retriever_companies.get_target_fields(go_res, signature_res)
22 print(res) 22 print(res)
23 # {'words_result': 23 # {'words_result':
24 # {'姓名': {'words': '李子君', 'score': 1, 'location': {'left': 105, 'top': 277, 'width': 60, 'height': 28}}, 24 # {'姓名': {'words': 'xx', 'score': 1, 'location': {'left': 105, 'top': 277, 'width': 60, 'height': 28}},
25 # '个人身份证件号码': {'words': '321001198601050010', 'score': 1, 'location': {'left': 320, 'top': 278, 'widtght': 24}}, 25 # '个人身份证件号码': {'words': 'xx', 'score': 1, 'location': {'left': 320, 'top': 278, 'widtght': 24}},
26 # '签字': {'words': '有', 'score': 1, 'location': {'left': 540, 'top': 1293, 'width': 143, 'height': 91}}} 26 # '签字': {'words': '有', 'score': 1, 'location': {'left': 540, 'top': 1293, 'width': 143, 'height': 91}}}
27 # } 27 # }
28 28
...@@ -32,9 +32,9 @@ print(res) ...@@ -32,9 +32,9 @@ print(res)
32 32
33 # {'words_result': { 33 # {'words_result': {
34 # '经销商名称': {'words': 'xxx', 'score': 1, 'location': {'left': 473, 'top': 440, 'width': 331, 'height': 27}}, 34 # '经销商名称': {'words': 'xxx', 'score': 1, 'location': {'left': 473, 'top': 440, 'width': 331, 'height': 27}},
35 # '经销商代码-宝马中国': {'words': '42330', 's 1285, 'top': 414, 'width': 65, 'height': 26}}, 35 # '经销商代码-宝马中国': {'words': 'xx', 'score': 1, 'location': {'left': 1285, 'top': 414, 'width': 65, 'height': 26}},
36 # '管理人员姓名-总经理': {'words': '胡开', 'score': 1, 'location': {'left': 703, 'top': 815, 'width': 44, 'height': 24}}, 36 # '管理人员姓名-总经理': {'words': 'xx', 'score': 1, 'location': {'left': 703, 'top': 815, 'width': 44, 'height': 24}},
37 # '公司公章': {'words': '有', 'score: {'left': 239, 'top': 1548, 'width': 323, 'height': 329}}, 37 # '公司公章': {'words': '有', 'score: 1, 'location': {'left': 239, 'top': 1548, 'width': 323, 'height': 329}},
38 # '法定代表人签章': {'words': '有', 'score': 1, 'location': {'left': 621, 'top': 1657, 'width': 161, 'height': 164}}} 38 # '法定代表人签章': {'words': '有', 'score': 1, 'location': {'left': 621, 'top': 1657, 'width': 161, 'height': 164}}}
39 # } 39 # }
40 ``` 40 ```
......
...@@ -166,4 +166,6 @@ class Retriever: ...@@ -166,4 +166,6 @@ class Retriever:
166 words_result_signature = self.rebuild_res(signature_value_res, signature_coordinates_res, True) 166 words_result_signature = self.rebuild_res(signature_value_res, signature_coordinates_res, True)
167 words_result.update(words_result_signature) 167 words_result.update(words_result_signature)
168 168
169 # signature_value_res.update(value_res)
170 # return signature_value_res
169 return {'words_result': words_result} 171 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!