arshub
arshub

Reputation: 1

How to extract DCT coefficient matrix by jpeglib in python?

I have the below code and i get this error: File "C:\Users\omar\AppData\Local\Programs\Python\Python312\Lib\site-packages\jpeglib\functional.py", line 71, in read_dct return DCTJPEG( ^^^^^^^^ TypeError: DCTJPEG.init() got an unexpected keyword argument 'path'

mport jpeglib
im = jpeglib.read_dct("tree.jpg")
Luminance = im.Y
Chr = im.Cr
Chb = im.Cb
Quan = im.qt
print(Quan)

I need to get metadata of jpeg image by jpeglib library in python

Upvotes: 0

Views: 82

Answers (0)

Related Questions