|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Ellipse/Shape Detection with Java
The WPI Library Users Guide has a small section on detecting shapes for this years game. Last year, there were methods to threshold the colors from the image to make it processing easier and more accurate. Obviously, this year, the camera is intended to find the target above the goals. The logic flow for this task is to take a black and white image through the getLuminancePlane method and find the elliptical shapes from this.
The C++ method to do this, DetectEllipses, is found in the MonoImage class. However, there is no equivalent method found in the MonoImage class in the Java API. Are there any ways to work around this? Or is there an eventual update that includes this method? |
|
#2
|
||||
|
||||
|
Re: Ellipse/Shape Detection with Java
The javadocs on the website do not show the detectEllipses method on MonoImage however when I open the source file (lib/WPILibJ/src/edu/wpi/first/wpilibj/image/MonoImage.java) installed by the NetBeans plugin I do see that method.
One thing you might want to check is the update URL for the NetBeans plugin changed between the initial release and now. The new update URL is: http://first.wpi.edu/FRC/java/netbea...te/updates.xml according to http://first.wpi.edu/FRC/frcjava.html. This caused me to not get any of the updates until recently. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| **FIRST EMAIL**/Java and Orbit Balls *****JAVA DISCUSSION*** | Pjohn1959 | Programming | 37 | 31-08-2009 15:55 |
| Programming with Java? | the_innovator | Programming | 11 | 27-02-2007 16:47 |
| CMU Cam2 Java app (Help with Labview GUI) | Team 1649 | Programming | 3 | 26-12-2006 14:25 |
| Learn C, C++, and Java with new board game. | Elgin Clock | Programming | 8 | 04-11-2005 13:28 |
| Robocode: Learning JAVA the fun way. While fighting with robots. | Denalin Fusion | Chit-Chat | 2 | 26-09-2005 23:22 |