Ask Your Question
0

quickly saving Images

asked 2014-01-09 05:57:26 -0600

Maik Angermann gravatar image

Hi there, probably an old question, but I didn't find a good solution yet.

I am using a GigE Camera streaming at 20 FPS. I do some line detection with Canny Edge and Hough lines. Besides this I want to store the Images from the camera. I also save some data like timestamp and GPS Position of the Camera which are also saved with the pictures.

The point is, if I save every Image, the framerate goes down to 8 FPS or even less. Using JPEGS seems to be the quickest possibility to save the Images. Is there another way the save Images as Video quickly.

Later on I want to replay the Images/ Video and stream their data to a program. Using the OpenCV Videowriter function only accepts non variable framerates.

So is there I possibility to write Images real quick with variable framerates. I could also use the timestamp for replay purposes.

Any other suggestions / experiences MAik

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-01-09 06:44:26 -0600

Nghia gravatar image

There are two things you can do:

  1. Multi-thread your write process, using some sort of job pool.
  2. Switch to libjpeg-turbo. Have a look at http://stackoverflow.com/questions/10465209/how-to-compile-opencv-with-libjpeg-turbo"> http://stackoverflow.com/questions/10465209/how-to-compile-opencv-with-libjpeg-turbo

Both these steps should give you a big boost, assuming your hard disk can keep up.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-01-09 05:57:26 -0600

Seen: 368 times

Last updated: Jan 09 '14