Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to set recording length

Hi all, my name is Fernando and I am starting with both OpenCV and RPi (and programming!)

Is it possible to set the length of a recording? It could be in either seconds or in a certain amount of frames (i.e. record 100 frames at 15 fps)

In the same way, I am interested in some processing rather than recording the video to "watch" it later (I do not intend to make a film :-) ), therefore, it could be possible to put each frame's data in some kind of a "buffer" to allow me further analysis (I'd like to do it in real time, but I do not know hot to do that). Is that possible? or, should I record the video and then load it and analysis?

I am using a Raspberry Pi (with Raspbian) with a raspicam (and/or usb webcam) and OpenCV 2.4.2 in either C++ or Python.

PS: my main goal is to obtain some video at 15+ fps. Do some processing on it and then present the output. The processing is obtain the Green channel, sum up the pixel values of a ROI, filter them and then obtain spectra. My original plan was to do it in "real-time", but I am afraid the RPi is not powerful enough to do it, so I´ll do it online (or offline if recording>load>processing).

Thank you in advance!

click to hide/show revision 2
improving the question

How to set recording length

Hi all, my name is Fernando and I am starting with both OpenCV and RPi (and programming!)

Is it possible (and how) to set the length of a recording? It could be in either seconds or in a certain amount of frames (i.e. record 100 frames at 15 fps)

In the same way, I am interested in some processing rather than recording the video to "watch" it later (I do not intend to make a film :-) ), therefore, it could be possible to put each frame's data in some kind of a "buffer" to allow me further analysis (I'd like to do it in real time, but I do not know hot to do that). Is that possible? or, should I record the video and then load it and analysis?

I am using a Raspberry Pi (with Raspbian) with a raspicam (and/or usb webcam) and OpenCV 2.4.2 in either C++ or Python.

PS: my main goal is to obtain some video at 15+ fps. Do some processing on it and then present the output. The processing is obtain the Green channel, sum up the pixel values of a ROI, filter them and then obtain spectra. My original plan was to do it in "real-time", but I am afraid the RPi is not powerful enough to do it, so I´ll do it online (or offline if recording>load>processing).

Thank you in advance!