![]() |
USB Camera on the SmartDashboard
Hey everyone! We've been having some issues with the USB camera not showing up on the SmartDashboard. Many of the threads I've read on here haven't given us any significant results, about our issue.
We are getting the "Huffman table not defined" error - we're running on a 64 bit OS. I had two cameras working the first time I tried it, and then the next day, we couldn't even get one to work. There is a reading on the DriverStation, when the USB Camera HW option is selected, but no image display. :confused: |
Re: USB Camera on the SmartDashboard
Have you tried my solution? http://www.chiefdelphi.com/forums/sh...d.php?t=134404
|
Re: USB Camera on the SmartDashboard
Thank you for your patch, seems like it's an awesome solution - but I'm not getting any visual from the camera still. :ahh:
|
Re: USB Camera on the SmartDashboard
Quote:
Just to clarify - are you using SmartDashboard or the LabVIEW/default dashboard? Do you get the same error or a different one when you use my version of the applet? If you are getting an error with my applet, there should be files placed at C:\Users\<user name>\SmartDashboard\extensions\ named error.txt and frame.jpg. Can you upload them? Thanks, |
Re: USB Camera on the SmartDashboard
1 Attachment(s)
I am using the Simple Vision example code
Code:
CameraServer::GetInstance()->SetQuality(50);I added the "cam1", however, because we've been having issues with the RoboRIO not registering "cam0", but instead will just recognize the camera as cam1 and up. On our prototype robot, we're having success with one camera - but not on our "final" robot, even when using the same RoboRIO, and code from our prototype robot. We had success with both the SmartDashboard and the standard Driver Station on our prototype robot. Here's the error log Attachment 18374 The frame.jpg has no data in it. |
Re: USB Camera on the SmartDashboard
Try removing the first call to StartAutomaticCapture. From the source code for CameraServer, it looks like only the first call to StartAutomaticCapture will have any effect, so your code will be trying to stream from cam0.
See here for instructions on determining the names for your camera(s): http://wpilib.screenstepslive.com/s/...amera-C++\Java |
Re: USB Camera on the SmartDashboard
Copying and pasting the code from the Image Processing example code worked for us. You just have to make sure to put each section of code in the right place.
|
Re: USB Camera on the SmartDashboard
Just having one call to StartAutomaticCapture with the correct name (ie cam2) got things going. We will give up on getting 2 cameras going.
Now the image is seems overexposed. If I use change speed slider bar on dashboard, the image is good for one or 2 update, then back to overexposed. Any ideas? |
Re: USB Camera on the SmartDashboard
Quote:
Code:
#include "WPILib.h"Quote:
Code:
CameraServer::GetInstance()->SetQuality(50); |
Re: USB Camera on the SmartDashboard
Thanx Ryan, we will try those things on spare robot. The students have a bad case of Bag and Tag Burnout, so we will hit it on Saturday.
|
| All times are GMT -5. The time now is 10:07 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi