FFMPEG and opencv imread

asked 2018-01-25 04:10:50 -0500

System information (version)

OpenCV => 3.3 Operating System / Platform => ubuntu 16.04

Detailed description

I extracted frames from a video using ffmpeg.The image format is jpg.The folder containing the image files was 92MB.When I read it in a python list using opencv's imread the size in RAM is close to 3GB.Is this a bug in imread or what am i missing here.I could not find a solution in opencv answers as well.

edit retag flag offensive close merge delete



do some napkin maths: nimages * w * h * 3 . you'll be amazed ....

berak gravatar imageberak ( 2018-01-25 05:30:11 -0500 )edit

Yes I did it and thats why am saying the size is bigger in RAM

srikanth91 gravatar imagesrikanth91 ( 2018-01-25 05:48:28 -0500 )edit