cdut007 / javacv

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

cvCanny can't find java.awt #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Loading an image
2. performing gray scale and smoothing operations
3. running cvCanny(image, binImage, 10, 100, 3);

What is the expected output? What do you see instead?
I except the function to find the edges instead I get a crash with the errors: 
http://pastie.org/2206958

What version of the product are you using? On what operating system?
Latest JavaCV, Windows XP Professtional SP3, Android 2.2 HTC Desire

Original issue reported on code.google.com by mathias....@gmail.com on 13 Jul 2011 at 12:46

GoogleCodeExporter commented 9 years ago
Can you check the specs for the function of cvCanny() and makes sure all your 
parameters respect those specs?

Original comment by samuel.a...@gmail.com on 13 Jul 2011 at 2:21

GoogleCodeExporter commented 9 years ago
Yeah, you're spot on again. cvCanny worked when I changed the threshold values 
to >1.

Then I got the same error on cvCvtColor(image, grayImage, CV_BGR2GRAY); 
And there I changed the channels on grayImage from 4 to 1 then it worked (image 
has 4 channels! :S). Now i'm stuck on cvFindContours(image, memoryStorage, 
contourList, contourPointerSize, CV_RETR_LIST, CV_CHAIN_APPROX_SIMPLE);

But I guess it's just a silly parameter error there again.

BTW: Do you know any tutorial that shows how I detect rectangles? Everything 
I've found so far is too hard to understand for me because I've never used 
advanced math in programming.

Original comment by mathias....@gmail.com on 13 Jul 2011 at 2:43

GoogleCodeExporter commented 9 years ago
Yes this was too a parameter error, all fixed now. Though I ran in to another 
problem. The function returns a blank image, any ideas? 
http://pastie.org/2212232

Original comment by mathias....@gmail.com on 14 Jul 2011 at 12:37

GoogleCodeExporter commented 9 years ago
I don't know. Please ask your questions on the mailing list. This is *not* an 
/issue/ with JavaCV.

Original comment by samuel.a...@gmail.com on 16 Jul 2011 at 4:10