Go to Post Teams rarely win FIRST events because they can complete actions that nobody else can; they win because they do things faster than others. - Madison [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2017, 20:26
viggy96 viggy96 is offline
Registered User
FRC #3331
Team Role: College Student
 
Join Date: Jan 2015
Rookie Year: 2010
Location: Charlotte
Posts: 59
viggy96 is infamous around these partsviggy96 is infamous around these parts
Setting FPS and resolution of USB camera server

Basically, the title. I want to use the roboRIO to forward the image from a Microsoft Lifecam to a Raspberry Pi, at about 12 - 15 FPS @ 240p, as well as have the stream be visible on the driver station.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2017, 22:57
beijing_strbow beijing_strbow is offline
Registered User
FRC #5968 (Cyborg Indians)
Team Role: Programmer
 
Join Date: Aug 2016
Rookie Year: 2016
Location: Kansas
Posts: 51
beijing_strbow is an unknown quantity at this point
Re: Setting FPS and resolution of USB camera server

This is how you do it in Java.
Quote:
UsbCamera camera = new UsbCamera("cam0",0);
camera.setFPS(15);
camera.setResolution(320, 240) //320 = width, 240 = height
CameraServer.getInstance().startAutomaticCapture(c amera);
Accessing the stream from the Pi is a bit more difficult though, and I'm not entirely sure how to do that.

We use separate cameras for streaming and vision processing, because it works much better for processing if you turn the brightness and exposure way down so you can only see the really bright stuff. LifeCams are pretty cheap, so it may be worth looking into.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2017, 00:48
Jdkmotorhead's Avatar
Jdkmotorhead Jdkmotorhead is offline
Registered User
FRC #5102 (The Underbots)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Santa Maria CA
Posts: 20
Jdkmotorhead is an unknown quantity at this point
Quote:
Accessing the stream from the Pi is a bit more difficult though, and I'm not entirely sure how to do that.
Here's how to access the stream in grip, it would probably be similar on the Pi:

https://www.chiefdelphi.com/forums/s...d.php?t=154388
__________________
"It's not a software issue."
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 22:48.

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