Questions tagged «streaming»

2
使用picamera和Flask将Raspberry Pi相机流式传输到HTML网页
我正在尝试使用picamera API和Flask从Raspberry Pi相机模块中实现连续JPEG的纯Python(实时)流,以使用HTML模板显示它,但我不断收到“ 404 not found错误”? 我对这个特定的主题有点经验不足,请您提前道歉。 app.route('/test/') def vid(): with picamera.PiCamera() as camera: stream = io.BytesIO() for foo in camera.capture_continuous(stream, format='jpeg'): stream.truncate() stream.seek(0) if process(stream): break 这是HTML代码: <img src="{{ url_for('vid') }}"width='950px' height='450px'>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.