rindarith / javacv

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

MarkerDetector#detect always returns an empty array #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create any class which uses MarkerDetector
2. Use an image with marker (or video stream)

What is the expected output? What do you see instead?
- Array of markers which are in the image is expected
- I get an empty array all the time
- So I went and debugged it and I found that marker's id was always -1. So I 
commented out the if condition where it checks if (m.id < 0) { continue;}
It then returned correct output.

Original issue reported on code.google.com by dearaaka...@gmail.com on 6 Dec 2010 at 9:39

GoogleCodeExporter commented 9 years ago
How do you generate the markers present in the video stream?

Original comment by samuel.a...@gmail.com on 6 Dec 2010 at 11:46

GoogleCodeExporter commented 9 years ago
sorry, I might be wrong. When I newly printed BCH makers, it worked fine.

Original comment by dearaaka...@gmail.com on 6 Dec 2010 at 10:37

GoogleCodeExporter commented 9 years ago
Then everything's fine? Good.. BTW, there is also the MarkedPlane class you may 
use to generate arrays of markers on a board, if that's one of your goals, as 
for example used here:
http://code.google.com/p/javacv/source/browse/trunk/procamcalib/src/com/googleco
de/javacv/procamcalib/MainFrame.java#300
Otherwise, printing them one by one of different object is fine too.

Original comment by samuel.a...@gmail.com on 7 Dec 2010 at 2:16