Android的 - 用相机内的后台服务 [英] android - use camera from within background service

查看:98
本文介绍了Android的 - 用相机内的后台服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出是否有可能背景内使用摄像机的视频流的服务,而不是从一个正常的意图。

I'm trying to figure out if it is possible to use a camera video stream from within a background service rather than from a normal intent.

我的脑子里想的是这样的:

What I had in mind is this:

  • 从我的应用程序启动服务
  • 在该服务访问视频流,不断提取特征;根据不同的功能,它会发送网络数据包(为localhost)
  • 在用户切换到另一个应用程序! - 服务必须仍在运行,并提取特征

在试图实现这一切,我想知道这是可能的。

Before trying to implement all that, I'd like to know if it was possible.

在此先感谢

尼古拉·

推荐答案

我不认为这是可能的,摄像头需要preVIEW屏幕。见previous问题 href="http://stackoverflow.com/questions/2386025/android-camera-without-$p$pview">

I don't think this is possible as the camera needs a preview screen. See previous question here

这篇关于Android的 - 用相机内的后台服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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