Did anyone tried to snap pictures from an AXIS Ethernet webCam via IgorPro (maybe via easyHttp)
stefanm
we have Axis WebCams, some really nice DomeCameras to look at our experiments (Synchrotron/ Beamline). Did anyone tried to snap pictures from an AXIS webCam (http://www.axis.com/products/cam_p5534/index.htm) via IgorPro (maybe via easyHttp)? I don't want to reinvent the wheel, if somebody already did it …
Thanks in advance for the feedback and best regards
Stefan Mangold
So I read the manual, and I think you will be able to do what want, and perhaps more. The manual says you can get still shots from the camera:
easyHttp/File=fname "http://<ip>/axis-cgi/jpg/image.cgi"
or
easyHttp/File=fname "http://<ip>/axis-cgi/jpg/image.cgi", output
//output then contains a JPEG image
It may be possible to do more if you can interact with the webpage programmatically (bearing in mind easyHttp doesn't do Javascript). There are addons for Chrome and Firefox that allow you to figure out what requests your webbrowser is making of the webpage. You can then replicate those commands in an easyHttp request. E.g. You find out that zoom and pan requests to the webpage can be encoded in a POST type request:
"easyHttp/File=fname "http://<ip>/axis-cgi/jpg/image.cgi=zoom=10&pan=10""
The next point is that the SOCKIT xop is useful for raw TCP/IP communication. If you can reverse engineer the protocol you can do whatever you want to do.
Finally, I wrote an XOP called webby for OSX. This creates a browser window within IGOR. It's a little sketchy in terms of usability (if it still even works), but it may be worth checking out.
October 19, 2013 at 03:28 pm - Permalink
thanks for your help, is there more documentation available?
Best regards
Stefan
October 21, 2013 at 02:58 am - Permalink
October 21, 2013 at 03:11 am - Permalink
Works fine (even with passwords);
Best regards
Stefan
October 21, 2013 at 08:25 am - Permalink