Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   USB camera using java that doesn't use too much bandwidth (http://www.chiefdelphi.com/forums/showthread.php?t=145934)

zeldathegood 03-19-2016 12:35 PM

USB camera using java that doesn't use too much bandwidth
 
We have followed the Follow the steps shown here: http://wpilib.screenstepslive.com/s/...ifecam-hd-3000

We followed the java in the SimpleVision example.

We have a working USB camera for our driver to see only (no vision tracking)
but when we are at competition the image freezes.

How can we dial down the bandwidth consumption for a simple USB camera that works in competition?


Assume we know nothing. We are a low budget team that builds in the teachers lounge.

Thanks in advance for your help.

::rtm::

soundfx 03-28-2016 12:08 PM

Re: USB camera using java that doesn't use too much bandwidth
 
In the code, set the size and quality to lower values. Our team uses 320x240 size and it provides clear enough vision for drivers and does not use too much bandwidth. The quality doesn't affect anything nearly as much, but lowering that might help. You can change these either in the driver station or using the setQuality and setSize methods.

redstonedash 03-30-2016 12:14 PM

Re: USB camera using java that doesn't use too much bandwidth
 
are you sure it is the bandwidth? your code might not update the image as much as you would like. do you know how often the cameras code is running?


All times are GMT -5. The time now is 07:23 AM.

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