1 usb 安装
https://github.com/groupgets/GetThermal/wiki/Building-for-Raspberry-Pi
2报错 么有全驱动GL
4b没有这个 我需要更新下内核
3内核更新‘
This is only required if you are starting from an older Raspbian Jessie build. It is required to build against the QT 5.7.1 binaries. Instructions transcribed from linuxconfig.org. See there for a more detailed account.
- All commands need to be executed as root, so open a terminal and run su to execute all commands as root:
sudo su root
- Start by fully upgrade your current Raspbian system before you proceed with a Stretch upgrade.
apt-get update
apt-get upgrade
apt-get dist-upgrade
- Alter
/etc/apt/sources.list
to point to stretch instead of jessie
sed -i 's/jessie/stretch/g' /etc/apt/sources.list
- Update new package index
apt-get update
- Upgrade to stretch
apt-get upgrade
apt-get dist-upgrade
- Reboot
reboot
问题追踪’
https://github.com/raspberrypi/linux/issues/3136
我遇到了完全相同的问题(PT2 + RPi4,8GB),并且在PT回购中有一些类似的问题:
这里的解决方案谈论重建/刷新最新固件-
YMMV,但对我来说,重建并刷新更新的固件100%修复了问题。它从根本无法正常工作,变成了我的旧代码(对于RPi3)无需修改就可以工作!
如果可以,我真的建议您尝试构建最新的固件并通过DFU刷新它,因为我认为@kekiefer已经解决了此问题😄
糟糕,我忘记更新此问题。有一个VLi固件版本,可在此处使用多达1023字节的同步端点:https ://www.raspberrypi.org/forums/viewtopic.php?f=29&t=273027
https://www.psybik.com/learn/tutorials/flir-lepton-hookup-guide/all
https://github.com/Kheirlb/purethermal1-uvc-capture
http://www.1zlab.com/wiki/python-opencv-tutorial/ubuntu-check-usb-camera-device/
https://github.com/Kheirlb/purethermal1-uvc-capture
https://groupgets.com/manufacturers/flir/products/lepton-3-5
. 查看video设备¶
在linux中任何对象都是文件,查看当前是否有摄像头挂载到Ubuntu上,我们可以执行下面的命令行
ls -ltrh /dev/video*
OUTPUT fange@cr:~$ ls -ltrh /dev/video* crw-rw----+ 1 root video 81, 0 3月 28 22:10 /dev/video0 crw-rw----+ 1 root video 81, 1 3月 28 22:10 /dev/video1
2. 通过video4linux查看设备¶
video4linux(v4l)是一些视频系统,视频软件,音频软件的基础,经常使用在需要采集图像的场合,如视频监控,webcam,可视电话,经常应用在embedded linux中,是linux嵌入式开发中经常使用的系统接口。它是linux内核提供给用户空间的编程接口,各种的视频和音频设备开发相应的驱动程序后,就可以通过v4l提供的系统API来控制视频和音频设备,也就是说v4l分为两层,底层为音视频设备在内核中的驱动,上层为系统提供的API,而对于我们来说需要的就是使用这些系统的API。
安装v4l
v4l2-ctl --list-devices
查看当前摄像头支持的视频压缩格式
v4l2-ctl -d /dev/video0 --list-formats
输出
ioctl: VIDIOC_ENUM_FMT Index : 0 Type : Video Capture Pixel Format: 'MJPG' (compressed) Name : Motion-JPEG Index : 1 Type : Video Capture Pixel Format: 'YUYV' Name : YUYV 4:2:2
可以看到摄像头,支持两种格式
树莓派开发
https://github.com/groupgets/GetThermal/wiki/Building-for-Raspberry-Pi
各种样例
https://github.com/groupgets/purethermal1-uvc-capture
https://github.com/groupgets/libuvc
https://github.com/groupgets/purethermal1-uvc-capture
opencv如何获取Cubeternet WebCam
https://www.yahboom.com/build.html?id=2033&cid=257
分别是:“lsusb”和“ls /dev/video*”。
下载完成后,终端输入“fswebcam --no-banner -r 640*480 camera.jpg”可以在/home/pi目录下生成一个当前摄像头拍摄到的实时照片。以此证明USB摄像头工作正常。
一直报错
VIDIOC_STREAMON: No space left on device
修改相机输出‘
v4l2-ctl -d /dev/video1 --list-formats-ext
spi读取模式
https://groupgets.com/blog/posts/34-pylepton-overlay-guide-2-0-for-raspbian-pixel
我遇到了完全相同的问题(PT2 + RPi4,8GB),并且在PT回购中有一些类似的问题:
groupgets / purethermal1-firmware#24
groupgets / purethermal1-uvc-capture#15
这里的解决方案谈论重建/刷新最新固件-
YMMV,但对我来说,重建并刷新更新的固件100%修复了问题。它从根本无法正常工作,变成了我的旧代码(对于RPi3)无需修改就可以工作!
如果可以,我真的建议您尝试构建最新的固件并通过DFU刷新它,因为我认为@kekiefer已经解决了此问题😄