View Single Post
  #1   Spotlight this post!  
Unread 09-02-2012, 01:12
jviolette123 jviolette123 is offline
Registered User
FRC #1318
 
Join Date: Feb 2012
Location: Issaquah, WA
Posts: 10
jviolette123 is on a distinguished road
Rectangle corner extraction in JavaCV with source

Here is a sample program that goes through the essential JavaCV commands to convert a colored, distorted rectangle into a set of corners.

Two approaches are given. Both are close, but not quite there. The important part is that this program cuts through all the difficult 'how do I call JavaCV' questions. Maybe someone else can improve on the answers given. We are going to continue to refine this program as well.

Let's see who gets there first.

Quick start:
Unzip the eclipse project RectangleDetectJavaCV. The windows 64 bit javacv jar files are included. This assumes c:\opencv is your install directory for opencv, not included). Also verify the javacv source paths, etc. Source paths are not required, but are very helpful.

All paths are hard-coded for simplicity, so you will have to change them to suit your environment.

Use the supplied image 20.jpg to get the results in processed20.zip.
Attached Thumbnails
Click image for larger version

Name:	20.jpg
Views:	345
Size:	85.1 KB
ID:	11811  Click image for larger version

Name:	092_goodFeaturesEdgeOverlay.jpg
Views:	188
Size:	31.7 KB
ID:	11813  Click image for larger version

Name:	092_goodFeaturesRawOverlay.jpg
Views:	233
Size:	31.7 KB
ID:	11814  
Attached Files
File Type: zip processed20.zip (229.7 KB, 319 views)
File Type: zip RectangleDetectJavaCV.zip (1.97 MB, 631 views)
Reply With Quote