Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,11 +52,6 @@ app = Flask(__name__)
|
|
| 52 |
|
| 53 |
@app.route('/compare_face', methods=['POST'])
|
| 54 |
def compare_face():
|
| 55 |
-
result = "None"
|
| 56 |
-
similarity = -1
|
| 57 |
-
face1 = None
|
| 58 |
-
face2 = None
|
| 59 |
-
|
| 60 |
file1 = request.files['file1']
|
| 61 |
file2 = request.files['file2']
|
| 62 |
|
|
@@ -91,6 +86,7 @@ def compare_face():
|
|
| 91 |
faceCount2 = faceDetection(image_np2, image_np2.shape[1], image_np2.shape[0], faceBoxes2, maxFaceCount)
|
| 92 |
|
| 93 |
faces1_result = []
|
|
|
|
| 94 |
for i in range(faceCount1):
|
| 95 |
templateExtraction(image_np1, image_np1.shape[1], image_np1.shape[0], faceBoxes1[i])
|
| 96 |
|
|
|
|
| 52 |
|
| 53 |
@app.route('/compare_face', methods=['POST'])
|
| 54 |
def compare_face():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
file1 = request.files['file1']
|
| 56 |
file2 = request.files['file2']
|
| 57 |
|
|
|
|
| 86 |
faceCount2 = faceDetection(image_np2, image_np2.shape[1], image_np2.shape[0], faceBoxes2, maxFaceCount)
|
| 87 |
|
| 88 |
faces1_result = []
|
| 89 |
+
faces2_result = []
|
| 90 |
for i in range(faceCount1):
|
| 91 |
templateExtraction(image_np1, image_np1.shape[1], image_np1.shape[0], faceBoxes1[i])
|
| 92 |
|