Closed GoogleCodeExporter closed 9 years ago
Would you have some code snippet that I can try and run? Thanks
Original comment by samuel.a...@gmail.com
on 6 Apr 2013 at 11:57
Let's see.. I think I understand what you are doing wrong from your unclear
explanations.
You should allocate "good_matches" this way:
DMatch good_matches = new DMatch(total_number_of_matches);
And call detect() this way:
detector.detect(image, keys, null);
And make sure to keep Java references to all C++ objects you create. If you do
not keep Java references, the underlying C++ objects may get garbage collected
and it may causes crashes as you describe.
Does that fix everything?
And please ask such questions on the mailing list next time if possible! Thank
you
Original comment by samuel.a...@gmail.com
on 13 Apr 2013 at 2:33
Original issue reported on code.google.com by
McBo...@gmail.com
on 3 Apr 2013 at 3:59Attachments: