Android video frame processing

后端 未结 4 1148
[愿得一人]
[愿得一人] 2021-01-31 20:28

I am working on application that does some real time image processing on camera frames. For that, I use preview callback\'s method onPreviewFrame.
This works fi

相关标签:
4条回答
  • 2021-01-31 20:47

    You should probably take a look at the OpenCV library. It has methods that allow you to receive full frames.

    0 讨论(0)
  • 2021-01-31 20:48

    I have an impression: video preview size is small, and is slow, slower than the set video recording frame rate.

    I was once trying to look for solutions on this. It seems a better way is to get the video stream from the video recorder, then directly process the data from the video stream.

    You could find some examples on Android ip-camera.

    0 讨论(0)
  • 2021-01-31 20:54

    It seems the only thing you can do is decoding frames from MediaRecoder data. You may use ffmpeg to decode recoreder data from LocalSocket.

    Hope the following open source projects may help:

    ipcamera-for-android: https://code.google.com/p/ipcamera-for-android/

    spydroid-ipcamera: https://code.google.com/p/spydroid-ipcamera/

    0 讨论(0)
  • 2021-01-31 21:04

    Salam. You can use this library:

    https://github.com/natario1/CameraView

    This library has addFrameProcessor listener that in process function has Frame parameter.

    If you need to record video while frame processing, you need to use from takeVideoSnapshot function of CameraView. takeVideo stop frame processing until complete video recording in latest version I tested 2.6.4.

    0 讨论(0)
提交回复
热议问题