opencv – Face Detection in Android?-ThrowExceptions

Exception or error: I am currently working on an experimental camera app. I’m looking into implementing face detection at the moment and am currently weighing up my options. I have considered the OpenCV port available for Android and using their face detection functions, but from demos I have seen of previous implementations, the camera seems …

android – How Does OpenCV ORB Feature Detector Work?-ThrowExceptions

Exception or error: I want to implement a feature-based alignment algorithm using the ORB feature detector and extractor. So far, I extracted the features using ORB class from OpenCV ORB orb; orb(gray_image,Mat(),features.keypoints,features.descriptors); and matched them using the knnMatch function from openCV matcher.knnMatch(features1.descriptors, features2.descriptors, pair_matches,2); After that I am trying to find a homography using findHomography …

opencv – convert Bitmap to Mat after capture image using android camera-ThrowExceptions

Exception or error: Mat b = new Mat(); Bitmap bmp = getIntent().getExtras().getParcelable(“image_send”); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_display_image); Mat tmp = new Mat (bmp.getWidth(), bmp.getHeight(), CvType.CV_8UC1); Utils.bitmapToMat(bmp, tmp); Imgproc.cvtColor(tmp, tmp, Imgproc.COLOR_RGB2GRAY); //Imgproc.cvtColor(tmp, tmp, Imgproc.COLOR_GRAY2RGB, 4); Utils.matToBitmap(tmp, bmp); iv = (ImageView) findViewById(R.id.imageView1); iv.setImageBitmap(bmp); } Can’t display the bmp. My app has stopped after taking …

android – No implementation found for long org.opencv.core.Mat.n_Mat() error Using OpenCV-ThrowExceptions

Exception or error: I am using OpenCV for adaptiveThreshold. My code for image processing using OpenCV is like this: imageMat=new Mat(); Utils.bitmapToMat(bmp, imageMat); Imgproc.cvtColor(imageMat, imageMat, Imgproc.COLOR_BGR2GRAY); Imgproc.GaussianBlur(imageMat, imageMat, new Size(3, 3), 0); Imgproc.adaptiveThreshold(imageMat, imageMat, 255,Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY_INV, 5, 4); But I am getting an error while declaring Mat: No implementation found for long org.opencv.core.Mat.n_Mat() (tried Java_org_opencv_core_Mat_n_1Mat …