|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
USB Camera using too much bandwidth
Were using the Microsoft life cam camera with java and the smartdashboard. Were at the nc regionals and the fms crew is telling us the camera is using too much bandwidth. It spikes to 17mb/s when the camera first turns on and takes down the fms system for a few seconds then settles down to 3-4 mb/s but we still get a lot of dropped packets. Here is the code we are using on the robot.
CameraServer camera = CameraServer.getInstance(); camera.setQuality(25); camera.setSize(1); camera.startAutomaticCapture("cam0"); |
|
#2
|
|||
|
|||
|
Re: USB Camera using too much bandwidth
Quote:
|
|
#3
|
|||
|
|||
|
Re: USB Camera using too much bandwidth
We had this issue at Dallas. No settings in our Java code affected the amount of data. We had to switch to the Default Dashboard and use the pull down options to turn down the resolution, down the frame rate, and turn up the compression.
|
|
#4
|
||||||
|
||||||
|
Re: USB Camera using too much bandwidth
The SmartDashboard will override the size setting in your code, and defaults to 640x480. You can change it in the properties, although it appears it doesn't save the setting.
|
|
#5
|
|||
|
|||
|
Re: USB Camera using too much bandwidth
We just got told we weren't allowed to use the Microsoft camera at all over the network @ SVR. Maybe would have been nice to discover this problem before it was given out in the kit of parts...
|
|
#6
|
||||
|
||||
|
Re: USB Camera using too much bandwidth
What was the specific reason given?
|
|
#7
|
|||
|
|||
|
Re: USB Camera using too much bandwidth
It was taking down the field control system because of using too much bandwidth. I don't believe we were given the option of experimenting with lower resolutions, though our programmer thinks it was already on the lowest. Honestly, with the tight schedules of these events, banning it outright was the right move.
I did find out it was not in the KOP, just a recommended product. But we cannot recommend it at all for a driving feed. We ended up borrowing an Axis camera. |
|
#8
|
|||
|
|||
|
Re: USB Camera using too much bandwidth
A team at LI regional appeared the have the same problem, although they had their visual settings down to a point where it was unbearable. Not sure if this plausible, but different wireless cards on different laptops might be the issue (I'm thinking the way they intercept and process packets and data is different in terns of bandwidth usage?). Another explanation is that background tasks could be consuming bandwidth.
|
|
#9
|
|||
|
|||
|
Re: USB Camera using too much bandwidth
The amount of data that a compressed image will take is not dependent on the wifi card. The dashboard and field monitor report megabits of data usage. What were the numbers? Or what were the camera settings?
Greg McKaskle |
|
#10
|
||||
|
||||
|
Re: USB Camera using too much bandwidth
One team at Northeastern had a similar issue, so there is some anecdotal evidence that the Microsoft LifeCam does not play as nicely as the Axis camera in the competition environment.
|
|
#11
|
||||
|
||||
|
Re: USB Camera using too much bandwidth
Quote:
My evidence? We used mjpg-streamer to stream *2* simulataneous Lifecam camera feeds (each was 160x120, 10fps, 30% compression -- but we resized the images to a much larger resolution so our drivers could see it, works surprisingly well) from our robot to our dashboard at our regional, and to my knowledge did not receive any bandwidth complaints from the field. Last edited by virtuald : 12-04-2015 at 11:35. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|