2

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

Dwivedi Ji
  • 7,725
  • 5
  • 55
  • 76

3 Answers3

1

I recommend you to use OpenCV for Android library.

Take a look at these SO discussions:

Community
  • 1
  • 1
ArtemStorozhuk
  • 8,542
  • 4
  • 30
  • 52
0

Do this,

 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
 intent.putExtra("crop", "true");
 startActivityForResult(intent, TAKE_PICTURE);
Debarati
  • 3,256
  • 2
  • 16
  • 30
  • Thanks for quick reply but This is not an answer for my question, I want to crop automatically according to patterns, In my case, there are four image pattern in my case present at the corners...I want them to recognize and then to crop from there. – Dwivedi Ji Aug 20 '12 at 13:12
-1

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/

TharakaNirmana
  • 9,667
  • 8
  • 45
  • 67