|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Getting axis camera image on desktop.
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.
|
|
#2
|
|||||
|
|||||
|
Re: Getting axis camera image on desktop.
deleted misread OP's post
Last edited by connor.worley : 11-05-2013 at 20:13. |
|
#3
|
||||
|
||||
|
Re: Getting axis camera image on desktop.
lol I guess someone liked the Custom Processing Dashboard idea :P The best option is probably Worley's. It's pretty easy to imbed a processing applet in a web browser.
|
|
#4
|
||||
|
||||
|
Re: Getting axis camera image on desktop.
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 Code:
cam = new IPCapture(this, "http://212.219.113.227/axis-cgi/mjpg/video.cgi", "", ""); Run it! |
|
#5
|
||||
|
||||
|
Re: Getting axis camera image on desktop.
Helped with that :P 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.
|
|
#6
|
||||
|
||||
|
Re: Getting axis camera image on desktop.
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) |
|
#7
|
||||
|
||||
|
Re: Getting axis camera image on desktop.
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 :D Sorry for the confusion! Last edited by ekapalka : 11-05-2013 at 22:28. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|