如何只在Android中自定义相机边框拍摄图像 [英] How to take images only within the bounding box in android custom camera
本文介绍了如何只在Android中自定义相机边框拍摄图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近,我发现了一个应用程序,像下面的图片框内仅捕获图像。我应该使用SurfaceView?还是有一些其他的技术来做到这一点?我做了一个相机应用与surfaceview和思考实施蓝框像下面这样我就可以在2个蓝色箱子内所拍摄的图像图像。
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.
推荐答案
您可以捕捉整个图像,但拍摄后仅裁剪目标区域。 :)
You can captures the whole image, but just crop the target area after capturing. :)
这篇关于如何只在Android中自定义相机边框拍摄图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文