Quote:
Originally Posted by RufflesRidge
OP, you should check to make sure that you are actually getting a non-null image of non-zero size back from your call to GetImage. If you are calling GetImage every 20ms that's 50FPS which the camera can't provide, I haven't played with this enough to know if that's why your having an issue, but it would be my first suspicion.
|
This was my guess as well. How to I check if it is non-null? The WPILIB image class has no public functions or attributes at all. It's very confusing... like how can I convert between the Image returned from the USBcamera and the other wpilib image classes like ColorImage (which have public functions like thresholding or w/e)? The AxisCamera class has functions to return these other types of images, but not the USBcamera. Thanks for the help.