How to get croped image captured from CAMERA

1.3k Views Asked by At

How to get the crop image which are bounded within a section which are shown in Image.

I want my app to capture an image of a book page, which contain 4 image patterns at the corners. I want it to first match those pattern and then to remove all the part which is not available inside the boundary of those 4 images.

enter image description here

3

There are 3 best solutions below

1
On

This tutorial does it all, toy can download the sources as well:http://mobile.tutsplus.com/tutorials/android/capture-and-crop-an-image-with-the-device-camera/

0
On

I recommend you to use OpenCV for Android library.

Take a look at these SO discussions:

1
On

Do this,

 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
 intent.putExtra("crop", "true");
 startActivityForResult(intent, TAKE_PICTURE);