This procedure/software below allows one to
use the matlab standard image capture utilities
to read realtime video in matlab
It makes use of a directshow filter that takes care of
the basic authentication and MJPEG decoding to
interface directly to matlab:
1) Installed Directshow filter from www.webcamxp.com
This one: IP Camera [JPEG/MJPEG] 4.6.0.0
2) Downloaded and installed amcap - microsoft utility
3) started amcap
4) Went into devices selected:
IP Camera [JPEG/MJPEG] - this is the webcamxp direct show filter driver
5) Opened Options-> Video Capture filter
Entered appropriate parameters e.g.
Camera brand: Panasonic
Camera model: Bb-hcm 311/331/371/381 (mjpeg) (This works with BL-C210)
Host ip: 192.168.1.x
Check checkbox to use basic authentication
entered username password
upped frame rate to 30
6) save, closed window
7) selected options->preview
8) selected options->preview (unchecked)
9) slected options->preview
10) previewed that it worked correctly
11) closed amcap
12) opened matlab
13) determined the webcamxp directshow driver device number
e.g.
temp = imaqhwinfo('winvideo');
temp.DeviceInfo(2) - device number can
move around for instance below the directshow filter is device 3
vid = videoinput('winvideo',3,'RGB24_640x480');%
preview(vid)
MOST IMPORTANTLY, AMCAP can not be open while trying to preview
in MATLAB - matlab will look to 127.0.0.0 if amcap is open.
once it is closed, matlab will pick up the correct setting
from the directshow filter driver and go to the correct ip
address
Good entry to set parameters of device in matlab
http://www.mathworks.co.uk/matlabcentral/newsreader/view_thread/281672#743565
Tuesday, July 27, 2010
Subscribe to:
Post Comments (Atom)
Hello,
ReplyDeleteI am trying to interface a SONY RX570N with Matlab.I tried the steps that you had illustrated and it worked till AMCap preview. But After that Matlab is not recognizing the directshow filter device.Can you please suggest something that I can do?