Go to Post ANY team is capable of producing a winning design. This does NOT require anything more than brainpower, and time. - Racer26 [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 20-01-2012, 12:26
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Camera Image w/o CRIO?

This year, we are planing to make our own dashboard in java. If we hook the camera directly to the radio, how would we go about accessing the camera image from the computer running the driver station?
Since the Axis Camera has a URL for the MJPEG and JPEG images, could we some how stream the MJPEG directly? or would we have to constantly get JPEG and keep on updating the image on our dashboard?

This code seems like it would work but it seems like they are using a custom package. http://www.walking-productions.com/n...lash-and-java/
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2012, 12:41
rockytheworm's Avatar
rockytheworm rockytheworm is offline
Registered User
AKA: Chris Kirk
FRC #1517 (Lumberjacks)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: New Hampshire
Posts: 8
rockytheworm is an unknown quantity at this point
Re: Camera Image w/o CRIO?

We used this block of code and it worked:
Code:
cam=AxisCamera.getInstance();
cam.writeResolution(AxisCamera.ResolutionT.k640x480);
cam.writeBrightness(0);
If your camera is formatted for use through your radio it should work fine.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2012, 14:29
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Re: Camera Image w/o CRIO?

Quote:
Originally Posted by rockytheworm View Post
We used this block of code and it worked:
Code:
cam=AxisCamera.getInstance();
cam.writeResolution(AxisCamera.ResolutionT.k640x480);
cam.writeBrightness(0);
If your camera is formatted for use through your radio it should work fine.
That code goes in the CRIO, basically we want the image to go directly from the camera to the control computer. We really do not want to get the CRIO involved at all.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2012, 14:45
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
I'm pretty sure you could find the mjpeg stream via an HTTP connection
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 12:51.

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