社区
下载资源悬赏专区
帖子详情
android camera下载
weixin_39821260
2019-08-14 04:00:29
android camera is for the test
相关下载链接:
//download.csdn.net/download/jiangshide/4879873?utm_source=bbsseo
...全文
25
回复
打赏
收藏
android camera下载
android camera is for the test 相关下载链接://download.csdn.net/download/jiangshide/4879873?utm_source=bbsseo
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
71.[开源][安卓][手机当摄像头]
Android
Usb
Camera
-master
71.[开源][安卓][手机当摄像头]
Android
Usb
Camera
-master
Android
开发之拍照功能实现(附源码)
Android
开发之拍照功能实现(附源码)
Play
Camera
_V1.0.0(SurfaceView预览
Camera
,拍照demo)
SurfaceView预览
Camera
,拍照demo),详见博客:http://blog.csdn.net/yanzi1225627/article/details/33028041
Android
调用前摄像头拍照存储,根据打开时横竖屏切换preview
android
调用
camera
时,可以自己写一个activity,赋上相关参数,打开前
camera
就可以了; 需要申请的permission,在
Android
Manifest.xml中添加: 主要功能,打开前
camera
private
Camera
openFrontFacing
Camera
Gingerbread() { int
camera
Count = 0;
Camera
cam = null;
Camera
.
Camera
Info
camera
Info = new
Camera
.
Camera
Info();
camera
Count =
Camera
.getNumberOf
Camera
s(); for (int camIdx = 0; camIdx <
camera
Count; camIdx++) {
Camera
.get
Camera
Info(camIdx,
camera
Info); if (
camera
Info.facing ==
Camera
.
Camera
Info.
CAMERA
_FACING_FRONT) { try { cam =
Camera
.open(camIdx); mCurrentCamIndex = camIdx; } catch (RuntimeException e) { Log.e(TAG, "
Camera
failed to open: " + e.getLocalizedMessage()); } } } return cam; } 根据打开时的横竖屏方向来调整preview角度 //根据横竖屏自动调节preview方向,Starting from API level 14, this method can be called when preview is active. private static void set
Camera
DisplayOrientation(Activity activity,int
camera
Id,
Camera
camera
) {
Camera
.
Camera
Info info = new
Camera
.
Camera
Info();
Camera
.get
Camera
Info(
camera
Id, info); int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); //degrees the angle that the picture will be rotated clockwise. Valid values are 0, 90, 180, and 270. //The starting position is 0 (landscape). int degrees = 0; switch (rotation) { case Surface.ROTATION_0: degrees = 0; break; case Surface.ROTATION_90: degrees = 90; break; case Surface.ROTATION_180: degrees = 180; break; case Surface.ROTATION_270: degrees = 270; break; } int result; if (info.facing ==
Camera
.
Camera
Info.
CAMERA
_FACING_FRONT) { result = (info.orientation + degrees) % 360; result = (360 - result) % 360; // compensate the mirror } else { // back-facing result = (info.orientation - degrees + 360) % 360; }
camera
.setDisplayOrientation(result); }
Android
基于google Zxing实现对手机中的二维码进行扫描 程序源码
Android
基于google Zxing实现对手机中的二维码进行扫描,项目详情http://blog.csdn.net/xiaanming/article/details/14450809
下载资源悬赏专区
13,655
社区成员
12,620,938
社区内容
发帖
与我相关
我的任务
下载资源悬赏专区
CSDN 下载资源悬赏专区
复制链接
扫一扫
分享
社区描述
CSDN 下载资源悬赏专区
其他
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章