Go to Post You mean i can do something with the Kinect other than put large dents in wall with a robot? Rad.. - rachelholladay [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-22-2016, 12:28 PM
noahl98 noahl98 is offline
Registered User
FRC #1350
 
Join Date: Jan 2016
Location: Rhode Island
Posts: 1
noahl98 is an unknown quantity at this point
USB Camera giving Invalid Image error

My team has been trying to set up camera feedback through the dashboard using Java. I have added the sample code from the Simple Vision example in eclipse.
When I deploy the code to the rio and start up the driver station I get this error.
Code:
Error when getting image from the camera: invalid image at pos 56403 (0) at edu.wpi.first.wpilibj.CameraServer.capture(CameraServer.java:222) 
edu.wpi.first.wpilibj.CameraServer$2.run(CameraServer.java:192) 
java.lang.Thread.run(Thread.java:745)
This error keeps spamming the log until I disconnect from the rio.
We are using a Logitech C170 web cam. I know that this camera hasn't officially been tested but it was the only one we had access to. Does this error mean that this camera isn't compatible?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-29-2016, 11:45 PM
Lennie Lennie is offline
Registered User
FRC #5818
 
Join Date: Jan 2016
Location: Goleta CA
Posts: 1
Lennie is an unknown quantity at this point
Re: USB Camera giving Invalid Image error

I used to mentor for Team 1717 and we only used the AXIS network cameras which worked fine in both C/C++ and Java. This year I'm mentoring a rookie team 5818 and we are trying to use the USB Microsoft Lifecam and are encountering this same error and the FPS is only 3-4 fps at 320x240. We noticed a delay of .1 seconds in the Java CameraServer which we reduced but still are unable to achieve a decent frame rate. Please help!
Reply With Quote
  #3   Spotlight this post!  
Unread 01-30-2016, 04:24 PM
legts legts is offline
Autonomous Queen
FRC #2399 (The Fighting Unicorns)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Ohio
Posts: 73
legts is an unknown quantity at this point
Re: USB Camera giving Invalid Image error

My team used the same camera last year. Our camera code is here: https://github.com/frc2399/2015-code...bot/Robot.java

It might be useful to look at it, let me know if you have questions!
__________________
Programming Captain on team 2399 for the 2016 season.
Programmer on team 2399 The Fighting Unicorns since 2014!
Engineering Inspiration Award GPR 2015
Semi-finalist Buckeye 2015 (thanks 4269 and 1987!)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:26 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi