text: from flask import Blueprint, Response, render_template
  
  from video.emotion_detection_camera import EmotionDetectionCamera
  from video.face_detection_camera import FaceDetectionCamera
  
  detector = Blueprint('detector', __name__)
  
  
  @detector.route('/<handler>', methods=['GET'])
  def show(handler):
      return render_template('camera.html', url='handle/' + handler)
  
  
  @detector.route('/handle/face', methods=['GET'])
  def detect_face():
      camera = FaceDetectionCamera()
      return Response(camera.gen_frames(), mimetype='multipart/x-mixed-replace; boundary=frame')
  
  
  @detector.route('/handle/emotion', methods=['GET'])
  def detect_emotion():
      camera = EmotionDetectionCamera()
      return Response(camera.gen_frames(), mimetype='multipart/x-mixed-replace; boundary=frame')
  