You're having problems because you're trying to use the WPILib vision library (built on NIVision) on the laptop. Those libraries (to my knowledge) don't exist on the cRIO. To do image processing on the laptop, you'll want to make a SmartDashboard extension extending WPICameraExtension, using some combination of WPIJavaCV and OpenCV. Check out
Miss Daisy's code from last year for some inspiration there.