can any dslr camera be used as webcam in ROS
i am using a dslr camera as a webcam in ros but i am getting this error
[ERROR] [1459312203.054820640]: Cannot open '/dev/video0': 13, Permission denied.
Please help me
Asked by rak on 2016-03-29 23:35:57 UTC
Answers
I think you should add your user name to the group "video" in order to be able to access video devices. Try:
sudo usermod -a -G video your_user_name
Asked by Mehdi. on 2016-03-30 03:03:02 UTC
Comments
Thank you Sir I did what you just said but now i am getting this error [ERROR] [1459400236.521145040]: Cannot identify '/dev/video0': 2, No such file or directory
Asked by rak on 2016-03-31 00:02:39 UTC
it might be that your webcam was added as /dev/video1
. Try running ls -l /dev | grep video
to see what video devices are on your system.
Asked by Mehdi. on 2016-04-01 04:06:12 UTC
I tried ls -l /dev | grep video and it give me this answer: crw-rw---- 1 root video 29, 0 Apr 4 14:49 fb0 crw-rw----+ 1 root video 81, 0 Apr 5 09:45 video0
Asked by rak on 2016-04-04 23:24:53 UTC
Comments
It's worth making sure
/dev/video0
actually exists, and a standard webcam viewer can open and view it.Asked by lucasw on 2016-03-30 12:41:41 UTC
@rak: please do what @lucasw suggests. That is the first thing you should do.
Asked by gvdhoorn on 2016-04-01 01:25:10 UTC
@lucasw: i tried this command "ls /dev/vid*" after connecting webcam and get this"/dev/video0 " but when i do same with my dslr camera i get this error "ls: cannot access /dev/vid*: No such file or directory "
Asked by rak on 2016-04-04 23:38:31 UTC
Does your dslr even support being used as a webcam? Linux may not support it even if it can be used as a webcam in Windows.
Asked by lucasw on 2016-04-05 07:27:12 UTC
i have nikon D5300 which is working in ubuntu through darktable software
Asked by rak on 2016-04-06 01:48:36 UTC