|
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.
|