[英]Android OpenCV - How to process camera frames from background service?
I want to image process android front camera frames inside a service. 我想对服务内部的android前置摄像头框架进行图像处理。 I use OpenCV and therefore using CameraBridgeViewBase which asks for camera view. 我使用OpenCV,因此使用CameraBridgeViewBase要求提供摄像机视图。 I dont want to record the video. 我不想录制视频。 i need to process each frame in real time. 我需要实时处理每个帧。
any solution ? 有什么办法吗?
According to the examples of fadden available ( have a look here ), you can do it using a SurfaceTexture
instead of a SurfaceView
for getting the frames. 根据可用的淡入淡出示例( 在此处查看 ),您可以使用SurfaceTexture
而不是SurfaceView
来获取框架。 It was also answered here before, but unfortunately never validated. 之前也曾在这里回答过,但不幸的是从未得到验证。
I could get frames from a service this way. 我可以通过这种方式从服务中获取帧。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.