Go to Post Mentors learn from, are inspired by, and emulate each other. A team with a great lead mentor leads to a productive, inspired, and ultimately successful group of mentors. - Jared Russell [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2012, 13:40
Sandahl Sandahl is offline
Registered User
FRC #2883
 
Join Date: Nov 2011
Location: Warroad Minnesota
Posts: 2
Sandahl is an unknown quantity at this point
Axis - Image Lag

We are having issues getting the camera image to be fluid. We are using Labview. We believe the issue has to do with overall frame rate and compression that is being used. We are not sure where these setting are to be modified so they are maintained when viewed in the driver station. We have tried setting the resolution to 160x120, but the image shown is always 320x240. Can someone point us in the right direction.

Thanks
Team 2883
  #2   Spotlight this post!  
Unread 17-02-2012, 13:54
TogetherSword8 TogetherSword8 is offline
Registered User
FRC #0888 (Robotiators)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Glenelg High School
Posts: 85
TogetherSword8 is an unknown quantity at this point
Re: Axis - Image Lag

We are also using LabView, and our camera happened to just work. We didn't even know we had it hooked up until we accidentally opened the wrong program and all the sudden we had the picture. Maybe try restoring it to default settings?

Team 888
  #3   Spotlight this post!  
Unread 17-02-2012, 20:15
Efiske Efiske is offline
Registered User
FRC #2367
 
Join Date: Feb 2012
Location: Mountain View, CA
Posts: 5
Efiske is an unknown quantity at this point
Re: Axis - Image Lag

It's strange, but for me the camera lag goes down when you crank up the camera settings. So, set size to 640x480, and compression to about 10.

You do this by opening up Begin.vi and changing the inputs into the various Camera VIs.

Alternatively, if your programmer has already implemented the vision processing code, that tends to mess with the camera's settings. Make sure you're using the default code (e.g. make a new project).
  #4   Spotlight this post!  
Unread 17-02-2012, 20:25
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Axis - Image Lag

The dashboard and cRIO have largely independent sessions to the camera. I suspect that there are settings which are shared between them, but I think I've also seen that the robot can request one image size and the dashboard another, and the camera gives everyone what they ask for.

I do not believe that setting the camera setting on the cRIO to 640x480 is a good move. It takes about 100ms to decode that image, and I don't see how it will improve the framerate to the dashboard.

If you are working on a good framerate to the dashboard, you can open the source to it and change the settings in the sample code. It uses the default cluster of 30,30,320x240 -- 30fps, 30% compression, and 320x240 pixels in size. Create the cluster constant if you want to make changes.

Before doing that, I'd add a loop timing to see how often it runs and see if you can determine the cause. One thing to watch for is low lighting. The camera will lengthen the exposure if the light levels are too low. This is unlikely to happen at competitions, but could easily happen in a practice or shop environment.

Greg McKaskle
Closed Thread


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 00:50.

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