Beispiel #1
0
 def __init__(self):
     args = {
         "serial":None,
         "baud":None,
         "udp":None
     }
     self.pulse = getCustomPulseApp(args)
     
     self.addresses = {}
     self.threads = {}
Beispiel #2
0
from flask import Flask, current_app
from flask_socketio import SocketIO, send, emit
from detector.processor import getCustomPulseApp
import numpy as np
import cv2
import calendar
import time
import base64
import traceback
import eventlet

app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app, async_mode='eventlet')
args = {"serial": None, "baud": None, "udp": None}
pulse = getCustomPulseApp(args)


@app.route('/')
def site():
    return current_app.send_static_file('main.html')


@app.route('/description.html')
def steps():
    return current_app.send_static_file('description.html')


@app.route('/client.html')
def camera():
    return current_app.send_static_file('client.html')