Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Setting FPS and resolution of USB camera server (http://www.chiefdelphi.com/forums/showthread.php?t=154445)

viggy96 29-01-2017 20:26

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.

beijing_strbow 29-01-2017 22:57

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.

Jdkmotorhead 30-01-2017 00:48

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


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi