我正在运行来自谷歌珊瑚的例子。他们在我的珊瑚板上工作得很好。然后我按照这篇文章修改了示例以增加相机的 fps 输出。
平台详情:
mendel@coral2:~$ uname -a
Linux coral2 4.14.98-imx #1 SMP PREEMPT Fri Nov 8 23:28:21 UTC 2019 aarch64 GNU/Linux
该示例使用 USB 相机(标准相机)运行良好,但使用珊瑚相机会导致以下错误。(在系统日志中可见)
Jun 1 10:32:28 coral2 kernel: [378824.885837] unknown pixelformat:'BGR3'
Jun 1 10:32:28 coral2 kernel: [378824.889798] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x33524742) invalid.
Jun 1 10:32:28 coral2 kernel: [378824.897302] unknown pixelformat:'YV12'
Jun 1 10:32:28 coral2 kernel: [378824.901344] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x32315659) invalid.
Jun 1 10:32:28 coral2 kernel: [378824.908784] unknown pixelformat:'411P'
Jun 1 10:32:28 coral2 kernel: [378824.912753] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x50313134) invalid.
Jun 1 10:32:28 coral2 kernel: [378824.920308] unknown pixelformat:'MJPG'
Jun 1 10:32:28 coral2 kernel: [378824.924268] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x47504a4d) invalid.
Jun 1 10:32:28 coral2 kernel: [378824.931818] unknown pixelformat:'JPEG'
Jun 1 10:32:28 coral2 kernel: [378824.935778] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x4745504a) invalid.
产生错误的步骤
- git 克隆https://github.com/deepanshu-yadav/coral_bug.git
- ./download_models.sh
- cd opencv
- ./install_requirements.sh
- python3检测.py
总而言之,它只读取第一帧,从不显示后续帧。