Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
affective_computing
/
triton_tamper_det
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
298fa6f9
authored
2022-10-21 14:29:10 +0800
by
乔峰昇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update
1 parent
5250a59f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
4 deletions
.idea/misc.xml
.idea/triton_tamper_det.iml
OCR_Engine
__pycache__/bank_ocr_inference.cpython-36.pyc
bank_ocr_inference.py
.idea/misc.xml
View file @
298fa6f
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.6"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.6
(workenv)
"
project-jdk-type=
"Python SDK"
/>
</project>
\ No newline at end of file
...
...
.idea/triton_tamper_det.iml
View file @
298fa6f
...
...
@@ -2,7 +2,7 @@
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"
inheritedJdk
"
/>
<orderEntry
type=
"
jdk"
jdkName=
"Python 3.6 (workenv)"
jdkType=
"Python SDK
"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
<component
name=
"PyDocumentationSettings"
>
...
...
OCR_Engine
@
3dddc11a
Subproject commit 3dddc11a8a1d369ca4fbd0b69e4e21e6af81cc4c
__pycache__/bank_ocr_inference.cpython-36.pyc
0 → 100644
View file @
298fa6f
No preview for this file type
bank_ocr_inference.py
View file @
298fa6f
...
...
@@ -21,7 +21,7 @@ def path_to_file(file_path):
# 流水OCR接口
def
bill_ocr
(
image
):
f
=
image_to_base64
(
image
)
resp
=
requests
.
post
(
url
=
r'http://192.168.10.11:900
1
/gen_ocr'
,
files
=
{
'file'
:
f
})
resp
=
requests
.
post
(
url
=
r'http://192.168.10.11:900
2
/gen_ocr'
,
files
=
{
'file'
:
f
})
results
=
resp
.
json
()
ocr_results
=
results
[
'ocr_results'
]
return
ocr_results
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment