Skip to content

Instantly share code, notes, and snippets.

View afandiyusuf's full-sized avatar

yusuf afandi afandiyusuf

View GitHub Profile
@afandiyusuf
afandiyusuf / flask_server_v2.py
Created October 8, 2020 08:06 — forked from peterjpxie/flask_server_v2.py
flask_server_v2.py
from flask import Flask, request
import re, json
from face_util import compare_faces, face_rec
app = Flask(__name__)
@app.route('/face_match', methods=['POST'])
def face_match():
if request.method == 'POST':
# check if the post request has the file part