Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   NI Vision Assistant help (http://www.chiefdelphi.com/forums/showthread.php?t=102632)

OB1 12-02-2012 12:34

NI Vision Assistant help
 
Hello. We are attempting to use NI Vision Assistant to generate code to be used in our java program. We were able to set the color range values, however, we do not know how to create the convex hull operation and finding the actual rectangles.
Thank you for your help.

Ziv 12-02-2012 14:14

Re: NI Vision Assistant help
 
What we did—and what I assume you mean by "generate"—is tweak values using the NI vision assistant, then write equivalent code in Java. (Using the assistant to write C code and wrapping that for use in Java is very nontrivial.)

Have you installed the latest NetBeans FRC plugin updates? The most recent one ports several more NI Vision functions to Java, including particle filters and convex hull operations. Both of those are methods of the BinaryImage class.

With one of the plugin updates come new examples of how to use these new vision features in Java. The examples are also available on FIRST Forge. Several teams (including 125) post their code on GitHub, so if you're in need of inspiration there's plenty of material out there.


All times are GMT -5. The time now is 00:52.

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