If you have the bitmap of the frame, you can use
Bitmap croppedBmp = Bitmap.createBitmap(originalBmp, rectanglePositionX, rectanglePositionY, rectangleWidth, rectangleHeight);
Assuming you know where your rectangle is positioned and its dimensions.