Age and gender recognition with JavaCV and CNN
Imesha Sudasingha
828

Hi, Imesha Sudasingha! I am having trouble with running the project. It gives me this error:

[Thread-1] ERROR JavaCVExample — Error when initializing the frame grabber
org.bytedeco.javacv.FrameGrabber$Exception: avformat_open_input() error -16: Could not open input “/dev/video0”. (Has setFormat() been called?) at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:437) ~[javacv-1.2.jar:1.2] at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:385) ~[javacv-1.2.jar:1.2] at org.imesha.examples.javacv.JavaCVExample.start(JavaCVExample.java:71) ~[classes/:?]at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

In terminal /dev/video0 is recognized, so the problem shouldn’t be with that. Does that have to do something with javacv-1.2.jar? Thanks!