Go to Post It sounds like "whirr" if you do it right, and "clack clack grunge snap @$@%^!!" if you don't. - dtengineering [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 02-13-2013, 08:50 PM
LukeP LukeP is offline
Registered User
FRC #1818
 
Join Date: Feb 2013
Location: Shreveport
Posts: 2
LukeP is an unknown quantity at this point
Getting then manipulating camera images?

Can someone give me their opinion about the best or easiest way to get the image from the camera and then use it to gather information?

We'd prefer to get the image off the CRIO to modify it and stuff then send information back to the robot. So far the only way I've thought of has been using a FTP server for getting the image, but a mentor suggested I look at SmartDashboard, would that work for what we need? Or are there any other ways or suggestions?
I wouldn't mind processing the images on the robot with just the CRIO, but I'm not sure what that'd require or if the hardware in the CRIO would even allow it.

Last year we had problems with the CRIO stalling and I was told it was because it couldn't handle what we were trying to do? (It just doesn't make sense to me because we weren't doing anything major with it?) I wasn't programming it last year so could someone also give me some ideas of what the delays were? (It might have been just the program, the programmer did it in Labview and I don't know much about it.)

Anyways, sorry for the long post, thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 02-13-2013, 10:09 PM
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Getting then manipulating camera images?

Miss Daisy's code from last year is a great example of how to use SmartDashboard and OpenCV to process images and then send the data back to the robot.

As for where to do processing, I would definitely advocate doing it on the driver station laptop. You have much more processing power available and your processing is very unlikely to compromise the robot's operations -- it's much harder to lag a laptop than a cRIO. Also, your camera will only stream to one location, while if you're processing on the cRIO and also providing a stream to the dashboard, that's double the bandwidth usage. This can be minimized by having the camera send images to the cRIO with a lower frequency, but it can't be entirely eliminated if both are receiving images.

The image, by the way, is not on the cRIO. All images are streamed directly from the camera, and if you are processing on the laptop, the cRIO does not receive any images at all. SmartDashboard uses the FFMPEG library to retrieve the images from the camera, so you don't have to worry about that bit.
__________________
I code stuff.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-14-2013, 12:53 AM
LukeP LukeP is offline
Registered User
FRC #1818
 
Join Date: Feb 2013
Location: Shreveport
Posts: 2
LukeP is an unknown quantity at this point
Re: Getting then manipulating camera images?

My original approach was to save the files from the camera to the CRIO, then getting them off the CRIO using an FTP server, and it seemed very inefficient.. But thats why I was saying it was saved to the CRIO.

But thanks for the quick reply and all the information.
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 07:51 AM.

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