Go to Post I worship whoever cleans the robotics room. - John Gutmann [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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