shelarbapurao / javacv

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

Feature detector issue #457

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Javacv is working properly but whenever i try a feature detection or descriptor 
extraction (ORB,SURF,SIFT etc.), i get the following error

my code:

        CvMat testImg = cvLoadImageM("/Users/bsr/test_img.jpg",
                CV_LOAD_IMAGE_GRAYSCALE);
        SIFT sift = new SIFT();
        FeatureDetector featDetect = sift.getFeatureDetector();

        KeyPoint keyPoints = new KeyPoint();
        featDetect.detect(testImg, keyPoints, null);

What is the expected output? What do you see instead?

detected keypoints should be found but get the following error

dyld: Symbol not found: 
__ZNK2cv15FeatureDetector6detectERKNS_3MatERSt6vectorINS_8KeyPointESaIS5_EES3_

Referenced from: 
/private/var/folders/_1/z5gdhg752f5dmk3jcm4qgqf80000gn/T/javacpp1396903164350235
000/libjniopencv_features2d.dylib

  Expected in: /opt/local/lib/libopencv_features2d.2.4.8.dylib

What version of the product are you using? On what operating system?

mac os x 10.9.2 and opencv 2.4.8 (installed via macports)

Original issue reported on code.google.com by basarcetinkaya@gmail.com on 7 Apr 2014 at 8:44

GoogleCodeExporter commented 9 years ago
Does this happen if you use JAR files from the CPPJARs package?

Original comment by samuel.a...@gmail.com on 11 Apr 2014 at 2:13

GoogleCodeExporter commented 9 years ago
I tried to it. No, it does not happen. I added to CPP jars to my class path and 
the error fixed. Thank you

Original comment by basarcetinkaya@gmail.com on 13 Apr 2014 at 9:47

GoogleCodeExporter commented 9 years ago
Good to hear that! Please ask your questions on the mailing list next time if 
possible, thank you.

Original comment by samuel.a...@gmail.com on 29 Apr 2014 at 1:44