Other Parts Discussed in Thread: TVP5158
主题中讨论的其他器件:TVP5158
工具/软件:Linux
你(们)好,先生
我们在 J6 EVM 中使用了最新的汽车处理器 SDK 进行开发。
我们希望使用迷你 USB 端口(USB 2.0)连接 USB 摄像头。
我们发现系统不稳定、无法长时间捕捉视频。
例如、我们使用下面的示例代码来捕获视频。 系统将在5分钟内崩溃。
#include
#include
#include
#include
#include
#include
#include
使用命名空间 cv;
void initivc (cv::VideoCapture vc、int w、int h) {
vc.set(CV_CAP_PROP_FRAME_WIDTH、w);
vc.set(CV_CAP_PROP_FRAME_HEIGHT、h);
}
void show_live_video () {
VideoCapture 捕捉(1);
initivc (捕获、1920、1080);
垫架;
while (waitKey (20)!= 27)
{
capture >> frame;
if (!frame.empty())(如果!frame.empty()
imshow ("ADAS"、FRAME);
其他
printf ("frame.empty()\n");
}
}
int main () {
printf ("OpenCV 链接正常。\n");
show_live_video ();
返回0;
}
日志消息如下所示
[516.713750] 对齐陷阱:不在[]处理 ed910b22指令 ]
[516.721573] 未处理的故障:0x000000a2处的对齐异常(0x221)
[516.728701] PgD = ed5ebec0
[516.731771] [000000a2]* PgD=ad731003、* PMD=df883003
[6463.274551] OMAP-hwmod:mu1_dsp2:_wait_target_disable 失败
[6463.288607] OMAP-hwmod:mu0_dsp2:_wait_target_disable 失败
[6463.301801] OMAP-hwmod:mu1_dsp1:_wait_target_disable 失败
[6463.315024] omap_hwmod:mu0_dsp1:_wait_target_disable 失败
[6701.894740]对齐陷阱:不处理[ ]
[6701.902413]未处理的故障:0xffffff77上的对齐异常(0xa21)
[6701.911692] PgD = df96c080
[6701.914744][fffe77]* pgD=80000080007003、* PMD=affae003、* Pte=00000000
[6701.997545] TVP5158 1-0058:无法连接到 OD_PROBE
[6702.009575] omap_hwmod:mu0_dsp2:_wait_target_disable 失败
[6702.015466] OMAP-IMU 41501000.MMU:41501000.MMU:版本3.0
[6702.022145] OMAP-IMU 415020.MMU:415020.MMU:版本3.0
[6702.029825] TVP5158 1-0058:无法连接到 OD_PROBE
[6702.041456] omap_hwmod:mu0_dsp1:_wait_target_disable 失败
[6702.047343] OMAP-iommu 40d01000.MMU:40d01000.MMU:版本3.0
[6702.053945] OMAP-iommu 40d020.MMU:40d020.MMU:版本3.0
[6702.063079] TVP5158 1-0058:无法连接到 TO_PROBE
[6702.068746] TVP5158 1-0058:无法连接到 OV_PROBE
[6712.271331] omap_hwmod:mu1_dsp2:_wait_target_disable 失败
[6712.284338] omap_hwmod:mu0_dsp2:_wait_target_disable 失败
[6712.297437] omap_hwmod:mu1_dsp1:_wait_target_disable 失败
[6712.310433] omap_hwmod:mu0_dsp1:_wait_target_disable 失败
请提供建议并感谢您的帮助
BR
Yimin