Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   vision processing on laptop (http://www.chiefdelphi.com/forums/showthread.php?t=112677)

gitlitz 03-02-2013 13:51

vision processing on laptop
 
hi all,
we are trying to run the vision process on our laptop on a laptop and send the results to the crio.
We found a vision lib at
Code:

C:\Program Files\SmartDashboard\extensions\lib
but we get an error while trying to execute our code.
Our error appears at the first line:
Code:

AxisCamera camera=AxisCamera.getInstance("10.45.90.11");
Our source code is:
Code:

import edu.wpi.first.wpilibj.camera.AxisCamera;
public class Main {

        public static void main(String[] args){
                AxisCamera camera=AxisCamera.getInstance("10.45.90.11");
        }
}

When executing the code we get the following error:
Code:

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

        at edu.wpi.first.wpilibj.camera.AxisCamera.getInstance(AxisCamera.java:241)
        at Main.main(Main.java:13)

If you have a better idea on how to do the vision processing on the laptop you are more than welcome to post it here

inkspell4 03-02-2013 15:42

Ive been trying to figure out how to process the vision on the laptop

Ginto8 03-02-2013 22:36

Re: vision processing on laptop
 
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.

Greg McKaskle 04-02-2013 07:19

Re: vision processing on laptop
 
The NIVision libraries do exist on both cRIO and on Windows laptops. They are callable from C and LV and languages that can wrap C. The vision libraries are how the default dashboard does the display and the annotations.

Documentation for it is in Start>>All Programs>>National Instruments>>Vision>>Documentation. The C specific documents tend to have CVI somewhere in the name, and the Concepts manual is highly recommended.

Greg McKaskle


All times are GMT -5. The time now is 02:16.

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