how to connect to a raspberry pi usb webcam from matlab ?

2 ビュー (過去 30 日間)
Walter Veiga
Walter Veiga 2015 年 7 月 22 日
コメント済み: William Thielicke 2021 年 11 月 9 日
Hi there, I'm trying to connect to a usb camera plugged into the raspberry pi from my Pc using matlab. I can do this easily using the simulink block V4L2 Video Capture, although i need to this in a m file. Is there a function like cameraboard to connect to usb webcams ?
I appreciate some help. Best regards, Walter

回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 7 月 23 日
  1 件のコメント
William Thielicke
William Thielicke 2021 年 11 月 9 日
To be complete...:
rpi = raspi();
camera=webcam(rpi);
imagesc(snapshot(camera));

サインインしてコメントする。


Esther
Esther 2015 年 12 月 21 日
One way you could try is to set the USB webcam up as a server and use the MATLAB Support for IP Cameras.
This may help:
  2 件のコメント
Madhu Govindarajan
Madhu Govindarajan 2015 年 12 月 21 日
There is also a MATLAB support package for USB Web cameras - http://www.mathworks.com/hardware-support/matlab-webcam.html
Esther
Esther 2016 年 1 月 7 日
But I think the author of the question wants to access the USB Camera that is connected to the Raspberry Pi, not a USB Camera that is connected directly to the PC. I don't think the USB Support Package would work in this application.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeRaspberry Pi Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by