imx8: Couldn't open video source file in opencv c++ in bsp 5.4.3_1.0.0 image

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx8: Couldn't open video source file in opencv c++ in bsp 5.4.3_1.0.0 image

1,300件の閲覧回数
vsuneja63
Contributor III

Hi,

Thanks!

Could open camera port but the same time opening video source input file not happening.Here are the source code lines, always showing "Cannot open the video file.":

VideoCapture cap("test.mp4");
// cap is the object of class video capture that tries to capture test.mp4
if ( !cap.isOpened() ) // isOpened() returns true if capturing has been initialized.
{
cout << "Cannot open the video file. \n";
return -1;
}

Source file placed at the right path with full permissions. Tried changing the location of source file also.

Target: imx8mq-evk

Host: ubuntu 16.04

Source: 5.4.3_1.0.0

ラベル(1)
0 件の賞賛
2 返答(返信)

1,286件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello vsuneja63,

 

You must specify the route of your video, that the reason it don´t open it. BTW you can download the latest BSP L5.4.47 for better performance on c++

 

Regards

 

0 件の賞賛

1,282件の閲覧回数
vsuneja63
Contributor III

Hi,

Thanks for response!

I kept the bin & video file in the same directory while testing. As you mention to add full path, tried that also but the same error. Issue doesn't looks like w.r.t. path or permission of source file. It seems w.r.t OpenCV. Can you verify this with sample code on imx8?

 

0 件の賞賛