我尝试使用Opencv4Android的SIFT功能检测器
我的代码如下
public void onManagerConnected(int status) {
switch (status) {
case LoaderCallbackInterface.SUCCESS:
{
fileimage = new File(Environment.getExternalStorageDirectory().getAbsolutePath()+"/Pictures/263.jpg");
image=Highgui.imread(fileimage.getAbsolutePath(),Highgui.CV_LOAD_IMAGE_COLOR);
FeatureDetector fd = null ;
fd= FeatureDetector.create(FeatureDetector.SIFT);
MatOfKeyPoint keypoints= new MatOfKeyPoint();
fd.detect(image, keypoints);
我的日志文件如下
-24 09:40:19.636: A/libc(12695): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 12695 (mples.tutorial2)