本文介绍了从相机平行于OpenCV的处理录制视频在Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我现在明白了,它不是那么容易录制视频,通过OpenCV的android上的处理。但是,是否有可能做到这一点的并行:
- 记录来自摄像头的视频,采用标准的Andr​​oid工具(MediaRecorder)和
- ?不保存它处理与OpenCV的(mOpenCvCameraView)视频

As I now understand, it is not that easy to record a video, processed by OpenCV on android. But is there any possibility to do it parallel:- to record video from camera, using standard android tools (MediaRecorder) and- to process video with OpenCV (mOpenCvCameraView) without saving it?

再一次谢谢!

推荐答案

我想,你不'吨需要录制视频。你不该'T吧...

I think, you don' t need to record a video. You shouldn' t it...

您可以捕获所有帧 onCameraFrame()方法。

You can capture all frame in onCameraFrame() method.

public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {
    Mat carrierMatgray = inputFrame.gray();
    // do something
    Mat carrierMatRgba = inputFrame.rgba();
    return carrierMatRgba;
}

这篇关于从相机平行于OpenCV的处理录制视频在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 17:14