请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:AM5728 工具/软件:Linux
大家好、
我有一个使用 OpenCV 在5728定制板上捕获视频的过程。它有时会显示以下错误:
/home/gtbldadm/processor-sdk-linux-morty-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/opencl/1.1.13.0-r0.0/git/host/src/core/dsp/tal/mbox_impl_msgq.cpp:87:MBoxMsgQ::MBoxMsgQ (Coal:DSPDevice*):断言`s状态= IPC_S_SUCCESS ||状态= IPC_S_ALREADYSETUP'失败。
已中止(转储内核)
捕获成功的大部分时间仅转储了几次。
相关代码如下所示
MAT 图像,imageSave;
VideoCapture Capture(1);//打开 摄像机
capture.set(CV_CAP_PROP_FRAME_WIDTH,1280);
capture.set(CV_CAP_PROP_FRAME_HEIGHT,720);
capture >> image;//get a frame
resize (image、imageSave、size (300、300)、 0、 0、inter_linear);
imwrite (finalNameFile、imageSave);//保存 图片
capture.release();
VideoCapture Capture(1);//打开 摄像机
capture.set(CV_CAP_PROP_FRAME_WIDTH,1280);
capture.set(CV_CAP_PROP_FRAME_HEIGHT,720);
capture >> image;//get a frame
resize (image、imageSave、size (300、300)、 0、 0、inter_linear);
imwrite (finalNameFile、imageSave);//保存 图片
capture.release();
如果您想了解更多信息、请告诉我。
PLSDK 版本是 04.00.00.04。