如何拍摄图像只在Android定制相机的边框内 [英] How to take images only within the bounding box in android custom camera

查看:246
本文介绍了如何拍摄图像只在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆