Using webcam with ImageJ on Raspberry Pi

Hi…i am working on a project which involves using ImageJ to analyse pictures taken on the Pi. I have managed to get ImageJ working on the Pi. However, I want to be able to directly take pictures on the Pi (with a webcamera) through ImageJ. I know there is a plugin (Webcam Capture) which could let me do this (it works on a normal computer), but for some reason I am unable to put the files for Webcam Capture into the ImageJ folder in the Pi. I am getting a message saying that the permission was denied.
I am looking for anyone who can help with getting the plugin working on ImageJ, or perhaps finding an alternative way of using ImageJ to take pics on the Pi.

1 Like

Hi AraldoJanes,
I found fswebcam http://www.sanslogic.co.uk/fswebcam/ to be a more efficient way of acquiring webcam images on the Raspberry Pi.
You can call it from the command line, so it’s also easy to uses from a macro through the exec command.
https://imagej.nih.gov/ij/developer/macro/functions.html#exec
Fswebcam also allows to set webcam properties if they are available using a configuration file. See https://github.com/fsphil/fswebcam/blob/master/example.conf for an example.
Sincerely,
Jerome.

1 Like