Go to Post Being called coach for the first time by some of my team. My dad was a football player and when I told him that story he teared up a bit. Me? A Coach? - MysterE [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-05-2013, 11:19
Hypnotoad's Avatar
Hypnotoad Hypnotoad is offline
Junior Assistant Secretary of Moon
no team
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: California
Posts: 114
Hypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these parts
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.
__________________
The following sentence is true.
The preceding sentence is false.
This sentence is false.
This signature is false.
My teeth are false.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-05-2013, 16:02
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Getting axis camera image on desktop.

deleted misread OP's post
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK

Last edited by connor.worley : 11-05-2013 at 20:13.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-05-2013, 19:34
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-05-2013, 21:12
Hypnotoad's Avatar
Hypnotoad Hypnotoad is offline
Junior Assistant Secretary of Moon
no team
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: California
Posts: 114
Hypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these parts
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", "", "");
with whatever is in your clipboard from the earlier copy you did.

Run it!
__________________
The following sentence is true.
The preceding sentence is false.
This sentence is false.
This signature is false.
My teeth are false.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-05-2013, 21:44
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-05-2013, 21:52
Hypnotoad's Avatar
Hypnotoad Hypnotoad is offline
Junior Assistant Secretary of Moon
no team
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: California
Posts: 114
Hypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these parts
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)
__________________
The following sentence is true.
The preceding sentence is false.
This sentence is false.
This signature is false.
My teeth are false.
Reply With Quote
  #7   Spotlight this post!  
Unread 11-05-2013, 22:08
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi