I am trying to modify the code given here for screen streaming. In the above tutorial it was for reading images from disk whereas I am trying to take screenshots. I receive this error.
assert isinstance(data, bytes), 'applications must write bytes' AssertionError: applications must write bytes
What changes should I make for it to work?
This is what I've done so far -
index.html
Video Streaming Demonstration
app.py
#!/usr/bin/env python
from flask import Flask, render_template, Response
import time
# emulated camera
from camera import Camera
# Raspberry Pi camera module (requires picamera package)
# from camera_pi import Camera
app =