Age and gender recognition with JavaCV and CNN
Imesha Sudasingha

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( ~[javacv-1.2.jar:1.2] at org.bytedeco.javacv.FFmpegFrameGrabber.start( ~[javacv-1.2.jar:1.2] at org.imesha.examples.javacv.JavaCVExample.start( ~[classes/:?]at [?: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!