Open portalBlock opened 9 years ago
Hi @portalBlock,
The Raspicam module is not supported by v4l and this is why it cannot be detected by Webcam Capture API. I tried to write dedicated driver to work on top of MMAL instead of v4l, but there was no Java binding at this time for MMAL, so I failed with this task.
Thanks for your response @sarxos, do you know of any library that does support the Raspicam? If not then I guess I will use an external webcam.
@portalBlock, if you are asking about Java library, then the answer is no - I'm not aware of any Java library that supports Raspicam module. But in the area of non-java projects I read somewhere that OpenCV supports it (so maybe JavaCV support it as well), but I cannot verify this information to be true since I never tested this solution.
Thank you very much, and thanks for the awesome library!
Hi @portalBlock,
The Raspberry Pi Camera Module is now working with Webcam capture API. After the camera is connected and configured you have to enable bcm2835-v4l2
. Everything is described in details on this wiki page:
Then, you have to use V4L4J driver for Webcam Capture API:
static {
Webcam.setDriver(new V4l4jDriver());
}
public static void main(String[] args) {
Webcam webcam = Webcam.getDefault();
// ... etc
}
Thus I'm closing the issue.
Hi I am trying to get this library to work with the Raspberry Pi model B+ and the Raspicam but it seems to not detect the camera. I was just wondering if there was support for this or not, and if not would it be possible for you to add support? If it already does support the Raspicam are there any special steps needed to get it working?