简体   繁体   English

在珊瑚板上运行示例和珊瑚相机时出现未知格式错误

[英]Unknown format error on running examples on coral board along with coral camera

I was running examples from google coral.我正在运行来自谷歌珊瑚的例子。 They worked fine on my coral board.他们在我的珊瑚板上工作得很好。 Then i modified the examples after following this post to increase fps output of camera.然后我按照这篇文章修改了示例以增加相机的fps output。

The details of platform:平台详情:

mendel@coral2:~$ uname -a
Linux coral2 4.14.98-imx #1 SMP PREEMPT Fri Nov 8 23:28:21 UTC 2019 aarch64 GNU/Linux

The example runs fine with usb camera (standard one) however with coral camera results in following error.该示例使用 usb 相机(标准相机)运行良好,但使用珊瑚相机会导致以下错误。 ( VISIBLE IN SYSLOGS ) 在系统日志中可见

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.

Steps to produce error产生错误的步骤

  1. git clone https://github.com/deepanshu-yadav/coral_bug.git git 克隆https://github.com/deepanshu-yadav/coral_bug.git
  2. ./download_models.sh ./download_models.sh
  3. cd opencv光盘 opencv
  4. ./install_requirements.sh ./install_requirements.sh
  5. python3 detect.py python3 检测.py

To sum it up it only reads the first frame and never shows the subsequent frames.总而言之,它只读取第一帧,从不显示后续帧。

I believe you have also reached out to us via our private support channel, but I'm pasting it here for other to reference also.我相信您也通过我们的私人支持渠道与我们联系,但我将其粘贴在这里以供其他人参考。

Unfortunately, I cannot reproduce this issue on my side using your code.不幸的是,我无法使用您的代码重现此问题。 A quick look at the code base, it appears that you haven't commit your changes.快速查看代码库,您似乎还没有提交更改。 On another note, I don't believe this is going to work in the first place.另一方面,我不相信这首先会起作用。 This is because the Camera module that we ship doesn't have supports for BGR3 format and only YUYV.这是因为我们发货的Camera模组不支持BGR3格式,只支持YUYV。 You can confirm this with this command:您可以使用以下命令确认这一点:

$ v4l2-ctl --list-formats-ext --device /dev/video0
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'YUYV' (YUYV 4:2:2)
                Size: Discrete 640x480
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 720x480
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1920x1080
                        Interval: Discrete 0.067s (15.000 fps)
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 2592x1944
                        Interval: Discrete 0.067s (15.000 fps)
                Size: Discrete 0x0

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM