Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박선진
/
video-emergency-detection
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박선진
2020-06-25 10:51:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f2f60f339f8eb5b23f358d03ce1dedcbd8757169
f2f60f33
1 parent
9af71399
arrange code
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
detection-API/index.py
detection-API/process.py
detection-API/index.py
View file @
f2f60f3
...
...
@@ -14,7 +14,7 @@ def post():
return
res
@app.route
(
'/save'
,
methods
=
[
'POST'
])
def
sav
e
():
def
postImag
e
():
#print(request.form)
res
=
save
.
Save
(
request
.
form
)
return
res
...
...
detection-API/process.py
View file @
f2f60f3
...
...
@@ -41,7 +41,7 @@ class Process:
face
=
self
.
FaceRecognition
(
decoded_img
)
#True면 침입자 발생
fire
=
self
.
FireDetection
(
decoded_img
)
#True면 화재발생
result
=
{
"unknown_person"
:
face
,
"fire_broken"
:
fire
}
result
=
{
"unknown_person"
:
face
,
"fire_broken"
:
fire
,
"index"
:
payload
[
'index'
]
}
print
(
result
)
return
result
def
FaceRecognition
(
self
,
decoded_img
):
...
...
Please
register
or
login
to post a comment