Ask Your Question

Revision history [back]

How to face detection and count face from file bitmap imagesView in android ?

How to detect face and count face use CascadeClassifier Method from Bitmap file.

Thanks for your expert :) and sharing.

private void onSelectFromGalleryResult(Intent data) {
Bitmap bitmap;
ImageView imgView;
        try {
            if (data != null) {

                bitmap = MediaStore.Images.Media.getBitmap(getApplicationContext().getContentResolver(), data.getData());
                imgView.setImageBitmap(bitmap);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }