Javacv: org.bytedeco.javacv.FrameGrabber$Exception: read() Error: Could not read frame in start().

Created on 5 Dec 2017  路  1Comment  路  Source: bytedeco/javacv

I wanna use javacv on my raspberry pi3 to take pictures.
At first,i write the code on my computer( OS X 10.13.1)and use the follow Jars
image
and then,i copy the project and replace jars like these
image
then,i run the exported on my raspberry,but it gave me the follow error informations

org.bytedeco.javacv.FrameGrabber$Exception: read() Error: Could not read frame in start().
    at org.bytedeco.javacv.OpenCVFrameGrabber.start(OpenCVFrameGrabber.java:222)

my code is followed(partly):

this.grabber = this.grabber = new OpenCVFrameGrabber(0);
grabber.start();//it seems that it crash at here

and ,after I change like this

this.grabber = OpenCVFrameGrabber.createDefault("/dev/video0");//the /dev/video0 do exist
grabber.start();//it seems that it crash at here

it still goes wrong
what should I do?
thanks very much :)

question

Most helpful comment

Sorry for my uncarefully
I just find that in another question you really answer my que;
new FFmpegFrameGrabber("/dev/video0");
it really works
thanks!

>All comments

Sorry for my uncarefully
I just find that in another question you really answer my que;
new FFmpegFrameGrabber("/dev/video0");
it really works
thanks!

Was this page helpful?
0 / 5 - 0 ratings