Quote:
Originally Posted by schleprock
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.