Stream OpenCV frame to HTML in Python
问题 I am trying to read a video from a URL in opencv(Python) and then process it frame by frame and then send it to an HTML page. But I am only getting the first frame, after that the program gives the following error This is my main file ( main.py ) from flask import Flask, render_template, Response from camera import VideoCamera import pdb app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') def gen(camera): while True: frame = camera.get_frame() yield (b'-