如何使用Android摄像头的背景是什么? [英] How to use Android Camera in Background?

查看:373
本文介绍了如何使用Android摄像头的背景是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个应用程序需要记录在后台的视频并进行处理。

I'm currently developing an app which need to record video in background and process it.

(它需要获得相机preVIEW数据实时在背景和需要图像处理的preVIEW数据)

(It needs to get camera preview data real-time in background and have to image process the preview data)

不过,要实现它,我需要使用摄像头和OpenCV的服务,这似乎是不可能用JavaCameraView在OpenCV中和Android.Hardware.Camera不使用任何preVIEW。

However, to achieve it, I need to use Camera and OpenCV as Service, and it seems that it is impossible to use JavaCameraView in OpenCV and Android.Hardware.Camera without using any preview.

下面是我的问题。

  1. 我听说NativeCamera在OpenCV的可用于这一目的。可能吗? (可能的例子吗?)

  1. I heard that NativeCamera in OpenCV can be used for this purpose. Is it possible? (Possibly with examples?)

有没有办法,我可以使用JavaCameraView(或类似的东西)用于此目的的任何方法?我目前使用的Galaxy S4。

Is there any method that I can use JavaCameraView(or similar stuff) for this purpose? I currently use Galaxy S4.

有没有,如果Android不(不使用preVIEW使用相机preVIEW没有任何表面上来看,还是工艺相机数据)支持这种方法?任何可能的解决方法

Is there any possible workarounds if android doesn't support such method?(Using Camera Preview without any surface view, or Process camera data without using preview)

(可选)为什么Android不支持这样的操作?这是很烦人!

(OPTIONAL)Why the android doesn't support such operation? It is very annoying!

感谢您回答这个问题。

推荐答案

您可以使用服务来启动相机的背景。你可以参考<一个href="http://stackoverflow.com/questions/10121660/how-to-record-video-from-background-of-application-android">this 。希望这将帮助你。

You can use a service to start your camera in background. You can refer to this . Hope this will helps you.

这篇关于如何使用Android摄像头的背景是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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