app.py
468 Bytes
from flask import Flask, render_template, Response, request
import cv2
import numpy as np
import time
import datetime
import sys
faceCascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
num = 3
app = Flask(__name__)
@app.route('/')
def index():
"""Video streaming home page."""
return render_template('index.html')
@app.route('/submit', methods=['POST'])
def submit():
image = request.args.get('image')
print(type(image))