how to add data to a frame

asked 2015-03-07 15:10:13 -0500

I get image from camera: CvCapture* input = cvCaptureFromCAM(0); CvVideoWriter writer = createVideoStream( "film.avi"; ...); IplImage colourImage = cvQueryFrame(input); // Here, I will add data (for exemple text) associated to the image cvWriteFrame( writer, colourImage );

Is there a way to add information into the AVI file linked to the frame

Best regards

edit retag flag offensive close merge delete



Firstly, as it has already mentioned before quite some times, please switch to the newer version of OpenCV. Secondly, I do not really get what you want to do. If you could provide more information, I think that it would be helpful.

theodore gravatar imagetheodore ( 2015-03-07 20:24:44 -0500 )edit

My AVI file is not a collection of following pictures, because I get only picture corresponding to movement detection. So I want to add the specific time stamp of each picture. I do that in jpeg file, and I want to do that in AVI file.

maia.garbot gravatar imagemaia.garbot ( 2015-03-08 12:58:58 -0500 )edit