PyTurboJPEG:libjpeg turbo的Python包装器用于解码和编码JPEG图像 源码
PyTurboJPEG libjpeg-turbo的Python包装器,用于解码和编码JPEG图像。 先决条件 例子 import cv2 from turbojpeg import TurboJPEG , TJPF_GRAY , TJSAMP_GRAY , TJFLAG_PROGRESSIVE # specifying library path explicitly # jpeg = TurboJPEG(r'D:\turbojpeg.dll') # jpeg = TurboJPEG('/usr/lib64/libturbojpeg.so') # jpeg = TurboJPEG('/usr/local/lib/libturbojpeg.dylib') # using default library installation jpeg = TurboJPEG () # decoding
用户评论