|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
Re: Basic Camera Program?
Below is my attempt to port the simple C++ example in the WPILib guide. The arguments to EllipseDescriptor need to be changes and I didn't include any of the exception handling code. This code may not work at all because I haven't tested it with a robot but the ellipse matches have an X/Y position to the ellipses it detects.
Code:
MonoImage image = AxisCamera.getInstance().getImage().getLuminancePlane();
EllipseMatch[] matches = image.detectEllipses(new EllipseDescriptor(1.0, 2.0, 3.0, 4.0));
// do something with the matches
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Download a Basic Drive Program for a class | LavaEagle | NI LabVIEW | 4 | 21-10-2009 22:47 |
| Camera on basic framework | Arcre | NI LabVIEW | 2 | 11-02-2009 04:17 |
| Program PIC with Basic Stamp | marine14514 | Programming | 5 | 17-02-2008 15:50 |
| the old P BASIC program | Thadanator | Programming | 2 | 07-04-2005 11:52 |
| Remote Program Execution in Visual Basic | Jeff Waegelin | Programming | 6 | 14-06-2004 21:15 |