Log in

View Full Version : USB camera using java that doesn't use too much bandwidth


zeldathegood
19-03-2016, 12:35
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
28-03-2016, 12:08
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
30-03-2016, 12:14
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?