FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a sample C++ Vision program this year?

It appears that there's a LabView example, so I was wondering if there was (or will be) a C++ and/or Java version that recognizes this year's targets.

0 Kudos
Message 1 of 3
(4,631 Views)

Hi cbf,

We typically do not write C++/Java examples.  If we do write an example, it would be in LabVIEW.  However, posting to Chief Delphi is likely your best bet.  Also, referring to a C++ example from last year would be beneficial.  Here is a link to one on the FIRST page:

Vision Processing 2014

https://wpilib.screenstepslive.com/s/3120/m/8731/l/91395-c-java-code

Thanks,

John R

John R.
National Instruments
0 Kudos
Message 2 of 3
(3,597 Views)

Yes, I have that doc, and those samples. But the 2014 target was quite a different shape and recognition code seemed to be primarily for "hot goal" detection -- and not targetting.

Better would be 2012 example -- the rectangle above each basket.

However, we're working through it well enough at this point. It'd just be good to see if we're calculating the trapezoid correctly before we start our field experiments (probably a week or more away -- waiting for the robot to be built!).

Thanks.

0 Kudos
Message 3 of 3
(3,597 Views)