Go to Post We have not always been a winning team but we have always tried to be a quality team. - WynS [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 20-01-2010, 16:01
MrWibbles's Avatar
MrWibbles MrWibbles is offline
Wibbly-Wobbly User
AKA: Adam S
FRC #2877 (Ligerbots)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Newton, MA
Posts: 21
MrWibbles is an unknown quantity at this point
Live video compression?

We want to have the robot send the camera's image, live, to the Classmate, but we're worried about bandwidth. What algorithms/formats should we use for compression? Is there anything in Labview for it?

Thanks in advance, AdamS
  #2   Spotlight this post!  
Unread 20-01-2010, 16:19
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,587
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Live video compression?

Is there something wrong with the camera image that is sent to the dashboard by the default code?
  #3   Spotlight this post!  
Unread 21-01-2010, 14:09
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Live video compression?

We use WindRiver and C++ and looking through the code there is a member function to set the compression automagically. I'm not sure how well it works though. I know for sure that the camera is slow when it's not compressed (the default code does not appear to compress the image at all). We may get a whopping 5 fps if we're lucky... But look around, there should be a simple way to do it.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #4   Spotlight this post!  
Unread 21-01-2010, 14:34
CrazyCarl461's Avatar
CrazyCarl461 CrazyCarl461 is offline
Power User
AKA: Carl Agnew
FRC #0461 (Westside Boiler Invasion)
Team Role: Coach
 
Join Date: May 2003
Rookie Year: 2001
Location: West Lafayette, IN
Posts: 189
CrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant futureCrazyCarl461 has a brilliant future
Send a message via AIM to CrazyCarl461
Re: Live video compression?

I don't know a ton about the vision system, but I noticed last year with the analyzer tool that the part of the video processing that took the longest was a VI that converted the jpeg provided by the camera into a character matrix to be used by the image processing VIs. When that was going on we only got a few FPS reliably as well. If you didn't need to image process (only wanted to look at it) I suppose that conversion would never need to happen. I'm not sure if the video it sends to the dashboard is the raw jpeg or the matrix, but either way it might be waiting for that conversion to finish.

Anyone have a better idea of exactly what it does?
__________________
My 2011 Build Season Blog
Resistance may be futile, but capacitance has potential!
© All content is protected by the honor system
  #5   Spotlight this post!  
Unread 21-01-2010, 16:25
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Live video compression?

Quote:
Originally Posted by CrazyCarl461 View Post
If you didn't need to image process (only wanted to look at it) I suppose that conversion would never need to happen. I'm not sure if the video it sends to the dashboard is the raw jpeg or the matrix, but either way it might be waiting for that conversion to finish.
The PCVideoServer simply forwards the jpegs that were compressed by the camera. They are not recompressed and they are not sent raw. Your best bet is to adjust the compression / image size that the camera is sending, not trying to recompress on the cRIO.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Live Streaming Video whosdadog FRC Control System 7 14-01-2010 18:36
Live Video on Dashboard writchie Programming 23 28-03-2009 01:14
Live Video Setup CHSboy Programming 2 18-03-2009 15:36
New Video Blog Entry: "Video from Live LabVIEW Session for FRC Competitors in Toronto LVMastery NI LabVIEW 0 13-12-2008 08:09
Live video with Kit Camera BobcatProgramer Electrical 10 11-01-2005 10:43


All times are GMT -5. The time now is 21:22.

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