Hello. I am working on making our next custom dashboard in processing. I have made network tables work fine with it, now I just need to get the camera image. Does anyone know how I could get the Axis camera image and display it in processing? would I have to do a CGI request? If so, how would I do it? I know the basics of a CGI request but am inexperienced in implementation and usage.
deleted misread OP’s post
lol I guess someone liked the Custom Processing Dashboard idea The best option is probably Worley’s. It’s pretty easy to imbed a processing applet in a web browser.
I had the idea of copying the address of the in browser image and using it in processing too. Unfortunately, I found that it is an mjpg and Processing cannot load mjpgs.
HOWEVER!!! I went out hunting and found this. It seems I am not the first to want axis camera images in processing. The library worked flawlessly and the image came up. My elation at seing something work on the first try was unbelievable.
The process to make it work is simple:
install the library.
Open the camera in browser.
Right click on the live image -> copy image URL.
open the example sketch that comes with IPCapture
replace the address in
cam = new IPCapture(this, "http://212.219.113.227/axis-cgi/mjpg/video.cgi", "", "");
with whatever is in your clipboard from the earlier copy you did.
Run it!
Helped with that It only works with old versions of Processing (but it’s fine in Eclipse and NetBeans, so not worth fixing). An additional tool (in case you’re going the browser way) is Processing.Js. It makes it really easy to mesh HTML with Processing.
Sorry I don’t understand the first part of your post. What do you mean by “helped with that”, and “it only works with old versions of processing”.
The browser way works with the latest version of processing perfectly well for me, as well as with netbeans. (have not tried it with eclipse)
IPcapture. It doesn’t work with new versions of Processing, but it works fine in old versions, Eclipse, and NetBeans. Try it with the latest version of Processing. It shouldn’t work.
edit actually Stefano updated it a bit since I last worked on it. It works with Processing 2.0 Sorry for the confusion!