Peenoo / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

cvContourArea OpenCv 2.1 #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Samuel!!!

First of all you thank you for this interface. But i have problem with 
cvContourArea. I use Opencv 2.1 and i use this method like this result = 
Math.abs(cvContourArea( contour , CV_WHOLE_SEQ, 0)); . And i get this error 
"OpenCV Error: Bad argument (Input array is not a valid matrix)".

The whole error part is 

OpenCV Error: Bad argument (Input array is not a valid matrix)
in function , ..\..\..\src\cv\cvutils.cpp(53)
java.lang.Exception: Stack trace
    at java.lang.Thread.dumpStack(Thread.java:1206)
    at name.audet.samuel.javacv.JavaCvErrorCallback.callback(JavaCvErrorCallback.java:67)
    at name.audet.samuel.javacv.jna.cv$v21.cvContourArea(Native Method)
    at openCV.opencv.main(opencv.java:70)

How can i solve this problem?

Thanks in advance.

Regards,
Engin Öz

Original issue reported on code.google.com by o.engi...@gmail.com on 15 Oct 2010 at 3:52

Attachments:

GoogleCodeExporter commented 9 years ago
How do you get contour?

Original comment by samuel.a...@gmail.com on 15 Oct 2010 at 6:39

GoogleCodeExporter commented 9 years ago
This codes are Andol's hand recognition codes. He make it in c++ i'm trying to 
translate this code to java.

Original comment by o.engi...@gmail.com on 15 Oct 2010 at 2:02

Attachments:

GoogleCodeExporter commented 9 years ago
This code does not work in C++ either. This is not an issue with JavaCV.

Add a "contour.total > 0" before you call cvContourArea(contour , CV_WHOLE_SEQ, 
0).

Please post your questions on the discussion group if you have problems _using_ 
JavaCV, thank you.

Original comment by samuel.a...@gmail.com on 23 Oct 2010 at 3:21

GoogleCodeExporter commented 9 years ago
hi all...
i add the comment...the program runs but i don't see any output...why?

Original comment by michelec...@gmail.com on 4 Dec 2010 at 12:45

GoogleCodeExporter commented 9 years ago
What program? Can you post on the mailing list please?

Original comment by samuel.a...@gmail.com on 4 Dec 2010 at 12:48