0

I'm a newbie in anything openCV related and I need some guidance with a simple android app I want to build. basically, I want to write a small app that buffers e.g. 30 seconds of video (with my android phone camera as an input), and save those last 30 seconds in a file when the user press a button.

I know this can easily be done with only android sdk, but I want to do it using openCV as this app will be used for further development.

hope you guys can help me out!

thanks!

1 Answer 1

3

There are 2 ways to develop applications with OpenCV on Android. Check the Download section on this page for details.

OpenCV does not provide a buffering mechanism to store the frames, it's up to you to implement it. Read each frame from the camera and store them on a buffer.

If the camera has a framerate of 30 fps, you'll need an array of 900 IplImage* to buffer the last 30 seconds of video. A circular buffer might be interesting for that.

Sign up to request clarification or add additional context in comments.

1 Comment

I was hoping OpenCV would have some buffering mechanism for the frames, but this also works for me. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.