Need to capture images inside the rectangular view using camera in android
<p>Am creating a document scanning application in android, am using OpenCV and Scan library in my project for cropping,I have created a rectangle using drawrect in camera view, now I need to capture the images inside that rectangle portion only and display it in another activity.</p>

<p>The image in question:</p>

<p><a href="https://i.stack.imgur.com/xeNTX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xeNTX.png" alt="enter image description here"></a></p>