298fa6f9 by 乔峰昇

update

1 parent 5250a59f
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4"> 2 <project version="4">
3 <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6" project-jdk-type="Python SDK" /> 3 <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6 (workenv)" project-jdk-type="Python SDK" />
4 </project> 4 </project>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <module type="PYTHON_MODULE" version="4"> 2 <module type="PYTHON_MODULE" version="4">
3 <component name="NewModuleRootManager"> 3 <component name="NewModuleRootManager">
4 <content url="file://$MODULE_DIR$" /> 4 <content url="file://$MODULE_DIR$" />
5 <orderEntry type="inheritedJdk" /> 5 <orderEntry type="jdk" jdkName="Python 3.6 (workenv)" jdkType="Python SDK" />
6 <orderEntry type="sourceFolder" forTests="false" /> 6 <orderEntry type="sourceFolder" forTests="false" />
7 </component> 7 </component>
8 <component name="PyDocumentationSettings"> 8 <component name="PyDocumentationSettings">
......
OCR_Engine @ 3dddc11a
1 Subproject commit 3dddc11a8a1d369ca4fbd0b69e4e21e6af81cc4c
No preview for this file type
...@@ -21,7 +21,7 @@ def path_to_file(file_path): ...@@ -21,7 +21,7 @@ def path_to_file(file_path):
21 # 流水OCR接口 21 # 流水OCR接口
22 def bill_ocr(image): 22 def bill_ocr(image):
23 f = image_to_base64(image) 23 f = image_to_base64(image)
24 resp = requests.post(url=r'http://192.168.10.11:9001/gen_ocr', files={'file': f}) 24 resp = requests.post(url=r'http://192.168.10.11:9002/gen_ocr', files={'file': f})
25 results = resp.json() 25 results = resp.json()
26 ocr_results = results['ocr_results'] 26 ocr_results = results['ocr_results']
27 return ocr_results 27 return ocr_results
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!