Skip to content

JPEG decoding and encoding is significant slower than from Ubuntu package #52

Closed
@homm

Description

@homm

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:

screen shot 2017-10-16 at 1 39 58

screen shot 2017-10-16 at 1 17 12

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions