Go to Post The only people who are dumb or ignorant in this world are the ones who don't stop and ask why. - T967 [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 21-01-2010, 10:38
Sean Raia's Avatar
Sean Raia Sean Raia is offline
Curious spectator & alumn
no team
 
Join Date: Oct 2008
Rookie Year: 2008
Location: PA
Posts: 436
Sean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond repute
Any way to speed up the camera feed fps?

We have managed to get the camera feed on to the netbook, and we have noticed that its framerate is VERY low. We know its not the camera because when we view it using its IP adress, it displays at a regular frame rate. Is there anything we can do to speed it up?
  #2   Spotlight this post!  
Unread 21-01-2010, 11:35
Delian Delian is offline
Registered User
FRC #3006
 
Join Date: Dec 2008
Location: Salt Lake City
Posts: 16
Delian is on a distinguished road
Re: Any way to speed up the camera feed fps?

This is a bit of a silly solution, but our Team, team 3006 logged into the developer account on the Classmate, and loaded the Dashboard. When you open up the Dashboard in the Developer state, it opens it as two windows, as long as you keep the lower window, the one with diagnostics, setup, etc., selected, then the frame rate is great.

If someone has a smart solution to this, please respond
  #3   Spotlight this post!  
Unread 21-01-2010, 14:25
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Any way to speed up the camera feed fps?

This is something I picked up on last year...

Lower the resolution for the camera. It's able to have a better throughput through all the stuff it has to go through before showing up on the screen.

Quality won't be as great, but it did work last year.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #4   Spotlight this post!  
Unread 21-01-2010, 14:33
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: Any way to speed up the camera feed fps?

If you are using C++, there is an AxisCamera class member function called writeCompression that should allow you to set the level of compression. I'm not sure what value it takes though...it could either be 0 to 100 or 0 to 1 (or something else). The function takes an integer. Does anyone know what values are legal?

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #5   Spotlight this post!  
Unread 21-01-2010, 15:10
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Any way to speed up the camera feed fps?

Quote:
Originally Posted by Bryscus View Post
If you are using C++, there is an AxisCamera class member function called writeCompression that should allow you to set the level of compression. I'm not sure what value it takes though...it could either be 0 to 100 or 0 to 1 (or something else). The function takes an integer. Does anyone know what values are legal?

- Bryce
why would a value NOT be leagal? the best compression range is 20-80
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #6   Spotlight this post!  
Unread 21-01-2010, 15:29
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,972
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Any way to speed up the camera feed fps?

Quote:
Originally Posted by Bryscus View Post
If you are using C++, there is an AxisCamera class member function called writeCompression that should allow you to set the level of compression. I'm not sure what value it takes though...it could either be 0 to 100 or 0 to 1 (or something else). The function takes an integer. Does anyone know what values are legal?

- Bryce
Legal as in game legal? I haven't seen any rules prohibiting compression of the data from the source (Camera) and then uncompressing it at the target (classmate).

Legal as in compression legal? 0 to 100 (It's a percentage). With black and white images you should be able to compress upwards of 90 and still have a definable edge to track on.

Remember that MJPEG is a lossy and any compression loses some of the crispness of the picture. You should test your compression to ensure that it does not affect your tracking (in different lighting as well).
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
  #7   Spotlight this post!  
Unread 21-01-2010, 15:36
Nadav Zingerman Nadav Zingerman is offline
Registered User
FRC #2230
Team Role: Programmer
 
Join Date: Jul 2009
Rookie Year: 2009
Location: Israel
Posts: 90
Nadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to behold
Re: Any way to speed up the camera feed fps?

Quote:
Originally Posted by byteit101 View Post
why would a value NOT be leagal? the best compression range is 20-80
I think he means legal software-wise, not Game-Manual-wise
  #8   Spotlight this post!  
Unread 21-01-2010, 15:56
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: Any way to speed up the camera feed fps?

Yes, legal software-wise. For instance, if the camera is looking to receive a value between 1 and 100 then 200 would not be a legal value. If the code was not written with the proper error checking who knows what would happen. Apparently legal was not the best term to use when dealing with a game with so many rules.

I would assume that because the GUI interface for the camera allows a setting between 1 and 100 that the writeCompression function would also use these values.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.

Last edited by Bryscus : 21-01-2010 at 15:59.
  #9   Spotlight this post!  
Unread 21-01-2010, 18:00
Sean Raia's Avatar
Sean Raia Sean Raia is offline
Curious spectator & alumn
no team
 
Join Date: Oct 2008
Rookie Year: 2008
Location: PA
Posts: 436
Sean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond repute
Re: Any way to speed up the camera feed fps?

our resolution is at the lowest we can get it. I will try Delians idea.
  #10   Spotlight this post!  
Unread 22-01-2010, 16:42
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: Any way to speed up the camera feed fps?

Quote:
Originally Posted by Sean Raia View Post
our resolution is at the lowest we can get it. I will try Delians idea.
I think that Delian's idea might be a quick solution, but it's probably not legal during competition.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #11   Spotlight this post!  
Unread 22-01-2010, 22:31
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,753
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: Any way to speed up the camera feed fps?

From posts on other threads, it seem that some teams are using Fast User Switch to run both the developer and driver accounts. Running the tools and the DS in the different accounts seems to have slow screen updates.

A better approach seems to be to run all of the programs under the developer account. Run the dev tool and then run the driver station from the Start menu.

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Speed of the camera nickmagus Programming 86 20-02-2009 21:40
Can we use Hot Glue on the robot in any way?? Leo 1529 Technical Discussion 11 10-02-2006 17:29
camera panning the oppsite way TheHolyLancer Programming 3 04-02-2006 13:53
Any way to see all of the reputation I recieved? Elgin Clock CD Forum Support 8 21-07-2004 12:32
Need way to fix power feed on OI Shu Song Electrical 11 25-04-2004 15:03


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

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