박선진

arrange code

......@@ -14,7 +14,7 @@ def post():
return res
@app.route('/save', methods=['POST'])
def save():
def postImage():
#print(request.form)
res = save.Save(request.form)
return res
......
......@@ -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):
......