简体   繁体   English

使用Raspberry Pi 3模型B和Picam进行Web流

[英]Web streaming using Raspberry pi 3 model b and picam

I am trying to stream video in web using Raspi cam. 我正在尝试使用Raspi cam在Web中流式传输视频。 I am using a code from internet but it has an error and it shows this, 我正在使用来自互联网的代码,但有一个错误,它显示了这一点,

Traceback (most recent call last):
  File "picam.py", line 8, in <module>
    import socketserver
ImportError: No module named socketserver

I don't know what to do. 我不知道该怎么办。 Help me please? 请帮帮我? THANKYOUUUU! THANKYOUUUU! The code I'm using is in http://picamera.readthedocs.io/en/latest/recipes2.html#web-streaming (4.10 WEB STREAMING) 我正在使用的代码位于http://picamera.readthedocs.io/en/latest/recipes2.html#web-streaming(4.10 WEB流)

You are most probably using Python2 which has SocketServer . 您很可能正在使用具有SocketServer Python2。

I'll recommend that you use Python3 which has socketserver . 我建议您使用具有socketserver

Reference -> No Module Named ServerSocket 参考-> 没有名为ServerSocket的模块

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Raspberry Pi 4 和 PiCam 时出现分段错误 - Segmentation fault while using Raspberry Pi 4 and PiCam 导入错误在树莓派上运行picam - import error running picam on a raspberry pi OpenCV 安装树莓派 3B model - OpenCV installation Raspberry Pi 3B model Raspberry Pi通过websocket从piCam发送帧 - Raspberry Pi sending frame from piCam via websocket 使用 Tensorflow Lite 在 Raspberry Pi 3 B+ 中使用 yolov4 模型进行对象检测 - object detection with the yolov4 model in Raspberry Pi 3 B+ using the Tensorflow Lite 我可以在Raspberry Pi 2 Model B上将此版本的Ubuntu使用picamera吗? - Can I use picamera with this version of Ubuntu on a Raspberry Pi 2 Model B? 使用Raspbian OS在Raspberry Pi 2 Model B上安装OpenCV - Installing OpenCV on the Raspberry Pi 2 Model B with the Raspbian OS 使用Python 3.6在Raspberry Pi 3 Model B上安装virtualenvwrapper - Installing virtualenvwrapper on a Raspberry Pi 3 Model B with Python 3.6 Raspberry Pi B型线程。 同时运行2个python脚本 - Raspberry Pi Model B Threading. Run 2 python scripts concurrently piCore 与 python 3 在 raspberry-pi 3 B+ 模型上的兼容性 - piCore compatibility with python 3 on raspberry-pi 3 B+ model
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM