我正在运行Google珊瑚提供的示例。他们在我的珊瑚板上工作得很好。然后,我按照此post之后修改了示例,以增加相机的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.
产生错误的步骤
总而言之,它只读取第一帧,而从不显示后续帧。
答案 0 :(得分:0)
我相信您也已经通过我们的私人支持渠道与我们联系,但是我将其粘贴到这里以供其他参考。
很遗憾,我无法使用您的代码来重现此问题。快速浏览一下代码库,您似乎尚未提交更改。 另一方面,我不认为这首先会奏效。这是因为我们提供的Camera模块不支持BGR3格式,仅支持YUYV。您可以使用以下命令确认这一点:
class EditProfileForm(UserChangeForm):
def __init__(self, *args, **kwargs):
super(UserChangeForm, self).__init__(*args, **kwargs)
for field in [
'first_name',
'last_name',
'bio',
'designation',
'university',
'company_name',
'grad_year',
'phone',
'address',
'city',
'company_category',
'company_desc',
'company_site',
'no_employees',
'technologies',
'markets',
'linkedin']:
self.fields[field].widget.attrs['class'] = "col-lg-8 col-md-12 col-sm-12 col-xs-12 offset-lg-2 ml-6 form-control"
self.fields[field].widget.attrs['style'] = "padding:20px;"
self.fields['photo'].widget.attrs['class'] = "col-lg-8 col-md-12 col-sm-12 col-xs-12 offset-lg-2 ml-6"
self.fields['password'].widget.attrs['class'] = "hidden"
class Meta:
model = User
fields = ('first_name',
'last_name',
"photo",
"bio",
"designation",
"university",
"company_name",
"grad_year",
"phone",
"address",
"city",
"company_category",
"company_desc",
"company_site",
"no_employees",
"technologies",
"markets",
"linkedin"
)```