@ -12,7 +12,8 @@ from flask_login import LoginManager
# to the application at this point.
login = LoginManager()
login.login_view = "users.login"
#from roberto.camera.camera_opencv import Camera
from roberto.camera.camera_opencv import Camera
camera = Camera()
######################################
#### Application Factory Function ####
@ -22,6 +22,7 @@ def gen(camera):
@frontend_blueprint.route('/video_feed')
def video_feed():
"""Video streaming route. Put this in the src attribute of an img tag."""
return Response(gen(Camera()),
from roberto import camera
camera.__init__()
return Response(gen(camera),
mimetype='multipart/x-mixed-replace; boundary=frame')