问题
Recently, I found a app that captures only the images within the boxes like the image below. Should I use a SurfaceView ? or are there some other technique to do this ? I made a camera app with surfaceview and thinking about implementing a blue box like the image below so that I can take the images within the 2 blue boxes.

回答1:
You can captures the whole image, but just crop the target area after capturing. :)
来源:https://stackoverflow.com/questions/29715313/how-to-take-images-only-within-the-bounding-box-in-android-custom-camera