Closed
Description
First of all thanks for your work!
OpenCV version in Ubuntu 16.04 is still 2.4.9.1, so most users have to install OpenCV from this wheels.
Surprisingly, these wheels have much lower JPEG decoding and encoding speed than shipped with Ubuntu.
Cv2 load 2560×1600 RGB image
Jpeg load 0.05430 s 75.43 Mpx/s
Jpeg save 0.10867 s 37.69 Mpx/s
Cv2 load 2560×1600 RGB image
Jpeg load 0.03277 s 124.99 Mpx/s
Jpeg save 0.03084 s 132.82 Mpx/s
Here is perf report
for both cases:
It's clear that these wheels don't use system-provided libjpeg library (which is libjpeg-turbo for some systems). Instead, they are decoding and encoding using some build-in libjpeg library which is much slower.
I see two solutions: use libjpeg-turbo for wheels or use system libraries.