mardi 24 février 2015

Fatal signal 11 when using SUFR detector from opencv4android


I try to use the SURF Feature detector from Opencv4Android


This is my code



public void onManagerConnected(int status) {
switch (status) {
case LoaderCallbackInterface.SUCCESS:
{

fileimage = new File(Environment.getExternalStorageDirectory().getAbsolutePath()+"/Pictures/263.jpg");

if (fileimage.exists())



image = Highgui.imread(fileimage.getAbsolutePath() ,Highgui.CV_LOAD_IMAGE_COLOR);

else Log.i("activity","dont exit") ;


FeatureDetector fd = null ;

try
{
fd= FeatureDetector.create(FeatureDetector.SURF);

}
catch (NullPointerException e)
{
e.printStackTrace();
}


MatOfKeyPoint keypoints= new MatOfKeyPoint();




try
{

fd.detect(image, keypoints);


} catch (Exception e) {

e.printStackTrace();
}


My log file is the following



02-24 09:40:19.235: D/OpenCVManager/Helper(12695): Init finished with status 0
-24 09:40:19.235: D/OpenCVManager/Helper(12695): Unbind from service
-24 09:40:19.284: D/OpenCVManager/Helper(12695): Calling using callback
02-24 09:40:19.636: A/libc(12695): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 12695 (mples.tutorial2)




Aucun commentaire:

Enregistrer un commentaire