|
@ -22,6 +22,7 @@ def gen(camera): |
|
|
@frontend_blueprint.route('/video_feed') |
|
|
@frontend_blueprint.route('/video_feed') |
|
|
def video_feed(): |
|
|
def video_feed(): |
|
|
"""Video streaming route. Put this in the src attribute of an img tag.""" |
|
|
"""Video streaming route. Put this in the src attribute of an img tag.""" |
|
|
from roberto.camera.camera_opencv import Camera |
|
|
from roberto import camera |
|
|
return Response(gen(Camera()), |
|
|
camera.__init__() |
|
|
|
|
|
return Response(gen(camera), |
|
|
mimetype='multipart/x-mixed-replace; boundary=frame') |
|
|
mimetype='multipart/x-mixed-replace; boundary=frame') |
|
|