[問題] linux下使用webcam
各位好:
最近在寫對webcam擷取的影像做處理的程序
開發環境為linux(ubuntu 14.04 64-bit)
問題代碼如下:
vidobj = videoinput('linuxvideo',1);
建立video object沒有問題
但想要預覽卻會報錯如下:
preview(vidobj);
Warning: Unable to reset the crop area. Perhaps the device is in use.
??? Error using ==> imaqdevice.preview at 181
Could not connect to the image acquisition device. Device may be in use.
start, getsnapshot同樣錯誤
同個webcam在Windows下可以正常運作,
在linux的其他視訊軟體如cheese也都沒有問題
就是在linux下Matlab有問題
Google了半天也找不到解答,
所以只好上來求救
如果有別的在linux下使用webcam的方法也可以
感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 67.194.226.121
※ 文章網址: http://www.ptt.cc/bbs/MATLAB/M.1416460201.A.F18.html
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章