Virtual Camera Support for Matlab Image Acquisition Toolbox
8 ビュー (過去 30 日間)
古いコメントを表示
Dear Matlab Support:
I would like to ask if there is any easy way to have virtual cameras working with the Image Acquisition Toolbox.
I'm seeking to stream MJPEG videos from IP Cameras to Matlab. After searching all Matlab Central and reading documentation, I know such a feature is currently not directly supported. Whilst alternatives such as capturing only a single JPEG snapshot or using mexopencv do exist, they are not desirable in my case.
I was trying to create virtual cameras using two alternatives: one is to use Axis Streaming Assistant (my IP cameras are Axis), and the other is to use IP Camera Adaptor (<http://ip-webcam.appspot.com)>. In both cases, I was able to create a virtual camera forwarding MJPEG stream from the real IP camera. I have verified that the virtual camera works in instant messaging applications (such as Skype).
However, Matlab Image Acquisition Toolbox does not detect these virtual cameras. I have installed all possible specific and generic camera packages. The Image Acquisition Toolbox only detects the built-in physical camera on my laptop ('winvideo'). I have Matlab 64 bit R2014a on my laptop.
Therefore, I would like to know if there is any easy way to get virtual cameras detected by Matlab? Or is it a current limitation and it would require writing a specific driver for the virtual camera? Once again, I note that other instant messaging applications can detect both the physical and virtual cameras on my laptop.
Thank you,
Sonny
0 件のコメント
回答 (2 件)
Bruno Pop-Stefanov
2014 年 10 月 22 日
Hi Sonny,
I read that Axis Streaming Assistant creates a DirectShow device. Can you confirm that this is the case for the virtual camera that you are creating?
If the virtual camera is indeed a DirectShow compliant device, please try to run the detectDevices utility to check whether it is compatible with Image Acquisition Toolbox. The utility can be downloaded from the following page:
Note that there can be an incompatibility even if the virtual camera is DirectShow compliant. For example, the DirectShow driver and MATLAB must use the same bitness -- either both 32-bit or both 64-bit. If they are not, then you won't be able to use the Axis IP camera with Image Acquisition Toolbox.
Andrei
2018 年 3 月 19 日
IP Cameras are directly supported in MATLAB as of MATLAB R2015a https://www.mathworks.com/hardware-support/ip-camera.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!