Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can you detect rectangles with OpenCV 2.4.4?

I've been wondering about this since I can't find any solid information about detecting rectangles with the OpenCV Library 2.4.4. Is this possible after a Canny edge detection to find the largest rectangle? I could only find some C code http://stackoverflow.com/questions/8667818/opencv-c-obj-c-detecting-a-sheet-of-paper-square-detection (the top answer of the 2).

Is there a way to do this with Java? Cause I can't get the C-code to work in the Java Native Interface part of the application (I find it kind of confusing)

Can you detect rectangles with OpenCV 2.4.4?

I've been wondering about this since I can't find any solid information about detecting rectangles with the OpenCV Library 2.4.4. Is this possible after a Canny edge detection to find the largest rectangle? I could only find some C code http://stackoverflow.com/questions/8667818/opencv-c-obj-c-detecting-a-sheet-of-paper-square-detection (the top answer of the 2).

Is there a way to do this with Java? Cause I can't get the C-code to work in the Java Native Interface part of the application (I find it kind of confusing)confusing). Does anyone have any good tutorials on writing the code from the JNI part (needs to be more then C-code i assume) or a Java/OpenCV Library implementation to do this?