View Single Post
  #11   Spotlight this post!  
Unread 15-02-2015, 01:14
Merfoo's Avatar
Merfoo Merfoo is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: America
Posts: 48
Merfoo is an unknown quantity at this point
Re: USB Camera Solution

Quote:
Originally Posted by schleprock View Post
we just got some ms lifecam hd-3000 cameras and we're getting an exception thrown from the vision code with no camera output. i'm using the intermediate vision example with the lines indicated in a previous post deleted. the exception is:

Unhandled exception: VisionException [com.ni.vision.VisionException: IMAQdxError: -1074360311: Camera not found] at [com.ni.vision.NIVision._IMAQdxOpenCamera(Native Method), com.ni.vision.NIVision.IMAQdxOpenCamera(NIVision.j ava:24455), org.usfirst.frc.team4905.robot.Robot.robotInit(Rob ot.java:27), edu.wpi.first.wpilibj.SampleRobot.startCompetition (SampleRobot.java:121), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:234)]

does anyone have any suggestions for fixing this?? i'm using the latest eclipse plugin's from wpi.

also i verified that the webcamera is working by plugging it into my laptop and viewing it.

thanks
Does the name of the camera that shows up on the roborio web interface match the one that is being supplied in the code? The name of the camera in the code is "cam0", but it may be something else. To find the name of the camera go to "roborio-xxxx.local/" in a web browser where the x is your team numbers, which would be "roborio-4905.local/" for you.

Last edited by Merfoo : 15-02-2015 at 01:16.