Ask Your Question

Revision history [back]

Speeding up reading PNG images

OpenCV version: 4.5.0, compiled from source in release mode with static libraries; Operating system: Ubuntu 18.04;

I am working on optimizing a reasonably computationally-expensive computer vision application and have reached a point where it seems like loading up a dataset takes 20-25% of the time.

I am loading RGB-D pairs stored as PNG sequentially (pre-loading all images is not an option). imread averages 4ms / image (and internally, png_read_image is only a few ns faster).

Any suggestions on how I could speed this up, please?