Usb Camera doesn't show up in ShuffleBoard

Hi there, we are trying to connect to an old microsoft webcams from RoboRio (which is a part of the package we received from First for the competition a few years ago, not sure if they are still sending them ), yet we couldn’t achieve that. I tried every way I could have found. and none of them worked. In the shuffleboard I am able to see the device and its specifications ( even the brand and other trivial stuff are shown there), However we don’t receive any frames.

We use Java btw

In the docs, it is said that putting CameraServer.startAutomaticCapture() into robot init would do the magic, it didn’t.

I also saw few examples using CameraServer.getInstance().startAutomaticCapture but in the latest library which I use startAutomaticCapture function became static I believe.

As a last resort I tried:

    UsbCamera usbCamera = new UsbCamera("USB Camera 0", 0);
    MjpegServer mjpegServer1 = new MjpegServer("serve_USB Camera 0", 1181);
    mjpegServer1.setSource(usbCamera);

This didn’t work either.

IDK this is what happened. Any help?

It might not be this, but I was having the same problem a bit ago and this worked:
In ShuffleBoard, click the little arrow thing on the left to open up all the network table entries, then you should see some values for the camera that you can click and drag into shuffleboard. I forget what its named, but one of them should be the camera stream.

1 Like

Yep I tried to pull it and put onto shuffle board, in the frame there is no camera but blank black square.

Have you tried testing the camera on a normal computer to see if it works?

It doesn’t. We’ve changed the camera and it works right know. Don’t have a clue why we didn’t try it beforehand. Thx :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.